-
Notifications
You must be signed in to change notification settings - Fork 275
feat: add dynamic imports for .json assets #2740
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
Merged
Merged
Changes from 40 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
1b3b3d4
create dynamic imports for i18n
pskelin 0307939
remove asset registry mapping function
pskelin a2a2565
additional loaders can override specific locales that they handle
pskelin e892fdd
add .properties support, change registerLoader signature
pskelin 571dfbf
remove icons package assets imports
pskelin c6a4c5b
improve warning readability
pskelin 0190a21
fix locale ids for static assets
pskelin 56c5850
lefovers
pskelin 5f3e59f
add dynamic imports for icons
pskelin f191f93
add dynamic assets for fiori package
pskelin 696691e
dynamic imports for theming
pskelin 74682fd
switch locale data with static imports to loader API
pskelin 08a5948
add dynamic imports for cldr
pskelin 2e6d284
unify registerLoader APIs
pskelin 941b572
new api for .properties example
pskelin 14a195d
unify registerLoader APIs
pskelin 2148207
switch module naming to dynamic default, static suffix
pskelin b3a36e7
remove theme load log from bundle
pskelin 218192e
meaningful error when dynamic imports use URL plugin
pskelin b523052
meaningful dynamic import error messages
pskelin 1cc4806
add default cldr loader with CDN fetch
pskelin fe2edc9
remove feature PropertiesFormatSupport
pskelin 770b8a9
depracate registerIconBundle
pskelin 8080846
Merge branch 'master' into wip-dynamic-assets
pskelin ff72058
return lint and fix errors
pskelin 5da646b
remove EffectiveAssetPath
pskelin dbf7baf
fix cldr and i18n imports
pskelin afc17cc
fix url plugin generating empty bundle
pskelin 3f7427c
make icons package i18n aware
pskelin 36c2edd
fiori dynamic imports
pskelin bc35042
register english CLDR as default only
pskelin c957467
switch inline theme registration to async and deprecate sync
pskelin f5ce462
remove internal deprecated usage
pskelin 3cc3cbf
remove async in function without await
pskelin 7f3eb8f
use public imports for bundle
pskelin 23d864b
remove deprecated method documentation pointing to removed modules
pskelin e80898e
add openui5 cldr reuse, simplify code
pskelin 55f3eca
extract parseProperties util to public module
pskelin 1c6bdfd
add missing return for i18n imports
pskelin e4acae3
remove named exports from JSON
pskelin fe0bba2
rework icon registry for lazy fetch
pskelin 203ea17
Merge branch 'master' into wip-dynamic-assets
pskelin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { registerI18nBundle } from "./asset-registries/i18n.js"; | ||
import { registerCldr, _registerMappingFunction as registerCldrMappingFunction } from "./asset-registries/LocaleData.js"; | ||
import { registerThemeProperties } from "./asset-registries/Themes.js"; | ||
import { registerAssetPathMappingFunction } from "./util/EffectiveAssetPath.js"; | ||
import { registerI18nLoader } from "./asset-registries/i18n.js"; | ||
import { registerLocaleDataLoader } from "./asset-registries/LocaleData.js"; | ||
import { registerThemePropertiesLoader } from "./asset-registries/Themes.js"; | ||
import { registerIconLoader } from "./asset-registries/Icons.js"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
export { | ||
registerCldr, | ||
registerCldrMappingFunction, | ||
registerThemeProperties, | ||
registerI18nBundle, | ||
registerAssetPathMappingFunction, | ||
registerI18nLoader, | ||
registerLocaleDataLoader, | ||
registerThemePropertiesLoader, | ||
registerIconLoader, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.