fix: CSRF token accessibility and hook installation status

- Remove HttpOnly from XSRF-TOKEN cookie for JavaScript readability
- Add hook installation status detection in system settings API
- Update InjectionControlTab to show installed hooks status
- Add brace expansion support in globToRegex utility
This commit is contained in:
catlog22
2026-03-01 23:17:37 +08:00
parent ffe3b427ce
commit 5cab8ae8a5
11 changed files with 80 additions and 21 deletions

View File

@@ -1,4 +1,6 @@
{
"cancel": "Cancel",
"save": "Save",
"aria": {
"toggleNavigation": "Toggle navigation menu",
"refreshWorkspace": "Refresh workspace",

View File

@@ -303,13 +303,16 @@
"hookCommand": "Command",
"hookScope": "Scope",
"hookTimeout": "Timeout (ms)",
"hookFailMode": "Fail Mode"
"hookFailMode": "Fail Mode",
"editTitle": "Edit Spec: {title}",
"editDescription": "Modify spec metadata and settings."
},
"form": {
"readMode": "Read Mode",
"priority": "Priority",
"keywords": "Keywords",
"keywordsPlaceholder": "Enter keywords, press Enter or comma to add",
"title": "Title",
"titlePlaceholder": "Enter spec title",
"addKeyword": "Add Keyword",
@@ -322,11 +325,6 @@
"titleRequired": "Title is required"
},
"dialog": {
"editTitle": "Edit Spec: {title}",
"editDescription": "Modify spec metadata and settings."
},
"hooks": {
"installSuccess": "Hook installed successfully",
"installError": "Failed to install hook",

View File

@@ -1,4 +1,6 @@
{
"cancel": "取消",
"save": "保存",
"aria": {
"toggleNavigation": "切换导航菜单",
"refreshWorkspace": "刷新工作区",

View File

@@ -310,13 +310,16 @@
"hookCommand": "执行命令",
"hookScope": "作用域",
"hookTimeout": "超时时间(ms)",
"hookFailMode": "失败模式"
"hookFailMode": "失败模式",
"editTitle": "编辑规范:{title}",
"editDescription": "修改规范元数据和设置。"
},
"form": {
"readMode": "读取模式",
"priority": "优先级",
"keywords": "关键词",
"keywordsPlaceholder": "输入关键词,按回车或逗号添加",
"title": "标题",
"titlePlaceholder": "输入规范标题",
"addKeyword": "添加关键词",
@@ -329,11 +332,6 @@
"titleRequired": "标题为必填项"
},
"dialog": {
"editTitle": "编辑规范:{title}",
"editDescription": "修改规范元数据和设置。"
},
"hooks": {
"installSuccess": "钩子安装成功",
"installError": "钩子安装失败",