forked from onecx/onecx-portal-ui-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: initial version of standalone mode * feat: initial version of standalone mode * fix: fix linter * fix: add graceful fallback for empty env.json load * feat: move translation loaders to angular-integration-interface, improve createTranslateLoader and deprecate exports in angular-accelerator * feat: ensure unique translations in new create-translate-loader * feat: migrate standalone shell to a module containing shell-viewport wrapper component * fix: fix CI * fix: disable oneCXShellLayout by default in standalone-shell * fix: fix ci * refactor: provide PIA TRANSLATION_PATH from within PIA * refactor: provide TRANSLATION_PATH from within angular accelerator * feat: inject translation paths in libs and remove dependency between shell-core and pia * refactor: move permission checker utils to angular-integration-interface and remove redundant dependency in standalone-shell * refactor: remove dependency between shell-core and angular-accelerator * refactor: move utils to new lib, fix peer deps and peer dep linting * fix: fix storybook imports * refactor: export PROVIDE_STANDALONE_PROVIDERS_CONFIG * refactor: extract and test hasPermissionCheckerFactory * test: add tests for new createTranslateLoader * refactor: improve providers * fix: provide default value for inject * test: add tests for createTranslateLoader without injected TRANSLATION_PATH * fix: update package versions
- Loading branch information
1 parent
4fb2166
commit 000bd06
Showing
71 changed files
with
1,583 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
15 changes: 15 additions & 0 deletions
15
libs/angular-accelerator/src/lib/injection-tokens/has-permission-checker.ts
This file contains 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @deprecated Please import from `@onecx/angular-utils` instead. | ||
*/ | ||
export { HasPermissionChecker } from '@onecx/angular-utils' | ||
|
||
/** | ||
* This checker always returns true, basically disabling the permission system on the UI side | ||
* @deprecated Please import from `@onecx/angular-utils` instead. | ||
*/ | ||
export { AlwaysGrantPermissionChecker } from '@onecx/angular-utils' | ||
|
||
/** | ||
* @deprecated Please import from `@onecx/angular-utils` instead. | ||
*/ | ||
export { HAS_PERMISSION_CHECKER } from '@onecx/angular-utils' |
This file contains 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
3 changes: 3 additions & 0 deletions
3
libs/angular-accelerator/src/lib/utils/async-translate-loader.utils.ts
This file contains 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 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 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
4 changes: 4 additions & 0 deletions
4
libs/angular-accelerator/src/lib/utils/translate.combined.loader.ts
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"extends": ["../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts"], | ||
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], | ||
"rules": { | ||
"@angular-eslint/directive-selector": [ | ||
"error", | ||
{ | ||
"type": "attribute", | ||
"prefix": "lib", | ||
"style": "camelCase" | ||
} | ||
], | ||
"@angular-eslint/component-selector": [ | ||
"error", | ||
{ | ||
"type": "element", | ||
"prefix": "ocx", | ||
"style": "kebab-case" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.html"], | ||
"extends": ["plugin:@nx/angular-template"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.json"], | ||
"parser": "jsonc-eslint-parser", | ||
"rules": { | ||
"@nx/dependency-checks": "error" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.