🎉 first commit

This commit is contained in:
LIlGG
2025-09-24 13:06:25 +08:00
commit 1f4fb103e9
409 changed files with 61222 additions and 0 deletions

15
app/lib/stores/sidebar.ts Normal file
View File

@@ -0,0 +1,15 @@
import { atom } from 'nanostores';
export const kSidebar = 'upage_sidebar';
export const DEFAULT_SIDEBAR_STATE = false;
export const sidebarStore = atom<boolean>(DEFAULT_SIDEBAR_STATE);
export function toggleSidebar() {
const currentSidebar = sidebarStore.get();
const newSidebar = !currentSidebar;
// Update the theme store
sidebarStore.set(newSidebar);
}