aboutsummaryrefslogtreecommitdiff
path: root/client-web/scripts/gen_param_table.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/scripts/gen_param_table.ts')
-rw-r--r--client-web/scripts/gen_param_table.ts27
1 files changed, 0 insertions, 27 deletions
diff --git a/client-web/scripts/gen_param_table.ts b/client-web/scripts/gen_param_table.ts
deleted file mode 100644
index 49634c0..0000000
--- a/client-web/scripts/gen_param_table.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
- which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
- Copyright (C) 2023 metamuffin <metamuffin.org>
-*/
-import { PREF_DECLS } from "../source/preferences/decl.ts";
-import { PrefDecl } from "../source/preferences/mod.ts";
-
-console.log(`Option name|Type|Default|Description`);
-console.log(`---|---|---|---`);
-
-const P = PREF_DECLS as Record<string, PrefDecl<unknown>>
-for (const key in P) {
- const e = P[key];
- if (key == "username") e.default = "guest-…" // maybe generalize
- const q = (e: string) => `\`${e}\``
- console.log([
- q(key),
- typeof e.type,
- e.default === undefined ? "-" : q(JSON.stringify(e.default)),
- (e.description ?? "*none*") + (
- e.possible_values
- ? " (" + e.possible_values.map(e => JSON.stringify(e)).map(q).join(" / ") + ")"
- : ""
- )
- ].join("|"));
-} \ No newline at end of file