update ui and other frontend updates

This commit is contained in:
JCEEE
2026-07-29 09:41:52 +01:00
parent 04b83925e0
commit 57ef30d3a7
79 changed files with 7323 additions and 429 deletions
+12 -3
View File
@@ -1,5 +1,14 @@
import PocketBase from 'pocketbase';
import { SERVER_IP, PB_PORT } from '$app/env/public';
import { PUBLIC_PB_URL } from '$app/env/public';
const url = `http://${SERVER_IP}:${PB_PORT}`;
export const pb: PocketBase = new PocketBase(url);
export const pb = new PocketBase(PUBLIC_PB_URL);
pb.autoCancellation(false);
export function initPbFromCookie() {
const match = document.cookie.match(/(?:^|;\s*)pb_token=([^;]*)/);
if (match) {
pb.authStore.save(match[1], null);
return true;
}
return false;
}