diff --git a/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.less b/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.less index 3b4e3c01..bee1a56f 100644 --- a/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.less +++ b/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.less @@ -1,3 +1,5 @@ .plugin-openapi-app-info_profile { - // keep + h2 { + margin-bottom: 10px; + } } diff --git a/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.tsx b/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.tsx index 63cf3222..bd195993 100644 --- a/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.tsx +++ b/client/web/plugins/com.msgbyte.openapi/src/MainPanel/AppInfo/Profile.tsx @@ -5,21 +5,47 @@ import { Divider, SensitiveText, Button, + Avatar, } from '@capital/component'; import { Translate } from '../../translate'; import { useOpenAppAction } from './useOpenAppAction'; +import styled from 'styled-components'; import './Profile.less'; +const TwoColumnContainer = styled.div` + display: flex; + + > div { + flex: 1; + } +`; + /** * 基础信息 */ const Profile: React.FC = React.memo(() => { - const { appId, appSecret } = useOpenAppInfo(); + const { appId, appSecret, appName, appDesc, appIcon } = useOpenAppInfo(); const { handleDeleteApp } = useOpenAppAction(); return (
+

{Translate.app.basicInfo}

+ + +
+ + + +
+ +
+ +
+
+ + +

{Translate.app.appcret}

diff --git a/client/web/plugins/com.msgbyte.openapi/src/translate.ts b/client/web/plugins/com.msgbyte.openapi/src/translate.ts index 81f021ea..4df41b0c 100644 --- a/client/web/plugins/com.msgbyte.openapi/src/translate.ts +++ b/client/web/plugins/com.msgbyte.openapi/src/translate.ts @@ -47,6 +47,14 @@ export const Translate = { 'zh-CN': '基础信息', 'en-US': 'Basic Info', }), + appName: localTrans({ + 'zh-CN': '应用名称', + 'en-US': 'App Name', + }), + appDesc: localTrans({ + 'zh-CN': '应用描述', + 'en-US': 'App Description', + }), bot: localTrans({ 'zh-CN': '机器人', 'en-US': 'Bot',