mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 04:54:23 +00:00
Update translations & testing in prod again.
This commit is contained in:
parent
78bead88cf
commit
801df6fdca
3 changed files with 20 additions and 7 deletions
|
@ -174,7 +174,10 @@ const submitUserPassword = async () => {
|
|||
};
|
||||
</script>
|
||||
<template>
|
||||
<div class="justify-center align-center text-center" v-if="!isLoggedIn">
|
||||
<div
|
||||
class="justify-center align-center text-center absloute inset-0 p-1"
|
||||
v-if="!isLoggedIn"
|
||||
>
|
||||
<form
|
||||
class="flex flex-col items-center justify-center h-full"
|
||||
@submit.prevent="submitUserPassword"
|
||||
|
@ -185,14 +188,14 @@ const submitUserPassword = async () => {
|
|||
<div class="">
|
||||
<Input
|
||||
type="text"
|
||||
placeholder="Username"
|
||||
:placeholder="t('settings.placeholder.user')"
|
||||
class="mb-2 p-2 border rounded"
|
||||
v-model="userAccount"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
type="password"
|
||||
placeholder="Password"
|
||||
:placeholder="t('settings.placeholder.password')"
|
||||
class="p-2 border rounded mb-2"
|
||||
v-model="userPassword"
|
||||
required
|
||||
|
@ -202,11 +205,11 @@ const submitUserPassword = async () => {
|
|||
>Error: {{ errormsg }}</span
|
||||
>
|
||||
<button class="bg-black text-white p-2 rounded transition duration-200">
|
||||
Log In
|
||||
{{ t("settings.loginButton") }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="justify-center align-center text-center" v-else>
|
||||
<div class="justify-center align-center text-center" v-if="isLoggedIn">
|
||||
<h1 class="text-3xl text-bold p-2">
|
||||
{{ t("settings.greet")
|
||||
}}{{ user || userData.userAccount || t("settings.defaultname") }}
|
||||
|
|
|
@ -88,7 +88,12 @@
|
|||
"greet": "Greetings, ",
|
||||
"defaultname": "User",
|
||||
"login": "Login / Register",
|
||||
"loginmessage": "We will create a account for you if you don't have one."
|
||||
"loginmessage": "We will create a account for you if you don't have one.",
|
||||
"loginButton": "Log In",
|
||||
"placeholder": {
|
||||
"user": "Username",
|
||||
"password": "Password"
|
||||
}
|
||||
},
|
||||
"popuptext": {
|
||||
"logout": "Are you sure you want to logout?",
|
||||
|
|
|
@ -88,7 +88,12 @@
|
|||
"greet": "嗨, ",
|
||||
"defaultname": "使用者",
|
||||
"login": "登入 / 註冊",
|
||||
"loginmessage": "如果妳沒有帳號的話,我們會幫你註冊一個。"
|
||||
"loginmessage": "如果妳沒有帳號的話,我們會幫你註冊一個。",
|
||||
"loginButton": "登入按鈕",
|
||||
"placeholder": {
|
||||
"user": "使用者帳號",
|
||||
"password": "密碼"
|
||||
}
|
||||
},
|
||||
"popup": {
|
||||
"cancel": "取消",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue