Skip to content

Commit 87cd8a7

Browse files
author
josemanuelep
committed
Initial commit
0 parents  commit 87cd8a7

21 files changed

+650
-0
lines changed

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# angular-vkwfzw
2+
3+
[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/angular-vkwfzw)

Diff for: angular.json

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"angular.io-example": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"assets": [
22+
"src/favicon.ico",
23+
"src/assets"
24+
],
25+
"styles": [
26+
"src/styles.css"
27+
],
28+
"scripts": []
29+
},
30+
"configurations": {
31+
"production": {
32+
"fileReplacements": [
33+
{
34+
"replace": "src/environments/environment.ts",
35+
"with": "src/environments/environment.prod.ts"
36+
}
37+
],
38+
"optimization": true,
39+
"outputHashing": "all",
40+
"sourceMap": false,
41+
"extractCss": true,
42+
"namedChunks": false,
43+
"aot": true,
44+
"extractLicenses": true,
45+
"vendorChunk": false,
46+
"buildOptimizer": true,
47+
"budgets": [
48+
{
49+
"type": "initial",
50+
"maximumWarning": "2mb",
51+
"maximumError": "5mb"
52+
}
53+
]
54+
}
55+
}
56+
},
57+
"serve": {
58+
"builder": "@angular-devkit/build-angular:dev-server",
59+
"options": {
60+
"browserTarget": "angular.io-example:build"
61+
},
62+
"configurations": {
63+
"production": {
64+
"browserTarget": "angular.io-example:build:production"
65+
}
66+
}
67+
},
68+
"extract-i18n": {
69+
"builder": "@angular-devkit/build-angular:extract-i18n",
70+
"options": {
71+
"browserTarget": "angular.io-example:build"
72+
}
73+
},
74+
"test": {
75+
"builder": "@angular-devkit/build-angular:karma",
76+
"options": {
77+
"main": "src/test.ts",
78+
"polyfills": "src/polyfills.ts",
79+
"tsConfig": "tsconfig.spec.json",
80+
"karmaConfig": "karma.conf.js",
81+
"assets": [
82+
"src/favicon.ico",
83+
"src/assets"
84+
],
85+
"styles": [
86+
"src/styles.css"
87+
],
88+
"scripts": []
89+
}
90+
},
91+
"lint": {
92+
"builder": "@angular-devkit/build-angular:tslint",
93+
"options": {
94+
"tsConfig": [
95+
"tsconfig.app.json",
96+
"tsconfig.spec.json",
97+
"e2e/tsconfig.json"
98+
],
99+
"exclude": [
100+
"**/node_modules/**"
101+
]
102+
}
103+
},
104+
"e2e": {
105+
"builder": "@angular-devkit/build-angular:protractor",
106+
"options": {
107+
"protractorConfig": "e2e/protractor.conf.js",
108+
"devServerTarget": "angular.io-example:serve"
109+
},
110+
"configurations": {
111+
"production": {
112+
"devServerTarget": "angular.io-example:serve:production"
113+
}
114+
}
115+
}
116+
}
117+
}
118+
},
119+
"defaultProject": "angular.io-example"
120+
}

Diff for: package.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "narbplrvdxg.angular",
3+
"version": "0.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"rxjs": "6.5.4",
7+
"tslib": "1.11.1",
8+
"core-js": "2.6.11",
9+
"zone.js": "0.10.2",
10+
"jasmine-core": "2.99.1",
11+
"@angular/core": "8.2.14",
12+
"@angular/forms": "8.2.14",
13+
"@angular/common": "8.2.14",
14+
"@angular/router": "8.2.14",
15+
"jasmine-marbles": "0.6.0",
16+
"@angular/compiler": "8.2.14",
17+
"web-animations-js": "2.3.2",
18+
"@angular/animations": "8.2.14",
19+
"@angular/platform-browser": "8.2.14",
20+
"angular-in-memory-web-api": "0.8.0",
21+
"@angular/platform-browser-dynamic": "8.2.14"
22+
},
23+
"scripts": {
24+
"ng": "ng",
25+
"start": "ng serve",
26+
"build": "ng build",
27+
"test": "ng test",
28+
"lint": "ng lint",
29+
"e2e": "ng e2e"
30+
},
31+
"devDependencies": {
32+
"@angular-devkit/build-angular": "~0.10.0",
33+
"@angular/cli": "~7.0.2",
34+
"@angular/compiler-cli": "~7.0.0",
35+
"@angular/language-service": "~7.0.0",
36+
"@types/node": "~8.9.4",
37+
"@types/jasmine": "~2.8.8",
38+
"@types/jasminewd2": "~2.0.3",
39+
"codelyzer": "~4.5.0",
40+
"jasmine-core": "~2.99.1",
41+
"jasmine-spec-reporter": "~4.2.1",
42+
"karma": "~3.0.0",
43+
"karma-chrome-launcher": "~2.2.0",
44+
"karma-coverage-istanbul-reporter": "~2.0.1",
45+
"karma-jasmine": "~1.1.2",
46+
"karma-jasmine-html-reporter": "^0.2.2",
47+
"protractor": "~5.4.0",
48+
"ts-node": "~7.0.0",
49+
"tslint": "~5.11.0",
50+
"typescript": "~3.1.1"
51+
}
52+
}

Diff for: src/app/app.component.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
p {
2+
font-family: Lato;
3+
}
4+
5+
/*
6+
Copyright Google LLC. All Rights Reserved.
7+
Use of this source code is governed by an MIT-style license that
8+
can be found in the LICENSE file at http://angular.io/license
9+
*/

Diff for: src/app/app.component.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<app-top-bar></app-top-bar>
2+
3+
<div class="container">
4+
<router-outlet></router-outlet>
5+
</div>
6+
7+
<!--
8+
Copyright Google LLC. All Rights Reserved.
9+
Use of this source code is governed by an MIT-style license that
10+
can be found in the LICENSE file at http://angular.io/license
11+
-->

Diff for: src/app/app.component.ts

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-root',
5+
templateUrl: './app.component.html',
6+
styleUrls: [ './app.component.css' ]
7+
})
8+
export class AppComponent {}
9+
10+
11+
/*
12+
Copyright Google LLC. All Rights Reserved.
13+
Use of this source code is governed by an MIT-style license that
14+
can be found in the LICENSE file at http://angular.io/license
15+
*/

Diff for: src/app/app.module.ts

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { RouterModule } from '@angular/router';
4+
import { ReactiveFormsModule } from '@angular/forms';
5+
6+
import { AppComponent } from './app.component';
7+
import { TopBarComponent } from './top-bar/top-bar.component';
8+
import { ProductListComponent } from './product-list/product-list.component';
9+
10+
@NgModule({
11+
imports: [
12+
BrowserModule,
13+
ReactiveFormsModule,
14+
RouterModule.forRoot([
15+
{ path: '', component: ProductListComponent },
16+
])
17+
],
18+
declarations: [
19+
AppComponent,
20+
TopBarComponent,
21+
ProductListComponent
22+
],
23+
bootstrap: [ AppComponent ]
24+
})
25+
export class AppModule { }
26+
27+
28+
/*
29+
Copyright Google LLC. All Rights Reserved.
30+
Use of this source code is governed by an MIT-style license that
31+
can be found in the LICENSE file at http://angular.io/license
32+
*/

Diff for: src/app/product-list/product-list.component.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
/*
4+
Copyright Google LLC. All Rights Reserved.
5+
Use of this source code is governed by an MIT-style license that
6+
can be found in the LICENSE file at http://angular.io/license
7+
*/

Diff for: src/app/product-list/product-list.component.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<h2>Products</h2>
2+
3+
4+
<!--
5+
Copyright Google LLC. All Rights Reserved.
6+
Use of this source code is governed by an MIT-style license that
7+
can be found in the LICENSE file at http://angular.io/license
8+
-->

Diff for: src/app/product-list/product-list.component.ts

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Component } from '@angular/core';
2+
3+
import { products } from '../products';
4+
5+
@Component({
6+
selector: 'app-product-list',
7+
templateUrl: './product-list.component.html',
8+
styleUrls: ['./product-list.component.css']
9+
})
10+
export class ProductListComponent {
11+
products = products;
12+
13+
share() {
14+
window.alert('The product has been shared!');
15+
}
16+
}
17+
18+
19+
/*
20+
Copyright Google LLC. All Rights Reserved.
21+
Use of this source code is governed by an MIT-style license that
22+
can be found in the LICENSE file at http://angular.io/license
23+
*/

Diff for: src/app/products.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export const products = [
2+
{
3+
name: 'Phone XL',
4+
price: 799,
5+
description: 'A large phone with one of the best screens'
6+
},
7+
{
8+
name: 'Phone Mini',
9+
price: 699,
10+
description: 'A great phone with one of the best cameras'
11+
},
12+
{
13+
name: 'Phone Standard',
14+
price: 299,
15+
description: ''
16+
}
17+
];
18+
19+
20+
/*
21+
Copyright Google LLC. All Rights Reserved.
22+
Use of this source code is governed by an MIT-style license that
23+
can be found in the LICENSE file at http://angular.io/license
24+
*/

Diff for: src/app/top-bar/top-bar.component.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
/*
4+
Copyright Google LLC. All Rights Reserved.
5+
Use of this source code is governed by an MIT-style license that
6+
can be found in the LICENSE file at http://angular.io/license
7+
*/

Diff for: src/app/top-bar/top-bar.component.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<a [routerLink]="['/']">
2+
<h1>My Store</h1>
3+
</a>
4+
5+
<a [routerLink]="['/cart']" class="button fancy-button"><i class="material-icons">shopping_cart</i>Checkout</a>
6+
7+
<!--
8+
Copyright Google LLC. All Rights Reserved.
9+
Use of this source code is governed by an MIT-style license that
10+
can be found in the LICENSE file at http://angular.io/license
11+
-->

Diff for: src/app/top-bar/top-bar.component.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-top-bar',
5+
templateUrl: './top-bar.component.html',
6+
styleUrls: ['./top-bar.component.css']
7+
})
8+
export class TopBarComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}
16+
17+
18+
/*
19+
Copyright Google LLC. All Rights Reserved.
20+
Use of this source code is governed by an MIT-style license that
21+
can be found in the LICENSE file at http://angular.io/license
22+
*/

Diff for: src/assets/shipping.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"type": "Overnight",
4+
"price": 25.99
5+
},
6+
{
7+
"type": "2-Day",
8+
"price": 9.99
9+
},
10+
{
11+
"type": "Postal",
12+
"price": 2.99
13+
}
14+
]

Diff for: src/environments/environment.prod.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const environment = {
2+
production: true
3+
};
4+
5+
6+
/*
7+
Copyright Google LLC. All Rights Reserved.
8+
Use of this source code is governed by an MIT-style license that
9+
can be found in the LICENSE file at http://angular.io/license
10+
*/

0 commit comments

Comments
 (0)