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
a3de61a1
Commit
a3de61a1
authored
Jul 05, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix dark mode
parent
cf16795a
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
21 additions
and
29 deletions
+21
-29
MemoCommentMessage.tsx
web/src/components/Inbox/MemoCommentMessage.tsx
+2
-2
MemoAttachmentListView.tsx
web/src/components/MemoAttachmentListView.tsx
+2
-8
CodeBlock.tsx
web/src/components/MemoContent/CodeBlock.tsx
+1
-1
EmbeddedMemo.tsx
...c/components/MemoContent/EmbeddedContent/EmbeddedMemo.tsx
+1
-1
MemoDetailSidebarDrawer.tsx
.../components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
+1
-1
MarkdownMenu.tsx
web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
+2
-2
AttachmentListView.tsx
web/src/components/MemoEditor/AttachmentListView.tsx
+1
-1
RelationListView.tsx
web/src/components/MemoEditor/RelationListView.tsx
+1
-1
MemoRelationListView.tsx
web/src/components/MemoRelationListView.tsx
+1
-1
Navigation.tsx
web/src/components/Navigation.tsx
+2
-2
ReactionView.tsx
web/src/components/ReactionView.tsx
+1
-1
SearchBar.tsx
web/src/components/SearchBar.tsx
+1
-1
SSOSection.tsx
web/src/components/Settings/SSOSection.tsx
+3
-3
SectionMenuItem.tsx
web/src/components/Settings/SectionMenuItem.tsx
+1
-1
RootLayout.tsx
web/src/layouts/RootLayout.tsx
+1
-3
No files found.
web/src/components/Inbox/MemoCommentMessage.tsx
View file @
a3de61a1
...
...
@@ -76,7 +76,7 @@ const MemoCommentMessage = observer(({ inbox }: Props) => {
"shrink-0 mt-2 p-2 rounded-full border"
,
inbox
.
status
===
Inbox_Status
.
UNREAD
?
"border-primary text-primary bg-primary/10"
:
"border-muted-foreground text-muted-foreground bg-
secondary
"
,
:
"border-muted-foreground text-muted-foreground bg-
popover
"
,
)
}
>
<
TooltipProvider
>
...
...
@@ -92,7 +92,7 @@ const MemoCommentMessage = observer(({ inbox }: Props) => {
</
div
>
<
div
className=
{
cn
(
"border w-full p-2 px-3 rounded-lg flex flex-col justify-start items-start gap-1 border-border hover:bg-
secondary
"
,
"border w-full p-2 px-3 rounded-lg flex flex-col justify-start items-start gap-1 border-border hover:bg-
background
"
,
inbox
.
status
!==
Inbox_Status
.
UNREAD
&&
"opacity-60"
,
)
}
>
...
...
web/src/components/MemoAttachmentListView.tsx
View file @
a3de61a1
...
...
@@ -34,10 +34,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
if
(
type
===
"image/*"
)
{
return
(
<
img
className=
{
cn
(
"cursor-pointer h-full w-auto rounded-lg border border-border object-contain hover:opacity-80"
,
className
,
)
}
className=
{
cn
(
"cursor-pointer h-full w-auto rounded-lg border border-border object-contain hover:opacity-80"
,
className
)
}
src=
{
attachment
.
externalLink
?
attachmentUrl
:
attachmentUrl
+
"?thumbnail=true"
}
onClick=
{
()
=>
handleImageClick
(
attachmentUrl
)
}
decoding=
"async"
...
...
@@ -47,10 +44,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
}
else
if
(
type
===
"video/*"
)
{
return
(
<
video
className=
{
cn
(
"cursor-pointer h-full w-auto rounded-lg border border-border object-contain bg-secondary"
,
className
,
)
}
className=
{
cn
(
"cursor-pointer h-full w-auto rounded-lg border border-border object-contain bg-popover"
,
className
)
}
preload=
"metadata"
crossOrigin=
"anonymous"
src=
{
attachmentUrl
}
...
...
web/src/components/MemoContent/CodeBlock.tsx
View file @
a3de61a1
...
...
@@ -59,7 +59,7 @@ const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {
},
[
content
]);
return
(
<
div
className=
"w-full my-1 bg-background border-2 border-l-4 border-
secondary
rounded-md relative"
>
<
div
className=
"w-full my-1 bg-background border-2 border-l-4 border-
popover
rounded-md relative"
>
<
div
className=
"w-full px-2 mt-1 flex flex-row justify-between items-center text-accent-foreground/60"
>
<
span
className=
"text-sm font-mono"
>
{
formatedLanguage
}
</
span
>
<
CopyIcon
className=
"w-4 h-auto cursor-pointer hover:opacity-80"
onClick=
{
handleCopyButtonClick
}
/>
...
...
web/src/components/MemoContent/EmbeddedContent/EmbeddedMemo.tsx
View file @
a3de61a1
...
...
@@ -67,7 +67,7 @@ const EmbeddedMemo = observer(({ resourceId: uid, params: paramsStr }: Props) =>
};
return
(
<
div
className=
"relative flex flex-col justify-start items-start w-full px-3 py-2 bg-
secondary
rounded-lg border border-border hover:shadow"
>
<
div
className=
"relative flex flex-col justify-start items-start w-full px-3 py-2 bg-
popover
rounded-lg border border-border hover:shadow"
>
<
div
className=
"w-full mb-1 flex flex-row justify-between items-center text-muted-foreground"
>
<
div
className=
"text-sm leading-5 select-none"
>
<
relative
-
time
datetime=
{
memo
.
displayTime
?.
toISOString
()
}
format=
"datetime"
></
relative
-
time
>
...
...
web/src/components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
View file @
a3de61a1
...
...
@@ -26,7 +26,7 @@ const MemoDetailSidebarDrawer = ({ memo, parentPage }: Props) => {
<
GanttChartIcon
className=
"w-5 h-auto text-muted-foreground"
/>
</
Button
>
</
SheetTrigger
>
<
SheetContent
side=
"right"
className=
"w-full sm:w-80 px-4 bg-
secondary
"
>
<
SheetContent
side=
"right"
className=
"w-full sm:w-80 px-4 bg-
popover
"
>
<
MemoDetailSidebar
className=
"py-4"
memo=
{
memo
}
parentPage=
{
parentPage
}
/>
</
SheetContent
>
</
Sheet
>
...
...
web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
View file @
a3de61a1
...
...
@@ -70,14 +70,14 @@ const MarkdownMenu = (props: Props) => {
<
div
className=
"flex flex-col text-sm gap-0.5"
>
<
button
onClick=
{
handleCodeBlockClick
}
className=
"flex items-center gap-2 px-2 py-1 text-left text-foreground hover:bg-
secondary
outline-none rounded"
className=
"flex items-center gap-2 px-2 py-1 text-left text-foreground hover:bg-
background
outline-none rounded"
>
<
Code2Icon
className=
"w-4 h-auto"
/>
<
span
>
{
t
(
"markdown.code-block"
)
}
</
span
>
</
button
>
<
button
onClick=
{
handleCheckboxClick
}
className=
"flex items-center gap-2 px-2 py-1 text-left text-foreground hover:bg-
secondary
outline-none rounded"
className=
"flex items-center gap-2 px-2 py-1 text-left text-foreground hover:bg-
background
outline-none rounded"
>
<
CheckSquareIcon
className=
"w-4 h-auto"
/>
<
span
>
{
t
(
"markdown.checkbox"
)
}
</
span
>
...
...
web/src/components/MemoEditor/AttachmentListView.tsx
View file @
a3de61a1
...
...
@@ -38,7 +38,7 @@ const AttachmentListView = (props: Props) => {
return
(
<
div
key=
{
attachment
.
name
}
className=
"max-w-full w-auto flex flex-row justify-start items-center flex-nowrap gap-x-1 bg-
secondary
px-2 py-1 rounded hover:shadow-sm text-muted-foreground"
className=
"max-w-full w-auto flex flex-row justify-start items-center flex-nowrap gap-x-1 bg-
popover
px-2 py-1 rounded hover:shadow-sm text-muted-foreground"
>
<
SortableItem
id=
{
attachment
.
name
}
className=
"flex flex-row justify-start items-center gap-x-1"
>
<
AttachmentIcon
attachment=
{
attachment
}
className=
"w-4! h-4! opacity-100!"
/>
...
...
web/src/components/MemoEditor/RelationListView.tsx
View file @
a3de61a1
...
...
@@ -37,7 +37,7 @@ const RelationListView = observer((props: Props) => {
return
(
<
div
key=
{
memo
.
name
}
className=
"w-auto max-w-xs overflow-hidden flex flex-row justify-start items-center bg-
secondary
hover:opacity-80 rounded-md text-sm p-1 px-2 text-muted-foreground cursor-pointer hover:line-through"
className=
"w-auto max-w-xs overflow-hidden flex flex-row justify-start items-center bg-
popover
hover:opacity-80 rounded-md text-sm p-1 px-2 text-muted-foreground cursor-pointer hover:line-through"
onClick=
{
()
=>
handleDeleteRelation
(
memo
)
}
>
<
LinkIcon
className=
"w-4 h-auto shrink-0 opacity-80"
/>
...
...
web/src/components/MemoRelationListView.tsx
View file @
a3de61a1
...
...
@@ -30,7 +30,7 @@ const MemoRelationListView = (props: Props) => {
}
return
(
<
div
className=
"relative flex flex-col justify-start items-start w-full px-2 pt-2 pb-1.5 bg-
secondary
rounded-lg border border-border"
>
<
div
className=
"relative flex flex-col justify-start items-start w-full px-2 pt-2 pb-1.5 bg-
popover
rounded-lg border border-border"
>
<
div
className=
"w-full flex flex-row justify-start items-center mb-1 gap-3 opacity-60"
>
{
referencingMemoList
.
length
>
0
&&
(
<
button
...
...
web/src/components/Navigation.tsx
View file @
a3de61a1
...
...
@@ -78,9 +78,9 @@ const Navigation = observer((props: Props) => {
<
NavLink
className=
{
({
isActive
})
=>
cn
(
"px-2 py-2 rounded-2xl border flex flex-row items-center text-lg text-foreground hover:border-border"
,
"px-2 py-2 rounded-2xl border flex flex-row items-center text-lg text-
sidebar-
foreground hover:border-border"
,
collapsed
?
""
:
"w-full px-4"
,
isActive
?
"bg-
back
ground border-border"
:
"border-transparent"
,
isActive
?
"bg-
sidebar-primary text-sidebar-primary-fore
ground border-border"
:
"border-transparent"
,
)
}
key=
{
navLink
.
id
}
...
...
web/src/components/ReactionView.tsx
View file @
a3de61a1
...
...
@@ -73,7 +73,7 @@ const ReactionView = observer((props: Props) => {
"h-7 border px-2 py-0.5 rounded-full flex flex-row justify-center items-center gap-1"
,
"text-sm text-muted-foreground"
,
currentUser
&&
!
readonly
&&
"cursor-pointer"
,
hasReaction
&&
"bg-
secondary
border-border"
,
hasReaction
&&
"bg-
popover
border-border"
,
)
}
onClick=
{
handleReactionClick
}
>
...
...
web/src/components/SearchBar.tsx
View file @
a3de61a1
...
...
@@ -35,7 +35,7 @@ const SearchBar = observer(() => {
<
div
className=
"relative w-full h-auto flex flex-row justify-start items-center"
>
<
SearchIcon
className=
"absolute left-2 w-4 h-auto opacity-40 text-muted-foreground"
/>
<
input
className=
{
cn
(
"w-full text-muted-foreground leading-6 bg-
secondary
border border-border text-sm rounded-xl p-1 pl-8 outline-0"
)
}
className=
{
cn
(
"w-full text-muted-foreground leading-6 bg-
popover
border border-border text-sm rounded-xl p-1 pl-8 outline-0"
)
}
placeholder=
{
t
(
"memo.search-placeholder"
)
}
value=
{
queryText
}
onChange=
{
onTextChange
}
...
...
web/src/components/Settings/SSOSection.tsx
View file @
a3de61a1
...
...
@@ -63,7 +63,7 @@ const SSOSection = () => {
<
div
className=
"flex flex-row items-center"
>
<
Popover
>
<
PopoverTrigger
asChild
>
<
button
className=
"flex items-center justify-center p-1 hover:bg-
secondary
rounded"
>
<
button
className=
"flex items-center justify-center p-1 hover:bg-
popover
rounded"
>
<
MoreVerticalIcon
className=
"w-4 h-auto"
/>
</
button
>
</
PopoverTrigger
>
...
...
@@ -71,13 +71,13 @@ const SSOSection = () => {
<
div
className=
"flex flex-col gap-0.5 text-sm"
>
<
button
onClick=
{
()
=>
showCreateIdentityProviderDialog
(
identityProvider
,
fetchIdentityProviderList
)
}
className=
"flex items-center gap-2 px-2 py-1 text-left text-foreground hover:bg-
secondary
outline-none rounded"
className=
"flex items-center gap-2 px-2 py-1 text-left text-foreground hover:bg-
popover
outline-none rounded"
>
{
t
(
"common.edit"
)
}
</
button
>
<
button
onClick=
{
()
=>
handleDeleteIdentityProvider
(
identityProvider
)
}
className=
"flex items-center gap-2 px-2 py-1 text-left text-destructive hover:bg-
secondary
outline-none rounded"
className=
"flex items-center gap-2 px-2 py-1 text-left text-destructive hover:bg-
popover
outline-none rounded"
>
{
t
(
"common.delete"
)
}
</
button
>
...
...
web/src/components/Settings/SectionMenuItem.tsx
View file @
a3de61a1
...
...
@@ -13,7 +13,7 @@ const SectionMenuItem: React.FC<SettingMenuItemProps> = ({ text, icon: IconCompo
<
div
onClick=
{
onClick
}
className=
{
`w-auto max-w-full px-3 leading-8 flex flex-row justify-start items-center cursor-pointer rounded-lg select-none hover:opacity-80 ${
isSelected ? "bg-
secondary
shadow" : ""
isSelected ? "bg-
accent
shadow" : ""
}`
}
>
<
IconComponent
className=
"w-4 h-auto mr-2 opacity-80 shrink-0"
/>
...
...
web/src/layouts/RootLayout.tsx
View file @
a3de61a1
...
...
@@ -48,9 +48,7 @@ const RootLayout = observer(() => {
)
:
(
<
div
className=
"w-full min-h-full flex flex-row justify-center items-start sm:pl-16"
>
{
sm
&&
(
<
div
className=
{
cn
(
"group flex flex-col justify-start items-start fixed top-0 left-0 select-none h-full bg-secondary"
,
"w-16 px-2"
)
}
>
<
div
className=
{
cn
(
"group flex flex-col justify-start items-start fixed top-0 left-0 select-none h-full bg-sidebar"
,
"w-16 px-2"
)
}
>
<
Navigation
collapsed=
{
true
}
/>
</
div
>
)
}
...
...
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