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
2a8c4cb7
Commit
2a8c4cb7
authored
Feb 05, 2025
by
johnnyjoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update styles
parent
07336f03
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
11 deletions
+31
-11
ActivityCalendar.tsx
web/src/components/ActivityCalendar.tsx
+16
-5
ShortcutsSection.tsx
web/src/components/HomeSidebar/ShortcutsSection.tsx
+1
-1
MemoActionMenu.tsx
web/src/components/MemoActionMenu.tsx
+6
-4
MemberSection.tsx
web/src/components/Settings/MemberSection.tsx
+8
-1
No files found.
web/src/components/ActivityCalendar.tsx
View file @
2a8c4cb7
...
...
@@ -73,6 +73,18 @@ const ActivityCalendar = (props: Props) => {
))
}
{
days
.
map
((
item
,
index
)
=>
{
const
date
=
dayjs
(
`${year}-${month + 1}-${item.day}`
).
format
(
"YYYY-MM-DD"
);
if
(
!
item
.
isCurrentMonth
)
{
return
(
<
div
key=
{
`${date}-${index}`
}
className=
{
cn
(
"w-6 h-6 text-xs flex justify-center items-center cursor-default"
,
"opacity-60 text-gray-400"
)
}
>
{
item
.
day
}
</
div
>
);
}
const
count
=
item
.
isCurrentMonth
?
data
[
date
]
||
0
:
0
;
const
isToday
=
dayjs
().
format
(
"YYYY-MM-DD"
)
===
date
;
const
tooltipText
=
...
...
@@ -89,13 +101,12 @@ const ActivityCalendar = (props: Props) => {
<
Tooltip
className=
"shrink-0"
key=
{
`${date}-${index}`
}
title=
{
tooltipText
}
placement=
"top"
arrow
>
<
div
className=
{
cn
(
"w-6 h-6 text-xs
rounded-lg flex justify-center items-center bord
er cursor-default"
,
"text-gray-400"
,
item
.
isCurrentMonth
?
getCellAdditionalStyles
(
count
,
maxCount
)
:
"opacity-60"
,
"w-6 h-6 text-xs
flex justify-center items-cent
er cursor-default"
,
"
rounded-lg border-2
text-gray-400"
,
item
.
isCurrentMonth
&&
getCellAdditionalStyles
(
count
,
maxCount
)
,
item
.
isCurrentMonth
&&
isToday
&&
"border-zinc-400"
,
item
.
isCurrentMonth
&&
isSelected
&&
"font-
bold
border-zinc-400"
,
item
.
isCurrentMonth
&&
isSelected
&&
"font-
medium
border-zinc-400"
,
item
.
isCurrentMonth
&&
!
isToday
&&
!
isSelected
&&
"border-transparent"
,
!
item
.
isCurrentMonth
&&
"border-transparent"
,
)
}
onClick=
{
()
=>
count
&&
onClick
&&
onClick
(
date
)
}
>
...
...
web/src/components/HomeSidebar/ShortcutsSection.tsx
View file @
2a8c4cb7
...
...
@@ -45,7 +45,7 @@ const ShortcutsSection = () => {
className=
"shrink-0 w-full text-sm rounded-md leading-6 flex flex-row justify-between items-center select-none gap-2 text-gray-600 dark:text-gray-400 dark:border-zinc-800"
>
<
span
className=
{
cn
(
"truncate cursor-pointer dark:opacity-80"
,
selected
&&
"font-medium underline"
)
}
className=
{
cn
(
"truncate cursor-pointer dark:opacity-80"
,
selected
&&
"
text-primary
font-medium underline"
)
}
onClick=
{
()
=>
(
selected
?
memoFilterStore
.
setShortcut
(
undefined
)
:
memoFilterStore
.
setShortcut
(
shortcut
.
id
))
}
>
{
shortcut
.
title
}
...
...
web/src/components/MemoActionMenu.tsx
View file @
2a8c4cb7
...
...
@@ -183,10 +183,12 @@ const MemoActionMenu = (props: Props) => {
</
MenuItem
>
</>
)
}
<
MenuItem
onClick=
{
handleCopyLink
}
>
<
CopyIcon
className=
"w-4 h-auto"
/>
{
t
(
"memo.copy-link"
)
}
</
MenuItem
>
{
!
isArchived
&&
(
<
MenuItem
onClick=
{
handleCopyLink
}
>
<
CopyIcon
className=
"w-4 h-auto"
/>
{
t
(
"memo.copy-link"
)
}
</
MenuItem
>
)
}
{
!
readonly
&&
(
<>
{
!
isArchived
&&
hasCompletedTaskList
&&
(
...
...
web/src/components/Settings/MemberSection.tsx
View file @
2a8c4cb7
...
...
@@ -140,13 +140,20 @@ const MemberSection = () => {
<
div
className=
"w-auto flex flex-col justify-start items-start gap-2 border rounded-md py-2 px-3 dark:border-zinc-700"
>
<
div
className=
"flex flex-col justify-start items-start gap-1"
>
<
span
>
{
t
(
"common.username"
)
}
</
span
>
<
Input
type=
"text"
placeholder=
{
t
(
"common.username"
)
}
value=
{
state
.
creatingUser
.
username
}
onChange=
{
handleUsernameInputChange
}
/>
<
Input
type=
"text"
placeholder=
{
t
(
"common.username"
)
}
autoComplete=
"off"
value=
{
state
.
creatingUser
.
username
}
onChange=
{
handleUsernameInputChange
}
/>
</
div
>
<
div
className=
"flex flex-col justify-start items-start gap-1"
>
<
span
>
{
t
(
"common.password"
)
}
</
span
>
<
Input
type=
"password"
placeholder=
{
t
(
"common.password"
)
}
autoComplete=
"off"
value=
{
state
.
creatingUser
.
password
}
onChange=
{
handlePasswordInputChange
}
/>
...
...
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