added ko-fi to demo mode

This commit is contained in:
Gamosoft 2025-12-17 10:32:02 +01:00
parent f380f3c6da
commit b536466d85
7 changed files with 38 additions and 1 deletions

View File

@ -128,6 +128,7 @@ function noteApp() {
appName: 'NoteDiscovery', appName: 'NoteDiscovery',
appVersion: '0.0.0', appVersion: '0.0.0',
authEnabled: false, authEnabled: false,
demoMode: false,
notes: [], notes: [],
currentNote: '', currentNote: '',
currentNoteName: '', currentNoteName: '',
@ -663,6 +664,7 @@ function noteApp() {
this.appName = config.name; this.appName = config.name;
this.appVersion = config.version || '0.0.0'; this.appVersion = config.version || '0.0.0';
this.authEnabled = config.authentication?.enabled || false; this.authEnabled = config.authentication?.enabled || false;
this.demoMode = config.demoMode || false;
} catch (error) { } catch (error) {
console.error('Failed to load config:', error); console.error('Failed to load config:', error);
} }

View File

@ -1734,6 +1734,21 @@
> >
notediscovery.com notediscovery.com
</a> </a>
<!-- Ko-fi support link (demo mode only) -->
<template x-if="demoMode">
<div class="mt-3">
<a
href="https://ko-fi.com/gamosoft"
target="_blank"
rel="noopener noreferrer"
class="inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-full transition-all hover:scale-105"
style="background-color: #ff5e5b; color: white;"
>
<span></span>
<span x-text="t('support.enjoying_demo')"></span>
</a>
</div>
</template>
</div> </div>
</div> </div>
</div> </div>

View File

@ -224,6 +224,10 @@
"reserved_name": "Dieser Name ist vom Betriebssystem reserviert.", "reserved_name": "Dieser Name ist vom Betriebssystem reserviert.",
"invalid_dot": "Der Name darf nicht nur ein Punkt sein.", "invalid_dot": "Der Name darf nicht nur ein Punkt sein.",
"trailing_dot_space": "Der Name darf nicht mit einem Punkt oder Leerzeichen enden." "trailing_dot_space": "Der Name darf nicht mit einem Punkt oder Leerzeichen enden."
},
"support": {
"enjoying_demo": "Unterstütze dieses Projekt"
} }
} }

View File

@ -224,6 +224,10 @@
"reserved_name": "This name is reserved by the operating system.", "reserved_name": "This name is reserved by the operating system.",
"invalid_dot": "Name cannot be just a dot.", "invalid_dot": "Name cannot be just a dot.",
"trailing_dot_space": "Name cannot end with a dot or space." "trailing_dot_space": "Name cannot end with a dot or space."
},
"support": {
"enjoying_demo": "Support this project"
} }
} }

View File

@ -224,6 +224,10 @@
"reserved_name": "Este nombre está reservado por el sistema operativo.", "reserved_name": "Este nombre está reservado por el sistema operativo.",
"invalid_dot": "El nombre no puede ser solo un punto.", "invalid_dot": "El nombre no puede ser solo un punto.",
"trailing_dot_space": "El nombre no puede terminar con un punto o espacio." "trailing_dot_space": "El nombre no puede terminar con un punto o espacio."
},
"support": {
"enjoying_demo": "Apoya este proyecto"
} }
} }

View File

@ -224,6 +224,10 @@
"reserved_name": "Ce nom est réservé par le système d'exploitation.", "reserved_name": "Ce nom est réservé par le système d'exploitation.",
"invalid_dot": "Le nom ne peut pas être juste un point.", "invalid_dot": "Le nom ne peut pas être juste un point.",
"trailing_dot_space": "Le nom ne peut pas se terminer par un point ou un espace." "trailing_dot_space": "Le nom ne peut pas se terminer par un point ou un espace."
},
"support": {
"enjoying_demo": "Soutenez ce projet"
} }
} }

View File

@ -224,6 +224,10 @@
"reserved_name": "此名称被操作系统保留。", "reserved_name": "此名称被操作系统保留。",
"invalid_dot": "名称不能只是一个点。", "invalid_dot": "名称不能只是一个点。",
"trailing_dot_space": "名称不能以点或空格结尾。" "trailing_dot_space": "名称不能以点或空格结尾。"
},
"support": {
"enjoying_demo": "支持此项目"
} }
} }