| @@ -75,7 +75,7 @@ export default defineConfig({ | |||||
| * @name layout 插件 | * @name layout 插件 | ||||
| * @doc https://umijs.org/docs/max/layout-menu | * @doc https://umijs.org/docs/max/layout-menu | ||||
| */ | */ | ||||
| title: '复杂智能软件', | |||||
| title: '智能材料科研平台', | |||||
| layout: { | layout: { | ||||
| ...defaultSettings, | ...defaultSettings, | ||||
| }, | }, | ||||
| @@ -17,7 +17,7 @@ const Settings: ProLayoutProps & { | |||||
| fixSiderbar: false, | fixSiderbar: false, | ||||
| splitMenus: false, | splitMenus: false, | ||||
| colorWeak: false, | colorWeak: false, | ||||
| title: '复杂智能软件', | |||||
| title: '智能材料科研平台', | |||||
| pwa: true, | pwa: true, | ||||
| token: { | token: { | ||||
| // 参见ts声明,demo 见文档,通过token 修改样式 | // 参见ts声明,demo 见文档,通过token 修改样式 | ||||
| @@ -44,7 +44,7 @@ export default [ | |||||
| { | { | ||||
| name: 'login', | name: 'login', | ||||
| path: '/user/login', | path: '/user/login', | ||||
| component: './User/Login/login', | |||||
| component: process.env.NO_SSO ? './User/Login/login' : './User/Login', | |||||
| }, | }, | ||||
| ], | ], | ||||
| }, | }, | ||||
| @@ -8,6 +8,7 @@ | |||||
| "build": "max build", | "build": "max build", | ||||
| "deploy": "npm run build && npm run gh-pages", | "deploy": "npm run build && npm run gh-pages", | ||||
| "dev": "npm run start:dev", | "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-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", | ||||
| "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | ||||
| "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | ||||
| @@ -1,6 +1,6 @@ | |||||
| import FullScreenFrame from '@/components/FullScreenFrame'; | import FullScreenFrame from '@/components/FullScreenFrame'; | ||||
| import KFSpin from '@/components/KFSpin'; | import KFSpin from '@/components/KFSpin'; | ||||
| // import { getLabelStudioUrl } from '@/services/developmentEnvironment'; | |||||
| import { getLabelStudioUrl } from '@/services/developmentEnvironment'; | |||||
| import { to } from '@/utils/promise'; | import { to } from '@/utils/promise'; | ||||
| import SessionStorage from '@/utils/sessionStorage'; | import SessionStorage from '@/utils/sessionStorage'; | ||||
| import classNames from 'classnames'; | import classNames from 'classnames'; | ||||
| @@ -18,7 +18,7 @@ export enum IframePageType { | |||||
| const getRequestAPI = (type: IframePageType): (() => Promise<any>) => { | const getRequestAPI = (type: IframePageType): (() => Promise<any>) => { | ||||
| switch (type) { | switch (type) { | ||||
| case IframePageType.DatasetAnnotation: // 数据标注 | case IframePageType.DatasetAnnotation: // 数据标注 | ||||
| return () => Promise.resolve({ code: 200, data: 'http://172.20.32.181:18888/oauth/login' }); //getLabelStudioUrl; | |||||
| return getLabelStudioUrl; | |||||
| case IframePageType.AppDevelopment: // 应用开发 | case IframePageType.AppDevelopment: // 应用开发 | ||||
| return () => Promise.resolve({ code: 200, data: 'http://172.20.32.185:30080/' }); | return () => Promise.resolve({ code: 200, data: 'http://172.20.32.185:30080/' }); | ||||
| case IframePageType.DevEnv: // 开发环境 | case IframePageType.DevEnv: // 开发环境 | ||||
| @@ -1,6 +1,8 @@ | |||||
| import { clearSessionToken } from '@/access'; | import { clearSessionToken } from '@/access'; | ||||
| import { setRemoteMenu } from '@/services/session'; | import { setRemoteMenu } from '@/services/session'; | ||||
| import { logout } from '@/services/system/auth'; | import { logout } from '@/services/system/auth'; | ||||
| import { ClientInfo } from '@/types'; | |||||
| import SessionStorage from '@/utils/sessionStorage'; | |||||
| import { gotoLoginPage } from '@/utils/ui'; | import { gotoLoginPage } from '@/utils/ui'; | ||||
| import { LogoutOutlined, UserOutlined } from '@ant-design/icons'; | import { LogoutOutlined, UserOutlined } from '@ant-design/icons'; | ||||
| import { setAlpha } from '@ant-design/pro-components'; | import { setAlpha } from '@ant-design/pro-components'; | ||||
| @@ -64,11 +66,11 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu }) => { | |||||
| clearSessionToken(); | clearSessionToken(); | ||||
| setRemoteMenu(null); | setRemoteMenu(null); | ||||
| gotoLoginPage(); | 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 }) => { | const actionClassName = useEmotionCss(({ token }) => { | ||||
| return { | return { | ||||
| @@ -1,6 +1,6 @@ | |||||
| { | { | ||||
| "id": "4511326", | "id": "4511326", | ||||
| "name": "复杂智能软件-导航", | |||||
| "name": "智能材料科研平台-导航", | |||||
| "font_family": "iconfont", | "font_family": "iconfont", | ||||
| "css_prefix_text": "icon-", | "css_prefix_text": "icon-", | ||||
| "description": "", | "description": "", | ||||
| @@ -119,10 +119,10 @@ const Login = () => { | |||||
| draggable={false} | draggable={false} | ||||
| alt="" | alt="" | ||||
| /> | /> | ||||
| 复杂智能软件 | |||||
| 智能材料科研平台 | |||||
| </div> | </div> | ||||
| <div className={styles['user-login__left__title']}> | <div className={styles['user-login__left__title']}> | ||||
| <span>复杂智能软件</span> | |||||
| <span>智能材料科研平台</span> | |||||
| <img | <img | ||||
| src={require('@/assets/img/login-ai-logo.png')} | src={require('@/assets/img/login-ai-logo.png')} | ||||
| className={styles['user-login__left__title__img']} | className={styles['user-login__left__title__img']} | ||||
| @@ -144,7 +144,7 @@ const Login = () => { | |||||
| <div> | <div> | ||||
| <div className={styles['user-login__right__title']}> | <div className={styles['user-login__right__title']}> | ||||
| <span style={{ color: '#111111' }}>欢迎登录</span> | <span style={{ color: '#111111' }}>欢迎登录</span> | ||||
| <span>复杂智能软件</span> | |||||
| <span>智能材料科研平台</span> | |||||
| </div> | </div> | ||||
| <div className={styles['user-login__right__content']}> | <div className={styles['user-login__right__content']}> | ||||
| <div className={styles['user-login__right__content__title']}>账号登录</div> | <div className={styles['user-login__right__content__title']}>账号登录</div> | ||||
| @@ -37,7 +37,6 @@ | |||||
| } | } | ||||
| &__icon { | &__icon { | ||||
| // width: 363px; | |||||
| height: 176px; | height: 176px; | ||||
| } | } | ||||
| } | } | ||||
| @@ -1,14 +1,16 @@ | |||||
| import { Button } from 'antd'; | |||||
| import styles from './index.less'; | import styles from './index.less'; | ||||
| function WorkspaceIntro() { | function WorkspaceIntro() { | ||||
| return ( | return ( | ||||
| <div className={styles['workspace-intro']}> | <div className={styles['workspace-intro']}> | ||||
| <div className={styles['workspace-intro__left']}> | <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 className={styles['workspace-intro__content']}> | ||||
| 复杂智能软件平台构建一套完整的版本迭代升级机制、开发与运行态版本依赖关系分析,以及整合开发部署和持续优化的一体化流程,涵盖数据管理、模型建模、服务开发和系统运行等关键环节,以实现高效、稳定的软件生命周期管理。 | |||||
| 材料领域的自主实验系统是一种用于材料研究和开发的技术平台,它旨在提供实验数据收集、分析和可视化等功能, | |||||
| 以支持材料工程师、科学家和研究人员在材料设计、性能评估和工艺优化方面的工作 | |||||
| </div> | </div> | ||||
| {/* <div className={styles['workspace-intro__buttons']}> | |||||
| <div className={styles['workspace-intro__buttons']}> | |||||
| <Button | <Button | ||||
| type="primary" | type="primary" | ||||
| style={{ marginRight: '20px' }} | style={{ marginRight: '20px' }} | ||||
| @@ -38,7 +40,7 @@ function WorkspaceIntro() { | |||||
| > | > | ||||
| 分子材料自主实验系统 | 分子材料自主实验系统 | ||||
| </Button> | </Button> | ||||
| </div> */} | |||||
| </div> | |||||
| </div> | </div> | ||||
| <div className={styles['workspace-intro__right']}> | <div className={styles['workspace-intro__right']}> | ||||
| <img | <img | ||||