This commit is contained in:
Cavallium 2019-04-15 17:33:15 +02:00
parent e2a1c6d0f1
commit f30167ddfe
15 changed files with 120 additions and 29 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
# CAVALLIUM SPECIFIC # CAVALLIUM SPECIFIC
*.generated.html *.generated.html
angular.json angular.json
package-lock.json
# compiled output # compiled output
/dist /dist

View File

@ -38,7 +38,7 @@
"src/styles-fonts.scss" "src/styles-fonts.scss"
], ],
"scripts": [], "scripts": [],
"es5BrowserSupport": true, "es5BrowserSupport": false,
"i18nFormat": "xlf", "i18nFormat": "xlf",
"i18nMissingTranslation": "error" "i18nMissingTranslation": "error"
}, },

28
ngsw-config.json Normal file
View File

@ -0,0 +1,28 @@
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/*.css",
"/*.js"
]
}
}, {
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
]
}
}
]
}

View File

@ -12,40 +12,45 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~7.2.0", "@angular/animations": "^8.0.0-beta.12",
"@angular/common": "~7.2.0", "@angular/common": "^8.0.0-beta.12",
"@angular/compiler": "~7.2.0", "@angular/compiler": "^8.0.0-beta.12",
"@angular/core": "~7.2.0", "@angular/core": "^8.0.0-beta.12",
"@angular/forms": "~7.2.0", "@angular/forms": "^8.0.0-beta.12",
"@angular/http": "~7.2.0", "@angular/platform-browser": "^8.0.0-beta.12",
"@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "^8.0.0-beta.12",
"@angular/platform-browser-dynamic": "~7.2.0", "@angular/platform-server": "^8.0.0-beta.12",
"@angular/router": "~7.2.0", "@angular/pwa": "^0.12.4",
"core-js": "^2.5.4", "@angular/router": "^8.0.0-beta.12",
"@angular/service-worker": "^8.0.0-beta.12",
"core-js": "^3.0.1",
"ngx-markdown": "^7.1.5", "ngx-markdown": "^7.1.5",
"rxjs": "~6.3.3", "rxjs": "^6.4.0",
"tslib": "^1.9.0", "tslib": "^1.9.0",
"zone.js": "~0.8.26" "zone.js": "^0.9.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.13.0", "@angular-devkit/build-angular": "^0.800.0-beta.13",
"@angular/cli": "~7.3.8", "@angular/cli": "^8.0.0-beta.13",
"@angular/compiler-cli": "~7.2.0", "@angular/compiler-cli": "^8.0.0-beta.12",
"@angular/language-service": "~7.2.0", "@angular/language-service": "^8.0.0-beta.12",
"@types/node": "~8.9.4", "@types/jasmine": "^3.3.12",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0", "@types/node": "^11.13.4",
"jasmine-core": "~2.99.1", "codelyzer": "^5.0.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-core": "^3.4.0",
"karma": "~4.0.0", "jasmine-spec-reporter": "^4.2.1",
"karma-chrome-launcher": "~2.2.0", "karma": "^4.0.1",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2", "karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^0.2.2", "karma-jasmine-html-reporter": "^1.4.0",
"protractor": "~5.4.0", "protractor": "^5.4.2",
"rxjs-tslint": "^0.1.7",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~5.11.0", "tslint": "^5.15.0",
"typescript": "~3.2.2" "typescript": "^3.4",
"webpack": "^4.30.0"
} }
} }

View File

@ -11,6 +11,8 @@ import { RouterEmptyComponent } from "./gui/router-empty/router-empty.component"
import {HttpClientModule} from "@angular/common/http"; import {HttpClientModule} from "@angular/common/http";
import { MarkdownModule, MarkedOptions, MarkedRenderer, MarkdownComponent } from "ngx-markdown"; import { MarkdownModule, MarkedOptions, MarkedRenderer, MarkdownComponent } from "ngx-markdown";
import { BigLogoComponent } from './gui/big-logo/big-logo.component'; import { BigLogoComponent } from './gui/big-logo/big-logo.component';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from '../environments/environment';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -32,6 +34,7 @@ import { BigLogoComponent } from './gui/big-logo/big-logo.component';
useFactory: markedOptionsFactory, useFactory: markedOptionsFactory,
}, },
}), }),
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

View File

@ -7,8 +7,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#1976d2">
</head> </head>
<body> <body>
<app-root></app-root> <app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body> </body>
</html> </html>

51
src/manifest.json Normal file
View File

@ -0,0 +1,51 @@
{
"name": "cavallium-website",
"short_name": "cavallium-website",
"theme_color": "#1976d2",
"background_color": "#fafafa",
"display": "standalone",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "assets/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "assets/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "assets/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "assets/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "assets/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "assets/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "assets/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "assets/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}