Compare commits
1 Commits
@openstapp
...
204-pwa-of
| Author | SHA1 | Date | |
|---|---|---|---|
| d4e15aa391 |
6
.changeset/new-yaks-drop.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@openstapps/backend": patch
|
||||||
|
"@openstapps/logger": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Updated nodemailer dependency
|
||||||
@@ -1,15 +1,5 @@
|
|||||||
# @openstapps/backend
|
# @openstapps/backend
|
||||||
|
|
||||||
## 4.0.2
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- 6b06de40: Updated nodemailer dependency
|
|
||||||
- Updated dependencies [6b06de40]
|
|
||||||
- @openstapps/logger@4.0.2
|
|
||||||
- @openstapps/core@4.0.2
|
|
||||||
- @openstapps/core-tools@4.0.2
|
|
||||||
|
|
||||||
## 4.0.1
|
## 4.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/backend",
|
"name": "@openstapps/backend",
|
||||||
"description": "A reference implementation for a StApps backend",
|
"description": "A reference implementation for a StApps backend",
|
||||||
"version": "4.0.2",
|
"version": "4.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
# @openstapps/proxy
|
# @openstapps/proxy
|
||||||
|
|
||||||
## 4.0.2
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- Updated dependencies [6b06de40]
|
|
||||||
- @openstapps/logger@4.0.2
|
|
||||||
|
|
||||||
## 4.0.0
|
## 4.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/proxy",
|
"name": "@openstapps/proxy",
|
||||||
"description": "NGINX proxy that is dynamically configured by a Node.js script",
|
"description": "NGINX proxy that is dynamically configured by a Node.js script",
|
||||||
"version": "4.0.2",
|
"version": "4.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
# @openstapps/projectmanagement
|
# @openstapps/projectmanagement
|
||||||
|
|
||||||
## 4.0.2
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- Updated dependencies [6b06de40]
|
|
||||||
- @openstapps/logger@4.0.2
|
|
||||||
- @openstapps/gitlab-api@4.0.2
|
|
||||||
|
|
||||||
## 4.0.1
|
## 4.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/projectmanagement",
|
"name": "@openstapps/projectmanagement",
|
||||||
"description": "Main documentation and scripts for maintenance.",
|
"description": "Main documentation and scripts for maintenance.",
|
||||||
"version": "4.0.2",
|
"version": "4.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
|||||||
@@ -1,14 +1,5 @@
|
|||||||
# @openstapps/minimal-connector
|
# @openstapps/minimal-connector
|
||||||
|
|
||||||
## 4.0.2
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- Updated dependencies [6b06de40]
|
|
||||||
- @openstapps/logger@4.0.2
|
|
||||||
- @openstapps/core@4.0.2
|
|
||||||
- @openstapps/api@4.0.2
|
|
||||||
|
|
||||||
## 4.0.1
|
## 4.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/minimal-connector",
|
"name": "@openstapps/minimal-connector",
|
||||||
"description": "This is a minimal connector which serves as an example",
|
"description": "This is a minimal connector which serves as an example",
|
||||||
"version": "4.0.2",
|
"version": "4.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
|||||||
@@ -1,16 +1,5 @@
|
|||||||
# @openstapps/minimal-plugin
|
# @openstapps/minimal-plugin
|
||||||
|
|
||||||
## 4.0.2
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- Updated dependencies [6b06de40]
|
|
||||||
- @openstapps/logger@4.0.2
|
|
||||||
- @openstapps/api-plugin@4.0.2
|
|
||||||
- @openstapps/core@4.0.2
|
|
||||||
- @openstapps/core-tools@4.0.2
|
|
||||||
- @openstapps/api@4.0.2
|
|
||||||
|
|
||||||
## 4.0.1
|
## 4.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/minimal-plugin",
|
"name": "@openstapps/minimal-plugin",
|
||||||
"description": "Minimal Plugin",
|
"description": "Minimal Plugin",
|
||||||
"version": "4.0.2",
|
"version": "4.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
# @openstapps/app
|
# @openstapps/app
|
||||||
|
|
||||||
## 4.0.2
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- @openstapps/core@4.0.2
|
|
||||||
- @openstapps/api@4.0.2
|
|
||||||
|
|
||||||
## 4.0.1
|
## 4.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -40,14 +40,16 @@
|
|||||||
"glob": "CHANGELOG.md",
|
"glob": "CHANGELOG.md",
|
||||||
"input": ".",
|
"input": ".",
|
||||||
"output": "assets"
|
"output": "assets"
|
||||||
}
|
},
|
||||||
|
"src/manifest.webmanifest"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
{
|
{
|
||||||
"input": "src/global.scss",
|
"input": "src/global.scss",
|
||||||
"inject": true
|
"inject": true
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"serviceWorker": "ngsw-config.json"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
@@ -127,7 +129,8 @@
|
|||||||
"glob": "**/*",
|
"glob": "**/*",
|
||||||
"input": "src/assets",
|
"input": "src/assets",
|
||||||
"output": "/assets"
|
"output": "/assets"
|
||||||
}
|
},
|
||||||
|
"src/manifest.webmanifest"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ describe('App', () => {
|
|||||||
it('should have a proper title', () => {
|
it('should have a proper title', () => {
|
||||||
cy.visit('/overview');
|
cy.visit('/overview');
|
||||||
|
|
||||||
cy.title().should('equal', 'StApps');
|
cy.title().should('equal', 'Goethe-Uni');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a proper working navigation', () => {
|
it('should have a proper working navigation', () => {
|
||||||
|
|||||||
21
frontend/app/ngsw-config.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
|
||||||
|
"index": "/index.html",
|
||||||
|
"assetGroups": [
|
||||||
|
{
|
||||||
|
"name": "app",
|
||||||
|
"installMode": "prefetch",
|
||||||
|
"resources": {
|
||||||
|
"files": ["/favicon.ico", "/index.html", "/manifest.webmanifest", "/*.css", "/*.js"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "assets",
|
||||||
|
"installMode": "lazy",
|
||||||
|
"updateMode": "prefetch",
|
||||||
|
"resources": {
|
||||||
|
"files": ["/assets/**", "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/app",
|
"name": "@openstapps/app",
|
||||||
"description": "The generic app tailored to fulfill needs of German universities, written using Ionic Framework.",
|
"description": "The generic app tailored to fulfill needs of German universities, written using Ionic Framework.",
|
||||||
"version": "4.0.2",
|
"version": "4.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
||||||
@@ -55,6 +55,7 @@
|
|||||||
"@angular/forms": "17.3.12",
|
"@angular/forms": "17.3.12",
|
||||||
"@angular/platform-browser": "17.3.12",
|
"@angular/platform-browser": "17.3.12",
|
||||||
"@angular/router": "17.3.12",
|
"@angular/router": "17.3.12",
|
||||||
|
"@angular/service-worker": "17.3.12",
|
||||||
"@awesome-cordova-plugins/calendar": "6.6.0",
|
"@awesome-cordova-plugins/calendar": "6.6.0",
|
||||||
"@awesome-cordova-plugins/core": "6.6.0",
|
"@awesome-cordova-plugins/core": "6.6.0",
|
||||||
"@capacitor-community/screen-brightness": "6.0.0",
|
"@capacitor-community/screen-brightness": "6.0.0",
|
||||||
@@ -97,7 +98,7 @@
|
|||||||
"ionicons": "7.4.0",
|
"ionicons": "7.4.0",
|
||||||
"jsonpath-plus": "10.3.0",
|
"jsonpath-plus": "10.3.0",
|
||||||
"maplibre-gl": "4.0.2",
|
"maplibre-gl": "4.0.2",
|
||||||
"material-symbols": "0.17.1",
|
"material-symbols": "0.27.2",
|
||||||
"moment": "2.30.1",
|
"moment": "2.30.1",
|
||||||
"ngx-date-fns": "11.0.0",
|
"ngx-date-fns": "11.0.0",
|
||||||
"ngx-logger": "5.0.12",
|
"ngx-logger": "5.0.12",
|
||||||
|
|||||||
73
frontend/app/resources/logo_pwa.svg
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg2"
|
||||||
|
width="1024"
|
||||||
|
height="1024"
|
||||||
|
viewBox="0 0 1024 1024"
|
||||||
|
sodipodi:docname="logo_pwa.svg"
|
||||||
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
|
||||||
|
xml:space="preserve"
|
||||||
|
inkscape:export-filename="../src/assets/icons/icon-512x512.png"
|
||||||
|
inkscape:export-xdpi="48"
|
||||||
|
inkscape:export-ydpi="48"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs6" /><sodipodi:namedview
|
||||||
|
id="namedview4"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="true"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="0.49999772"
|
||||||
|
inkscape:cx="454.00207"
|
||||||
|
inkscape:cy="347.00158"
|
||||||
|
inkscape:window-width="1504"
|
||||||
|
inkscape:window-height="1729"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g8" /><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="Image"
|
||||||
|
id="g8"><rect
|
||||||
|
style="fill:#00b5cc;fill-opacity:1;stroke-width:1.10978"
|
||||||
|
id="rect2351"
|
||||||
|
width="379.77051"
|
||||||
|
height="379.77051"
|
||||||
|
x="143.85109"
|
||||||
|
y="141.62936"
|
||||||
|
ry="50.263741"
|
||||||
|
sodipodi:insensitive="true" /><rect
|
||||||
|
style="fill:#3be40b;fill-opacity:1;stroke-width:1.11352"
|
||||||
|
id="rect2353"
|
||||||
|
width="154.14215"
|
||||||
|
height="154.14215"
|
||||||
|
x="580.75684"
|
||||||
|
y="367.25772"
|
||||||
|
ry="25.690359"
|
||||||
|
sodipodi:insensitive="true" /><rect
|
||||||
|
style="fill:#c90e20;fill-opacity:1;stroke-width:1.10084"
|
||||||
|
id="rect2355"
|
||||||
|
width="306.05032"
|
||||||
|
height="306.05032"
|
||||||
|
x="580.75684"
|
||||||
|
y="578.53516"
|
||||||
|
ry="35.743107"
|
||||||
|
sodipodi:insensitive="true" /><rect
|
||||||
|
style="fill:#e4a20b;fill-opacity:1;stroke-width:1.11912"
|
||||||
|
id="rect2357"
|
||||||
|
width="232.33018"
|
||||||
|
height="232.33018"
|
||||||
|
x="291.29138"
|
||||||
|
y="578.53516"
|
||||||
|
ry="33.509159"
|
||||||
|
sodipodi:insensitive="true" /></g></svg>
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -15,7 +15,7 @@
|
|||||||
import {CommonModule, LocationStrategy, PathLocationStrategy, registerLocaleData} from '@angular/common';
|
import {CommonModule, LocationStrategy, PathLocationStrategy, registerLocaleData} from '@angular/common';
|
||||||
import {HTTP_INTERCEPTORS, HttpClient, provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
import {HTTP_INTERCEPTORS, HttpClient, provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||||
import localeDe from '@angular/common/locales/de';
|
import localeDe from '@angular/common/locales/de';
|
||||||
import {APP_INITIALIZER, NgModule} from '@angular/core';
|
import {APP_INITIALIZER, NgModule, isDevMode} from '@angular/core';
|
||||||
import {BrowserModule} from '@angular/platform-browser';
|
import {BrowserModule} from '@angular/platform-browser';
|
||||||
import {RouteReuseStrategy} from '@angular/router';
|
import {RouteReuseStrategy} from '@angular/router';
|
||||||
import {IonicRouteStrategy, Platform, provideIonicAngular, IonApp} from '@ionic/angular/standalone';
|
import {IonicRouteStrategy, Platform, provideIonicAngular, IonApp} from '@ionic/angular/standalone';
|
||||||
@@ -70,6 +70,7 @@ import {Capacitor} from '@capacitor/core';
|
|||||||
import {SplashScreen} from '@capacitor/splash-screen';
|
import {SplashScreen} from '@capacitor/splash-screen';
|
||||||
import maplibregl from 'maplibre-gl';
|
import maplibregl from 'maplibre-gl';
|
||||||
import {Protocol} from 'pmtiles';
|
import {Protocol} from 'pmtiles';
|
||||||
|
import {ServiceWorkerModule} from '@angular/service-worker';
|
||||||
|
|
||||||
registerLocaleData(localeDe);
|
registerLocaleData(localeDe);
|
||||||
|
|
||||||
@@ -182,6 +183,12 @@ export function createTranslateLoader(http: HttpClient) {
|
|||||||
level: environment.production ? NgxLoggerLevel.FATAL : NgxLoggerLevel.TRACE,
|
level: environment.production ? NgxLoggerLevel.FATAL : NgxLoggerLevel.TRACE,
|
||||||
}),
|
}),
|
||||||
IonApp,
|
IonApp,
|
||||||
|
ServiceWorkerModule.register('ngsw-worker.js', {
|
||||||
|
enabled: !isDevMode(),
|
||||||
|
// Register the ServiceWorker as soon as the application is stable
|
||||||
|
// or after 30 seconds (whichever comes first).
|
||||||
|
registrationStrategy: 'registerWhenStable:30000',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export const DataIcons = {
|
|||||||
'id card': SCIcon.badge,
|
'id card': SCIcon.badge,
|
||||||
'message': SCIcon.newspaper,
|
'message': SCIcon.newspaper,
|
||||||
'organization': SCIcon.business_center,
|
'organization': SCIcon.business_center,
|
||||||
'periodical': SCIcon.feed,
|
'periodical': SCIcon.news,
|
||||||
'person': SCIcon.person,
|
'person': SCIcon.person,
|
||||||
'point of interest': SCIcon.pin_drop,
|
'point of interest': SCIcon.pin_drop,
|
||||||
'publication event': SCIcon.campaign,
|
'publication event': SCIcon.campaign,
|
||||||
|
|||||||
@@ -19,6 +19,6 @@
|
|||||||
[size]="24"
|
[size]="24"
|
||||||
[fill]="(isFavorite$ | async) || false"
|
[fill]="(isFavorite$ | async) || false"
|
||||||
[class.selected]="isFavorite$ | async"
|
[class.selected]="isFavorite$ | async"
|
||||||
name="grade"
|
name="star"
|
||||||
></ion-icon>
|
></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
slot="icon-only"
|
slot="icon-only"
|
||||||
[size]="32"
|
[size]="32"
|
||||||
color="medium"
|
color="medium"
|
||||||
name="grade"
|
name="star"
|
||||||
></ion-icon>
|
></ion-icon>
|
||||||
}
|
}
|
||||||
<label class="thank-you">{{ 'ratings.thank_you' | translate }}</label>
|
<label class="thank-you">{{ 'ratings.thank_you' | translate }}</label>
|
||||||
|
|||||||
@@ -42,9 +42,11 @@
|
|||||||
}
|
}
|
||||||
<!-- TODO see above -->
|
<!-- TODO see above -->
|
||||||
@if (item.description && item.type !== 'job posting' && buttonShown) {
|
@if (item.description && item.type !== 'job posting' && buttonShown) {
|
||||||
<ion-button expand="full" fill="clear" (click)="toggleDescriptionAccordion()">
|
<div class="read-more-container">
|
||||||
<ion-icon [name]="buttonState" size="large"></ion-icon>
|
<ion-button shape="round" size="small" (click)="toggleDescriptionAccordion()">
|
||||||
</ion-button>
|
READ_MORE...
|
||||||
|
</ion-button>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
</ion-card-content>
|
</ion-card-content>
|
||||||
</ion-card>
|
</ion-card>
|
||||||
|
|||||||
@@ -52,3 +52,21 @@ ion-card {
|
|||||||
--color: var(--ion-color-primary-contrast);
|
--color: var(--ion-color-primary-contrast);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.read-more-container {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
margin-top: -24px;
|
||||||
|
|
||||||
|
background: linear-gradient(to bottom, transparent, var(--ion-color-primary));
|
||||||
|
|
||||||
|
ion-button {
|
||||||
|
--background: var(--ion-color-primary-contrast);
|
||||||
|
--color: var(--ion-color-primary);
|
||||||
|
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ import {SCThings} from '@openstapps/core';
|
|||||||
import {SCIcon} from '../../../util/ion-icon/icon';
|
import {SCIcon} from '../../../util/ion-icon/icon';
|
||||||
|
|
||||||
const AccordionButtonState = {
|
const AccordionButtonState = {
|
||||||
collapsed: SCIcon.expand_more,
|
collapsed: SCIcon.unfold_more,
|
||||||
expanded: SCIcon.expand_less,
|
expanded: SCIcon.unfold_less,
|
||||||
};
|
};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -44,7 +44,7 @@ export class TitleCardComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
descriptionLinesTotal: number;
|
descriptionLinesTotal: number;
|
||||||
|
|
||||||
descriptionPreviewLines = 3;
|
descriptionPreviewLines = 4;
|
||||||
|
|
||||||
descriptionLinesToDisplay = 0;
|
descriptionLinesToDisplay = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
'_EVENT' | translate: {count: myCoursesDay[1].length}
|
'_EVENT' | translate: {count: myCoursesDay[1].length}
|
||||||
}}</ion-label
|
}}</ion-label
|
||||||
>
|
>
|
||||||
<ion-icon class="ion-accordion-toggle-icon" name="expand_more"></ion-icon>
|
<ion-icon class="ion-accordion-toggle-icon" name="keyboard_arrow_down"></ion-icon>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-list class="ion-padding" slot="content">
|
<ion-list class="ion-padding" slot="content">
|
||||||
@if (myCoursesDay[1].length === 0) {
|
@if (myCoursesDay[1].length === 0) {
|
||||||
|
|||||||
@@ -14,10 +14,10 @@
|
|||||||
-->
|
-->
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<ion-button fill="clear" class="left-button" (click)="mainSwiper.pageBackwards()">
|
<ion-button fill="clear" class="left-button" (click)="mainSwiper.pageBackwards()">
|
||||||
<ion-icon slot="icon-only" name="chevron_left"></ion-icon>
|
<ion-icon slot="icon-only" name="chevron_backward"></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
<ion-button fill="clear" class="right-button" (click)="mainSwiper.pageForward()">
|
<ion-button fill="clear" class="right-button" (click)="mainSwiper.pageForward()">
|
||||||
<ion-icon slot="icon-only" name="chevron_right"></ion-icon>
|
<ion-icon slot="icon-only" name="chevron_forward"></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
<infinite-swiper
|
<infinite-swiper
|
||||||
class="header-swiper"
|
class="header-swiper"
|
||||||
|
|||||||
@@ -14,10 +14,10 @@
|
|||||||
-->
|
-->
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<ion-button fill="clear" class="left-button" (click)="mainSwiper.swiperRef.slidePrev()">
|
<ion-button fill="clear" class="left-button" (click)="mainSwiper.swiperRef.slidePrev()">
|
||||||
<ion-icon slot="icon-only" name="chevron_left"></ion-icon>
|
<ion-icon slot="icon-only" name="chevron_backward"></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
<ion-button fill="clear" class="right-button" (click)="mainSwiper.swiperRef.slideNext()">
|
<ion-button fill="clear" class="right-button" (click)="mainSwiper.swiperRef.slideNext()">
|
||||||
<ion-icon slot="icon-only" name="chevron_right"></ion-icon>
|
<ion-icon slot="icon-only" name="chevron_forward"></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
<swiper
|
<swiper
|
||||||
class="header-swiper"
|
class="header-swiper"
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
<ion-button expand="block" (click)="presentResetAlert()" fill="outline">
|
<ion-button expand="block" (click)="presentResetAlert()" fill="outline">
|
||||||
{{ 'settings.resetSettings' | translate }}
|
{{ 'settings.resetSettings' | translate }}
|
||||||
<ion-icon slot="start" name="device_reset"></ion-icon>
|
<ion-icon slot="start" name="history"></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -14,10 +14,12 @@ export class EncryptedStorageProvider {
|
|||||||
* @returns The value of the resource, if found
|
* @returns The value of the resource, if found
|
||||||
*/
|
*/
|
||||||
async get<T>(key: string): Promise<T | undefined> {
|
async get<T>(key: string): Promise<T | undefined> {
|
||||||
if (!Capacitor.isNativePlatform()) return undefined;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const jwt = JSON.parse((await SecureStoragePlugin.get({key: `stapps:key:${key}`})).value);
|
const jwt = JSON.parse(
|
||||||
|
await (Capacitor.isNativePlatform()
|
||||||
|
? SecureStoragePlugin.get({key: `stapps:key:${key}`}).then(it => it.value)
|
||||||
|
: this.storageProvider.get<string>(`stapps:key:${key}`)),
|
||||||
|
);
|
||||||
const aesKey = await crypto.subtle.importKey('jwk', jwt, {name: 'AES-GCM'}, true, [
|
const aesKey = await crypto.subtle.importKey('jwk', jwt, {name: 'AES-GCM'}, true, [
|
||||||
'encrypt',
|
'encrypt',
|
||||||
'decrypt',
|
'decrypt',
|
||||||
@@ -48,8 +50,6 @@ export class EncryptedStorageProvider {
|
|||||||
* @returns A promise that resolves when the value is stored
|
* @returns A promise that resolves when the value is stored
|
||||||
*/
|
*/
|
||||||
async set<T>(key: string, value: T): Promise<void> {
|
async set<T>(key: string, value: T): Promise<void> {
|
||||||
if (!Capacitor.isNativePlatform()) return undefined;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const compressionStream = new CompressionStream('gzip');
|
const compressionStream = new CompressionStream('gzip');
|
||||||
const writer = compressionStream.writable.getWriter();
|
const writer = compressionStream.writable.getWriter();
|
||||||
@@ -63,11 +63,14 @@ export class EncryptedStorageProvider {
|
|||||||
'decrypt',
|
'decrypt',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const exportedKey = JSON.stringify(await crypto.subtle.exportKey('jwk', aesKey));
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
SecureStoragePlugin.set({
|
Capacitor.isNativePlatform()
|
||||||
key: `stapps:key:${key}`,
|
? SecureStoragePlugin.set({
|
||||||
value: JSON.stringify(await crypto.subtle.exportKey('jwk', aesKey)),
|
key: `stapps:key:${key}`,
|
||||||
}),
|
value: exportedKey,
|
||||||
|
})
|
||||||
|
: this.storageProvider.put(`stapps:key:${key}`, exportedKey),
|
||||||
this.storageProvider.put(`encrypted:${key}:iv`, iv),
|
this.storageProvider.put(`encrypted:${key}:iv`, iv),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -81,10 +84,10 @@ export class EncryptedStorageProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async delete(key: string): Promise<void> {
|
async delete(key: string): Promise<void> {
|
||||||
if (!Capacitor.isNativePlatform()) return;
|
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
SecureStoragePlugin.remove({key: `stapps:key:${key}`}),
|
Capacitor.isNativePlatform()
|
||||||
|
? SecureStoragePlugin.remove({key: `stapps:key:${key}`})
|
||||||
|
: this.storageProvider.delete(`stapps:key:${key}`),
|
||||||
this.storageProvider.delete(`encrypted:${key}:iv`),
|
this.storageProvider.delete(`encrypted:${key}:iv`),
|
||||||
this.storageProvider.delete(`encrypted:${key}`),
|
this.storageProvider.delete(`encrypted:${key}`),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -150,12 +150,12 @@ const iconMap = new Map<string, MaterialSymbol>([
|
|||||||
[menuSharp, SCIcon.menu],
|
[menuSharp, SCIcon.menu],
|
||||||
[searchOutline, SCIcon.search],
|
[searchOutline, SCIcon.search],
|
||||||
[searchSharp, SCIcon.search],
|
[searchSharp, SCIcon.search],
|
||||||
[chevronExpand, SCIcon.expand_more],
|
[chevronExpand, SCIcon.keyboard_arrow_down],
|
||||||
[caretDownSharp, SCIcon.expand_more],
|
[caretDownSharp, SCIcon.keyboard_arrow_down],
|
||||||
[close, SCIcon.close],
|
[close, SCIcon.close],
|
||||||
[closeSharp, SCIcon.close],
|
[closeSharp, SCIcon.close],
|
||||||
[closeCircle, SCIcon.cancel],
|
[closeCircle, SCIcon.cancel],
|
||||||
[ellipsisHorizontal, SCIcon.more_horiz],
|
[ellipsisHorizontal, SCIcon.more_horiz],
|
||||||
['chevron-down-outline', SCIcon.expand_more],
|
['chevron-down-outline', SCIcon.keyboard_arrow_down],
|
||||||
['arrow_back', SCIcon.arrow_back],
|
['arrow_back', SCIcon.arrow_back],
|
||||||
]);
|
]);
|
||||||
|
|||||||
BIN
frontend/app/src/assets/icons/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
frontend/app/src/assets/icons/icon_x128.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
frontend/app/src/assets/icons/icon_x192.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
frontend/app/src/assets/icons/icon_x384.png
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
frontend/app/src/assets/icons/icon_x48.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
frontend/app/src/assets/icons/icon_x512.png
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
frontend/app/src/assets/icons/icon_x72.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
frontend/app/src/assets/icons/icon_x96.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
frontend/app/src/assets/icons/local_cafe_x192.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
frontend/app/src/assets/icons/map_x192.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x128.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x192.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x384.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x48.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x512.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x72.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
frontend/app/src/assets/icons/maskable_icon_x96.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
frontend/app/src/assets/icons/school_x192.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
frontend/app/src/assets/icons/search_x192.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
frontend/app/src/assets/screenshots/canteens-wide.png
Normal file
|
After Width: | Height: | Size: 267 KiB |
BIN
frontend/app/src/assets/screenshots/canteens.png
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
frontend/app/src/assets/screenshots/map-wide.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
BIN
frontend/app/src/assets/screenshots/map.png
Normal file
|
After Width: | Height: | Size: 722 KiB |
BIN
frontend/app/src/assets/screenshots/my-app-wide.png
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
frontend/app/src/assets/screenshots/my-app.png
Normal file
|
After Width: | Height: | Size: 174 KiB |
BIN
frontend/app/src/assets/screenshots/overview-wide.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
frontend/app/src/assets/screenshots/overview.png
Normal file
|
After Width: | Height: | Size: 546 KiB |
BIN
frontend/app/src/assets/splash_screens/10.2__iPad_landscape.png
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
frontend/app/src/assets/splash_screens/10.2__iPad_portrait.png
Normal file
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 163 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 170 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 181 KiB |
|
After Width: | Height: | Size: 176 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 192 KiB |
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 55 KiB |