From 8572e1f3db9e6e52bd82691de50b03257db1e82a Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Tue, 28 Oct 2025 11:02:01 +0800 Subject: [PATCH] Fix: Add video icon in knowledge base #10703 (#10832) ### What problem does this PR solve? Fix: Add video icon in knowledge base ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/public/iconfont.js | 5 +++++ web/src/constants/file.ts | 5 +++++ web/src/pages/dataset/dataset/index.tsx | 2 +- web/src/pages/home/applications.tsx | 2 +- web/src/pages/home/datasets.tsx | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/web/public/iconfont.js b/web/public/iconfont.js index 4d923a373..6b2c93e8f 100644 --- a/web/public/iconfont.js +++ b/web/public/iconfont.js @@ -1,5 +1,10 @@ (window._iconfont_svg_string_4909832 = '' + + '' + + '' + + '' + + '' + + '' + '' + '' + '' + diff --git a/web/src/constants/file.ts b/web/src/constants/file.ts index edf34a7e3..4dea95952 100644 --- a/web/src/constants/file.ts +++ b/web/src/constants/file.ts @@ -12,4 +12,9 @@ export const FileIconMap = { txt: 'text', csv: 'pdf', md: 'md', + mp4: 'mp4', + avi: 'avi', + mkv: 'mkv', + rmvb: 'rmvb', + wav: 'wav', }; diff --git a/web/src/pages/dataset/dataset/index.tsx b/web/src/pages/dataset/dataset/index.tsx index 6c156781d..5cf61c42a 100644 --- a/web/src/pages/dataset/dataset/index.tsx +++ b/web/src/pages/dataset/dataset/index.tsx @@ -86,7 +86,7 @@ export default function Dataset() { leftPanel={
{t('knowledgeDetails.subbarFiles')}
-
+
{t('knowledgeDetails.datasetDescription')}
diff --git a/web/src/pages/home/applications.tsx b/web/src/pages/home/applications.tsx index fd415d66e..4c07f160e 100644 --- a/web/src/pages/home/applications.tsx +++ b/web/src/pages/home/applications.tsx @@ -41,7 +41,7 @@ export function Applications() { return (
-

+

{/* -

+

{/* */} {t('header.dataset')}