diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 20:14:04 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 20:14:04 +0100 |
| commit | dd3e17cb9765f7643c8a5ccdfa36481618fa897a (patch) | |
| tree | 09eee2c8c7e07d7662203f7755d24639365866aa /desktop/modules/deckit/Modules.js | |
| parent | cd7035be76c82c15d172a6827c3c8f81df723424 (diff) | |
| download | quickshell-dd3e17cb9765f7643c8a5ccdfa36481618fa897a.tar.gz quickshell-dd3e17cb9765f7643c8a5ccdfa36481618fa897a.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/deckit/Modules.js')
| -rw-r--r-- | desktop/modules/deckit/Modules.js | 24 |
1 files changed, 24 insertions, 0 deletions
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. <danix@danix.xyz> +// +// 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; } |
