mirror of https://github.com/abpframework/abp.git
18 changed files with 87 additions and 117 deletions
@ -0,0 +1,4 @@ |
|||||
|
{ |
||||
|
"singleQuote": true, |
||||
|
"printWidth": 100 |
||||
|
} |
||||
@ -1,11 +1,11 @@ |
|||||
import { browser, by, element } from 'protractor'; |
import { browser, by, element } from 'protractor'; |
||||
|
|
||||
export class AppPage { |
export class AppPage { |
||||
navigateTo() { |
navigateTo(): Promise<unknown> { |
||||
return browser.get(browser.baseUrl) as Promise<any>; |
return browser.get(browser.baseUrl) as Promise<unknown>; |
||||
} |
} |
||||
|
|
||||
getTitleText() { |
getTitleText(): Promise<string> { |
||||
return element(by.css('app-root h1')).getText() as Promise<string>; |
return element(by.css('app-root .content span')).getText() as Promise<string>; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,58 +1,54 @@ |
|||||
{ |
{ |
||||
"name": "MyProjectName", |
"name": "ng9-abp", |
||||
"version": "0.0.0", |
"version": "0.0.0", |
||||
"scripts": { |
"scripts": { |
||||
"ng": "ng", |
"ng": "ng", |
||||
"start": "ng serve", |
"start": "ng serve", |
||||
"start:hmr": "ng serve --configuration hmr", |
|
||||
"build": "ng build", |
"build": "ng build", |
||||
"build:prod": "ng build --prod", |
|
||||
"test": "ng test", |
"test": "ng test", |
||||
"lint": "ng lint", |
"lint": "ng lint", |
||||
"e2e": "ng e2e" |
"e2e": "ng e2e" |
||||
}, |
}, |
||||
"private": true, |
"private": true, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/ng.account": "^2.1.0", |
"@abp/ng.account": "^2.2.0-rc.7", |
||||
"@abp/ng.identity": "^2.1.0", |
"@abp/ng.identity": "^2.2.0-rc.7", |
||||
"@abp/ng.setting-management": "^2.1.0", |
"@abp/ng.setting-management": "^2.2.0-rc.7", |
||||
"@abp/ng.tenant-management": "^2.1.0", |
"@abp/ng.tenant-management": "^2.2.0-rc.7", |
||||
"@abp/ng.theme.basic": "^2.1.0", |
"@abp/ng.theme.basic": "^2.2.0-rc.7", |
||||
"@angular/animations": "~8.2.14", |
"@angular/animations": "~9.0.2", |
||||
"@angular/common": "~8.2.14", |
"@angular/common": "~9.0.2", |
||||
"@angular/compiler": "~8.2.14", |
"@angular/compiler": "~9.0.2", |
||||
"@angular/core": "~9.0.2", |
"@angular/core": "~9.0.2", |
||||
"@angular/forms": "~8.2.14", |
"@angular/forms": "~9.0.2", |
||||
"@angular/platform-browser": "~8.2.14", |
"@angular/platform-browser": "~9.0.2", |
||||
"@angular/platform-browser-dynamic": "~8.2.14", |
"@angular/platform-browser-dynamic": "~9.0.2", |
||||
"@angular/router": "~8.2.14", |
"@angular/router": "~9.0.2", |
||||
"rxjs": "~6.5.4", |
"rxjs": "~6.5.4", |
||||
"tslib": "^1.10.0", |
"tslib": "^1.10.0", |
||||
"zone.js": "~0.9.1" |
"zone.js": "~0.10.2" |
||||
}, |
}, |
||||
"devDependencies": { |
"devDependencies": { |
||||
"@angular-devkit/build-angular": "~0.803.20", |
"@angular-devkit/build-angular": "~0.900.3", |
||||
"@angular/cli": "~9.0.3", |
"@angular/cli": "~9.0.3", |
||||
"@angular/compiler-cli": "~8.2.14", |
"@angular/compiler-cli": "~9.0.2", |
||||
"@angular/language-service": "~8.2.14", |
"@angular/language-service": "~9.0.2", |
||||
"@angularclass/hmr": "^2.1.3", |
"@ngxs/logger-plugin": "^3.6.2", |
||||
"@ngxs/hmr-plugin": "^3.5.1", |
"@types/jasmine": "~3.5.0", |
||||
"@ngxs/logger-plugin": "^3.5.1", |
|
||||
"@types/jasmine": "~3.3.8", |
|
||||
"@types/jasminewd2": "~2.0.3", |
"@types/jasminewd2": "~2.0.3", |
||||
"@types/node": "~8.9.4", |
"@types/node": "^12.11.1", |
||||
"codelyzer": "^5.0.0", |
"codelyzer": "^5.1.2", |
||||
"jasmine-core": "~3.4.0", |
"jasmine-core": "~3.5.0", |
||||
"jasmine-spec-reporter": "~4.2.1", |
"jasmine-spec-reporter": "~4.2.1", |
||||
"karma": "~4.1.0", |
"karma": "~4.3.0", |
||||
"karma-chrome-launcher": "~2.2.0", |
"karma-chrome-launcher": "~3.1.0", |
||||
"karma-coverage-istanbul-reporter": "~2.0.1", |
"karma-coverage-istanbul-reporter": "~2.1.0", |
||||
"karma-jasmine": "~2.0.1", |
"karma-jasmine": "~2.0.1", |
||||
"karma-jasmine-html-reporter": "^1.4.0", |
"karma-jasmine-html-reporter": "^1.4.2", |
||||
"ngxs-schematic": "^1.1.9", |
"ngxs-schematic": "^1.1.9", |
||||
"protractor": "~5.4.0", |
"protractor": "~5.4.3", |
||||
"ts-node": "~7.0.0", |
"ts-node": "~8.3.0", |
||||
"tslint": "~5.15.0", |
"tslint": "~5.18.0", |
||||
"typescript": "~3.7.5" |
"typescript": "~3.7.5" |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,25 +0,0 @@ |
|||||
export const environment = { |
|
||||
production: false, |
|
||||
hmr: true, |
|
||||
application: { |
|
||||
name: 'MyProjectName', |
|
||||
logoUrl: '', |
|
||||
}, |
|
||||
oAuthConfig: { |
|
||||
issuer: 'https://localhost:44305', |
|
||||
clientId: 'MyProjectName_App', |
|
||||
dummyClientSecret: '1q2w3e*', |
|
||||
scope: 'MyProjectName', |
|
||||
showDebugInformation: true, |
|
||||
oidc: false, |
|
||||
requireHttps: true, |
|
||||
}, |
|
||||
apis: { |
|
||||
default: { |
|
||||
url: 'https://localhost:44305', |
|
||||
}, |
|
||||
}, |
|
||||
localization: { |
|
||||
defaultResourceName: 'MyProjectName', |
|
||||
}, |
|
||||
}; |
|
||||
@ -1,20 +1,13 @@ |
|||||
import { enableProdMode } from '@angular/core'; |
import { enableProdMode } from '@angular/core'; |
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
||||
import { BootstrapModuleFn as Bootstrap, hmr, WebpackModule } from '@ngxs/hmr-plugin'; |
|
||||
|
|
||||
import { AppModule } from './app/app.module'; |
import { AppModule } from './app/app.module'; |
||||
import { environment } from './environments/environment'; |
import { environment } from './environments/environment'; |
||||
|
|
||||
declare const module: WebpackModule; |
|
||||
|
|
||||
if (environment.production) { |
if (environment.production) { |
||||
enableProdMode(); |
enableProdMode(); |
||||
} |
} |
||||
|
|
||||
const bootstrap: Bootstrap = () => platformBrowserDynamic().bootstrapModule(AppModule); |
platformBrowserDynamic() |
||||
|
.bootstrapModule(AppModule) |
||||
if (environment.hmr) { |
.catch(err => console.error(err)); |
||||
hmr(module, bootstrap).catch(err => console.error(err)); |
|
||||
} else { |
|
||||
bootstrap().catch(err => console.log(err)); |
|
||||
} |
|
||||
|
|||||
Loading…
Reference in new issue