1
0
mirror of https://github.com/byulmaru/quesdon synced 2024-11-30 15:58:01 +09:00

로그인 페이지 디폴트 인스턴스 추가

This commit is contained in:
Yoo youngbeen 2022-11-16 20:31:40 +09:00
parent cd34cb35f1
commit 74e49588e6
3 changed files with 32590 additions and 6830 deletions

25839
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ import { Title } from '../common/title';
interface State {
loading: boolean;
defaultInstance: string;
}
export class PageLogin extends React.Component<{}, State>
@ -14,20 +15,21 @@ export class PageLogin extends React.Component<{}, State>
{
super(props);
this.state = {
loading: false
loading: false,
defaultInstance: 'planet.moe'
};
}
render()
{
const { loading } = this.state;
const { loading, defaultInstance } = this.state;
return <div>
<Title></Title>
<h1></h1>
<p> Mastodon .</p>
<form action="javascript://" onSubmit={this.send.bind(this)}>
<FormGroup>
<Input name="instance" placeholder="planet.moe" list="major-instances"/>
<Input name="instance" placeholder={defaultInstance} list="major-instances"/>
<datalist id="major-instances">
{majorInstances.map((instance) => <option value={instance} />)}
</datalist>

13573
yarn.lock

File diff suppressed because it is too large Load Diff