Move to TanStack Start from Next.js (#184)

This commit is contained in:
Aslam
2024-10-07 16:44:17 +07:00
committed by GitHub
parent 3a89a1c07f
commit 950ebc3dad
514 changed files with 20021 additions and 15508 deletions

View File

@@ -0,0 +1,3 @@
import { atom } from "jotai"
export const commandPaletteOpenAtom = atom(false)

View File

@@ -0,0 +1,3 @@
import { atom } from "jotai"
export const keyboardDisableSourcesAtom = atom<Set<string>>(new Set<string>())

7
web/app/store/link.ts Normal file
View File

@@ -0,0 +1,7 @@
import { atom } from "jotai"
import { atomWithStorage } from "jotai/utils"
export const linkSortAtom = atomWithStorage("sort", "manual")
export const linkEditIdAtom = atom<string | null>(null)
export const linkLearningStateSelectorAtom = atom(false)
export const linkOpenPopoverForIdAtom = atom<string | null>(null)

7
web/app/store/sidebar.ts Normal file
View File

@@ -0,0 +1,7 @@
import { atom } from "jotai"
export const isCollapseAtom = atom(false)
export const toggleCollapseAtom = atom(
(get) => get(isCollapseAtom),
(get, set) => set(isCollapseAtom, !get(isCollapseAtom)),
)