Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vhvb1989
Copy link
Member

@vhvb1989 vhvb1989 commented May 3, 2024

As part of the list of templates, this PR is adding support to have an entry like:

{
    "ref": "https://url/templates.json",
    "tags": ["externalSource"]
}

When this entry is found, awesome-azd will expand that entry into all the entries referenced on that url. Then, the tags are appended to the tags from the original entries.

This feature allow a seemly experience to batch a group of templates which are already maintained as part of another source and avoid duplicity.

As part of the list of templates, this PR is adding support to have an entry like:

{
    "ref": "https://url/templates.json",
    "tags": ["aiApps"]
}

When this entry is found, awesome-azd will expand that entry into all the entries referenced on that url. Then, the tags are appended to the tags from the original entries.

This feature allow a seemly experience to batch a group of templates which are already maintained as part of another source and avoid duplicity.
@vhvb1989 vhvb1989 self-assigned this May 3, 2024
hemarina
hemarina previously approved these changes May 7, 2024
Copy link
Contributor

@hemarina hemarina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vhvb1989 for this great feature. Just have one quick question.

// *************** CARD DATA STARTS HERE ***********************
// Add your site to this list
// prettier-ignore
const expandedTemplates: Template[] = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a Set to prevent duplicate data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants