From dd3e17cb9765f7643c8a5ccdfa36481618fa897a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 20:14:04 +0100 Subject: feat(deckit): tabs and dashboard parts in separate lists deck-it's [modules] were one list mixing tabs and dashboard parts. The General page now lists the tabs (Windows, OBS, K1C printer, Assistant) and the Dashboard page the parts, each under a readable name; Modules.js holds the split. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/deckit/Modules.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 desktop/modules/deckit/Modules.js (limited to 'desktop/modules/deckit/Modules.js') diff --git a/desktop/modules/deckit/Modules.js b/desktop/modules/deckit/Modules.js new file mode 100644 index 0000000..7bfbdbc --- /dev/null +++ b/desktop/modules/deckit/Modules.js @@ -0,0 +1,24 @@ +// Copyright (C) 2026 Danilo M. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +.pragma library + +// deck-it's [modules] split for the pages: the ones with a tab of their own, +// and the rest, which only feed the Dashboard. A module deck-it adds later +// lands with the Dashboard ones until it is listed here. +var TABS = ["windows", "obs", "k1c", "assistant"]; +var NAMES = { stats: "System", music: "Music", llm: "LLM usage", tablet: "Tablet", + sbbuilder: "Build VM", actions: "Action icons", windows: "Windows", + obs: "OBS", k1c: "K1C printer", assistant: "Assistant" }; + +function tabs(all) { return all.filter(m => TABS.includes(m)); } +function parts(all) { return all.filter(m => !TABS.includes(m)); } +function name(m) { return NAMES[m] ?? m; } -- cgit v1.2.3