diff --git a/push/client/google-services.json b/push/client/google-services.json
deleted file mode 100644
index 801d15115..000000000
--- a/push/client/google-services.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "project_info": {
- "project_number": "532700130849",
- "firebase_url": "https://pushdemo-91541.firebaseio.com",
- "project_id": "pushdemo-91541",
- "storage_bucket": "pushdemo-91541.appspot.com"
- },
- "client": [
- {
- "client_info": {
- "mobilesdk_app_id": "1:532700130849:android:613f8f86b87d2b4f",
- "android_client_info": {
- "package_name": "com.ionicframework.push124502"
- }
- },
- "oauth_client": [
- {
- "client_id": "532700130849-3jkdct47910lrqg4nsr672gglt88gsee.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyAvOyd-swn7C98RrT5ToMmkjeewl4cgr44"
- }
- ],
- "services": {
- "analytics_service": {
- "status": 1
- },
- "appinvite_service": {
- "status": 1,
- "other_platform_oauth_client": []
- },
- "ads_service": {
- "status": 2
- }
- }
- }
- ],
- "configuration_version": "1"
-}
\ No newline at end of file
diff --git a/sw-cache/.editorconfig b/sw-cache/.editorconfig
index 51873bc7f..67864a44a 100644
--- a/sw-cache/.editorconfig
+++ b/sw-cache/.editorconfig
@@ -1,17 +1,13 @@
-# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-
-# We recommend you to keep these unchanged
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.md]
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.md]
+insert_final_newline = false
trim_trailing_whitespace = false
\ No newline at end of file
diff --git a/sw-cache/.gitignore b/sw-cache/.gitignore
index 0aba7a747..028657410 100644
--- a/sw-cache/.gitignore
+++ b/sw-cache/.gitignore
@@ -19,16 +19,14 @@ npm-debug.log*
.tmp/
.versions/
coverage/
-dist/
+www/
node_modules/
tmp/
temp/
-hooks/
platforms/
plugins/
plugins/android.json
plugins/ios.json
-www/
$RECYCLE.BIN/
.DS_Store
diff --git a/sw-cache/README.md b/sw-cache/README.md
index b553a2368..0902b2a2b 100644
--- a/sw-cache/README.md
+++ b/sw-cache/README.md
@@ -1 +1 @@
-Source code for the blog post: https://golb.hplar.ch/p/A-closer-look-at-the-Cache-API
\ No newline at end of file
+Source code for the blog post: https://golb.hplar.ch/2018/01/A-closer-look-at-the-Cache-API.html
\ No newline at end of file
diff --git a/sw-cache/angular.json b/sw-cache/angular.json
new file mode 100644
index 000000000..c7f0dcf24
--- /dev/null
+++ b/sw-cache/angular.json
@@ -0,0 +1,104 @@
+{
+ "$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
+ "version": 1,
+ "defaultProject": "app",
+ "newProjectRoot": "projects",
+ "projects": {
+ "app": {
+ "root": "",
+ "sourceRoot": "src",
+ "projectType": "application",
+ "prefix": "app",
+ "schematics": {},
+ "architect": {
+ "build": {
+ "builder": "@angular-devkit/build-angular:browser",
+ "options": {
+ "outputPath": "www",
+ "index": "src/index.html",
+ "main": "src/main.ts",
+ "polyfills": "src/polyfills.ts",
+ "tsConfig": "src/tsconfig.app.json",
+ "assets": [
+ "src/manifest.json",
+ "src/service-worker.js",
+ {
+ "glob": "**/*",
+ "input": "src/assets",
+ "output": "assets"
+ }
+ ],
+ "styles": [
+ {
+ "input": "src/theme/variables.scss"
+ },
+ {
+ "input": "src/global.scss"
+ }
+ ],
+ "scripts": []
+ },
+ "configurations": {
+ "production": {
+ "fileReplacements": [
+ {
+ "replace": "src/environments/environment.ts",
+ "with": "src/environments/environment.prod.ts"
+ }
+ ],
+ "optimization": true,
+ "outputHashing": "all",
+ "sourceMap": false,
+ "extractCss": true,
+ "namedChunks": false,
+ "aot": true,
+ "extractLicenses": true,
+ "vendorChunk": false,
+ "buildOptimizer": true,
+ "budgets": [
+ {
+ "type": "initial",
+ "maximumWarning": "2mb",
+ "maximumError": "5mb"
+ }
+ ]
+ }
+ }
+ },
+ "serve": {
+ "builder": "@angular-devkit/build-angular:dev-server",
+ "options": {
+ "browserTarget": "app:build"
+ },
+ "configurations": {
+ "production": {
+ "browserTarget": "app:build:production"
+ }
+ }
+ },
+ "lint": {
+ "builder": "@angular-devkit/build-angular:tslint",
+ "options": {
+ "tsConfig": [
+ "src/tsconfig.app.json"
+ ],
+ "exclude": [
+ "**/node_modules/**"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "cli": {
+ "defaultCollection": "@ionic/angular-toolkit"
+ },
+ "schematics": {
+ "@ionic/angular-toolkit:component": {
+ "styleext": "scss"
+ },
+ "@ionic/angular-toolkit:page": {
+ "styleext": "scss"
+ }
+ }
+}
diff --git a/sw-cache/config.xml b/sw-cache/config.xml
deleted file mode 100644
index b672db6b6..000000000
--- a/sw-cache/config.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
- MyApp
- An awesome Ionic/Cordova app.
- Ionic Framework Team
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/sw-cache/ionic.config.json b/sw-cache/ionic.config.json
index 2513f4030..e87169d52 100644
--- a/sw-cache/ionic.config.json
+++ b/sw-cache/ionic.config.json
@@ -1,7 +1,5 @@
{
- "name": "sw-cache",
- "app_id": "",
- "type": "ionic-angular",
+ "name": "soandsoblank",
"integrations": {},
- "hooks": {}
+ "type": "angular"
}
diff --git a/sw-cache/package.json b/sw-cache/package.json
index 9836b4eb8..92d6acf41 100644
--- a/sw-cache/package.json
+++ b/sw-cache/package.json
@@ -1,30 +1,43 @@
{
- "name": "sw-cache",
+ "name": "soandsoblank",
"version": "0.0.1",
- "private": true,
"scripts": {
- "start": "ionic-app-scripts serve",
- "clean": "ionic-app-scripts clean",
- "build": "ionic-app-scripts build",
- "lint": "ionic-app-scripts lint"
+ "ng": "ng",
+ "start": "ng serve",
+ "build": "ng build",
+ "build-prod": "ng build --prod",
+ "serve-www": "http-server www -o -a localhost -p 1234",
+ "lint": "ng lint"
},
+ "private": true,
"dependencies": {
- "@angular/common": "6.1.10",
- "@angular/compiler": "6.1.10",
- "@angular/compiler-cli": "6.1.10",
- "@angular/core": "6.1.10",
- "@angular/forms": "6.1.10",
- "@angular/platform-browser": "6.1.10",
- "@angular/platform-browser-dynamic": "6.1.10",
- "@ionic/storage": "2.2.0",
- "ionic-angular": "3.9.2",
- "ionicons": "4.4.8",
+ "@angular/common": "7.1.1",
+ "@angular/core": "7.1.1",
+ "@angular/forms": "7.1.1",
+ "@angular/http": "7.1.1",
+ "@angular/platform-browser": "7.1.1",
+ "@angular/platform-browser-dynamic": "7.1.1",
+ "@angular/router": "7.1.1",
+ "@ionic/angular": "4.0.0-beta.17",
+ "core-js": "2.6.0",
"rxjs": "6.3.3",
- "rxjs-compat": "6.3.3",
"zone.js": "0.8.26"
},
"devDependencies": {
- "@ionic/app-scripts": "3.2.1",
- "typescript": "2.7.2"
+ "@angular-devkit/architect": "0.11.1",
+ "@angular-devkit/build-angular": "0.11.1",
+ "@angular-devkit/core": "7.1.1",
+ "@angular-devkit/schematics": "7.1.1",
+ "@angular/cli": "7.1.1",
+ "@angular/compiler": "7.1.1",
+ "@angular/compiler-cli": "7.1.1",
+ "@angular/language-service": "7.1.1",
+ "@ionic/angular-toolkit": "1.2.0",
+ "@types/node": "10.12.12",
+ "codelyzer": "4.5.0",
+ "http-server": "0.11.1",
+ "ts-node": "7.0.1",
+ "tslint": "5.11.0",
+ "typescript": "3.1.6"
}
}
diff --git a/sw-cache/src/app/app.component.html b/sw-cache/src/app/app.component.html
new file mode 100644
index 000000000..13b96776e
--- /dev/null
+++ b/sw-cache/src/app/app.component.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/sw-cache/src/app/app.component.ts b/sw-cache/src/app/app.component.ts
index 9d2a7680e..a01b00aa0 100644
--- a/sw-cache/src/app/app.component.ts
+++ b/sw-cache/src/app/app.component.ts
@@ -1,10 +1,8 @@
import {Component} from '@angular/core';
-import {HomePage} from '../pages/home/home';
@Component({
- templateUrl: 'app.html'
+ selector: 'app-root',
+ templateUrl: 'app.component.html'
})
-export class MyApp {
- rootPage: any = HomePage;
+export class AppComponent {
}
-
diff --git a/sw-cache/src/app/app.html b/sw-cache/src/app/app.html
deleted file mode 100644
index 7b88c9699..000000000
--- a/sw-cache/src/app/app.html
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/sw-cache/src/app/app.module.ts b/sw-cache/src/app/app.module.ts
index 4b65cc7e3..9b9e3f311 100644
--- a/sw-cache/src/app/app.module.ts
+++ b/sw-cache/src/app/app.module.ts
@@ -1,26 +1,31 @@
+import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
-import {ErrorHandler, NgModule} from '@angular/core';
-import {IonicApp, IonicErrorHandler, IonicModule} from 'ionic-angular';
-import {MyApp} from './app.component';
-import {HomePage} from '../pages/home/home';
+import {RouteReuseStrategy, RouterModule, Routes} from '@angular/router';
+import {IonicModule, IonicRouteStrategy} from '@ionic/angular';
+import {AppComponent} from './app.component';
+import {HomePage} from './home/home.page';
+import {CommonModule} from '@angular/common';
+import {FormsModule} from '@angular/forms';
+import {HttpClientModule} from '@angular/common/http';
+
+const routes: Routes = [
+ {path: '', redirectTo: 'home', pathMatch: 'full'},
+ {path: 'home', component: HomePage},
+];
@NgModule({
- declarations: [
- MyApp,
- HomePage
- ],
- imports: [
- BrowserModule,
- IonicModule.forRoot(MyApp)
- ],
- bootstrap: [IonicApp],
- entryComponents: [
- MyApp,
- HomePage
- ],
+ declarations: [AppComponent, HomePage],
+ entryComponents: [],
+ imports: [BrowserModule,
+ CommonModule,
+ HttpClientModule,
+ FormsModule,
+ IonicModule.forRoot(),
+ RouterModule.forRoot(routes, {useHash: true})],
providers: [
- {provide: ErrorHandler, useClass: IonicErrorHandler}
- ]
+ {provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
+ ],
+ bootstrap: [AppComponent]
})
export class AppModule {
}
diff --git a/sw-cache/src/app/app.scss b/sw-cache/src/app/app.scss
deleted file mode 100644
index 1392a6e29..000000000
--- a/sw-cache/src/app/app.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-// http://ionicframework.com/docs/theming/
-
-
-// App Global Sass
-// --------------------------------------------------
-// Put style rules here that you want to apply globally. These
-// styles are for the entire app and not just one component.
-// Additionally, this file can be also used as an entry point
-// to import other Sass files to be included in the output CSS.
-//
-// Shared Sass variables, which can be used to adjust Ionic's
-// default Sass variables, belong in "theme/variables.scss".
-//
-// To declare rules for a specific mode, create a child rule
-// for the .md, .ios, or .wp mode classes. The mode class is
-// automatically applied to the
element in the app.
diff --git a/sw-cache/src/app/home/home.page.html b/sw-cache/src/app/home/home.page.html
new file mode 100644
index 000000000..2e8940927
--- /dev/null
+++ b/sw-cache/src/app/home/home.page.html
@@ -0,0 +1,15 @@
+
+
+
+ Ionic Blank
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw-cache/src/app/home/home.page.scss b/sw-cache/src/app/home/home.page.scss
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/sw-cache/src/app/home/home.page.scss
@@ -0,0 +1 @@
+
diff --git a/sw-cache/src/pages/home/home.ts b/sw-cache/src/app/home/home.page.ts
similarity index 76%
rename from sw-cache/src/pages/home/home.ts
rename to sw-cache/src/app/home/home.page.ts
index c64099d90..3187bf7bc 100644
--- a/sw-cache/src/pages/home/home.ts
+++ b/sw-cache/src/app/home/home.page.ts
@@ -1,10 +1,12 @@
-import {Component} from '@angular/core';
+import {Component, OnInit} from '@angular/core';
@Component({
- selector: 'page-home',
- templateUrl: 'home.html'
+ selector: 'app-home',
+ templateUrl: 'home.page.html',
+ styleUrls: ['home.page.scss']
})
-export class HomePage {
+export class HomePage implements OnInit {
+
pictures: string[] = [];
constructor() {
@@ -15,7 +17,7 @@ export class HomePage {
});
}
- ionViewWillEnter() {
+ ngOnInit() {
this.listCache();
}
diff --git a/sw-cache/src/app/main.ts b/sw-cache/src/app/main.ts
deleted file mode 100644
index 6af7a5b2a..000000000
--- a/sw-cache/src/app/main.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-
-import { AppModule } from './app.module';
-
-platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/sw-cache/src/assets/icon/favicon.ico b/sw-cache/src/assets/icon/favicon.ico
deleted file mode 100644
index d76fa29d6..000000000
Binary files a/sw-cache/src/assets/icon/favicon.ico and /dev/null differ
diff --git a/sw-cache/src/assets/icon/favicon.png b/sw-cache/src/assets/icon/favicon.png
new file mode 100644
index 000000000..51888a7bb
Binary files /dev/null and b/sw-cache/src/assets/icon/favicon.png differ
diff --git a/sw-cache/src/assets/imgs/logo.png b/sw-cache/src/assets/imgs/logo.png
deleted file mode 100644
index 80f631d73..000000000
Binary files a/sw-cache/src/assets/imgs/logo.png and /dev/null differ
diff --git a/sw-cache/src/environments/environment.prod.ts b/sw-cache/src/environments/environment.prod.ts
new file mode 100644
index 000000000..3612073bc
--- /dev/null
+++ b/sw-cache/src/environments/environment.prod.ts
@@ -0,0 +1,3 @@
+export const environment = {
+ production: true
+};
diff --git a/sw-cache/src/environments/environment.ts b/sw-cache/src/environments/environment.ts
new file mode 100644
index 000000000..ad4196020
--- /dev/null
+++ b/sw-cache/src/environments/environment.ts
@@ -0,0 +1,15 @@
+// The file contents for the current environment will overwrite these during build.
+// The build system defaults to the dev environment which uses `environment.ts`, but if you do
+// `ng build --env=prod` then `environment.prod.ts` will be used instead.
+// The list of which env maps to which file can be found in `.angular-cli.json`.
+export const environment = {
+ production: false
+};
+
+/*
+ * In development mode, to ignore zone related error stack frames such as
+ * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
+ * import the following file, but please comment it out in production mode
+ * because it will have performance impact when throw error
+ */
+// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
diff --git a/sw-cache/src/global.scss b/sw-cache/src/global.scss
new file mode 100644
index 000000000..163d4eb4c
--- /dev/null
+++ b/sw-cache/src/global.scss
@@ -0,0 +1,10 @@
+// http://ionicframework.com/docs/theming/
+@import '~@ionic/angular/css/core.css';
+@import '~@ionic/angular/css/normalize.css';
+@import '~@ionic/angular/css/structure.css';
+@import '~@ionic/angular/css/typography.css';
+@import '~@ionic/angular/css/padding.css';
+@import '~@ionic/angular/css/float-elements.css';
+@import '~@ionic/angular/css/text-alignment.css';
+@import '~@ionic/angular/css/text-transformation.css';
+@import '~@ionic/angular/css/flex-utils.css';
diff --git a/sw-cache/src/index.html b/sw-cache/src/index.html
index d4532fb06..6f330d2b5 100644
--- a/sw-cache/src/index.html
+++ b/sw-cache/src/index.html
@@ -1,19 +1,23 @@
-
+
-
+
Ionic App
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/sw-cache/src/main.ts b/sw-cache/src/main.ts
new file mode 100644
index 000000000..d05547b95
--- /dev/null
+++ b/sw-cache/src/main.ts
@@ -0,0 +1,12 @@
+import {enableProdMode} from '@angular/core';
+import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
+
+import {AppModule} from './app/app.module';
+import {environment} from './environments/environment';
+
+if (environment.production) {
+ enableProdMode();
+}
+
+platformBrowserDynamic().bootstrapModule(AppModule)
+ .catch(err => console.log(err));
diff --git a/sw-cache/src/manifest.json b/sw-cache/src/manifest.json
index ceeca9325..f5777aa0d 100644
--- a/sw-cache/src/manifest.json
+++ b/sw-cache/src/manifest.json
@@ -3,11 +3,6 @@
"short_name": "sw-cache",
"start_url": "index.html",
"display": "standalone",
- "icons": [{
- "src": "assets/imgs/logo.png",
- "sizes": "512x512",
- "type": "image/png"
- }],
"background_color": "#4e8ef7",
"theme_color": "#4e8ef7"
-}
\ No newline at end of file
+}
diff --git a/sw-cache/src/pages/home/home.html b/sw-cache/src/pages/home/home.html
deleted file mode 100644
index 448528640..000000000
--- a/sw-cache/src/pages/home/home.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- Ionic Blank
-
-
-
-
-
-
-
-
-
![]()
-
-
-
-
diff --git a/sw-cache/src/pages/home/home.scss b/sw-cache/src/pages/home/home.scss
deleted file mode 100644
index d4cc8fc1e..000000000
--- a/sw-cache/src/pages/home/home.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-page-home {
-
-}
diff --git a/sw-cache/src/polyfills.ts b/sw-cache/src/polyfills.ts
new file mode 100644
index 000000000..349246970
--- /dev/null
+++ b/sw-cache/src/polyfills.ts
@@ -0,0 +1,80 @@
+/**
+ * This file includes polyfills needed by Angular and is loaded before the app.
+ * You can add your own extra polyfills to this file.
+ *
+ * This file is divided into 2 sections:
+ * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
+ * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
+ * file.
+ *
+ * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
+ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
+ * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
+ *
+ * Learn more in https://angular.io/guide/browser-support
+ */
+
+/***************************************************************************************************
+ * BROWSER POLYFILLS
+ */
+
+/** IE9, IE10 and IE11 requires all of the following polyfills. **/
+// import 'core-js/es6/symbol';
+// import 'core-js/es6/object';
+// import 'core-js/es6/function';
+// import 'core-js/es6/parse-int';
+// import 'core-js/es6/parse-float';
+// import 'core-js/es6/number';
+// import 'core-js/es6/math';
+// import 'core-js/es6/string';
+// import 'core-js/es6/date';
+// import 'core-js/es6/array';
+// import 'core-js/es6/regexp';
+// import 'core-js/es6/map';
+// import 'core-js/es6/weak-map';
+// import 'core-js/es6/set';
+
+/**
+ * If the application will be indexed by Google Search, the following is required.
+ * Googlebot uses a renderer based on Chrome 41.
+ * https://developers.google.com/search/docs/guides/rendering
+ **/
+// import 'core-js/es6/array';
+
+/** IE10 and IE11 requires the following for NgClass support on SVG elements */
+// import 'classlist.js'; // Run `npm install --save classlist.js`.
+
+/** IE10 and IE11 requires the following for the Reflect API. */
+// import 'core-js/es6/reflect';
+
+/**
+ * Web Animations `@angular/platform-browser/animations`
+ * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
+ * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
+ **/
+// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
+
+/**
+ * By default, zone.js will patch all possible macroTask and DomEvents
+ * user can disable parts of macroTask/DomEvents patch by setting following flags
+ */
+
+// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
+// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
+// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
+
+/*
+* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
+* with the following flag, it will bypass `zone.js` patch for IE/Edge
+*/
+// (window as any).__Zone_enable_cross_context_check = true;
+
+/***************************************************************************************************
+ * Zone JS is required by default for Angular itself.
+ */
+import 'zone.js/dist/zone'; // Included with Angular CLI.
+
+
+/***************************************************************************************************
+ * APPLICATION IMPORTS
+ */
diff --git a/sw-cache/src/service-worker.js b/sw-cache/src/service-worker.js
index c2ed38ecc..19a9e80ba 100644
--- a/sw-cache/src/service-worker.js
+++ b/sw-cache/src/service-worker.js
@@ -1,5 +1,4 @@
-
-this.addEventListener('install', event => event.waitUntil(loadPictures()));
+self.addEventListener('install', event => event.waitUntil(loadPictures()));
async function loadPictures() {
const cache = await caches.open('images');
@@ -12,7 +11,7 @@ async function loadPictures() {
];
await cache.addAll(pictures);
- const allClients = await clients.matchAll({ includeUncontrolled: true });
+ const allClients = await clients.matchAll({includeUncontrolled: true});
for (const client of allClients) {
client.postMessage('imagesCached');
}
diff --git a/sw-cache/src/theme/variables.scss b/sw-cache/src/theme/variables.scss
index 18276a461..4b39b39fd 100644
--- a/sw-cache/src/theme/variables.scss
+++ b/sw-cache/src/theme/variables.scss
@@ -1,88 +1,77 @@
// Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/theming/
-// Font path is used to include ionicons,
-// roboto, and noto sans fonts
-$font-path: "../assets/fonts";
-
-
-// The app direction is used to include
-// rtl styles in your app. For more info, please see:
-// http://ionicframework.com/docs/theming/rtl-support/
-$app-direction: ltr;
-
-
-@import "ionic.globals";
-
-
-// Shared Variables
-// --------------------------------------------------
-// To customize the look and feel of this app, you can override
-// the Sass variables found in Ionic's source scss files.
-// To view all the possible Ionic variables, see:
-// http://ionicframework.com/docs/theming/overriding-ionic-variables/
-
-
-
-
-// Named Color Variables
-// --------------------------------------------------
-// Named colors makes it easy to reuse colors on various components.
-// It's highly recommended to change the default colors
-// to match your app's branding. Ionic uses a Sass map of
-// colors so you can add, rename and remove colors as needed.
-// The "primary" color is the only required color in the map.
-
-$colors: (
- primary: #488aff,
- secondary: #32db64,
- danger: #f53d3d,
- light: #f4f4f4,
- dark: #222
-);
-
-
-// App iOS Variables
-// --------------------------------------------------
-// iOS only Sass variables can go here
-
-
-
-
-// App Material Design Variables
-// --------------------------------------------------
-// Material Design only Sass variables can go here
-
-
-
-
-// App Windows Variables
-// --------------------------------------------------
-// Windows only Sass variables can go here
-
-
-
-
-// App Theme
-// --------------------------------------------------
-// Ionic apps can have different themes applied, which can
-// then be future customized. This import comes last
-// so that the above variables are used and Ionic's
-// default are overridden.
-
-@import "ionic.theme.default";
-
-
-// Ionicons
-// --------------------------------------------------
-// The premium icon font for Ionic. For more info, please see:
-// http://ionicframework.com/docs/ionicons/
-
-@import "ionic.ionicons";
-
-
-// Fonts
-// --------------------------------------------------
-
-@import "roboto";
-@import "noto-sans";
+/** Ionic CSS Variables **/
+:root {
+ /** primary **/
+ --ion-color-primary: #3880ff;
+ --ion-color-primary-rgb: 56, 128, 255;
+ --ion-color-primary-contrast: #ffffff;
+ --ion-color-primary-contrast-rgb: 255, 255, 255;
+ --ion-color-primary-shade: #3171e0;
+ --ion-color-primary-tint: #4c8dff;
+
+ /** secondary **/
+ --ion-color-secondary: #0cd1e8;
+ --ion-color-secondary-rgb: 12, 209, 232;
+ --ion-color-secondary-contrast: #ffffff;
+ --ion-color-secondary-contrast-rgb: 255, 255, 255;
+ --ion-color-secondary-shade: #0bb8cc;
+ --ion-color-secondary-tint: #24d6ea;
+
+ /** tertiary **/
+ --ion-color-tertiary: #7044ff;
+ --ion-color-tertiary-rgb: 112, 68, 255;
+ --ion-color-tertiary-contrast: #ffffff;
+ --ion-color-tertiary-contrast-rgb: 255, 255, 255;
+ --ion-color-tertiary-shade: #633ce0;
+ --ion-color-tertiary-tint: #7e57ff;
+
+ /** success **/
+ --ion-color-success: #10dc60;
+ --ion-color-success-rgb: 16, 220, 96;
+ --ion-color-success-contrast: #ffffff;
+ --ion-color-success-contrast-rgb: 255, 255, 255;
+ --ion-color-success-shade: #0ec254;
+ --ion-color-success-tint: #28e070;
+
+ /** warning **/
+ --ion-color-warning: #ffce00;
+ --ion-color-warning-rgb: 255, 206, 0;
+ --ion-color-warning-contrast: #ffffff;
+ --ion-color-warning-contrast-rgb: 255, 255, 255;
+ --ion-color-warning-shade: #e0b500;
+ --ion-color-warning-tint: #ffd31a;
+
+ /** danger **/
+ --ion-color-danger: #f04141;
+ --ion-color-danger-rgb: 245, 61, 61;
+ --ion-color-danger-contrast: #ffffff;
+ --ion-color-danger-contrast-rgb: 255, 255, 255;
+ --ion-color-danger-shade: #d33939;
+ --ion-color-danger-tint: #f25454;
+
+ /** dark **/
+ --ion-color-dark: #222428;
+ --ion-color-dark-rgb: 34, 34, 34;
+ --ion-color-dark-contrast: #ffffff;
+ --ion-color-dark-contrast-rgb: 255, 255, 255;
+ --ion-color-dark-shade: #1e2023;
+ --ion-color-dark-tint: #383a3e;
+
+ /** medium **/
+ --ion-color-medium: #989aa2;
+ --ion-color-medium-rgb: 152, 154, 162;
+ --ion-color-medium-contrast: #ffffff;
+ --ion-color-medium-contrast-rgb: 255, 255, 255;
+ --ion-color-medium-shade: #86888f;
+ --ion-color-medium-tint: #a2a4ab;
+
+ /** light **/
+ --ion-color-light: #f4f5f8;
+ --ion-color-light-rgb: 244, 244, 244;
+ --ion-color-light-contrast: #000000;
+ --ion-color-light-contrast-rgb: 0, 0, 0;
+ --ion-color-light-shade: #d7d8da;
+ --ion-color-light-tint: #f5f6f9;
+}
diff --git a/sw-cache/src/tsconfig.app.json b/sw-cache/src/tsconfig.app.json
new file mode 100644
index 000000000..df54a637b
--- /dev/null
+++ b/sw-cache/src/tsconfig.app.json
@@ -0,0 +1,7 @@
+{
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "../out-tsc/app",
+ "types": []
+ }
+}
diff --git a/sw-cache/tsconfig.json b/sw-cache/tsconfig.json
index 5d531426d..46aeded1b 100644
--- a/sw-cache/tsconfig.json
+++ b/sw-cache/tsconfig.json
@@ -1,28 +1,21 @@
{
+ "compileOnSave": false,
"compilerOptions": {
- "allowSyntheticDefaultImports": true,
+ "baseUrl": "./",
+ "outDir": "./dist/out-tsc",
+ "sourceMap": true,
"declaration": false,
+ "module": "es2015",
+ "moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
- "lib": [
- "dom",
- "es2015"
+ "target": "es5",
+ "typeRoots": [
+ "node_modules/@types"
],
- "module": "es2015",
- "moduleResolution": "node",
- "sourceMap": true,
- "target": "es5"
- },
- "include": [
- "src/**/*.ts"
- ],
- "exclude": [
- "node_modules",
- "src/**/*.spec.ts",
- "src/**/__tests__/*.ts"
- ],
- "compileOnSave": false,
- "atom": {
- "rewriteTsconfig": false
+ "lib": [
+ "es2018",
+ "dom"
+ ]
}
}
diff --git a/sw-cache/tslint.json b/sw-cache/tslint.json
index dd8e8d887..33dbbf5ff 100644
--- a/sw-cache/tslint.json
+++ b/sw-cache/tslint.json
@@ -1,11 +1,138 @@
{
- "rules": {
- "no-duplicate-variable": true,
- "no-unused-variable": [
- true
- ]
- },
"rulesDirectory": [
- "node_modules/tslint-eslint-rules/dist/rules"
- ]
+ "node_modules/codelyzer"
+ ],
+ "rules": {
+ "arrow-return-shorthand": true,
+ "callable-types": true,
+ "class-name": true,
+ "comment-format": [
+ true,
+ "check-space"
+ ],
+ "curly": true,
+ "deprecation": {
+ "severity": "warn"
+ },
+ "eofline": true,
+ "forin": true,
+ "import-spacing": true,
+ "indent": [
+ true,
+ "spaces"
+ ],
+ "interface-over-type-literal": true,
+ "label-position": true,
+ "max-line-length": [
+ true,
+ 140
+ ],
+ "member-access": false,
+ "member-ordering": [
+ true,
+ {
+ "order": [
+ "static-field",
+ "instance-field",
+ "static-method",
+ "instance-method"
+ ]
+ }
+ ],
+ "no-arg": true,
+ "no-bitwise": true,
+ "no-console": [
+ true,
+ "debug",
+ "info",
+ "time",
+ "timeEnd",
+ "trace"
+ ],
+ "no-construct": true,
+ "no-debugger": true,
+ "no-duplicate-super": true,
+ "no-empty": false,
+ "no-empty-interface": true,
+ "no-eval": true,
+ "no-inferrable-types": [
+ true,
+ "ignore-params"
+ ],
+ "no-misused-new": true,
+ "no-non-null-assertion": true,
+ "no-shadowed-variable": true,
+ "no-string-literal": false,
+ "no-string-throw": true,
+ "no-switch-case-fall-through": true,
+ "no-trailing-whitespace": true,
+ "no-unnecessary-initializer": true,
+ "no-unused-expression": true,
+ "no-use-before-declare": true,
+ "no-var-keyword": true,
+ "object-literal-sort-keys": false,
+ "one-line": [
+ true,
+ "check-open-brace",
+ "check-catch",
+ "check-else",
+ "check-whitespace"
+ ],
+ "prefer-const": true,
+ "quotemark": [
+ true,
+ "single"
+ ],
+ "radix": true,
+ "semicolon": [
+ true,
+ "always"
+ ],
+ "triple-equals": [
+ true,
+ "allow-null-check"
+ ],
+ "typedef-whitespace": [
+ true,
+ {
+ "call-signature": "nospace",
+ "index-signature": "nospace",
+ "parameter": "nospace",
+ "property-declaration": "nospace",
+ "variable-declaration": "nospace"
+ }
+ ],
+ "unified-signatures": true,
+ "variable-name": false,
+ "whitespace": [
+ true,
+ "check-branch",
+ "check-decl",
+ "check-operator",
+ "check-separator",
+ "check-type"
+ ],
+ "directive-selector": [
+ true,
+ "attribute",
+ "app",
+ "camelCase"
+ ],
+ "component-selector": [
+ true,
+ "element",
+ "app",
+ "page",
+ "kebab-case"
+ ],
+ "no-output-on-prefix": true,
+ "use-input-property-decorator": true,
+ "use-output-property-decorator": true,
+ "use-host-property-decorator": true,
+ "no-input-rename": true,
+ "no-output-rename": true,
+ "use-life-cycle-interface": true,
+ "use-pipe-transform-interface": true,
+ "directive-class-suffix": true
+ }
}