refactor: update imports for knowledge and pipeline components

This commit is contained in:
twwu 2025-05-08 10:44:26 +08:00
parent d1fd5db7f8
commit 3d11af2dd6
166 changed files with 182 additions and 223 deletions

View File

@ -31,8 +31,8 @@ import { useStore } from '@/app/components/app/store'
import { useAppContext } from '@/context/app-context'
import Tooltip from '@/app/components/base/tooltip'
import LinkedAppsPanel from '@/app/components/base/linked-apps-panel'
import { PipelineFill, PipelineLine } from '@/app/components/base/icons/src/public/pipeline'
import { Divider } from '@/app/components/base/icons/src/public/knowledge'
import { PipelineFill, PipelineLine } from '@/app/components/base/icons/src/vender/pipeline'
import { Divider } from '@/app/components/base/icons/src/vender/knowledge'
import { useGetDocLanguage } from '@/context/i18n'
export type IAppDetailLayoutProps = {

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -1,5 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Icon L">
<path id="Vector" d="M14.0002 2C14.3684 2 14.6668 2.29848 14.6668 2.66667V13.3333C14.6668 13.7015 14.3684 14 14.0002 14H2.00016C1.63198 14 1.3335 13.7015 1.3335 13.3333V2.66667C1.3335 2.29848 1.63198 2 2.00016 2H14.0002ZM13.3335 3.33333H2.66683V12.6667H13.3335V3.33333ZM14.0002 2.66667V13.3333H10.0002V2.66667H14.0002Z" fill="#354052"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 461 B

View File

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 792 B

View File

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 579 B

View File

Before

Width:  |  Height:  |  Size: 220 B

After

Width:  |  Height:  |  Size: 220 B

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,13 @@
export { default as Chunk } from './Chunk'
export { default as Collapse } from './Collapse'
export { default as Divider } from './Divider'
export { default as File } from './File'
export { default as GeneralType } from './GeneralType'
export { default as LayoutRight2LineMod } from './LayoutRight2LineMod'
export { default as OptionCardEffectBlueLight } from './OptionCardEffectBlueLight'
export { default as OptionCardEffectBlue } from './OptionCardEffectBlue'
export { default as OptionCardEffectOrange } from './OptionCardEffectOrange'
export { default as OptionCardEffectPurple } from './OptionCardEffectPurple'
export { default as ParentChildType } from './ParentChildType'
export { default as SelectionMod } from './SelectionMod'
export { default as Watercrawl } from './Watercrawl'

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -89,4 +89,4 @@
]
},
"name": "Robot"
}
}

View File

@ -86,4 +86,4 @@
]
},
"name": "User"
}
}

View File

@ -26,4 +26,4 @@
]
},
"name": "ArCube1"
}
}

View File

@ -35,4 +35,4 @@
]
},
"name": "Asterisk"
}
}

View File

@ -176,4 +176,4 @@
]
},
"name": "AwsMarketplace"
}
}

View File

@ -190,4 +190,4 @@
]
},
"name": "Azure"
}
}

View File

@ -36,4 +36,4 @@
]
},
"name": "Buildings"
}
}

View File

@ -36,4 +36,4 @@
]
},
"name": "Diamond"
}
}

View File

@ -63,4 +63,4 @@
]
},
"name": "GoogleCloud"
}
}

View File

@ -26,4 +26,4 @@
]
},
"name": "Group2"
}
}

View File

@ -25,4 +25,4 @@
]
},
"name": "Keyframe"
}
}

View File

@ -92,4 +92,4 @@
]
},
"name": "Sparkles"
}
}

View File

@ -33,4 +33,4 @@
]
},
"name": "SparklesSoft"
}
}

View File

@ -122,4 +122,4 @@
]
},
"name": "D"
}
}

View File

@ -25,4 +25,4 @@
]
},
"name": "DiagonalDividingLine"
}
}

View File

@ -59,4 +59,4 @@
]
},
"name": "Dify"
}
}

View File

@ -337,4 +337,4 @@
]
},
"name": "Gdpr"
}
}

View File

@ -33,4 +33,4 @@
]
},
"name": "Github"
}
}

View File

@ -64,4 +64,4 @@
]
},
"name": "Highlight"
}
}

View File

@ -118,4 +118,4 @@
]
},
"name": "Iso"
}
}

View File

@ -25,4 +25,4 @@
]
},
"name": "Line3"
}
}

View File

@ -35,4 +35,4 @@
]
},
"name": "Lock"
}
}

View File

@ -34,4 +34,4 @@
]
},
"name": "MessageChatSquare"
}
}

View File

@ -150,4 +150,4 @@
]
},
"name": "MultiPathRetrieval"
}
}

View File

@ -143,4 +143,4 @@
]
},
"name": "NTo1Retrieval"
}
}

View File

@ -80,4 +80,4 @@
]
},
"name": "Notion"
}
}

View File

@ -935,4 +935,4 @@
]
},
"name": "Soc2"
}
}

View File

@ -44,4 +44,4 @@
]
},
"name": "SparklesSoft"
}
}

View File

@ -24,4 +24,4 @@
]
},
"name": "Triangle"
}
}

View File

@ -178,4 +178,4 @@
]
},
"name": "Csv"
}
}

View File

@ -166,4 +166,4 @@
]
},
"name": "Doc"
}
}

View File

@ -175,4 +175,4 @@
]
},
"name": "Docx"
}
}

View File

@ -175,4 +175,4 @@
]
},
"name": "Html"
}
}

View File

@ -175,4 +175,4 @@
]
},
"name": "Json"
}
}

View File

@ -141,4 +141,4 @@
]
},
"name": "Md"
}
}

View File

@ -166,4 +166,4 @@
]
},
"name": "Pdf"
}
}

View File

@ -177,4 +177,4 @@
]
},
"name": "Txt"
}
}

View File

@ -196,4 +196,4 @@
]
},
"name": "Unknown"
}
}

View File

@ -142,4 +142,4 @@
]
},
"name": "Xlsx"
}
}

View File

@ -178,4 +178,4 @@
]
},
"name": "Yaml"
}
}

View File

@ -1,36 +0,0 @@
{
"icon": {
"type": "element",
"isRootNode": true,
"name": "svg",
"attributes": {
"width": "16",
"height": "16",
"viewBox": "0 0 16 16",
"fill": "none",
"xmlns": "http://www.w3.org/2000/svg"
},
"children": [
{
"type": "element",
"name": "g",
"attributes": {
"id": "Icon L"
},
"children": [
{
"type": "element",
"name": "path",
"attributes": {
"id": "Vector",
"d": "M14.0002 2C14.3684 2 14.6668 2.29848 14.6668 2.66667V13.3333C14.6668 13.7015 14.3684 14 14.0002 14H2.00016C1.63198 14 1.3335 13.7015 1.3335 13.3333V2.66667C1.3335 2.29848 1.63198 2 2.00016 2H14.0002ZM13.3335 3.33333H2.66683V12.6667H13.3335V3.33333ZM14.0002 2.66667V13.3333H10.0002V2.66667H14.0002Z",
"fill": "#354052"
},
"children": []
}
]
}
]
},
"name": "LayoutRight2LineMod"
}

View File

@ -1,20 +0,0 @@
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import data from './LayoutRight2LineMod.json'
import IconBase from '@/app/components/base/icons/IconBase'
import type { IconData } from '@/app/components/base/icons/IconBase'
const Icon = (
{
ref,
...props
}: React.SVGProps<SVGSVGElement> & {
ref?: React.RefObject<React.MutableRefObject<HTMLOrSVGElement>>;
},
) => <IconBase {...props} ref={ref} data={data as IconData} />
Icon.displayName = 'LayoutRight2LineMod'
export default Icon

View File

@ -113,4 +113,4 @@
]
},
"name": "SelectionMod"
}
}

View File

@ -0,0 +1,5 @@
export { default as ExternalKnowledgeBase } from './ExternalKnowledgeBase'
export { default as General } from './General'
export { default as Graph } from './Graph'
export { default as ParentChild } from './ParentChild'
export { default as Qa } from './Qa'

View File

@ -1,18 +1,7 @@
export { default as Chunk } from './Chunk'
export { default as Collapse } from './Collapse'
export { default as Divider } from './Divider'
export { default as ExternalKnowledgeBase } from './ExternalKnowledgeBase'
export { default as File } from './File'
export { default as GeneralType } from './GeneralType'
export { default as General } from './General'
export { default as Graph } from './Graph'
export { default as LayoutRight2LineMod } from './LayoutRight2LineMod'
export { default as OptionCardEffectBlueLight } from './OptionCardEffectBlueLight'
export { default as OptionCardEffectBlue } from './OptionCardEffectBlue'
export { default as OptionCardEffectOrange } from './OptionCardEffectOrange'
export { default as OptionCardEffectPurple } from './OptionCardEffectPurple'
export { default as ParentChildType } from './ParentChildType'
export { default as ParentChild } from './ParentChild'
export { default as Qa } from './Qa'
export { default as SelectionMod } from './SelectionMod'
export { default as Watercrawl } from './Watercrawl'

View File

@ -34,4 +34,4 @@
]
},
"name": "Anthropic"
}
}

View File

@ -1043,4 +1043,4 @@
]
},
"name": "AnthropicDark"
}
}

View File

@ -1043,4 +1043,4 @@
]
},
"name": "AnthropicLight"
}
}

View File

@ -536,4 +536,4 @@
]
},
"name": "AnthropicText"
}
}

View File

@ -71,4 +71,4 @@
]
},
"name": "AzureOpenaiService"
}
}

View File

@ -233,4 +233,4 @@
]
},
"name": "AzureOpenaiServiceText"
}
}

View File

@ -177,4 +177,4 @@
]
},
"name": "Azureai"
}
}

View File

@ -240,4 +240,4 @@
]
},
"name": "AzureaiText"
}
}

View File

@ -73,4 +73,4 @@
]
},
"name": "Baichuan"
}
}

View File

@ -153,4 +153,4 @@
]
},
"name": "BaichuanText"
}
}

View File

@ -69,4 +69,4 @@
]
},
"name": "Chatglm"
}
}

View File

@ -132,4 +132,4 @@
]
},
"name": "ChatglmText"
}
}

View File

@ -109,4 +109,4 @@
]
},
"name": "Cohere"
}
}

View File

@ -87,4 +87,4 @@
]
},
"name": "CohereText"
}
}

View File

@ -48,4 +48,4 @@
]
},
"name": "Gpt3"
}
}

View File

@ -48,4 +48,4 @@
]
},
"name": "Gpt4"
}
}

View File

@ -155,4 +155,4 @@
]
},
"name": "Huggingface"
}
}

View File

@ -319,4 +319,4 @@
]
},
"name": "HuggingfaceText"
}
}

View File

@ -347,4 +347,4 @@
]
},
"name": "HuggingfaceTextHub"
}
}

View File

@ -41,4 +41,4 @@
]
},
"name": "IflytekSpark"
}
}

View File

@ -184,4 +184,4 @@
]
},
"name": "IflytekSparkText"
}
}

View File

@ -95,4 +95,4 @@
]
},
"name": "IflytekSparkTextCn"
}
}

View File

@ -32,4 +32,4 @@
]
},
"name": "Jina"
}
}

View File

@ -79,4 +79,4 @@
]
},
"name": "JinaText"
}
}

View File

@ -104,4 +104,4 @@
]
},
"name": "Localai"
}
}

View File

@ -167,4 +167,4 @@
]
},
"name": "LocalaiText"
}
}

View File

@ -73,4 +73,4 @@
]
},
"name": "Microsoft"
}
}

View File

@ -34,4 +34,4 @@
]
},
"name": "OpenaiBlack"
}
}

View File

@ -34,4 +34,4 @@
]
},
"name": "OpenaiBlue"
}
}

Some files were not shown because too many files have changed in this diff Show More