Browse Source
Merge pull request #18790 from abpframework/fix/change-theme
Fix exception when the change them
pull/18811/head
Mahmut Gundogdu
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with
31 additions and
4 deletions
-
modules/openiddict/app/angular/angular.json
-
npm/ng-packs/apps/dev-app/project.json
-
npm/ng-packs/packages/schematics/src/commands/change-theme/index.ts
-
npm/ng-packs/packages/schematics/src/commands/change-theme/style-map.ts
-
templates/app-nolayers/angular/angular.json
-
templates/app/angular/angular.json
|
|
|
@ -105,7 +105,11 @@ |
|
|
|
"inject": false, |
|
|
|
"bundleName": "abp-bundle.rtl" |
|
|
|
}, |
|
|
|
"node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
{ |
|
|
|
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
"inject": true, |
|
|
|
"bundleName": "bootstrap-icons" |
|
|
|
}, |
|
|
|
"src/styles.scss" |
|
|
|
], |
|
|
|
"scripts": [] |
|
|
|
|
|
|
|
@ -108,7 +108,11 @@ |
|
|
|
"inject": false, |
|
|
|
"bundleName": "ng-zorro-antd-tree" |
|
|
|
}, |
|
|
|
"node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
{ |
|
|
|
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
"inject": true, |
|
|
|
"bundleName": "bootstrap-icons" |
|
|
|
}, |
|
|
|
"apps/dev-app/src/styles.scss" |
|
|
|
], |
|
|
|
"scripts": [] |
|
|
|
|
|
|
|
@ -24,6 +24,7 @@ export default function (_options: ChangeThemeOptions): Rule { |
|
|
|
return async () => { |
|
|
|
const targetThemeName = _options.name; |
|
|
|
const selectedProject = _options.targetProject; |
|
|
|
|
|
|
|
if (!targetThemeName) { |
|
|
|
throw new SchematicsException('The theme name does not selected'); |
|
|
|
} |
|
|
|
|
|
|
|
@ -191,6 +191,11 @@ styleMap.set(ThemeOptionsEnum.LeptonX, [ |
|
|
|
inject: false, |
|
|
|
bundleName: 'abp-bundle.rtl', |
|
|
|
}, |
|
|
|
{ |
|
|
|
input: 'node_modules/bootstrap-icons/font/bootstrap-icons.css', |
|
|
|
inject: true, |
|
|
|
bundleName: 'bootstrap-icons', |
|
|
|
}, |
|
|
|
]); |
|
|
|
styleMap.set(ThemeOptionsEnum.LeptonXLite, [ |
|
|
|
{ |
|
|
|
@ -243,6 +248,11 @@ styleMap.set(ThemeOptionsEnum.LeptonXLite, [ |
|
|
|
inject: false, |
|
|
|
bundleName: 'abp-bundle.rtl', |
|
|
|
}, |
|
|
|
{ |
|
|
|
input: 'node_modules/bootstrap-icons/font/bootstrap-icons.css', |
|
|
|
inject: true, |
|
|
|
bundleName: 'bootstrap-icons', |
|
|
|
}, |
|
|
|
]); |
|
|
|
// the code written by Github co-pilot. thank go-pilot. You are the best sidekick.
|
|
|
|
export const allStyles = Array.from(styleMap.values()).reduce((acc, val) => [...acc, ...val], []); |
|
|
|
|
|
|
|
@ -105,7 +105,11 @@ |
|
|
|
"inject": false, |
|
|
|
"bundleName": "abp-bundle.rtl" |
|
|
|
}, |
|
|
|
"node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
{ |
|
|
|
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
"inject": true, |
|
|
|
"bundleName": "bootstrap-icons" |
|
|
|
}, |
|
|
|
"src/styles.scss" |
|
|
|
], |
|
|
|
"scripts": [] |
|
|
|
|
|
|
|
@ -105,7 +105,11 @@ |
|
|
|
"inject": false, |
|
|
|
"bundleName": "abp-bundle.rtl" |
|
|
|
}, |
|
|
|
"node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
{ |
|
|
|
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css", |
|
|
|
"inject": true, |
|
|
|
"bundleName": "bootstrap-icons" |
|
|
|
}, |
|
|
|
"src/styles.scss" |
|
|
|
], |
|
|
|
"scripts": [] |
|
|
|
|