mirror of
https://github.com/byulmaru/quesdon
synced 2024-12-02 16:58:02 +09:00
로그인 페이지 디폴트 인스턴스 추가
This commit is contained in:
parent
cd34cb35f1
commit
74e49588e6
25839
package-lock.json
generated
Normal file
25839
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -6,6 +6,7 @@ import { Title } from '../common/title';
|
|||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
|
defaultInstance: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PageLogin extends React.Component<{}, State>
|
export class PageLogin extends React.Component<{}, State>
|
||||||
@ -14,20 +15,21 @@ export class PageLogin extends React.Component<{}, State>
|
|||||||
{
|
{
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
loading: false
|
loading: false,
|
||||||
|
defaultInstance: 'planet.moe'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render()
|
render()
|
||||||
{
|
{
|
||||||
const { loading } = this.state;
|
const { loading, defaultInstance } = this.state;
|
||||||
return <div>
|
return <div>
|
||||||
<Title>로그인</Title>
|
<Title>로그인</Title>
|
||||||
<h1>로그인</h1>
|
<h1>로그인</h1>
|
||||||
<p>사용중인 Mastodon 계정이 있는 인스턴스를 입력해 주세요.</p>
|
<p>사용중인 Mastodon 계정이 있는 인스턴스를 입력해 주세요.</p>
|
||||||
<form action="javascript://" onSubmit={this.send.bind(this)}>
|
<form action="javascript://" onSubmit={this.send.bind(this)}>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<Input name="instance" placeholder="planet.moe" list="major-instances"/>
|
<Input name="instance" placeholder={defaultInstance} list="major-instances"/>
|
||||||
<datalist id="major-instances">
|
<datalist id="major-instances">
|
||||||
{majorInstances.map((instance) => <option value={instance} />)}
|
{majorInstances.map((instance) => <option value={instance} />)}
|
||||||
</datalist>
|
</datalist>
|
||||||
|
Loading…
Reference in New Issue
Block a user