aboutsummaryrefslogtreecommitdiff
path: root/src/lib/CommandPalette/syncActions.ts
Commit message (Collapse)AuthorAgeFilesLines
* style: apply biome autofixes and resolve remaining lint findingsHEADmainFuwn44 hours1-3/+3
| | | | | | | | | | | | | | Auto-fixed cosmetic findings (import ordering, obj["k"]->obj.k, optional chaining, template literals, Date.now, parseInt radix, useless ternaries/ switch cases). Resolved the non-autofixable rest by hand: - Senpy: static-only class -> object literal (no this/static reliance). - app.html: var global shim -> window.global = window (keeps the shim, drops the unused-var flag). - biome-ignore with rationale for the logout document.cookie clear and the holodule scrape non-null assertion. Verified: biome check 0 diagnostics, svelte-check 0/0, 24/24 unit tests.
* refactor(locale): move hardcoded UI strings into english localeFuwn7 days1-9/+26
| | | | | | | | | | | | | | | | | Adds optional namespaces (common, errors, commandPalette, headTitle, notifications, schedule, events, home, reader, routes, badgePreview, badgeWall) and extends existing ones (settings.*, lists.*, tools.*, user.*, hololive.*) on the Locale interface. New fields are optional so japanese.ts can omit them; svelte-i18n's fallbackLocale handles the runtime miss. HeadTitle gains an optional routeKey prop for type-safe lookup. defaultActions becomes a factory so the command palette re-reads locale on language toggle. The existing JP feedback translation in routes/settings is preserved via japanese.ts. Out of scope (kept hardcoded): service-worker.ts, app.html, Landing*.svelte, tools.ts registry, Easter Event 2025 pages.
* fix(settings): send JSON Content-Type on configuration PUTsFuwn10 days1-0/+1
| | | | | | | | fetch() defaults a string body to text/plain, which SvelteKit's csrf_check_origin treats as a form submission. Behind portless's HTTPS-to-HTTP dev proxy the Origin scheme mismatches url.origin and the requests 403'd. Declaring application/json is correct for the body and bypasses the form-content-type check.
* style: apply biome formatterFuwn2026-04-281-6/+2
|
* feat(command-palette): add quick toggles, sync, and auth actionsFuwn2026-04-261-0/+106
Adds 13 reactive quick toggles (24h time, animations, blur adult, cover modes, hover cover, schedule list, reverse sort, data saver, notifications, language, title format cycle, outbound link target cycle), three sync actions (push/pull/disable), and login/logout entries gated on auth state. Names reflect current state so the palette doubles as a status surface.