Skip to content

Commit c75246d

Browse files
committed
upgraded to Angular 13
1 parent 1c69c5a commit c75246d

File tree

7 files changed

+2908
-3578
lines changed

7 files changed

+2908
-3578
lines changed

angular/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ bin/
2626
!.vscode/extensions.json
2727

2828
# misc
29-
/.sass-cache
29+
//.angular/cache
30+
.sass-cache
3031
/connect.lock
3132
/coverage/*
3233
/libpeerconnection.log

angular/angular.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,6 @@
156156
"node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.moment.js"
157157
]
158158
}
159-
},
160-
"lint": {
161-
"builder": "@angular-devkit/build-angular:tslint",
162-
"options": {
163-
"tsConfig": [
164-
"src/tsconfig.json"
165-
],
166-
"exclude": []
167-
}
168159
}
169160
}
170161
},
@@ -179,15 +170,6 @@
179170
"protractorConfig": "./protractor.conf.js",
180171
"devServerTarget": "AbpProjectName:serve"
181172
}
182-
},
183-
"lint": {
184-
"builder": "@angular-devkit/build-angular:tslint",
185-
"options": {
186-
"tsConfig": [
187-
"e2e/tsconfig.json"
188-
],
189-
"exclude": []
190-
}
191173
}
192174
}
193175
}

angular/package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"test": "ng test"
1414
},
1515
"dependencies": {
16-
"@angular/animations": "^12.0.5",
17-
"@angular/common": "^12.0.5",
18-
"@angular/compiler": "^12.0.5",
19-
"@angular/core": "^12.0.5",
20-
"@angular/forms": "^12.0.5",
21-
"@angular/platform-browser": "^12.0.5",
22-
"@angular/platform-browser-dynamic": "^12.0.5",
23-
"@angular/router": "^12.0.5",
16+
"@angular/animations": "^13.3.12",
17+
"@angular/common": "^13.3.12",
18+
"@angular/compiler": "^13.3.12",
19+
"@angular/core": "^13.3.12",
20+
"@angular/forms": "^13.3.12",
21+
"@angular/platform-browser": "^13.3.12",
22+
"@angular/platform-browser-dynamic": "^13.3.12",
23+
"@angular/router": "^13.3.12",
2424
"@aspnet/signalr": "^1.1.4",
2525
"@fortawesome/fontawesome-free": "^5.15.3",
2626
"abp-ng2-module": "7.1.0",
@@ -38,13 +38,12 @@
3838
"sweetalert2": "^10.15.6",
3939
"ts-helpers": "^1.1.2",
4040
"tslib": "^2.0.0",
41-
"web-animations-js": "^2.3.2",
4241
"zone.js": "~0.11.4"
4342
},
4443
"devDependencies": {
45-
"@angular-devkit/build-angular": "~12.0.5",
46-
"@angular/cli": "^12.0.5",
47-
"@angular/compiler-cli": "^12.0.5",
44+
"@angular-devkit/build-angular": "~13.3.10",
45+
"@angular/cli": "^13.3.10",
46+
"@angular/compiler-cli": "^13.3.12",
4847
"@angularclass/hmr": "^2.1.3",
4948
"@types/jasmine": "~3.6.0",
5049
"@types/lodash-es": "^4.17.3",
@@ -63,8 +62,8 @@
6362
"protractor": "~7.0.0",
6463
"ts-node": "^8.10.1",
6564
"tslint": "~6.1.0",
66-
"typescript": "4.2.4",
65+
"typescript": "4.6.4",
6766
"webpack-bundle-analyzer": "^3.7.0"
6867
},
6968
"angular-cli": {}
70-
}
69+
}

angular/src/account/account.module.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ import { TenantChangeDialogComponent } from './tenant/tenant-change-dialog.compo
3939
// tenant
4040
TenantChangeComponent,
4141
TenantChangeDialogComponent,
42-
],
43-
entryComponents: [
44-
// tenant
45-
TenantChangeDialogComponent
4642
]
4743
})
4844
export class AccountModule {

angular/src/app/app.module.ts

Lines changed: 45 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -40,62 +40,50 @@ import { SidebarUserPanelComponent } from './layout/sidebar-user-panel.component
4040
import { SidebarMenuComponent } from './layout/sidebar-menu.component';
4141

4242
@NgModule({
43-
declarations: [
44-
AppComponent,
45-
HomeComponent,
46-
AboutComponent,
47-
// tenants
48-
TenantsComponent,
49-
CreateTenantDialogComponent,
50-
EditTenantDialogComponent,
51-
// roles
52-
RolesComponent,
53-
CreateRoleDialogComponent,
54-
EditRoleDialogComponent,
55-
// users
56-
UsersComponent,
57-
CreateUserDialogComponent,
58-
EditUserDialogComponent,
59-
ChangePasswordComponent,
60-
ResetPasswordDialogComponent,
61-
// layout
62-
HeaderComponent,
63-
HeaderLeftNavbarComponent,
64-
HeaderLanguageMenuComponent,
65-
HeaderUserMenuComponent,
66-
FooterComponent,
67-
SidebarComponent,
68-
SidebarLogoComponent,
69-
SidebarUserPanelComponent,
70-
SidebarMenuComponent
71-
],
72-
imports: [
73-
CommonModule,
74-
FormsModule,
75-
ReactiveFormsModule,
76-
HttpClientModule,
77-
HttpClientJsonpModule,
78-
ModalModule.forChild(),
79-
BsDropdownModule,
80-
CollapseModule,
81-
TabsModule,
82-
AppRoutingModule,
83-
ServiceProxyModule,
84-
SharedModule,
85-
NgxPaginationModule,
86-
],
87-
providers: [],
88-
entryComponents: [
89-
// tenants
90-
CreateTenantDialogComponent,
91-
EditTenantDialogComponent,
92-
// roles
93-
CreateRoleDialogComponent,
94-
EditRoleDialogComponent,
95-
// users
96-
CreateUserDialogComponent,
97-
EditUserDialogComponent,
98-
ResetPasswordDialogComponent,
99-
],
43+
declarations: [
44+
AppComponent,
45+
HomeComponent,
46+
AboutComponent,
47+
// tenants
48+
TenantsComponent,
49+
CreateTenantDialogComponent,
50+
EditTenantDialogComponent,
51+
// roles
52+
RolesComponent,
53+
CreateRoleDialogComponent,
54+
EditRoleDialogComponent,
55+
// users
56+
UsersComponent,
57+
CreateUserDialogComponent,
58+
EditUserDialogComponent,
59+
ChangePasswordComponent,
60+
ResetPasswordDialogComponent,
61+
// layout
62+
HeaderComponent,
63+
HeaderLeftNavbarComponent,
64+
HeaderLanguageMenuComponent,
65+
HeaderUserMenuComponent,
66+
FooterComponent,
67+
SidebarComponent,
68+
SidebarLogoComponent,
69+
SidebarUserPanelComponent,
70+
SidebarMenuComponent
71+
],
72+
imports: [
73+
CommonModule,
74+
FormsModule,
75+
ReactiveFormsModule,
76+
HttpClientModule,
77+
HttpClientJsonpModule,
78+
ModalModule.forChild(),
79+
BsDropdownModule,
80+
CollapseModule,
81+
TabsModule,
82+
AppRoutingModule,
83+
ServiceProxyModule,
84+
SharedModule,
85+
NgxPaginationModule,
86+
],
87+
providers: []
10088
})
10189
export class AppModule {}

angular/src/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ __karma__.loaded = function () {};
2222
// First, initialize the Angular testing environment.
2323
getTestBed().initTestEnvironment(
2424
BrowserDynamicTestingModule,
25-
platformBrowserDynamicTesting()
25+
platformBrowserDynamicTesting(), {
26+
teardown: { destroyAfterEach: false }
27+
}
2628
);
2729
// Then we find all the tests.
2830
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)