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
8db90a04
Commit
8db90a04
authored
Jan 27, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove unused dependencies
parent
932f636d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
53 deletions
+52
-53
package.json
web/package.json
+4
-5
pnpm-lock.yaml
web/pnpm-lock.yaml
+37
-38
TagSelector.tsx
web/src/components/MemoEditor/ActionButton/TagSelector.tsx
+11
-10
No files found.
web/package.json
View file @
8db90a04
...
@@ -12,8 +12,7 @@
...
@@ -12,8 +12,7 @@
"@emotion/react"
:
"^11.11.3"
,
"@emotion/react"
:
"^11.11.3"
,
"@emotion/styled"
:
"^11.11.0"
,
"@emotion/styled"
:
"^11.11.0"
,
"@matejmazur/react-katex"
:
"^3.1.3"
,
"@matejmazur/react-katex"
:
"^3.1.3"
,
"@mui/base"
:
"5.0.0-beta.32"
,
"@mui/joy"
:
"5.0.0-beta.24"
,
"@mui/joy"
:
"5.0.0-beta.23"
,
"@reduxjs/toolkit"
:
"^1.9.7"
,
"@reduxjs/toolkit"
:
"^1.9.7"
,
"axios"
:
"^1.6.7"
,
"axios"
:
"^1.6.7"
,
"classnames"
:
"^2.5.1"
,
"classnames"
:
"^2.5.1"
,
...
@@ -23,10 +22,7 @@
...
@@ -23,10 +22,7 @@
"i18next-browser-languagedetector"
:
"^7.2.0"
,
"i18next-browser-languagedetector"
:
"^7.2.0"
,
"katex"
:
"^0.16.9"
,
"katex"
:
"^0.16.9"
,
"lodash-es"
:
"^4.17.21"
,
"lodash-es"
:
"^4.17.21"
,
"long"
:
"^5.2.3"
,
"lucide-react"
:
"^0.309.0"
,
"lucide-react"
:
"^0.309.0"
,
"nice-grpc-web"
:
"^3.3.2"
,
"protobufjs"
:
"^7.2.6"
,
"react"
:
"^18.2.0"
,
"react"
:
"^18.2.0"
,
"react-dom"
:
"^18.2.0"
,
"react-dom"
:
"^18.2.0"
,
"react-hot-toast"
:
"^2.4.1"
,
"react-hot-toast"
:
"^2.4.1"
,
...
@@ -59,8 +55,11 @@
...
@@ -59,8 +55,11 @@
"eslint-plugin-prettier"
:
"^5.1.3"
,
"eslint-plugin-prettier"
:
"^5.1.3"
,
"eslint-plugin-react"
:
"^7.33.2"
,
"eslint-plugin-react"
:
"^7.33.2"
,
"less"
:
"^4.2.0"
,
"less"
:
"^4.2.0"
,
"long"
:
"^5.2.3"
,
"nice-grpc-web"
:
"^3.3.2"
,
"postcss"
:
"^8.4.33"
,
"postcss"
:
"^8.4.33"
,
"prettier"
:
"^3.2.4"
,
"prettier"
:
"^3.2.4"
,
"protobufjs"
:
"^7.2.6"
,
"typescript"
:
"^5.3.3"
,
"typescript"
:
"^5.3.3"
,
"vite"
:
"^5.0.12"
"vite"
:
"^5.0.12"
},
},
...
...
web/pnpm-lock.yaml
View file @
8db90a04
...
@@ -17,12 +17,9 @@ dependencies:
...
@@ -17,12 +17,9 @@ dependencies:
'
@matejmazur/react-katex'
:
'
@matejmazur/react-katex'
:
specifier
:
^3.1.3
specifier
:
^3.1.3
version
:
3.1.3(katex@0.16.9)(react@18.2.0)
version
:
3.1.3(katex@0.16.9)(react@18.2.0)
'
@mui/base'
:
specifier
:
5.0.0-beta.32
version
:
5.0.0-beta.32(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
'
@mui/joy'
:
'
@mui/joy'
:
specifier
:
5.0.0-beta.2
3
specifier
:
5.0.0-beta.2
4
version
:
5.0.0-beta.2
3
(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
version
:
5.0.0-beta.2
4
(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
'
@reduxjs/toolkit'
:
'
@reduxjs/toolkit'
:
specifier
:
^1.9.7
specifier
:
^1.9.7
version
:
1.9.7(react-redux@8.1.3)(react@18.2.0)
version
:
1.9.7(react-redux@8.1.3)(react@18.2.0)
...
@@ -50,18 +47,9 @@ dependencies:
...
@@ -50,18 +47,9 @@ dependencies:
lodash-es
:
lodash-es
:
specifier
:
^4.17.21
specifier
:
^4.17.21
version
:
4.17.21
version
:
4.17.21
long
:
specifier
:
^5.2.3
version
:
5.2.3
lucide-react
:
lucide-react
:
specifier
:
^0.309.0
specifier
:
^0.309.0
version
:
0.309.0(react@18.2.0)
version
:
0.309.0(react@18.2.0)
nice-grpc-web
:
specifier
:
^3.3.2
version
:
3.3.2(ws@8.16.0)
protobufjs
:
specifier
:
^7.2.6
version
:
7.2.6
react
:
react
:
specifier
:
^18.2.0
specifier
:
^18.2.0
version
:
18.2.0
version
:
18.2.0
...
@@ -154,12 +142,21 @@ devDependencies:
...
@@ -154,12 +142,21 @@ devDependencies:
less
:
less
:
specifier
:
^4.2.0
specifier
:
^4.2.0
version
:
4.2.0
version
:
4.2.0
long
:
specifier
:
^5.2.3
version
:
5.2.3
nice-grpc-web
:
specifier
:
^3.3.2
version
:
3.3.2(ws@8.16.0)
postcss
:
postcss
:
specifier
:
^8.4.33
specifier
:
^8.4.33
version
:
8.4.33
version
:
8.4.33
prettier
:
prettier
:
specifier
:
^3.2.4
specifier
:
^3.2.4
version
:
3.2.4
version
:
3.2.4
protobufjs
:
specifier
:
^7.2.6
version
:
7.2.6
typescript
:
typescript
:
specifier
:
^5.3.3
specifier
:
^5.3.3
version
:
5.3.3
version
:
5.3.3
...
@@ -963,8 +960,8 @@ packages:
...
@@ -963,8 +960,8 @@ packages:
react
:
18.2.0
react
:
18.2.0
dev
:
false
dev
:
false
/@mui/base@5.0.0-beta.3
2
(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
:
/@mui/base@5.0.0-beta.3
3
(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
:
resolution
:
{
integrity
:
sha512-
4VptvYeLUYMJhZapWBkD50GmKfOc0XT381KJcTK3ncZYIl8MdBhpR6l8jOyeP5cixUPBJhstjrnmQEAHjCLri
w==
}
resolution
:
{
integrity
:
sha512-
WcSpoJUw/UYHXpvgtl4HyMar2Ar97illUpqiS/X1gtSBp6sdDW6kB2BJ9OlVQ+Kk/RL2GDp/WHA9sbjAYV35o
w==
}
engines
:
{
node
:
'
>=12.0.0'
}
engines
:
{
node
:
'
>=12.0.0'
}
peerDependencies
:
peerDependencies
:
'
@types/react'
:
^17.0.0 || ^18.0.0
'
@types/react'
:
^17.0.0 || ^18.0.0
...
@@ -990,8 +987,8 @@ packages:
...
@@ -990,8 +987,8 @@ packages:
resolution
:
{
integrity
:
sha512-0aoWS4qvk1uzm9JBs83oQmIMIQeTBUeqqu8u+3uo2tMznrB5fIKqQVCbCgq+4Tm4jG+5F7dIvnjvQ2aV7UKtdw==
}
resolution
:
{
integrity
:
sha512-0aoWS4qvk1uzm9JBs83oQmIMIQeTBUeqqu8u+3uo2tMznrB5fIKqQVCbCgq+4Tm4jG+5F7dIvnjvQ2aV7UKtdw==
}
dev
:
false
dev
:
false
/@mui/joy@5.0.0-beta.2
3
(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
:
/@mui/joy@5.0.0-beta.2
4
(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
:
resolution
:
{
integrity
:
sha512-
Yik+eMYGuZ4ccYYREsaz3TT/h932Hp+tKkQQ1JuRbPtE7EA1zW4ZaO9MuIuMt1/CnmVsPiXnE52A7ElBHCz9uQ
==
}
resolution
:
{
integrity
:
sha512-
cKlIW56GsKKo9cVm+6pzNS+s4ch3r/SX/Zq5DA10I/TSuW9O5ptIOqeSs+WYpkyAzIoPkCpEXCPR/vGHpOt6MA
==
}
engines
:
{
node
:
'
>=12.0.0'
}
engines
:
{
node
:
'
>=12.0.0'
}
peerDependencies
:
peerDependencies
:
'
@emotion/react'
:
^11.5.0
'
@emotion/react'
:
^11.5.0
...
@@ -1010,7 +1007,7 @@ packages:
...
@@ -1010,7 +1007,7 @@ packages:
'
@babel/runtime'
:
7.23.9
'
@babel/runtime'
:
7.23.9
'
@emotion/react'
:
11.11.3(@types/react@18.2.48)(react@18.2.0)
'
@emotion/react'
:
11.11.3(@types/react@18.2.48)(react@18.2.0)
'
@emotion/styled'
:
11.11.0(@emotion/react@11.11.3)(@types/react@18.2.48)(react@18.2.0)
'
@emotion/styled'
:
11.11.0(@emotion/react@11.11.3)(@types/react@18.2.48)(react@18.2.0)
'
@mui/base'
:
5.0.0-beta.3
2
(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
'
@mui/base'
:
5.0.0-beta.3
3
(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0)
'
@mui/core-downloads-tracker'
:
5.15.6
'
@mui/core-downloads-tracker'
:
5.15.6
'
@mui/system'
:
5.15.6(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.48)(react@18.2.0)
'
@mui/system'
:
5.15.6(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.48)(react@18.2.0)
'
@mui/types'
:
7.2.13(@types/react@18.2.48)
'
@mui/types'
:
7.2.13(@types/react@18.2.48)
...
@@ -1156,46 +1153,46 @@ packages:
...
@@ -1156,46 +1153,46 @@ packages:
/@protobufjs/aspromise@1.1.2
:
/@protobufjs/aspromise@1.1.2
:
resolution
:
{
integrity
:
sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==
}
resolution
:
{
integrity
:
sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/base64@1.1.2
:
/@protobufjs/base64@1.1.2
:
resolution
:
{
integrity
:
sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==
}
resolution
:
{
integrity
:
sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/codegen@2.0.4
:
/@protobufjs/codegen@2.0.4
:
resolution
:
{
integrity
:
sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==
}
resolution
:
{
integrity
:
sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/eventemitter@1.1.0
:
/@protobufjs/eventemitter@1.1.0
:
resolution
:
{
integrity
:
sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==
}
resolution
:
{
integrity
:
sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/fetch@1.1.0
:
/@protobufjs/fetch@1.1.0
:
resolution
:
{
integrity
:
sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==
}
resolution
:
{
integrity
:
sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==
}
dependencies
:
dependencies
:
'
@protobufjs/aspromise'
:
1.1.2
'
@protobufjs/aspromise'
:
1.1.2
'
@protobufjs/inquire'
:
1.1.0
'
@protobufjs/inquire'
:
1.1.0
dev
:
fals
e
dev
:
tru
e
/@protobufjs/float@1.0.2
:
/@protobufjs/float@1.0.2
:
resolution
:
{
integrity
:
sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==
}
resolution
:
{
integrity
:
sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/inquire@1.1.0
:
/@protobufjs/inquire@1.1.0
:
resolution
:
{
integrity
:
sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==
}
resolution
:
{
integrity
:
sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/path@1.1.2
:
/@protobufjs/path@1.1.2
:
resolution
:
{
integrity
:
sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==
}
resolution
:
{
integrity
:
sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/pool@1.1.0
:
/@protobufjs/pool@1.1.0
:
resolution
:
{
integrity
:
sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==
}
resolution
:
{
integrity
:
sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==
}
dev
:
fals
e
dev
:
tru
e
/@protobufjs/utf8@1.1.0
:
/@protobufjs/utf8@1.1.0
:
resolution
:
{
integrity
:
sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==
}
resolution
:
{
integrity
:
sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==
}
dev
:
fals
e
dev
:
tru
e
/@reduxjs/toolkit@1.9.7(react-redux@8.1.3)(react@18.2.0)
:
/@reduxjs/toolkit@1.9.7(react-redux@8.1.3)(react@18.2.0)
:
resolution
:
{
integrity
:
sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==
}
resolution
:
{
integrity
:
sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==
}
...
@@ -1411,6 +1408,7 @@ packages:
...
@@ -1411,6 +1408,7 @@ packages:
resolution
:
{
integrity
:
sha512-GPmeN1C3XAyV5uybAf4cMLWT9fDWcmQhZVtMFu7OR32WjrqGG+Wnk2V1d0bmtUyE/Zy1QJ9BxyiTih9z8Oks8A==
}
resolution
:
{
integrity
:
sha512-GPmeN1C3XAyV5uybAf4cMLWT9fDWcmQhZVtMFu7OR32WjrqGG+Wnk2V1d0bmtUyE/Zy1QJ9BxyiTih9z8Oks8A==
}
dependencies
:
dependencies
:
undici-types
:
5.26.5
undici-types
:
5.26.5
dev
:
true
/@types/parse-json@4.0.2
:
/@types/parse-json@4.0.2
:
resolution
:
{
integrity
:
sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==
}
resolution
:
{
integrity
:
sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==
}
...
@@ -1612,7 +1610,7 @@ packages:
...
@@ -1612,7 +1610,7 @@ packages:
/abort-controller-x@0.4.3
:
/abort-controller-x@0.4.3
:
resolution
:
{
integrity
:
sha512-VtUwTNU8fpMwvWGn4xE93ywbogTYsuT+AUxAXOeelbXuQVIwNmC5YLeho9sH4vZ4ITW8414TTAOG1nW6uIVHCA==
}
resolution
:
{
integrity
:
sha512-VtUwTNU8fpMwvWGn4xE93ywbogTYsuT+AUxAXOeelbXuQVIwNmC5YLeho9sH4vZ4ITW8414TTAOG1nW6uIVHCA==
}
dev
:
fals
e
dev
:
tru
e
/acorn-jsx@5.3.2(acorn@8.11.3)
:
/acorn-jsx@5.3.2(acorn@8.11.3)
:
resolution
:
{
integrity
:
sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
}
resolution
:
{
integrity
:
sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
}
...
@@ -2962,7 +2960,7 @@ packages:
...
@@ -2962,7 +2960,7 @@ packages:
ws
:
'
*'
ws
:
'
*'
dependencies
:
dependencies
:
ws
:
8.16.0
ws
:
8.16.0
dev
:
fals
e
dev
:
tru
e
/iterator.prototype@1.1.2
:
/iterator.prototype@1.1.2
:
resolution
:
{
integrity
:
sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==
}
resolution
:
{
integrity
:
sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==
}
...
@@ -2994,7 +2992,7 @@ packages:
...
@@ -2994,7 +2992,7 @@ packages:
/js-base64@3.7.6
:
/js-base64@3.7.6
:
resolution
:
{
integrity
:
sha512-NPrWuHFxFUknr1KqJRDgUQPexQF0uIJWjeT+2KjEePhitQxQEx5EJBG1lVn5/hc8aLycTpXrDOgPQ6Zq+EDiTA==
}
resolution
:
{
integrity
:
sha512-NPrWuHFxFUknr1KqJRDgUQPexQF0uIJWjeT+2KjEePhitQxQEx5EJBG1lVn5/hc8aLycTpXrDOgPQ6Zq+EDiTA==
}
dev
:
fals
e
dev
:
tru
e
/js-cookie@2.2.1
:
/js-cookie@2.2.1
:
resolution
:
{
integrity
:
sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==
}
resolution
:
{
integrity
:
sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==
}
...
@@ -3122,7 +3120,7 @@ packages:
...
@@ -3122,7 +3120,7 @@ packages:
/long@5.2.3
:
/long@5.2.3
:
resolution
:
{
integrity
:
sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==
}
resolution
:
{
integrity
:
sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==
}
dev
:
fals
e
dev
:
tru
e
/loose-envify@1.4.0
:
/loose-envify@1.4.0
:
resolution
:
{
integrity
:
sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
}
resolution
:
{
integrity
:
sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
}
...
@@ -3272,7 +3270,7 @@ packages:
...
@@ -3272,7 +3270,7 @@ packages:
resolution
:
{
integrity
:
sha512-7RNWbls5kAL1QVUOXvBsv1uO0wPQK3lHv+cY1gwkTzirnG1Nop4cBJZubpgziNbaVc/bl9QJcyvsf/NQxa3rjQ==
}
resolution
:
{
integrity
:
sha512-7RNWbls5kAL1QVUOXvBsv1uO0wPQK3lHv+cY1gwkTzirnG1Nop4cBJZubpgziNbaVc/bl9QJcyvsf/NQxa3rjQ==
}
dependencies
:
dependencies
:
ts-error
:
1.0.6
ts-error
:
1.0.6
dev
:
fals
e
dev
:
tru
e
/nice-grpc-web@3.3.2(ws@8.16.0)
:
/nice-grpc-web@3.3.2(ws@8.16.0)
:
resolution
:
{
integrity
:
sha512-qetU+H6y6jVvI5NZdtTls9UdqdCNwhr4UxqL5SfH6v8ISxucxDVPRYxnZaoZyWjMRvRgAKiQDIMu0bB0oedD0A==
}
resolution
:
{
integrity
:
sha512-qetU+H6y6jVvI5NZdtTls9UdqdCNwhr4UxqL5SfH6v8ISxucxDVPRYxnZaoZyWjMRvRgAKiQDIMu0bB0oedD0A==
}
...
@@ -3283,7 +3281,7 @@ packages:
...
@@ -3283,7 +3281,7 @@ packages:
nice-grpc-common
:
2.0.2
nice-grpc-common
:
2.0.2
transitivePeerDependencies
:
transitivePeerDependencies
:
-
ws
-
ws
dev
:
fals
e
dev
:
tru
e
/node-releases@2.0.14
:
/node-releases@2.0.14
:
resolution
:
{
integrity
:
sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==
}
resolution
:
{
integrity
:
sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==
}
...
@@ -3577,7 +3575,7 @@ packages:
...
@@ -3577,7 +3575,7 @@ packages:
'
@protobufjs/utf8'
:
1.1.0
'
@protobufjs/utf8'
:
1.1.0
'
@types/node'
:
20.11.7
'
@types/node'
:
20.11.7
long
:
5.2.3
long
:
5.2.3
dev
:
fals
e
dev
:
tru
e
/proxy-from-env@1.1.0
:
/proxy-from-env@1.1.0
:
resolution
:
{
integrity
:
sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
}
resolution
:
{
integrity
:
sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
}
...
@@ -4243,7 +4241,7 @@ packages:
...
@@ -4243,7 +4241,7 @@ packages:
/ts-error@1.0.6
:
/ts-error@1.0.6
:
resolution
:
{
integrity
:
sha512-tLJxacIQUM82IR7JO1UUkKlYuUTmoY9HBJAmNWFzheSlDS5SPMcNIepejHJa4BpPQLAcbRhRf3GDJzyj6rbKvA==
}
resolution
:
{
integrity
:
sha512-tLJxacIQUM82IR7JO1UUkKlYuUTmoY9HBJAmNWFzheSlDS5SPMcNIepejHJa4BpPQLAcbRhRf3GDJzyj6rbKvA==
}
dev
:
fals
e
dev
:
tru
e
/ts-interface-checker@0.1.13
:
/ts-interface-checker@0.1.13
:
resolution
:
{
integrity
:
sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==
}
resolution
:
{
integrity
:
sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==
}
...
@@ -4319,6 +4317,7 @@ packages:
...
@@ -4319,6 +4317,7 @@ packages:
/undici-types@5.26.5
:
/undici-types@5.26.5
:
resolution
:
{
integrity
:
sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
}
resolution
:
{
integrity
:
sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
}
dev
:
true
/update-browserslist-db@1.0.13(browserslist@4.22.3)
:
/update-browserslist-db@1.0.13(browserslist@4.22.3)
:
resolution
:
{
integrity
:
sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==
}
resolution
:
{
integrity
:
sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==
}
...
@@ -4484,7 +4483,7 @@ packages:
...
@@ -4484,7 +4483,7 @@ packages:
optional
:
true
optional
:
true
utf-8-validate
:
utf-8-validate
:
optional
:
true
optional
:
true
dev
:
fals
e
dev
:
tru
e
/yallist@3.1.1
:
/yallist@3.1.1
:
resolution
:
{
integrity
:
sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
}
resolution
:
{
integrity
:
sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
}
...
...
web/src/components/MemoEditor/ActionButton/TagSelector.tsx
View file @
8db90a04
import
{
ClickAwayListener
}
from
"@mui/base/ClickAwayListener"
;
import
{
Dropdown
,
IconButton
,
Menu
,
MenuButton
}
from
"@mui/joy"
;
import
{
Dropdown
,
IconButton
,
Menu
,
MenuButton
}
from
"@mui/joy"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useRef
,
useState
}
from
"react"
;
import
useClickAway
from
"react-use/lib/useClickAway"
;
import
Icon
from
"@/components/Icon"
;
import
Icon
from
"@/components/Icon"
;
import
OverflowTip
from
"@/components/kit/OverflowTip"
;
import
OverflowTip
from
"@/components/kit/OverflowTip"
;
import
{
useTagStore
}
from
"@/store/module"
;
import
{
useTagStore
}
from
"@/store/module"
;
...
@@ -14,6 +14,7 @@ const TagSelector = (props: Props) => {
...
@@ -14,6 +14,7 @@ const TagSelector = (props: Props) => {
const
{
editorRef
}
=
props
;
const
{
editorRef
}
=
props
;
const
tagStore
=
useTagStore
();
const
tagStore
=
useTagStore
();
const
[
open
,
setOpen
]
=
useState
(
false
);
const
[
open
,
setOpen
]
=
useState
(
false
);
const
containerRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
tags
=
tagStore
.
state
.
tags
;
const
tags
=
tagStore
.
state
.
tags
;
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -26,6 +27,10 @@ const TagSelector = (props: Props) => {
...
@@ -26,6 +27,10 @@ const TagSelector = (props: Props) => {
})();
})();
},
[]);
},
[]);
useClickAway
(
containerRef
,
()
=>
{
setOpen
(
false
);
});
const
handleTagClick
=
(
tag
:
string
)
=>
{
const
handleTagClick
=
(
tag
:
string
)
=>
{
editorRef
.
current
?.
insertText
(
`#
${
tag
}
`
);
editorRef
.
current
?.
insertText
(
`#
${
tag
}
`
);
};
};
...
@@ -42,12 +47,8 @@ const TagSelector = (props: Props) => {
...
@@ -42,12 +47,8 @@ const TagSelector = (props: Props) => {
>
>
<
Icon
.
Hash
className=
"w-5 h-5 mx-auto"
/>
<
Icon
.
Hash
className=
"w-5 h-5 mx-auto"
/>
</
MenuButton
>
</
MenuButton
>
<
Menu
className=
"relative text-sm"
size=
"sm"
placement=
"bottom-start"
>
<
Menu
className=
"relative text-sm"
component=
"div"
size=
"sm"
placement=
"bottom-start"
>
<
ClickAwayListener
<
div
ref=
{
containerRef
}
>
onClickAway=
{
()
=>
{
setOpen
(
false
);
}
}
>
{
tags
.
length
>
0
?
(
{
tags
.
length
>
0
?
(
<
div
className=
"flex-row justify-start items-start flex-wrap px-1 max-w-[12rem] h-auto max-h-48 overflow-y-auto font-mono"
>
<
div
className=
"flex-row justify-start items-start flex-wrap px-1 max-w-[12rem] h-auto max-h-48 overflow-y-auto font-mono"
>
{
tags
.
map
((
tag
)
=>
{
{
tags
.
map
((
tag
)
=>
{
...
@@ -63,11 +64,11 @@ const TagSelector = (props: Props) => {
...
@@ -63,11 +64,11 @@ const TagSelector = (props: Props) => {
})
}
})
}
</
div
>
</
div
>
)
:
(
)
:
(
<
p
className=
"italic mx-
1
"
onClick=
{
(
e
)
=>
e
.
stopPropagation
()
}
>
<
p
className=
"italic mx-
2
"
onClick=
{
(
e
)
=>
e
.
stopPropagation
()
}
>
No tag found
No tag found
</
p
>
</
p
>
)
}
)
}
</
ClickAwayListener
>
</
div
>
</
Menu
>
</
Menu
>
</
Dropdown
>
</
Dropdown
>
);
);
...
...
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