Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
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
ai-tech
dify
Commits
934def5f
Unverified
Commit
934def5f
authored
Aug 27, 2023
by
KVOJJJin
Committed by
GitHub
Aug 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: eslint (#1030)
parent
0796791d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
page.tsx
...onLayout)/app/(appDetailLayout)/[appId]/overview/page.tsx
+6
-2
index.tsx
...ponents/base/notion-page-selector/page-selector/index.tsx
+3
-2
index.tsx
.../components/datasets/documents/detail/completed/index.tsx
+3
-2
new-segment-modal.tsx
...omponents/datasets/documents/detail/new-segment-modal.tsx
+3
-3
No files found.
web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/page.tsx
View file @
934def5f
...
...
@@ -2,7 +2,7 @@ import React from 'react'
import
ChartView
from
'./chartView'
import
CardView
from
'./cardView'
import
{
getLocaleOnServer
}
from
'@/i18n/server'
import
{
useTranslation
}
from
'@/i18n/i18next-serverside-config'
import
{
useTranslation
as
translate
}
from
'@/i18n/i18next-serverside-config'
import
ApikeyInfoPanel
from
'@/app/components/app/overview/apikey-info-panel'
export
type
IDevelopProps
=
{
...
...
@@ -13,7 +13,11 @@ const Overview = async ({
params
:
{
appId
},
}:
IDevelopProps
)
=>
{
const
locale
=
getLocaleOnServer
()
const
{
t
}
=
await
useTranslation
(
locale
,
'app-overview'
)
/*
rename useTranslation to avoid lint error
please check: https://github.com/i18next/next-13-app-dir-i18next-example/issues/24
*/
const
{
t
}
=
await
translate
(
locale
,
'app-overview'
)
return
(
<
div
className=
"h-full px-16 py-6 overflow-scroll"
>
<
ApikeyInfoPanel
/>
...
...
web/app/components/base/notion-page-selector/page-selector/index.tsx
View file @
934def5f
...
...
@@ -67,7 +67,7 @@ const recursivePushInParentDescendants = (
}
}
const
Item
=
memo
(
({
index
,
style
,
data
}:
ListChildComponentProps
<
{
const
Item
Component
=
({
index
,
style
,
data
}:
ListChildComponentProps
<
{
dataList
:
NotionPageItem
[]
handleToggle
:
(
index
:
number
)
=>
void
checkedIds
:
Set
<
string
>
...
...
@@ -150,7 +150,8 @@ const Item = memo(({ index, style, data }: ListChildComponentProps<{
}
</
div
>
)
},
areEqual
)
}
const
Item
=
memo
(
ItemComponent
,
areEqual
)
const
PageSelector
=
({
value
,
...
...
web/app/components/datasets/documents/detail/completed/index.tsx
View file @
934def5f
...
...
@@ -55,7 +55,7 @@ type ISegmentDetailProps = {
/**
* Show all the contents of the segment
*/
export
const
SegmentDetail
:
FC
<
ISegmentDetailProps
>
=
memo
(
({
const
SegmentDetailComponent
:
FC
<
ISegmentDetailProps
>
=
({
segInfo
,
archived
,
onChangeSwitch
,
...
...
@@ -196,7 +196,8 @@ export const SegmentDetail: FC<ISegmentDetailProps> = memo(({
</
div
>
</
div
>
)
})
}
export
const
SegmentDetail
=
memo
(
SegmentDetailComponent
)
export
const
splitArray
=
(
arr
:
any
[],
size
=
3
)
=>
{
if
(
!
arr
||
!
arr
.
length
)
...
...
web/app/components/datasets/documents/detail/new-segment-modal.tsx
View file @
934def5f
...
...
@@ -19,7 +19,7 @@ type NewSegmentModalProps = {
onSave
:
()
=>
void
}
const
NewSegmentModal
:
FC
<
NewSegmentModalProps
>
=
memo
(
({
const
NewSegmentModal
:
FC
<
NewSegmentModalProps
>
=
({
isShow
,
onCancel
,
docForm
,
...
...
@@ -152,6 +152,6 @@ const NewSegmentModal: FC<NewSegmentModalProps> = memo(({
</
div
>
</
Modal
>
)
}
)
}
export
default
NewSegmentModal
export
default
memo
(
NewSegmentModal
)
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