diff --git a/frontend/src/components/admin-sidebar/index.vue b/frontend/src/components/admin-sidebar/index.vue index f8de4c0..1b40385 100644 --- a/frontend/src/components/admin-sidebar/index.vue +++ b/frontend/src/components/admin-sidebar/index.vue @@ -1,5 +1,5 @@ + + diff --git a/frontend/src/plugins/i18n/en.json b/frontend/src/plugins/i18n/en.json index 2b1baab..2109d0f 100644 --- a/frontend/src/plugins/i18n/en.json +++ b/frontend/src/plugins/i18n/en.json @@ -2625,6 +2625,48 @@ "working": "Working…", "published": "Version {v} created", "kind": "Type" + }, + "signProfiles": { + "title": "Signing certificates", + "description": "Upload Windows pfx / iOS p12+provision; protected artifacts are re-signed with them. Certs and passwords are encrypted at rest and never sent back", + "uploadTitle": "Upload certificate", + "uploadHint": "Windows uses .pfx/.p12; iOS needs both .p12 and .mobileprovision", + "platform": "Platform", + "platformWindows": "Windows (Authenticode)", + "platformIos": "iOS (zsign)", + "name": "Name", + "namePlaceholder": "e.g. my code signing cert", + "cert": "Certificate file", + "password": "Password", + "passwordPlaceholder": "password of the pfx/p12", + "provision": "Provisioning profile", + "provisionHint": "Must be an Apple-issued .mobileprovision", + "upload": "Upload", + "working": "Working…", + "refresh": "Refresh", + "securityNote": "Encrypted at rest with AES-256-GCM; the API never returns contents", + "list": "Certificates", + "loading": "Loading…", + "empty": "No certificates yet", + "colName": "Name", + "colPlatform": "Platform", + "colFormat": "Format", + "colProvision": "Profile", + "colCreated": "Created", + "colActions": "Actions", + "hasProfile": "included", + "onlyPfx": "Only .pfx / .p12 are supported", + "needName": "Name is required", + "needCert": "Choose a certificate file", + "needProfile": "iOS requires a provisioning profile", + "uploaded": "Certificate saved (encrypted)", + "uploadFailed": "Upload failed", + "loadFailed": "Failed to load", + "deleted": "Deleted", + "chooseFile": "Choose file", + "noFile": "none", + "confirmDelete": "Click again to delete {name}", + "confirm": "Confirm" } }, "auth": { @@ -3275,7 +3317,8 @@ "storage": "Storage", "admin": "Admin", "agent": "Agent", - "protect": "Protection" + "protect": "Protection", + "signProfiles": "Certificates" }, "footer": { "brand": "Weishouquan", diff --git a/frontend/src/plugins/i18n/zh.json b/frontend/src/plugins/i18n/zh.json index b72d1a4..51b17b5 100644 --- a/frontend/src/plugins/i18n/zh.json +++ b/frontend/src/plugins/i18n/zh.json @@ -2644,6 +2644,48 @@ "working": "处理中…", "published": "已生成版本 {v}", "kind": "类型" + }, + "signProfiles": { + "title": "签名证书", + "description": "上传 Windows pfx / iOS p12+描述文件,加壳产物用它们重签;证书与口令一律加密存储,永不下发前端", + "uploadTitle": "上传证书", + "uploadHint": "Windows 用 .pfx/.p12;iOS 需要 .p12 + .mobileprovision 两件套", + "platform": "平台", + "platformWindows": "Windows(Authenticode)", + "platformIos": "iOS(zsign 重签)", + "name": "名称", + "namePlaceholder": "例如 我的代码签名证书", + "cert": "证书文件", + "password": "证书口令", + "passwordPlaceholder": "pfx/p12 的导出密码", + "provision": "描述文件", + "provisionHint": "必须是苹果签发的 .mobileprovision,伪造的无法解析", + "upload": "上传", + "working": "处理中…", + "refresh": "刷新", + "securityNote": "证书与口令加密落盘(AES-256-GCM),接口不会回传内容", + "list": "已上传的证书", + "loading": "加载中…", + "empty": "还没有上传证书", + "colName": "名称", + "colPlatform": "平台", + "colFormat": "格式", + "colProvision": "描述文件", + "colCreated": "创建时间", + "colActions": "操作", + "hasProfile": "已包含", + "onlyPfx": "证书只支持 .pfx / .p12", + "needName": "请填写名称", + "needCert": "请选择证书文件", + "needProfile": "iOS 必须上传描述文件", + "uploaded": "证书已加密保存", + "uploadFailed": "上传失败", + "loadFailed": "加载失败", + "deleted": "已删除", + "chooseFile": "选择文件", + "noFile": "未选择", + "confirmDelete": "再点一次删除「{name}」", + "confirm": "确认" } }, "auth": { @@ -3294,7 +3336,8 @@ "storage": "存储", "admin": "管理员", "agent": "代理商", - "protect": "加壳加固" + "protect": "加壳加固", + "signProfiles": "签名证书" }, "footer": { "brand": "网络验证", diff --git a/frontend/src/router/routes.ts b/frontend/src/router/routes.ts index 1817a13..d0ff9a7 100644 --- a/frontend/src/router/routes.ts +++ b/frontend/src/router/routes.ts @@ -113,6 +113,12 @@ const routes: RouteRecordRaw[] = [ component: () => import('@/pages/admin/protect/index.vue'), meta: { title: '加壳加固 - 管理后台' }, }, + { + path: 'sign-profiles', + name: 'AdminSignProfiles', + component: () => import('@/pages/admin/sign-profiles/index.vue'), + meta: { title: '签名证书 - 管理后台' }, + }, { path: 'versions/create', name: 'AdminVersionCreate', diff --git a/frontend/src/types/route-map.d.ts b/frontend/src/types/route-map.d.ts index 2604cd1..9edac95 100644 --- a/frontend/src/types/route-map.d.ts +++ b/frontend/src/types/route-map.d.ts @@ -374,6 +374,13 @@ declare module 'vue-router/auto-routes' { Record, | never >, + '/admin/sign-profiles/': RouteRecordInfo< + '/admin/sign-profiles/', + '/admin/sign-profiles', + Record, + Record, + | never + >, '/admin/sms-settings/': RouteRecordInfo< '/admin/sms-settings/', '/admin/sms-settings', @@ -982,6 +989,12 @@ declare module 'vue-router/auto-routes' { views: | never } + 'src/pages/admin/sign-profiles/index.vue': { + routes: + | '/admin/sign-profiles/' + views: + | never + } 'src/pages/admin/sms-settings/index.vue': { routes: | '/admin/sms-settings/'