Forráskód Böngészése

fix: context icon in chat (#5604)

zxhlyh 10 hónapja%!(EXTRA string=óta)
szülő
commit
af6e3869ff

+ 8 - 0
web/app/components/app/configuration/dataset-config/card-item/item.tsx

@@ -10,6 +10,7 @@ import { formatNumber } from '@/utils/format'
 import FileIcon from '@/app/components/base/file-icon'
 import { Settings01 } from '@/app/components/base/icons/src/vender/line/general'
 import { Folder } from '@/app/components/base/icons/src/vender/solid/files'
+import { Globe06 } from '@/app/components/base/icons/src/vender/solid/mapsAndTravel'
 import Drawer from '@/app/components/base/drawer'
 import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
 
@@ -54,6 +55,13 @@ const Item: FC<ItemProps> = ({
           </div>
         )
       }
+      {
+        config.data_source_type === DataSourceType.WEB && (
+          <div className='shrink-0 flex items-center justify-center mr-2 w-6 h-6 bg-[#F5FAFF] border-[0.5px] border-blue-100 rounded-md'>
+            <Globe06 className='w-4 h-4 text-blue-600' />
+          </div>
+        )
+      }
       <div className='grow'>
         <div className='flex items-center h-[18px]'>
           <div className='grow text-[13px] font-medium text-gray-800 truncate' title={config.name}>{config.name}</div>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 8 - 0
web/app/components/base/icons/assets/vender/solid/mapsAndTravel/globe-06.svg


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 57 - 0
web/app/components/base/icons/src/vender/solid/mapsAndTravel/Globe06.json


+ 16 - 0
web/app/components/base/icons/src/vender/solid/mapsAndTravel/Globe06.tsx

@@ -0,0 +1,16 @@
+// GENERATE BY script
+// DON NOT EDIT IT MANUALLY
+
+import * as React from 'react'
+import data from './Globe06.json'
+import IconBase from '@/app/components/base/icons/IconBase'
+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'
+
+const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((
+  props,
+  ref,
+) => <IconBase {...props} ref={ref} data={data as IconData} />)
+
+Icon.displayName = 'Globe06'
+
+export default Icon

+ 1 - 0
web/app/components/base/icons/src/vender/solid/mapsAndTravel/index.ts

@@ -1 +1,2 @@
+export { default as Globe06 } from './Globe06'
 export { default as Route } from './Route'