Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
1591fdf6
Commit
1591fdf6
authored
Sep 16, 2022
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update i18n structures
parent
811f3340
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
69 additions
and
64 deletions
+69
-64
ArchivedMemo.tsx
web/src/components/ArchivedMemo.tsx
+1
-2
ChangeMemoCreatedTsDialog.tsx
web/src/components/ChangeMemoCreatedTsDialog.tsx
+4
-4
ChangePasswordDialog.tsx
web/src/components/ChangePasswordDialog.tsx
+2
-2
CreateShortcutDialog.tsx
web/src/components/CreateShortcutDialog.tsx
+1
-1
Memo.tsx
web/src/components/Memo.tsx
+1
-1
MemoCardDialog.tsx
web/src/components/MemoCardDialog.tsx
+1
-1
MemoList.tsx
web/src/components/MemoList.tsx
+1
-1
MemberSection.tsx
web/src/components/Settings/MemberSection.tsx
+1
-1
ShareMemoImageDialog.tsx
web/src/components/ShareMemoImageDialog.tsx
+1
-1
en.json
web/src/locales/en.json
+18
-16
vi.json
web/src/locales/vi.json
+18
-16
zh.json
web/src/locales/zh.json
+18
-16
Auth.tsx
web/src/pages/Auth.tsx
+1
-1
Home.tsx
web/src/pages/Home.tsx
+1
-1
No files found.
web/src/components/ArchivedMemo.tsx
View file @
1591fdf6
import
{
IMAGE_URL_REG
}
from
"../helpers/marked"
;
import
*
as
utils
from
"../helpers/utils"
;
import
*
as
utils
from
"../helpers/utils"
;
import
useI18n
from
"../hooks/useI18n"
;
import
useI18n
from
"../hooks/useI18n"
;
import
useToggle
from
"../hooks/useToggle"
;
import
useToggle
from
"../hooks/useToggle"
;
...
@@ -44,7 +43,7 @@ const ArchivedMemo: React.FC<Props> = (props: Props) => {
...
@@ -44,7 +43,7 @@ const ArchivedMemo: React.FC<Props> = (props: Props) => {
rowStatus
:
"NORMAL"
,
rowStatus
:
"NORMAL"
,
});
});
await
memoService
.
fetchMemos
();
await
memoService
.
fetchMemos
();
toastHelper
.
info
(
t
(
"
common
.restored-successfully"
));
toastHelper
.
info
(
t
(
"
message
.restored-successfully"
));
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
console
.
error
(
error
);
console
.
error
(
error
);
toastHelper
.
error
(
error
.
response
.
data
.
message
);
toastHelper
.
error
(
error
.
response
.
data
.
message
);
...
...
web/src/components/ChangeMemoCreatedTsDialog.tsx
View file @
1591fdf6
...
@@ -23,7 +23,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
...
@@ -23,7 +23,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
const
datetime
=
dayjs
(
memo
.
createdTs
).
format
(
"YYYY-MM-DDTHH:mm"
);
const
datetime
=
dayjs
(
memo
.
createdTs
).
format
(
"YYYY-MM-DDTHH:mm"
);
setCreatedAt
(
datetime
);
setCreatedAt
(
datetime
);
}
else
{
}
else
{
toastHelper
.
error
(
t
(
"
common
.memo-not-found"
));
toastHelper
.
error
(
t
(
"
message
.memo-not-found"
));
destroy
();
destroy
();
}
}
},
[]);
},
[]);
...
@@ -42,7 +42,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
...
@@ -42,7 +42,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
const
createdTs
=
dayjs
(
createdAt
).
unix
();
const
createdTs
=
dayjs
(
createdAt
).
unix
();
if
(
createdTs
>
nowTs
)
{
if
(
createdTs
>
nowTs
)
{
toastHelper
.
error
(
t
(
"
common
.invalid-created-datetime"
));
toastHelper
.
error
(
t
(
"
message
.invalid-created-datetime"
));
return
;
return
;
}
}
...
@@ -51,7 +51,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
...
@@ -51,7 +51,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
id
:
memoId
,
id
:
memoId
,
createdTs
,
createdTs
,
});
});
toastHelper
.
info
(
t
(
"
common
.memo-updated-datetime"
));
toastHelper
.
info
(
t
(
"
message
.memo-updated-datetime"
));
handleCloseBtnClick
();
handleCloseBtnClick
();
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
console
.
error
(
error
);
console
.
error
(
error
);
...
@@ -62,7 +62,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
...
@@ -62,7 +62,7 @@ const ChangeMemoCreatedTsDialog: React.FC<Props> = (props: Props) => {
return
(
return
(
<>
<>
<
div
className=
"dialog-header-container"
>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
{
t
(
"
common
.change-memo-created-time"
)
}
</
p
>
<
p
className=
"title-text"
>
{
t
(
"
message
.change-memo-created-time"
)
}
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
handleCloseBtnClick
}
>
<
button
className=
"btn close-btn"
onClick=
{
handleCloseBtnClick
}
>
<
Icon
.
X
/>
<
Icon
.
X
/>
</
button
>
</
button
>
...
...
web/src/components/ChangePasswordDialog.tsx
View file @
1591fdf6
...
@@ -41,12 +41,12 @@ const ChangePasswordDialog: React.FC<Props> = ({ destroy }: Props) => {
...
@@ -41,12 +41,12 @@ const ChangePasswordDialog: React.FC<Props> = ({ destroy }: Props) => {
const
handleSaveBtnClick
=
async
()
=>
{
const
handleSaveBtnClick
=
async
()
=>
{
if
(
newPassword
===
""
||
newPasswordAgain
===
""
)
{
if
(
newPassword
===
""
||
newPasswordAgain
===
""
)
{
toastHelper
.
error
(
t
(
"
common
.fill-all"
));
toastHelper
.
error
(
t
(
"
message
.fill-all"
));
return
;
return
;
}
}
if
(
newPassword
!==
newPasswordAgain
)
{
if
(
newPassword
!==
newPasswordAgain
)
{
toastHelper
.
error
(
t
(
"
common
.new-password-not-match"
));
toastHelper
.
error
(
t
(
"
message
.new-password-not-match"
));
setNewPasswordAgain
(
""
);
setNewPasswordAgain
(
""
);
return
;
return
;
}
}
...
...
web/src/components/CreateShortcutDialog.tsx
View file @
1591fdf6
...
@@ -113,7 +113,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
...
@@ -113,7 +113,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
<
input
<
input
className=
"title-input"
className=
"title-input"
type=
"text"
type=
"text"
placeholder=
{
t
(
"
common
.shortcut-title"
)
}
placeholder=
{
t
(
"
shortcut-list
.shortcut-title"
)
}
value=
{
title
}
value=
{
title
}
onChange=
{
handleTitleInputChange
}
onChange=
{
handleTitleInputChange
}
/>
/>
...
...
web/src/components/Memo.tsx
View file @
1591fdf6
...
@@ -105,7 +105,7 @@ const Memo: React.FC<Props> = (props: Props) => {
...
@@ -105,7 +105,7 @@ const Memo: React.FC<Props> = (props: Props) => {
if
(
memoTemp
)
{
if
(
memoTemp
)
{
showMemoCardDialog
(
memoTemp
);
showMemoCardDialog
(
memoTemp
);
}
else
{
}
else
{
toastHelper
.
error
(
t
(
"
common
.memo-not-found"
));
toastHelper
.
error
(
t
(
"
message
.memo-not-found"
));
targetEl
.
classList
.
remove
(
"memo-link-text"
);
targetEl
.
classList
.
remove
(
"memo-link-text"
);
}
}
}
else
if
(
targetEl
.
className
===
"tag-span"
)
{
}
else
if
(
targetEl
.
className
===
"tag-span"
)
{
...
...
web/src/components/MemoCardDialog.tsx
View file @
1591fdf6
...
@@ -97,7 +97,7 @@ const MemoCardDialog: React.FC<Props> = (props: Props) => {
...
@@ -97,7 +97,7 @@ const MemoCardDialog: React.FC<Props> = (props: Props) => {
setLinkedMemos
([]);
setLinkedMemos
([]);
setMemo
(
nextMemo
);
setMemo
(
nextMemo
);
}
else
{
}
else
{
toastHelper
.
error
(
t
(
"
common
.memo-not-found"
));
toastHelper
.
error
(
t
(
"
message
.memo-not-found"
));
targetEl
.
classList
.
remove
(
"memo-link-text"
);
targetEl
.
classList
.
remove
(
"memo-link-text"
);
}
}
}
}
...
...
web/src/components/MemoList.tsx
View file @
1591fdf6
...
@@ -108,7 +108,7 @@ const MemoList = () => {
...
@@ -108,7 +108,7 @@ const MemoList = () => {
))
}
))
}
<
Only
when=
{
!
isFetching
}
>
<
Only
when=
{
!
isFetching
}
>
<
div
className=
"status-text-container"
>
<
div
className=
"status-text-container"
>
<
p
className=
"status-text"
>
{
sortedMemos
.
length
===
0
?
t
(
"
common.no-memos"
)
:
showMemoFilter
?
""
:
t
(
"common
.memos-ready"
)
}
</
p
>
<
p
className=
"status-text"
>
{
sortedMemos
.
length
===
0
?
t
(
"
message.no-memos"
)
:
showMemoFilter
?
""
:
t
(
"message
.memos-ready"
)
}
</
p
>
</
div
>
</
div
>
</
Only
>
</
Only
>
</
div
>
</
div
>
...
...
web/src/components/Settings/MemberSection.tsx
View file @
1591fdf6
...
@@ -48,7 +48,7 @@ const PreferencesSection = () => {
...
@@ -48,7 +48,7 @@ const PreferencesSection = () => {
const
handleCreateUserBtnClick
=
async
()
=>
{
const
handleCreateUserBtnClick
=
async
()
=>
{
if
(
isEmpty
(
state
.
createUserEmail
)
||
isEmpty
(
state
.
createUserPassword
))
{
if
(
isEmpty
(
state
.
createUserEmail
)
||
isEmpty
(
state
.
createUserPassword
))
{
toastHelper
.
error
(
t
(
"
common
.fill-form"
));
toastHelper
.
error
(
t
(
"
message
.fill-form"
));
return
;
return
;
}
}
...
...
web/src/components/ShareMemoImageDialog.tsx
View file @
1591fdf6
...
@@ -59,7 +59,7 @@ const ShareMemoImageDialog: React.FC<Props> = (props: Props) => {
...
@@ -59,7 +59,7 @@ const ShareMemoImageDialog: React.FC<Props> = (props: Props) => {
const
handleImageOnLoad
=
(
event
:
React
.
SyntheticEvent
<
HTMLImageElement
>
)
=>
{
const
handleImageOnLoad
=
(
event
:
React
.
SyntheticEvent
<
HTMLImageElement
>
)
=>
{
if
(
event
.
type
===
"error"
)
{
if
(
event
.
type
===
"error"
)
{
toastHelper
.
error
(
t
(
"
common
.image-load-failed"
));
toastHelper
.
error
(
t
(
"
message
.image-load-failed"
));
(
event
.
target
as
HTMLImageElement
).
remove
();
(
event
.
target
as
HTMLImageElement
).
remove
();
}
}
setImgAmount
(
imgAmount
-
1
);
setImgAmount
(
imgAmount
-
1
);
...
...
web/src/locales/en.json
View file @
1591fdf6
...
@@ -30,27 +30,12 @@
...
@@ -30,27 +30,12 @@
"back-to-home"
:
"Back to Home"
,
"back-to-home"
:
"Back to Home"
,
"type"
:
"Type"
,
"type"
:
"Type"
,
"shortcuts"
:
"Shortcuts"
,
"shortcuts"
:
"Shortcuts"
,
"shortcut-title"
:
"shortcut title"
,
"title"
:
"Title"
,
"title"
:
"Title"
,
"filter"
:
"Filter"
,
"filter"
:
"Filter"
,
"tags"
:
"Tags"
,
"tags"
:
"Tags"
,
"no-memos"
:
"no memos 🌃"
,
"memos-ready"
:
"all memos are ready 🎉"
,
"yourself"
:
"Yourself"
,
"yourself"
:
"Yourself"
,
"archived-at"
:
"Archived at"
,
"archived-at"
:
"Archived at"
,
"restored-successfully"
:
"Restored successfully"
,
"changed"
:
"changed"
"memo-updated-datetime"
:
"Memo created datetime changed."
,
"invalid-created-datetime"
:
"Invalid created datetime."
,
"change-memo-created-time"
:
"Change memo created time"
,
"memo-not-found"
:
"Memo not found."
,
"fill-all"
:
"Please fill in all fields."
,
"new-password-not-match"
:
"New passwords do not match."
,
"changed"
:
"changed"
,
"image-load-failed"
:
"Image load failed"
,
"fill-form"
:
"Please fill out this form"
,
"login-failed"
:
"Login failed"
,
"signup-failed"
:
"Signup failed"
,
"user-not-found"
:
"User not found"
},
},
"slogan"
:
"An open source, self-hosted knowledge base that works with a SQLite db file."
,
"slogan"
:
"An open source, self-hosted knowledge base that works with a SQLite db file."
,
"auth"
:
{
"auth"
:
{
...
@@ -94,6 +79,7 @@
...
@@ -94,6 +79,7 @@
"fetching-data"
:
"fetching data..."
"fetching-data"
:
"fetching data..."
},
},
"shortcut-list"
:
{
"shortcut-list"
:
{
"shortcut-title"
:
"shortcut title"
,
"create-shortcut"
:
"Create Shortcut"
,
"create-shortcut"
:
"Create Shortcut"
,
"edit-shortcut"
:
"Edit Shortcut"
,
"edit-shortcut"
:
"Edit Shortcut"
,
"new-filter"
:
"New Filter"
,
"new-filter"
:
"New Filter"
,
...
@@ -122,5 +108,21 @@
...
@@ -122,5 +108,21 @@
"member-section"
:
{
"member-section"
:
{
"create-a-member"
:
"Create a member"
"create-a-member"
:
"Create a member"
}
}
},
"message"
:
{
"no-memos"
:
"no memos 🌃"
,
"memos-ready"
:
"all memos are ready 🎉"
,
"restored-successfully"
:
"Restored successfully"
,
"memo-updated-datetime"
:
"Memo created datetime changed."
,
"invalid-created-datetime"
:
"Invalid created datetime."
,
"change-memo-created-time"
:
"Change memo created time"
,
"memo-not-found"
:
"Memo not found."
,
"fill-all"
:
"Please fill in all fields."
,
"new-password-not-match"
:
"New passwords do not match."
,
"image-load-failed"
:
"Image load failed"
,
"fill-form"
:
"Please fill out this form"
,
"login-failed"
:
"Login failed"
,
"signup-failed"
:
"Signup failed"
,
"user-not-found"
:
"User not found"
}
}
}
}
web/src/locales/vi.json
View file @
1591fdf6
...
@@ -30,27 +30,12 @@
...
@@ -30,27 +30,12 @@
"back-to-home"
:
"Quay về trang chủ"
,
"back-to-home"
:
"Quay về trang chủ"
,
"type"
:
"Kiểu"
,
"type"
:
"Kiểu"
,
"shortcuts"
:
"Lối tắt"
,
"shortcuts"
:
"Lối tắt"
,
"shortcut-title"
:
"Tên lối tắt"
,
"title"
:
"Tên"
,
"title"
:
"Tên"
,
"filter"
:
"Bộ lọc"
,
"filter"
:
"Bộ lọc"
,
"tags"
:
"Thẻ"
,
"tags"
:
"Thẻ"
,
"no-memos"
:
"Không có memo nào 🌃"
,
"memos-ready"
:
"Tất cả memo ở đây rồi 🎉"
,
"yourself"
:
"Của bạn"
,
"yourself"
:
"Của bạn"
,
"archived-at"
:
"Lưu trữ lúc"
,
"archived-at"
:
"Lưu trữ lúc"
,
"restored-successfully"
:
"Đã khôi phục thành công"
,
"changed"
:
"đã thay đổi"
"memo-updated-datetime"
:
"Memo đã thay đổi ngày giờ tạo."
,
"invalid-created-datetime"
:
"Ngày giờ tạo không hợp lệ."
,
"change-memo-created-time"
:
"Thay đổi thời gian tạo memo"
,
"memo-not-found"
:
"Không tìm thấy memo."
,
"fill-all"
:
"Vui lòng nhập tất cả các mục."
,
"new-password-not-match"
:
"Mật khẩu mới không giống nhau."
,
"changed"
:
"đã thay đổi"
,
"image-load-failed"
:
"Tải ảnh bị lỗi"
,
"fill-form"
:
"Please fill out this form"
,
"login-failed"
:
"Đăng nhập thất bại"
,
"signup-failed"
:
"Đăng ký thất bại"
,
"user-not-found"
:
"Không tìm thấy người dùng này"
},
},
"slogan"
:
"Một mã nguồn mở, tự lưu lại mọi thứ bạn biết dựa trên SQLite db."
,
"slogan"
:
"Một mã nguồn mở, tự lưu lại mọi thứ bạn biết dựa trên SQLite db."
,
"auth"
:
{
"auth"
:
{
...
@@ -94,6 +79,7 @@
...
@@ -94,6 +79,7 @@
"fetching-data"
:
"đang tải dữ liệu..."
"fetching-data"
:
"đang tải dữ liệu..."
},
},
"shortcut-list"
:
{
"shortcut-list"
:
{
"shortcut-title"
:
"Tên lối tắt"
,
"create-shortcut"
:
"Tạo lối tắt"
,
"create-shortcut"
:
"Tạo lối tắt"
,
"edit-shortcut"
:
"Chỉnh sửa lối tắt"
,
"edit-shortcut"
:
"Chỉnh sửa lối tắt"
,
"new-filter"
:
"Bộ lọc mới"
,
"new-filter"
:
"Bộ lọc mới"
,
...
@@ -122,5 +108,21 @@
...
@@ -122,5 +108,21 @@
"member-section"
:
{
"member-section"
:
{
"create-a-member"
:
"Tạo một thành viên"
"create-a-member"
:
"Tạo một thành viên"
}
}
},
"message"
:
{
"no-memos"
:
"Không có memo nào 🌃"
,
"memos-ready"
:
"Tất cả memo ở đây rồi 🎉"
,
"restored-successfully"
:
"Đã khôi phục thành công"
,
"memo-updated-datetime"
:
"Memo đã thay đổi ngày giờ tạo."
,
"invalid-created-datetime"
:
"Ngày giờ tạo không hợp lệ."
,
"change-memo-created-time"
:
"Thay đổi thời gian tạo memo"
,
"memo-not-found"
:
"Không tìm thấy memo."
,
"fill-all"
:
"Vui lòng nhập tất cả các mục."
,
"new-password-not-match"
:
"Mật khẩu mới không giống nhau."
,
"image-load-failed"
:
"Tải ảnh bị lỗi"
,
"fill-form"
:
"Please fill out this form"
,
"login-failed"
:
"Đăng nhập thất bại"
,
"signup-failed"
:
"Đăng ký thất bại"
,
"user-not-found"
:
"Không tìm thấy người dùng này"
}
}
}
}
web/src/locales/zh.json
View file @
1591fdf6
...
@@ -30,27 +30,12 @@
...
@@ -30,27 +30,12 @@
"back-to-home"
:
"回到主页"
,
"back-to-home"
:
"回到主页"
,
"type"
:
"类型"
,
"type"
:
"类型"
,
"shortcuts"
:
"捷径"
,
"shortcuts"
:
"捷径"
,
"shortcut-title"
:
"捷径标题"
,
"title"
:
"标题"
,
"title"
:
"标题"
,
"filter"
:
"过滤器"
,
"filter"
:
"过滤器"
,
"tags"
:
"全部标签"
,
"tags"
:
"全部标签"
,
"no-memos"
:
"没有 memo 了 🌃"
,
"memos-ready"
:
"所有 memo 已就绪 🎉"
,
"yourself"
:
"你自己"
,
"yourself"
:
"你自己"
,
"archived-at"
:
"归档于"
,
"archived-at"
:
"归档于"
,
"restored-successfully"
:
"恢复成功"
,
"changed"
:
"已更改"
"memo-updated-datetime"
:
"Memo创建日期时间已更改。"
,
"invalid-created-datetime"
:
"创建的日期时间无效。"
,
"change-memo-created-time"
:
"更改Memo创建时间"
,
"memo-not-found"
:
"找不到Memo。"
,
"fill-all"
:
"请填写所有字段。"
,
"new-password-not-match"
:
"新密码不匹配。"
,
"changed"
:
"已更改"
,
"image-load-failed"
:
"图片加载失败"
,
"fill-form"
:
"请填写此表单"
,
"login-failed"
:
"登录失败"
,
"signup-failed"
:
"注册失败"
,
"user-not-found"
:
"未找到用户"
},
},
"slogan"
:
"一个开源的、支持私有化部署的碎片化知识卡片管理工具。"
,
"slogan"
:
"一个开源的、支持私有化部署的碎片化知识卡片管理工具。"
,
"auth"
:
{
"auth"
:
{
...
@@ -94,6 +79,7 @@
...
@@ -94,6 +79,7 @@
"fetching-data"
:
"请求数据中..."
"fetching-data"
:
"请求数据中..."
},
},
"shortcut-list"
:
{
"shortcut-list"
:
{
"shortcut-title"
:
"捷径标题"
,
"create-shortcut"
:
"创建捷径"
,
"create-shortcut"
:
"创建捷径"
,
"edit-shortcut"
:
"编辑捷径"
,
"edit-shortcut"
:
"编辑捷径"
,
"new-filter"
:
"新建过滤器"
,
"new-filter"
:
"新建过滤器"
,
...
@@ -122,5 +108,21 @@
...
@@ -122,5 +108,21 @@
"member-section"
:
{
"member-section"
:
{
"create-a-member"
:
"创建成员"
"create-a-member"
:
"创建成员"
}
}
},
"message"
:
{
"no-memos"
:
"没有 memo 了 🌃"
,
"memos-ready"
:
"所有 memo 已就绪 🎉"
,
"restored-successfully"
:
"恢复成功"
,
"memo-updated-datetime"
:
"Memo创建日期时间已更改。"
,
"invalid-created-datetime"
:
"创建的日期时间无效。"
,
"change-memo-created-time"
:
"更改Memo创建时间"
,
"memo-not-found"
:
"找不到Memo。"
,
"fill-all"
:
"请填写所有字段。"
,
"new-password-not-match"
:
"新密码不匹配。"
,
"image-load-failed"
:
"图片加载失败"
,
"fill-form"
:
"请填写此表单"
,
"login-failed"
:
"登录失败"
,
"signup-failed"
:
"注册失败"
,
"user-not-found"
:
"未找到用户"
}
}
}
}
web/src/pages/Auth.tsx
View file @
1591fdf6
...
@@ -70,7 +70,7 @@ const Auth = () => {
...
@@ -70,7 +70,7 @@ const Auth = () => {
if
(
user
)
{
if
(
user
)
{
locationService
.
replaceHistory
(
"/"
);
locationService
.
replaceHistory
(
"/"
);
}
else
{
}
else
{
toastHelper
.
error
(
t
(
"
common
.login-failed"
));
toastHelper
.
error
(
t
(
"
message
.login-failed"
));
}
}
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
console
.
error
(
error
);
console
.
error
(
error
);
...
...
web/src/pages/Home.tsx
View file @
1591fdf6
...
@@ -31,7 +31,7 @@ function Home() {
...
@@ -31,7 +31,7 @@ function Home() {
if
(
userService
.
isVisitorMode
())
{
if
(
userService
.
isVisitorMode
())
{
if
(
!
owner
)
{
if
(
!
owner
)
{
toastHelper
.
error
(
t
(
"
common
.user-not-found"
));
toastHelper
.
error
(
t
(
"
message
.user-not-found"
));
}
}
}
else
{
}
else
{
if
(
!
user
)
{
if
(
!
user
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment