refactor: make minimal and clock as presets

This commit is contained in:
Carlos Valente
2025-07-13 08:18:58 +02:00
parent fd9bf0120c
commit e811a82be2
3 changed files with 21 additions and 4 deletions
+9 -2
View File
@@ -538,8 +538,15 @@ export const demoDb: DatabaseModel = {
urlPresets: [
{
enabled: true,
alias: 'test',
pathAndParams: 'timer?timerType=clock',
alias: 'clock',
pathAndParams:
'timer?showLeadingZeros=true&timerType=clock&hideClock=true&hideCards=true&hideProgress=true&hideMessage=true&hideSecondary=true&hideLogo=true',
},
{
enabled: true,
alias: 'minimal',
pathAndParams:
'timer?showLeadingZeros=true&hideClock=true&hideCards=true&hideProgress=true&hideMessage=true&hideSecondary=true&hideLogo=true',
},
],
automation: {
+6 -1
View File
@@ -488,7 +488,12 @@
{
"enabled": true,
"alias": "clock",
"pathAndParams": "timer?timerType=clock"
"pathAndParams": "timer?showLeadingZeros=true&timerType=clock&hideClock=true&hideCards=true&hideProgress=true&hideMessage=true&hideSecondary=true&hideLogo=true"
},
{
"enabled": true,
"alias": "minimal",
"pathAndParams": "timer?showLeadingZeros=true&hideClock=true&hideCards=true&hideProgress=true&hideMessage=true&hideSecondary=true&hideLogo=true"
}
],
"automation": {
+6 -1
View File
@@ -505,7 +505,12 @@
{
"enabled": true,
"alias": "clock",
"pathAndParams": "timer?timerType=clock"
"pathAndParams": "timer?showLeadingZeros=true&timerType=clock&hideClock=true&hideCards=true&hideProgress=true&hideMessage=true&hideSecondary=true&hideLogo=true"
},
{
"enabled": true,
"alias": "minimal",
"pathAndParams": "timer?showLeadingZeros=true&hideClock=true&hideCards=true&hideProgress=true&hideMessage=true&hideSecondary=true&hideLogo=true"
}
],
"automation": {