fix: package, auth url
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { YggdrasilClient, YggrasilAuthentication } from '@xmcl/user';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { API_BASE_URL } from '../renderer/api';
|
||||
|
||||
// Ely.by сервер
|
||||
const ELY_BY_AUTH_SERVER = 'http://127.0.0.1:8000';
|
||||
const ELY_BY_AUTH_SERVER = API_BASE_URL;
|
||||
|
||||
export class AuthService {
|
||||
private client: YggdrasilClient;
|
||||
|
@ -11,7 +11,15 @@ interface AuthFormProps {
|
||||
|
||||
const AuthForm = ({ config, handleInputChange, onLogin }: AuthFormProps) => {
|
||||
return (
|
||||
<Box sx={{ display: 'flex', flexDirection: 'column', gap: '1.5vw' }}>
|
||||
<Box
|
||||
sx={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
gap: '1.5vw',
|
||||
alignItems: 'center',
|
||||
}}
|
||||
>
|
||||
<Typography variant="h6">Логин</Typography>
|
||||
<TextField
|
||||
required
|
||||
name="username"
|
||||
@ -19,6 +27,7 @@ const AuthForm = ({ config, handleInputChange, onLogin }: AuthFormProps) => {
|
||||
value={config.username}
|
||||
onChange={handleInputChange}
|
||||
sx={{
|
||||
width: '100%',
|
||||
// '& .MuiFormLabel-root': {
|
||||
// color: 'white',
|
||||
// },
|
||||
@ -42,6 +51,7 @@ const AuthForm = ({ config, handleInputChange, onLogin }: AuthFormProps) => {
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<Typography variant="h6">Пароль</Typography>
|
||||
<TextField
|
||||
required
|
||||
type="password"
|
||||
@ -50,6 +60,7 @@ const AuthForm = ({ config, handleInputChange, onLogin }: AuthFormProps) => {
|
||||
value={config.password}
|
||||
onChange={handleInputChange}
|
||||
sx={{
|
||||
width: '100%',
|
||||
// '& .MuiFormLabel-root': {
|
||||
// color: 'white',
|
||||
// },
|
||||
|
Reference in New Issue
Block a user