feat: rebuild xiteng.site homelab platform

This commit is contained in:
2026-08-12 09:48:25 +08:00
parent 557b0eca33
commit 5b84988789
128 changed files with 14979 additions and 292 deletions
+13
View File
@@ -0,0 +1,13 @@
const conversationHashKey = "conversation";
export function conversationIdFromHash(hash: string) {
const input = hash.startsWith("#") ? hash.slice(1) : hash;
const id = new URLSearchParams(input).get(conversationHashKey)?.trim() || "";
return id && id.length <= 120 ? id : "";
}
export function conversationHash(id: string) {
const parameters = new URLSearchParams();
parameters.set(conversationHashKey, id);
return `#${parameters.toString()}`;
}