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
refactor(settings): quiet type and drop repeated captions
tianma-if097c8c89162b
diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsxindex 0035a84f..a2e4c87e 100644--- a/apps/web/src/components/SettingsPane.tsx+++ b/apps/web/src/components/SettingsPane.tsx@@ -297,7 +297,7 @@ export const SettingsPane = ({className={cn("flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs leading-5 transition-all duration-150 text-left w-full",isSelected- ? "bg-workspace-selection font-semibold text-slate-950"+ ? "bg-workspace-selection font-normal text-slate-950": "font-normal text-slate-600 hover:bg-workspace-hover hover:text-slate-900")}>diff --git a/apps/web/src/components/settings/AccountInfoCard.tsx b/apps/web/src/components/settings/AccountInfoCard.tsxindex 48130f80..cd0f8311 100644--- a/apps/web/src/components/settings/AccountInfoCard.tsx+++ b/apps/web/src/components/settings/AccountInfoCard.tsx@@ -26,7 +26,7 @@ export const AccountInfoCard = ({ user }: { user: AuthUser | null }) => {<UserRound className="h-5 w-5" /></div><div className="min-w-0">- <p className="truncate text-sm font-semibold text-slate-800">+ <p className="truncate text-xs font-normal text-slate-800">{user.displayName || user.username}</p><p className="truncate text-xs text-slate-500">diff --git a/apps/web/src/components/settings/AiModelCard.tsx b/apps/web/src/components/settings/AiModelCard.tsxindex 930beea4..7cde9f0f 100644--- a/apps/web/src/components/settings/AiModelCard.tsx+++ b/apps/web/src/components/settings/AiModelCard.tsx@@ -11,14 +11,12 @@ import {providerDefaults,} from "@/components/settings/ai-provider-options";import { Button } from "@/components/ui/button";-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";import {- SETTINGS_CARD_DESCRIPTION_CLASSNAME,SETTINGS_CARD_HEADER_CLASSNAME,SETTINGS_CARD_ICON_CLASSNAME,SETTINGS_CARD_TITLE_CLASSNAME,- SETTINGS_ITEM_DESCRIPTION_CLASSNAME,SETTINGS_ITEM_TITLE_CLASSNAME,} from "./settings-ui";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";@@ -127,7 +125,6 @@ export const AiModelCard = () => {<Sparkles className={SETTINGS_CARD_ICON_CLASSNAME} />{t("aiModel.title")}</CardTitle>- <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("aiModel.description")}</CardDescription></span><ChevronDown className={cn("mt-0.5 h-4 w-4 shrink-0 text-slate-400 transition-transform", expanded && "rotate-180")} /></button>@@ -151,14 +148,13 @@ export const AiModelCard = () => {) : null}<section className="grid gap-2">- <span className="text-xs font-semibold text-slate-500">+ <span className="text-xs font-normal text-slate-500">{t("aiModel.defaultSettingsTitle")}</span><div className="overflow-hidden rounded-lg border border-slate-200/70 bg-slate-50/50 divide-y divide-slate-200/70"><div className="flex items-center justify-between gap-3 px-3.5 py-2.5"><div className="min-w-0"><div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("aiModel.defaultModel")}</div>- <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("aiModel.defaultModelHint")}</div></div><div className="w-56 max-w-[60%] shrink-0 sm:w-72"><Select@@ -189,16 +185,11 @@ export const AiModelCard = () => {<section className="grid gap-3"><div className="flex items-center justify-between gap-3">- <div className="flex items-center gap-2">- <span className="text-xs font-semibold text-slate-500">- {t("aiModel.servicesTitle")}- </span>- <span className="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-medium text-slate-600">- {settings?.providers.length ?? 0}- </span>- </div>+ <span className="text-xs font-normal text-slate-500">+ {t("aiModel.servicesTitle")}+ </span><DisabledActionTooltip label={!canAddProvider ? addDisabledReason : undefined}>- <Button type="button" variant="outline" size="sm" className="h-8 gap-1.5 bg-card text-xs" disabled={!canAddProvider} onClick={openAddDialog}>+ <Button type="button" variant="outline" size="sm" className="h-8 gap-1.5 bg-card text-xs font-normal" disabled={!canAddProvider} onClick={openAddDialog}><Plus className="h-3.5 w-3.5" />{t("aiModel.addProvider")}</Button></DisabledActionTooltip>diff --git a/apps/web/src/components/settings/AiProviderCard.tsx b/apps/web/src/components/settings/AiProviderCard.tsxindex dcaad9a5..3e7d41ce 100644--- a/apps/web/src/components/settings/AiProviderCard.tsx+++ b/apps/web/src/components/settings/AiProviderCard.tsx@@ -116,8 +116,6 @@ export const AiProviderCard = ({ provider: saved, defaultDisplayName, defaultMod|| Boolean(apiKey);const connectionError = saveMutation.error ?? testMutation.error;const cardError = toggleMutation.error ?? deleteMutation.error ?? discoverMutation.error ?? addModelMutation.error ?? deleteModelMutation.error;- const providerLabel = t(`aiModel.providers.${saved.provider}`);-const handleProviderChange = (next: AiProvider) => {const previous = providerDefaults[provider];const defaults = providerDefaults[next];@@ -164,15 +162,12 @@ export const AiProviderCard = ({ provider: saved, defaultDisplayName, defaultMod<div className="flex flex-col gap-2.5 p-3.5 sm:p-4"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-wrap items-center gap-2">- <span className="truncate text-sm font-semibold text-slate-900">{effectiveDisplayName}</span>+ <span className="truncate text-xs font-normal text-slate-900">{effectiveDisplayName}</span>{saved.credentialsUnavailable ? (- <span className="rounded-md bg-amber-50 px-2 py-0.5 text-xs font-medium text-amber-800">+ <span className="rounded-md bg-amber-50 px-2 py-0.5 text-xs font-normal text-amber-800">{t("aiModel.savedCredentialsUnavailableBadge")}</span>) : null}- <span className="rounded-md bg-slate-100 px-2 py-0.5 text-xs font-medium text-slate-600">- {providerLabel}- </span><span className="max-w-full truncate font-mono text-xs text-slate-400">{formatBaseUrl(saved.baseUrl)}</span>@@ -245,12 +240,9 @@ export const AiProviderCard = ({ provider: saved, defaultDisplayName, defaultModkey={model.id}className="inline-flex h-6.5 max-w-full min-w-0 items-center gap-1.5 rounded-md border border-slate-200/80 bg-slate-50/80 pl-2 pr-1 text-xs text-slate-700">- <span className="min-w-0 truncate font-medium">{model.displayName}</span>- {model.modelId !== model.displayName ? (- <span className="min-w-0 truncate font-mono text-xs text-slate-400">({model.modelId})</span>- ) : null}+ <span className="min-w-0 truncate font-normal">{model.displayName}</span>{model.id === defaultModelId ? (- <span className="shrink-0 rounded border border-slate-200 bg-slate-100 px-1 py-0.5 text-xs font-medium text-slate-700">+ <span className="shrink-0 rounded border border-slate-200 bg-slate-100 px-1 py-0.5 text-xs font-normal text-slate-700">{t("aiModel.defaultBadge")}</span>) : null}diff --git a/apps/web/src/components/settings/DataExportCard.tsx b/apps/web/src/components/settings/DataExportCard.tsxindex 6d84c8ae..f12fab0c 100644--- a/apps/web/src/components/settings/DataExportCard.tsx+++ b/apps/web/src/components/settings/DataExportCard.tsx@@ -172,11 +172,11 @@ export const DataExportCard = ({ refreshWorkspaceAfterImport }: DataExportCardPr</CardDescription></div><div className="flex shrink-0 flex-wrap items-center gap-2">- <Button size="sm" variant="outline" type="button" disabled={busy} onClick={() => fileInputRef.current?.click()}>+ <Button size="sm" variant="outline" className="text-xs font-normal" type="button" disabled={busy} onClick={() => fileInputRef.current?.click()}><Upload className="h-4 w-4" />{t("dataExport.importButton")}</Button>- <Button size="sm" type="button" disabled={busy} onClick={() => void handleExport()}>+ <Button size="sm" className="text-xs font-normal" type="button" disabled={busy} onClick={() => void handleExport()}><Download className="h-4 w-4" />{t("dataExport.exportButton")}</Button>diff --git a/apps/web/src/components/settings/EvernoteImportGuideCard.tsx b/apps/web/src/components/settings/EvernoteImportGuideCard.tsxindex 60050563..0a9644ac 100644--- a/apps/web/src/components/settings/EvernoteImportGuideCard.tsx+++ b/apps/web/src/components/settings/EvernoteImportGuideCard.tsx@@ -27,7 +27,7 @@ export const EvernoteImportGuideCard = () => {</CardDescription></div><div className="flex shrink-0 items-center gap-2">- <Button size="sm" variant="outline" className="h-8 gap-1.5 bg-card px-3 text-xs" type="button" asChild>+ <Button size="sm" variant="outline" className="h-8 gap-1.5 bg-card px-3 text-xs font-normal" type="button" asChild><ahref={EVERNOTE_MIGRATION_BLOG_URL}target="_blank"diff --git a/apps/web/src/components/settings/LoginDevicesCard.tsx b/apps/web/src/components/settings/LoginDevicesCard.tsxindex 0061fa16..7b16842c 100644--- a/apps/web/src/components/settings/LoginDevicesCard.tsx+++ b/apps/web/src/components/settings/LoginDevicesCard.tsx@@ -162,7 +162,7 @@ export const LoginDevicesCard = ({ authRequired, isLoggingOut, onLogout }: Login<p className={SETTINGS_ITEM_TITLE_CLASSNAME}>{session.label || t(`loginDevices.${deviceKind}`)}</p>)}{session.isCurrent ? (- <span className="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-semibold text-slate-700">+ <span className="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-normal text-slate-700">{t("loginDevices.current")}</span>) : null}diff --git a/apps/web/src/components/settings/McpConfigCard.tsx b/apps/web/src/components/settings/McpConfigCard.tsxindex dc0a1ddd..63afb9e2 100644--- a/apps/web/src/components/settings/McpConfigCard.tsx+++ b/apps/web/src/components/settings/McpConfigCard.tsx@@ -114,9 +114,9 @@ const AccessLevelPicker = ({ value, onChange }: AccessLevelPickerProps) => {<labelhtmlFor={inputId}className={cn(- "flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-[5px] px-2.5 text-xs font-medium transition-all focus-within:ring-2 focus-within:ring-slate-900/15",+ "flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-[5px] px-2.5 text-xs font-normal transition-all focus-within:ring-2 focus-within:ring-slate-900/15",checked- ? "bg-card font-semibold text-slate-950 shadow-sm"+ ? "bg-card text-slate-950 shadow-sm": "text-slate-600 hover:text-slate-900")}>@@ -209,7 +209,7 @@ const TokenList = ({ tokens, availableScopes, newlyCreatedTokenId, isLoading, is><div className="min-w-0 flex-1"><div className="flex flex-wrap items-center gap-2">- <span className="truncate text-xs font-semibold text-slate-900">{token.name}</span>+ <span className="truncate text-xs font-normal text-slate-900">{token.name}</span>{accessLevel === "legacy-custom" ? (<TooltipProvider><Tooltip>@@ -403,7 +403,7 @@ export const McpConfigCard = () => {<Buttonsize="sm"variant="solid"- className="h-9 shrink-0 gap-1 px-3.5 text-xs"+ className="h-9 shrink-0 gap-1 px-3.5 text-xs font-normal"type="submit"disabled={createMutation.isPending || !name.trim()}>@@ -417,10 +417,10 @@ export const McpConfigCard = () => {<section className="grid gap-3"><div className="flex items-center justify-between gap-3"><div className="flex items-center gap-2">- <span className="text-xs font-semibold uppercase tracking-wider text-slate-500">+ <span className="text-xs font-normal text-slate-500">{t("mcp.activeTokens")}</span>- <span className="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-medium text-slate-600">+ <span className="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-normal text-slate-600">{tokens.length}</span></div>diff --git a/apps/web/src/components/settings/PreferenceCard.tsx b/apps/web/src/components/settings/PreferenceCard.tsxindex 7f7ecba5..97e4c251 100644--- a/apps/web/src/components/settings/PreferenceCard.tsx+++ b/apps/web/src/components/settings/PreferenceCard.tsx@@ -44,7 +44,7 @@ import { CustomEditorThemeDialog } from "./CustomEditorThemeDialog";const PreferenceSection = ({ title, children }: { title: string; children: ReactNode }) => (<section className="grid gap-2">- <h2 className="px-1 text-xs font-medium leading-5 text-slate-500">{title}</h2>+ <h2 className="px-1 text-xs font-normal leading-5 text-slate-500">{title}</h2><div className="divide-y divide-slate-100 overflow-hidden rounded-xl border border-slate-200 bg-card">{children}</div>diff --git a/apps/web/src/components/settings/ShortcutSettingsItem.tsx b/apps/web/src/components/settings/ShortcutSettingsItem.tsxindex aaa2f05e..860a438f 100644--- a/apps/web/src/components/settings/ShortcutSettingsItem.tsx+++ b/apps/web/src/components/settings/ShortcutSettingsItem.tsx@@ -11,10 +11,7 @@ import {} from "@/lib/app-helpers";import { Button } from "@/components/ui/button";import { cn } from "@/lib/utils";-import {- SETTINGS_ITEM_DESCRIPTION_CLASSNAME,- SETTINGS_ITEM_TITLE_CLASSNAME,-} from "./settings-ui";+import { SETTINGS_ITEM_TITLE_CLASSNAME } from "./settings-ui";interface ShortcutSettingsItemProps {shortcutSettings: ShortcutSettings;@@ -99,15 +96,12 @@ export const ShortcutSettingsItem = ({ shortcutSettings, onShortcutSettingsChangkey={item.value}className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4">- <div className="min-w-0">- <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{item.label}</div>- <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{item.description}</div>- </div>+ <div className={cn("min-w-0", SETTINGS_ITEM_TITLE_CLASSNAME)}>{item.label}</div><Buttonref={recording ? captureButtonRef : null}type="button"variant={recording ? "solid" : "outline"}- className={cn("h-9 w-full min-w-32 px-3 font-mono text-xs sm:w-auto", !recording && "bg-card")}+ className={cn("h-9 w-full min-w-32 px-3 font-mono text-xs font-normal sm:w-auto", !recording && "bg-card")}onClick={() => {setRecordingAction(item.value);setCaptureMessage("");@@ -125,7 +119,7 @@ export const ShortcutSettingsItem = ({ shortcutSettings, onShortcutSettingsChang</div>) : null}<div className="flex justify-end border-t border-slate-100 px-4 py-3">- <Button type="button" variant="outline" className="h-9 px-3 text-xs" onClick={handleResetShortcuts}>+ <Button type="button" variant="outline" className="h-9 px-3 text-xs font-normal" onClick={handleResetShortcuts}><RotateCcw className="h-4 w-4" />{t("shortcuts.reset")}</Button>diff --git a/apps/web/src/components/settings/settings-ui.ts b/apps/web/src/components/settings/settings-ui.tsindex 14f5d51a..f10340d1 100644--- a/apps/web/src/components/settings/settings-ui.ts+++ b/apps/web/src/components/settings/settings-ui.ts@@ -2,7 +2,7 @@* Unified typography and layout constants for settings cards across all settings panels.*/export const SETTINGS_CARD_HEADER_CLASSNAME = "p-4";-export const SETTINGS_CARD_TITLE_CLASSNAME = "flex items-center gap-2 text-sm font-semibold text-slate-900";+export const SETTINGS_CARD_TITLE_CLASSNAME = "flex items-center gap-2 text-xs font-normal text-slate-900";export const SETTINGS_CARD_DESCRIPTION_CLASSNAME = "mt-0.5 text-xs leading-relaxed text-slate-500";export const SETTINGS_CARD_ICON_CLASSNAME = "h-4 w-4 text-slate-900 shrink-0";diff --git a/apps/web/src/lib/app-helpers.ts b/apps/web/src/lib/app-helpers.tsindex 5bfeb034..c524ccac 100644--- a/apps/web/src/lib/app-helpers.ts+++ b/apps/web/src/lib/app-helpers.ts@@ -174,72 +174,20 @@ export const getMemoFilterOptions = (t: TFunction): Array<{ value: MemoFilterModexport const getShortcutActionOptions = (t: TFunction-): Array<{ value: ShortcutAction; label: string; description: string }> => [- {- value: "createMemo",- label: t("shortcuts.actions.createMemo.label"),- description: t("shortcuts.actions.createMemo.description"),- },- {- value: "createNotebook",- label: t("shortcuts.actions.createNotebook.label"),- description: t("shortcuts.actions.createNotebook.description"),- },- {- value: "focusSearch",- label: t("shortcuts.actions.focusSearch.label"),- description: t("shortcuts.actions.focusSearch.description"),- },- {- value: "focusGlobalSearch",- label: t("shortcuts.actions.focusGlobalSearch.label"),- description: t("shortcuts.actions.focusGlobalSearch.description"),- },- {- value: "focusReplace",- label: t("shortcuts.actions.focusReplace.label"),- description: t("shortcuts.actions.focusReplace.description"),- },- {- value: "openQuickSwitcher",- label: t("shortcuts.actions.openQuickSwitcher.label"),- description: t("shortcuts.actions.openQuickSwitcher.description"),- },- {- value: "openPreviousMemo",- label: t("shortcuts.actions.openPreviousMemo.label"),- description: t("shortcuts.actions.openPreviousMemo.description"),- },- {- value: "openNextMemo",- label: t("shortcuts.actions.openNextMemo.label"),- description: t("shortcuts.actions.openNextMemo.description"),- },- {- value: "openAiAssistant",- label: t("shortcuts.actions.openAiAssistant.label"),- description: t("shortcuts.actions.openAiAssistant.description"),- },- {- value: "saveAndSync",- label: t("shortcuts.actions.saveAndSync.label"),- description: t("shortcuts.actions.saveAndSync.description"),- },- {- value: "toggleReadingProtection",- label: t("shortcuts.actions.toggleReadingProtection.label"),- description: t("shortcuts.actions.toggleReadingProtection.description"),- },- {- value: "toggleEditorMode",- label: t("shortcuts.actions.toggleEditorMode.label"),- description: t("shortcuts.actions.toggleEditorMode.description"),- },- {- value: "toggleOutline",- label: t("shortcuts.actions.toggleOutline.label"),- description: t("shortcuts.actions.toggleOutline.description"),- },+): Array<{ value: ShortcutAction; label: string }> => [+ { value: "createMemo", label: t("shortcuts.actions.createMemo.label") },+ { value: "createNotebook", label: t("shortcuts.actions.createNotebook.label") },+ { value: "focusSearch", label: t("shortcuts.actions.focusSearch.label") },+ { value: "focusGlobalSearch", label: t("shortcuts.actions.focusGlobalSearch.label") },+ { value: "focusReplace", label: t("shortcuts.actions.focusReplace.label") },+ { value: "openQuickSwitcher", label: t("shortcuts.actions.openQuickSwitcher.label") },+ { value: "openPreviousMemo", label: t("shortcuts.actions.openPreviousMemo.label") },+ { value: "openNextMemo", label: t("shortcuts.actions.openNextMemo.label") },+ { value: "openAiAssistant", label: t("shortcuts.actions.openAiAssistant.label") },+ { value: "saveAndSync", label: t("shortcuts.actions.saveAndSync.label") },+ { value: "toggleReadingProtection", label: t("shortcuts.actions.toggleReadingProtection.label") },+ { value: "toggleEditorMode", label: t("shortcuts.actions.toggleEditorMode.label") },+ { value: "toggleOutline", label: t("shortcuts.actions.toggleOutline.label") },];export const DEFAULT_SHORTCUT_SETTINGS: ShortcutSettings = {diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 2b128058..e53a8c42 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -1047,7 +1047,6 @@ export const enUS = {},aiModel: {title: "External AI models",- description: "Connect external AI models for note processing. Configure once to share across all devices.",provider: "API protocol",providers: {"openai-compatible": "OpenAI-compatible",@@ -1068,12 +1067,10 @@ export const enUS = {serviceActions: "Service actions",defaultSettingsTitle: "Usage settings",defaultModel: "Default model for note AI",- defaultModelHint: "The model the AI note assistant uses by default.",noDefaultModel: "No model selected",defaultUnavailable: "The service for the current default model is disabled. Enable it or choose another model.",noProviders: "No model services yet. Add OpenAI, OpenRouter, Anthropic, Gemini, or another compatible service to begin.",servicesTitle: "Model services",- serviceCount: "{{count}} services",defaultProviderName: "Model provider {{ordinal}}",addProvider: "Add model service",addProviderDescription: "Connect a model API, then discover or add more models after the service is created.",@@ -1460,58 +1457,19 @@ export const enUS = {requireModifier: "Press a shortcut that includes Ctrl, ⌘, or Alt.",conflict: "This shortcut is already used by “{{label}}”.",actions: {- createMemo: {- label: "New note",- description: "Create a new note in the current notebook.",- },- createNotebook: {- label: "New notebook",- description: "Create a new notebook at the current level.",- },- focusSearch: {- label: "Search current note",- description: "Focus text search within the current note.",- },- focusGlobalSearch: {- label: "Search all notes",- description: "Focus list search to find content across all notes.",- },- focusReplace: {- label: "Replace text",- description: "Open replace in the current note.",- },- openQuickSwitcher: {- label: "Quick switcher",- description: "Search and open any note that is not in trash.",- },- openPreviousMemo: {- label: "Previous note",- description: "Open the previous note in the current list.",- },- openNextMemo: {- label: "Next note",- description: "Open the next note in the current list.",- },- openAiAssistant: {- label: "Open AI assistant",- description: "Open the inline AI composer at the current selection or cursor.",- },- saveAndSync: {- label: "Save and sync",- description: "Save the current note now and sync pending local changes.",- },- toggleReadingProtection: {- label: "Toggle reading protection",- description: "Switch notes between reading protection and editing on this device.",- },- toggleEditorMode: {- label: "Switch editor mode",- description: "Switch between Markdown source and rich text editing.",- },- toggleOutline: {- label: "Show/hide document outline",- description: "Show or hide the current note's document outline on desktop.",- },+ createMemo: { label: "New note" },+ createNotebook: { label: "New notebook" },+ focusSearch: { label: "Search current note" },+ focusGlobalSearch: { label: "Search all notes" },+ focusReplace: { label: "Replace text" },+ openQuickSwitcher: { label: "Quick switcher" },+ openPreviousMemo: { label: "Previous note" },+ openNextMemo: { label: "Next note" },+ openAiAssistant: { label: "Open AI assistant" },+ saveAndSync: { label: "Save and sync" },+ toggleReadingProtection: { label: "Toggle reading protection" },+ toggleEditorMode: { label: "Switch editor mode" },+ toggleOutline: { label: "Show/hide document outline" },},},quickSwitcher: {diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.tsindex d8173068..a93f0ff6 100644--- a/packages/shared/src/i18n/ja.ts+++ b/packages/shared/src/i18n/ja.ts@@ -1047,7 +1047,6 @@ export const ja = {},aiModel: {title: "外部 AI モデル",- description: "ノート処理用に外部 AI モデルを接続します。一度設定すれば、すべての端末で共有されます。",provider: "API プロトコル",providers: {"openai-compatible": "OpenAI 互換",@@ -1068,12 +1067,10 @@ export const ja = {serviceActions: "サービス操作",defaultSettingsTitle: "利用設定",defaultModel: "ノート AI のデフォルトモデル",- defaultModelHint: "AI ノートアシスタントが既定で使うモデルです。",noDefaultModel: "モデル未選択",defaultUnavailable: "現在のデフォルトモデルのサービスは無効です。有効にするか、別のモデルを選んでください。",noProviders: "まだモデルサービスがありません。OpenAI、OpenRouter、Anthropic、Gemini、または互換サービスを追加して始めてください。",servicesTitle: "モデルサービス",- serviceCount: "{{count}} 件のサービス",defaultProviderName: "モデル提供元 {{ordinal}}",addProvider: "モデルサービスを追加",addProviderDescription: "モデル API を接続します。サービス作成後に、さらにモデルを検出または追加できます。",@@ -1460,58 +1457,19 @@ export const ja = {requireModifier: "Ctrl、⌘、または Alt を含むショートカットを押してください。",conflict: "このショートカットはすでに「{{label}}」で使われています。",actions: {- createMemo: {- label: "新しいノート",- description: "現在のノートブックに新しいノートを作成します。",- },- createNotebook: {- label: "新しいノートブック",- description: "現在の階層に新しいノートブックを作成します。",- },- focusSearch: {- label: "現在のノートを検索",- description: "現在のノート内のテキスト検索にフォーカスします。",- },- focusGlobalSearch: {- label: "すべてのノートを検索",- description: "一覧検索にフォーカスし、すべてのノートの内容から探します。",- },- focusReplace: {- label: "テキストを置換",- description: "現在のノートで置換を開きます。",- },- openQuickSwitcher: {- label: "クイックスイッチャー",- description: "ゴミ箱にない任意のノートを検索して開きます。",- },- openPreviousMemo: {- label: "前のノート",- description: "現在の一覧で前のノートを開きます。",- },- openNextMemo: {- label: "次のノート",- description: "現在の一覧で次のノートを開きます。",- },- openAiAssistant: {- label: "AI アシスタントを開く",- description: "現在の選択範囲またはカーソル位置でインライン AI 入力を開きます。",- },- saveAndSync: {- label: "保存して同期",- description: "現在のノートをすぐに保存し、待機中のローカル変更を同期します。",- },- toggleReadingProtection: {- label: "閲覧保護を切り替え",- description: "この端末でノートの閲覧保護と編集を切り替えます。",- },- toggleEditorMode: {- label: "エディタモードを切り替え",- description: "Markdown ソースとリッチテキスト編集を切り替えます。",- },- toggleOutline: {- label: "ドキュメントアウトラインの表示/非表示",- description: "デスクトップで現在のノートのドキュメントアウトラインを表示または非表示にします。",- },+ createMemo: { label: "新しいノート" },+ createNotebook: { label: "新しいノートブック" },+ focusSearch: { label: "現在のノートを検索" },+ focusGlobalSearch: { label: "すべてのノートを検索" },+ focusReplace: { label: "テキストを置換" },+ openQuickSwitcher: { label: "クイックスイッチャー" },+ openPreviousMemo: { label: "前のノート" },+ openNextMemo: { label: "次のノート" },+ openAiAssistant: { label: "AI アシスタントを開く" },+ saveAndSync: { label: "保存して同期" },+ toggleReadingProtection: { label: "閲覧保護を切り替え" },+ toggleEditorMode: { label: "エディタモードを切り替え" },+ toggleOutline: { label: "ドキュメントアウトラインの表示/非表示" },},},quickSwitcher: {diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 2dba44cb..55fe085b 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -1047,7 +1047,6 @@ export const zhCN = {},aiModel: {title: "外部 AI 模型",- description: "连接外部 AI 模型用于笔记内容处理;配置一次,各端设备共享生效。",provider: "API 协议",providers: {"openai-compatible": "OpenAI 兼容协议",@@ -1068,12 +1067,10 @@ export const zhCN = {serviceActions: "服务操作",defaultSettingsTitle: "使用设置",defaultModel: "笔记 AI 默认模型",- defaultModelHint: "AI 笔记助手处理内容时优先使用的模型。",noDefaultModel: "未选择模型",defaultUnavailable: "当前默认模型所在的服务已禁用,请启用该服务或选择其他模型。",noProviders: "暂无模型服务。添加 OpenAI、OpenRouter、Anthropic、Gemini 或其他兼容服务即可开始。",servicesTitle: "模型服务",- serviceCount: "{{count}} 个服务",defaultProviderName: "模型服务商{{ordinal}}",addProvider: "添加模型服务",addProviderDescription: "连接一个模型 API;创建后可以继续发现或添加更多模型。",@@ -1460,58 +1457,19 @@ export const zhCN = {requireModifier: "请按下包含 Ctrl、⌘ 或 Alt 的组合键。",conflict: "这个组合键已用于「{{label}}」。",actions: {- createMemo: {- label: "新建笔记",- description: "在当前笔记本中创建一条新笔记。",- },- createNotebook: {- label: "新建笔记本",- description: "在当前层级创建一个新笔记本。",- },- focusSearch: {- label: "搜索当前笔记",- description: "聚焦当前笔记内的文本搜索。",- },- focusGlobalSearch: {- label: "全局搜索笔记",- description: "聚焦笔记列表搜索,在全部笔记内容中查找。",- },- focusReplace: {- label: "替换文本",- description: "在当前笔记中打开替换。",- },- openQuickSwitcher: {- label: "快速切换笔记",- description: "搜索并打开任意未删除的笔记。",- },- openPreviousMemo: {- label: "上一篇笔记",- description: "打开当前列表中的上一篇笔记。",- },- openNextMemo: {- label: "下一篇笔记",- description: "打开当前列表中的下一篇笔记。",- },- openAiAssistant: {- label: "打开 AI 助手",- description: "在当前选区或光标位置打开内联 AI 输入框。",- },- saveAndSync: {- label: "保存并同步",- description: "立即保存当前笔记,并同步等待中的本地更改。",- },- toggleReadingProtection: {- label: "切换阅读保护",- description: "在当前设备上切换笔记的阅读保护与编辑状态。",- },- toggleEditorMode: {- label: "切换编辑模式",- description: "在 Markdown 源码与富文本编辑模式之间切换。",- },- toggleOutline: {- label: "显示/隐藏文档大纲",- description: "在桌面端显示或隐藏当前笔记的文档大纲。",- },+ createMemo: { label: "新建笔记" },+ createNotebook: { label: "新建笔记本" },+ focusSearch: { label: "搜索当前笔记" },+ focusGlobalSearch: { label: "全局搜索笔记" },+ focusReplace: { label: "替换文本" },+ openQuickSwitcher: { label: "快速切换笔记" },+ openPreviousMemo: { label: "上一篇笔记" },+ openNextMemo: { label: "下一篇笔记" },+ openAiAssistant: { label: "打开 AI 助手" },+ saveAndSync: { label: "保存并同步" },+ toggleReadingProtection: { label: "切换阅读保护" },+ toggleEditorMode: { label: "切换编辑模式" },+ toggleOutline: { label: "显示/隐藏文档大纲" },},},quickSwitcher: {