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
8635aed1
Commit
8635aed1
authored
Oct 25, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update dependencies
parent
aa9649ad
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
926 additions
and
824 deletions
+926
-824
apidocs.swagger.yaml
proto/gen/apidocs.swagger.yaml
+188
-60
package.json
web/package.json
+21
-20
pnpm-lock.yaml
web/pnpm-lock.yaml
+707
-734
EmbeddedMemo.tsx
...c/components/MemoContent/EmbeddedContent/EmbeddedMemo.tsx
+1
-1
MemoRelationListView.tsx
web/src/components/MemoRelationListView.tsx
+2
-2
MemoView.tsx
web/src/components/MemoView.tsx
+3
-3
Navigation.tsx
web/src/components/Navigation.tsx
+1
-1
MemoDetail.tsx
web/src/pages/MemoDetail.tsx
+1
-1
SignIn.tsx
web/src/pages/SignIn.tsx
+1
-1
SignUp.tsx
web/src/pages/SignUp.tsx
+1
-1
No files found.
proto/gen/apidocs.swagger.yaml
View file @
8635aed1
This diff is collapsed.
Click to expand it.
web/package.json
View file @
8635aed1
...
@@ -17,8 +17,9 @@
...
@@ -17,8 +17,9 @@
"@github/relative-time-element"
:
"^4.4.3"
,
"@github/relative-time-element"
:
"^4.4.3"
,
"@matejmazur/react-katex"
:
"^3.1.3"
,
"@matejmazur/react-katex"
:
"^3.1.3"
,
"@mui/joy"
:
"5.0.0-beta.48"
,
"@mui/joy"
:
"5.0.0-beta.48"
,
"@radix-ui/react-popover"
:
"^1.1.1"
,
"@radix-ui/react-popover"
:
"^1.1.2"
,
"@reduxjs/toolkit"
:
"^2.2.7"
,
"@reduxjs/toolkit"
:
"^2.3.0"
,
"@usememos/mui"
:
"0.0.1-alpha.6"
,
"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"
,
...
@@ -26,59 +27,59 @@
...
@@ -26,59 +27,59 @@
"dompurify"
:
"^3.1.7"
,
"dompurify"
:
"^3.1.7"
,
"fuse.js"
:
"^7.0.0"
,
"fuse.js"
:
"^7.0.0"
,
"highlight.js"
:
"^11.10.0"
,
"highlight.js"
:
"^11.10.0"
,
"i18next"
:
"^23.1
5.1
"
,
"i18next"
:
"^23.1
6.3
"
,
"katex"
:
"^0.16.11"
,
"katex"
:
"^0.16.11"
,
"leaflet"
:
"^1.9.4"
,
"leaflet"
:
"^1.9.4"
,
"lodash-es"
:
"^4.17.21"
,
"lodash-es"
:
"^4.17.21"
,
"lucide-react"
:
"^0.4
37
.0"
,
"lucide-react"
:
"^0.4
53
.0"
,
"mermaid"
:
"^11.
2.1
"
,
"mermaid"
:
"^11.
3.0
"
,
"react"
:
"^18.3.1"
,
"react"
:
"^18.3.1"
,
"react-datepicker"
:
"^7.5.0"
,
"react-datepicker"
:
"^7.5.0"
,
"react-dom"
:
"^18.3.1"
,
"react-dom"
:
"^18.3.1"
,
"react-force-graph-2d"
:
"^1.25.
6
"
,
"react-force-graph-2d"
:
"^1.25.
7
"
,
"react-hot-toast"
:
"^2.4.1"
,
"react-hot-toast"
:
"^2.4.1"
,
"react-i18next"
:
"^15.
0.2
"
,
"react-i18next"
:
"^15.
1.0
"
,
"react-leaflet"
:
"^4.2.1"
,
"react-leaflet"
:
"^4.2.1"
,
"react-redux"
:
"^9.1.2"
,
"react-redux"
:
"^9.1.2"
,
"react-router-dom"
:
"^6.2
6.2
"
,
"react-router-dom"
:
"^6.2
7.0
"
,
"react-use"
:
"^17.5.1"
,
"react-use"
:
"^17.5.1"
,
"tailwind-merge"
:
"^2.5.
2
"
,
"tailwind-merge"
:
"^2.5.
4
"
,
"tailwindcss"
:
"^3.4.1
2
"
,
"tailwindcss"
:
"^3.4.1
4
"
,
"tailwindcss-animate"
:
"^1.0.7"
,
"tailwindcss-animate"
:
"^1.0.7"
,
"textarea-caret"
:
"^3.1.0"
,
"textarea-caret"
:
"^3.1.0"
,
"uuid"
:
"^10.0.0"
,
"uuid"
:
"^10.0.0"
,
"zustand"
:
"^4.5.5"
"zustand"
:
"^4.5.5"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@bufbuild/buf"
:
"^1.4
2
.0"
,
"@bufbuild/buf"
:
"^1.4
5
.0"
,
"@bufbuild/protobuf"
:
"^2.
1
.0"
,
"@bufbuild/protobuf"
:
"^2.
2
.0"
,
"@trivago/prettier-plugin-sort-imports"
:
"^4.3.0"
,
"@trivago/prettier-plugin-sort-imports"
:
"^4.3.0"
,
"@types/d3"
:
"^7.4.3"
,
"@types/d3"
:
"^7.4.3"
,
"@types/dompurify"
:
"^3.0.5"
,
"@types/dompurify"
:
"^3.0.5"
,
"@types/katex"
:
"^0.16.7"
,
"@types/katex"
:
"^0.16.7"
,
"@types/leaflet"
:
"^1.9.1
2
"
,
"@types/leaflet"
:
"^1.9.1
4
"
,
"@types/lodash-es"
:
"^4.17.12"
,
"@types/lodash-es"
:
"^4.17.12"
,
"@types/node"
:
"^22.
7.4
"
,
"@types/node"
:
"^22.
8.0
"
,
"@types/qs"
:
"^6.9.16"
,
"@types/qs"
:
"^6.9.16"
,
"@types/react"
:
"^18.3.
8
"
,
"@types/react"
:
"^18.3.
12
"
,
"@types/react-dom"
:
"^18.3.
0
"
,
"@types/react-dom"
:
"^18.3.
1
"
,
"@types/textarea-caret"
:
"^3.0.3"
,
"@types/textarea-caret"
:
"^3.0.3"
,
"@types/uuid"
:
"^10.0.0"
,
"@types/uuid"
:
"^10.0.0"
,
"@typescript-eslint/eslint-plugin"
:
"^7.18.0"
,
"@typescript-eslint/eslint-plugin"
:
"^7.18.0"
,
"@typescript-eslint/parser"
:
"^7.18.0"
,
"@typescript-eslint/parser"
:
"^7.18.0"
,
"@vitejs/plugin-react"
:
"^4.3.
1
"
,
"@vitejs/plugin-react"
:
"^4.3.
3
"
,
"autoprefixer"
:
"^10.4.20"
,
"autoprefixer"
:
"^10.4.20"
,
"eslint"
:
"^8.57.1"
,
"eslint"
:
"^8.57.1"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-plugin-prettier"
:
"^5.2.1"
,
"eslint-plugin-prettier"
:
"^5.2.1"
,
"eslint-plugin-react"
:
"^7.3
6.1
"
,
"eslint-plugin-react"
:
"^7.3
7.2
"
,
"less"
:
"^4.2.0"
,
"less"
:
"^4.2.0"
,
"long"
:
"^5.2.3"
,
"long"
:
"^5.2.3"
,
"nice-grpc-web"
:
"^3.3.5"
,
"nice-grpc-web"
:
"^3.3.5"
,
"postcss"
:
"^8.4.47"
,
"postcss"
:
"^8.4.47"
,
"prettier"
:
"^3.3.3"
,
"prettier"
:
"^3.3.3"
,
"protobufjs"
:
"^7.4.0"
,
"protobufjs"
:
"^7.4.0"
,
"typescript"
:
"^5.6.
2
"
,
"typescript"
:
"^5.6.
3
"
,
"vite"
:
"^5.4.
8
"
"vite"
:
"^5.4.
10
"
}
}
}
}
web/pnpm-lock.yaml
View file @
8635aed1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
web/src/components/MemoContent/EmbeddedContent/EmbeddedMemo.tsx
View file @
8635aed1
...
@@ -75,7 +75,7 @@ const EmbeddedMemo = ({ resourceId: uid, params: paramsStr }: Props) => {
...
@@ -75,7 +75,7 @@ const EmbeddedMemo = ({ resourceId: uid, params: paramsStr }: Props) => {
<
span
className=
"text-xs opacity-60 leading-5 cursor-pointer hover:opacity-80"
onClick=
{
()
=>
copyMemoUid
(
memo
.
uid
)
}
>
<
span
className=
"text-xs opacity-60 leading-5 cursor-pointer hover:opacity-80"
onClick=
{
()
=>
copyMemoUid
(
memo
.
uid
)
}
>
{
memo
.
uid
.
slice
(
0
,
6
)
}
{
memo
.
uid
.
slice
(
0
,
6
)
}
</
span
>
</
span
>
<
Link
className=
"opacity-60 hover:opacity-80"
to=
{
`/m/${memo.uid}`
}
unstable_
viewTransition
>
<
Link
className=
"opacity-60 hover:opacity-80"
to=
{
`/m/${memo.uid}`
}
viewTransition
>
<
ArrowUpRightIcon
className=
"w-5 h-auto"
/>
<
ArrowUpRightIcon
className=
"w-5 h-auto"
/>
</
Link
>
</
Link
>
</
div
>
</
div
>
...
...
web/src/components/MemoRelationListView.tsx
View file @
8635aed1
...
@@ -64,7 +64,7 @@ const MemoRelationListView = (props: Props) => {
...
@@ -64,7 +64,7 @@ const MemoRelationListView = (props: Props) => {
key=
{
memo
.
name
}
key=
{
memo
.
name
}
className=
"w-auto max-w-full flex flex-row justify-start items-center text-sm leading-5 text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:underline"
className=
"w-auto max-w-full flex flex-row justify-start items-center text-sm leading-5 text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:underline"
to=
{
`/m/${memo.uid}`
}
to=
{
`/m/${memo.uid}`
}
unstable_
viewTransition
viewTransition
>
>
<
span
className=
"text-xs opacity-60 leading-4 border font-mono px-1 rounded-full mr-1 dark:border-zinc-700"
>
<
span
className=
"text-xs opacity-60 leading-4 border font-mono px-1 rounded-full mr-1 dark:border-zinc-700"
>
{
memo
.
uid
.
slice
(
0
,
6
)
}
{
memo
.
uid
.
slice
(
0
,
6
)
}
...
@@ -83,7 +83,7 @@ const MemoRelationListView = (props: Props) => {
...
@@ -83,7 +83,7 @@ const MemoRelationListView = (props: Props) => {
key=
{
memo
.
name
}
key=
{
memo
.
name
}
className=
"w-auto max-w-full flex flex-row justify-start items-center text-sm leading-5 text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:underline"
className=
"w-auto max-w-full flex flex-row justify-start items-center text-sm leading-5 text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:underline"
to=
{
`/m/${memo.uid}`
}
to=
{
`/m/${memo.uid}`
}
unstable_
viewTransition
viewTransition
>
>
<
span
className=
"text-xs opacity-60 leading-4 border font-mono px-1 rounded-full mr-1 dark:border-zinc-700"
>
<
span
className=
"text-xs opacity-60 leading-4 border font-mono px-1 rounded-full mr-1 dark:border-zinc-700"
>
{
memo
.
uid
.
slice
(
0
,
6
)
}
{
memo
.
uid
.
slice
(
0
,
6
)
}
...
...
web/src/components/MemoView.tsx
View file @
8635aed1
...
@@ -139,14 +139,14 @@ const MemoView: React.FC<Props> = (props: Props) => {
...
@@ -139,14 +139,14 @@ const MemoView: React.FC<Props> = (props: Props) => {
<
div
className=
"w-auto max-w-[calc(100%-8rem)] grow flex flex-row justify-start items-center"
>
<
div
className=
"w-auto max-w-[calc(100%-8rem)] grow flex flex-row justify-start items-center"
>
{
props
.
showCreator
&&
creator
?
(
{
props
.
showCreator
&&
creator
?
(
<
div
className=
"w-full flex flex-row justify-start items-center"
>
<
div
className=
"w-full flex flex-row justify-start items-center"
>
<
Link
className=
"w-auto hover:opacity-80"
to=
{
`/u/${encodeURIComponent(creator.username)}`
}
unstable_
viewTransition
>
<
Link
className=
"w-auto hover:opacity-80"
to=
{
`/u/${encodeURIComponent(creator.username)}`
}
viewTransition
>
<
UserAvatar
className=
"mr-2 shrink-0"
avatarUrl=
{
creator
.
avatarUrl
}
/>
<
UserAvatar
className=
"mr-2 shrink-0"
avatarUrl=
{
creator
.
avatarUrl
}
/>
</
Link
>
</
Link
>
<
div
className=
"w-full flex flex-col justify-center items-start"
>
<
div
className=
"w-full flex flex-col justify-center items-start"
>
<
Link
<
Link
className=
"w-full block leading-tight hover:opacity-80 truncate text-gray-600 dark:text-gray-400"
className=
"w-full block leading-tight hover:opacity-80 truncate text-gray-600 dark:text-gray-400"
to=
{
`/u/${encodeURIComponent(creator.username)}`
}
to=
{
`/u/${encodeURIComponent(creator.username)}`
}
unstable_
viewTransition
viewTransition
>
>
{
creator
.
nickname
||
creator
.
username
}
{
creator
.
nickname
||
creator
.
username
}
</
Link
>
</
Link
>
...
@@ -185,7 +185,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
...
@@ -185,7 +185,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
commentAmount
===
0
&&
"invisible group-hover:visible"
,
commentAmount
===
0
&&
"invisible group-hover:visible"
,
)
}
)
}
to=
{
`/m/${memo.uid}#comments`
}
to=
{
`/m/${memo.uid}#comments`
}
unstable_
viewTransition
viewTransition
>
>
<
MessageCircleMoreIcon
className=
"w-4 h-4 mx-auto text-gray-500 dark:text-gray-400"
/>
<
MessageCircleMoreIcon
className=
"w-4 h-4 mx-auto text-gray-500 dark:text-gray-400"
/>
{
commentAmount
>
0
&&
<
span
className=
"text-xs text-gray-500 dark:text-gray-400"
>
{
commentAmount
}
</
span
>
}
{
commentAmount
>
0
&&
<
span
className=
"text-xs text-gray-500 dark:text-gray-400"
>
{
commentAmount
}
</
span
>
}
...
...
web/src/components/Navigation.tsx
View file @
8635aed1
...
@@ -132,7 +132,7 @@ const Navigation = (props: Props) => {
...
@@ -132,7 +132,7 @@ const Navigation = (props: Props) => {
key=
{
navLink
.
id
}
key=
{
navLink
.
id
}
to=
{
navLink
.
path
}
to=
{
navLink
.
path
}
id=
{
navLink
.
id
}
id=
{
navLink
.
id
}
unstable_
viewTransition
viewTransition
>
>
{
props
.
collapsed
?
(
{
props
.
collapsed
?
(
<
Tooltip
title=
{
navLink
.
title
}
placement=
"right"
arrow
>
<
Tooltip
title=
{
navLink
.
title
}
placement=
"right"
arrow
>
...
...
web/src/pages/MemoDetail.tsx
View file @
8635aed1
...
@@ -96,7 +96,7 @@ const MemoDetail = () => {
...
@@ -96,7 +96,7 @@ const MemoDetail = () => {
<
Link
<
Link
className=
"px-3 py-1 border rounded-lg max-w-xs w-auto text-sm flex flex-row justify-start items-center flex-nowrap text-gray-600 dark:text-gray-400 dark:border-gray-500 hover:shadow hover:opacity-80"
className=
"px-3 py-1 border rounded-lg max-w-xs w-auto text-sm flex flex-row justify-start items-center flex-nowrap text-gray-600 dark:text-gray-400 dark:border-gray-500 hover:shadow hover:opacity-80"
to=
{
`/m/${parentMemo.uid}`
}
to=
{
`/m/${parentMemo.uid}`
}
unstable_
viewTransition
viewTransition
>
>
<
ArrowUpLeftFromCircleIcon
className=
"w-4 h-auto shrink-0 opacity-60 mr-2"
/>
<
ArrowUpLeftFromCircleIcon
className=
"w-4 h-auto shrink-0 opacity-60 mr-2"
/>
<
span
className=
"truncate"
>
{
parentMemo
.
content
}
</
span
>
<
span
className=
"truncate"
>
{
parentMemo
.
content
}
</
span
>
...
...
web/src/pages/SignIn.tsx
View file @
8635aed1
...
@@ -84,7 +84,7 @@ const SignIn = () => {
...
@@ -84,7 +84,7 @@ const SignIn = () => {
{
!
workspaceGeneralSetting
.
disallowUserRegistration
&&
!
workspaceGeneralSetting
.
disallowPasswordAuth
&&
(
{
!
workspaceGeneralSetting
.
disallowUserRegistration
&&
!
workspaceGeneralSetting
.
disallowPasswordAuth
&&
(
<
p
className=
"w-full mt-4 text-sm"
>
<
p
className=
"w-full mt-4 text-sm"
>
<
span
className=
"dark:text-gray-500"
>
{
t
(
"auth.sign-up-tip"
)
}
</
span
>
<
span
className=
"dark:text-gray-500"
>
{
t
(
"auth.sign-up-tip"
)
}
</
span
>
<
Link
to=
"/auth/signup"
className=
"cursor-pointer ml-2 text-blue-600 hover:underline"
unstable_
viewTransition
>
<
Link
to=
"/auth/signup"
className=
"cursor-pointer ml-2 text-blue-600 hover:underline"
viewTransition
>
{
t
(
"common.sign-up"
)
}
{
t
(
"common.sign-up"
)
}
</
Link
>
</
Link
>
</
p
>
</
p
>
...
...
web/src/pages/SignUp.tsx
View file @
8635aed1
...
@@ -139,7 +139,7 @@ const SignUp = () => {
...
@@ -139,7 +139,7 @@ const SignUp = () => {
)
:
(
)
:
(
<
p
className=
"w-full mt-4 text-sm"
>
<
p
className=
"w-full mt-4 text-sm"
>
<
span
className=
"dark:text-gray-500"
>
{
t
(
"auth.sign-in-tip"
)
}
</
span
>
<
span
className=
"dark:text-gray-500"
>
{
t
(
"auth.sign-in-tip"
)
}
</
span
>
<
Link
to=
"/auth"
className=
"cursor-pointer ml-2 text-blue-600 hover:underline"
unstable_
viewTransition
>
<
Link
to=
"/auth"
className=
"cursor-pointer ml-2 text-blue-600 hover:underline"
viewTransition
>
{
t
(
"common.sign-in"
)
}
{
t
(
"common.sign-in"
)
}
</
Link
>
</
Link
>
</
p
>
</
p
>
...
...
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