Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 160 additions & 0 deletions packages/plugins/wechatpay/frontend/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"version": "0.1.0",
"entry": "frontend/dist/index.js",
"pages": [],
"layouts": [],
"finders": [],
"adminRoutes": [
{
"path": "/settings",
"component": "admin/settings",
"permission": "wechatpay.admin",
"nav": {
"labelKey": "nav.settings",
"groupKey": "nav.group",
"order": 31
},
"data": [
{
"fetch": {
"path": "/wechatpay/admin/config"
},
"as": "status"
}
]
}
],
"adminActions": [],
"actions": [],
"accountRoutes": [],
"accountWidgets": [],
"files": [
"frontend/dist/admin.js",
"frontend/dist/chunk-ZRC5Q7IN.js",
"frontend/dist/index.js"
],
"locales": [
"zh-CN",
"zh-TW",
"zh-HK",
"en-US"
],
"messages": {
"zh-CN": {
"nav.group": "微信支付",
"nav.settings": "配置",
"page.title": "微信支付(Native)",
"page.noSecrets": "未配置平台加密密钥,无法保存商户 API 私钥。",
"page.callbackHint": "回调地址:{path}(必须在商户平台配置为可公网访问的 https 地址)。",
"summary.appId": "AppID",
"summary.mchId": "商户号",
"summary.serialNo": "证书序列号",
"summary.apiBase": "API 基址",
"field.appId": "AppID(公众号/小程序)",
"field.mchId": "商户号 mchid",
"field.serialNo": "商户 API 证书序列号",
"field.privateKey": "商户 API 私钥(apiclient_key.pem)",
"field.apiV3Key": "APIv3 密钥(32 位)",
"field.platformPublicKey": "微信支付平台公钥",
"field.apiBase": "API 基址",
"field.apiBaseHint": "默认 {default},一般不需要改。只接受 https 域名。",
"field.keyKeep": "已配置,留空则保持不变",
"action.save": "保存配置",
"action.saving": "保存中…",
"notice.saved": "微信支付配置已保存。",
"notice.saveFailed": "保存失败,请稍后重试。",
"notice.apiV3KeyRequired": "首次配置必须填写 32 位 APIv3 密钥。",
"error.unauthenticated": "登录状态已失效,请重新登录。",
"error.forbidden": "无权执行此操作。",
"error.withCode": "保存失败({code})。",
"error.withStatus": "保存失败(HTTP {status})。"
},
"zh-TW": {
"nav.group": "微信支付",
"nav.settings": "配置",
"page.title": "微信支付(Native)",
"page.noSecrets": "未配置平臺加密金鑰,無法儲存商戶 API 私鑰。",
"page.callbackHint": "回撥地址:{path}(必須在商戶平臺配置為可公網訪問的 https 地址)。",
"summary.appId": "AppID",
"summary.mchId": "商戶號",
"summary.serialNo": "證書序列號",
"summary.apiBase": "API 基址",
"field.appId": "AppID(公眾號/小程式)",
"field.mchId": "商戶號 mchid",
"field.serialNo": "商戶 API 證書序列號",
"field.privateKey": "商戶 API 私鑰(apiclient_key.pem)",
"field.apiV3Key": "APIv3 金鑰(32 位)",
"field.platformPublicKey": "微信支付平臺公鑰",
"field.apiBase": "API 基址",
"field.apiBaseHint": "預設 {default},一般不需要改。只接受 https 域名。",
"field.keyKeep": "已配置,留空則保持不變",
"action.save": "儲存配置",
"action.saving": "儲存中…",
"notice.saved": "微信支付配置已儲存。",
"notice.saveFailed": "儲存失敗,請稍後重試。",
"notice.apiV3KeyRequired": "首次配置必須填寫 32 位 APIv3 金鑰。",
"error.unauthenticated": "登入狀態已失效,請重新登入。",
"error.forbidden": "無權執行此操作。",
"error.withCode": "儲存失敗({code})。",
"error.withStatus": "儲存失敗(HTTP {status})。"
},
"zh-HK": {
"nav.group": "微信支付",
"nav.settings": "配置",
"page.title": "微信支付(Native)",
"page.noSecrets": "未配置平臺加密金鑰,無法儲存商戶 API 私鑰。",
"page.callbackHint": "回撥地址:{path}(必須在商戶平臺配置為可公網訪問的 https 地址)。",
"summary.appId": "AppID",
"summary.mchId": "商戶號",
"summary.serialNo": "證書序列號",
"summary.apiBase": "API 基址",
"field.appId": "AppID(公眾號/小程序)",
"field.mchId": "商戶號 mchid",
"field.serialNo": "商戶 API 證書序列號",
"field.privateKey": "商戶 API 私鑰(apiclient_key.pem)",
"field.apiV3Key": "APIv3 金鑰(32 位)",
"field.platformPublicKey": "微信支付平臺公鑰",
"field.apiBase": "API 基址",
"field.apiBaseHint": "默認 {default},一般不需要改。只接受 https 域名。",
"field.keyKeep": "已配置,留空則保持不變",
"action.save": "儲存配置",
"action.saving": "儲存中…",
"notice.saved": "微信支付配置已儲存。",
"notice.saveFailed": "儲存失敗,請稍後重試。",
"notice.apiV3KeyRequired": "首次配置必須填寫 32 位 APIv3 金鑰。",
"error.unauthenticated": "登錄狀態已失效,請重新登錄。",
"error.forbidden": "無權執行此操作。",
"error.withCode": "儲存失敗({code})。",
"error.withStatus": "儲存失敗(HTTP {status})。"
},
"en-US": {
"nav.group": "WeChat Pay",
"nav.settings": "Settings",
"page.title": "WeChat Pay (Native)",
"page.noSecrets": "Platform encryption keys are not configured, so the merchant API private key cannot be stored.",
"page.callbackHint": "Notification URL: {path} (must be registered on the merchant platform as a publicly reachable https address).",
"summary.appId": "AppID",
"summary.mchId": "Merchant ID",
"summary.serialNo": "Certificate serial",
"summary.apiBase": "API base",
"field.appId": "AppID (official account / mini program)",
"field.mchId": "Merchant ID (mchid)",
"field.serialNo": "Merchant API certificate serial number",
"field.privateKey": "Merchant API private key (apiclient_key.pem)",
"field.apiV3Key": "APIv3 key (32 characters)",
"field.platformPublicKey": "WeChat Pay platform public key",
"field.apiBase": "API base",
"field.apiBaseHint": "Defaults to {default}; you normally do not change it. Only https hosts are accepted.",
"field.keyKeep": "Already configured — leave empty to keep it",
"action.save": "Save",
"action.saving": "Saving…",
"notice.saved": "WeChat Pay configuration saved.",
"notice.saveFailed": "Could not save. Please retry.",
"notice.apiV3KeyRequired": "The 32-character APIv3 key is required for the initial setup.",
"error.unauthenticated": "Your session expired. Please sign in again.",
"error.forbidden": "You are not allowed to do this.",
"error.withCode": "Save failed ({code}).",
"error.withStatus": "Save failed (HTTP {status})."
}
}
}
29 changes: 29 additions & 0 deletions packages/plugins/wechatpay/frontend/messages/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"nav.group": "WeChat Pay",
"nav.settings": "Settings",
"page.title": "WeChat Pay (Native)",
"page.noSecrets": "Platform encryption keys are not configured, so the merchant API private key cannot be stored.",
"page.callbackHint": "Notification URL: {path} (must be registered on the merchant platform as a publicly reachable https address).",
"summary.appId": "AppID",
"summary.mchId": "Merchant ID",
"summary.serialNo": "Certificate serial",
"summary.apiBase": "API base",
"field.appId": "AppID (official account / mini program)",
"field.mchId": "Merchant ID (mchid)",
"field.serialNo": "Merchant API certificate serial number",
"field.privateKey": "Merchant API private key (apiclient_key.pem)",
"field.apiV3Key": "APIv3 key (32 characters)",
"field.platformPublicKey": "WeChat Pay platform public key",
"field.apiBase": "API base",
"field.apiBaseHint": "Defaults to {default}; you normally do not change it. Only https hosts are accepted.",
"field.keyKeep": "Already configured — leave empty to keep it",
"action.save": "Save",
"action.saving": "Saving…",
"notice.saved": "WeChat Pay configuration saved.",
"notice.saveFailed": "Could not save. Please retry.",
"notice.apiV3KeyRequired": "The 32-character APIv3 key is required for the initial setup.",
"error.unauthenticated": "Your session expired. Please sign in again.",
"error.forbidden": "You are not allowed to do this.",
"error.withCode": "Save failed ({code}).",
"error.withStatus": "Save failed (HTTP {status})."
}
29 changes: 29 additions & 0 deletions packages/plugins/wechatpay/frontend/messages/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"nav.group": "微信支付",
"nav.settings": "配置",
"page.title": "微信支付(Native)",
"page.noSecrets": "未配置平台加密密钥,无法保存商户 API 私钥。",
"page.callbackHint": "回调地址:{path}(必须在商户平台配置为可公网访问的 https 地址)。",
"summary.appId": "AppID",
"summary.mchId": "商户号",
"summary.serialNo": "证书序列号",
"summary.apiBase": "API 基址",
"field.appId": "AppID(公众号/小程序)",
"field.mchId": "商户号 mchid",
"field.serialNo": "商户 API 证书序列号",
"field.privateKey": "商户 API 私钥(apiclient_key.pem)",
"field.apiV3Key": "APIv3 密钥(32 位)",
"field.platformPublicKey": "微信支付平台公钥",
"field.apiBase": "API 基址",
"field.apiBaseHint": "默认 {default},一般不需要改。只接受 https 域名。",
"field.keyKeep": "已配置,留空则保持不变",
"action.save": "保存配置",
"action.saving": "保存中…",
"notice.saved": "微信支付配置已保存。",
"notice.saveFailed": "保存失败,请稍后重试。",
"notice.apiV3KeyRequired": "首次配置必须填写 32 位 APIv3 密钥。",
"error.unauthenticated": "登录状态已失效,请重新登录。",
"error.forbidden": "无权执行此操作。",
"error.withCode": "保存失败({code})。",
"error.withStatus": "保存失败(HTTP {status})。"
}
29 changes: 29 additions & 0 deletions packages/plugins/wechatpay/frontend/messages/zh-HK.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"nav.group": "微信支付",
"nav.settings": "配置",
"page.title": "微信支付(Native)",
"page.noSecrets": "未配置平臺加密金鑰,無法儲存商戶 API 私鑰。",
"page.callbackHint": "回撥地址:{path}(必須在商戶平臺配置為可公網訪問的 https 地址)。",
"summary.appId": "AppID",
"summary.mchId": "商戶號",
"summary.serialNo": "證書序列號",
"summary.apiBase": "API 基址",
"field.appId": "AppID(公眾號/小程序)",
"field.mchId": "商戶號 mchid",
"field.serialNo": "商戶 API 證書序列號",
"field.privateKey": "商戶 API 私鑰(apiclient_key.pem)",
"field.apiV3Key": "APIv3 金鑰(32 位)",
"field.platformPublicKey": "微信支付平臺公鑰",
"field.apiBase": "API 基址",
"field.apiBaseHint": "默認 {default},一般不需要改。只接受 https 域名。",
"field.keyKeep": "已配置,留空則保持不變",
"action.save": "儲存配置",
"action.saving": "儲存中…",
"notice.saved": "微信支付配置已儲存。",
"notice.saveFailed": "儲存失敗,請稍後重試。",
"notice.apiV3KeyRequired": "首次配置必須填寫 32 位 APIv3 金鑰。",
"error.unauthenticated": "登錄狀態已失效,請重新登錄。",
"error.forbidden": "無權執行此操作。",
"error.withCode": "儲存失敗({code})。",
"error.withStatus": "儲存失敗(HTTP {status})。"
}
29 changes: 29 additions & 0 deletions packages/plugins/wechatpay/frontend/messages/zh-TW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"nav.group": "微信支付",
"nav.settings": "配置",
"page.title": "微信支付(Native)",
"page.noSecrets": "未配置平臺加密金鑰,無法儲存商戶 API 私鑰。",
"page.callbackHint": "回撥地址:{path}(必須在商戶平臺配置為可公網訪問的 https 地址)。",
"summary.appId": "AppID",
"summary.mchId": "商戶號",
"summary.serialNo": "證書序列號",
"summary.apiBase": "API 基址",
"field.appId": "AppID(公眾號/小程式)",
"field.mchId": "商戶號 mchid",
"field.serialNo": "商戶 API 證書序列號",
"field.privateKey": "商戶 API 私鑰(apiclient_key.pem)",
"field.apiV3Key": "APIv3 金鑰(32 位)",
"field.platformPublicKey": "微信支付平臺公鑰",
"field.apiBase": "API 基址",
"field.apiBaseHint": "預設 {default},一般不需要改。只接受 https 域名。",
"field.keyKeep": "已配置,留空則保持不變",
"action.save": "儲存配置",
"action.saving": "儲存中…",
"notice.saved": "微信支付配置已儲存。",
"notice.saveFailed": "儲存失敗,請稍後重試。",
"notice.apiV3KeyRequired": "首次配置必須填寫 32 位 APIv3 金鑰。",
"error.unauthenticated": "登入狀態已失效,請重新登入。",
"error.forbidden": "無權執行此操作。",
"error.withCode": "儲存失敗({code})。",
"error.withStatus": "儲存失敗(HTTP {status})。"
}
14 changes: 14 additions & 0 deletions packages/plugins/wechatpay/frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "@stackpanel/plugin-wechatpay-frontend",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"build": "tsup"
},
"dependencies": {
"sonner": "^2.0.8",
"zod": "^4.4.3"
},
"license": "MIT"
}
Loading
Loading