-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: update mcp form label #8327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2441,14 +2441,14 @@ const message = { | |
| whiteListHelper: '限制仅白名单中的 IP 可访问', | ||
| }, | ||
| mcp: { | ||
| server: 'MCP 服务器', | ||
| create: '添加服务器', | ||
| edit: '编辑服务器', | ||
| server: 'MCP Server', | ||
| create: '创建 MCP Server', | ||
| edit: '编辑 MCP Server', | ||
| commandHelper: '例如:npx -y {0}', | ||
| baseUrl: '外部访问路径', | ||
| baseUrlHelper: '例如:https://127.0.0.1:8080', | ||
| ssePath: 'SSE 路径', | ||
| ssePathHelper: '例如:/sse,注意不要与其他服务器重复', | ||
| ssePathHelper: '例如:/sse,注意不要与其他 Server 重复', | ||
| environment: '环境变量', | ||
| envKey: '变量名', | ||
| envValue: '变量值', | ||
|
|
@@ -2458,7 +2458,7 @@ const message = { | |
| domainHelper: '例如:192.168.1.1 或者 example.com', | ||
| bindDomain: '绑定网站', | ||
| commandPlaceHolder: '当前仅支持 npx 和二进制启动的命令', | ||
| importMcpJson: '导入 MCP 服务器配置', | ||
| importMcpJson: '导入 MCP Server 配置', | ||
| importMcpJsonError: 'mcpServers 结构不正确', | ||
| }, | ||
| }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code has several minor issues and improvements that can be made:
Here is the revised version of the const message = {
whiteListHelper: '限制仅白名单中的 IP 访问',
mcp: {
server: 'MCP Server',
create: '创建 MCP Server',
edit: '编辑 MCP Server',
commandHelper: '例如:npx [-y] {0}',
baseUrl: '外部访问路径',
baseUrlHelper: '例如:https://127.0.0.1:8080',
ssePath: 'SSE 路径',
ssePathHelper: '例如:/sse, 注意不要与其他服务器重复',
environment: '环境变量',
envKey: '变量名',
envValue: '变量值',
},
domains: {
name: '域名管理',
importDomainsBtnTxt: '导入域名列表(CSV 文件)',
addDomainTextTitle: '添加新网站域',
bindingDomainTextTitle: '修改绑定 website 的域名',
domainHelper: '例如:192.168.1.1,或 example.com',
bindDomain: '绑定网站',
commandPlaceHolder: '例如:npm 选项前缀项目路径 /usr/local/sbin/bin-file',
importMcpJson: '导入 MCP Server 配置',
importMcpJsonError: 'mcpServers 架构不正确',
},
};These changes improve readability and maintainability while addressing specific formatting issues. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,20 +20,20 @@ const databaseRouter = { | |
| }, | ||
| }, | ||
| { | ||
| path: '/ai/gpu', | ||
| name: 'GPU', | ||
| component: () => import('@/views/ai/gpu/index.vue'), | ||
| path: '/ai/mcp', | ||
| name: 'MCPServer', | ||
| component: () => import('@/views/ai/mcp/server/index.vue'), | ||
| meta: { | ||
| title: 'ai_tools.gpu.gpu', | ||
| title: 'MCP', | ||
| requiresAuth: true, | ||
| }, | ||
| }, | ||
| { | ||
| path: '/ai/mcp', | ||
| name: 'MCPServer', | ||
| component: () => import('@/views/ai/mcp/server/index.vue'), | ||
| path: '/ai/gpu', | ||
| name: 'GPU', | ||
| component: () => import('@/views/ai/gpu/index.vue'), | ||
| meta: { | ||
| title: 'MCP', | ||
| title: 'ai_tools.gpu.gpu', | ||
| requiresAuth: true, | ||
| }, | ||
| }, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no apparent irregularities, potential issues, or optimization opportunities in the provided code changes. The paths |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no major coding style violations in this code snippet. However, there are some minor suggestions for improvement:
File Type: It may be beneficial to change the file extension from
.jsto.tsifmessage.jsis meant to be TypeScript. This will improve type safety and make it easier to manage with modern JavaScript frameworks or tools.Spellings:
"whiteListHelper"should be corrected to"whitelistHelper"."ssePathHelper": "例如:/sse, 注意不要與其他 伺服器 重複",, the Chinese characters "伺服器" (server) should remain unchanged but ensure they match the locale of your application if used elsewhere.Consistency:
') and double quotes (") are interchangeable, but you could choose one convention and stick with it across the entire localization file.Overall, the code looks well-formatted and functional based on the provided context. If this is part of a larger project that heavily relies on internationalization (i18n), ensuring consistency and completeness of translations would be crucial for user experience.