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
0d6281ef
Unverified
Commit
0d6281ef
authored
Nov 04, 2022
by
boojack
Committed by
GitHub
Nov 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update signin page (#410)
* chore: update signin page * chore: update version `v0.7.1`
parent
8e2844e0
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
21 deletions
+22
-21
version.go
server/version/version.go
+2
-2
SettingDialog.tsx
web/src/components/SettingDialog.tsx
+1
-1
auth.less
web/src/less/auth.less
+0
-4
memo-editor.less
web/src/less/memo-editor.less
+2
-2
en.json
web/src/locales/en.json
+2
-2
vi.json
web/src/locales/vi.json
+1
-1
zh.json
web/src/locales/zh.json
+2
-2
Auth.tsx
web/src/pages/Auth.tsx
+11
-6
memoService.ts
web/src/services/memoService.ts
+1
-1
No files found.
server/version/version.go
View file @
0d6281ef
...
...
@@ -7,10 +7,10 @@ import (
// Version is the service current released version.
// Semantic versioning: https://semver.org/
var
Version
=
"0.7.
0
"
var
Version
=
"0.7.
1
"
// DevVersion is the service current development version.
var
DevVersion
=
"0.7.
0
"
var
DevVersion
=
"0.7.
1
"
func
GetCurrentVersion
(
mode
string
)
string
{
if
mode
==
"dev"
{
...
...
web/src/components/SettingDialog.tsx
View file @
0d6281ef
...
...
@@ -66,7 +66,7 @@ const SettingDialog: React.FC<Props> = (props: Props) => {
onClick=
{
()
=>
handleSectionSelectorItemClick
(
"system"
)
}
className=
{
`section-item ${state.selectedSection === "system" ? "selected" : ""}`
}
>
<
span
className=
"icon-text"
>
🧑🔧
</
span
>
System
Setting
<
span
className=
"icon-text"
>
🧑🔧
</
span
>
System
</
span
>
</
div
>
</>
...
...
web/src/less/auth.less
View file @
0d6281ef
...
...
@@ -70,10 +70,6 @@
&.requesting {
@apply cursor-wait opacity-80;
}
> .img-icon {
@apply w-4 h-auto mr-1 animate-spin;
}
}
}
...
...
web/src/less/memo-editor.less
View file @
0d6281ef
...
...
@@ -85,10 +85,10 @@
}
> .tag-list {
@apply hidden flex-col justify-start items-start absolute top-6 left-0 mt-1 p-1 z-1 rounded w-3
2
max-h-52 overflow-auto font-mono bg-black;
@apply hidden flex-col justify-start items-start absolute top-6 left-0 mt-1 p-1 z-1 rounded w-3
6
max-h-52 overflow-auto font-mono bg-black;
> .item-container {
@apply w-full text-white cursor-pointer rounded text-sm leading-6 px-2 hover:bg-gray-700;
@apply w-full text-white cursor-pointer rounded text-sm leading-6 px-2
truncate
hover:bg-gray-700;
}
> .tip-text {
...
...
web/src/locales/en.json
View file @
0d6281ef
...
...
@@ -43,7 +43,7 @@
"fold"
:
"Fold"
,
"expand"
:
"Expand"
},
"slogan"
:
"An open
source, self-hosted knowledge base that works with a SQLite db file
."
,
"slogan"
:
"An open
-source, self-hosted memo hub for knowledge management and collaboration
."
,
"auth"
:
{
"signup-as-host"
:
"Sign up as Host"
,
"host-tip"
:
"You are registering as the Site Host."
,
...
...
@@ -175,4 +175,4 @@
"resource-filename-updated"
:
"Resource filename changed."
,
"invalid-resource-filename"
:
"Invalid filename."
}
}
\ No newline at end of file
}
web/src/locales/vi.json
View file @
0d6281ef
...
...
@@ -43,7 +43,7 @@
"fold"
:
"Fold"
,
"expand"
:
"Expand"
},
"slogan"
:
"
Một mã nguồn mở, tự bạn lưu lại mọi thứ bạn biết dựa trên SQLite db
."
,
"slogan"
:
"
An open-source, self-hosted memo hub for knowledge management and collaboration
."
,
"auth"
:
{
"signup-as-host"
:
"Đăng ký như chủ nhân"
,
"host-tip"
:
"Bạn đang đăng ký với tư cách chủ nhân của trang web này."
,
...
...
web/src/locales/zh.json
View file @
0d6281ef
...
...
@@ -43,7 +43,7 @@
"fold"
:
"折叠"
,
"expand"
:
"展开"
},
"slogan"
:
"
一个开源的、支持私有化部署的碎片化知识卡片管理工具。
"
,
"slogan"
:
"
An open-source, self-hosted memo hub for knowledge management and collaboration.
"
,
"auth"
:
{
"signup-as-host"
:
"注册为 Host"
,
"host-tip"
:
"你正在注册为 Host 用户账号。"
,
...
...
@@ -175,4 +175,4 @@
"resource-filename-updated"
:
"资源文件名更改成功。"
,
"invalid-resource-filename"
:
"无效的资源文件名"
}
}
\ No newline at end of file
}
web/src/pages/Auth.tsx
View file @
0d6281ef
...
...
@@ -5,6 +5,7 @@ import * as api from "../helpers/api";
import
{
validate
,
ValidatorConfig
}
from
"../helpers/validator"
;
import
useLoading
from
"../hooks/useLoading"
;
import
{
globalService
,
userService
}
from
"../services"
;
import
Icon
from
"../components/Icon"
;
import
toastHelper
from
"../components/Toast"
;
import
"../less/auth.less"
;
...
...
@@ -141,13 +142,17 @@ const Auth = () => {
<>
{
systemStatus
?.
host
?
(
<>
{
actionBtnLoadingState
.
isLoading
&&
<
Icon
.
Loader
className=
"w-4 h-auto animate-spin"
/>
}
{
systemStatus
?.
allowSignUp
&&
(
<
button
className=
{
`btn signup-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`
}
onClick=
{
()
=>
handleSignUpBtnsClick
(
"USER"
)
}
>
{
t
(
"common.sign-up"
)
}
</
button
>
<>
<
button
className=
{
`btn signup-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`
}
onClick=
{
()
=>
handleSignUpBtnsClick
(
"USER"
)
}
>
{
t
(
"common.sign-up"
)
}
</
button
>
<
span
className=
"mr-2 font-mono text-gray-200"
>
/
</
span
>
</>
)
}
<
button
className=
{
`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`
}
...
...
web/src/services/memoService.ts
View file @
0d6281ef
...
...
@@ -4,7 +4,7 @@ import { createMemo, deleteMemo, patchMemo, setIsFetching, setMemos, setTags } f
import
store
from
"../store"
;
import
userService
from
"./userService"
;
export
const
DEFAULT_MEMO_LIMIT
=
2
0
;
export
const
DEFAULT_MEMO_LIMIT
=
3
0
;
const
convertResponseModelMemo
=
(
memo
:
Memo
):
Memo
=>
{
return
{
...
...
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