mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
feat: Decouple status icons; use local images via icon-map.js
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
80953e7f6d
commit
8b7e832225
3 changed files with 35 additions and 48 deletions
25
static/icon-map.js
Normal file
25
static/icon-map.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// In this file, you can define the paths to your local icon image files.
|
||||
const iconMap = {
|
||||
ltcStatus: {
|
||||
'LOCK': 'assets/lock.svg',
|
||||
'FREE': 'assets/lock-open.svg',
|
||||
'default': 'assets/question-circle.svg'
|
||||
},
|
||||
ntpActive: {
|
||||
true: 'assets/check-circle.svg',
|
||||
false: 'assets/times-circle.svg'
|
||||
},
|
||||
syncStatus: {
|
||||
'IN SYNC': 'assets/arrows-rotate.svg',
|
||||
'CLOCK AHEAD': 'assets/forward.svg',
|
||||
'CLOCK BEHIND': 'assets/backward.svg',
|
||||
'TIMETURNING': 'assets/wand-magic-sparkles.svg',
|
||||
'default': 'assets/question-circle.svg'
|
||||
},
|
||||
jitterStatus: {
|
||||
'GOOD': 'assets/thumbs-up.svg',
|
||||
'AVERAGE': 'assets/face-meh.svg',
|
||||
'BAD': 'assets/thumbs-down.svg',
|
||||
'default': 'assets/question-circle.svg'
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue