@ofidj/generator-fidj 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/generators/app/index.js +200 -0
- package/generators/app/templates/app2018/.travis.yml +35 -0
- package/generators/app/templates/app2018/LICENSE +21 -0
- package/generators/app/templates/app2018/Procfile +1 -0
- package/generators/app/templates/app2018/README.md +49 -0
- package/generators/app/templates/app2018/config.xml +91 -0
- package/generators/app/templates/app2018/gulpfile.js +63 -0
- package/generators/app/templates/app2018/ionic.config.json +9 -0
- package/generators/app/templates/app2018/package.json +90 -0
- package/generators/app/templates/app2018/platforms/README.md +1 -0
- package/generators/app/templates/app2018/resources/README.md +6 -0
- package/generators/app/templates/app2018/resources/icon.png +0 -0
- package/generators/app/templates/app2018/resources/marketing-01-ipad.png +0 -0
- package/generators/app/templates/app2018/resources/marketing-01-iphone.png +0 -0
- package/generators/app/templates/app2018/resources/marketing-02-ipad.png +0 -0
- package/generators/app/templates/app2018/resources/marketing-02-iphone.png +0 -0
- package/generators/app/templates/app2018/resources/marketing-03-ipad.png +0 -0
- package/generators/app/templates/app2018/resources/marketing-03-iphone.png +0 -0
- package/generators/app/templates/app2018/resources/marketing.json +19 -0
- package/generators/app/templates/app2018/resources/splash.png +0 -0
- package/generators/app/templates/app2018/src/app/app.component.ts +88 -0
- package/generators/app/templates/app2018/src/app/app.html +19 -0
- package/generators/app/templates/app2018/src/app/app.module.ts +40 -0
- package/generators/app/templates/app2018/src/app/app.scss +16 -0
- package/generators/app/templates/app2018/src/app/main.ts +5 -0
- package/generators/app/templates/app2018/src/app/shared/card.model.ts +10 -0
- package/generators/app/templates/app2018/src/app/shared/profile.service.ts +46 -0
- package/generators/app/templates/app2018/src/app/shared/shared.module.ts +35 -0
- package/generators/app/templates/app2018/src/app/shared/storage.service.ts +11 -0
- package/generators/app/templates/app2018/src/app/shared/version.const.ts +5 -0
- package/generators/app/templates/app2018/src/assets/icon/favicon.ico +0 -0
- package/generators/app/templates/app2018/src/assets/imgs/gg.png +0 -0
- package/generators/app/templates/app2018/src/assets/imgs/github.png +0 -0
- package/generators/app/templates/app2018/src/assets/imgs/login.svg +5668 -0
- package/generators/app/templates/app2018/src/assets/imgs/logo.png +0 -0
- package/generators/app/templates/app2018/src/index.html +49 -0
- package/generators/app/templates/app2018/src/manifest.json +13 -0
- package/generators/app/templates/app2018/src/pages/home/home.html +56 -0
- package/generators/app/templates/app2018/src/pages/home/home.scss +3 -0
- package/generators/app/templates/app2018/src/pages/home/home.ts +126 -0
- package/generators/app/templates/app2018/src/pages/login/login.html +56 -0
- package/generators/app/templates/app2018/src/pages/login/login.scss +44 -0
- package/generators/app/templates/app2018/src/pages/login/login.ts +59 -0
- package/generators/app/templates/app2018/src/pages/profile/profile.html +33 -0
- package/generators/app/templates/app2018/src/pages/profile/profile.scss +3 -0
- package/generators/app/templates/app2018/src/pages/profile/profile.ts +36 -0
- package/generators/app/templates/app2018/src/service-worker.js +31 -0
- package/generators/app/templates/app2018/src/theme/variables.scss +88 -0
- package/generators/app/templates/app2018/tests/karma.unit-tests.conf.js +84 -0
- package/generators/app/templates/app2018/tests/unit/app.test.js +10 -0
- package/generators/app/templates/app2018/tsconfig.json +28 -0
- package/generators/app/templates/app2018/tslint.json +8 -0
- package/generators/app/templates/app2018/web.js +21 -0
- package/generators/app/templates/app2021/.travis.yml +32 -0
- package/generators/app/templates/app2021/LICENSE +21 -0
- package/generators/app/templates/app2021/Procfile +1 -0
- package/generators/app/templates/app2021/README.md +45 -0
- package/generators/app/templates/app2021/angular.json +188 -0
- package/generators/app/templates/app2021/browserslist +12 -0
- package/generators/app/templates/app2021/ionic.config.json +9 -0
- package/generators/app/templates/app2021/karma.conf.js +31 -0
- package/generators/app/templates/app2021/package-lock.json +5 -0
- package/generators/app/templates/app2021/package.json +77 -0
- package/generators/app/templates/app2021/platforms/README.md +1 -0
- package/generators/app/templates/app2021/resources/README.md +6 -0
- package/generators/app/templates/app2021/resources/icon.png +0 -0
- package/generators/app/templates/app2021/resources/marketing-01-ipad.png +0 -0
- package/generators/app/templates/app2021/resources/marketing-01-iphone.png +0 -0
- package/generators/app/templates/app2021/resources/marketing-02-ipad.png +0 -0
- package/generators/app/templates/app2021/resources/marketing-02-iphone.png +0 -0
- package/generators/app/templates/app2021/resources/marketing-03-ipad.png +0 -0
- package/generators/app/templates/app2021/resources/marketing-03-iphone.png +0 -0
- package/generators/app/templates/app2021/resources/marketing.json +19 -0
- package/generators/app/templates/app2021/resources/splash.png +0 -0
- package/generators/app/templates/app2021/src/app/app-routing.module.ts +25 -0
- package/generators/app/templates/app2021/src/app/app.component.html +3 -0
- package/generators/app/templates/app2021/src/app/app.component.scss +0 -0
- package/generators/app/templates/app2021/src/app/app.component.spec.ts +50 -0
- package/generators/app/templates/app2021/src/app/app.component.ts +28 -0
- package/generators/app/templates/app2021/src/app/app.module.ts +24 -0
- package/generators/app/templates/app2021/src/app/content/content-routing.module.ts +16 -0
- package/generators/app/templates/app2021/src/app/content/content.module.ts +20 -0
- package/generators/app/templates/app2021/src/app/content/content.page.html +31 -0
- package/generators/app/templates/app2021/src/app/content/content.page.scss +0 -0
- package/generators/app/templates/app2021/src/app/content/content.page.ts +26 -0
- package/generators/app/templates/app2021/src/app/explore-container/explore-container.component.html +4 -0
- package/generators/app/templates/app2021/src/app/explore-container/explore-container.component.scss +4 -0
- package/generators/app/templates/app2021/src/app/explore-container/explore-container.component.spec.ts +24 -0
- package/generators/app/templates/app2021/src/app/explore-container/explore-container.component.ts +16 -0
- package/generators/app/templates/app2021/src/app/explore-container/explore-container.module.ts +14 -0
- package/generators/app/templates/app2021/src/app/my/my-routing.module.ts +36 -0
- package/generators/app/templates/app2021/src/app/my/my.module.ts +19 -0
- package/generators/app/templates/app2021/src/app/my/my.page.html +15 -0
- package/generators/app/templates/app2021/src/app/my/my.page.scss +1 -0
- package/generators/app/templates/app2021/src/app/my/my.page.spec.ts +26 -0
- package/generators/app/templates/app2021/src/app/my/my.page.ts +25 -0
- package/generators/app/templates/app2021/src/app/profile/profile-routing.module.ts +16 -0
- package/generators/app/templates/app2021/src/app/profile/profile.module.ts +20 -0
- package/generators/app/templates/app2021/src/app/profile/profile.page.html +49 -0
- package/generators/app/templates/app2021/src/app/profile/profile.page.scss +0 -0
- package/generators/app/templates/app2021/src/app/profile/profile.page.spec.ts +25 -0
- package/generators/app/templates/app2021/src/app/profile/profile.page.ts +44 -0
- package/generators/app/templates/app2021/src/app/shared/const.ts +3 -0
- package/generators/app/templates/app2021/src/app/signin/signin-routing.module.ts +16 -0
- package/generators/app/templates/app2021/src/app/signin/signin.module.ts +18 -0
- package/generators/app/templates/app2021/src/app/signin/signin.page.html +53 -0
- package/generators/app/templates/app2021/src/app/signin/signin.page.scss +36 -0
- package/generators/app/templates/app2021/src/app/signin/signin.page.ts +69 -0
- package/generators/app/templates/app2021/src/assets/icon/favicon.png +0 -0
- package/generators/app/templates/app2021/src/assets/shapes.svg +1 -0
- package/generators/app/templates/app2021/src/environments/environment.prod.ts +3 -0
- package/generators/app/templates/app2021/src/environments/environment.ts +16 -0
- package/generators/app/templates/app2021/src/global.scss +26 -0
- package/generators/app/templates/app2021/src/index.html +26 -0
- package/generators/app/templates/app2021/src/main.ts +12 -0
- package/generators/app/templates/app2021/src/polyfills.ts +67 -0
- package/generators/app/templates/app2021/src/test.ts +20 -0
- package/generators/app/templates/app2021/src/theme/variables.scss +232 -0
- package/generators/app/templates/app2021/src/zone-flags.ts +5 -0
- package/generators/app/templates/app2021/tests/protractor.conf.js +36 -0
- package/generators/app/templates/app2021/tests/src/app.e2e-spec.ts +14 -0
- package/generators/app/templates/app2021/tests/src/app.po.ts +11 -0
- package/generators/app/templates/app2021/tests/tsconfig.json +13 -0
- package/generators/app/templates/app2021/tsconfig.app.json +18 -0
- package/generators/app/templates/app2021/tsconfig.json +23 -0
- package/generators/app/templates/app2021/tsconfig.spec.json +18 -0
- package/generators/app/templates/app2021/tslint.json +149 -0
- package/generators/app/templates/app2021/web.js +21 -0
- package/package.json +41 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
h1 {
|
|
4
|
+
font-size: 2em;
|
|
5
|
+
color: #bb971f;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
h2 {
|
|
9
|
+
font-size: 1.2em;
|
|
10
|
+
color: #adaaa2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
ion-card-header {
|
|
14
|
+
white-space: normal;
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
ion-card-content {
|
|
19
|
+
text-align: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ion-item-divider {
|
|
23
|
+
text-align: center;
|
|
24
|
+
|
|
25
|
+
ion-label {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ion-item-group {
|
|
31
|
+
white-space: normal;
|
|
32
|
+
text-align: center;
|
|
33
|
+
padding-top: 2em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {Component, OnInit} from '@angular/core';
|
|
2
|
+
import {FidjService} from 'fidj';
|
|
3
|
+
import {Router} from '@angular/router';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'app-signin',
|
|
7
|
+
templateUrl: 'signin.page.html',
|
|
8
|
+
styleUrls: ['signin.page.scss']
|
|
9
|
+
})
|
|
10
|
+
export class SigninPage implements OnInit {
|
|
11
|
+
|
|
12
|
+
userLoginEmail: any;
|
|
13
|
+
userLoginPassword: any;
|
|
14
|
+
asUser: boolean;
|
|
15
|
+
loginError: string;
|
|
16
|
+
|
|
17
|
+
constructor(
|
|
18
|
+
private router: Router,
|
|
19
|
+
private fidjService: FidjService
|
|
20
|
+
) {
|
|
21
|
+
this.asUser = true;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
ngOnInit() {
|
|
25
|
+
if (this.fidjService.isLoggedIn()) {
|
|
26
|
+
return this.router.navigateByUrl('/my');
|
|
27
|
+
} else {
|
|
28
|
+
console.log('not logged in');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async login(email, pwd) {
|
|
33
|
+
this.loginError = '';
|
|
34
|
+
try {
|
|
35
|
+
await this.fidjService.login(email, pwd);
|
|
36
|
+
await this.router.navigateByUrl('/my');
|
|
37
|
+
} catch (err) {
|
|
38
|
+
this.loginError = 'Bad credentials';
|
|
39
|
+
console.error(JSON.stringify(err, Object.getOwnPropertyNames(err)));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async loginAsDemo() {
|
|
44
|
+
try {
|
|
45
|
+
await this.fidjService.loginAsDemo();
|
|
46
|
+
await this.router.navigateByUrl('/my');
|
|
47
|
+
} catch (e) {
|
|
48
|
+
console.error(e);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async profileChanged(event) {
|
|
53
|
+
this.asUser = !this.asUser;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async forgot(email: string) {
|
|
57
|
+
if (!email) {
|
|
58
|
+
this.loginError = 'Please set your email in order to receive the new password.';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
try {
|
|
62
|
+
await this.fidjService.forgotPasswordRequest(email);
|
|
63
|
+
this.loginError = '';
|
|
64
|
+
} catch (e) {
|
|
65
|
+
console.error(e);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="350" height="140" xmlns="http://www.w3.org/2000/svg" style="background:#f6f7f9"><g fill="none" fill-rule="evenodd"><path fill="#F04141" style="mix-blend-mode:multiply" d="M61.905-34.23l96.194 54.51-66.982 54.512L22 34.887z"/><circle fill="#10DC60" style="mix-blend-mode:multiply" cx="155.5" cy="135.5" r="57.5"/><path fill="#3880FF" style="mix-blend-mode:multiply" d="M208.538 9.513l84.417 15.392L223.93 93.93z"/><path fill="#FFCE00" style="mix-blend-mode:multiply" d="M268.625 106.557l46.332-26.75 46.332 26.75v53.5l-46.332 26.75-46.332-26.75z"/><circle fill="#7044FF" style="mix-blend-mode:multiply" cx="299.5" cy="9.5" r="38.5"/><rect fill="#11D3EA" style="mix-blend-mode:multiply" transform="rotate(-60 148.47 37.886)" x="143.372" y="-7.056" width="10.196" height="89.884" rx="5.098"/><path d="M-25.389 74.253l84.86 8.107c5.498.525 9.53 5.407 9.004 10.905a10 10 0 0 1-.057.477l-12.36 85.671a10.002 10.002 0 0 1-11.634 8.42l-86.351-15.226c-5.44-.959-9.07-6.145-8.112-11.584l13.851-78.551a10 10 0 0 1 10.799-8.219z" fill="#7044FF" style="mix-blend-mode:multiply"/><circle fill="#0CD1E8" style="mix-blend-mode:multiply" cx="273.5" cy="106.5" r="20.5"/></g></svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* For easier debugging in development mode, you can import the following file
|
|
11
|
+
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
12
|
+
*
|
|
13
|
+
* This import should be commented out in production mode because it will have a negative impact
|
|
14
|
+
* on performance if an error is thrown.
|
|
15
|
+
*/
|
|
16
|
+
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* App Global CSS
|
|
3
|
+
* ----------------------------------------------------------------------------
|
|
4
|
+
* Put style rules here that you want to apply globally. These styles are for
|
|
5
|
+
* the entire app and not just one component. Additionally, this file can be
|
|
6
|
+
* used as an entry point to import other CSS/Sass files to be included in the
|
|
7
|
+
* output CSS.
|
|
8
|
+
* For more information on global stylesheets, visit the documentation:
|
|
9
|
+
* https://ionicframework.com/docs/layout/global-stylesheets
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* Core CSS required for Ionic components to work properly */
|
|
13
|
+
@import "~@ionic/angular/css/core.css";
|
|
14
|
+
|
|
15
|
+
/* Basic CSS for apps built with Ionic */
|
|
16
|
+
@import "~@ionic/angular/css/normalize.css";
|
|
17
|
+
@import "~@ionic/angular/css/structure.css";
|
|
18
|
+
@import "~@ionic/angular/css/typography.css";
|
|
19
|
+
@import '~@ionic/angular/css/display.css';
|
|
20
|
+
|
|
21
|
+
/* Optional CSS utils that can be commented out */
|
|
22
|
+
@import "~@ionic/angular/css/padding.css";
|
|
23
|
+
@import "~@ionic/angular/css/float-elements.css";
|
|
24
|
+
@import "~@ionic/angular/css/text-alignment.css";
|
|
25
|
+
@import "~@ionic/angular/css/text-transformation.css";
|
|
26
|
+
@import "~@ionic/angular/css/flex-utils.css";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<title><%= appName %></title>
|
|
7
|
+
|
|
8
|
+
<base href="/" />
|
|
9
|
+
|
|
10
|
+
<meta name="color-scheme" content="light dark" />
|
|
11
|
+
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
12
|
+
<meta name="format-detection" content="telephone=no" />
|
|
13
|
+
<meta name="msapplication-tap-highlight" content="no" />
|
|
14
|
+
|
|
15
|
+
<link rel="icon" type="image/png" href="assets/icon/favicon.png" />
|
|
16
|
+
|
|
17
|
+
<!-- add to homescreen for ios -->
|
|
18
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
19
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
20
|
+
</head>
|
|
21
|
+
|
|
22
|
+
<body>
|
|
23
|
+
<app-root></app-root>
|
|
24
|
+
</body>
|
|
25
|
+
|
|
26
|
+
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
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));
|
|
@@ -0,0 +1,67 @@
|
|
|
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/guide/browser-support
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************************************
|
|
18
|
+
* BROWSER POLYFILLS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
22
|
+
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Web Animations `@angular/platform-browser/animations`
|
|
26
|
+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
27
|
+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
28
|
+
*/
|
|
29
|
+
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
33
|
+
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
34
|
+
* because those flags need to be set before `zone.js` being loaded, and webpack
|
|
35
|
+
* will put import in the top of bundle, so user need to create a separate file
|
|
36
|
+
* in this directory (for example: zone-flags.ts), and put the following flags
|
|
37
|
+
* into that file, and then add the following code before importing zone.js.
|
|
38
|
+
* import './zone-flags.ts';
|
|
39
|
+
*
|
|
40
|
+
* The flags allowed in zone-flags.ts are listed here.
|
|
41
|
+
*
|
|
42
|
+
* The following flags will work for all browsers.
|
|
43
|
+
*
|
|
44
|
+
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
45
|
+
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
46
|
+
* (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
47
|
+
*
|
|
48
|
+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
49
|
+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
50
|
+
*
|
|
51
|
+
* (window as any).__Zone_enable_cross_context_check = true;
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
import './zone-flags';
|
|
56
|
+
|
|
57
|
+
/***************************************************************************************************
|
|
58
|
+
* Zone JS is required by default for Angular itself.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/***************************************************************************************************
|
|
65
|
+
* APPLICATION IMPORTS
|
|
66
|
+
*/
|
|
67
|
+
(window as any)['global'] = window;
|
|
@@ -0,0 +1,20 @@
|
|
|
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);
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
// Ionic Variables and Theming. For more info, please see:
|
|
2
|
+
// http://ionicframework.com/docs/theming/
|
|
3
|
+
|
|
4
|
+
/** Ionic CSS Variables **/
|
|
5
|
+
:root {
|
|
6
|
+
/** primary **/
|
|
7
|
+
--ion-color-primary: #3880ff;
|
|
8
|
+
--ion-color-primary-rgb: 56, 128, 255;
|
|
9
|
+
--ion-color-primary-contrast: #ffffff;
|
|
10
|
+
--ion-color-primary-contrast-rgb: 255, 255, 255;
|
|
11
|
+
--ion-color-primary-shade: #3171e0;
|
|
12
|
+
--ion-color-primary-tint: #4c8dff;
|
|
13
|
+
|
|
14
|
+
/** secondary **/
|
|
15
|
+
--ion-color-secondary: #3dc2ff;
|
|
16
|
+
--ion-color-secondary-rgb: 61, 194, 255;
|
|
17
|
+
--ion-color-secondary-contrast: #ffffff;
|
|
18
|
+
--ion-color-secondary-contrast-rgb: 255, 255, 255;
|
|
19
|
+
--ion-color-secondary-shade: #36abe0;
|
|
20
|
+
--ion-color-secondary-tint: #50c8ff;
|
|
21
|
+
|
|
22
|
+
/** tertiary **/
|
|
23
|
+
--ion-color-tertiary: #5260ff;
|
|
24
|
+
--ion-color-tertiary-rgb: 82, 96, 255;
|
|
25
|
+
--ion-color-tertiary-contrast: #ffffff;
|
|
26
|
+
--ion-color-tertiary-contrast-rgb: 255, 255, 255;
|
|
27
|
+
--ion-color-tertiary-shade: #4854e0;
|
|
28
|
+
--ion-color-tertiary-tint: #6370ff;
|
|
29
|
+
|
|
30
|
+
/** success **/
|
|
31
|
+
--ion-color-success: #2dd36f;
|
|
32
|
+
--ion-color-success-rgb: 45, 211, 111;
|
|
33
|
+
--ion-color-success-contrast: #ffffff;
|
|
34
|
+
--ion-color-success-contrast-rgb: 255, 255, 255;
|
|
35
|
+
--ion-color-success-shade: #28ba62;
|
|
36
|
+
--ion-color-success-tint: #42d77d;
|
|
37
|
+
|
|
38
|
+
/** warning **/
|
|
39
|
+
--ion-color-warning: #ffc409;
|
|
40
|
+
--ion-color-warning-rgb: 255, 196, 9;
|
|
41
|
+
--ion-color-warning-contrast: #000000;
|
|
42
|
+
--ion-color-warning-contrast-rgb: 0, 0, 0;
|
|
43
|
+
--ion-color-warning-shade: #e0ac08;
|
|
44
|
+
--ion-color-warning-tint: #ffca22;
|
|
45
|
+
|
|
46
|
+
/** danger **/
|
|
47
|
+
--ion-color-danger: #eb445a;
|
|
48
|
+
--ion-color-danger-rgb: 235, 68, 90;
|
|
49
|
+
--ion-color-danger-contrast: #ffffff;
|
|
50
|
+
--ion-color-danger-contrast-rgb: 255, 255, 255;
|
|
51
|
+
--ion-color-danger-shade: #cf3c4f;
|
|
52
|
+
--ion-color-danger-tint: #ed576b;
|
|
53
|
+
|
|
54
|
+
/** dark **/
|
|
55
|
+
--ion-color-dark: #222428;
|
|
56
|
+
--ion-color-dark-rgb: 34, 36, 40;
|
|
57
|
+
--ion-color-dark-contrast: #ffffff;
|
|
58
|
+
--ion-color-dark-contrast-rgb: 255, 255, 255;
|
|
59
|
+
--ion-color-dark-shade: #1e2023;
|
|
60
|
+
--ion-color-dark-tint: #383a3e;
|
|
61
|
+
|
|
62
|
+
/** medium **/
|
|
63
|
+
--ion-color-medium: #92949c;
|
|
64
|
+
--ion-color-medium-rgb: 146, 148, 156;
|
|
65
|
+
--ion-color-medium-contrast: #ffffff;
|
|
66
|
+
--ion-color-medium-contrast-rgb: 255, 255, 255;
|
|
67
|
+
--ion-color-medium-shade: #808289;
|
|
68
|
+
--ion-color-medium-tint: #9d9fa6;
|
|
69
|
+
|
|
70
|
+
/** light **/
|
|
71
|
+
--ion-color-light: #f4f5f8;
|
|
72
|
+
--ion-color-light-rgb: 244, 245, 248;
|
|
73
|
+
--ion-color-light-contrast: #000000;
|
|
74
|
+
--ion-color-light-contrast-rgb: 0, 0, 0;
|
|
75
|
+
--ion-color-light-shade: #d7d8da;
|
|
76
|
+
--ion-color-light-tint: #f5f6f9;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (prefers-color-scheme: dark) {
|
|
80
|
+
/*
|
|
81
|
+
* Dark Colors
|
|
82
|
+
* -------------------------------------------
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
body {
|
|
86
|
+
--ion-color-primary: #428cff;
|
|
87
|
+
--ion-color-primary-rgb: 66,140,255;
|
|
88
|
+
--ion-color-primary-contrast: #ffffff;
|
|
89
|
+
--ion-color-primary-contrast-rgb: 255,255,255;
|
|
90
|
+
--ion-color-primary-shade: #3a7be0;
|
|
91
|
+
--ion-color-primary-tint: #5598ff;
|
|
92
|
+
|
|
93
|
+
--ion-color-secondary: #50c8ff;
|
|
94
|
+
--ion-color-secondary-rgb: 80,200,255;
|
|
95
|
+
--ion-color-secondary-contrast: #ffffff;
|
|
96
|
+
--ion-color-secondary-contrast-rgb: 255,255,255;
|
|
97
|
+
--ion-color-secondary-shade: #46b0e0;
|
|
98
|
+
--ion-color-secondary-tint: #62ceff;
|
|
99
|
+
|
|
100
|
+
--ion-color-tertiary: #6a64ff;
|
|
101
|
+
--ion-color-tertiary-rgb: 106,100,255;
|
|
102
|
+
--ion-color-tertiary-contrast: #ffffff;
|
|
103
|
+
--ion-color-tertiary-contrast-rgb: 255,255,255;
|
|
104
|
+
--ion-color-tertiary-shade: #5d58e0;
|
|
105
|
+
--ion-color-tertiary-tint: #7974ff;
|
|
106
|
+
|
|
107
|
+
--ion-color-success: #2fdf75;
|
|
108
|
+
--ion-color-success-rgb: 47,223,117;
|
|
109
|
+
--ion-color-success-contrast: #000000;
|
|
110
|
+
--ion-color-success-contrast-rgb: 0,0,0;
|
|
111
|
+
--ion-color-success-shade: #29c467;
|
|
112
|
+
--ion-color-success-tint: #44e283;
|
|
113
|
+
|
|
114
|
+
--ion-color-warning: #ffd534;
|
|
115
|
+
--ion-color-warning-rgb: 255,213,52;
|
|
116
|
+
--ion-color-warning-contrast: #000000;
|
|
117
|
+
--ion-color-warning-contrast-rgb: 0,0,0;
|
|
118
|
+
--ion-color-warning-shade: #e0bb2e;
|
|
119
|
+
--ion-color-warning-tint: #ffd948;
|
|
120
|
+
|
|
121
|
+
--ion-color-danger: #ff4961;
|
|
122
|
+
--ion-color-danger-rgb: 255,73,97;
|
|
123
|
+
--ion-color-danger-contrast: #ffffff;
|
|
124
|
+
--ion-color-danger-contrast-rgb: 255,255,255;
|
|
125
|
+
--ion-color-danger-shade: #e04055;
|
|
126
|
+
--ion-color-danger-tint: #ff5b71;
|
|
127
|
+
|
|
128
|
+
--ion-color-dark: #f4f5f8;
|
|
129
|
+
--ion-color-dark-rgb: 244,245,248;
|
|
130
|
+
--ion-color-dark-contrast: #000000;
|
|
131
|
+
--ion-color-dark-contrast-rgb: 0,0,0;
|
|
132
|
+
--ion-color-dark-shade: #d7d8da;
|
|
133
|
+
--ion-color-dark-tint: #f5f6f9;
|
|
134
|
+
|
|
135
|
+
--ion-color-medium: #989aa2;
|
|
136
|
+
--ion-color-medium-rgb: 152,154,162;
|
|
137
|
+
--ion-color-medium-contrast: #000000;
|
|
138
|
+
--ion-color-medium-contrast-rgb: 0,0,0;
|
|
139
|
+
--ion-color-medium-shade: #86888f;
|
|
140
|
+
--ion-color-medium-tint: #a2a4ab;
|
|
141
|
+
|
|
142
|
+
--ion-color-light: #222428;
|
|
143
|
+
--ion-color-light-rgb: 34,36,40;
|
|
144
|
+
--ion-color-light-contrast: #ffffff;
|
|
145
|
+
--ion-color-light-contrast-rgb: 255,255,255;
|
|
146
|
+
--ion-color-light-shade: #1e2023;
|
|
147
|
+
--ion-color-light-tint: #383a3e;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/*
|
|
151
|
+
* iOS Dark Theme
|
|
152
|
+
* -------------------------------------------
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
.ios body {
|
|
156
|
+
--ion-background-color: #000000;
|
|
157
|
+
--ion-background-color-rgb: 0,0,0;
|
|
158
|
+
|
|
159
|
+
--ion-text-color: #ffffff;
|
|
160
|
+
--ion-text-color-rgb: 255,255,255;
|
|
161
|
+
|
|
162
|
+
--ion-color-step-50: #0d0d0d;
|
|
163
|
+
--ion-color-step-100: #1a1a1a;
|
|
164
|
+
--ion-color-step-150: #262626;
|
|
165
|
+
--ion-color-step-200: #333333;
|
|
166
|
+
--ion-color-step-250: #404040;
|
|
167
|
+
--ion-color-step-300: #4d4d4d;
|
|
168
|
+
--ion-color-step-350: #595959;
|
|
169
|
+
--ion-color-step-400: #666666;
|
|
170
|
+
--ion-color-step-450: #737373;
|
|
171
|
+
--ion-color-step-500: #808080;
|
|
172
|
+
--ion-color-step-550: #8c8c8c;
|
|
173
|
+
--ion-color-step-600: #999999;
|
|
174
|
+
--ion-color-step-650: #a6a6a6;
|
|
175
|
+
--ion-color-step-700: #b3b3b3;
|
|
176
|
+
--ion-color-step-750: #bfbfbf;
|
|
177
|
+
--ion-color-step-800: #cccccc;
|
|
178
|
+
--ion-color-step-850: #d9d9d9;
|
|
179
|
+
--ion-color-step-900: #e6e6e6;
|
|
180
|
+
--ion-color-step-950: #f2f2f2;
|
|
181
|
+
|
|
182
|
+
--ion-toolbar-background: #0d0d0d;
|
|
183
|
+
|
|
184
|
+
--ion-item-background: #000000;
|
|
185
|
+
|
|
186
|
+
--ion-card-background: #1c1c1d;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
* Material Design Dark Theme
|
|
192
|
+
* -------------------------------------------
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
.md body {
|
|
196
|
+
--ion-background-color: #121212;
|
|
197
|
+
--ion-background-color-rgb: 18,18,18;
|
|
198
|
+
|
|
199
|
+
--ion-text-color: #ffffff;
|
|
200
|
+
--ion-text-color-rgb: 255,255,255;
|
|
201
|
+
|
|
202
|
+
--ion-border-color: #222222;
|
|
203
|
+
|
|
204
|
+
--ion-color-step-50: #1e1e1e;
|
|
205
|
+
--ion-color-step-100: #2a2a2a;
|
|
206
|
+
--ion-color-step-150: #363636;
|
|
207
|
+
--ion-color-step-200: #414141;
|
|
208
|
+
--ion-color-step-250: #4d4d4d;
|
|
209
|
+
--ion-color-step-300: #595959;
|
|
210
|
+
--ion-color-step-350: #656565;
|
|
211
|
+
--ion-color-step-400: #717171;
|
|
212
|
+
--ion-color-step-450: #7d7d7d;
|
|
213
|
+
--ion-color-step-500: #898989;
|
|
214
|
+
--ion-color-step-550: #949494;
|
|
215
|
+
--ion-color-step-600: #a0a0a0;
|
|
216
|
+
--ion-color-step-650: #acacac;
|
|
217
|
+
--ion-color-step-700: #b8b8b8;
|
|
218
|
+
--ion-color-step-750: #c4c4c4;
|
|
219
|
+
--ion-color-step-800: #d0d0d0;
|
|
220
|
+
--ion-color-step-850: #dbdbdb;
|
|
221
|
+
--ion-color-step-900: #e7e7e7;
|
|
222
|
+
--ion-color-step-950: #f3f3f3;
|
|
223
|
+
|
|
224
|
+
--ion-item-background: #1e1e1e;
|
|
225
|
+
|
|
226
|
+
--ion-toolbar-background: #1f1f1f;
|
|
227
|
+
|
|
228
|
+
--ion-tab-bar-background: #1f1f1f;
|
|
229
|
+
|
|
230
|
+
--ion-card-background: #1e1e1e;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
// Protractor configuration file, see link for more information
|
|
3
|
+
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
4
|
+
|
|
5
|
+
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @type { import("protractor").Config }
|
|
9
|
+
*/
|
|
10
|
+
exports.config = {
|
|
11
|
+
allScriptsTimeout: 11000,
|
|
12
|
+
specs: [
|
|
13
|
+
'./src/**/*.e2e-spec.ts'
|
|
14
|
+
],
|
|
15
|
+
capabilities: {
|
|
16
|
+
browserName: 'chrome'
|
|
17
|
+
},
|
|
18
|
+
directConnect: true,
|
|
19
|
+
baseUrl: 'http://localhost:4200/',
|
|
20
|
+
framework: 'jasmine',
|
|
21
|
+
jasmineNodeOpts: {
|
|
22
|
+
showColors: true,
|
|
23
|
+
defaultTimeoutInterval: 30000,
|
|
24
|
+
print: function() {}
|
|
25
|
+
},
|
|
26
|
+
onPrepare() {
|
|
27
|
+
require('ts-node').register({
|
|
28
|
+
project: require('path').join(__dirname, './tsconfig.json')
|
|
29
|
+
});
|
|
30
|
+
jasmine.getEnv().addReporter(new SpecReporter({
|
|
31
|
+
spec: {
|
|
32
|
+
displayStacktrace: StacktraceOption.PRETTY
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppPage } from './app.po';
|
|
2
|
+
|
|
3
|
+
describe('new 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.getPageTitle()).toContain('Tab 1');
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/app",
|
|
5
|
+
"types": []
|
|
6
|
+
},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/main.ts",
|
|
9
|
+
"src/polyfills.ts"
|
|
10
|
+
],
|
|
11
|
+
"include": [
|
|
12
|
+
"src/**/*.ts",
|
|
13
|
+
"src/**/*.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"src/**/*.spec.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": "./",
|
|
5
|
+
"outDir": "./dist/out-tsc",
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"downlevelIteration": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"importHelpers": true,
|
|
13
|
+
"target": "es2015",
|
|
14
|
+
"lib": [
|
|
15
|
+
"es2018",
|
|
16
|
+
"dom"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"angularCompilerOptions": {
|
|
20
|
+
"fullTemplateTypeCheck": true,
|
|
21
|
+
"strictInjectionParameters": true
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/spec",
|
|
5
|
+
"types": [
|
|
6
|
+
"jasmine",
|
|
7
|
+
"node"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts",
|
|
12
|
+
"src/polyfills.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"src/**/*.spec.ts",
|
|
16
|
+
"src/**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|