mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
feat: add injection preview functionality and enhance specs management
- Implemented injection preview feature in InjectionControlTab with file listing and content preview. - Added new API endpoint for fetching injection preview data. - Introduced content length caching for performance optimization. - Enhanced spec loading to support category filtering. - Updated localization files for new features and terms. - Created new personal and project specs for coding style and architecture constraints. - Improved CLI options for category selection in spec commands.
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
|
||||
"dimension": {
|
||||
"specs": "Project Specs",
|
||||
"personal": "Personal"
|
||||
"personal": "Personal",
|
||||
"roadmap": "Roadmap",
|
||||
"changelog": "Changelog"
|
||||
},
|
||||
|
||||
"scope": {
|
||||
@@ -23,8 +25,10 @@
|
||||
"project": "Project"
|
||||
},
|
||||
"filterByScope": "Filter by scope:",
|
||||
"filterByCategory": "Workflow stage:",
|
||||
|
||||
"category": {
|
||||
"all": "All",
|
||||
"general": "General",
|
||||
"exploration": "Exploration",
|
||||
"planning": "Planning",
|
||||
@@ -43,11 +47,38 @@
|
||||
"install": "Install",
|
||||
"installed": "Installed",
|
||||
"installing": "Installing...",
|
||||
|
||||
"installedHooks": "Installed Hooks",
|
||||
"installedHooksDesc": "Manage your installed hooks configuration",
|
||||
"searchHooks": "Search hooks...",
|
||||
"noHooks": "No hooks installed. Install recommended hooks above.",
|
||||
|
||||
"actions": {
|
||||
"view": "View Content",
|
||||
"edit": "Edit",
|
||||
"delete": "Delete",
|
||||
"reset": "Reset",
|
||||
"save": "Save",
|
||||
"saving": "Saving..."
|
||||
},
|
||||
|
||||
"status": {
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled"
|
||||
},
|
||||
|
||||
"readMode": {
|
||||
"required": "Required",
|
||||
"optional": "Optional"
|
||||
},
|
||||
|
||||
"priority": {
|
||||
"critical": "Critical",
|
||||
"high": "High",
|
||||
"medium": "Medium",
|
||||
"low": "Low"
|
||||
},
|
||||
|
||||
"spec": {
|
||||
"edit": "Edit Spec",
|
||||
"toggle": "Toggle Status",
|
||||
@@ -91,37 +122,11 @@
|
||||
"failModeWarn": "Warn"
|
||||
},
|
||||
|
||||
"actions": {
|
||||
"edit": "Edit",
|
||||
"delete": "Delete",
|
||||
"reset": "Reset",
|
||||
"save": "Save",
|
||||
"saving": "Saving...",
|
||||
"view": "View Content"
|
||||
},
|
||||
|
||||
"status": {
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled"
|
||||
},
|
||||
|
||||
"readMode": {
|
||||
"required": "Required",
|
||||
"optional": "Optional"
|
||||
},
|
||||
|
||||
"priority": {
|
||||
"critical": "Critical",
|
||||
"high": "High",
|
||||
"medium": "Medium",
|
||||
"low": "Low"
|
||||
},
|
||||
|
||||
"hooks": {
|
||||
"dialog": {
|
||||
"createTitle": "Create Hook",
|
||||
"editTitle": "Edit Hook",
|
||||
"description": "Configure the hook trigger event, command, and other settings."
|
||||
"description": "Configure hook trigger event, command, and other settings."
|
||||
},
|
||||
"fields": {
|
||||
"name": "Hook Name",
|
||||
@@ -149,9 +154,9 @@
|
||||
"project": "Project"
|
||||
},
|
||||
"failModes": {
|
||||
"continue": "Continue",
|
||||
"warn": "Show Warning",
|
||||
"block": "Block Operation"
|
||||
"continue": "Continue execution",
|
||||
"warn": "Show warning",
|
||||
"block": "Block operation"
|
||||
},
|
||||
"validation": {
|
||||
"nameRequired": "Name is required",
|
||||
@@ -185,7 +190,7 @@
|
||||
"metadata": "Metadata",
|
||||
"markdownContent": "Markdown Content",
|
||||
"noContent": "No content available",
|
||||
"editHint": "Edit the full markdown content including frontmatter. Changes to frontmatter will be reflected in the spec metadata.",
|
||||
"editHint": "Edit the full markdown content including frontmatter. Changes to frontmatter will be reflected in spec metadata.",
|
||||
"placeholder": "# Spec Title\n\nContent here..."
|
||||
},
|
||||
|
||||
@@ -221,10 +226,14 @@
|
||||
"title": "Global Settings",
|
||||
"description": "Configure personal spec defaults and system settings",
|
||||
"personalSpecDefaults": "Personal Spec Defaults",
|
||||
"personalSpecDefaultsDesc": "These settings will be applied when creating new personal specs",
|
||||
"defaultReadMode": "Default Read Mode",
|
||||
"defaultReadModeHelp": "Default read mode for newly created personal specs",
|
||||
"autoEnable": "Auto Enable",
|
||||
"autoEnableDescription": "Automatically enable newly created personal specs"
|
||||
"defaultReadModeHelp": "The default read mode for newly created personal specs",
|
||||
"selectReadMode": "Select read mode",
|
||||
"autoEnable": "Auto Enable New Specs",
|
||||
"autoEnableDescription": "Automatically enable newly created personal specs",
|
||||
"specStatistics": "Spec Statistics",
|
||||
"totalSpecs": "Total: {count} spec files"
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
|
||||
"dimension": {
|
||||
"specs": "项目规范",
|
||||
"personal": "个人规范"
|
||||
"personal": "个人规范",
|
||||
"roadmap": "路线图",
|
||||
"changelog": "变更日志"
|
||||
},
|
||||
|
||||
"scope": {
|
||||
@@ -23,8 +25,10 @@
|
||||
"project": "项目"
|
||||
},
|
||||
"filterByScope": "按范围筛选:",
|
||||
"filterByCategory": "工作流阶段:",
|
||||
|
||||
"category": {
|
||||
"all": "全部",
|
||||
"general": "通用",
|
||||
"exploration": "探索",
|
||||
"planning": "规划",
|
||||
@@ -76,7 +80,6 @@
|
||||
},
|
||||
|
||||
"spec": {
|
||||
"view": "查看内容",
|
||||
"edit": "编辑规范",
|
||||
"toggle": "切换状态",
|
||||
"delete": "删除规范",
|
||||
@@ -89,23 +92,6 @@
|
||||
"file": "文件路径"
|
||||
},
|
||||
|
||||
"content": {
|
||||
"edit": "编辑",
|
||||
"view": "查看",
|
||||
"metadata": "元数据",
|
||||
"markdownContent": "Markdown 内容",
|
||||
"noContent": "无内容",
|
||||
"editHint": "编辑完整的 Markdown 内容(包括 frontmatter)。frontmatter 的更改将反映到规范元数据中。",
|
||||
"placeholder": "# 规范标题\n\n内容..."
|
||||
},
|
||||
|
||||
"common": {
|
||||
"cancel": "取消",
|
||||
"save": "保存",
|
||||
"saving": "保存中...",
|
||||
"close": "关闭"
|
||||
},
|
||||
|
||||
"hook": {
|
||||
"install": "安装",
|
||||
"uninstall": "卸载",
|
||||
@@ -137,9 +123,6 @@
|
||||
},
|
||||
|
||||
"hooks": {
|
||||
"installSuccess": "钩子安装成功",
|
||||
"installError": "钩子安装失败",
|
||||
"installAllSuccess": "所有钩子安装成功",
|
||||
"dialog": {
|
||||
"createTitle": "创建钩子",
|
||||
"editTitle": "编辑钩子",
|
||||
@@ -191,6 +174,26 @@
|
||||
"hookFailMode": "命令执行失败时的处理方式"
|
||||
},
|
||||
|
||||
"common": {
|
||||
"cancel": "取消",
|
||||
"save": "保存",
|
||||
"delete": "删除",
|
||||
"edit": "编辑",
|
||||
"reset": "重置",
|
||||
"confirm": "确认",
|
||||
"close": "关闭"
|
||||
},
|
||||
|
||||
"content": {
|
||||
"edit": "编辑",
|
||||
"view": "查看",
|
||||
"metadata": "元数据",
|
||||
"markdownContent": "Markdown 内容",
|
||||
"noContent": "无可用内容",
|
||||
"editHint": "编辑完整的 markdown 内容包括 frontmatter。对 frontmatter 的更改将反映在规范元数据中。",
|
||||
"placeholder": "# 规范标题\n\n内容在这里..."
|
||||
},
|
||||
|
||||
"injection": {
|
||||
"title": "注入控制",
|
||||
"statusTitle": "当前注入状态",
|
||||
@@ -210,23 +213,37 @@
|
||||
"warning": "接近限制",
|
||||
"normal": "正常",
|
||||
"characters": "字符",
|
||||
"chars": "字符",
|
||||
"statsInfo": "统计信息",
|
||||
"requiredLength": "必读规范长度:",
|
||||
"matchedLength": "关键词匹配长度:",
|
||||
"remaining": "剩余空间:",
|
||||
"loadError": "加载统计数据失败",
|
||||
"saveSuccess": "设置已保存",
|
||||
"saveError": "保存设置失败"
|
||||
"saveError": "保存设置失败",
|
||||
"filesList": "注入文件列表",
|
||||
"files": "个文件"
|
||||
},
|
||||
|
||||
"priority": {
|
||||
"critical": "关键",
|
||||
"high": "高",
|
||||
"medium": "中",
|
||||
"low": "低"
|
||||
},
|
||||
|
||||
"settings": {
|
||||
"title": "全局设置",
|
||||
"description": "配置个人规范默认值和系统设置",
|
||||
"personalSpecDefaults": "个人规范默认值",
|
||||
"personalSpecDefaultsDesc": "创建新的个人规范时将应用这些设置",
|
||||
"defaultReadMode": "默认读取模式",
|
||||
"defaultReadModeHelp": "新创建的个人规范的默认读取模式",
|
||||
"autoEnable": "自动启用",
|
||||
"autoEnableDescription": "新创建的个人规范自动启用"
|
||||
"selectReadMode": "选择读取模式",
|
||||
"autoEnable": "自动启用新规范",
|
||||
"autoEnableDescription": "自动启用新创建的个人规范",
|
||||
"specStatistics": "规范统计",
|
||||
"totalSpecs": "总计:{count} 个规范文件"
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
|
||||
Reference in New Issue
Block a user