@nextclaw/ui 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/assets/{index-DO3sh5Tk.js → index-CANDXRNv.js} +25 -25
- package/dist/index.html +1 -1
- package/dist/logos/wecom.svg +11 -0
- package/package.json +1 -1
- package/public/logos/wecom.svg +11 -0
- package/src/components/config/ChannelForm.tsx +10 -0
- package/src/lib/i18n.ts +4 -0
- package/src/lib/logos.ts +1 -0
package/dist/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
8
|
<title>NextClaw - 系统配置</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-CANDXRNv.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-DM9Q3WUX.css">
|
|
11
11
|
</head>
|
|
12
12
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="128" height="128" rx="28" fill="#07C160" />
|
|
3
|
+
<circle cx="50" cy="55" r="26" fill="white" />
|
|
4
|
+
<circle cx="82" cy="73" r="24" fill="#CFF6E2" />
|
|
5
|
+
<circle cx="40" cy="52" r="3.5" fill="#07C160" />
|
|
6
|
+
<circle cx="51" cy="52" r="3.5" fill="#07C160" />
|
|
7
|
+
<circle cx="62" cy="52" r="3.5" fill="#07C160" />
|
|
8
|
+
<circle cx="72" cy="70" r="3.5" fill="#07C160" />
|
|
9
|
+
<circle cx="83" cy="70" r="3.5" fill="#07C160" />
|
|
10
|
+
<circle cx="94" cy="70" r="3.5" fill="#07C160" />
|
|
11
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="128" height="128" rx="28" fill="#07C160" />
|
|
3
|
+
<circle cx="50" cy="55" r="26" fill="white" />
|
|
4
|
+
<circle cx="82" cy="73" r="24" fill="#CFF6E2" />
|
|
5
|
+
<circle cx="40" cy="52" r="3.5" fill="#07C160" />
|
|
6
|
+
<circle cx="51" cy="52" r="3.5" fill="#07C160" />
|
|
7
|
+
<circle cx="62" cy="52" r="3.5" fill="#07C160" />
|
|
8
|
+
<circle cx="72" cy="70" r="3.5" fill="#07C160" />
|
|
9
|
+
<circle cx="83" cy="70" r="3.5" fill="#07C160" />
|
|
10
|
+
<circle cx="94" cy="70" r="3.5" fill="#07C160" />
|
|
11
|
+
</svg>
|
|
@@ -75,6 +75,16 @@ const CHANNEL_FIELDS: Record<string, Array<{ name: string; type: string; label:
|
|
|
75
75
|
{ name: 'clientSecret', type: 'password', label: t('clientSecret') },
|
|
76
76
|
{ name: 'allowFrom', type: 'tags', label: t('allowFrom') }
|
|
77
77
|
],
|
|
78
|
+
wecom: [
|
|
79
|
+
{ name: 'enabled', type: 'boolean', label: t('enabled') },
|
|
80
|
+
{ name: 'corpId', type: 'text', label: t('corpId') },
|
|
81
|
+
{ name: 'agentId', type: 'text', label: t('agentId') },
|
|
82
|
+
{ name: 'secret', type: 'password', label: t('secret') },
|
|
83
|
+
{ name: 'token', type: 'password', label: t('token') },
|
|
84
|
+
{ name: 'callbackPort', type: 'number', label: t('callbackPort') },
|
|
85
|
+
{ name: 'callbackPath', type: 'text', label: t('callbackPath') },
|
|
86
|
+
{ name: 'allowFrom', type: 'tags', label: t('allowFrom') }
|
|
87
|
+
],
|
|
78
88
|
slack: [
|
|
79
89
|
{ name: 'enabled', type: 'boolean', label: t('enabled') },
|
|
80
90
|
{ name: 'mode', type: 'text', label: t('mode') },
|
package/src/lib/i18n.ts
CHANGED
|
@@ -42,6 +42,8 @@ export const LABELS: Record<string, { zh: string; en: string }> = {
|
|
|
42
42
|
botToken: { zh: 'Bot Token', en: 'Bot Token' },
|
|
43
43
|
appToken: { zh: 'App Token', en: 'App Token' },
|
|
44
44
|
appId: { zh: 'App ID', en: 'App ID' },
|
|
45
|
+
corpId: { zh: '企业 ID', en: 'Corp ID' },
|
|
46
|
+
agentId: { zh: '应用 Agent ID', en: 'Agent ID' },
|
|
45
47
|
appSecret: { zh: 'App Secret', en: 'App Secret' },
|
|
46
48
|
markdownSupport: { zh: 'Markdown 支持', en: 'Markdown Support' },
|
|
47
49
|
clientId: { zh: 'Client ID', en: 'Client ID' },
|
|
@@ -54,6 +56,8 @@ export const LABELS: Record<string, { zh: string; en: string }> = {
|
|
|
54
56
|
intents: { zh: 'Intents', en: 'Intents' },
|
|
55
57
|
mode: { zh: '模式', en: 'Mode' },
|
|
56
58
|
webhookPath: { zh: 'Webhook 路径', en: 'Webhook Path' },
|
|
59
|
+
callbackPort: { zh: '回调端口', en: 'Callback Port' },
|
|
60
|
+
callbackPath: { zh: '回调路径', en: 'Callback Path' },
|
|
57
61
|
groupPolicy: { zh: '群组策略', en: 'Group Policy' },
|
|
58
62
|
consentGranted: { zh: '同意条款', en: 'Consent Granted' },
|
|
59
63
|
imapHost: { zh: 'IMAP 服务器', en: 'IMAP Host' },
|