Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(framework): Create a global shared resources repo, share SVG Icons #1869

Merged
merged 5 commits into from
Jun 30, 2020

Conversation

vladitasev
Copy link
Contributor

@vladitasev vladitasev commented Jun 24, 2020

The aim of this change is to create a global registry for resources, shared between different runtimes of UI5 Web Components.
This is the ui5-shared-resources tag that can be found as first child of the head.
image

The first use case is the SVGIconRegistry.js module.

closes: #1861

@vladitasev vladitasev requested a review from pskelin June 24, 2020 13:42
@codefactor
Copy link
Contributor

Just a minor suggestion, the get/create functions share some logic and could be done with a single function with an arg to differentiate the case if it should create the resource or exit when not existing.

@vladitasev vladitasev merged commit 7f5a198 into master Jun 30, 2020
@vladitasev vladitasev deleted the shared-resources-icons branch June 30, 2020 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@ui5/webcomponents-icons duplicate registry issues
3 participants