mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-10 21:21:13 +08:00
fix: update MCP access permissions and improve titles in routing (#14281)
This commit is contained in:
14 files changed
+33
-9
No files matched your search
@@ -1810,6 +1810,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: '1Panel MCP Access',
|
||||
servicesTitle: 'MCP Services',
|
||||
websiteCancelPendingBind: 'Cancel binding',
|
||||
websiteBinding: 'Website binding',
|
||||
websiteBind: 'Bind website',
|
||||
|
||||
@@ -1825,6 +1825,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: 'Acceso a 1Panel MCP',
|
||||
servicesTitle: 'Servicios MCP',
|
||||
websiteCancelPendingBind: 'Cancelar vinculación',
|
||||
websiteBinding: 'Vinculación de sitio web',
|
||||
websiteBind: 'Vincular sitio web',
|
||||
|
||||
@@ -1789,6 +1789,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: 'دسترسی به 1Panel MCP',
|
||||
servicesTitle: 'سرویسهای MCP',
|
||||
websiteCancelPendingBind: 'لغو اتصال',
|
||||
websiteBinding: 'اتصال وبسایت',
|
||||
websiteBind: 'اتصال وبسایت',
|
||||
|
||||
@@ -1793,6 +1793,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: '1Panel MCP 接続',
|
||||
servicesTitle: 'MCP サービス',
|
||||
websiteCancelPendingBind: '関連付けを取り消す',
|
||||
websiteBinding: 'ウェブサイトの関連付け',
|
||||
websiteBind: 'ウェブサイトを関連付け',
|
||||
|
||||
@@ -1775,6 +1775,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: '1Panel MCP 연결',
|
||||
servicesTitle: 'MCP 서비스',
|
||||
websiteCancelPendingBind: '연결 취소',
|
||||
websiteBinding: '웹사이트 연결',
|
||||
websiteBind: '웹사이트 연결',
|
||||
|
||||
@@ -1765,6 +1765,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: 'ການເຂົ້າເຖິງ 1Panel MCP',
|
||||
servicesTitle: 'ບໍລິການ MCP',
|
||||
websiteCancelPendingBind: 'ຍົກເລີກການຜູກ',
|
||||
websiteBinding: 'ການຜູກເວັບໄຊ',
|
||||
websiteBind: 'ຜູກເວັບໄຊ',
|
||||
|
||||
@@ -1823,6 +1823,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: 'Akses 1Panel MCP',
|
||||
servicesTitle: 'Perkhidmatan MCP',
|
||||
websiteCancelPendingBind: 'Batalkan pautan',
|
||||
websiteBinding: 'Pautan laman web',
|
||||
websiteBind: 'Pautkan laman web',
|
||||
|
||||
@@ -1824,6 +1824,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: 'Acesso ao 1Panel MCP',
|
||||
servicesTitle: 'Serviços MCP',
|
||||
websiteCancelPendingBind: 'Cancelar vinculação',
|
||||
websiteBinding: 'Vinculação de site',
|
||||
websiteBind: 'Vincular site',
|
||||
|
||||
@@ -1813,6 +1813,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: 'Подключение к 1Panel MCP',
|
||||
servicesTitle: 'Сервисы MCP',
|
||||
websiteCancelPendingBind: 'Отменить привязку',
|
||||
websiteBinding: 'Привязка сайта',
|
||||
websiteBind: 'Привязать сайт',
|
||||
|
||||
@@ -1819,6 +1819,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: '1Panel MCP Erişimi',
|
||||
servicesTitle: 'MCP Hizmetleri',
|
||||
websiteCancelPendingBind: 'Bağlamayı iptal et',
|
||||
websiteBinding: 'Web sitesi bağlama',
|
||||
websiteBind: 'Web sitesi bağla',
|
||||
|
||||
@@ -1714,6 +1714,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: '1Panel MCP 接入',
|
||||
servicesTitle: 'MCP 服務',
|
||||
websiteCancelPendingBind: '取消綁定',
|
||||
websiteBinding: '網站綁定',
|
||||
websiteBind: '綁定網站',
|
||||
|
||||
@@ -1728,6 +1728,8 @@ const message = {
|
||||
},
|
||||
},
|
||||
panelMCP: {
|
||||
accessTitle: '1Panel MCP 接入',
|
||||
servicesTitle: 'MCP 服务',
|
||||
websiteCancelPendingBind: '取消绑定',
|
||||
websiteBinding: '网站绑定',
|
||||
websiteBind: '绑定网站',
|
||||
|
||||
@@ -81,7 +81,7 @@ const aiRouter = {
|
||||
{
|
||||
path: '/ai/mcp',
|
||||
name: 'MCPServer',
|
||||
redirect: () => (GlobalStore().hasPermission('ai_mcp_view') ? '/ai/mcp/server' : '/ai/mcp/1panel'),
|
||||
redirect: () => (GlobalStore().hasPermission('mcp_access_view') ? '/ai/mcp/1panel' : '/ai/mcp/server'),
|
||||
meta: {
|
||||
icon: 'p-mcp-menu',
|
||||
title: 'menu.mcp',
|
||||
@@ -94,7 +94,7 @@ const aiRouter = {
|
||||
hidden: true,
|
||||
component: () => import('@/views/ai/mcp/server/index.vue'),
|
||||
meta: {
|
||||
title: 'menu.mcp',
|
||||
title: 'panelMCP.servicesTitle',
|
||||
activeMenu: '/ai/mcp',
|
||||
permission: 'ai_mcp_view',
|
||||
},
|
||||
@@ -105,7 +105,7 @@ const aiRouter = {
|
||||
hidden: true,
|
||||
component: () => import('@/views/ai/mcp/panel/index.vue'),
|
||||
meta: {
|
||||
title: 'panelMCP.title',
|
||||
title: 'panelMCP.accessTitle',
|
||||
activeMenu: '/ai/mcp',
|
||||
permission: 'mcp_access_view',
|
||||
},
|
||||
|
||||
@@ -8,14 +8,14 @@ import { computed } from 'vue';
|
||||
|
||||
const buttons = computed<RouterButton[]>(() => [
|
||||
{
|
||||
label: i18n.global.t('menu.mcp'),
|
||||
path: '/ai/mcp/server',
|
||||
permission: 'ai_mcp_view',
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('panelMCP.title'),
|
||||
label: i18n.global.t('panelMCP.accessTitle'),
|
||||
path: '/ai/mcp/1panel',
|
||||
permission: 'mcp_access_view',
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('panelMCP.servicesTitle'),
|
||||
path: '/ai/mcp/server',
|
||||
permission: 'ai_mcp_view',
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
Reference in new issue
Block a user