Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/Exence/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"browser": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/assets"],
"assets": ["src/assets", { "glob": "manifest.webmanifest", "input": "src", "output": "/" }],
"styles": ["src/styles/styles.scss"],
"scripts": ["node_modules/apexcharts/dist/apexcharts.min.js"],
"stylePreprocessorOptions": {
Expand All @@ -33,6 +33,7 @@
},
"configurations": {
"production": {
"serviceWorker": "ngsw-config.json",
"budgets": [
{
"type": "initial",
Expand Down
21 changes: 21 additions & 0 deletions frontend/Exence/ngsw-config.json
Original file line number Diff line number Diff line change
@@ -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)"]
}
}
]
}
21 changes: 21 additions & 0 deletions frontend/Exence/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/Exence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@angular/platform-browser": "^21.0.1",
"@angular/platform-browser-dynamic": "^21.0.1",
"@angular/router": "^21.0.1",
"@angular/service-worker": "^21.1.3",
"@ngrx/signals": "^21.0.1",
"angular-gridster2": "^21.0.1",
"apexcharts": "^5.6.0",
Expand Down
5 changes: 5 additions & 0 deletions frontend/Exence/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { ApplicationConfig, importProvidersFrom, provideZonelessChangeDetection, isDevMode } from '@angular/core';
import { provideServiceWorker } from '@angular/service-worker';
import { provideRouter } from '@angular/router';

import { LayoutModule } from '@angular/cdk/layout';
Expand Down Expand Up @@ -42,6 +43,10 @@ export const appConfig: ApplicationConfig = {
provideDateFnsAdapter(),
CookieService,
provideHttpClient(),
provideServiceWorker('ngsw-worker.js', {
enabled: !isDevMode(),
registrationStrategy: 'registerWhenStable:30000',
}),
provideTransloco({
config: {
availableLangs: ['hu', 'en', 'de', 'es', 'fr', 'it', 'pl', 'sk'],
Expand Down
Binary file added frontend/Exence/src/assets/icons/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion frontend/Exence/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
<head>
<meta charset="UTF-8" />
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/x-icon" href="assets/icons/logo.svg" />
<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#121212" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Exence" />
<link rel="apple-touch-icon" href="assets/icons/icon-192x192.png" />
<title>Exence</title>
</head>
<body>
Expand Down
24 changes: 24 additions & 0 deletions frontend/Exence/src/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Exence",
"short_name": "Exence",
"description": "Personal finance tracker",
"start_url": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#121212",
"theme_color": "#121212",
"icons": [
{
"src": "assets/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable any"
}
]
}
13 changes: 13 additions & 0 deletions frontend/Exence/src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ body {
margin: 0;
text-align: left;
height: 100%;
overscroll-behavior: none;
}

@media (pointer: coarse) {
* {
-webkit-tap-highlight-color: transparent;
}

button,
a,
[role='button'] {
user-select: none;
}
}

a {
Expand Down
Loading