move settings to seperate file

This commit is contained in:
Mathium05
2026-09-27 19:43:29 -05:00
parent ff2b5b2542
commit 5a365dcfd8
4 changed files with 1592 additions and 1579 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import "./audio/page.js";
import "./404.js";
import type * as C from "./typeChecker/chekerIndex.js";
import {TypeBox} from "./typeBox.js";
import {showusersettings} from "./mainSettings.js";
if (window.location.pathname === "/app") {
window.location.pathname = "/channels/@me";
@@ -192,7 +193,7 @@ if (window.location.pathname.startsWith("/channels")) {
await setTheme();
function userSettings(): void {
thisUser?.showusersettings();
if (thisUser) showusersettings(thisUser);
}
(document.getElementById("settings") as HTMLImageElement).onclick = userSettings;
+9 -1577
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-1
View File
@@ -74,7 +74,6 @@ class MarkDown {
return this.markdown(this.txt, {keep, stdsize});
}
markdown(text: string | string[], {keep = false, stdsize = false} = {}) {
debugger;
if (!keep && !stdsize) {
let str: string;
if (text instanceof Array) {