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
46a085f8
Commit
46a085f8
authored
May 09, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add datepicker to timeline
parent
e7a788fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
TagsSection.tsx
web/src/components/HomeSidebar/TagsSection.tsx
+2
-2
Timeline.tsx
web/src/pages/Timeline.tsx
+12
-5
No files found.
web/src/components/HomeSidebar/TagsSection.tsx
View file @
46a085f8
...
@@ -44,9 +44,9 @@ const TagsSection = () => {
...
@@ -44,9 +44,9 @@ const TagsSection = () => {
return
(
return
(
<
div
className=
"flex flex-col justify-start items-start w-full mt-3 px-1 h-auto shrink-0 flex-nowrap hide-scrollbar"
>
<
div
className=
"flex flex-col justify-start items-start w-full mt-3 px-1 h-auto shrink-0 flex-nowrap hide-scrollbar"
>
<
div
className=
"flex flex-row justify-start items-center w-full gap-1 mb-1"
>
<
div
className=
"
group
flex flex-row justify-start items-center w-full gap-1 mb-1"
>
<
span
className=
"text-sm leading-6 font-mono text-gray-400 select-none"
>
{
t
(
"common.tags"
)
}
</
span
>
<
span
className=
"text-sm leading-6 font-mono text-gray-400 select-none"
>
{
t
(
"common.tags"
)
}
</
span
>
<
div
>
<
div
className=
"hidden group-hover:block"
>
<
Tooltip
title=
{
"Rebuild"
}
placement=
"top"
>
<
Tooltip
title=
{
"Rebuild"
}
placement=
"top"
>
<
Icon
.
RefreshCcw
<
Icon
.
RefreshCcw
className=
"text-gray-400 w-4 h-auto cursor-pointer opacity-60 hover:opacity-100"
className=
"text-gray-400 w-4 h-auto cursor-pointer opacity-60 hover:opacity-100"
...
...
web/src/pages/Timeline.tsx
View file @
46a085f8
...
@@ -133,12 +133,19 @@ const Timeline = () => {
...
@@ -133,12 +133,19 @@ const Timeline = () => {
<
div
className=
"w-full h-auto flex flex-col justify-start items-start"
>
<
div
className=
"w-full h-auto flex flex-col justify-start items-start"
>
<
MemoFilter
className=
"p-2 my-2 rounded-lg dark:bg-zinc-900"
/>
<
MemoFilter
className=
"p-2 my-2 rounded-lg dark:bg-zinc-900"
/>
<
div
className=
{
clsx
(
"flex flex-col justify-start items-start w-full mt-2 last:mb-4"
)
}
>
<
div
className=
"flex flex-col justify-start items-start w-full mt-2"
>
<
div
className=
{
clsx
(
"flex shrink-0 flex-row w-full pl-1 mt-2 mb-2"
)
}
>
<
div
className=
"w-full flex shrink-0 flex-row justify-between pl-1 mt-1 mb-3"
>
<
div
className=
{
clsx
(
"w-full flex flex-col"
)
}
>
<
div
className=
"w-auto flex flex-col"
>
<
span
className=
"
font-medium text-3xl sm:text-4xl"
>
<
div
className=
"relative
font-medium text-3xl sm:text-4xl"
>
{
new
Date
(
selectedDateString
).
toLocaleDateString
(
i18n
.
language
,
{
month
:
"short"
,
day
:
"numeric"
})
}
{
new
Date
(
selectedDateString
).
toLocaleDateString
(
i18n
.
language
,
{
month
:
"short"
,
day
:
"numeric"
})
}
</
span
>
<
input
className=
"inset-0 absolute z-1 opacity-0"
type=
"date"
defaultValue=
{
dayjs
(
selectedDateString
).
format
(
"YYYY-MM-DD"
)
}
onFocus=
{
(
e
)
=>
e
.
target
.
showPicker
()
}
onChange=
{
(
e
)
=>
setSelectedDateString
(
e
.
target
.
value
)
}
/>
</
div
>
<
span
className=
"opacity-60 text-lg"
>
{
dayjs
(
monthString
).
year
()
}
</
span
>
<
span
className=
"opacity-60 text-lg"
>
{
dayjs
(
monthString
).
year
()
}
</
span
>
</
div
>
</
div
>
<
ActivityCalendar
<
ActivityCalendar
...
...
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