Skip to content

Commit

Permalink
```markdown
Browse files Browse the repository at this point in the history
✨ feat(`ng-web/src/app/pages/home/menus/menus.component.html`): Update menu component template.
✨ feat(`ng-web/src/app/pages/home/menus/menu-form.component.ts`): Rename `system-menu-form` to `app-menu-form`.
✨ feat(`ng-web/angular.json`): Update angular configuration for production and test environments.
✨ feat(`ng-web/src/app/app.config.ts`): Update application configuration imports.
```
  • Loading branch information
vnobo committed Oct 15, 2024
1 parent 514f139 commit 19ea1bd
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 13 deletions.
31 changes: 21 additions & 10 deletions ng-web/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,38 +32,49 @@
},
{
"glob": "**/*",
"input": "@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/"
"input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/icons/ant-design/"
},
{
"glob": "**/*",
"input": "bootstrap-icons/icons/",
"output": "/assets/"
"input": "./node_modules/bootstrap-icons/icons/",
"output": "/assets/icons/bootstrap/"
}
],
"styles": [
"bootstrap-icons/font/bootstrap-icons.min.css",
"bootstrap/dist/css/bootstrap.min.css",
"@angular/material/prebuilt-themes/azure-blue.css",
"src/theme.less",
"bootstrap/dist/css/bootstrap.min.css",
"src/styles.scss"
],
"scripts": [
"bootstrap/dist/js/bootstrap.bundle.min.js"
],
"allowedCommonJsDependencies": [
"dayjs"
]
},
"configurations": {
"production": {
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
},
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
"maximumWarning": "3MB",
"maximumError": "5MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
"maximumWarning": "10kB",
"maximumError": "20kB"
}
],
"outputHashing": "all"
Expand All @@ -75,7 +86,7 @@
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
"with": "src/environments/environment.development.ts"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion ng-web/src/app/pages/home/menus/menu-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NzInputModule } from 'ng-zorro-antd/input';
import { NzButtonModule } from 'ng-zorro-antd/button';

@Component({
selector: 'system-menu-form',
selector: 'app-menu-form',
standalone: true,
imports: [
ReactiveFormsModule,
Expand Down
2 changes: 1 addition & 1 deletion ng-web/src/app/pages/home/menus/menus.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
}
</tbody>
</nz-table>
<system-menu-form #menuForm></system-menu-form>
<app-menu-form #menuForm></app-menu-form>
File renamed without changes.
3 changes: 2 additions & 1 deletion ng-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"lib": [
"ES2022",
"dom"
]
],
"allowSyntheticDefaultImports": true
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down

0 comments on commit 19ea1bd

Please sign in to comment.