feat: remove 'ai-page' target from shortcuts and related components
This commit is contained in:
parent
b53db73211
commit
c80209f7ed
|
|
@ -37,9 +37,7 @@ export const ChatShortcutsRow: React.FC<ChatShortcutsRowProps> = ({ onSelect })
|
|||
if (targets.includes("entry")) {
|
||||
entry.push(shortcut)
|
||||
}
|
||||
if (targets.includes("ai-page")) {
|
||||
aiPage.push(shortcut)
|
||||
}
|
||||
aiPage.push(shortcut)
|
||||
}
|
||||
|
||||
if (mainEntryId) {
|
||||
|
|
|
|||
|
|
@ -206,14 +206,6 @@ export const ShortcutModalContent = ({ shortcut, onSave, onCancel }: ShortcutMod
|
|||
/>
|
||||
<span>{t("shortcuts.targets.entry")}</span>
|
||||
</label>
|
||||
<label className="flex items-center gap-2">
|
||||
<Checkbox
|
||||
size="sm"
|
||||
checked={displayTargets.includes("ai-page")}
|
||||
onCheckedChange={(value) => handleTargetChange("ai-page", Boolean(value))}
|
||||
/>
|
||||
<span>{t("shortcuts.targets.ai-page")}</span>
|
||||
</label>
|
||||
</div>
|
||||
<p className="text-xs text-text-tertiary">{t("shortcuts.targets.help")}</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -190,7 +190,6 @@
|
|||
"shortcuts.prompt": "Prompt",
|
||||
"shortcuts.prompt_placeholder": "Write a clear instruction for the AI...",
|
||||
"shortcuts.server_delete_disabled": "Server-provided shortcuts cannot be deleted",
|
||||
"shortcuts.targets.ai-page": "AI Page",
|
||||
"shortcuts.targets.entry": "Entry Details",
|
||||
"shortcuts.targets.help": "Choose scenarios to control where this shortcut appears.",
|
||||
"shortcuts.targets.label": "Display location",
|
||||
|
|
|
|||
|
|
@ -183,7 +183,6 @@
|
|||
"shortcuts.prompt": "提示",
|
||||
"shortcuts.prompt_placeholder": "为AI编写清晰的指令...",
|
||||
"shortcuts.server_delete_disabled": "该快捷方式由服务端提供,无法删除",
|
||||
"shortcuts.targets.ai-page": "AI 页面",
|
||||
"shortcuts.targets.entry": "条目详情",
|
||||
"shortcuts.targets.help": "选择适用场景以控制此快捷方式的展示位置。",
|
||||
"shortcuts.targets.label": "展示位置",
|
||||
|
|
|
|||
|
|
@ -182,9 +182,9 @@ export interface CustomIntegration {
|
|||
enabled: boolean
|
||||
}
|
||||
|
||||
export type AIShortcutTarget = "list" | "entry" | "ai-page"
|
||||
export type AIShortcutTarget = "list" | "entry"
|
||||
|
||||
export const DEFAULT_SHORTCUT_TARGETS: readonly AIShortcutTarget[] = ["list", "entry", "ai-page"]
|
||||
export const DEFAULT_SHORTCUT_TARGETS: readonly AIShortcutTarget[] = ["list", "entry"]
|
||||
|
||||
export interface AIShortcut {
|
||||
id: string
|
||||
|
|
|
|||
Loading…
Reference in New Issue