Skip to content

Commit e29d76f

Browse files
committed
frontend:服务详情宽度
1 parent 56c0c00 commit e29d76f

12 files changed

Lines changed: 42 additions & 42 deletions

File tree

1.74 KB
Loading
-229 Bytes
Loading

frontend/packages/common/src/components/aoplatform/BasicLayout.tsx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {
22
ConfigProvider,
33
Dropdown,
44
MenuProps,
5-
App} from 'antd';
5+
App,
6+
Button} from 'antd';
67
import Logo from '@common/assets/layout-logo.png';
78
import AvatarPic from '@common/assets/default-avatar.png'
89
import { routerKeyMap, TOTAL_MENU_ITEMS } from "./Navigation";
@@ -19,6 +20,8 @@ import { ResetPsw, ResetPswHandle } from './ResetPsw.tsx';
1920
import { BasicResponse, STATUS_CODE } from '@common/const/const.ts';
2021
import { UserInfoType, UserProfileHandle } from '@common/const/type.ts';
2122
import { useFetch } from '@common/hooks/http.ts';
23+
import { QuestionCircleOutlined } from '@ant-design/icons';
24+
import { Icon } from '@iconify/react/dist/iconify.js';
2225

2326
const themeToken = {
2427
bgLayout:'#17163E;',
@@ -125,18 +128,16 @@ const themeToken = {
125128
{
126129
key: '2',
127130
label: (
128-
<a target="_blank" rel="noopener noreferrer" onClick={()=>navigator('/userProfile/changepsw')}>
129-
账号设置
130-
</a>
131-
),
131+
<Button key="changePsw" type="text" className="border-none p-0 flex items-center bg-transparent " onClick={()=>navigator('/userProfile/changepsw')}>
132+
账号设置
133+
</Button>)
132134
},
133135
{
134136
key: '3',
135137
label: (
136-
<a className="block leading-[32px]" target="_blank" rel="noopener noreferrer" onClick={logOut}>
137-
退出登录
138-
</a>
139-
),
138+
<Button key="logout" type="text" className="border-none p-0 flex items-center bg-transparent " onClick={logOut}>
139+
退出登录
140+
</Button>)
140141
},
141142
];
142143

@@ -218,19 +219,19 @@ const themeToken = {
218219
);
219220
},
220221
}}
221-
// actionsRender={(props) => {
222-
// if (props.isMobile) return [];
223-
// if (typeof window === 'undefined') return [];
224-
// return [
225-
// <Button className="mr-[20px]">
226-
// <span className='flex items-center'><QuestionCircleOutlined className="mr-[4px]" />帮助文档</span>
227-
// </Button>
228-
// ];
229-
// }}
222+
actionsRender={(props) => {
223+
if (props.isMobile) return [];
224+
if (typeof window === 'undefined') return [];
225+
return [
226+
<Button className=" text-[#ffffffb3] hover:text-[#fff] border-none" type="default" ghost onClick={()=>{window.open('https://docs.apipark.com','_blank')}}>
227+
<span className='flex items-center gap-[8px]'> <Icon icon="ic:baseline-help" width="14" height="14"/>文档</span>
228+
</Button>
229+
];
230+
}}
230231
headerTitleRender={() => (
231232
<div className="w-[192px] flex items-center">
232233
<img
233-
className="h-[20px] cursor-pointer"
234+
className="h-[20px] cursor-pointer "
234235
src={Logo}
235236
onClick={()=> navigator(mainPage)}
236237
/>

frontend/packages/common/src/components/aoplatform/ResetPsw.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const ResetPsw = forwardRef<ResetPswHandle,ResetPswProps>((props,ref)=>{
7373
layout='vertical'
7474
form={form}
7575
scrollToFirstError
76-
className="mx-auto mt-mbase "
76+
className="mx-auto mt-mbase ml-mbase"
7777
name="resetPsw"
7878
// labelCol={{ span: 8 }}
7979
// wrapperCol={{ span: 10}}
594 Bytes
Binary file not shown.

frontend/packages/core/src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
.apipark-layout-layout{
8181

8282
.apipark-layout-layout-bg-list{
83-
background:#17163E;
83+
background-image: radial-gradient(circle farthest-corner at 450px 350px, #050eb7, #17163e 500px);
8484
}
8585
.ant-layout-header.apipark-layout-layout-header{
8686
backdrop-filter: unset !important;

frontend/packages/core/src/index.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -732,11 +732,17 @@ p{
732732
}
733733
}
734734

735+
735736
.ant-drawer-footer{
736737
padding:16px 20px !important
737738
}
738739
}
739740

741+
742+
.ant-modal-body .pr-PAGE_INSIDE_X{
743+
padding-right: 0 !important;
744+
}
745+
740746
.g6-tooltip {
741747
padding: 10px 6px;
742748
color: #444;
@@ -849,9 +855,10 @@ p{
849855
}
850856
}
851857

852-
/* .ant-dropdown .ant-dropdown-menu{
853-
border-radius: 10px;
854-
padding: 10px;
858+
859+
.ant-dropdown .ant-dropdown-menu{
860+
/* border-radius: 10px;
861+
padding: 10px; */
855862
li.ant-dropdown-menu-item{
856863
padding:0 !important;
857864
>button.ant-btn{
@@ -861,21 +868,22 @@ p{
861868
}
862869
>span.ant-dropdown-menu-title-content{
863870
padding:0px !important;
864-
min-width: 80px;
865-
/* padding:0px 12px !important;
871+
/* min-width: 80px; */
872+
/* padding:0px 12px !important; */
866873
height:32px !important;
867874
line-height: 32px !important;
868875
.ant-btn{
869876
width:100%;
870877
padding:0px 12px !important;
878+
justify-content:flex-start;
871879
}
872880
.ant-btn-default:not(:disabled):not(.ant-btn-disabled):hover{
873881
color:var(--text-color) !important;
874882
}
875883
}
876884
}
877885

878-
} */
886+
}
879887
.ant-dropdown-button{
880888
.ant-btn-link{
881889
color:var(--text-color) !important;

frontend/packages/core/src/pages/system/SystemConfig.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const SystemConfig = forwardRef<SystemConfigHandle>((_,ref) => {
231231
labelAlign='left'
232232
scrollToFirstError
233233
form={form}
234-
className="mx-auto pr-PAGE_INSIDE_X "
234+
className="w-full pr-PAGE_INSIDE_X "
235235
name="systemConfig"
236236
onFinish={onFinish}
237237
autoComplete="off"
@@ -256,7 +256,7 @@ const SystemConfig = forwardRef<SystemConfigHandle>((_,ref) => {
256256
<Form.Item<SystemConfigFieldType>
257257
label="API 调用前缀"
258258
name="prefix"
259-
extra="选填,作为服务内所有服务的API的前缀,比如host/{sys_name}/{service_name}/{api_path},一旦保存无法修改"
259+
extra="选填,作为服务内所有API的前缀,比如host/{service_name}/{api_path},一旦保存无法修改"
260260
rules={[
261261
{
262262
validator: validateUrlSlash,

frontend/packages/core/src/pages/team/TeamConfig.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { forwardRef, useEffect, useImperativeHandle, useState} from "react";
2-
import {App, Button, Divider, Form, Input, Row, Select} from "antd";
2+
import {App, Button, Form, Input, Row, Select} from "antd";
33
import {Link, useLocation, useNavigate, useParams} from "react-router-dom";
44
import {RouterParams} from "@core/components/aoplatform/RenderRoutes.tsx";
55
import { v4 as uuidv4 } from 'uuid'
@@ -125,7 +125,6 @@ const TeamConfig= forwardRef<TeamConfigHandle,TeamConfigProps>((props,ref) => {
125125
setOnEdit(false);
126126
form.setFieldsValue({id:uuidv4()}); // 清空 initialValues
127127
}
128-
// setPageType(currentUrl.split('/')[1] === 'myteam'? 'myteam':'manage')
129128
return (form.setFieldsValue({}))
130129
}, [teamId]);
131130

frontend/packages/core/src/pages/userProfile/ChangePsw.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ChangePsw= () => {
3838
labelAlign='left'
3939
name="changePsw"
4040
scrollToFirstError
41-
className="mx-auto "
41+
className="mx-auto pl-[10px] "
4242
autoComplete="off"
4343
form={form}
4444
onFinish={savePsw}
@@ -92,7 +92,7 @@ const ChangePsw= () => {
9292
</Form.Item>
9393

9494
<Form.Item
95-
className="border-none bg-transparent pt-btnrbase mb-0 pb-0"
95+
className="border-none bg-transparent pt-btnrbase mb-0 pb-0 pl-0"
9696
>
9797
<WithPermission access=''><Button type="primary" htmlType="submit" >
9898
修改密码

0 commit comments

Comments
 (0)