···11+if nix flake show &> /dev/null; then
22+ use flake
33+ fi
+4
.gitignore
···22node_modules
33prelude.d.ts
44prelude.mjs
55+dashboard/src/prelude.mjs
5667# output
78out
···6566# and can be added to the global gitignore or merged into this file. For a more nuclear
6667# option (not recommended) you can uncomment the following to ignore the entire idea folder.
6768#.idea/
6969+7070+# Ignore direnv cache
7171+.direnv/
···11// noinspection JSUnusedGlobalSymbols: JetBrains IDEs do not detect FFI imports from Gleam code.
22import { Result$Error } from "./prelude";
33+// Path's all the way out of the build folder.
44+import appManifest from "../../../../gleam.toml";
55+66+export function app_version(): string {
77+ return appManifest.version
88+}
99+export function srv_version(): string {
1010+ //@ts-ignore
1111+ let v: string = internalServerVersion;
1212+ if (v == "old") {
1313+ return "Old TS version (version undocumented)"
1414+ }
1515+ return v;
1616+}
317418export async function get_uploaded_file() {
519 const fileInput = document.getElementById(