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
697e5475
Commit
697e5475
authored
Jun 23, 2025
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: frontend linter
parent
83febf99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
CreateIdentityProviderDialog.tsx
web/src/components/CreateIdentityProviderDialog.tsx
+0
-4
MemoRelationForceGraph.tsx
...ponents/MemoRelationForceGraph/MemoRelationForceGraph.tsx
+2
-1
MemoRelationListView.tsx
web/src/components/MemoRelationListView.tsx
+5
-4
No files found.
web/src/components/CreateIdentityProviderDialog.tsx
View file @
697e5475
...
...
@@ -12,7 +12,6 @@ import { generateDialog } from "./Dialog";
const
templateList
:
IdentityProvider
[]
=
[
{
name
:
""
,
uid
:
""
,
title
:
"GitHub"
,
type
:
IdentityProvider_Type
.
OAUTH2
,
identifierFilter
:
""
,
...
...
@@ -34,7 +33,6 @@ const templateList: IdentityProvider[] = [
},
{
name
:
""
,
uid
:
""
,
title
:
"GitLab"
,
type
:
IdentityProvider_Type
.
OAUTH2
,
identifierFilter
:
""
,
...
...
@@ -56,7 +54,6 @@ const templateList: IdentityProvider[] = [
},
{
name
:
""
,
uid
:
""
,
title
:
"Google"
,
type
:
IdentityProvider_Type
.
OAUTH2
,
identifierFilter
:
""
,
...
...
@@ -78,7 +75,6 @@ const templateList: IdentityProvider[] = [
},
{
name
:
""
,
uid
:
""
,
title
:
"Custom"
,
type
:
IdentityProvider_Type
.
OAUTH2
,
identifierFilter
:
""
,
...
...
web/src/components/MemoRelationForceGraph/MemoRelationForceGraph.tsx
View file @
697e5475
...
...
@@ -2,6 +2,7 @@ import { useColorScheme } from "@mui/joy";
import
{
useEffect
,
useRef
,
useState
}
from
"react"
;
import
ForceGraph2D
,
{
ForceGraphMethods
,
LinkObject
,
NodeObject
}
from
"react-force-graph-2d"
;
import
useNavigateTo
from
"@/hooks/useNavigateTo"
;
import
{
extractMemoIdFromName
}
from
"@/store/common"
;
import
{
Memo
,
MemoRelation_Type
}
from
"@/types/proto/api/v1/memo_service"
;
import
{
cn
}
from
"@/utils"
;
import
{
LinkType
,
NodeType
}
from
"./types"
;
...
...
@@ -47,7 +48,7 @@ const MemoRelationForceGraph = ({ className, memo, parentPage }: Props) => {
cooldownTicks=
{
0
}
nodeColor=
{
(
node
)
=>
(
node
.
id
===
memo
.
name
?
MAIN_NODE_COLOR
:
DEFAULT_NODE_COLOR
)
}
nodeRelSize=
{
3
}
nodeLabel=
{
(
node
)
=>
node
.
memo
.
uid
.
slice
(
0
,
6
).
toLowerCase
()
}
nodeLabel=
{
(
node
)
=>
extractMemoIdFromName
(
node
.
memo
.
name
)
.
slice
(
0
,
6
).
toLowerCase
()
}
linkColor=
{
()
=>
(
mode
===
"light"
?
"#e4e4e7"
:
"#3f3f46"
)
}
graphData=
{
convertMemoRelationsToGraphData
(
memo
.
relations
.
filter
((
r
)
=>
r
.
type
===
MemoRelation_Type
.
REFERENCE
))
}
onNodeClick=
{
onNodeClick
}
...
...
web/src/components/MemoRelationListView.tsx
View file @
697e5475
import
{
LinkIcon
,
MilestoneIcon
}
from
"lucide-react"
;
import
{
memo
,
useState
}
from
"react"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
extractMemoIdFromName
}
from
"@/store/common"
;
import
{
Memo
,
MemoRelation
}
from
"@/types/proto/api/v1/memo_service"
;
import
{
cn
}
from
"@/utils"
;
import
{
useTranslate
}
from
"@/utils/i18n"
;
...
...
@@ -65,14 +66,14 @@ const MemoRelationListView = (props: Props) => {
<
Link
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"
to=
{
`/
m/${memo.uid
}`
}
to=
{
`/
${memo.name
}`
}
viewTransition
state=
{
{
from
:
parentPage
,
}
}
>
<
span
className=
"text-xs opacity-60 leading-4 border border-zinc-200 font-mono px-1 rounded-full mr-1 dark:border-zinc-700"
>
{
memo
.
uid
.
slice
(
0
,
6
)
}
{
extractMemoIdFromName
(
memo
.
name
)
.
slice
(
0
,
6
)
}
</
span
>
<
span
className=
"truncate"
>
{
memo
.
snippet
}
</
span
>
</
Link
>
...
...
@@ -87,14 +88,14 @@ const MemoRelationListView = (props: Props) => {
<
Link
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"
to=
{
`/
m/${memo.uid
}`
}
to=
{
`/
${memo.name
}`
}
viewTransition
state=
{
{
from
:
parentPage
,
}
}
>
<
span
className=
"text-xs opacity-60 leading-4 border border-zinc-200 font-mono px-1 rounded-full mr-1 dark:border-zinc-700"
>
{
memo
.
uid
.
slice
(
0
,
6
)
}
{
extractMemoIdFromName
(
memo
.
name
)
.
slice
(
0
,
6
)
}
</
span
>
<
span
className=
"truncate"
>
{
memo
.
snippet
}
</
span
>
</
Link
>
...
...
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