HUUUGE dump of code, toast system in a svelte module, new reworked tailwing color palette, WIP cms, WIP API and probably much more that i forgot about.

This commit is contained in:
2026-06-21 19:20:59 +02:00
parent 50872d8951
commit 8682de7d17
92 changed files with 2595 additions and 719 deletions
+5 -17
View File
@@ -1,25 +1,14 @@
import fsData from '$lib/assets/fs/fs.json';
import { db } from '$lib/server/db';
import { projects, settings } from '$lib/server/db/schema';
import { FileSystem } from '$lib/termos/filesystem/filesystem';
import { Sort, SortNodeBy } from '$lib/termos/util/sort';
import { config, projects } from '$lib/server/db/schema';
import { eq } from 'drizzle-orm';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async () => {
FileSystem.Init(fsData as any);
const fs = FileSystem.instance;
const node = fs.getNodeByInode(13); //Gordonox home dir
let nodes = node.children.map((child) => fs.getNodeByInode(child));
nodes = Sort.nodeArraySort(nodes, false, SortNodeBy.NAME);
return {
settings: await db
.select({ setting: settings.state })
.from(settings)
.where(eq(settings.var, 'maintenance'))
.select({ value: config.value })
.from(config)
.where(eq(config.key, 'maintenance'))
.limit(1),
projects: await db
.select({
@@ -28,7 +17,6 @@ export const load: PageServerLoad = async () => {
data: projects.data,
enabled: projects.enabled
})
.from(projects),
nodes: nodes
.from(projects)
};
};