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
ef3b7ac6
Commit
ef3b7ac6
authored
Jan 21, 2025
by
johnnyjoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update tag icon
parent
f9b1df5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
StatisticsView.tsx
web/src/components/StatisticsView.tsx
+5
-6
No files found.
web/src/components/StatisticsView.tsx
View file @
ef3b7ac6
...
@@ -2,7 +2,7 @@ import { Tooltip } from "@mui/joy";
...
@@ -2,7 +2,7 @@ import { Tooltip } from "@mui/joy";
import
clsx
from
"clsx"
;
import
clsx
from
"clsx"
;
import
dayjs
from
"dayjs"
;
import
dayjs
from
"dayjs"
;
import
{
countBy
}
from
"lodash-es"
;
import
{
countBy
}
from
"lodash-es"
;
import
{
C
alendarDaysIcon
,
CheckCircleIcon
,
ChevronLeftIcon
,
ChevronRight
Icon
,
Code2Icon
,
LinkIcon
,
ListTodoIcon
}
from
"lucide-react"
;
import
{
C
heckCircleIcon
,
ChevronDownIcon
,
ChevronUp
Icon
,
Code2Icon
,
LinkIcon
,
ListTodoIcon
}
from
"lucide-react"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
import
useAsyncEffect
from
"@/hooks/useAsyncEffect"
;
import
useAsyncEffect
from
"@/hooks/useAsyncEffect"
;
import
i18n
from
"@/i18n"
;
import
i18n
from
"@/i18n"
;
...
@@ -42,26 +42,25 @@ const StatisticsView = () => {
...
@@ -42,26 +42,25 @@ const StatisticsView = () => {
};
};
return
(
return
(
<
div
className=
"group w-full
border mt-2 py-2 px-3 rounded-lg space-y-0.5 text-gray-500 dark:text-gray-400 bg-zinc-50 dark:bg-zinc-900 dark:border-zinc-8
00"
>
<
div
className=
"group w-full
mt-2 py-2 space-y-1 text-gray-500 dark:text-gray-4
00"
>
<
div
className=
"w-full mb-1 flex flex-row justify-between items-center gap-1"
>
<
div
className=
"w-full mb-1 flex flex-row justify-between items-center gap-1"
>
<
div
className=
"relative text-sm font-medium inline-flex flex-row items-center w-auto dark:text-gray-400 truncate"
>
<
div
className=
"relative text-sm font-medium inline-flex flex-row items-center w-auto dark:text-gray-400 truncate"
>
<
CalendarDaysIcon
className=
"w-4 h-auto mr-1 opacity-60 shrink-0"
strokeWidth=
{
1.5
}
/>
<
span
className=
"truncate"
>
<
span
className=
"truncate"
>
{
dayjs
(
visibleMonthString
).
toDate
().
toLocaleString
(
i18n
.
language
,
{
year
:
"numeric"
,
month
:
"long"
})
}
{
dayjs
(
visibleMonthString
).
toDate
().
toLocaleString
(
i18n
.
language
,
{
year
:
"numeric"
,
month
:
"long"
})
}
</
span
>
</
span
>
</
div
>
</
div
>
<
div
className=
"flex justify-end items-center shrink-0"
>
<
div
className=
"flex justify-end items-center shrink-0
gap-1
"
>
<
span
<
span
className=
"cursor-pointer hover:opacity-80"
className=
"cursor-pointer hover:opacity-80"
onClick=
{
()
=>
setVisibleMonthString
(
dayjs
(
visibleMonthString
).
subtract
(
1
,
"month"
).
format
(
"YYYY-MM"
))
}
onClick=
{
()
=>
setVisibleMonthString
(
dayjs
(
visibleMonthString
).
subtract
(
1
,
"month"
).
format
(
"YYYY-MM"
))
}
>
>
<
Chevron
LeftIcon
className=
"w-4 h-auto shrink-0 opacity-6
0"
/>
<
Chevron
UpIcon
className=
"w-5 h-auto shrink-0 opacity-4
0"
/>
</
span
>
</
span
>
<
span
<
span
className=
"cursor-pointer hover:opacity-80"
className=
"cursor-pointer hover:opacity-80"
onClick=
{
()
=>
setVisibleMonthString
(
dayjs
(
visibleMonthString
).
add
(
1
,
"month"
).
format
(
"YYYY-MM"
))
}
onClick=
{
()
=>
setVisibleMonthString
(
dayjs
(
visibleMonthString
).
add
(
1
,
"month"
).
format
(
"YYYY-MM"
))
}
>
>
<
Chevron
RightIcon
className=
"w-4 h-auto shrink-0 opacity-6
0"
/>
<
Chevron
DownIcon
className=
"w-5 h-auto shrink-0 opacity-4
0"
/>
</
span
>
</
span
>
</
div
>
</
div
>
</
div
>
</
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