Skip to content

Commit

Permalink
disable other user actions for maintenance (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzlk authored Feb 17, 2025
1 parent 7f5fa35 commit c085e93
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
8 changes: 8 additions & 0 deletions app/modules/language.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ const langmap = {
"Загрузка каталога (и его подкаталогов)",
"Uploads are disabled while maintenance is being performed. Expected duration 2 hours.":
"Загрузки отключены, пока проводятся работы. Предполагаемая продолжительность 2 часа.",
"Account operations are disabled while maintenance is being performed. Expected duration 2 hours.":
"Операции с аккаунтом отключены, пока проводятся работы. Предполагаемая продолжительность 2 часа.",

"In Progress": "В процессе",
Progress: "Прогресс",
Expand Down Expand Up @@ -356,6 +358,8 @@ const langmap = {
"Carga de directorios (y subdirectorios)",
"Uploads are disabled while maintenance is being performed. Expected duration 2 hours.":
"Las subidas estan desactivadas mientras se realiza mantenimiento. Duración estimada de 2 horas.",
"Account operations are disabled while maintenance is being performed. Expected duration 2 hours.":
"Operaciones de cuenta estan desactivadas mientras se realiza mantenimiento. Duración estimada de 2 horas.",

"In Progress": "En progreso",
Progress: "Progreso",
Expand Down Expand Up @@ -453,6 +457,8 @@ const langmap = {

"Uploads are disabled while maintenance is being performed. Expected duration 2 hours.":
"업로드은 연구중이기 때까지 불가하고 있습니다. 예상 시간은 2시간입니다.",
"Account operations are disabled while maintenance is being performed. Expected duration 2 hours.":
"업로드은 연구중이기 때까지 불가하고 있습니다. 예상 시간은 2시간입니다.",

"In Progress": "진행 중",
Pending: "보류 중",
Expand Down Expand Up @@ -718,6 +724,8 @@ const langmap = {

"Uploads are disabled while maintenance is being performed. Expected duration 2 hours.":
"維護中時上傳功能將被禁用。預計持續時間2小時。",
"Account operations are disabled while maintenance is being performed. Expected duration 2 hours.":
"維護中時帳戶操作將被禁用。預計持續時間2小時。",

"In Progress": "進行中",
Pending: "等待中",
Expand Down
4 changes: 4 additions & 0 deletions app/pages/Login.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
@extend .page-title;
}

.h2 {
@extend .space-font;
}

.form {
@extend .standard-panel;
display: block;
Expand Down
8 changes: 6 additions & 2 deletions app/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,14 @@ export default function (props: any) {
return (
<>
<div class={style["vertical-container"]}>
<h2 class={style.h2} style="color: red; background-color: yellow;">
<I18nSpan text="Account operations are disabled while maintenance is being performed. Expected duration 2 hours." />
</h2>

<h1 class={style.h1}>
<I18nSpan text="Log in" />
</h1>

{/*
<form
class={style.form}
onSubmit={(e) => {
Expand Down Expand Up @@ -171,7 +175,7 @@ export default function (props: any) {
<button class={style.login} type="submit">
<I18nSpan text="Register" />
</button>
</form>
</form> */}
</div>
</>
);
Expand Down
4 changes: 4 additions & 0 deletions app/pages/User.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
@extend .page-title;
}

.h2 {
@extend .space-font;
}

.h3 {
@extend .space-font;
font-size: 24px;
Expand Down
6 changes: 5 additions & 1 deletion app/pages/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export default function (props: any) {
</A>
</Show>

<h2 class={style.h2} style="color: red; background-color: yellow;">
<I18nSpan text="Account operations are disabled while maintenance is being performed. Expected duration 2 hours." />
</h2>
{/*
<h3 class={style.h3}>
<I18nSpan text="Log out" />
</h3>
Expand Down Expand Up @@ -238,7 +242,7 @@ export default function (props: any) {
<button class={style.login} type="submit">
<I18nSpan text="Change Password" />
</button>
</form>
</form> */}
</Show>
</div>
</>
Expand Down

0 comments on commit c085e93

Please sign in to comment.