Skip to content

Commit 0b0088b

Browse files
authored
Merge branch 'master' into ng-remove-jquery-dependency
2 parents d7661c4 + d6d8aa3 commit 0b0088b

File tree

38 files changed

+2060
-1165
lines changed

38 files changed

+2060
-1165
lines changed

angular/angular.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14+
"aot": true,
1415
"outputPath": "dist",
1516
"index": "src/index.html",
1617
"main": "src/main.ts",
@@ -52,6 +53,12 @@
5253
},
5354
"configurations": {
5455
"production": {
56+
"budgets": [
57+
{
58+
"type": "anyComponentStyle",
59+
"maximumWarning": "6kb"
60+
}
61+
],
5562
"optimization": true,
5663
"outputHashing": "all",
5764
"sourceMap": false,
@@ -69,6 +76,12 @@
6976
]
7077
},
7178
"hmr": {
79+
"budgets": [
80+
{
81+
"type": "anyComponentStyle",
82+
"maximumWarning": "6kb"
83+
}
84+
],
7285
"fileReplacements": [
7386
{
7487
"replace": "src/environments/environment.ts",
@@ -178,7 +191,7 @@
178191
"schematics": {
179192
"@schematics/angular:component": {
180193
"prefix": "app",
181-
"styleext": "css"
194+
"style": "css"
182195
},
183196
"@schematics/angular:directive": {
184197
"prefix": "app"

angular/package.json

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,57 +13,58 @@
1313
"test": "ng test"
1414
},
1515
"dependencies": {
16-
"@angular/animations": "^8.2.4",
17-
"@angular/common": "^8.2.4",
18-
"@angular/compiler": "^8.2.4",
19-
"@angular/core": "^8.2.4",
20-
"@angular/forms": "^8.2.4",
21-
"@angular/platform-browser": "^8.2.4",
22-
"@angular/platform-browser-dynamic": "^8.2.4",
23-
"@angular/router": "^8.2.4",
16+
"@angular/animations": "^9.1.4",
17+
"@angular/common": "^9.1.4",
18+
"@angular/compiler": "^9.1.4",
19+
"@angular/core": "^9.1.4",
20+
"@angular/forms": "^9.1.4",
21+
"@angular/platform-browser": "^9.1.4",
22+
"@angular/platform-browser-dynamic": "^9.1.4",
23+
"@angular/router": "^9.1.4",
2424
"@aspnet/signalr": "^1.1.4",
2525
"@fortawesome/fontawesome-free": "^5.13.0",
26-
"abp-ng2-module": "^5.1.1",
26+
"abp-ng2-module": "^6.0.0",
2727
"abp-web-resources": "^5.1.1",
2828
"admin-lte-css-only": "^3.0.4",
2929
"core-js": "^3.2.1",
3030
"famfamfam-flags": "^1.0.0",
3131
"lodash": "^4.17.4",
32-
"moment": "^2.18.1",
33-
"moment-timezone": "^0.5.13",
32+
"moment": "2.24.0",
33+
"moment-timezone": "^0.5.28",
3434
"ngx-bootstrap": "^5.6.1",
35-
"ngx-pagination": "^4.1.0",
36-
"push.js": "1.0.9",
35+
"ngx-pagination": "^5.0.0",
36+
"push.js": "1.0.12",
3737
"rxjs": "^6.4.0",
3838
"sweetalert2": "^9.10.12",
3939
"ts-helpers": "^1.1.2",
40+
"tslib": "^1.10.0",
4041
"web-animations-js": "^2.3.2",
41-
"zone.js": "~0.9.1"
42+
"zone.js": "~0.10.2"
4243
},
4344
"devDependencies": {
44-
"@angular-devkit/build-angular": "~0.803.2",
45-
"@angular/cli": "^8.3.2",
46-
"@angular/compiler-cli": "^8.2.4",
45+
"@angular-devkit/build-angular": "~0.901.4",
46+
"@angular/cli": "^9.1.4",
47+
"@angular/compiler-cli": "^9.1.4",
4748
"@angularclass/hmr": "^2.1.3",
4849
"@types/jasmine": "^3.4.0",
49-
"@types/lodash": "^4.14.62",
50+
"@types/lodash": "^4.14.150",
5051
"@types/moment-timezone": "^0.5.12",
51-
"@types/node": "^12.7.3",
52-
"codelyzer": "^5.0.1",
52+
"@types/node": "^13.13.4",
53+
"codelyzer": "^5.1.2",
5354
"jasmine-core": "^3.3.0",
54-
"jasmine-spec-reporter": "^4.2.1",
55-
"karma": "^4.3.0",
55+
"jasmine-spec-reporter": "^5.0.2",
56+
"karma": "^5.0.4",
5657
"karma-chrome-launcher": "^3.1.0",
5758
"karma-cli": "^2.0.0",
58-
"karma-coverage-istanbul-reporter": "^2.0.4",
59-
"karma-jasmine": "^2.0.1",
59+
"karma-coverage-istanbul-reporter": "^3.0.0",
60+
"karma-jasmine": "^3.1.1",
6061
"karma-jasmine-html-reporter": "^1.4.0",
61-
"nswag": "^13.0.6",
62-
"protractor": "^5.1.1",
63-
"ts-node": "^8.3.0",
64-
"tslint": "^5.19.0",
65-
"typescript": "3.4.5",
66-
"webpack-bundle-analyzer": "^3.0.3"
62+
"nswag": "^13.4.2",
63+
"protractor": "^5.4.4",
64+
"ts-node": "^8.10.1",
65+
"tslint": "^6.1.2",
66+
"typescript": "3.8.3",
67+
"webpack-bundle-analyzer": "^3.7.0"
6768
},
6869
"angular-cli": {}
69-
}
70+
}

angular/src/account/account.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@ import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44
import { HttpClientJsonpModule } from '@angular/common/http';
55
import { HttpClientModule } from '@angular/common/http';
6-
76
import { ModalModule } from 'ngx-bootstrap/modal';
8-
9-
import { AbpModule } from '@abp/abp.module';
10-
117
import { AccountRoutingModule } from './account-routing.module';
12-
138
import { ServiceProxyModule } from '@shared/service-proxies/service-proxy.module';
14-
159
import { SharedModule } from '@shared/shared.module';
16-
1710
import { AccountComponent } from './account.component';
1811
import { LoginComponent } from './login/login.component';
1912
import { RegisterComponent } from './register/register.component';
@@ -31,7 +24,6 @@ import { TenantChangeDialogComponent } from './tenant/tenant-change-dialog.compo
3124
FormsModule,
3225
HttpClientModule,
3326
HttpClientJsonpModule,
34-
AbpModule,
3527
SharedModule,
3628
ServiceProxyModule,
3729
AccountRoutingModule,

angular/src/account/layout/account-footer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ export class AccountFooterComponent extends AppComponentBase {
2020
this.appSession.application.releaseDate.format('YYYYDDMM') +
2121
']';
2222
}
23-
}
23+
}

angular/src/account/login/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, Injector } from '@angular/core';
2-
import { AbpSessionService } from '@abp/session/abp-session.service';
2+
import { AbpSessionService } from 'abp-ng2-module';
33
import { AppComponentBase } from '@shared/app-component-base';
44
import { accountModuleAnimation } from '@shared/animations/routerTransition';
55
import { AppAuthService } from '@shared/auth/app-auth.service';

angular/src/account/tenant/tenant-change.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ export class TenantChangeComponent extends AppComponentBase implements OnInit {
1515
super(injector);
1616
}
1717

18+
get isMultiTenancyEnabled(): boolean {
19+
return abp.multiTenancy.isEnabled;
20+
}
21+
1822
ngOnInit() {
1923
if (this.appSession.tenant) {
2024
this.tenancyName = this.appSession.tenant.tenancyName;
2125
this.name = this.appSession.tenant.name;
2226
}
2327
}
2428

25-
get isMultiTenancyEnabled(): boolean {
26-
return abp.multiTenancy.isEnabled;
27-
}
28-
2929
showChangeModal(): void {
3030
const modal = this._modalService.show(TenantChangeDialogComponent);
3131
if (this.appSession.tenant) {

angular/src/app/app.module.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,15 @@ import { CommonModule } from '@angular/common';
33
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
44
import { HttpClientJsonpModule } from '@angular/common/http';
55
import { HttpClientModule } from '@angular/common/http';
6-
76
import { ModalModule } from 'ngx-bootstrap/modal';
87
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
98
import { CollapseModule } from 'ngx-bootstrap/collapse';
109
import { TabsModule } from 'ngx-bootstrap/tabs';
1110
import { NgxPaginationModule } from 'ngx-pagination';
12-
1311
import { AppRoutingModule } from './app-routing.module';
1412
import { AppComponent } from './app.component';
15-
16-
import { AbpModule } from '@abp/abp.module';
17-
1813
import { ServiceProxyModule } from '@shared/service-proxies/service-proxy.module';
1914
import { SharedModule } from '@shared/shared.module';
20-
2115
import { HomeComponent } from '@app/home/home.component';
2216
import { AboutComponent } from '@app/about/about.component';
2317
// tenants
@@ -85,7 +79,6 @@ import { SidebarMenuComponent } from './layout/sidebar-menu.component';
8579
BsDropdownModule,
8680
CollapseModule,
8781
TabsModule,
88-
AbpModule,
8982
AppRoutingModule,
9083
ServiceProxyModule,
9184
SharedModule,

angular/src/app/layout/sidebar-menu.component.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,14 @@ export class SidebarMenuComponent extends AppComponentBase implements OnInit {
9292
'https://aspnetzero.com?ref=abptmpl',
9393
'far fa-circle'
9494
),
95-
new MenuItem(
96-
'Description',
97-
'https://aspnetzero.com/?ref=abptmpl#description',
98-
'far fa-circle'
99-
),
10095
new MenuItem(
10196
'Features',
102-
'https://aspnetzero.com/?ref=abptmpl#features',
97+
'https://aspnetzero.com/Features?ref=abptmpl',
10398
'far fa-circle'
10499
),
105100
new MenuItem(
106101
'Pricing',
107-
'https://aspnetzero.com/?ref=abptmpl#pricing',
102+
'https://aspnetzero.com/Pricing?ref=abptmpl#pricing',
108103
'far fa-circle'
109104
),
110105
new MenuItem(

angular/src/app/layout/sidebar.component.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import { Component, ChangeDetectionStrategy, Renderer2 } from '@angular/core';
1+
import {
2+
Component,
3+
ChangeDetectionStrategy,
4+
Renderer2,
5+
OnInit
6+
} from '@angular/core';
27
import { LayoutStoreService } from '@shared/layout/layout-store.service';
38

49
@Component({
10+
// tslint:disable-next-line:component-selector
511
selector: 'sidebar',
612
templateUrl: './sidebar.component.html',
713
changeDetection: ChangeDetectionStrategy.OnPush
814
})
9-
export class SidebarComponent {
15+
export class SidebarComponent implements OnInit {
1016
sidebarExpanded: boolean;
1117

1218
constructor(

angular/src/app/users/change-password/change-password.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>{{ "UpdatePassword" | localize }}</h1>
2525
</label>
2626
<div class="col-md-9">
2727
<input
28-
type="text"
28+
type="password"
2929
class="form-control"
3030
name="currentPassword"
3131
id="currentPassword"
@@ -48,7 +48,7 @@ <h1>{{ "UpdatePassword" | localize }}</h1>
4848
</label>
4949
<div class="col-md-9">
5050
<input
51-
type="text"
51+
type="password"
5252
class="form-control"
5353
name="newPassword"
5454
id="newPassword"
@@ -75,7 +75,7 @@ <h1>{{ "UpdatePassword" | localize }}</h1>
7575
</label>
7676
<div class="col-md-9">
7777
<input
78-
type="text"
78+
type="password"
7979
class="form-control"
8080
name="confirmNewPassword"
8181
id="confirmNewPassword"

0 commit comments

Comments
 (0)