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
f6039f2e
Unverified
Commit
f6039f2e
authored
Dec 23, 2022
by
boojack
Committed by
GitHub
Dec 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update dialog title (#834)
parent
65cc19c1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
26 deletions
+22
-26
ArchivedMemoDialog.tsx
web/src/components/ArchivedMemoDialog.tsx
+1
-4
CreateShortcutDialog.tsx
web/src/components/CreateShortcutDialog.tsx
+1
-4
ResourcesDialog.tsx
web/src/components/ResourcesDialog.tsx
+1
-4
ResourcesSelectorDialog.tsx
web/src/components/ResourcesSelectorDialog.tsx
+1
-4
ShareMemoDialog.tsx
web/src/components/ShareMemoDialog.tsx
+1
-4
TagList.tsx
web/src/components/TagList.tsx
+1
-1
tag-list.less
web/src/less/tag-list.less
+1
-1
en.json
web/src/locales/en.json
+1
-1
global.ts
web/src/store/module/global.ts
+14
-3
No files found.
web/src/components/ArchivedMemoDialog.tsx
View file @
f6039f2e
...
...
@@ -36,10 +36,7 @@ const ArchivedMemoDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
<
span
className=
"icon-text"
>
🗂
</
span
>
{
t
(
"archived.archived-memos"
)
}
</
p
>
<
p
className=
"title-text"
>
{
t
(
"archived.archived-memos"
)
}
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
destroy
}
>
<
Icon
.
X
className=
"icon-img"
/>
</
button
>
...
...
web/src/components/CreateShortcutDialog.tsx
View file @
f6039f2e
...
...
@@ -101,10 +101,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
<
span
className=
"icon-text"
>
🚀
</
span
>
{
shortcutId
?
t
(
"shortcut-list.edit-shortcut"
)
:
t
(
"shortcut-list.create-shortcut"
)
}
</
p
>
<
p
className=
"title-text"
>
{
shortcutId
?
t
(
"shortcut-list.edit-shortcut"
)
:
t
(
"shortcut-list.create-shortcut"
)
}
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
destroy
}
>
<
Icon
.
X
/>
</
button
>
...
...
web/src/components/ResourcesDialog.tsx
View file @
f6039f2e
...
...
@@ -154,10 +154,7 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
<
span
className=
"icon-text"
>
🌄
</
span
>
{
t
(
"sidebar.resources"
)
}
</
p
>
<
p
className=
"title-text"
>
{
t
(
"sidebar.resources"
)
}
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
destroy
}
>
<
Icon
.
X
className=
"icon-img"
/>
</
button
>
...
...
web/src/components/ResourcesSelectorDialog.tsx
View file @
f6039f2e
...
...
@@ -82,10 +82,7 @@ const ResourcesSelectorDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
<
span
className=
"icon-text"
>
🌄
</
span
>
{
t
(
"sidebar.resources"
)
}
</
p
>
<
p
className=
"title-text"
>
{
t
(
"sidebar.resources"
)
}
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
destroy
}
>
<
Icon
.
X
className=
"icon-img"
/>
</
button
>
...
...
web/src/components/ShareMemoDialog.tsx
View file @
f6039f2e
...
...
@@ -124,10 +124,7 @@ const ShareMemoDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
<
span
className=
"icon-text"
>
🌄
</
span
>
{
t
(
"common.share"
)
}
Memo
</
p
>
<
p
className=
"title-text"
>
{
t
(
"common.share"
)
}
Memo
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
handleCloseBtnClick
}
>
<
Icon
.
X
className=
"icon-img"
/>
</
button
>
...
...
web/src/components/TagList.tsx
View file @
f6039f2e
...
...
@@ -83,7 +83,7 @@ const TagList = () => {
{
tags
.
map
((
t
,
idx
)
=>
(
<
TagItemContainer
key=
{
t
.
text
+
"-"
+
idx
}
tag=
{
t
}
tagQuery=
{
query
?.
tag
}
/>
))
}
{
tags
.
length
<
3
&&
<
p
className=
"tip-text"
>
{
t
(
"tag-list.tip-text"
)
}
</
p
>
}
{
tags
.
length
<
=
3
&&
<
p
className=
"tip-text"
>
{
t
(
"tag-list.tip-text"
)
}
</
p
>
}
</
div
>
</
div
>
);
...
...
web/src/less/tag-list.less
View file @
f6039f2e
...
...
@@ -54,7 +54,7 @@
}
> .tip-text {
@apply w-full bg-gray-50 dark:bg-zinc-700 mt-2 px-4 py-1 leading-
5
rounded text-sm text-gray-400 font-mono;
@apply w-full bg-gray-50 dark:bg-zinc-700 mt-2 px-4 py-1 leading-
6
rounded text-sm text-gray-400 font-mono;
}
}
}
web/src/locales/en.json
View file @
f6039f2e
...
...
@@ -141,7 +141,7 @@
"text-placeholder"
:
"Starts with ^ to use regex"
},
"tag-list"
:
{
"tip-text"
:
"
Click the '+' button or input `#tag ` to create a new tag.
"
"tip-text"
:
"
Input `#tag` to create
"
},
"search"
:
{
"quickly-filter"
:
"Quickly filter"
...
...
web/src/store/module/global.ts
View file @
f6039f2e
...
...
@@ -33,9 +33,20 @@ export const initialGlobalState = async () => {
try
{
const
{
data
}
=
(
await
api
.
getSystemStatus
()).
data
;
if
(
data
)
{
defaultGlobalState
.
systemStatus
=
data
;
defaultGlobalState
.
locale
=
data
.
customizedProfile
.
locale
;
defaultGlobalState
.
appearance
=
data
.
customizedProfile
.
appearance
;
const
customizedProfile
=
data
.
customizedProfile
;
defaultGlobalState
.
systemStatus
=
{
...
data
,
customizedProfile
:
{
name
:
customizedProfile
.
name
||
"memos"
,
logoUrl
:
customizedProfile
.
logoUrl
||
"/logo.png"
,
description
:
customizedProfile
.
description
,
locale
:
customizedProfile
.
locale
||
"en"
,
appearance
:
customizedProfile
.
appearance
||
"system"
,
externalUrl
:
""
,
},
};
defaultGlobalState
.
locale
=
customizedProfile
.
locale
;
defaultGlobalState
.
appearance
=
customizedProfile
.
appearance
;
}
}
catch
(
error
)
{
// do nth
...
...
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