AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
Split initial web bundle
tianmafa139b946900
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex 131e58b1..818fd8c1 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -47,17 +47,13 @@ import { EditorToolbar } from "./EditorToolbar";import { RevisionHistoryDialog } from "./dialogs/RevisionHistoryDialog";import { api } from "@/lib/api";import { cn, formatDateTime, parseTagsText } from "@/lib/utils";-import type { Notebook, MemoDetail, TiptapDoc } from "@edgeever/shared";-import type { MemoUpdateSyncPayload } from "@/lib/app-helpers";+import { docToMarkdown, type Notebook, type MemoDetail, type TiptapDoc } from "@edgeever/shared";+import { compressImageForUpload } from "@/lib/image-compression";+import { localDb, type MemoUpdateSyncPayload } from "@/lib/local-db";+import { getMemoUpdateQueueId, queueMemoUpdate, shouldQueueMemoSaveError } from "@/lib/sync-queue";import {getNotebookMoveOptions,DEFAULT_MEMO_TITLE,- localDb,- getMemoUpdateQueueId,- compressImageForUpload,- docToMarkdown,- shouldQueueMemoSaveError,- queueMemoUpdate,} from "@/lib/app-helpers";const SUPPORTED_PASTE_IMAGE_TYPES = new Set(["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif"]);diff --git a/apps/web/src/components/MemoListMobileSheets.tsx b/apps/web/src/components/MemoListMobileSheets.tsxnew file mode 100644index 00000000..4de3eb86--- /dev/null+++ b/apps/web/src/components/MemoListMobileSheets.tsx@@ -0,0 +1,338 @@+import { useEffect, useMemo, useRef, type ReactNode } from "react";+import { Archive, CheckSquare, Folder as NotebookIcon, KeyRound, LayoutList, List, Merge, Star, Tags, Trash2, X } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "@/components/ui/command";+import {+ Drawer,+ DrawerContent,+ DrawerDescription,+ DrawerHeader,+ DrawerTitle,+} from "@/components/ui/drawer";+import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";+import { cn } from "@/lib/utils";+import { MEMO_SORT_OPTIONS, getNotebookMoveOptions } from "@/lib/app-helpers";+import type { MemoListDensity, MemoSortMode } from "@/lib/app-helpers";+import type { Notebook } from "@edgeever/shared";++const getSelectionCountLabel = (count: number) => (count > 0 ? `已选择 ${count} 条` : "选择笔记");++const memoListDensityOptions = [+ { value: "preview" as const, label: "预览列表", icon: <LayoutList className="h-4 w-4" /> },+ { value: "compact" as const, label: "紧凑列表", icon: <List className="h-4 w-4" /> },+];++const mobileSortOptions = MEMO_SORT_OPTIONS;++const CheckCircleCheck = ({ className }: { className?: string }) => (+ <svg className={cn("h-4 w-4 fill-current", className)} viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">+ <path+ fillRule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clipRule="evenodd"+ />+ </svg>+);++const MobileListActionButton = ({+ disabled = false,+ icon,+ label,+ onClick,+}: {+ disabled?: boolean;+ icon: ReactNode;+ label: string;+ onClick: () => void;+}) => (+ <button+ className="flex h-11 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:opacity-40"+ type="button"+ disabled={disabled}+ onClick={onClick}+ >+ <span className="text-slate-500">{icon}</span>+ <span className="min-w-0 flex-1 truncate">{label}</span>+ </button>+);++export const MobileListActionsSheet = ({+ canSelectMemos,+ isSelectionMode,+ listDescription,+ listDensity,+ listTitle,+ sortMode,+ onClose,+ onEnterSelectionMode,+ onOpenAssets,+ onOpenSettings,+ onOpenTags,+ onOpenTrash,+ onListDensityChange,+ onSortModeChange,+}: {+ canSelectMemos: boolean;+ isSelectionMode: boolean;+ listDescription: string;+ listDensity: MemoListDensity;+ listTitle: string;+ sortMode: MemoSortMode;+ onClose: () => void;+ onEnterSelectionMode: () => void;+ onOpenAssets: () => void;+ onOpenSettings: () => void;+ onOpenTags: () => void;+ onOpenTrash: () => void;+ onListDensityChange: (value: MemoListDensity) => void;+ onSortModeChange: (value: MemoSortMode) => void;+}) => (+ <Drawer open={true} onOpenChange={(open) => { if (!open) onClose(); }}>+ <DrawerContent className="bottom-[calc(5.25rem+env(safe-area-inset-bottom))] max-h-[calc(100dvh_-_6.75rem_-_env(safe-area-inset-bottom))] overflow-hidden rounded-md lg:hidden">+ <header className="flex h-12 items-center justify-between border-b border-slate-200 px-4">+ <DrawerHeader className="min-w-0 p-0">+ <DrawerTitle className="truncate">列表选项</DrawerTitle>+ <DrawerDescription className="truncate">+ {listTitle} · {listDescription}+ </DrawerDescription>+ </DrawerHeader>+ <Button size="icon" variant="ghost" title="关闭" aria-label="关闭" onClick={onClose}>+ <X className="h-4 w-4" />+ </Button>+ </header>+ <div className="max-h-[calc(100dvh_-_10.25rem_-_env(safe-area-inset-bottom))] overflow-y-auto p-2">+ {!isSelectionMode && (+ <>+ <MobileListActionButton+ disabled={!canSelectMemos}+ icon={<CheckSquare className="h-4 w-4" />}+ label="选择笔记"+ onClick={onEnterSelectionMode}+ />+ <div className="my-2 h-px bg-slate-100" />+ </>+ )}++ <div className="px-3 py-2 text-xs font-semibold text-slate-400">显示方式</div>+ <ToggleGroup+ className="flex-col items-stretch"+ type="single"+ value={listDensity}+ onValueChange={(value) => {+ if (value) {+ onListDensityChange(value as MemoListDensity);+ }+ }}+ >+ {memoListDensityOptions.map((option) => (+ <ToggleGroupItem+ key={option.value}+ className="h-11 w-full justify-start gap-3 rounded-md px-3 text-left text-sm data-[state=on]:bg-emerald-50 data-[state=on]:text-emerald-700"+ size="default"+ value={option.value}+ aria-label={option.label}+ >+ <span className={listDensity === option.value ? "text-emerald-500" : "text-slate-500"}>{option.icon}</span>+ <span className="min-w-0 flex-1 truncate">{option.label}</span>+ <CheckCircleCheck className={cn("h-4 w-4 shrink-0", listDensity === option.value ? "text-emerald-500" : "text-transparent")} />+ </ToggleGroupItem>+ ))}+ </ToggleGroup>++ <div className="my-2 h-px bg-slate-100" />+ <div className="px-3 py-2 text-xs font-semibold text-slate-400">排序方式</div>+ {mobileSortOptions.map((option) => (+ <button+ key={option.value}+ className={cn(+ "flex h-11 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition",+ sortMode === option.value ? "bg-emerald-50 text-emerald-700" : "text-slate-800 hover:bg-slate-50"+ )}+ type="button"+ aria-pressed={sortMode === option.value}+ onClick={() => onSortModeChange(option.value)}+ >+ <span className="min-w-0 flex-1 truncate">{option.label}</span>+ <CheckCircleCheck className={cn("h-4 w-4 shrink-0", sortMode === option.value ? "text-emerald-500" : "text-transparent")} />+ </button>+ ))}++ <div className="my-2 h-px bg-slate-100" />+ <MobileListActionButton icon={<Tags className="h-4 w-4" />} label="标签" onClick={onOpenTags} />+ <MobileListActionButton icon={<Archive className="h-4 w-4" />} label="附件" onClick={onOpenAssets} />+ <MobileListActionButton icon={<Trash2 className="h-4 w-4" />} label="回收站" onClick={onOpenTrash} />+ <MobileListActionButton icon={<KeyRound className="h-4 w-4" />} label="MCP Token" onClick={onOpenSettings} />+ </div>+ </DrawerContent>+ </Drawer>+);++export const MobileMoveSheet = ({+ isMoving,+ notebooks,+ selectedCount,+ selectedNotebookId,+ onClose,+ onMove,+}: {+ isMoving: boolean;+ notebooks: Notebook[];+ selectedCount: number;+ selectedNotebookId: string;+ onClose: () => void;+ onMove: (notebookId: string) => void;+}) => {+ const listRef = useRef<HTMLDivElement | null>(null);+ const options = useMemo(() => getNotebookMoveOptions(notebooks), [notebooks]);+ const selectedCountLabel = getSelectionCountLabel(selectedCount);++ useEffect(() => {+ window.setTimeout(() => {+ const selectedNode = listRef.current?.querySelector<HTMLElement>(+ `[data-mobile-move-notebook-id="${CSS.escape(selectedNotebookId)}"]`+ );+ selectedNode?.scrollIntoView({ block: "center" });+ }, 0);+ }, [selectedNotebookId]);++ return (+ <Drawer open={true} onOpenChange={(open) => { if (!open) onClose(); }}>+ <DrawerContent className="bottom-[calc(5.25rem+env(safe-area-inset-bottom))] max-h-[calc(100dvh_-_6.75rem_-_env(safe-area-inset-bottom))] overflow-hidden rounded-md lg:hidden">+ <header className="flex h-12 items-center justify-between border-b border-slate-200 px-4">+ <DrawerHeader className="min-w-0 p-0">+ <DrawerTitle className="truncate">移动到笔记本</DrawerTitle>+ <DrawerDescription className="truncate">{selectedCountLabel}</DrawerDescription>+ </DrawerHeader>+ <Button size="icon" variant="ghost" title="关闭" aria-label="关闭" onClick={onClose}>+ <X className="h-4 w-4" />+ </Button>+ </header>+ <Command className="min-h-0 flex-1">+ <CommandInput placeholder="搜索笔记本" />+ <CommandList ref={listRef} className="max-h-[calc(100dvh_-_13.75rem_-_env(safe-area-inset-bottom))] p-2">+ <CommandEmpty>没有找到笔记本</CommandEmpty>+ <CommandGroup>+ {options.map((option) => {+ const selected = option.id === selectedNotebookId;+ return (+ <CommandItem+ key={option.id}+ className={cn(+ "h-11 gap-2 px-3",+ selected ? "bg-emerald-50 font-semibold text-emerald-700 data-[selected=true]:bg-emerald-50" : "text-slate-700"+ )}+ style={{ paddingLeft: `${12 + option.depth * 18}px` }}+ value={option.id}+ keywords={[option.name, option.selectLabel, option.slug ?? ""]}+ data-mobile-move-notebook-id={option.id}+ aria-label={selected ? `当前目标:${option.name}` : `移动到 ${option.name}`}+ aria-current={selected ? "page" : undefined}+ disabled={isMoving}+ onSelect={() => onMove(option.id)}+ >+ <NotebookIcon className={cn("h-4 w-4 shrink-0", selected ? "text-emerald-500" : "text-slate-600")} />+ <span className="min-w-0 flex-1 truncate">{option.name}</span>+ {selected ? <CheckCircleCheck className="h-4 w-4 shrink-0 text-emerald-500" /> : null}+ </CommandItem>+ );+ })}+ </CommandGroup>+ </CommandList>+ </Command>+ </DrawerContent>+ </Drawer>+ );+};++export const MobileSelectionMoreSheet = ({+ canMerge,+ canPin,+ canToggleVisibleSelection,+ mergeTitle,+ pinLabel,+ pinTitle,+ selectedCount,+ selectionToggleLabel,+ selectionToggleTitle,+ onClearSelection,+ onClose,+ onMerge,+ onPin,+ onToggleVisibleSelection,+}: {+ canMerge: boolean;+ canPin: boolean;+ canToggleVisibleSelection: boolean;+ mergeTitle: string;+ pinLabel: string;+ pinTitle: string;+ selectedCount: number;+ selectionToggleLabel: string;+ selectionToggleTitle: string;+ onClearSelection: () => void;+ onClose: () => void;+ onMerge: () => void;+ onPin: () => void;+ onToggleVisibleSelection: () => void;+}) => (+ <Drawer open={true} onOpenChange={(open) => { if (!open) onClose(); }}>+ <DrawerContent className="bottom-[calc(5.25rem+env(safe-area-inset-bottom))] max-h-[calc(100dvh_-_6.75rem_-_env(safe-area-inset-bottom))] overflow-hidden rounded-md lg:hidden">+ <header className="flex h-12 items-center justify-between border-b border-slate-200 px-4">+ <DrawerHeader className="min-w-0 p-0">+ <DrawerTitle className="truncate">批量操作</DrawerTitle>+ <DrawerDescription className="truncate">{getSelectionCountLabel(selectedCount)}</DrawerDescription>+ </DrawerHeader>+ <Button size="icon" variant="ghost" title="关闭" aria-label="关闭" onClick={onClose}>+ <X className="h-4 w-4" />+ </Button>+ </header>+ <button+ className="flex h-12 w-full items-center gap-3 border-b border-slate-100 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"+ type="button"+ disabled={!canToggleVisibleSelection}+ title={selectionToggleTitle}+ onClick={onToggleVisibleSelection}+ >+ <CheckSquare className="h-4 w-4" />+ {selectionToggleLabel}+ </button>+ <button+ className="flex h-12 w-full items-center gap-3 border-b border-slate-100 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"+ type="button"+ disabled={!canMerge}+ title={mergeTitle}+ onClick={onMerge}+ >+ <Merge className="h-4 w-4" />+ 合并笔记+ </button>+ <button+ className="flex h-12 w-full items-center gap-3 border-b border-slate-100 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"+ type="button"+ disabled={!canPin}+ title={pinTitle}+ onClick={onPin}+ >+ <Star className="h-4 w-4" />+ {pinLabel}+ </button>+ <button+ className="flex h-12 w-full items-center gap-3 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50"+ type="button"+ title="取消选择"+ aria-label="取消选择"+ onClick={onClearSelection}+ >+ <X className="h-4 w-4" />+ 取消选择+ </button>+ </DrawerContent>+ </Drawer>+);diff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsxindex 2c9f59fb..224ffe66 100644--- a/apps/web/src/components/MemoListPane.tsx+++ b/apps/web/src/components/MemoListPane.tsx@@ -1,4 +1,6 @@import {+ lazy,+ Suspense,useState,useMemo,useRef,@@ -37,21 +39,6 @@ import {TagX,} from "lucide-react";import { Button } from "@/components/ui/button";-import {- Command,- CommandEmpty,- CommandGroup,- CommandInput,- CommandItem,- CommandList,-} from "@/components/ui/command";-import {- Drawer,- DrawerContent,- DrawerDescription,- DrawerHeader,- DrawerTitle,-} from "@/components/ui/drawer";import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";import {@@ -71,8 +58,8 @@ import type {MemoListDensity,MemoContextMenuState,MemoSelectionContextMenuState,- SyncQueueSummary,} from "@/lib/app-helpers";+import type { SyncQueueSummary } from "@/lib/sync-queue";import {MEMO_FILTER_OPTIONS,MEMO_SORT_OPTIONS,@@ -86,6 +73,16 @@ import {const isDesktopViewport = () => window.matchMedia("(min-width: 1024px)").matches;+const MobileListActionsSheet = lazy(() =>+ import("./MemoListMobileSheets").then((module) => ({ default: module.MobileListActionsSheet }))+);+const MobileMoveSheet = lazy(() =>+ import("./MemoListMobileSheets").then((module) => ({ default: module.MobileMoveSheet }))+);+const MobileSelectionMoreSheet = lazy(() =>+ import("./MemoListMobileSheets").then((module) => ({ default: module.MobileSelectionMoreSheet }))+);+const getSelectionCountLabel = (count: number) => (count > 0 ? `已选择 ${count} 条` : "选择笔记");const getMobileFilterIcon = (filterMode: MemoFilterMode) => {@@ -101,148 +98,6 @@ const getMobileFilterIcon = (filterMode: MemoFilterMode) => {return <LayoutList className="h-4 w-4" />;};-const memoListDensityOptions = [- { value: "preview" as const, label: "预览列表", icon: <LayoutList className="h-4 w-4" /> },- { value: "compact" as const, label: "紧凑列表", icon: <List className="h-4 w-4" /> },-];--const mobileSortOptions = MEMO_SORT_OPTIONS;--const MobileListActionButton = ({- disabled = false,- icon,- label,- onClick,-}: {- disabled?: boolean;- icon: ReactNode;- label: string;- onClick: () => void;-}) => (- <button- className="flex h-11 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:opacity-40"- type="button"- disabled={disabled}- onClick={onClick}- >- <span className="text-slate-500">{icon}</span>- <span className="min-w-0 flex-1 truncate">{label}</span>- </button>-);--const MobileListActionsSheet = ({- canSelectMemos,- isSelectionMode,- listDescription,- listDensity,- listTitle,- sortMode,- onClose,- onEnterSelectionMode,- onOpenAssets,- onOpenSettings,- onOpenTags,- onOpenTrash,- onListDensityChange,- onSortModeChange,-}: {- canSelectMemos: boolean;- isSelectionMode: boolean;- listDescription: string;- listDensity: MemoListDensity;- listTitle: string;- sortMode: MemoSortMode;- onClose: () => void;- onEnterSelectionMode: () => void;- onOpenAssets: () => void;- onOpenSettings: () => void;- onOpenTags: () => void;- onOpenTrash: () => void;- onListDensityChange: (value: MemoListDensity) => void;- onSortModeChange: (value: MemoSortMode) => void;-}) => (- <Drawer open={true} onOpenChange={(open) => { if (!open) onClose(); }}>- <DrawerContent className="bottom-[calc(5.25rem+env(safe-area-inset-bottom))] max-h-[calc(100dvh_-_6.75rem_-_env(safe-area-inset-bottom))] overflow-hidden rounded-md lg:hidden">- <header className="flex h-12 items-center justify-between border-b border-slate-200 px-4">- <DrawerHeader className="min-w-0 p-0">- <DrawerTitle className="truncate">列表选项</DrawerTitle>- <DrawerDescription className="truncate">- {listTitle} · {listDescription}- </DrawerDescription>- </DrawerHeader>- <Button size="icon" variant="ghost" title="关闭" aria-label="关闭" onClick={onClose}>- <X className="h-4 w-4" />- </Button>- </header>- <div className="max-h-[calc(100dvh_-_10.25rem_-_env(safe-area-inset-bottom))] overflow-y-auto p-2">- {!isSelectionMode && (- <>- <MobileListActionButton- disabled={!canSelectMemos}- icon={<CheckSquare className="h-4 w-4" />}- label="选择笔记"- onClick={onEnterSelectionMode}- />- <div className="my-2 h-px bg-slate-100" />- </>- )}-- <div className="px-3 py-2 text-xs font-semibold text-slate-400">显示方式</div>- <ToggleGroup- className="flex-col items-stretch"- type="single"- value={listDensity}- onValueChange={(value) => {- if (value) {- onListDensityChange(value as MemoListDensity);- }- }}- >- {memoListDensityOptions.map((option) => (- <ToggleGroupItem- key={option.value}- className="h-11 w-full justify-start gap-3 rounded-md px-3 text-left text-sm data-[state=on]:bg-emerald-50 data-[state=on]:text-emerald-700"- size="default"- value={option.value}- aria-label={option.label}- >- <span className={listDensity === option.value ? "text-emerald-500" : "text-slate-500"}>{option.icon}</span>- <span className="min-w-0 flex-1 truncate">{option.label}</span>- <CheckCircleCheck className={cn("h-4 w-4 shrink-0", listDensity === option.value ? "text-emerald-500" : "text-transparent")} />- </ToggleGroupItem>- ))}- </ToggleGroup>-- <div className="my-2 h-px bg-slate-100" />-- <div className="px-3 py-2 text-xs font-semibold text-slate-400">排序方式</div>- {mobileSortOptions.map((option: any) => (- <button- key={option.value}- className={cn(- "flex h-11 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition",- sortMode === option.value ? "bg-emerald-50 text-emerald-700" : "text-slate-800 hover:bg-slate-50"- )}- type="button"- aria-pressed={sortMode === option.value}- onClick={() => onSortModeChange(option.value)}- >- <span className="min-w-0 flex-1 truncate">{option.label}</span>- <CheckCircleCheck className={cn("h-4 w-4 shrink-0", sortMode === option.value ? "text-emerald-500" : "text-transparent")} />- </button>- ))}-- <div className="my-2 h-px bg-slate-100" />-- <MobileListActionButton icon={<Tags className="h-4 w-4" />} label="标签" onClick={onOpenTags} />- <MobileListActionButton icon={<Archive className="h-4 w-4" />} label="附件" onClick={onOpenAssets} />- <MobileListActionButton icon={<Trash2 className="h-4 w-4" />} label="回收站" onClick={onOpenTrash} />- <MobileListActionButton icon={<KeyRound className="h-4 w-4" />} label="MCP Token" onClick={onOpenSettings} />- </div>- </DrawerContent>- </Drawer>-);-const MobileSelectionActionButton = ({disabled = false,icon,@@ -312,169 +167,6 @@ const MobileSelectionActionBar = ({</nav>);-const MobileMoveSheet = ({- isMoving,- notebooks,- selectedCount,- selectedNotebookId,- onClose,- onMove,-}: {- isMoving: boolean;- notebooks: Notebook[];- selectedCount: number;- selectedNotebookId: string;- onClose: () => void;- onMove: (notebookId: string) => void;-}) => {- const listRef = useRef<HTMLDivElement | null>(null);- const options = useMemo(() => getNotebookMoveOptions(notebooks), [notebooks]);- const selectedCountLabel = getSelectionCountLabel(selectedCount);-- useEffect(() => {- window.setTimeout(() => {- const selectedNode = listRef.current?.querySelector<HTMLElement>(- `[data-mobile-move-notebook-id="${CSS.escape(selectedNotebookId)}"]`- );- selectedNode?.scrollIntoView({ block: "center" });- }, 0);- }, [selectedNotebookId]);-- return (- <Drawer open={true} onOpenChange={(open) => { if (!open) onClose(); }}>- <DrawerContent className="bottom-[calc(5.25rem+env(safe-area-inset-bottom))] max-h-[calc(100dvh_-_6.75rem_-_env(safe-area-inset-bottom))] overflow-hidden rounded-md lg:hidden">- <header className="flex h-12 items-center justify-between border-b border-slate-200 px-4">- <DrawerHeader className="min-w-0 p-0">- <DrawerTitle className="truncate">移动到笔记本</DrawerTitle>- <DrawerDescription className="truncate">{selectedCountLabel}</DrawerDescription>- </DrawerHeader>- <Button size="icon" variant="ghost" title="关闭" aria-label="关闭" onClick={onClose}>- <X className="h-4 w-4" />- </Button>- </header>- <Command className="min-h-0 flex-1">- <CommandInput placeholder="搜索笔记本" />- <CommandList ref={listRef} className="max-h-[calc(100dvh_-_13.75rem_-_env(safe-area-inset-bottom))] p-2">- <CommandEmpty>没有找到笔记本</CommandEmpty>- <CommandGroup>- {options.map((option: any) => {- const selected = option.id === selectedNotebookId;- return (- <CommandItem- key={option.id}- className={cn(- "h-11 gap-2 px-3",- selected ? "bg-emerald-50 font-semibold text-emerald-700 data-[selected=true]:bg-emerald-50" : "text-slate-700"- )}- style={{ paddingLeft: `${12 + option.depth * 18}px` }}- value={option.id}- keywords={[option.name, option.selectLabel, option.slug ?? ""]}- data-mobile-move-notebook-id={option.id}- aria-label={selected ? `当前目标:${option.name}` : `移动到 ${option.name}`}- aria-current={selected ? "page" : undefined}- disabled={isMoving}- onSelect={() => onMove(option.id)}- >- <NotebookIcon className={cn("h-4 w-4 shrink-0", selected ? "text-emerald-500" : "text-slate-600")} />- <span className="min-w-0 flex-1 truncate">{option.name}</span>- {selected ? <CheckCircleCheck className="h-4 w-4 shrink-0 text-emerald-500" /> : null}- </CommandItem>- );- })}- </CommandGroup>- </CommandList>- </Command>- </DrawerContent>- </Drawer>- );-};--const MobileSelectionMoreSheet = ({- canMerge,- canPin,- canToggleVisibleSelection,- mergeTitle,- pinLabel,- pinTitle,- selectedCount,- selectionToggleLabel,- selectionToggleTitle,- onClearSelection,- onClose,- onMerge,- onPin,- onToggleVisibleSelection,-}: {- canMerge: boolean;- canPin: boolean;- canToggleVisibleSelection: boolean;- mergeTitle: string;- pinLabel: string;- pinTitle: string;- selectedCount: number;- selectionToggleLabel: string;- selectionToggleTitle: string;- onClearSelection: () => void;- onClose: () => void;- onMerge: () => void;- onPin: () => void;- onToggleVisibleSelection: () => void;-}) => (- <Drawer open={true} onOpenChange={(open) => { if (!open) onClose(); }}>- <DrawerContent className="bottom-[calc(5.25rem+env(safe-area-inset-bottom))] max-h-[calc(100dvh_-_6.75rem_-_env(safe-area-inset-bottom))] overflow-hidden rounded-md lg:hidden">- <header className="flex h-12 items-center justify-between border-b border-slate-200 px-4">- <DrawerHeader className="min-w-0 p-0">- <DrawerTitle className="truncate">批量操作</DrawerTitle>- <DrawerDescription className="truncate">{getSelectionCountLabel(selectedCount)}</DrawerDescription>- </DrawerHeader>- <Button size="icon" variant="ghost" title="关闭" aria-label="关闭" onClick={onClose}>- <X className="h-4 w-4" />- </Button>- </header>- <button- className="flex h-12 w-full items-center gap-3 border-b border-slate-100 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"- type="button"- disabled={!canToggleVisibleSelection}- title={selectionToggleTitle}- onClick={onToggleVisibleSelection}- >- <CheckSquare className="h-4 w-4" />- {selectionToggleLabel}- </button>- <button- className="flex h-12 w-full items-center gap-3 border-b border-slate-100 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"- type="button"- disabled={!canMerge}- title={mergeTitle}- onClick={onMerge}- >- <Merge className="h-4 w-4" />- 合并笔记- </button>- <button- className="flex h-12 w-full items-center gap-3 border-b border-slate-100 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"- type="button"- disabled={!canPin}- title={pinTitle}- onClick={onPin}- >- <Star className="h-4 w-4" />- {pinLabel}- </button>- <button- className="flex h-12 w-full items-center gap-3 px-4 text-left text-sm font-medium text-slate-800 transition hover:bg-slate-50"- type="button"- title="取消选择"- aria-label="取消选择"- onClick={onClearSelection}- >- <X className="h-4 w-4" />- 取消选择- </button>- </DrawerContent>- </Drawer>-);-const CheckCircleCheck = ({ className }: { className?: string }) => (<svgclassName={cn("h-4 w-4 fill-current", className)}@@ -1777,91 +1469,97 @@ export const MemoListPane = ({)}{mobileListActionsOpen && (- <MobileListActionsSheet- canSelectMemos={canEnterSelectionMode}- isSelectionMode={selectionMode}- listDescription={listCountLabel}- listDensity={listDensity}- listTitle={listTitle}- sortMode={sortMode}- onClose={() => setMobileListActionsOpen(false)}- onEnterSelectionMode={() => {- setMobileListActionsOpen(false);- onEnterSelectionMode();- }}- onOpenAssets={() => {- setMobileListActionsOpen(false);- onOpenAssets();- }}- onOpenSettings={() => {- setMobileListActionsOpen(false);- onOpenSettings();- }}- onOpenTags={() => {- setMobileListActionsOpen(false);- onOpenTags();- }}- onOpenTrash={() => {- setMobileListActionsOpen(false);- onOpenTrash();- }}- onListDensityChange={(value) => {- handleListDensityChange(value);- }}- onSortModeChange={(value) => {- setSortMode(value);- }}- />+ <Suspense fallback={null}>+ <MobileListActionsSheet+ canSelectMemos={canEnterSelectionMode}+ isSelectionMode={selectionMode}+ listDescription={listCountLabel}+ listDensity={listDensity}+ listTitle={listTitle}+ sortMode={sortMode}+ onClose={() => setMobileListActionsOpen(false)}+ onEnterSelectionMode={() => {+ setMobileListActionsOpen(false);+ onEnterSelectionMode();+ }}+ onOpenAssets={() => {+ setMobileListActionsOpen(false);+ onOpenAssets();+ }}+ onOpenSettings={() => {+ setMobileListActionsOpen(false);+ onOpenSettings();+ }}+ onOpenTags={() => {+ setMobileListActionsOpen(false);+ onOpenTags();+ }}+ onOpenTrash={() => {+ setMobileListActionsOpen(false);+ onOpenTrash();+ }}+ onListDensityChange={(value) => {+ handleListDensityChange(value);+ }}+ onSortModeChange={(value) => {+ setSortMode(value);+ }}+ />+ </Suspense>)}{mobileMoveOpen && (- <MobileMoveSheet- isMoving={isMoving}- notebooks={notebooks}- selectedCount={selectedMemoIds.size}- selectedNotebookId={moveTargetNotebookId}- onClose={() => setMobileMoveOpen(false)}- onMove={(notebookId) => {- setMoveTargetNotebookId(notebookId);- onMoveSelectedMemos(notebookId);- setMobileMoveOpen(false);- }}- />+ <Suspense fallback={null}>+ <MobileMoveSheet+ isMoving={isMoving}+ notebooks={notebooks}+ selectedCount={selectedMemoIds.size}+ selectedNotebookId={moveTargetNotebookId}+ onClose={() => setMobileMoveOpen(false)}+ onMove={(notebookId) => {+ setMoveTargetNotebookId(notebookId);+ onMoveSelectedMemos(notebookId);+ setMobileMoveOpen(false);+ }}+ />+ </Suspense>)}{mobileMoreOpen && (- <MobileSelectionMoreSheet- canMerge={selectedMemoIds.size >= 2 && view !== "trash" && !isMerging}- canPin={selectedMemoIds.size > 0 && view !== "trash" && !isPinning}- canToggleVisibleSelection={canToggleVisibleMemoSelection}- mergeTitle={selectionMergeTitle}- pinLabel={selectionPinLabel}- pinTitle={selectionPinTitle}- selectedCount={selectedMemoIds.size}- selectionToggleLabel={visibleSelectionToggleLabel}- selectionToggleTitle={selectionToggleTitle}- onToggleVisibleSelection={() => {- setMobileMoreOpen(false);- if (allVisibleMemosSelected) {- handleClearVisibleMemos();- return;- }- handleSelectAllVisibleMemos();- }}- onClearSelection={() => {- setMobileMoreOpen(false);- onClearSelection();- }}- onClose={() => setMobileMoreOpen(false)}- onMerge={() => {- setMobileMoreOpen(false);- onMerge();- }}- onPin={() => {- setMobileMoreOpen(false);- onPinSelectedMemos(selectedPinTarget);- }}- />+ <Suspense fallback={null}>+ <MobileSelectionMoreSheet+ canMerge={selectedMemoIds.size >= 2 && view !== "trash" && !isMerging}+ canPin={selectedMemoIds.size > 0 && view !== "trash" && !isPinning}+ canToggleVisibleSelection={canToggleVisibleMemoSelection}+ mergeTitle={selectionMergeTitle}+ pinLabel={selectionPinLabel}+ pinTitle={selectionPinTitle}+ selectedCount={selectedMemoIds.size}+ selectionToggleLabel={visibleSelectionToggleLabel}+ selectionToggleTitle={selectionToggleTitle}+ onToggleVisibleSelection={() => {+ setMobileMoreOpen(false);+ if (allVisibleMemosSelected) {+ handleClearVisibleMemos();+ return;+ }+ handleSelectAllVisibleMemos();+ }}+ onClearSelection={() => {+ setMobileMoreOpen(false);+ onClearSelection();+ }}+ onClose={() => setMobileMoreOpen(false)}+ onMerge={() => {+ setMobileMoreOpen(false);+ onMerge();+ }}+ onPin={() => {+ setMobileMoreOpen(false);+ onPinSelectedMemos(selectedPinTarget);+ }}+ />+ </Suspense>)}</div>);diff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsxindex 16bb5583..eb8b9346 100644--- a/apps/web/src/components/NotebookPane.tsx+++ b/apps/web/src/components/NotebookPane.tsx@@ -30,7 +30,8 @@ import { GitHubRepositoryLink } from "./GitHubRepositoryLink";import { api } from "@/lib/api";import { cn } from "@/lib/utils";import type { Notebook, AuthUser } from "@edgeever/shared";-import type { NotebookNode, NotebookDropPosition, SyncQueueSummary } from "@/lib/app-helpers";+import type { NotebookNode, NotebookDropPosition } from "@/lib/app-helpers";+import type { SyncQueueSummary } from "@/lib/sync-queue";import { buildNotebookTree, hasEdgeEverDragData } from "@/lib/app-helpers";const NOTEBOOK_DRAG_SCROLL_EDGE_PX = 56;diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsxindex 5f0401db..5246bd36 100644--- a/apps/web/src/components/WorkspaceApp.tsx+++ b/apps/web/src/components/WorkspaceApp.tsx@@ -1,4 +1,6 @@import {+ lazy,+ Suspense,useState,useCallback,useEffect,@@ -20,13 +22,7 @@ import {DrawerHeader,DrawerTitle,} from "@/components/ui/drawer";-import { NotebookPane } from "./NotebookPane";import { MemoListPane } from "./MemoListPane";-import { EditorPane } from "./EditorPane";-import { AssetsPane } from "./AssetsPane";-import { TagsDialog } from "./dialogs/TagsDialog";-import { SettingsPane } from "./SettingsPane";-import { TemplatesDialog } from "./dialogs/TemplatesDialog";import { AppConfirmDialog, MemoDeleteConfirmDialog, NotebookNameDialog } from "./dialogs/ConfirmDialogs";import { api } from "@/lib/api";import { cn } from "@/lib/utils";@@ -38,14 +34,12 @@ import type {NotebookNameDialogState,AppNoticeDialogState,MobileBottomNavItem,- SyncQueueSummary,NotebookNode,NotebookDropPosition,NotebookMoveOption,MemoTemplate,} from "@/lib/app-helpers";import {- emptySyncQueueSummary,DEFAULT_MEMO_TITLE,MIN_MEMO_LIST_WIDTH_PX,MAX_MEMO_LIST_WIDTH_PX,@@ -64,13 +58,33 @@ import {getExpandableNotebookIds,filterNotebookTree,getNotebookMoveOptions,- syncQueuedChanges,- observeSyncQueue,} from "@/lib/app-helpers";import { useBrowserBackLayer } from "@/lib/app-hooks";+import type { SyncQueueSummary } from "@/lib/sync-queue";const isDesktopViewport = () => window.matchMedia("(min-width: 1024px)").matches;+const EditorPane = lazy(() => import("./EditorPane").then((module) => ({ default: module.EditorPane })));+const AssetsPane = lazy(() => import("./AssetsPane").then((module) => ({ default: module.AssetsPane })));+const SettingsPane = lazy(() => import("./SettingsPane").then((module) => ({ default: module.SettingsPane })));+const NotebookPane = lazy(() => import("./NotebookPane").then((module) => ({ default: module.NotebookPane })));+const TagsDialog = lazy(() => import("./dialogs/TagsDialog").then((module) => ({ default: module.TagsDialog })));+const TemplatesDialog = lazy(() => import("./dialogs/TemplatesDialog").then((module) => ({ default: module.TemplatesDialog })));++const emptySyncQueueSummary = (): SyncQueueSummary => ({+ total: 0,+ pending: 0,+ syncing: 0,+ conflict: 0,+ error: 0,+});++const PaneLoadingFallback = ({ label = "正在加载" }: { label?: string }) => (+ <div className="flex h-full min-h-0 items-center justify-center bg-white text-sm font-medium text-slate-400" role="status">+ {label}+ </div>+);+const MobileBottomNavButton = ({active = false,icon,@@ -437,6 +451,7 @@ export const WorkspaceApp = ({const [search, setSearch] = useState("");const [syncSummary, setSyncSummary] = useState<SyncQueueSummary>(emptySyncQueueSummary);const [isOnline, setIsOnline] = useState(() => (typeof navigator === "undefined" ? true : navigator.onLine));+ const [isDesktop, setIsDesktop] = useState(isDesktopViewport);const [isSyncingQueuedChanges, setIsSyncingQueuedChanges] = useState(false);const [mobileListActionsOpen, setMobileListActionsOpen] = useState(false);@@ -455,6 +470,7 @@ export const WorkspaceApp = ({setIsSyncingQueuedChanges(true);try {+ const { syncQueuedChanges } = await import("@/lib/sync-queue");await syncQueuedChanges({onSynced: async (memo) => {queryClient.setQueryData(["memo", memo.id], { memo });@@ -555,7 +571,32 @@ export const WorkspaceApp = ({writeImageCompressionPreference(imageCompressionEnabled);}, [imageCompressionEnabled]);- useEffect(() => observeSyncQueue(setSyncSummary), []);+ useEffect(() => {+ let unsubscribe: (() => void) | undefined;+ let active = true;++ void import("@/lib/sync-queue").then(({ observeSyncQueue }) => {+ if (!active) {+ return;+ }+ unsubscribe = observeSyncQueue(setSyncSummary);+ });++ return () => {+ active = false;+ unsubscribe?.();+ };+ }, []);++ useEffect(() => {+ const mediaQuery = window.matchMedia("(min-width: 1024px)");+ const updateDesktopState = () => setIsDesktop(mediaQuery.matches);++ updateDesktopState();+ mediaQuery.addEventListener("change", updateDesktopState);++ return () => mediaQuery.removeEventListener("change", updateDesktopState);+ }, []);useEffect(() => {const updateOnlineState = () => {@@ -1393,6 +1434,10 @@ export const WorkspaceApp = ({updateMemoListWidth(nextWidth);};+ const shouldRenderRightPane = isDesktop || activePane === "editor";+ const rightPaneLoadingLabel =+ rightView === "settings" ? "正在加载个人中心" : rightView === "assets" ? "正在加载资源库" : "正在加载编辑器";+return (<div className="flex h-[100dvh] overflow-hidden bg-emerald-50 text-slate-950"><div className="min-w-0 flex-1">@@ -1411,55 +1456,59 @@ export const WorkspaceApp = ({activePane === "notebooks" ? "block" : "hidden")}>- <NotebookPane- authRequired={authRequired}- user={user}- selectedNotebookId={selectedNotebookId}- view={memoView}- canCreateMemo={canCreateMemo}- isCreatingMemo={createMemoMutation.isPending}- onSelect={(notebookId) => {- setMemoView("notebook");- setSelectedNotebookId(notebookId);- clearMemoSelection();- setRightView("editor");- setActivePane("memos");- }}- onCreateMemo={handleCreateMemo}- onCreateNotebook={handleCreateNotebook}- onRenameNotebook={handleRenameNotebook}- onDeleteNotebook={handleDeleteNotebook}- onMoveNotebook={handleMoveNotebook}- onMoveMemos={handleMoveDraggedMemos}- onBackToList={() => {- if (memoView === "trash") {- setMemoView("notebook");- }- setSelectedNotebookId(null);- clearMemoSelection();- setRightView("editor");- setActivePane("memos");- }}- onLogout={onLogout}- isLoggingOut={isLoggingOut}- imageCompressionEnabled={imageCompressionEnabled}- onImageCompressionChange={setImageCompressionEnabled}- syncSummary={syncSummary}- isOnline={isOnline}- isSyncingQueuedChanges={isSyncingQueuedChanges}- onSyncQueuedChanges={() => void runQueuedSync()}- onOpenAssets={handleOpenAssets}- onOpenTags={handleOpenTags}- onOpenSettings={handleOpenSettings}- onOpenTrash={() => {- setMemoView("trash");- setSelectedNotebookId(null);- setMobileBottomNavActive("home");- clearMemoSelection();- setSelectedMemoId(null);- setActivePane("memos");- }}- />+ {(isDesktop || activePane === "notebooks") && (+ <Suspense fallback={<PaneLoadingFallback label="正在加载笔记本" />}>+ <NotebookPane+ authRequired={authRequired}+ user={user}+ selectedNotebookId={selectedNotebookId}+ view={memoView}+ canCreateMemo={canCreateMemo}+ isCreatingMemo={createMemoMutation.isPending}+ onSelect={(notebookId) => {+ setMemoView("notebook");+ setSelectedNotebookId(notebookId);+ clearMemoSelection();+ setRightView("editor");+ setActivePane("memos");+ }}+ onCreateMemo={handleCreateMemo}+ onCreateNotebook={handleCreateNotebook}+ onRenameNotebook={handleRenameNotebook}+ onDeleteNotebook={handleDeleteNotebook}+ onMoveNotebook={handleMoveNotebook}+ onMoveMemos={handleMoveDraggedMemos}+ onBackToList={() => {+ if (memoView === "trash") {+ setMemoView("notebook");+ }+ setSelectedNotebookId(null);+ clearMemoSelection();+ setRightView("editor");+ setActivePane("memos");+ }}+ onLogout={onLogout}+ isLoggingOut={isLoggingOut}+ imageCompressionEnabled={imageCompressionEnabled}+ onImageCompressionChange={setImageCompressionEnabled}+ syncSummary={syncSummary}+ isOnline={isOnline}+ isSyncingQueuedChanges={isSyncingQueuedChanges}+ onSyncQueuedChanges={() => void runQueuedSync()}+ onOpenAssets={handleOpenAssets}+ onOpenTags={handleOpenTags}+ onOpenSettings={handleOpenSettings}+ onOpenTrash={() => {+ setMemoView("trash");+ setSelectedNotebookId(null);+ setMobileBottomNavActive("home");+ clearMemoSelection();+ setSelectedMemoId(null);+ setActivePane("memos");+ }}+ />+ </Suspense>+ )}</aside><section@@ -1567,67 +1616,77 @@ export const WorkspaceApp = ({</section><section className={cn("min-h-0 min-w-0 bg-white lg:block", activePane === "editor" ? "block" : "hidden")}>- {rightView === "settings" ? (- <SettingsPane- user={user}- onClose={handleCloseSettings}- imageCompressionEnabled={imageCompressionEnabled}- onImageCompressionChange={setImageCompressionEnabled}- onLogout={onLogout}- isLoggingOut={isLoggingOut}- authRequired={authRequired}- />- ) : rightView === "assets" ? (- <AssetsPane onClose={handleCloseAssets} />- ) : (- <EditorPane- memo={selectedMemo}- isTrashView={memoView === "trash"}- notebooks={notebooks}- isLoading={memoQuery.isLoading}- searchFocusToken={noteSearchFocusToken}- replaceFocusToken={noteReplaceFocusToken}- imageCompressionEnabled={imageCompressionEnabled}- hasNextMemo={Boolean(nextMemoId)}- hasPreviousMemo={Boolean(previousMemoId)}- onBackToList={() => setActivePane("memos")}- onOpenNextMemo={() => {- if (nextMemoId) {- setSelectedMemoId(nextMemoId);- }- }}- onOpenPreviousMemo={() => {- if (previousMemoId) {- setSelectedMemoId(previousMemoId);- }- }}- onSaved={async (memo) => {- queryClient.setQueryData(["memo", memo.id], { memo });- await queryClient.invalidateQueries({ queryKey: ["memos"] });- }}- onDeleted={async (memoId) => {- deleteMemoMutation.mutate({ memoId, permanent: false });- }}- onPermanentDeleted={async (memoId) => {- setMemoDeleteConfirmation({ kind: "single", memoIds: [memoId], permanent: true });- }}- onRestored={async (memoId) => {- await restoreMemoMutation.mutateAsync(memoId);- }}- />+ {shouldRenderRightPane && (+ <Suspense fallback={<PaneLoadingFallback label={rightPaneLoadingLabel} />}>+ {rightView === "settings" ? (+ <SettingsPane+ user={user}+ onClose={handleCloseSettings}+ imageCompressionEnabled={imageCompressionEnabled}+ onImageCompressionChange={setImageCompressionEnabled}+ onLogout={onLogout}+ isLoggingOut={isLoggingOut}+ authRequired={authRequired}+ />+ ) : rightView === "assets" ? (+ <AssetsPane onClose={handleCloseAssets} />+ ) : (+ <EditorPane+ memo={selectedMemo}+ isTrashView={memoView === "trash"}+ notebooks={notebooks}+ isLoading={memoQuery.isLoading}+ searchFocusToken={noteSearchFocusToken}+ replaceFocusToken={noteReplaceFocusToken}+ imageCompressionEnabled={imageCompressionEnabled}+ hasNextMemo={Boolean(nextMemoId)}+ hasPreviousMemo={Boolean(previousMemoId)}+ onBackToList={() => setActivePane("memos")}+ onOpenNextMemo={() => {+ if (nextMemoId) {+ setSelectedMemoId(nextMemoId);+ }+ }}+ onOpenPreviousMemo={() => {+ if (previousMemoId) {+ setSelectedMemoId(previousMemoId);+ }+ }}+ onSaved={async (memo) => {+ queryClient.setQueryData(["memo", memo.id], { memo });+ await queryClient.invalidateQueries({ queryKey: ["memos"] });+ }}+ onDeleted={async (memoId) => {+ deleteMemoMutation.mutate({ memoId, permanent: false });+ }}+ onPermanentDeleted={async (memoId) => {+ setMemoDeleteConfirmation({ kind: "single", memoIds: [memoId], permanent: true });+ }}+ onRestored={async (memoId) => {+ await restoreMemoMutation.mutateAsync(memoId);+ }}+ />+ )}+ </Suspense>)}</section></main></div>- {tagsOpen && <TagsDialog onClose={() => setTagsOpen(false)} />}+ {tagsOpen && (+ <Suspense fallback={null}>+ <TagsDialog onClose={() => setTagsOpen(false)} />+ </Suspense>+ )}{templatesOpen && (- <TemplatesDialog- canCreateMemo={canCreateMemo}- isCreating={createMemoMutation.isPending}- onClose={handleCloseTemplates}- onCreateMemo={handleCreateMemo}- />+ <Suspense fallback={null}>+ <TemplatesDialog+ canCreateMemo={canCreateMemo}+ isCreating={createMemoMutation.isPending}+ onClose={handleCloseTemplates}+ onCreateMemo={handleCreateMemo}+ />+ </Suspense>)}{memoDeleteConfirmation && (<MemoDeleteConfirmDialogdiff --git a/apps/web/src/lib/app-helpers.ts b/apps/web/src/lib/app-helpers.tsindex 71338c20..26ca7dbf 100644--- a/apps/web/src/lib/app-helpers.ts+++ b/apps/web/src/lib/app-helpers.ts@@ -137,19 +137,6 @@ export const filterNotebookTree = (nodes: NotebookNode[], search: string): Noteb};export { buildNotebookTree, type NotebookNode };-export { localDb, type MemoUpdateSyncPayload, type SyncQueueItem, type LocalDraft } from "./local-db";-export {- emptySyncQueueSummary,- getMemoUpdateQueueId,- queueMemoUpdate,- observeSyncQueue,- syncQueuedChanges,- shouldQueueMemoSaveError,- type SyncQueueSummary,- type SyncRunResult,-} from "./sync-queue";-export { compressImageForUpload } from "./image-compression";-export { docToMarkdown } from "@edgeever/shared";export { DEFAULT_MEMO_TITLE };export const IMAGE_COMPRESSION_STORAGE_KEY = "edgeever.imageCompressionEnabled";