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
7123a2cf
Commit
7123a2cf
authored
Mar 10, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove sort by pinned
parent
ff13e0f3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
11 deletions
+5
-11
MemoDisplaySettingMenu.tsx
web/src/components/MemoDisplaySettingMenu.tsx
+1
-1
MemoView.tsx
web/src/components/MemoView.tsx
+0
-1
en.json
web/src/locales/en.json
+1
-2
pt-BR.json
web/src/locales/pt-BR.json
+1
-2
zh-Hans.json
web/src/locales/zh-Hans.json
+2
-3
Home.tsx
web/src/pages/Home.tsx
+0
-1
UserProfile.tsx
web/src/pages/UserProfile.tsx
+0
-1
No files found.
web/src/components/MemoDisplaySettingMenu.tsx
View file @
7123a2cf
...
...
@@ -38,7 +38,7 @@ const MemoDisplaySettingMenu = observer(({ className }: Props) => {
</
Select
>
</
div
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
span
className=
"text-sm shrink-0 mr-3"
>
{
t
(
"memo.masonry-view"
)
}
</
span
>
<
span
className=
"text-sm shrink-0 mr-3"
>
Layout
</
span
>
<
Select
value=
{
viewStore
.
state
.
layout
}
onChange=
{
(
_
,
value
)
=>
...
...
web/src/components/MemoView.tsx
View file @
7123a2cf
...
...
@@ -125,7 +125,6 @@ const MemoView: React.FC<Props> = (props: Props) => {
<
div
className=
{
cn
(
"group relative flex flex-col justify-start items-start w-full px-4 py-3 mb-2 gap-2 bg-white dark:bg-zinc-800 rounded-lg border border-white dark:border-zinc-800 hover:border-gray-200 dark:hover:border-zinc-700"
,
props
.
showPinned
&&
memo
.
pinned
&&
"border-gray-200 border dark:border-zinc-700"
,
className
,
)
}
ref=
{
memoContainerRef
}
...
...
web/src/locales/en.json
View file @
7123a2cf
...
...
@@ -143,8 +143,7 @@
"direction-asc"
:
"Ascending"
,
"no-memos"
:
"No memos."
,
"click-to-show-nsfw-content"
:
"Click to show NSFW contnet"
,
"click-to-hide-nsfw-content"
:
"Click to hide NSFW content"
,
"masonry-view"
:
"Masonry View"
"click-to-hide-nsfw-content"
:
"Click to hide NSFW content"
},
"message"
:
{
"archived-successfully"
:
"Archived successfully"
,
...
...
web/src/locales/pt-BR.json
View file @
7123a2cf
...
...
@@ -140,7 +140,6 @@
"filters"
:
"Filtros"
,
"links"
:
"Links"
,
"load-more"
:
"Carregar mais"
,
"masonry-view"
:
"Visão em grade"
,
"no-archived-memos"
:
"Nenhum memo arquivado."
,
"no-memos"
:
"Nenhum memo."
,
"order-by"
:
"Ordenar por"
,
...
...
@@ -409,4 +408,4 @@
"delete-tag"
:
"Excluir Tag"
,
"no-tag-found"
:
"Nenhuma tag encontrada"
}
}
}
\ No newline at end of file
web/src/locales/zh-Hans.json
View file @
7123a2cf
...
...
@@ -139,8 +139,7 @@
"direction-asc"
:
"正序"
,
"no-memos"
:
"无备忘"
,
"click-to-show-nsfw-content"
:
"点击显示 NSFW 内容"
,
"click-to-hide-nsfw-content"
:
"点击隐藏 NSFW 内容"
,
"masonry-view"
:
"砖块视图"
"click-to-hide-nsfw-content"
:
"点击隐藏 NSFW 内容"
},
"message"
:
{
"archived-successfully"
:
"归档成功"
,
...
...
@@ -394,4 +393,4 @@
"blogs"
:
"博客"
,
"documents"
:
"文档"
}
}
}
\ No newline at end of file
web/src/pages/Home.tsx
View file @
7123a2cf
...
...
@@ -57,7 +57,6 @@ const Home = observer(() => {
?
dayjs
(
a
.
displayTime
).
unix
()
-
dayjs
(
b
.
displayTime
).
unix
()
:
dayjs
(
b
.
displayTime
).
unix
()
-
dayjs
(
a
.
displayTime
).
unix
(),
)
.
sort
((
a
,
b
)
=>
Number
(
b
.
pinned
)
-
Number
(
a
.
pinned
))
}
owner=
{
user
.
name
}
direction=
{
viewStore
.
state
.
orderByTimeAsc
?
Direction
.
ASC
:
Direction
.
DESC
}
...
...
web/src/pages/UserProfile.tsx
View file @
7123a2cf
...
...
@@ -112,7 +112,6 @@ const UserProfile = observer(() => {
?
dayjs
(
a
.
displayTime
).
unix
()
-
dayjs
(
b
.
displayTime
).
unix
()
:
dayjs
(
b
.
displayTime
).
unix
()
-
dayjs
(
a
.
displayTime
).
unix
(),
)
.
sort
((
a
,
b
)
=>
Number
(
b
.
pinned
)
-
Number
(
a
.
pinned
))
}
owner=
{
user
.
name
}
direction=
{
viewStore
.
state
.
orderByTimeAsc
?
Direction
.
ASC
:
Direction
.
DESC
}
...
...
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