├── src ├── assets │ ├── .gitkeep │ └── icons │ │ ├── icon-128x128.png │ │ ├── icon-144x144.png │ │ ├── icon-152x152.png │ │ ├── icon-192x192.png │ │ ├── icon-384x384.png │ │ ├── icon-512x512.png │ │ ├── icon-72x72.png │ │ └── icon-96x96.png ├── app │ ├── app.component.scss │ ├── app.module.ts │ ├── app.component.ts │ ├── app.component.spec.ts │ └── app.component.html ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── styles.scss ├── favicon.ico ├── tsconfig.app.json ├── tsconfig.spec.json ├── tslint.json ├── browserslist ├── main.ts ├── index.html ├── test.ts ├── karma.conf.js ├── manifest.json └── polyfills.ts ├── .firebaserc ├── e2e ├── src │ ├── app.po.ts │ └── app.e2e-spec.ts ├── tsconfig.e2e.json └── protractor.conf.js ├── .editorconfig ├── firebase.json ├── tsconfig.json ├── ngsw-config.json ├── .gitignore ├── README.md ├── package.json ├── tslint.json ├── angular.json └── .firebase └── hosting.ZGlzdA.cache /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "pwa-app-a2a23" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/styles.scss: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/favicon.ico -------------------------------------------------------------------------------- /src/assets/icons/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-128x128.png -------------------------------------------------------------------------------- /src/assets/icons/icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-144x144.png -------------------------------------------------------------------------------- /src/assets/icons/icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-152x152.png -------------------------------------------------------------------------------- /src/assets/icons/icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-192x192.png -------------------------------------------------------------------------------- /src/assets/icons/icon-384x384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-384x384.png -------------------------------------------------------------------------------- /src/assets/icons/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-512x512.png -------------------------------------------------------------------------------- /src/assets/icons/icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-72x72.png -------------------------------------------------------------------------------- /src/assets/icons/icon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/Angular-PWA-Tutorial-Application/master/src/assets/icons/icon-96x96.png -------------------------------------------------------------------------------- /src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosting": { 3 | "public": "dist", 4 | "ignore": [ 5 | "firebase.json", 6 | "**/.*", 7 | "**/node_modules/**" 8 | ], 9 | "rewrites": [ 10 | { 11 | "source": "**", 12 | "destination": "/index.html" 13 | } 14 | ] 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "test.ts", 12 | "polyfills.ts" 13 | ], 14 | "include": [ 15 | "**/*.spec.ts", 16 | "**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('workspace-project App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('Welcome to mdb-pwa!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /src/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tslint.json", 3 | "rules": { 4 | "directive-selector": [ 5 | true, 6 | "attribute", 7 | "app", 8 | "camelCase" 9 | ], 10 | "component-selector": [ 11 | true, 12 | "element", 13 | "app", 14 | "kebab-case" 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/browserslist: -------------------------------------------------------------------------------- 1 | # This file is currently used by autoprefixer to adjust CSS to support the below specified browsers 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | # For IE 9-11 support, please uncomment the last line of the file and adjust as needed 5 | > 0.5% 6 | last 2 versions 7 | Firefox ESR 8 | not dead 9 | # IE 9-11 -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "module": "es2015", 9 | "moduleResolution": "node", 10 | "emitDecoratorMetadata": true, 11 | "experimentalDecorators": true, 12 | "target": "es5", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2017", 18 | "dom" 19 | ] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MdbPwa 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /ngsw-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "index": "/index.html", 3 | "assetGroups": [ 4 | { 5 | "name": "app", 6 | "installMode": "prefetch", 7 | "resources": { 8 | "files": [ 9 | "/favicon.ico", 10 | "/index.html", 11 | "/*.css", 12 | "/*.js" 13 | ] 14 | } 15 | }, { 16 | "name": "assets", 17 | "installMode": "lazy", 18 | "updateMode": "prefetch", 19 | "resources": { 20 | "files": [ 21 | "/assets/**" 22 | ] 23 | } 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | 8 | # dependencies 9 | /node_modules 10 | 11 | # IDEs and editors 12 | /.idea 13 | .project 14 | .classpath 15 | .c9/ 16 | *.launch 17 | .settings/ 18 | *.sublime-workspace 19 | 20 | # IDE - VSCode 21 | .vscode/* 22 | !.vscode/settings.json 23 | !.vscode/tasks.json 24 | !.vscode/launch.json 25 | !.vscode/extensions.json 26 | 27 | # misc 28 | /.sass-cache 29 | /connect.lock 30 | /coverage 31 | /libpeerconnection.log 32 | npm-debug.log 33 | yarn-error.log 34 | testem.log 35 | /typings 36 | 37 | # System Files 38 | .DS_Store 39 | Thumbs.db 40 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * In development mode, to ignore zone related error stack frames such as 11 | * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can 12 | * import the following file, but please comment it out in production mode 13 | * because it will have performance impact when throw error 14 | */ 15 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI. 16 | -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; 3 | import { MDBBootstrapModule } from 'angular-bootstrap-md'; 4 | 5 | import { AppComponent } from './app.component'; 6 | import { ServiceWorkerModule } from '@angular/service-worker'; 7 | import { environment } from '../environments/environment'; 8 | 9 | @NgModule({ 10 | declarations: [ 11 | AppComponent 12 | ], 13 | imports: [ 14 | BrowserModule, 15 | ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), 16 | MDBBootstrapModule.forRoot() 17 | ], 18 | providers: [], 19 | bootstrap: [AppComponent], 20 | schemas: [ NO_ERRORS_SCHEMA ] 21 | }) 22 | export class AppModule { } 23 | -------------------------------------------------------------------------------- /e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './src/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: require('path').join(__dirname, './tsconfig.e2e.json') 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { SwUpdate } from '@angular/service-worker'; 2 | import { Component, ViewChild, OnInit } from '@angular/core'; 3 | import { ModalDirective } from 'angular-bootstrap-md'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'] 9 | }) 10 | export class AppComponent implements OnInit { 11 | @ViewChild('basicModal') basicModal: ModalDirective; 12 | 13 | constructor(private swUpdate: SwUpdate) { } 14 | 15 | ngOnInit() { 16 | this.checkForUpdates(); 17 | } 18 | 19 | forceUpdate() { 20 | this.swUpdate.activateUpdate().then(() => { 21 | document.location.reload(); 22 | }); 23 | } 24 | 25 | checkForUpdates() { 26 | if (this.swUpdate.isEnabled) { 27 | this.swUpdate.available.subscribe(() => { 28 | console.log('New Version'); 29 | this.basicModal.show(); 30 | }); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client: { 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, '../coverage'), 20 | reports: ['html', 'lcovonly'], 21 | fixWebpackSourcePaths: true 22 | }, 23 | reporters: ['progress', 'kjhtml'], 24 | port: 9876, 25 | colors: true, 26 | logLevel: config.LOG_INFO, 27 | autoWatch: true, 28 | browsers: ['Chrome'], 29 | singleRun: false 30 | }); 31 | }; -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, async } from '@angular/core/testing'; 2 | import { AppComponent } from './app.component'; 3 | describe('AppComponent', () => { 4 | beforeEach(async(() => { 5 | TestBed.configureTestingModule({ 6 | declarations: [ 7 | AppComponent 8 | ], 9 | }).compileComponents(); 10 | })); 11 | it('should create the app', async(() => { 12 | const fixture = TestBed.createComponent(AppComponent); 13 | const app = fixture.debugElement.componentInstance; 14 | expect(app).toBeTruthy(); 15 | })); 16 | it(`should have as title 'mdb-pwa'`, async(() => { 17 | const fixture = TestBed.createComponent(AppComponent); 18 | const app = fixture.debugElement.componentInstance; 19 | expect(app.title).toEqual('mdb-pwa'); 20 | })); 21 | it('should render title in a h1 tag', async(() => { 22 | const fixture = TestBed.createComponent(AppComponent); 23 | fixture.detectChanges(); 24 | const compiled = fixture.debugElement.nativeElement; 25 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to mdb-pwa!'); 26 | })); 27 | }); 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MdbPwa 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.1.1. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | 25 | ## Further help 26 | 27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 28 | -------------------------------------------------------------------------------- /src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mdb-pwa", 3 | "short_name": "mdb-pwa", 4 | "theme_color": "#1976d2", 5 | "background_color": "#fafafa", 6 | "display": "standalone", 7 | "scope": "/", 8 | "start_url": "/", 9 | "icons": [ 10 | { 11 | "src": "assets/icons/icon-72x72.png", 12 | "sizes": "72x72", 13 | "type": "image/png" 14 | }, 15 | { 16 | "src": "assets/icons/icon-96x96.png", 17 | "sizes": "96x96", 18 | "type": "image/png" 19 | }, 20 | { 21 | "src": "assets/icons/icon-128x128.png", 22 | "sizes": "128x128", 23 | "type": "image/png" 24 | }, 25 | { 26 | "src": "assets/icons/icon-144x144.png", 27 | "sizes": "144x144", 28 | "type": "image/png" 29 | }, 30 | { 31 | "src": "assets/icons/icon-152x152.png", 32 | "sizes": "152x152", 33 | "type": "image/png" 34 | }, 35 | { 36 | "src": "assets/icons/icon-192x192.png", 37 | "sizes": "192x192", 38 | "type": "image/png" 39 | }, 40 | { 41 | "src": "assets/icons/icon-384x384.png", 42 | "sizes": "384x384", 43 | "type": "image/png" 44 | }, 45 | { 46 | "src": "assets/icons/icon-512x512.png", 47 | "sizes": "512x512", 48 | "type": "image/png" 49 | } 50 | ] 51 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mdb-pwa", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "ng": "ng", 6 | "start": "ng serve", 7 | "build": "ng build", 8 | "test": "ng test", 9 | "lint": "ng lint", 10 | "e2e": "ng e2e", 11 | "pwa": "rm -rf dist && ng build --prod && cd dist && http-server -p 8080 && cd .." 12 | }, 13 | "private": true, 14 | "dependencies": { 15 | "@angular/animations": "^6.1.0", 16 | "@angular/common": "^6.1.0", 17 | "@angular/compiler": "^6.1.0", 18 | "@angular/core": "^6.1.0", 19 | "@angular/forms": "^6.1.0", 20 | "@angular/http": "^6.1.0", 21 | "@angular/platform-browser": "^6.1.0", 22 | "@angular/platform-browser-dynamic": "^6.1.0", 23 | "@angular/pwa": "^0.7.5", 24 | "@angular/router": "^6.1.0", 25 | "@angular/service-worker": "^6.1.0", 26 | "@types/chart.js": "^2.7.32", 27 | "angular-bootstrap-md": "^6.2.2", 28 | "angular5-csv": "^0.2.10", 29 | "chart.js": "^2.5.0", 30 | "core-js": "^2.5.4", 31 | "font-awesome": "^4.7.0", 32 | "hammerjs": "^2.0.8", 33 | "rxjs": "^6.0.0", 34 | "zone.js": "~0.8.26" 35 | }, 36 | "devDependencies": { 37 | "@angular-devkit/build-angular": "~0.7.0", 38 | "@angular/cli": "~6.1.1", 39 | "@angular/compiler-cli": "^6.1.0", 40 | "@angular/language-service": "^6.1.0", 41 | "@types/jasmine": "~2.8.6", 42 | "@types/jasminewd2": "~2.0.3", 43 | "@types/node": "~8.9.4", 44 | "codelyzer": "~4.2.1", 45 | "jasmine-core": "~2.99.1", 46 | "jasmine-spec-reporter": "~4.2.1", 47 | "karma": "~2.0.0", 48 | "karma-chrome-launcher": "~2.2.0", 49 | "karma-coverage-istanbul-reporter": "~2.0.0", 50 | "karma-jasmine": "~1.1.1", 51 | "karma-jasmine-html-reporter": "^0.2.2", 52 | "protractor": "^5.4.1", 53 | "ts-node": "~5.0.1", 54 | "tslint": "~5.9.1", 55 | "typescript": "~2.7.2" 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 |

MDB Angular Progressive Web App

12 | 13 |
14 |
15 | 17 | 19 |
20 |
21 | 22 |

Change me to observe app update!

23 | 44 | 45 |
46 | 47 | 51 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rulesDirectory": [ 3 | "node_modules/codelyzer" 4 | ], 5 | "rules": { 6 | "arrow-return-shorthand": true, 7 | "callable-types": true, 8 | "class-name": true, 9 | "comment-format": [ 10 | true, 11 | "check-space" 12 | ], 13 | "curly": true, 14 | "deprecation": { 15 | "severity": "warn" 16 | }, 17 | "eofline": true, 18 | "forin": true, 19 | "import-blacklist": [ 20 | true, 21 | "rxjs/Rx" 22 | ], 23 | "import-spacing": true, 24 | "indent": [ 25 | true, 26 | "spaces" 27 | ], 28 | "interface-over-type-literal": true, 29 | "label-position": true, 30 | "max-line-length": [ 31 | true, 32 | 140 33 | ], 34 | "member-access": false, 35 | "member-ordering": [ 36 | true, 37 | { 38 | "order": [ 39 | "static-field", 40 | "instance-field", 41 | "static-method", 42 | "instance-method" 43 | ] 44 | } 45 | ], 46 | "no-arg": true, 47 | "no-bitwise": true, 48 | "no-console": [ 49 | true, 50 | "debug", 51 | "info", 52 | "time", 53 | "timeEnd", 54 | "trace" 55 | ], 56 | "no-construct": true, 57 | "no-debugger": true, 58 | "no-duplicate-super": true, 59 | "no-empty": false, 60 | "no-empty-interface": true, 61 | "no-eval": true, 62 | "no-inferrable-types": [ 63 | true, 64 | "ignore-params" 65 | ], 66 | "no-misused-new": true, 67 | "no-non-null-assertion": true, 68 | "no-shadowed-variable": true, 69 | "no-string-literal": false, 70 | "no-string-throw": true, 71 | "no-switch-case-fall-through": true, 72 | "no-trailing-whitespace": true, 73 | "no-unnecessary-initializer": true, 74 | "no-unused-expression": true, 75 | "no-use-before-declare": true, 76 | "no-var-keyword": true, 77 | "object-literal-sort-keys": false, 78 | "one-line": [ 79 | true, 80 | "check-open-brace", 81 | "check-catch", 82 | "check-else", 83 | "check-whitespace" 84 | ], 85 | "prefer-const": true, 86 | "quotemark": [ 87 | true, 88 | "single" 89 | ], 90 | "radix": true, 91 | "semicolon": [ 92 | true, 93 | "always" 94 | ], 95 | "triple-equals": [ 96 | true, 97 | "allow-null-check" 98 | ], 99 | "typedef-whitespace": [ 100 | true, 101 | { 102 | "call-signature": "nospace", 103 | "index-signature": "nospace", 104 | "parameter": "nospace", 105 | "property-declaration": "nospace", 106 | "variable-declaration": "nospace" 107 | } 108 | ], 109 | "unified-signatures": true, 110 | "variable-name": false, 111 | "whitespace": [ 112 | true, 113 | "check-branch", 114 | "check-decl", 115 | "check-operator", 116 | "check-separator", 117 | "check-type" 118 | ], 119 | "no-output-on-prefix": true, 120 | "use-input-property-decorator": true, 121 | "use-output-property-decorator": true, 122 | "use-host-property-decorator": true, 123 | "no-input-rename": true, 124 | "no-output-rename": true, 125 | "use-life-cycle-interface": true, 126 | "use-pipe-transform-interface": true, 127 | "component-class-suffix": true, 128 | "directive-class-suffix": true 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/ 22 | // import 'core-js/es6/symbol'; 23 | // import 'core-js/es6/object'; 24 | // import 'core-js/es6/function'; 25 | // import 'core-js/es6/parse-int'; 26 | // import 'core-js/es6/parse-float'; 27 | // import 'core-js/es6/number'; 28 | // import 'core-js/es6/math'; 29 | // import 'core-js/es6/string'; 30 | // import 'core-js/es6/date'; 31 | // import 'core-js/es6/array'; 32 | // import 'core-js/es6/regexp'; 33 | // import 'core-js/es6/map'; 34 | // import 'core-js/es6/weak-map'; 35 | // import 'core-js/es6/set'; 36 | 37 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 38 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 39 | 40 | /** IE10 and IE11 requires the following for the Reflect API. */ 41 | // import 'core-js/es6/reflect'; 42 | 43 | 44 | /** Evergreen browsers require these. **/ 45 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. 46 | import 'core-js/es7/reflect'; 47 | 48 | 49 | /** 50 | * Web Animations `@angular/platform-browser/animations` 51 | * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. 52 | * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). 53 | **/ 54 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 55 | 56 | /** 57 | * By default, zone.js will patch all possible macroTask and DomEvents 58 | * user can disable parts of macroTask/DomEvents patch by setting following flags 59 | */ 60 | 61 | // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 62 | // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 63 | // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 64 | 65 | /* 66 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 67 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 68 | */ 69 | // (window as any).__Zone_enable_cross_context_check = true; 70 | 71 | /*************************************************************************************************** 72 | * Zone JS is required by default for Angular itself. 73 | */ 74 | import 'zone.js/dist/zone'; // Included with Angular CLI. 75 | 76 | 77 | 78 | /*************************************************************************************************** 79 | * APPLICATION IMPORTS 80 | */ 81 | -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "projects": { 6 | "mdb-pwa": { 7 | "root": "", 8 | "sourceRoot": "src", 9 | "projectType": "application", 10 | "prefix": "app", 11 | "schematics": { 12 | "@schematics/angular:component": { 13 | "styleext": "scss" 14 | } 15 | }, 16 | "architect": { 17 | "build": { 18 | "builder": "@angular-devkit/build-angular:browser", 19 | "options": { 20 | "outputPath": "dist", 21 | "index": "src/index.html", 22 | "main": "src/main.ts", 23 | "polyfills": "src/polyfills.ts", 24 | "tsConfig": "src/tsconfig.app.json", 25 | "assets": [ 26 | "src/favicon.ico", 27 | "src/assets", 28 | "src/manifest.json" 29 | ], 30 | 31 | "styles": [ 32 | "node_modules/font-awesome/scss/font-awesome.scss", 33 | "node_modules/angular-bootstrap-md/scss/bootstrap/bootstrap.scss", 34 | "node_modules/angular-bootstrap-md/scss/mdb-free.scss", 35 | "src/styles.scss" 36 | ], 37 | "scripts": [ 38 | "node_modules/chart.js/dist/Chart.js", 39 | "node_modules/hammerjs/hammer.min.js" 40 | ] 41 | }, 42 | "configurations": { 43 | "production": { 44 | "fileReplacements": [{ 45 | "replace": "src/environments/environment.ts", 46 | "with": "src/environments/environment.prod.ts" 47 | }], 48 | "optimization": true, 49 | "outputHashing": "all", 50 | "sourceMap": false, 51 | "extractCss": true, 52 | "namedChunks": false, 53 | "aot": true, 54 | "extractLicenses": true, 55 | "vendorChunk": false, 56 | "buildOptimizer": true, 57 | "serviceWorker": true 58 | } 59 | } 60 | }, 61 | "serve": { 62 | "builder": "@angular-devkit/build-angular:dev-server", 63 | "options": { 64 | "browserTarget": "mdb-pwa:build" 65 | }, 66 | "configurations": { 67 | "production": { 68 | "browserTarget": "mdb-pwa:build:production" 69 | } 70 | } 71 | }, 72 | "extract-i18n": { 73 | "builder": "@angular-devkit/build-angular:extract-i18n", 74 | "options": { 75 | "browserTarget": "mdb-pwa:build" 76 | } 77 | }, 78 | "test": { 79 | "builder": "@angular-devkit/build-angular:karma", 80 | "options": { 81 | "main": "src/test.ts", 82 | "polyfills": "src/polyfills.ts", 83 | "tsConfig": "src/tsconfig.spec.json", 84 | "karmaConfig": "src/karma.conf.js", 85 | "styles": [ 86 | "src/styles.scss" 87 | ], 88 | "scripts": [], 89 | "assets": [ 90 | "src/favicon.ico", 91 | "src/assets", 92 | "src/manifest.json" 93 | ] 94 | } 95 | }, 96 | "lint": { 97 | "builder": "@angular-devkit/build-angular:tslint", 98 | "options": { 99 | "tsConfig": [ 100 | "src/tsconfig.app.json", 101 | "src/tsconfig.spec.json" 102 | ], 103 | "exclude": [ 104 | "**/node_modules/**" 105 | ] 106 | } 107 | } 108 | } 109 | }, 110 | "mdb-pwa-e2e": { 111 | "root": "e2e/", 112 | "projectType": "application", 113 | "architect": { 114 | "e2e": { 115 | "builder": "@angular-devkit/build-angular:protractor", 116 | "options": { 117 | "protractorConfig": "e2e/protractor.conf.js", 118 | "devServerTarget": "mdb-pwa:serve" 119 | }, 120 | "configurations": { 121 | "production": { 122 | "devServerTarget": "mdb-pwa:serve:production" 123 | } 124 | } 125 | }, 126 | "lint": { 127 | "builder": "@angular-devkit/build-angular:tslint", 128 | "options": { 129 | "tsConfig": "e2e/tsconfig.e2e.json", 130 | "exclude": [ 131 | "**/node_modules/**" 132 | ] 133 | } 134 | } 135 | } 136 | } 137 | }, 138 | "defaultProject": "mdb-pwa" 139 | } 140 | -------------------------------------------------------------------------------- /.firebase/hosting.ZGlzdA.cache: -------------------------------------------------------------------------------- 1 | 3rdpartylicenses.txt,1536565999606,57f793b968c9436f990238390cf0b3cbd5aeeb4c0f7c90fbf689f1bb0d2096c2 2 | favicon.ico,1536565999606,e6405ff2ce3b7fb3b1e7409f2ad7d7dc5013462aa2a4b6a8bb72af01c1ca1735 3 | index.html,1536565999606,397e741716622b7840f9168fd5cb173f3c39a282804947b53097c7afe5966dbd 4 | manifest.json,1536565999606,58b187efb6ce83102b74dc0d19cf19f048778f2b75308555a5dfee7ebd0c2740 5 | ngsw.json,1536565999638,295d6f0aa5368a069f8246d1d6f294d8e38d1016aeccc5620587ff2fd88e9f71 6 | runtime.a66f828dca56eeb90e02.js,1536565999606,ecf6c0a2bbe2f5a3910e3ceca139ac868b3223180ab93fbf304f4ffd8b9ebaa5 7 | safety-worker.js,1536565999638,534fc2094d0da4e1acd901906d44da9c13379a3e6848ee06651372a5f424b6c9 8 | worker-basic.min.js,1536565999638,534fc2094d0da4e1acd901906d44da9c13379a3e6848ee06651372a5f424b6c9 9 | assets/icons/icon-128x128.png,1536565999606,9383deaaf0367604045fa24cddc3e4af5100edea6456d2a3b386e026cdc37bd7 10 | assets/icons/icon-144x144.png,1536565999606,58210cb1519151a224a3b1661453ce8cc854dc3f5d555935b0eebd8d09e972b7 11 | assets/icons/icon-152x152.png,1536565999606,96c7948119dc4bad59f77551a7034b05cf77fb0faf7b652282b136cd2d7323d6 12 | assets/icons/icon-192x192.png,1536565999606,1325ccc5f3942574427b6deeccd21adf6dbf0401aa322dd773da3973d5f11bed 13 | assets/icons/icon-384x384.png,1536565999606,7f3a3d434fc28a6eeaa4528cb386d70f43212f96f685721e40c621704486ecb1 14 | assets/icons/icon-72x72.png,1536565999606,bb57e2f17b24f708cb44dc9f33478a2f1c72ed772eab00f552de97df863d3e98 15 | assets/icons/icon-96x96.png,1536565999606,1b57c2c67699bf4d6334e78f6fcdee30308a3c7533a2a03e41051530227491dc 16 | assets/icons/icon-512x512.png,1536565999606,0d63b9844a642c66db2befc1af125aa1381d9b938611defaf1b8006fac1e0292 17 | Roboto-Bold.ecdd509cadbf1ea78b8d.eot,1536565999606,1457730bbd1bb2a9f9d788887548ead09699c8cf4190c5b6579f9d32ef8fb4a8 18 | Roboto-Light.a990f611f2305dc12965.eot,1536565999606,5beeea8355ac375e06013354488818bc280fa8e8c3ff69dfad475aabae47120e 19 | Roboto-Medium.4d9f3f9e5195e7b074bb.eot,1536565999606,5a4c324fce42f9686492abe985dfcb98529d9d20530131aa061fc9bfc7d2782f 20 | Roboto-Regular.30799efa5bf74129468a.eot,1536565999606,b48c873e9228ebe9865f330e1192df51be49efc4722875325d922ffcfe1aa0dd 21 | Roboto-Thin.dfe56a876d0282555d1e.eot,1536565999606,a907089871ddc102fbb13bf5a522a39e06ebbb72888386bafe353ed6a6e61656 22 | polyfills.9f773b75ffcda6bb2a95.js,1536565999606,26234da517bf288c5b76839ec26eeccda8b500ea0c4ceef3299e215e1316e7c1 23 | Roboto-Thin.954bbdeb86483e4ffea0.woff2,1536565999606,468d2429859274ce38941c0db218d98c10668a8fe2061bb7f1e303dd557b68c9 24 | Roboto-Bold.39b2c3031be6b4ea96e2.woff2,1536565999606,3855e0fb989230a9a68d0e3ba9f86c33c088d91c25f3031ef1f67f5cd99e4ad1 25 | Roboto-Bold.dc81817def276b4f2139.woff,1536565999606,9259fc810fb538ba8d2050718657fdf3bf7f0e1b77a82f8e69743375345ac614 26 | Roboto-Light.3b813c2ae0d04909a33a.woff,1536565999606,d07784ecbf5d644dd3c758905c0488c787947f82bcf402b97bae5512d7da663d 27 | Roboto-Light.69f8a0617ac472f78e45.woff2,1536565999606,41cd4edfe1660890ba592b14c53c577cdffb66d780bd113d34528845689cc35f 28 | Roboto-Regular.2751ee43015f9884c364.woff2,1536565999606,b785cc749f84a453c610d127d7de3b491f7776f4410e4e99c00a2926341a8e97 29 | Roboto-Medium.fc78759e93a6cac50458.woff,1536565999606,868b04f11f57921c35612d39de892810a3b3eb7d53a0ac22def6d304bdb038af 30 | Roboto-Regular.ba3dcd8903e3d0af5de7.woff,1536565999606,e472d5be3d7d6604d818d7dff44ded71788fd90f7c22ef32589154fd3137e96c 31 | Roboto-Medium.574fd0b50367f886d359.woff2,1536565999606,468c13218b6f5596f7d41a99158ea7ff2f97e12673193c77743a09dfd4d6d9a4 32 | Roboto-Thin.7500519de3d82e33d158.woff,1536565999606,82d21ae3aa6be1a2b964d121b5eb92124faafdf45ebf582045e2a78ded11ad9c 33 | ngsw-worker.js,1536565999638,abe63796958a1a5725b0c8350b83a323e19b0a9c50bcae5db07a38e519fce33d 34 | Roboto-Medium.894a2ede85a483bf9bed.ttf,1536565999606,0d433d3e23ad2666bde0ba51c57201118c3c76e98564b4985d3f92129f375416 35 | Roboto-Light.46e48ce0628835f68a73.ttf,1536565999606,2ad7a3a04089721d3573e15e50c8c26ccd80fde9d844aacb4491e9613acb9d8d 36 | Roboto-Regular.df7b648ce5356ea1ebce.ttf,1536565999606,9e2f10aeacf4ada616830c98f72f169e17f062c4ef02284688c5c2ceb99c2e69 37 | Roboto-Thin.94998475f6aea65f5584.ttf,1536565999606,6ab8173c1d9a7ec784ef628013517cf5f141f377739cfae03e108d0843dedcb1 38 | Roboto-Bold.e31fcf1885e371e19f57.ttf,1536565999606,6cbbe92ff327dd1b07d2afd8de2a8717103b667dc40f626ae9ee9778e1598199 39 | fontawesome-webfont.af7ae505a9eed503f8b8.woff2,1536565999606,75408058f6c8f9bfcc2e90568ed90df3f6fb09b3c3ee1a8303a4afd3ac0bc921 40 | scripts.968f55bfb751cd0febb2.js,1536565999606,3648bbdca55726a705bd8bb3ef62311e5397b9da3527de854cbfc0e4f2f5ca7e 41 | fontawesome-webfont.674f50d287a8c48dc19b.eot,1536565999606,57bf392fce6fab9ad8d0c1c3a92fdcdf61bda7959c467ebdbf9d3b4dcd9b8080 42 | fontawesome-webfont.b06871f281fee6b241d6.ttf,1536565999606,64aa5f058bdf4b13431435cc4e8efb81c8ffd4db066748fd0cc824a57fba74de 43 | fontawesome-webfont.fee66e712a8a08eef580.woff,1536565999606,4eef8bd2ec905087d7b4ac221dfd85d36d8c1f05d8de2915ecf4351dde4b701e 44 | styles.8fdd0601c66d1f6938f3.css,1536565999606,e4349d64c95041ea4c493e727e2ffca00525afc22669855060d8e3bed06bec5b 45 | fontawesome-webfont.912ec66d7572ff821749.svg,1536565999606,712dd79e06a2a5e7c693fe6f926bef5f7ac278183f910ce1fc5b4c27b6488091 46 | main.aeac114372207db134c5.js,1536565999606,e074806f0faa099be80c4664169a03e6fc32e1ff25f1d26855c06442243ba519 47 | --------------------------------------------------------------------------------