Skip to content

Commit dfcd5fe

Browse files
authored
Merge pull request #2 from aspnetboilerplate/master
Sync 4.6.0
2 parents 64d366d + bb1a626 commit dfcd5fe

File tree

154 files changed

+5300
-2743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+5300
-2743
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/wwwroot/lib/** linguist-vendored
2+
**/wwwroot/css/** linguist-vendored

angular/.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:4200",
12+
"sourceMaps": true,
13+
"webRoot": "${workspaceFolder}"
14+
}
15+
]
16+
}

angular/AbpCompanyName.AbpProjectName.AngularUI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<Compile Remove="dist" />
17-
<None Include="App.config" />
17+
<None Include="app.config" />
1818
<None Update="wwwroot\**\*;web.config">
1919
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
2020
</None>

angular/angular.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
}
3232
],
3333
"styles": [
34+
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
3435
"src/assets/fonts/roboto/roboto.css",
3536
"node_modules/bootstrap/dist/css/bootstrap.min.css",
3637
"node_modules/simple-line-icons/css/simple-line-icons.css",

angular/package-lock.json

Lines changed: 45 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@
99
"hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr",
1010
"test": "ng test",
1111
"pree2e": "webdriver-manager update --standalone false --gecko false",
12-
"e2e": "protractor"
12+
"e2e": "protractor",
13+
"lint": "tslint --force --project src/tsconfig.json src/**/*.ts -t verbose"
1314
},
1415
"private": true,
1516
"dependencies": {
16-
"@angular/animations": "^7.1.3",
17+
"@angular/animations": "^7.1.4",
18+
"@angular/cdk": "^7.2.0",
1719
"@angular/common": "^7.1.3",
1820
"@angular/compiler": "^7.1.3",
1921
"@angular/core": "^7.1.3",
2022
"@angular/forms": "^7.1.3",
2123
"@angular/http": "^7.1.3",
24+
"@angular/material": "^7.2.0",
2225
"@angular/platform-browser": "^7.1.3",
2326
"@angular/platform-browser-dynamic": "^7.1.3",
2427
"@angular/router": "^7.1.3",
@@ -42,6 +45,7 @@
4245
"famfamfam-flags": "^1.0.0",
4346
"flot": "^0.8.0-alpha",
4447
"font-awesome": "^4.7.0",
48+
"hammerjs": "^2.0.8",
4549
"jquery": "^3.1.1",
4650
"jquery-countto": "^1.2.0",
4751
"jquery-migrate": "^3.0.0",

angular/src/AppPreBootstrap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ export class AppPreBootstrap {
3333
}
3434

3535
private static getCurrentClockProvider(currentProviderName: string): abp.timing.IClockProvider {
36-
if (currentProviderName === "unspecifiedClockProvider") {
36+
if (currentProviderName === 'unspecifiedClockProvider') {
3737
return abp.timing.unspecifiedClockProvider;
3838
}
3939

40-
if (currentProviderName === "utcClockProvider") {
40+
if (currentProviderName === 'utcClockProvider') {
4141
return abp.timing.utcClockProvider;
4242
}
4343

@@ -50,7 +50,7 @@ export class AppPreBootstrap {
5050
method: 'GET',
5151
headers: {
5252
Authorization: 'Bearer ' + abp.auth.getToken(),
53-
'.AspNetCore.Culture': abp.utils.getCookieValue("Abp.Localization.CultureName"),
53+
'.AspNetCore.Culture': abp.utils.getCookieValue('Abp.Localization.CultureName'),
5454
'Abp.TenantId': abp.multiTenancy.getTenantIdCookie()
5555
}
5656
}).done(result => {

angular/src/account/account-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule } from '@angular/core';
1+
import { NgModule } from '@angular/core';
22
import { RouterModule } from '@angular/router';
33
import { LoginComponent } from './login/login.component';
44
import { RegisterComponent } from './register/register.component';
@@ -21,4 +21,4 @@ import { AccountComponent } from './account.component';
2121
RouterModule
2222
]
2323
})
24-
export class AccountRoutingModule { }
24+
export class AccountRoutingModule { }

angular/src/account/account.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, ViewContainerRef, OnInit, ViewEncapsulation, Injector } from '@angular/core';
1+
import { Component, ViewContainerRef, OnInit, ViewEncapsulation, Injector } from '@angular/core';
22
import { LoginService } from './login/login.service';
33
import { AppComponentBase } from '@shared/app-component-base';
44

@@ -11,11 +11,11 @@ import { AppComponentBase } from '@shared/app-component-base';
1111
})
1212
export class AccountComponent extends AppComponentBase implements OnInit {
1313

14-
private viewContainerRef: ViewContainerRef;
15-
1614
versionText: string;
1715
currentYear: number;
1816

17+
private viewContainerRef: ViewContainerRef;
18+
1919
public constructor(
2020
injector: Injector,
2121
private _loginService: LoginService
@@ -33,4 +33,4 @@ export class AccountComponent extends AppComponentBase implements OnInit {
3333
ngOnInit(): void {
3434
$('body').attr('class', 'login-page');
3535
}
36-
}
36+
}

angular/src/account/account.module.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ import { ServiceProxyModule } from '@shared/service-proxies/service-proxy.module
1515
import { SharedModule } from '@shared/shared.module';
1616

1717
import { AccountComponent } from './account.component';
18-
import { TenantChangeComponent } from './tenant/tenant-change.component';
19-
import { TenantChangeModalComponent } from './tenant/tenant-change-modal.component';
2018
import { LoginComponent } from './login/login.component';
2119
import { RegisterComponent } from './register/register.component';
2220
import { AccountLanguagesComponent } from './layout/account-languages.component';
2321

2422
import { LoginService } from './login/login.service';
2523

24+
// tenants
25+
import { TenantChangeComponent } from './tenant/tenant-change.component';
26+
import { TenantChangeDialogComponent } from './tenant/tenant-change-dialog.component';
27+
2628
@NgModule({
2729
imports: [
2830
CommonModule,
@@ -37,14 +39,19 @@ import { LoginService } from './login/login.service';
3739
],
3840
declarations: [
3941
AccountComponent,
40-
TenantChangeComponent,
41-
TenantChangeModalComponent,
4242
LoginComponent,
4343
RegisterComponent,
44-
AccountLanguagesComponent
44+
AccountLanguagesComponent,
45+
// tenant
46+
TenantChangeComponent,
47+
TenantChangeDialogComponent,
4548
],
4649
providers: [
4750
LoginService
51+
],
52+
entryComponents: [
53+
// tenant
54+
TenantChangeDialogComponent
4855
]
4956
})
5057
export class AccountModule {

0 commit comments

Comments
 (0)