diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 20:53:17 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 20:53:17 +0100 |
| commit | 2c7cef2024c201fa9c7c406954121de337071689 (patch) | |
| tree | 5806185505f7fdf82ce7f6820bd97047ce974b79 /static | |
| parent | 82622100135bc7a53b632603fb7f398a49637a69 (diff) | |
| download | deck-it-2c7cef2024c201fa9c7c406954121de337071689.tar.gz deck-it-2c7cef2024c201fa9c7c406954121de337071689.zip | |
chore: GPLv2-only license, docs and source headers
Diffstat (limited to 'static')
| -rw-r--r-- | static/app.js | 16 | ||||
| -rw-r--r-- | static/deck.css | 18 | ||||
| -rw-r--r-- | static/index.html | 18 | ||||
| -rw-r--r-- | static/modules/llm.js | 16 | ||||
| -rw-r--r-- | static/modules/music.js | 16 | ||||
| -rw-r--r-- | static/modules/obs.js | 16 | ||||
| -rw-r--r-- | static/modules/sbbuilder.js | 16 | ||||
| -rw-r--r-- | static/modules/stats.js | 16 | ||||
| -rw-r--r-- | static/modules/windows.js | 16 |
9 files changed, 148 insertions, 0 deletions
diff --git a/static/app.js b/static/app.js index 296166a..b89fbaa 100644 --- a/static/app.js +++ b/static/app.js @@ -1,3 +1,19 @@ +// deck-it - the page shell: tabs, cards and polling +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + // The shell: discover modules, sort them into tabs, mount each panel and poll // its state. A module is static/modules/<name>.js exporting default {title, // tab, interval, mount(el), update(state, el)}. Modules without a tab go into diff --git a/static/deck.css b/static/deck.css index 9aaeaec..684d336 100644 --- a/static/deck.css +++ b/static/deck.css @@ -1,3 +1,21 @@ +/* + * deck-it - the dashboard styles + * 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. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + * { box-sizing: border-box; margin: 0; } html, body { height: 100%; } diff --git a/static/index.html b/static/index.html index 5a4ca3e..b2a3fca 100644 --- a/static/index.html +++ b/static/index.html @@ -1,4 +1,22 @@ <!doctype html> +<!-- + deck-it - the dashboard page + 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. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +--> + <html lang="en"> <head> <meta charset="utf-8"> diff --git a/static/modules/llm.js b/static/modules/llm.js index 1465a30..22f8737 100644 --- a/static/modules/llm.js +++ b/static/modules/llm.js @@ -1,3 +1,19 @@ +// deck-it - llm panel +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + const num = (v) => (v == null ? null : Number(v)); const money = (v) => (num(v) == null ? "—" : `$${num(v).toFixed(2)}`); const tokens = (n) => { diff --git a/static/modules/music.js b/static/modules/music.js index 81cf64e..b78a401 100644 --- a/static/modules/music.js +++ b/static/modules/music.js @@ -1,3 +1,19 @@ +// deck-it - music panel +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + function clock(s) { s = Math.max(0, Math.floor(s || 0)); return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`; diff --git a/static/modules/obs.js b/static/modules/obs.js index ae9e31b..3cc4197 100644 --- a/static/modules/obs.js +++ b/static/modules/obs.js @@ -1,3 +1,19 @@ +// deck-it - obs panel +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + // OBS as a stream-deck tab: icon-forward buttons and volume sliders, sized // for a finger rather than a mouse. diff --git a/static/modules/sbbuilder.js b/static/modules/sbbuilder.js index 751ffdd..9e49d90 100644 --- a/static/modules/sbbuilder.js +++ b/static/modules/sbbuilder.js @@ -1,3 +1,19 @@ +// deck-it - sbbuilder panel +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + const gib = (b) => (b == null ? "?" : (b / 1073741824).toFixed(1)); const pct = (n) => (n == null ? "?" : `${Math.round(n)}%`); const ago = (ts) => { diff --git a/static/modules/stats.js b/static/modules/stats.js index 16dffd2..c76e889 100644 --- a/static/modules/stats.js +++ b/static/modules/stats.js @@ -1,3 +1,19 @@ +// deck-it - stats panel +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + const gib = (kb) => (kb / 1048576).toFixed(1); const bytes = (b) => (b == null ? "?" : (b / 1073741824).toFixed(1)); const rate = (b) => (b >= 1048576 ? `${(b / 1048576).toFixed(1)}M` : `${Math.round(b / 1024)}k`); diff --git a/static/modules/windows.js b/static/modules/windows.js index c981846..d0a5a6c 100644 --- a/static/modules/windows.js +++ b/static/modules/windows.js @@ -1,3 +1,19 @@ +// deck-it - windows panel +// 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. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + async function post(action, body = {}) { try { await fetch(`/api/windows/${action}`, { |
