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
67e474d4
Commit
67e474d4
authored
Oct 30, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: linter warning
parent
c1242532
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
28 deletions
+16
-28
package.json
web/package.json
+1
-1
pnpm-lock.yaml
web/pnpm-lock.yaml
+5
-5
LocationSelector.tsx
...c/components/MemoEditor/ActionButton/LocationSelector.tsx
+2
-2
MarkdownMenu.tsx
web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
+4
-10
TagSelector.tsx
web/src/components/MemoEditor/ActionButton/TagSelector.tsx
+4
-10
No files found.
web/package.json
View file @
67e474d4
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"@mui/joy"
:
"5.0.0-beta.48"
,
"@mui/joy"
:
"5.0.0-beta.48"
,
"@radix-ui/react-popover"
:
"^1.1.2"
,
"@radix-ui/react-popover"
:
"^1.1.2"
,
"@reduxjs/toolkit"
:
"^2.3.0"
,
"@reduxjs/toolkit"
:
"^2.3.0"
,
"@usememos/mui"
:
"0.0.1-alpha.2
3
"
,
"@usememos/mui"
:
"0.0.1-alpha.2
4
"
,
"class-variance-authority"
:
"^0.7.0"
,
"class-variance-authority"
:
"^0.7.0"
,
"clsx"
:
"^2.1.1"
,
"clsx"
:
"^2.1.1"
,
"copy-to-clipboard"
:
"^3.3.3"
,
"copy-to-clipboard"
:
"^3.3.3"
,
...
...
web/pnpm-lock.yaml
View file @
67e474d4
...
@@ -39,8 +39,8 @@ importers:
...
@@ -39,8 +39,8 @@ importers:
specifier
:
^2.3.0
specifier
:
^2.3.0
version
:
2.3.0(react-redux@9.1.2(@types/react@18.3.12)(react@18.3.1)(redux@5.0.1))(react@18.3.1)
version
:
2.3.0(react-redux@9.1.2(@types/react@18.3.12)(react@18.3.1)(redux@5.0.1))(react@18.3.1)
'
@usememos/mui'
:
'
@usememos/mui'
:
specifier
:
0.0.1-alpha.2
3
specifier
:
0.0.1-alpha.2
4
version
:
0.0.1-alpha.2
3
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)
version
:
0.0.1-alpha.2
4
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)
class-variance-authority
:
class-variance-authority
:
specifier
:
^0.7.0
specifier
:
^0.7.0
version
:
0.7.0
version
:
0.7.0
...
@@ -1409,8 +1409,8 @@ packages:
...
@@ -1409,8 +1409,8 @@ packages:
'
@ungap/structured-clone@1.2.0'
:
'
@ungap/structured-clone@1.2.0'
:
resolution
:
{
integrity
:
sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
}
resolution
:
{
integrity
:
sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
}
'
@usememos/mui@0.0.1-alpha.2
3
'
:
'
@usememos/mui@0.0.1-alpha.2
4
'
:
resolution
:
{
integrity
:
sha512-
zrGFdl985JLdHBQED+fOFI33XMzOlV5HJghb2L3mEtth95Flatz1xj7XXLOZMS/abLpmm8+KwIXLpuWa1Tw8pw
==
}
resolution
:
{
integrity
:
sha512-
4UAlapAs7UfgG3OkdvolgNBo1BCcaXhs3TeWw1UvEA7pwj6txzbIjqN8c6IHl+gYeMzoXBO2Ou7gnYD9OOtj5Q
==
}
peerDependencies
:
peerDependencies
:
lucide-react
:
^0.453.0
lucide-react
:
^0.453.0
postcss
:
^8.4.47
postcss
:
^8.4.47
...
@@ -4642,7 +4642,7 @@ snapshots:
...
@@ -4642,7 +4642,7 @@ snapshots:
'
@ungap/structured-clone@1.2.0'
:
{}
'
@ungap/structured-clone@1.2.0'
:
{}
'
@usememos/mui@0.0.1-alpha.2
3
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)'
:
'
@usememos/mui@0.0.1-alpha.2
4
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)'
:
dependencies
:
dependencies
:
lucide-react
:
0.453.0(react@18.3.1)
lucide-react
:
0.453.0(react@18.3.1)
postcss
:
8.4.47
postcss
:
8.4.47
...
...
web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
View file @
67e474d4
...
@@ -93,8 +93,8 @@ const LocationSelector = (props: Props) => {
...
@@ -93,8 +93,8 @@ const LocationSelector = (props: Props) => {
return
(
return
(
<
Popover
open=
{
popoverOpen
}
onOpenChange=
{
setPopoverOpen
}
>
<
Popover
open=
{
popoverOpen
}
onOpenChange=
{
setPopoverOpen
}
>
<
PopoverTrigger
>
<
PopoverTrigger
asChild
>
<
Button
className=
"flex items-center justify-center"
size=
"sm"
variant=
"plain"
asChild
>
<
Button
className=
"flex items-center justify-center"
size=
"sm"
variant=
"plain"
>
<
MapPinIcon
className=
"w-5 h-5 mx-auto shrink-0"
/>
<
MapPinIcon
className=
"w-5 h-5 mx-auto shrink-0"
/>
{
props
.
location
&&
(
{
props
.
location
&&
(
<>
<>
...
...
web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
View file @
67e474d4
...
@@ -59,16 +59,10 @@ const MarkdownMenu = (props: Props) => {
...
@@ -59,16 +59,10 @@ const MarkdownMenu = (props: Props) => {
return
(
return
(
<
Dropdown
>
<
Dropdown
>
<
MenuButton
<
MenuButton
slots=
{
{
root
:
"div"
}
}
>
slots=
{
{
root
:
Button
}
}
<
Button
size=
"sm"
variant=
"plain"
>
slotProps=
{
{
root
:
{
size
:
"sm"
,
variant
:
"plain"
,
},
}
}
>
<
SquareSlashIcon
className=
"w-5 h-5 mx-auto"
/>
<
SquareSlashIcon
className=
"w-5 h-5 mx-auto"
/>
</
Button
>
</
MenuButton
>
</
MenuButton
>
<
Menu
className=
"text-sm"
size=
"sm"
placement=
"bottom-start"
>
<
Menu
className=
"text-sm"
size=
"sm"
placement=
"bottom-start"
>
<
MenuItem
onClick=
{
handleCodeBlockClick
}
>
<
MenuItem
onClick=
{
handleCodeBlockClick
}
>
...
...
web/src/components/MemoEditor/ActionButton/TagSelector.tsx
View file @
67e474d4
...
@@ -41,16 +41,10 @@ const TagSelector = (props: Props) => {
...
@@ -41,16 +41,10 @@ const TagSelector = (props: Props) => {
return
(
return
(
<
Dropdown
open=
{
open
}
onOpenChange=
{
(
_
,
isOpen
)
=>
setOpen
(
isOpen
)
}
>
<
Dropdown
open=
{
open
}
onOpenChange=
{
(
_
,
isOpen
)
=>
setOpen
(
isOpen
)
}
>
<
MenuButton
<
MenuButton
slots=
{
{
root
:
"div"
}
}
>
slots=
{
{
root
:
Button
}
}
<
Button
size=
"sm"
variant=
"plain"
>
slotProps=
{
{
root
:
{
size
:
"sm"
,
variant
:
"plain"
,
},
}
}
>
<
HashIcon
className=
"w-5 h-5 mx-auto"
/>
<
HashIcon
className=
"w-5 h-5 mx-auto"
/>
</
Button
>
</
MenuButton
>
</
MenuButton
>
<
Menu
className=
"relative text-sm"
component=
"div"
size=
"sm"
placement=
"bottom-start"
>
<
Menu
className=
"relative text-sm"
component=
"div"
size=
"sm"
placement=
"bottom-start"
>
<
div
ref=
{
containerRef
}
>
<
div
ref=
{
containerRef
}
>
...
...
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