make app name changable and move settings parameter to settings close #19

This commit is contained in:
Adrian Zürcher
2025-11-12 10:20:44 +01:00
parent c7fe7490f1
commit f8b79de6a2
11 changed files with 40 additions and 23 deletions

View File

@@ -1,4 +1,11 @@
import { ref } from 'vue';
export const logo = ref('');
export const appName = ref('Attendance Records');
export const databaseName = ref('members.dba');
export type Settings = {
appName: string;
icon: string;
databaseName: string;
primaryColor: string;
@@ -9,6 +16,7 @@ export type Settings = {
export function DefaultSettings(): Settings {
return {
appName: 'Attendance Records',
icon: '',
databaseName: 'members.dba',
primaryColor: document.documentElement.style.getPropertyValue('--q-primary-text'),