v0.1.1 (added substitution functions + switched to pwa)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<ion-card>
|
||||
<ion-card-header>
|
||||
<ion-card-title>Willkommen {{iserv.userdata?.username}}</ion-card-title>
|
||||
<ion-card-subtitle *ngIf="classData != undefined">
|
||||
<ion-card-subtitle>
|
||||
Du hast {{unreadMails?.length || 0}} ungelesene E-Mails<br>
|
||||
<span>{{classData?.class.startsWith('Q') ? 'Jahrgang' : 'Klasse'}} {{classData?.class}}</span><br>
|
||||
{{dayName}} der {{today?.toLocaleDateString()}}
|
||||
@@ -30,7 +30,7 @@
|
||||
<ion-card-title>Stundenplan</ion-card-title>
|
||||
</ion-card-header>
|
||||
<ion-card-content class="lesson-content">
|
||||
<ion-card *ngIf="lessons == undefined && classData != undefined">
|
||||
<ion-card *ngIf="lessons == undefined">
|
||||
<ion-card-header>
|
||||
<ion-card-subtitle>Kein Unterricht</ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
@@ -64,7 +64,7 @@
|
||||
</ion-card-header>
|
||||
<ion-card-content>
|
||||
<ion-list>
|
||||
<ion-card *ngIf="unreadMails?.length == 0 && unreadMails != undefined">
|
||||
<ion-card *ngIf="unreadMails?.length == 0">
|
||||
<ion-card-header>
|
||||
<ion-card-subtitle>Keine ungelesenen E-Mails</ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
|
||||
BIN
BetterIServ.Mobile/src/assets/icon/favicon144x144.png
Normal file
BIN
BetterIServ.Mobile/src/assets/icon/favicon144x144.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
BIN
BetterIServ.Mobile/src/assets/icon/favicon512x512.png
Normal file
BIN
BetterIServ.Mobile/src/assets/icon/favicon512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -2,25 +2,29 @@
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Ionic App</title>
|
||||
<meta charset="utf-8"/>
|
||||
<title>BetterIServ</title>
|
||||
|
||||
<base href="/" />
|
||||
<base href="/"/>
|
||||
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<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" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="msapplication-tap-highlight" content="no" />
|
||||
<meta name="color-scheme" content="light dark"/>
|
||||
<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"/>
|
||||
<meta name="format-detection" content="telephone=no"/>
|
||||
<meta name="msapplication-tap-highlight" content="no"/>
|
||||
<meta name="description", content="Eine bessere Version von IServ">
|
||||
|
||||
<link rel="icon" type="image/png" href="assets/icon/favicon.ico" />
|
||||
<link rel="icon" type="image/png" href="assets/icon/favicon.ico"/>
|
||||
|
||||
<!-- add to homescreen for ios -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<meta name="theme-color" content="#3880ff">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { enableProdMode, importProvidersFrom } from '@angular/core';
|
||||
import {enableProdMode, importProvidersFrom, isDevMode} from '@angular/core';
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { RouteReuseStrategy, provideRouter } from '@angular/router';
|
||||
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
|
||||
@@ -7,6 +7,7 @@ import { routes } from './app/app.routes';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { environment } from './environments/environment';
|
||||
import {HttpClientModule} from "@angular/common/http";
|
||||
import {ServiceWorkerModule} from "@angular/service-worker";
|
||||
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
@@ -14,9 +15,14 @@ if (environment.production) {
|
||||
|
||||
bootstrapApplication(AppComponent, {
|
||||
providers: [
|
||||
importProvidersFrom(ServiceWorkerModule.register('ngsw-worker.js', {
|
||||
enabled: !isDevMode(),
|
||||
registrationStrategy: 'registerWhenStable:30000'
|
||||
})),
|
||||
|
||||
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
|
||||
importProvidersFrom(IonicModule.forRoot({})),
|
||||
importProvidersFrom(HttpClientModule),
|
||||
provideRouter(routes),
|
||||
],
|
||||
]
|
||||
});
|
||||
|
||||
30
BetterIServ.Mobile/src/manifest.webmanifest
Normal file
30
BetterIServ.Mobile/src/manifest.webmanifest
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "BetterIServ",
|
||||
"short_name": "BetterIServ",
|
||||
"theme_color": "#3880ff",
|
||||
"background_color": "#121212",
|
||||
"display": "standalone",
|
||||
"orientation": "portrait",
|
||||
"scope": "./",
|
||||
"start_url": "./",
|
||||
"icons": [
|
||||
{
|
||||
"src": "assets/icon/favicon.ico",
|
||||
"sizes": "256x256",
|
||||
"type": "image/ico",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "assets/icon/favicon512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "assets/icon/favicon144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user