mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Add server address on the login page
This commit is contained in:
parent
e7b4c01f93
commit
e5027cf00d
@ -70,8 +70,7 @@ export const LoginPage: QueryPage = () => {
|
|||||||
const { css } = useYoshiki();
|
const { css } = useYoshiki();
|
||||||
|
|
||||||
// TODO: Replace the hardcoded 1 to a random show/movie thumbnail.
|
// TODO: Replace the hardcoded 1 to a random show/movie thumbnail.
|
||||||
// TODO: Use a dynamic path for RN
|
const src = `${Platform.OS === "web" ? "/api/" : process.env.PUBLIC_BACK_URL}/shows/1/thumbnail`;
|
||||||
const src = `/api/shows/1/thumbnail`;
|
|
||||||
const nativeProps = Platform.select<ImageProps>({
|
const nativeProps = Platform.select<ImageProps>({
|
||||||
web: {
|
web: {
|
||||||
defaultSource: typeof src === "string" ? { uri: src! } : Array.isArray(src) ? src[0] : src!,
|
defaultSource: typeof src === "string" ? { uri: src! } : Array.isArray(src) ? src[0] : src!,
|
||||||
@ -101,10 +100,16 @@ export const LoginPage: QueryPage = () => {
|
|||||||
width: percent(75),
|
width: percent(75),
|
||||||
maxWidth: vw(100),
|
maxWidth: vw(100),
|
||||||
paddingHorizontal: ts(3),
|
paddingHorizontal: ts(3),
|
||||||
marginTop: ts(6),
|
marginTop: Platform.OS === "web" ? ts(6) : 0,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<H1>{t("login.login")}</H1>
|
<H1>{t("login.login")}</H1>
|
||||||
|
{Platform.OS !== "web" && (
|
||||||
|
<>
|
||||||
|
<P {...css({ paddingLeft: ts(1) })}>{t("login.server")}</P>
|
||||||
|
<Input variant="big" />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<P {...css({ paddingLeft: ts(1) })}>{t("login.email")}</P>
|
<P {...css({ paddingLeft: ts(1) })}>{t("login.email")}</P>
|
||||||
<Input autoComplete="email" variant="big" />
|
<Input autoComplete="email" variant="big" />
|
||||||
<P {...css({ paddingLeft: ts(1) })}>{t("login.password")}</P>
|
<P {...css({ paddingLeft: ts(1) })}>{t("login.password")}</P>
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
"login": {
|
"login": {
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"register": "Register",
|
"register": "Register",
|
||||||
|
"server": "Server Address",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"or-register": "Don’t have an account? <1>Register</1>."
|
"or-register": "Don’t have an account? <1>Register</1>."
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
"login": {
|
"login": {
|
||||||
"login": "Connexion",
|
"login": "Connexion",
|
||||||
"register": "Créer un compte",
|
"register": "Créer un compte",
|
||||||
|
"server": "Addresse du serveur",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"password": "Mot de passe",
|
"password": "Mot de passe",
|
||||||
"or-register": "Vous n'avez pas de compte ? <1>Inscrivez-vous</1>."
|
"or-register": "Vous n'avez pas de compte ? <1>Inscrivez-vous</1>."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user