useNoteList no longer names a Search view; the desktop adapter's M10.7 plan gave way to sync under the local core; local.ts's sharing comment sat above settings; AccountList and password_resets still said there was no mail path; NoteEditor kept an orphan checklist-flag comment, a textarea comment from before blocks, and the link-preview comment above the file picker; the serialize docstring's growth plan is now what it holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
587 B
TypeScript
16 lines
587 B
TypeScript
// The data source the whole app uses. Import `repo` from here — never reach for
|
|
// `api/client` in stores/views.
|
|
//
|
|
// The desktop shell runs fully offline against the on-device SQLite core
|
|
// (`local.ts`, over Tauri `invoke`); the web build uses REST. A desktop linked to a
|
|
// server still reads and writes locally: the core syncs underneath.
|
|
|
|
import { isDesktop } from "../desktop/bridge";
|
|
import { rest } from "./rest";
|
|
import { local } from "./local";
|
|
import type { Repo } from "./repo";
|
|
|
|
export const repo: Repo = isDesktop() ? local : rest;
|
|
|
|
export type { Repo } from "./repo";
|