From 717f215c18c24aadf6de2d615c0af5b7caf40bc3 Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 4 Aug 2026 03:29:57 +0000 Subject: [PATCH 1/4] fix: bottom cutoff of member list Signed-off-by: lizzie --- src/webpage/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpage/style.css b/src/webpage/style.css index 1fb1826..2d0d4ff 100644 --- a/src/webpage/style.css +++ b/src/webpage/style.css @@ -3333,7 +3333,7 @@ img.bigembedimg { /* Sidebar */ #sideContainDiv { - padding: 16px 8px; + padding: 16px 8px 0px 8px; display: none; flex: none; width: 240px; From ff470e2834c244806934d7301a137f18a7b917ce Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 4 Aug 2026 04:36:55 +0000 Subject: [PATCH 2/4] feat: add bash and json highlight Signed-off-by: lizzie --- src/webpage/highlighter/clike/langs.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/webpage/highlighter/clike/langs.json b/src/webpage/highlighter/clike/langs.json index 40b8743..81df893 100644 --- a/src/webpage/highlighter/clike/langs.json +++ b/src/webpage/highlighter/clike/langs.json @@ -7,6 +7,10 @@ "multilineSlashComments": true, "JSLikeTemplateStrings": true }, +{ + "names":["json"], + "keywords":["true","false","null"] +}, { "names":["h","c","hc","c23","c89","ansic","ansi-c","khr-c","khrc"], "keywords":["auto", "break", "case", "char", "continue", "do", "default", "const", "double", "else", "enum", "extern", "for", "if", "goto", "float", "int", "long", "register", "return", "signed", "static", "sizeof", "short", "struct", "switch", "typedef", "union", "void", "while", "volatile", "unsigned"], @@ -85,5 +89,13 @@ "doubleSlashComments": true, "multilineSlashComments": true, "multiLine":"\"\"\"" +}, +{ + "names":["bash","sh","ksh","csh","shell"], + "keywords":["if","fi","else","then","while","do","for","continue","done","break","case","esac","in","local","return","declare","EOF","readonly","true","false"], + "firstLineShebang":true, + "hashComments": true, + "doubleSlashComments": false, + "multilineSlashComments": false } ] From af5794622c920d0a64ad7e9a525573a82b4058fc Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 4 Aug 2026 14:46:29 +0000 Subject: [PATCH 3/4] not json --- src/webpage/highlighter/clike/langs.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/webpage/highlighter/clike/langs.json b/src/webpage/highlighter/clike/langs.json index 81df893..1624a79 100644 --- a/src/webpage/highlighter/clike/langs.json +++ b/src/webpage/highlighter/clike/langs.json @@ -7,10 +7,6 @@ "multilineSlashComments": true, "JSLikeTemplateStrings": true }, -{ - "names":["json"], - "keywords":["true","false","null"] -}, { "names":["h","c","hc","c23","c89","ansic","ansi-c","khr-c","khrc"], "keywords":["auto", "break", "case", "char", "continue", "do", "default", "const", "double", "else", "enum", "extern", "for", "if", "goto", "float", "int", "long", "register", "return", "signed", "static", "sizeof", "short", "struct", "switch", "typedef", "union", "void", "while", "volatile", "unsigned"], From cac9a7740ebf93b1ae5cb9cbaab8e3965ea52221 Mon Sep 17 00:00:00 2001 From: Mathium05 Date: Tue, 4 Aug 2026 13:07:44 -0500 Subject: [PATCH 4/4] delete unused class Will redo something similar later --- src/webpage/utils/utils.ts | 81 -------------------------------------- 1 file changed, 81 deletions(-) diff --git a/src/webpage/utils/utils.ts b/src/webpage/utils/utils.ts index 837b4e7..c714636 100644 --- a/src/webpage/utils/utils.ts +++ b/src/webpage/utils/utils.ts @@ -290,87 +290,6 @@ export function adduser(user: typeof Specialuser.prototype.json): Specialuser { localStorage.setItem("userinfos", JSON.stringify(info)); return suser; } -class Directory { - static home = this.createHome(); - handle: FileSystemDirectoryHandle; - writeWorker?: Worker; - private constructor(handle: FileSystemDirectoryHandle) { - this.handle = handle; - } - static async createHome(): Promise { - navigator.storage.persist(); - const home = new Directory(await navigator.storage.getDirectory()); - return home; - } - async *getAllInDir() { - for await (const [name, handle] of this.handle.entries()) { - if (handle instanceof FileSystemDirectoryHandle) { - yield [name, new Directory(handle)] as [string, Directory]; - } else if (handle instanceof FileSystemFileHandle) { - yield [name, await handle.getFile()] as [string, File]; - } else { - console.log(handle, "oops :3"); - } - } - console.log("done"); - } - async getRawFileHandler(name: string) { - return await this.handle.getFileHandle(name); - } - async getRawFile(name: string) { - try { - return await (await this.handle.getFileHandle(name)).getFile(); - } catch { - return undefined; - } - } - async getString(name: string): Promise { - try { - return await (await this.getRawFile(name))!.text(); - } catch { - return undefined; - } - } - initWorker() { - if (this.writeWorker) return this.writeWorker; - this.writeWorker = new Worker("/utils/dirrWorker.js"); - this.writeWorker.onmessage = (event) => { - const res = this.wMap.get(event.data[0]); - this.wMap.delete(event.data[0]); - if (!res) throw new Error("Res is not defined here somehow"); - res(event.data[1]); - }; - return this.writeWorker; - } - wMap = new Map void>(); - async setStringWorker(name: FileSystemFileHandle, value: ArrayBuffer) { - const worker = this.initWorker(); - const random = Math.random(); - worker.postMessage([name, value, random]); - return new Promise((res) => { - this.wMap.set(random, res); - }); - } - async setString(name: string, value: string): Promise { - const file = await this.handle.getFileHandle(name, {create: true}); - const contents = new TextEncoder().encode(value); - - if (file.createWritable as unknown) { - const stream = await file.createWritable({keepExistingData: false}); - await stream.write(contents); - await stream.close(); - return true; - } else { - //Curse you webkit! - return await this.setStringWorker(file, contents.buffer as ArrayBuffer); - } - } - async getDir(name: string) { - return new Directory(await this.handle.getDirectoryHandle(name, {create: true})); - } -} - -export {Directory}; const mobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent) ||