diff --git a/src/i18n/locales/en_US.json b/src/i18n/locales/en_US.json index 540e8e54b9..f6c0d6c37d 100644 --- a/src/i18n/locales/en_US.json +++ b/src/i18n/locales/en_US.json @@ -122,7 +122,8 @@ "add_service": "Add Service", "test_failed": "Test Failed", "install_plugin": "Install Plugin", - "uninstall_success": "Plugin Uninstall Successfully" + "uninstall_success": "Plugin Uninstall Successfully", + "homepage": "Homepage" }, "history": { "label": "History", diff --git a/src/i18n/locales/zh_CN.json b/src/i18n/locales/zh_CN.json index a8bcf1a9be..8625dea0c1 100644 --- a/src/i18n/locales/zh_CN.json +++ b/src/i18n/locales/zh_CN.json @@ -121,7 +121,8 @@ "add_service": "添加服务", "test_failed": "测试失败", "install_plugin": "安装外部插件", - "uninstall_success": "插件卸载成功" + "uninstall_success": "插件卸载成功", + "homepage": "插件主页" }, "history": { "label": "历史记录", diff --git a/src/window/Config/pages/Service/PluginConfig/index.jsx b/src/window/Config/pages/Service/PluginConfig/index.jsx index 7bfcafb6df..75d03032c9 100644 --- a/src/window/Config/pages/Service/PluginConfig/index.jsx +++ b/src/window/Config/pages/Service/PluginConfig/index.jsx @@ -1,8 +1,8 @@ import { useTranslation } from 'react-i18next'; import { Button, Input } from '@nextui-org/react'; import toast, { Toaster } from 'react-hot-toast'; +import { open } from '@tauri-apps/api/shell'; import React, { useState } from 'react'; -import { useAtomValue } from 'jotai'; import { useConfig, useToastStyle } from '../../../../../hooks'; import { invoke } from '@tauri-apps/api'; @@ -19,6 +19,16 @@ export function PluginConfig(props) { return ( <> +
+

{t('config.service.homepage')}

+ +
{pluginList[name].needs.length === 0 ? (
{t('services.no_need')}
) : (