Migrate to angular 5.1.1 Adjusted some visuals Fixed some errors Formatted all sources to LF endlinepull/443/head
@ -1,58 +1,55 @@ | |||
{ | |||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |||
"project": { | |||
"name": "WebSPA" | |||
}, | |||
"apps": [ | |||
{ | |||
"root": "Client", | |||
"outDir": "wwwroot", | |||
"assets": [ | |||
"assets", | |||
"favicon.ico" | |||
], | |||
"index": "index.html", | |||
"main": "main.ts", | |||
"polyfills": "polyfills.ts", | |||
"test": "test.ts", | |||
"tsconfig": "tsconfig.app.json", | |||
"testTsconfig": "tsconfig.spec.json", | |||
"prefix": "app", | |||
"styles": [ | |||
"globals.scss", | |||
"../node_modules/bootstrap/scss/bootstrap.scss" | |||
], | |||
"scripts": [], | |||
"environmentSource": "environments/environment.ts", | |||
"environments": { | |||
"dev": "environments/environment.ts", | |||
"prod": "environments/environment.prod.ts" | |||
} | |||
} | |||
], | |||
"e2e": { | |||
"protractor": { | |||
"config": "./protractor.conf.js" | |||
} | |||
}, | |||
"lint": [ | |||
{ | |||
"project": "Client/tsconfig.app.json" | |||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |||
"project": { | |||
"name": "WebSPA" | |||
}, | |||
{ | |||
"project": "Client/tsconfig.spec.json" | |||
"apps": [{ | |||
"root": "Client", | |||
"outDir": "wwwroot", | |||
"assets": [ | |||
"assets", | |||
"favicon.ico" | |||
], | |||
"index": "index.html", | |||
"main": "main.ts", | |||
"polyfills": "polyfills.ts", | |||
"test": "test.ts", | |||
"tsconfig": "tsconfig.app.json", | |||
"testTsconfig": "tsconfig.spec.json", | |||
"prefix": "app", | |||
"styles": [ | |||
"globals.scss", | |||
"../node_modules/bootstrap/scss/bootstrap.scss" | |||
], | |||
"scripts": [], | |||
"environmentSource": "environments/environment.ts", | |||
"environments": { | |||
"dev": "environments/environment.ts", | |||
"prod": "environments/environment.prod.ts" | |||
} | |||
}], | |||
"e2e": { | |||
"protractor": { | |||
"config": "./protractor.conf.js" | |||
} | |||
}, | |||
{ | |||
"project": "e2e/tsconfig.e2e.json" | |||
} | |||
], | |||
"test": { | |||
"karma": { | |||
"config": "./karma.conf.js" | |||
"lint": [{ | |||
"project": "Client/tsconfig.app.json" | |||
}, | |||
{ | |||
"project": "Client/tsconfig.spec.json" | |||
}, | |||
{ | |||
"project": "e2e/tsconfig.e2e.json" | |||
} | |||
], | |||
"test": { | |||
"karma": { | |||
"config": "./karma.conf.js" | |||
} | |||
}, | |||
"defaults": { | |||
"styleExt": "scss", | |||
"component": {} | |||
} | |||
}, | |||
"defaults": { | |||
"styleExt": "scss", | |||
"component": {} | |||
} | |||
} | |||
} |
@ -0,0 +1,4 @@ | |||
{ | |||
"repoId": "bccb75c8-567f-4f97-923c-d56cd1208aa5", | |||
"lastSync": 0 | |||
} |
@ -1,7 +1,7 @@ | |||
export class Guid { | |||
static newGuid() { | |||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | |||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | |||
let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | |||
return v.toString(16); | |||
}); | |||
} | |||
@ -1,18 +1,21 @@ | |||
<!doctype html> | |||
<html> | |||
<head> | |||
<meta charset="utf-8"> | |||
<title>eShopConContainers.WebSPA</title> | |||
<base href="/"> | |||
<meta charset="utf-8"> | |||
<title>eShopConContainers.WebSPA</title> | |||
<base href="/"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | |||
</head> | |||
<body> | |||
<esh-app> | |||
<div class="preloading"> | |||
<i class="fa fa-spinner fa-spin fa-5x" aria-hidden="true"></i> | |||
</div> | |||
</esh-app> | |||
<esh-app> | |||
<div class="preloading"> | |||
<i class="fa fa-spinner fa-spin fa-5x" aria-hidden="true"></i> | |||
</div> | |||
</esh-app> | |||
</body> | |||
</html> | |||
</html> |
@ -1,23 +1,18 @@ | |||
@import './variables'; | |||
.esh-app { | |||
&-footer { | |||
$margin: 2.5rem; | |||
$padding: 2.5rem; | |||
background-color: $color-background-darker; | |||
border-top: $border-light solid $color-foreground-bright; | |||
margin-top: $margin; | |||
padding-bottom: $padding; | |||
padding-top: $padding; | |||
width: 100%; | |||
$height: 50px; | |||
&-brand { | |||
height: $height; | |||
width: 230px; | |||
} | |||
} | |||
} | |||
} |
@ -1,57 +1,44 @@ | |||
@import '../../variables'; | |||
.esh-campaign_detail { | |||
min-height: 80vh; | |||
margin-top: 1rem; | |||
&-section { | |||
padding: 1rem 0; | |||
&--right { | |||
text-align: right; | |||
} | |||
} | |||
&-titles { | |||
padding-bottom: 1rem; | |||
padding-top: 2rem; | |||
} | |||
&-title { | |||
text-transform: uppercase; | |||
} | |||
&-items { | |||
&--border { | |||
border-bottom: $border-light solid $color-foreground-bright; | |||
padding: .5rem 0; | |||
&:last-of-type { | |||
border-color: transparent; | |||
} | |||
} | |||
} | |||
$item-height: 8rem; | |||
&-item { | |||
font-size: $font-size-m; | |||
font-weight: $font-weight-semilight; | |||
&--middle { | |||
line-height: $item-height; | |||
@media screen and (max-width: $media-screen-s) { | |||
line-height: $font-size-m; | |||
} | |||
} | |||
&--mark { | |||
color: $color-secondary; | |||
} | |||
} | |||
&-image { | |||
height: $item-height; | |||
} | |||
} | |||
} |
@ -1,56 +1,47 @@ | |||
@import '../../variables'; | |||
.esh-orders_detail { | |||
min-height: 80vh; | |||
&-section { | |||
padding: 1rem 0; | |||
&--right { | |||
text-align: right; | |||
} | |||
} | |||
&-titles { | |||
padding-bottom: 1rem; | |||
padding-top: 2rem; | |||
justify-content: space-between; | |||
align-items: right; | |||
} | |||
&-title { | |||
text-transform: uppercase; | |||
} | |||
&-items { | |||
justify-content: space-between; | |||
align-items: right; | |||
&--border { | |||
border-bottom: $border-light solid $color-foreground-bright; | |||
padding: .5rem 0; | |||
&:last-of-type { | |||
border-color: transparent; | |||
} | |||
} | |||
} | |||
$item-height: 8rem; | |||
&-item { | |||
font-size: $font-size-m; | |||
font-weight: $font-weight-semilight; | |||
&--middle { | |||
line-height: $item-height; | |||
@media screen and (max-width: $media-screen-s) { | |||
line-height: $font-size-m; | |||
} | |||
} | |||
&--mark { | |||
color: $color-secondary; | |||
} | |||
} | |||
&-image { | |||
height: $item-height; | |||
} | |||
} | |||
} |
@ -1,21 +1,17 @@ | |||
@import '../../../variables'; | |||
.esh-header { | |||
$header-height: 4rem; | |||
background-color: $color-brand; | |||
height: $header-height; | |||
&-back { | |||
color: rgba($color-foreground-brighter, .5); | |||
line-height: $header-height; | |||
text-decoration: none; | |||
text-transform: uppercase; | |||
transition: color $animation-speed-default; | |||
&:hover { | |||
color: $color-foreground-brighter; | |||
transition: color $animation-speed-default; | |||
} | |||
} | |||
} | |||
} |
@ -1,42 +1,35 @@ | |||
<div class="esh-identity"> | |||
<section class="esh-identity-section" | |||
*ngIf="!authenticated"> | |||
<div class="esh-identity-item" | |||
(click)="login()"> | |||
<section class="esh-identity-section" *ngIf="!authenticated"> | |||
<div class="esh-identity-item" (click)="login()"> | |||
<div class="esh-identity-name esh-identity-name--upper">Login</div> | |||
</div> | |||
</section> | |||
<section class="esh-identity-section" | |||
*ngIf="authenticated"> | |||
<section class="esh-identity-section" *ngIf="authenticated"> | |||
<div class="esh-identity-name">{{userName}}</div> | |||
<div class="esh-identity-name">{{getUserName()}}</div> | |||
<img class="esh-identity-image" src="assets/images/arrow-down.png"> | |||
</section> | |||
<section class="esh-identity-drop" | |||
*ngIf="authenticated"> | |||
<section class="esh-identity-drop" *ngIf="authenticated"> | |||
<div class="esh-identity-item" | |||
[routerLink]="['orders']"> | |||
<div class="esh-identity-item" [routerLink]="['orders']"> | |||
<div class="esh-identity-name esh-identity-name--upper">My orders</div> | |||
<img class="esh-identity-image" src="assets/images/my_orders.png"> | |||
</div> | |||
<div class="esh-identity-item" | |||
[routerLink]="['campaigns']"> | |||
<div class="esh-identity-item" [routerLink]="['campaigns']"> | |||
<div class="esh-identity-name esh-identity-name--upper">My campaigns</div> | |||
<img class="esh-identity-image" src="assets/images/my_orders.png"> | |||
</div> | |||
<div class="esh-identity-item" | |||
(click)="logoutClicked($event)"> | |||
<div class="esh-identity-item" (click)="logoutClicked($event)"> | |||
<div class="esh-identity-name esh-identity-name--upper">Log Out</div> | |||
<img class="esh-identity-image" src="assets/images/logout.png"> | |||
</div> | |||
</section> | |||
</div> | |||
</div> |
@ -1,36 +1,28 @@ | |||
@import '../../../variables'; | |||
.esh-pager { | |||
&-wrapper { | |||
padding-top: 1rem; | |||
text-align: center; | |||
} | |||
&-item { | |||
$margin: 5vw; | |||
margin: 0 $margin; | |||
&.is-disabled { | |||
opacity: 0; | |||
pointer-events: none; | |||
} | |||
&--navigable { | |||
cursor: pointer; | |||
display: inline-block; | |||
&:hover { | |||
color: $color-secondary; | |||
} | |||
} | |||
@media screen and (max-width: $media-screen-l) { | |||
font-size: $font-size-s; | |||
} | |||
@media screen and (max-width: $media-screen-m) { | |||
margin: 0 $margin / 2; | |||
} | |||
} | |||
} | |||
} |
@ -1,8 +1,8 @@ | |||
export interface IConfiguration { | |||
catalogUrl: string, | |||
orderingUrl: string, | |||
identityUrl: string, | |||
basketUrl: string, | |||
marketingUrl: string, | |||
activateCampaignDetailFunction: boolean | |||
catalogUrl: string; | |||
orderingUrl: string; | |||
identityUrl: string; | |||
basketUrl: string; | |||
marketingUrl: string; | |||
activateCampaignDetailFunction: boolean; | |||
} |
@ -1,13 +1,13 @@ | |||
{ | |||
"extends": "../tsconfig.json", | |||
"compilerOptions": { | |||
"outDir": "../out-tsc/app", | |||
"module": "es2015", | |||
"baseUrl": "", | |||
"types": [] | |||
}, | |||
"exclude": [ | |||
"test.ts", | |||
"**/*.spec.ts" | |||
] | |||
} | |||
"extends": "../tsconfig.json", | |||
"compilerOptions": { | |||
"outDir": "../out-tsc/app", | |||
"module": "es2015", | |||
"baseUrl": "", | |||
"types": [] | |||
}, | |||
"exclude": [ | |||
"test.ts", | |||
"**/*.spec.ts" | |||
] | |||
} |
@ -1,20 +0,0 @@ | |||
{ | |||
"extends": "../tsconfig.json", | |||
"compilerOptions": { | |||
"outDir": "../out-tsc/spec", | |||
"module": "commonjs", | |||
"target": "es5", | |||
"baseUrl": "", | |||
"types": [ | |||
"jasmine", | |||
"node" | |||
] | |||
}, | |||
"files": [ | |||
"test.ts" | |||
], | |||
"include": [ | |||
"**/*.spec.ts", | |||
"**/*.d.ts" | |||
] | |||
} |
@ -1,5 +0,0 @@ | |||
/* SystemJS module definition */ | |||
declare var module: NodeModule; | |||
interface NodeModule { | |||
id: string; | |||
} |
@ -1,18 +1,18 @@ | |||
{ | |||
"iisSettings": { | |||
"windowsAuthentication": false, | |||
"anonymousAuthentication": true, | |||
"iisExpress": { | |||
"applicationUrl": "http://localhost:5104/", | |||
"sslPort": 0 | |||
"iisSettings": { | |||
"windowsAuthentication": false, | |||
"anonymousAuthentication": true, | |||
"iisExpress": { | |||
"applicationUrl": "http://localhost:5104/", | |||
"sslPort": 0 | |||
} | |||
}, | |||
"profiles": { | |||
"IIS Express": { | |||
"commandName": "IISExpress", | |||
"environmentVariables": { | |||
"ASPNETCORE_ENVIRONMENT": "Production" | |||
} | |||
} | |||
} | |||
}, | |||
"profiles": { | |||
"IIS Express": { | |||
"commandName": "IISExpress", | |||
"environmentVariables": { | |||
"ASPNETCORE_ENVIRONMENT": "Production" | |||
} | |||
} | |||
} | |||
} |
@ -1,22 +1,22 @@ | |||
{ | |||
"CatalogUrl": "http://localhost:5101", | |||
"OrderingUrl": "http://localhost:5102", | |||
"BasketUrl": "http://localhost:5103", | |||
"IdentityUrl": "http://localhost:5105", | |||
"MarketingUrl": "http://localhost:5110", | |||
"CallBackUrl": "http://localhost:5104/", | |||
"UseCustomizationData": true, | |||
"IsClusterEnv": "False", | |||
"ActivateCampaignDetailFunction": true, | |||
"Logging": { | |||
"IncludeScopes": false, | |||
"LogLevel": { | |||
"Default": "Debug", | |||
"System": "Information", | |||
"Microsoft": "Information" | |||
"CatalogUrl": "http://localhost:5101", | |||
"OrderingUrl": "http://localhost:5102", | |||
"BasketUrl": "http://localhost:5103", | |||
"IdentityUrl": "http://localhost:5105", | |||
"MarketingUrl": "http://localhost:5110", | |||
"CallBackUrl": "http://localhost:5104/", | |||
"UseCustomizationData": true, | |||
"IsClusterEnv": "False", | |||
"ActivateCampaignDetailFunction": true, | |||
"Logging": { | |||
"IncludeScopes": false, | |||
"LogLevel": { | |||
"Default": "Debug", | |||
"System": "Information", | |||
"Microsoft": "Information" | |||
} | |||
}, | |||
"ApplicationInsights": { | |||
"InstrumentationKey": "" | |||
} | |||
}, | |||
"ApplicationInsights": { | |||
"InstrumentationKey": "" | |||
} | |||
} |
@ -1,66 +1,67 @@ | |||
{ | |||
"name": "eshopaspnetnetcoredockerspa", | |||
"version": "0.0.0", | |||
"private": true, | |||
"keywords": [ | |||
"aspnetcore", | |||
"entityframework core", | |||
"angular2", | |||
"webpack2", | |||
"typescript2", | |||
"bootstrap4", | |||
"docker" | |||
], | |||
"author": { | |||
"name": "Microsoft", | |||
"email": "cesardl@microsoft.com" | |||
}, | |||
"scripts": { | |||
"ng": "ng", | |||
"rimraf": "rimraf", | |||
"clean": "npm cache clean && npm run rimraf -- node_modules doc typings coverage wwwroot", | |||
"start": "ng serve", | |||
"build:dev": "ng build", | |||
"build:prod": "ng build --prod --aot --extract-css", | |||
"lint:sass": "sass-lint -c .sass-lint.yml Client/**/*.scss --verbose", | |||
"lint:ts": "tslint -c tslint.json Client/**/*.ts" | |||
}, | |||
"dependencies": { | |||
"@angular/common": "^4.0.0", | |||
"@angular/compiler": "^4.0.0", | |||
"@angular/core": "^4.0.0", | |||
"@angular/forms": "^4.0.0", | |||
"@angular/http": "^4.0.0", | |||
"@angular/platform-browser": "^4.0.0", | |||
"@angular/platform-browser-dynamic": "^4.0.0", | |||
"@angular/router": "^4.0.0", | |||
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.22", | |||
"bootstrap": "4.0.0-alpha.5", | |||
"core-js": "^2.4.1", | |||
"file-loader": "0.9.0", | |||
"font-awesome": "4.6.3", | |||
"isomorphic-fetch": "2.2.1", | |||
"normalize.css": "5.0.0", | |||
"preboot": "4.5.2", | |||
"rxjs": "^5.1.0", | |||
"zone.js": "^0.8.4" | |||
}, | |||
"devDependencies": { | |||
"@angular/cli": "^1.3.0", | |||
"@angular/compiler-cli": "^4.0.0", | |||
"@types/core-js": "0.9.34", | |||
"@types/hammerjs": "2.0.33", | |||
"@types/jasmine": "2.5.38", | |||
"@types/node": "~6.0.60", | |||
"@types/protractor": "1.5.20", | |||
"@types/selenium-webdriver": "2.44.26", | |||
"codelyzer": "~2.0.0", | |||
"sass-lint": "1.10.2", | |||
"ts-helpers": "1.1.1", | |||
"ts-node": "~2.0.0", | |||
"tslint": "~4.5.0", | |||
"typedoc": "0.5.0", | |||
"typescript": "~2.2.0", | |||
"url-loader": "0.5.7" | |||
} | |||
"name": "eshopaspnetnetcoredockerspa", | |||
"version": "0.0.0", | |||
"private": true, | |||
"keywords": [ | |||
"aspnetcore", | |||
"entityframework core", | |||
"angular2", | |||
"webpack2", | |||
"typescript2", | |||
"bootstrap4", | |||
"docker" | |||
], | |||
"author": { | |||
"name": "Microsoft", | |||
"email": "cesardl@microsoft.com" | |||
}, | |||
"scripts": { | |||
"ng": "ng", | |||
"rimraf": "rimraf", | |||
"clean": "npm cache clean && npm run rimraf -- node_modules doc typings coverage wwwroot", | |||
"start": "ng serve", | |||
"build:dev": "ng build", | |||
"build:prod": "ng build --prod --aot --extract-css", | |||
"lint:sass": "sass-lint -c .sass-lint.yml Client/**/*.scss --verbose", | |||
"lint:ts": "tslint -c tslint.json Client/**/*.ts" | |||
}, | |||
"dependencies": { | |||
"@angular/common": "5.1.1", | |||
"@angular/compiler": "5.1.1", | |||
"@angular/core": "5.1.1", | |||
"@angular/forms": "5.1.1", | |||
"@angular/http": "5.1.1", | |||
"@angular/platform-browser": "5.1.1", | |||
"@angular/platform-browser-dynamic": "5.1.1", | |||
"@angular/router": "5.1.1", | |||
"@ng-bootstrap/ng-bootstrap": "1.0.0-beta.8", | |||
"bootstrap": "4.0.0-beta.2", | |||
"jquery": "3.2.1", | |||
"popper.js": "1.12.9", | |||
"core-js": "2.5.3", | |||
"file-loader": "1.1.6", | |||
"font-awesome": "4.7.0", | |||
"isomorphic-fetch": "2.2.1", | |||
"normalize.css": "7.0.0", | |||
"preboot": "4.5.2", | |||
"rxjs": "5.5.5", | |||
"zone.js": "^0.8.18" | |||
}, | |||
"devDependencies": { | |||
"@angular/cli": "1.6.1", | |||
"@angular/compiler-cli": "5.1.1", | |||
"@types/core-js": "0.9.43", | |||
"@types/hammerjs": "2.0.35", | |||
"@types/jasmine": "2.8.2", | |||
"@types/node": "8.5.1", | |||
"@types/selenium-webdriver": "3.0.8", | |||
"codelyzer": "4.0.2", | |||
"sass-lint": "1.12.1", | |||
"ts-helpers": "1.1.2", | |||
"ts-node": "4.0.2", | |||
"tslint": "5.8.0", | |||
"typedoc": "0.9.0", | |||
"typescript": "2.6.2", | |||
"url-loader": "0.6.2" | |||
} | |||
} |
@ -1,15 +1,15 @@ | |||
{ | |||
"mode": "modules", | |||
"out": "doc", | |||
"theme": "default", | |||
"ignoreCompilerErrors": "true", | |||
"experimentalDecorators": "true", | |||
"emitDecoratorMetadata": "true", | |||
"target": "ES5", | |||
"moduleResolution": "node", | |||
"preserveConstEnums": "true", | |||
"stripInternal": "true", | |||
"suppressExcessPropertyErrors": "true", | |||
"suppressImplicitAnyIndexErrors": "true", | |||
"module": "commonjs" | |||
} | |||
"mode": "modules", | |||
"out": "doc", | |||
"theme": "default", | |||
"ignoreCompilerErrors": "true", | |||
"experimentalDecorators": "true", | |||
"emitDecoratorMetadata": "true", | |||
"target": "ES5", | |||
"moduleResolution": "node", | |||
"preserveConstEnums": "true", | |||
"stripInternal": "true", | |||
"suppressExcessPropertyErrors": "true", | |||
"suppressImplicitAnyIndexErrors": "true", | |||
"module": "commonjs" | |||
} |
@ -1,14 +1,10 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<configuration> | |||
<!-- | |||
Configure your application settings in appsettings.json. Learn more at https://go.microsoft.com/fwlink/?LinkId=786380 | |||
--> | |||
<system.webServer> | |||
<handlers> | |||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/> | |||
</handlers> | |||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/> | |||
</system.webServer> | |||
<!-- Configure your application settings in appsettings.json. Learn more at https://go.microsoft.com/fwlink/?LinkId=786380 --> | |||
<system.webServer> | |||
<handlers> | |||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> | |||
</handlers> | |||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" /> | |||
</system.webServer> | |||
</configuration> |