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'; |
|||
|
|||
export class AppPage { |
|||
navigateTo() { |
|||
return browser.get(browser.baseUrl) as Promise<any>; |
|||
navigateTo(): Promise<unknown> { |
|||
return browser.get(browser.baseUrl) as Promise<unknown>; |
|||
} |
|||
|
|||
getTitleText() { |
|||
return element(by.css('app-root h1')).getText() as Promise<string>; |
|||
getTitleText(): 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", |
|||
"scripts": { |
|||
"ng": "ng", |
|||
"start": "ng serve", |
|||
"start:hmr": "ng serve --configuration hmr", |
|||
"build": "ng build", |
|||
"build:prod": "ng build --prod", |
|||
"test": "ng test", |
|||
"lint": "ng lint", |
|||
"e2e": "ng e2e" |
|||
}, |
|||
"private": true, |
|||
"dependencies": { |
|||
"@abp/ng.account": "^2.1.0", |
|||
"@abp/ng.identity": "^2.1.0", |
|||
"@abp/ng.setting-management": "^2.1.0", |
|||
"@abp/ng.tenant-management": "^2.1.0", |
|||
"@abp/ng.theme.basic": "^2.1.0", |
|||
"@angular/animations": "~8.2.14", |
|||
"@angular/common": "~8.2.14", |
|||
"@angular/compiler": "~8.2.14", |
|||
"@abp/ng.account": "^2.2.0-rc.7", |
|||
"@abp/ng.identity": "^2.2.0-rc.7", |
|||
"@abp/ng.setting-management": "^2.2.0-rc.7", |
|||
"@abp/ng.tenant-management": "^2.2.0-rc.7", |
|||
"@abp/ng.theme.basic": "^2.2.0-rc.7", |
|||
"@angular/animations": "~9.0.2", |
|||
"@angular/common": "~9.0.2", |
|||
"@angular/compiler": "~9.0.2", |
|||
"@angular/core": "~9.0.2", |
|||
"@angular/forms": "~8.2.14", |
|||
"@angular/platform-browser": "~8.2.14", |
|||
"@angular/platform-browser-dynamic": "~8.2.14", |
|||
"@angular/router": "~8.2.14", |
|||
"@angular/forms": "~9.0.2", |
|||
"@angular/platform-browser": "~9.0.2", |
|||
"@angular/platform-browser-dynamic": "~9.0.2", |
|||
"@angular/router": "~9.0.2", |
|||
"rxjs": "~6.5.4", |
|||
"tslib": "^1.10.0", |
|||
"zone.js": "~0.9.1" |
|||
"zone.js": "~0.10.2" |
|||
}, |
|||
"devDependencies": { |
|||
"@angular-devkit/build-angular": "~0.803.20", |
|||
"@angular-devkit/build-angular": "~0.900.3", |
|||
"@angular/cli": "~9.0.3", |
|||
"@angular/compiler-cli": "~8.2.14", |
|||
"@angular/language-service": "~8.2.14", |
|||
"@angularclass/hmr": "^2.1.3", |
|||
"@ngxs/hmr-plugin": "^3.5.1", |
|||
"@ngxs/logger-plugin": "^3.5.1", |
|||
"@types/jasmine": "~3.3.8", |
|||
"@angular/compiler-cli": "~9.0.2", |
|||
"@angular/language-service": "~9.0.2", |
|||
"@ngxs/logger-plugin": "^3.6.2", |
|||
"@types/jasmine": "~3.5.0", |
|||
"@types/jasminewd2": "~2.0.3", |
|||
"@types/node": "~8.9.4", |
|||
"codelyzer": "^5.0.0", |
|||
"jasmine-core": "~3.4.0", |
|||
"@types/node": "^12.11.1", |
|||
"codelyzer": "^5.1.2", |
|||
"jasmine-core": "~3.5.0", |
|||
"jasmine-spec-reporter": "~4.2.1", |
|||
"karma": "~4.1.0", |
|||
"karma-chrome-launcher": "~2.2.0", |
|||
"karma-coverage-istanbul-reporter": "~2.0.1", |
|||
"karma": "~4.3.0", |
|||
"karma-chrome-launcher": "~3.1.0", |
|||
"karma-coverage-istanbul-reporter": "~2.1.0", |
|||
"karma-jasmine": "~2.0.1", |
|||
"karma-jasmine-html-reporter": "^1.4.0", |
|||
"karma-jasmine-html-reporter": "^1.4.2", |
|||
"ngxs-schematic": "^1.1.9", |
|||
"protractor": "~5.4.0", |
|||
"ts-node": "~7.0.0", |
|||
"tslint": "~5.15.0", |
|||
"protractor": "~5.4.3", |
|||
"ts-node": "~8.3.0", |
|||
"tslint": "~5.18.0", |
|||
"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 { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
|||
import { BootstrapModuleFn as Bootstrap, hmr, WebpackModule } from '@ngxs/hmr-plugin'; |
|||
|
|||
import { AppModule } from './app/app.module'; |
|||
import { environment } from './environments/environment'; |
|||
|
|||
declare const module: WebpackModule; |
|||
|
|||
if (environment.production) { |
|||
enableProdMode(); |
|||
} |
|||
|
|||
const bootstrap: Bootstrap = () => platformBrowserDynamic().bootstrapModule(AppModule); |
|||
|
|||
if (environment.hmr) { |
|||
hmr(module, bootstrap).catch(err => console.error(err)); |
|||
} else { |
|||
bootstrap().catch(err => console.log(err)); |
|||
} |
|||
platformBrowserDynamic() |
|||
.bootstrapModule(AppModule) |
|||
.catch(err => console.error(err)); |
|||
|
|||
Loading…
Reference in new issue