|
@@ -1,4 +1,3 @@
|
|
|
-import LogoIcon from '@/assets/images/gpustack-logo.png';
|
|
|
|
|
import { userAtom } from '@/atoms/user';
|
|
import { userAtom } from '@/atoms/user';
|
|
|
import { useIntl, useModel } from '@umijs/max';
|
|
import { useIntl, useModel } from '@umijs/max';
|
|
|
import { Button, Divider, Form, Spin, message } from 'antd';
|
|
import { Button, Divider, Form, Spin, message } from 'antd';
|
|
@@ -97,17 +96,11 @@ const LoginForm = () => {
|
|
|
const [loading, setLoading] = useState(false);
|
|
const [loading, setLoading] = useState(false);
|
|
|
|
|
|
|
|
const renderWelCome = () => {
|
|
const renderWelCome = () => {
|
|
|
|
|
+ const appTitle = process.env.APP_TITLE || 'GPUStack';
|
|
|
return (
|
|
return (
|
|
|
<div className={styles.welcome}>
|
|
<div className={styles.welcome}>
|
|
|
<div className="flex-center">
|
|
<div className="flex-center">
|
|
|
- <span className="text">
|
|
|
|
|
- {intl?.formatMessage({ id: 'users.login.title' })}
|
|
|
|
|
- </span>
|
|
|
|
|
- <img
|
|
|
|
|
- src={LogoIcon}
|
|
|
|
|
- alt="logo"
|
|
|
|
|
- style={{ height: '36px', marginLeft: 10 }}
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <span className="text">{appTitle}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|