aboutsummaryrefslogtreecommitdiff
path: root/src/pkjs
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2026-06-10 20:55:46 +0200
committerReiner Herrmann <reiner@reiner-h.de>2026-06-10 20:57:40 +0200
commit4d03f4370b3052949acfe7cc589d82adc427b8fb (patch)
tree9df3898b10830472fff79da98c8717771ded41f1 /src/pkjs
parent338df4088001869f83de45cf628b4ec43824a499 (diff)
make shown extensions configurable via phone app
Diffstat (limited to 'src/pkjs')
-rw-r--r--src/pkjs/config.json30
-rw-r--r--src/pkjs/index.js3
2 files changed, 33 insertions, 0 deletions
diff --git a/src/pkjs/config.json b/src/pkjs/config.json
new file mode 100644
index 0000000..d1f73f7
--- /dev/null
+++ b/src/pkjs/config.json
@@ -0,0 +1,30 @@
+[
+ {
+ "type": "checkboxgroup",
+ "messageKey": "enabled_extensions",
+ "label": "Shown Extensions",
+ "descriptions": "Choose the extensions for which events should be displayed in the watch app",
+ "defaultValue": [
+ true, true, true, true, true, true,
+ true, true, true, true, true, true
+ ],
+ "options": [
+ "Core",
+ "Living World Season 1",
+ "Living World Season 2",
+ "Living World Season 3",
+ "Living World Season 4",
+ "Icebrood Saga",
+ "Heart of Thorns",
+ "Path of Fire",
+ "End of Dragons",
+ "Secrets of the Obscure",
+ "Janthir Wilds",
+ "Visions of Eternity"
+ ]
+ },
+ {
+ "type": "submit",
+ "defaultValue": "Save"
+ }
+]
diff --git a/src/pkjs/index.js b/src/pkjs/index.js
new file mode 100644
index 0000000..3f7cff9
--- /dev/null
+++ b/src/pkjs/index.js
@@ -0,0 +1,3 @@
+var Clay = require('@rebble/clay');
+var clayConfig = require('./config.json');
+var clay = new Clay(clayConfig);