diff --git a/src/client/web/src/components/pane_login.tsx b/src/client/web/src/components/pane_login.tsx index dd58abc..c4a8afe 100644 --- a/src/client/web/src/components/pane_login.tsx +++ b/src/client/web/src/components/pane_login.tsx @@ -1,7 +1,8 @@ import * as React from "react"; -import { Set } from "immutable"; +import { List } from "immutable"; import { ICoreState, MsgProps } from "./core_state"; +import { Flexbox } from "./layout/flexbox"; import { updater } from "./state_updater"; import { alertMsg } from "../common/env"; import { Quota } from "../client"; @@ -62,7 +63,9 @@ export class AuthPane extends React.Component { ) .then((ok: boolean): Promise => { if (ok) { - const params = new URLSearchParams(document.location.search.substring(1)); + const params = new URLSearchParams( + document.location.search.substring(1) + ); return updater().initAll(params); } else { this.setState({ user: "", pwd: "", captchaInput: "" }); @@ -97,53 +100,65 @@ export class AuthPane extends React.Component { style={{ display: this.props.login.authed ? "none" : "block" }} >
-
-
- - + +
+ {this.props.msg.pkg.get("login.username")}
-
- -
-
+ + -
-
- - + +
+ {this.props.msg.pkg.get("login.pwd")}
-
-
+ + + + +
+ {this.props.msg.pkg.get("login.captcha")} +
+ , + , + ])} + /> +
+ + + +