Commit 7dcb21e1ceff7bdae6b06c3ebbc76a07be6d568b
1 parent
c3f504001c
Exists in
master
and in
1 other branch
Agregado componente popover.
Showing
2 changed files
with
11 additions
and
7 deletions
Show diff stats
angular.json
1 | { | 1 | { |
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | "version": 1, | 3 | "version": 1, |
4 | "newProjectRoot": "projects", | 4 | "newProjectRoot": "projects", |
5 | "projects": { | 5 | "projects": { |
6 | "autoservicio": { | 6 | "autoservicio": { |
7 | "projectType": "application", | 7 | "projectType": "application", |
8 | "schematics": { | 8 | "schematics": { |
9 | "@schematics/angular:component": { | 9 | "@schematics/angular:component": { |
10 | "style": "scss" | 10 | "style": "scss" |
11 | } | 11 | } |
12 | }, | 12 | }, |
13 | "root": "", | 13 | "root": "", |
14 | "sourceRoot": "src", | 14 | "sourceRoot": "src", |
15 | "prefix": "app", | 15 | "prefix": "app", |
16 | "architect": { | 16 | "architect": { |
17 | "build": { | 17 | "build": { |
18 | "builder": "@angular-devkit/build-angular:browser", | 18 | "builder": "@angular-devkit/build-angular:browser", |
19 | "options": { | 19 | "options": { |
20 | "outputPath": "dist/autoservicio", | 20 | "outputPath": "dist/autoservicio", |
21 | "index": "src/index.html", | 21 | "index": "src/index.html", |
22 | "main": "src/main.ts", | 22 | "main": "src/main.ts", |
23 | "polyfills": "src/polyfills.ts", | 23 | "polyfills": "src/polyfills.ts", |
24 | "tsConfig": "tsconfig.app.json", | 24 | "tsConfig": "tsconfig.app.json", |
25 | "assets": [ | 25 | "assets": [ |
26 | "src/favicon.ico", | 26 | "src/favicon.ico", |
27 | "src/assets" | 27 | "src/assets" |
28 | ], | 28 | ], |
29 | "styles": [ | 29 | "styles": [ |
30 | "node_modules/bootstrap/dist/css/bootstrap.min.css", | 30 | "./node_modules/bootstrap/dist/css/bootstrap.min.css", |
31 | "node_modules/font-awesome/css/font-awesome.min.css", | 31 | "./node_modules/font-awesome/css/font-awesome.min.css", |
32 | "src/styles.scss" | 32 | "src/styles.scss" |
33 | ], | 33 | ], |
34 | "scripts": [ | 34 | "scripts": [ |
35 | "node_modules/jquery/dist/jquery.min.js", | 35 | "./node_modules/jquery/dist/jquery.min.js", |
36 | "node_modules/popper.js/dist/umd/popper.min.js", | 36 | "./node_modules/popper.js/dist/umd/popper.min.js", |
37 | "node_modules/bootstrap/dist/js/bootstrap.min.js" | 37 | "./node_modules/bootstrap/dist/js/bootstrap.min.js" |
38 | ] | 38 | ] |
39 | }, | 39 | }, |
40 | "configurations": { | 40 | "configurations": { |
41 | "production": { | 41 | "production": { |
42 | "fileReplacements": [ | 42 | "fileReplacements": [ |
43 | { | 43 | { |
44 | "replace": "src/environments/environment.ts", | 44 | "replace": "src/environments/environment.ts", |
45 | "with": "src/environments/environment.prod.ts" | 45 | "with": "src/environments/environment.prod.ts" |
46 | } | 46 | } |
47 | ], | 47 | ], |
48 | "optimization": true, | 48 | "optimization": true, |
49 | "outputHashing": "all", | 49 | "outputHashing": "all", |
50 | "sourceMap": false, | 50 | "sourceMap": false, |
51 | "extractCss": true, | 51 | "extractCss": true, |
52 | "namedChunks": false, | 52 | "namedChunks": false, |
53 | "aot": true, | 53 | "aot": true, |
54 | "extractLicenses": true, | 54 | "extractLicenses": true, |
55 | "vendorChunk": false, | 55 | "vendorChunk": false, |
56 | "buildOptimizer": true, | 56 | "buildOptimizer": true, |
57 | "budgets": [ | 57 | "budgets": [ |
58 | { | 58 | { |
59 | "type": "initial", | 59 | "type": "initial", |
60 | "maximumWarning": "2mb", | 60 | "maximumWarning": "2mb", |
61 | "maximumError": "5mb" | 61 | "maximumError": "5mb" |
62 | } | 62 | } |
63 | ] | 63 | ] |
64 | } | 64 | } |
65 | } | 65 | } |
66 | }, | 66 | }, |
67 | "serve": { | 67 | "serve": { |
68 | "builder": "@angular-devkit/build-angular:dev-server", | 68 | "builder": "@angular-devkit/build-angular:dev-server", |
69 | "options": { | 69 | "options": { |
70 | "browserTarget": "autoservicio:build" | 70 | "browserTarget": "autoservicio:build" |
71 | }, | 71 | }, |
72 | "configurations": { | 72 | "configurations": { |
73 | "production": { | 73 | "production": { |
74 | "browserTarget": "autoservicio:build:production" | 74 | "browserTarget": "autoservicio:build:production" |
75 | } | 75 | } |
76 | } | 76 | } |
77 | }, | 77 | }, |
78 | "extract-i18n": { | 78 | "extract-i18n": { |
79 | "builder": "@angular-devkit/build-angular:extract-i18n", | 79 | "builder": "@angular-devkit/build-angular:extract-i18n", |
80 | "options": { | 80 | "options": { |
81 | "browserTarget": "autoservicio:build" | 81 | "browserTarget": "autoservicio:build" |
82 | } | 82 | } |
83 | }, | 83 | }, |
84 | "test": { | 84 | "test": { |
85 | "builder": "@angular-devkit/build-angular:karma", | 85 | "builder": "@angular-devkit/build-angular:karma", |
86 | "options": { | 86 | "options": { |
87 | "main": "src/test.ts", | 87 | "main": "src/test.ts", |
88 | "polyfills": "src/polyfills.ts", | 88 | "polyfills": "src/polyfills.ts", |
89 | "tsConfig": "tsconfig.spec.json", | 89 | "tsConfig": "tsconfig.spec.json", |
90 | "karmaConfig": "karma.conf.js", | 90 | "karmaConfig": "karma.conf.js", |
91 | "assets": [ | 91 | "assets": [ |
92 | "src/favicon.ico", | 92 | "src/favicon.ico", |
93 | "src/assets" | 93 | "src/assets" |
94 | ], | 94 | ], |
95 | "styles": [ | 95 | "styles": [ |
96 | "./node_modules/bootstrap/dist/css/bootstrap.min.css", | ||
96 | "src/styles.scss" | 97 | "src/styles.scss" |
97 | ], | 98 | ], |
98 | "scripts": [] | 99 | "scripts": [] |
99 | } | 100 | } |
100 | }, | 101 | }, |
101 | "lint": { | 102 | "lint": { |
102 | "builder": "@angular-devkit/build-angular:tslint", | 103 | "builder": "@angular-devkit/build-angular:tslint", |
103 | "options": { | 104 | "options": { |
104 | "tsConfig": [ | 105 | "tsConfig": [ |
105 | "tsconfig.app.json", | 106 | "tsconfig.app.json", |
106 | "tsconfig.spec.json", | 107 | "tsconfig.spec.json", |
107 | "e2e/tsconfig.json" | 108 | "e2e/tsconfig.json" |
108 | ], | 109 | ], |
109 | "exclude": [ | 110 | "exclude": [ |
110 | "**/node_modules/**" | 111 | "**/node_modules/**" |
111 | ] | 112 | ] |
112 | } | 113 | } |
113 | }, | 114 | }, |
114 | "e2e": { | 115 | "e2e": { |
115 | "builder": "@angular-devkit/build-angular:protractor", | 116 | "builder": "@angular-devkit/build-angular:protractor", |
116 | "options": { | 117 | "options": { |
117 | "protractorConfig": "e2e/protractor.conf.js", | 118 | "protractorConfig": "e2e/protractor.conf.js", |
118 | "devServerTarget": "autoservicio:serve" | 119 | "devServerTarget": "autoservicio:serve" |
119 | }, | 120 | }, |
120 | "configurations": { | 121 | "configurations": { |
121 | "production": { | 122 | "production": { |
122 | "devServerTarget": "autoservicio:serve:production" | 123 | "devServerTarget": "autoservicio:serve:production" |
123 | } | 124 | } |
124 | } | 125 | } |
125 | } | 126 | } |
126 | } | 127 | } |
127 | }}, | 128 | } |
129 | }, | ||
128 | "defaultProject": "autoservicio" | 130 | "defaultProject": "autoservicio" |
129 | } | 131 | } |
src/app/app.module.ts
1 | //#region MODULES | 1 | //#region MODULES |
2 | import { BrowserModule } from '@angular/platform-browser'; | 2 | import { BrowserModule } from '@angular/platform-browser'; |
3 | import { NgModule } from '@angular/core'; | 3 | import { NgModule } from '@angular/core'; |
4 | import { AppRoutingModule } from './app-routing.module'; | 4 | import { AppRoutingModule } from './app-routing.module'; |
5 | import { HttpClientModule } from '@angular/common/http'; | 5 | import { HttpClientModule } from '@angular/common/http'; |
6 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | 6 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
7 | import { TooltipModule } from 'ngx-bootstrap/tooltip'; | 7 | import { TooltipModule } from 'ngx-bootstrap/tooltip'; |
8 | import { PopoverModule } from 'ngx-bootstrap/popover'; | ||
8 | //#endregion | 9 | //#endregion |
9 | 10 | ||
10 | //#region COMPONENTS | 11 | //#region COMPONENTS |
11 | import { AppComponent } from './app.component'; | 12 | import { AppComponent } from './app.component'; |
12 | import { HeaderComponent } from './components/header/header.component'; | 13 | import { HeaderComponent } from './components/header/header.component'; |
13 | import { SidebarComponent } from './components/sidebar/sidebar.component'; | 14 | import { SidebarComponent } from './components/sidebar/sidebar.component'; |
14 | import { CarouselComponent } from './components/carousel/carousel.component'; | 15 | import { CarouselComponent } from './components/carousel/carousel.component'; |
15 | import { HomeComponent } from './components/home/home.component'; | 16 | import { HomeComponent } from './components/home/home.component'; |
16 | import { InicioComponent } from './components/inicio/inicio.component'; | 17 | import { InicioComponent } from './components/inicio/inicio.component'; |
17 | import { BusquedaProductosComponent } from './components/busqueda-productos/busqueda-productos.component'; | 18 | import { BusquedaProductosComponent } from './components/busqueda-productos/busqueda-productos.component'; |
18 | import { ConfirmacionCarritoComponent } from './components/confirmacion-carrito/confirmacion-carrito.component'; | 19 | import { ConfirmacionCarritoComponent } from './components/confirmacion-carrito/confirmacion-carrito.component'; |
19 | import { MasterComponent } from './components/master/master.component'; | 20 | import { MasterComponent } from './components/master/master.component'; |
20 | //#endregion | 21 | //#endregion |
21 | 22 | ||
22 | @NgModule({ | 23 | @NgModule({ |
23 | declarations: [ | 24 | declarations: [ |
24 | AppComponent, | 25 | AppComponent, |
25 | HeaderComponent, | 26 | HeaderComponent, |
26 | SidebarComponent, | 27 | SidebarComponent, |
27 | CarouselComponent, | 28 | CarouselComponent, |
28 | HomeComponent, | 29 | HomeComponent, |
29 | InicioComponent, | 30 | InicioComponent, |
30 | BusquedaProductosComponent, | 31 | BusquedaProductosComponent, |
31 | ConfirmacionCarritoComponent, | 32 | ConfirmacionCarritoComponent, |
32 | MasterComponent | 33 | MasterComponent |
33 | ], | 34 | ], |
34 | imports: [ | 35 | imports: [ |
35 | BrowserModule, | 36 | BrowserModule, |
36 | AppRoutingModule, | 37 | AppRoutingModule, |
37 | HttpClientModule, | 38 | HttpClientModule, |
38 | FormsModule, | 39 | FormsModule, |
39 | ReactiveFormsModule, | 40 | ReactiveFormsModule, |
40 | ReactiveFormsModule.withConfig({ warnOnNgModelWithFormControl: 'never' }), | 41 | ReactiveFormsModule.withConfig({ warnOnNgModelWithFormControl: 'never' }), |
41 | TooltipModule.forRoot() | 42 | TooltipModule.forRoot(), |
43 | PopoverModule.forRoot() | ||
42 | ], | 44 | ], |
43 | providers: [], | 45 | providers: [], |
44 | bootstrap: [AppComponent] | 46 | bootstrap: [AppComponent] |
45 | }) | 47 | }) |
46 | export class AppModule { } | 48 | export class AppModule { } |
47 | 49 |