1
0
mirror of https://github.com/byulmaru/quesdon synced 2024-12-02 16:58:02 +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 { 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>

13573
yarn.lock

File diff suppressed because it is too large Load Diff