chore: 改回材料平台

This commit is contained in:
cp3hnu 2025-02-21 10:19:02 +08:00
parent 634c508725
commit cdee50eb5f
16 changed files with 23 additions and 19 deletions

View File

@ -75,7 +75,7 @@ export default defineConfig({
* @name layout
* @doc https://umijs.org/docs/max/layout-menu
*/
title: '复杂智能软件',
title: '智能材料科研平台',
layout: {
...defaultSettings,
},

View File

@ -17,7 +17,7 @@ const Settings: ProLayoutProps & {
fixSiderbar: false,
splitMenus: false,
colorWeak: false,
title: '复杂智能软件',
title: '智能材料科研平台',
pwa: true,
token: {
// 参见ts声明demo 见文档通过token 修改样式

View File

@ -44,7 +44,7 @@ export default [
{
name: 'login',
path: '/user/login',
component: './User/Login/login',
component: process.env.NO_SSO ? './User/Login/login' : './User/Login',
},
],
},

View File

@ -8,6 +8,7 @@
"build": "max build",
"deploy": "npm run build && npm run gh-pages",
"dev": "npm run start:dev",
"dev-no-sso": "NO_SSO=true npm run start:dev",
"docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./",
"docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
"docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -1,6 +1,6 @@
import FullScreenFrame from '@/components/FullScreenFrame';
import KFSpin from '@/components/KFSpin';
// import { getLabelStudioUrl } from '@/services/developmentEnvironment';
import { getLabelStudioUrl } from '@/services/developmentEnvironment';
import { to } from '@/utils/promise';
import SessionStorage from '@/utils/sessionStorage';
import classNames from 'classnames';
@ -18,7 +18,7 @@ export enum IframePageType {
const getRequestAPI = (type: IframePageType): (() => Promise<any>) => {
switch (type) {
case IframePageType.DatasetAnnotation: // 数据标注
return () => Promise.resolve({ code: 200, data: 'http://172.20.32.181:18888/oauth/login' }); //getLabelStudioUrl;
return getLabelStudioUrl;
case IframePageType.AppDevelopment: // 应用开发
return () => Promise.resolve({ code: 200, data: 'http://172.20.32.185:30080/' });
case IframePageType.DevEnv: // 开发环境

View File

@ -1,6 +1,8 @@
import { clearSessionToken } from '@/access';
import { setRemoteMenu } from '@/services/session';
import { logout } from '@/services/system/auth';
import { ClientInfo } from '@/types';
import SessionStorage from '@/utils/sessionStorage';
import { gotoLoginPage } from '@/utils/ui';
import { LogoutOutlined, UserOutlined } from '@ant-design/icons';
import { setAlpha } from '@ant-design/pro-components';
@ -64,11 +66,11 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu }) => {
clearSessionToken();
setRemoteMenu(null);
gotoLoginPage();
// const clientInfo: ClientInfo = SessionStorage.getItem(SessionStorage.clientInfoKey, true);
// if (clientInfo) {
// const { logoutUri } = clientInfo;
// location.replace(logoutUri);
// }
const clientInfo: ClientInfo = SessionStorage.getItem(SessionStorage.clientInfoKey, true);
if (clientInfo) {
const { logoutUri } = clientInfo;
location.replace(logoutUri);
}
};
const actionClassName = useEmotionCss(({ token }) => {
return {

View File

@ -1,6 +1,6 @@
{
"id": "4511326",
"name": "复杂智能软件-导航",
"name": "智能材料科研平台-导航",
"font_family": "iconfont",
"css_prefix_text": "icon-",
"description": "",

View File

@ -119,10 +119,10 @@ const Login = () => {
draggable={false}
alt=""
/>
</div>
<div className={styles['user-login__left__title']}>
<span></span>
<span></span>
<img
src={require('@/assets/img/login-ai-logo.png')}
className={styles['user-login__left__title__img']}
@ -144,7 +144,7 @@ const Login = () => {
<div>
<div className={styles['user-login__right__title']}>
<span style={{ color: '#111111' }}></span>
<span></span>
<span></span>
</div>
<div className={styles['user-login__right__content']}>
<div className={styles['user-login__right__content__title']}></div>

View File

@ -37,7 +37,6 @@
}
&__icon {
// width: 363px;
height: 176px;
}
}

View File

@ -1,14 +1,16 @@
import { Button } from 'antd';
import styles from './index.less';
function WorkspaceIntro() {
return (
<div className={styles['workspace-intro']}>
<div className={styles['workspace-intro__left']}>
<div className={styles['workspace-intro__title']}></div>
<div className={styles['workspace-intro__title']}></div>
<div className={styles['workspace-intro__content']}>
</div>
{/* <div className={styles['workspace-intro__buttons']}>
<div className={styles['workspace-intro__buttons']}>
<Button
type="primary"
style={{ marginRight: '20px' }}
@ -38,7 +40,7 @@ function WorkspaceIntro() {
>
</Button>
</div> */}
</div>
</div>
<div className={styles['workspace-intro__right']}>
<img