chore: replace components with core-ui, upgrade eslint
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import HighlightCode from '@/components/highlight-code';
|
||||
import SealInput from '@/components/seal-form/seal-input';
|
||||
import externalLinks from '@/constants/external-links';
|
||||
import {
|
||||
InfoCircleOutlined,
|
||||
LockOutlined,
|
||||
UserOutlined
|
||||
} from '@ant-design/icons';
|
||||
import { Input as CInput, HighlightCode } from '@gpustack/core-ui';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { Button, Checkbox, Divider, Form, FormInstance } from 'antd';
|
||||
import { createStyles } from 'antd-style';
|
||||
@@ -93,7 +92,7 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
||||
}
|
||||
]}
|
||||
>
|
||||
<SealInput.Input
|
||||
<CInput.Input
|
||||
autoComplete="username"
|
||||
label={intl.formatMessage({ id: 'common.form.username' })}
|
||||
prefix={<UserOutlined />}
|
||||
@@ -114,7 +113,7 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
||||
}
|
||||
]}
|
||||
>
|
||||
<SealInput.Password
|
||||
<CInput.Password
|
||||
autoComplete="current-password"
|
||||
prefix={<LockOutlined />}
|
||||
label={intl.formatMessage({ id: 'common.form.password' })}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { initialPasswordAtom, userAtom } from '@/atoms/user';
|
||||
import { resetStorageUserSettings } from '@/atoms/utils';
|
||||
import SealInput from '@/components/seal-form/seal-input';
|
||||
import { PasswordReg } from '@/config';
|
||||
import {
|
||||
CRYPT_TEXT,
|
||||
@@ -8,6 +7,7 @@ import {
|
||||
writeState
|
||||
} from '@/utils/localstore/index';
|
||||
import { LockOutlined } from '@ant-design/icons';
|
||||
import { Input as CInput } from '@gpustack/core-ui';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { Button, Form, message } from 'antd';
|
||||
import CryptoJS from 'crypto-js';
|
||||
@@ -88,7 +88,7 @@ const PasswordForm: React.FC = () => {
|
||||
}
|
||||
]}
|
||||
>
|
||||
<SealInput.Password
|
||||
<CInput.Password
|
||||
autoComplete="new-password"
|
||||
prefix={<LockOutlined />}
|
||||
label={intl.formatMessage({ id: 'users.form.newpassword' })}
|
||||
@@ -118,7 +118,7 @@ const PasswordForm: React.FC = () => {
|
||||
})
|
||||
]}
|
||||
>
|
||||
<SealInput.Password
|
||||
<CInput.Password
|
||||
autoComplete="new-password"
|
||||
prefix={<LockOutlined />}
|
||||
label={intl.formatMessage({ id: 'users.password.confirm' })}
|
||||
|
||||
Reference in New Issue
Block a user