@gientech/modual 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -0
- package/{dist/assets/GientechStreamReader-DUCq-O5X.js → assets/GientechStreamReader-Dx72IaEx.js} +1 -1
- package/{dist/assets/index-QI9biQrR.js → assets/index-BbNz3Zrz.js} +1 -1
- package/{dist/assets/index-KCfkkJKb.js → assets/index-D4pXe94o.js} +117 -117
- package/assets/style.css +1 -0
- package/assets/style4.css +1 -0
- package/chat.js +844 -0
- package/{dist/databaseId.js → databaseId.js} +1 -1
- package/{dist/index.js → index.js} +1 -1
- package/package.json +41 -103
- package/{dist/streamFilesReader.js → streamFilesReader.js} +1 -1
- package/.editorconfig +0 -38
- package/.prettierignore +0 -16
- package/.prettierrc +0 -17
- package/USAGE.md +0 -247
- package/bash.exe.stackdump +0 -40
- package/components.json +0 -21
- package/dist/README.md +0 -643
- package/dist/assets/style.css +0 -1
- package/dist/assets/style4.css +0 -1
- package/dist/chat.js +0 -824
- package/dist/package.json +0 -68
- package/doc_assets/2.png +0 -0
- package/doc_assets/demo.md +0 -27
- package/doc_assets/demos/dist-app/assets/index.Dh-ZAS9Z.css +0 -2
- package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js +0 -23699
- package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js.map +0 -1
- package/doc_assets/demos/dist-app/index.html +0 -14
- package/doc_assets/demos/dist-app/vite.svg +0 -1
- package/doc_assets/images/1.png +0 -0
- package/doc_assets/images/3.png +0 -0
- package/doc_assets/images/component-screenshot.png +0 -1
- package/doc_assets/install.md +0 -5
- package/doc_assets//346/226/271/346/241/210//344/274/230/345/214/226/346/226/271/346/241/210-/345/244/232/344/274/232/350/257/235SSE/350/277/236/346/216/245/347/256/241/347/220/206.md +0 -504
- package/eslint.config.js +0 -92
- package/index.html +0 -13
- package/package.json.demo-backup +0 -109
- package/postcss.config.cjs +0 -19
- package/public/icons/answerAwartar.png +0 -0
- package/public/icons/docx-file.png +0 -0
- package/public/icons/folder.png +0 -0
- package/public/icons/html.png +0 -0
- package/public/icons/image.png +0 -0
- package/public/icons/jpg-file.png +0 -0
- package/public/icons/json.png +0 -0
- package/public/icons/md.png +0 -0
- package/public/icons/pdf.png +0 -0
- package/public/icons/pptx.png +0 -0
- package/public/icons/questionAwartar.png +0 -0
- package/public/icons/sheets.png +0 -0
- package/public/icons/txt.png +0 -0
- package/public/icons/xlsx.png +0 -0
- package/public/vite.svg +0 -1
- package/public/worker/pdf.worker.min.js +0 -22
- package/scripts/README.md +0 -133
- package/scripts/build-demo.js +0 -88
- package/scripts/decrypt-api-key.js +0 -95
- package/scripts/demo-selector.js +0 -216
- package/scripts/dev-demo.js +0 -76
- package/scripts/preview-demo.js +0 -130
- package/scripts/run-demo.bat +0 -34
- package/src/assets/img/close.png +0 -0
- package/src/assets/img/database.png +0 -0
- package/src/assets/img/downArrow.png +0 -0
- package/src/assets/img/downLoad.png +0 -0
- package/src/assets/img/excel.png +0 -0
- package/src/assets/img/graphIcon.png +0 -0
- package/src/assets/img/img.png +0 -0
- package/src/assets/img/pdf.png +0 -0
- package/src/assets/img/ppt.png +0 -0
- package/src/assets/img/singleQa.png +0 -0
- package/src/assets/img/txt.png +0 -0
- package/src/assets/img/webSearch.png +0 -0
- package/src/assets/img/word.png +0 -0
- package/src/assets/login/homeBg.png +0 -0
- package/src/assets/login/left.jpg +0 -0
- package/src/assets/login/logoImg.png +0 -0
- package/src/examples/ConversationAssistantPage/index.tsx +0 -41
- package/src/examples/Demo/index.tsx +0 -12
- package/src/examples/LoginPage/index.tsx +0 -18
- package/src/examples/chat/components/DrawerGraphPreview.tsx +0 -78
- package/src/examples/chat/index.tsx +0 -154
- package/src/examples/chat/logo03.png +0 -0
- package/src/examples/gientechStreamFilesReader/index.tsx +0 -951
- package/src/examples/headlessChat/index.tsx +0 -234
- package/src/examples/ragDatabaseDataPage/index.tsx +0 -40
- package/src/examples/ragDatabaseIdPage/index.tsx +0 -47
- package/src/examples/ragDatabasePage/index.tsx +0 -36
- package/src/examples/ragModelManagePage/index.tsx +0 -38
- package/src/examples/ragSearchPage/index.tsx +0 -0
- package/src/examples/ragSensitiveWordsPage/index.tsx +0 -32
- package/src/examples/streamFiles/index.tsx +0 -417
- package/src/lib_enter.ts +0 -43
- package/src/main.tsx +0 -5
- package/src/main.tsx.backup +0 -5
- package/src/modules/CHAT_UNIFICATION_PLAN.md +0 -324
- package/src/modules/assistantConfig/assets/databse.svg +0 -6
- package/src/modules/assistantConfig/assets/empty.png +0 -0
- package/src/modules/assistantConfig/assets/graph.svg +0 -4
- package/src/modules/assistantConfig/assets/knowledge.svg +0 -4
- package/src/modules/assistantConfig/assets/sensitive.svg +0 -5
- package/src/modules/assistantConfig/components/Database.tsx +0 -171
- package/src/modules/assistantConfig/components/Graph.tsx +0 -177
- package/src/modules/assistantConfig/components/Knowledge.tsx +0 -276
- package/src/modules/assistantConfig/components/NotFoundContent.tsx +0 -21
- package/src/modules/assistantConfig/components/Paragraph.tsx +0 -51
- package/src/modules/assistantConfig/components/ParamsItem.tsx +0 -39
- package/src/modules/assistantConfig/components/ResourceBinderItem.tsx +0 -133
- package/src/modules/assistantConfig/components/SearchableSelector.tsx +0 -500
- package/src/modules/assistantConfig/components/Sensitive.tsx +0 -221
- package/src/modules/assistantConfig/components/SliderInput.tsx +0 -65
- package/src/modules/assistantConfig/constants.tsx +0 -75
- package/src/modules/assistantConfig/index.tsx +0 -710
- package/src/modules/assistantConfig/server.ts +0 -262
- package/src/modules/chat/Conversations/Item.tsx +0 -167
- package/src/modules/chat/Conversations/List.tsx +0 -210
- package/src/modules/chat/Conversations/groupByTime.ts +0 -39
- package/src/modules/chat/Conversations/index.tsx +0 -252
- package/src/modules/chat/ReferenceBar.tsx +0 -622
- package/src/modules/chat/constants.tsx +0 -52
- package/src/modules/chat/data.txt +0 -82
- package/src/modules/chat/index.tsx +0 -2054
- package/src/modules/chat/referenceCom/DeleteModal.tsx +0 -75
- package/src/modules/chat/referenceCom/DrawerContent.tsx +0 -136
- package/src/modules/chat/referenceCom/DrawerDatabase.tsx +0 -102
- package/src/modules/chat/referenceCom/DrawerGraphPreview.tsx +0 -86
- package/src/modules/chat/referenceCom/DrawerPreview.tsx +0 -73
- package/src/modules/chat/referenceCom/DrawerTitle.tsx +0 -26
- package/src/modules/chat/referenceCom/RenameModal.tsx +0 -86
- package/src/modules/chat/referenceCom/TagCom.tsx +0 -30
- package/src/modules/chat/style.less +0 -3
- package/src/modules/chat/types.ts +0 -17
- package/src/modules/chat/utils/index.ts +0 -348
- package/src/modules/database/CreateModal.tsx +0 -403
- package/src/modules/database/assets/Doris.png +0 -0
- package/src/modules/database/assets/PostgreSQL.png +0 -0
- package/src/modules/database/assets/SQLServer.png +0 -0
- package/src/modules/database/assets/database.svg +0 -11
- package/src/modules/database/assets/database_add.svg +0 -53
- package/src/modules/database/assets/database_connect.svg +0 -66
- package/src/modules/database/assets/database_upload.svg +0 -29
- package/src/modules/database/assets/empty.png +0 -0
- package/src/modules/database/assets/mysql.svg +0 -14
- package/src/modules/database/index.tsx +0 -477
- package/src/modules/database/server.ts +0 -196
- package/src/modules/databaseId/CustomCom.tsx +0 -156
- package/src/modules/databaseId/EditConfig.tsx +0 -280
- package/src/modules/databaseId/UploadDrawer.tsx +0 -535
- package/src/modules/databaseId/assets/aiOptimize.svg +0 -10
- package/src/modules/databaseId/assets/empty.png +0 -0
- package/src/modules/databaseId/assets/template.svg +0 -6
- package/src/modules/databaseId/assets/upload.svg +0 -9
- package/src/modules/databaseId/assets/useTemp.svg +0 -6
- package/src/modules/databaseId/index.tsx +0 -769
- package/src/modules/databaseId/server.ts +0 -286
- package/src/modules/databaseId/style.css +0 -5
- package/src/modules/databaseTable/EditRowDrawer.tsx +0 -124
- package/src/modules/databaseTable/index.tsx +0 -359
- package/src/modules/databaseTable/server.ts +0 -180
- package/src/modules/headlessChat/ReferenceBar.tsx +0 -783
- package/src/modules/headlessChat/constants.tsx +0 -54
- package/src/modules/headlessChat/index.tsx +0 -1706
- package/src/modules/headlessChat/referenceCom/DeleteModal.tsx +0 -75
- package/src/modules/headlessChat/referenceCom/DrawerContent.tsx +0 -136
- package/src/modules/headlessChat/referenceCom/DrawerDatabase.tsx +0 -102
- package/src/modules/headlessChat/referenceCom/DrawerGraphPreview.tsx +0 -86
- package/src/modules/headlessChat/referenceCom/DrawerPreview.tsx +0 -73
- package/src/modules/headlessChat/referenceCom/DrawerTitle.tsx +0 -26
- package/src/modules/headlessChat/referenceCom/RenameModal.tsx +0 -86
- package/src/modules/headlessChat/referenceCom/TagCom.tsx +0 -30
- package/src/modules/headlessChat/style.less +0 -3
- package/src/modules/headlessChat/types.ts +0 -23
- package/src/modules/headlessChat/utils/index.ts +0 -348
- package/src/modules/login/components/Login/LoginBox/index.tsx +0 -102
- package/src/modules/login/components/Login/RegisterBox/index.tsx +0 -180
- package/src/modules/login/components/Login/index.tsx +0 -100
- package/src/modules/login/index.tsx +0 -106
- package/src/modules/login/style.css +0 -3
- package/src/modules/login/useServices.ts +0 -53
- package/src/modules/login/utils.ts +0 -42
- package/src/modules/modelManage/ConfigDrawer.tsx +0 -249
- package/src/modules/modelManage/ReplaceModal.tsx +0 -124
- package/src/modules/modelManage/assets/empty.png +0 -0
- package/src/modules/modelManage/const.ts +0 -51
- package/src/modules/modelManage/index.tsx +0 -606
- package/src/modules/modelManage/server.ts +0 -223
- package/src/modules/nodegraph/index.tsx +0 -1
- package/src/modules/search/assets/Icon-history.svg +0 -8
- package/src/modules/search/assets/answerAwartar.png +0 -0
- package/src/modules/search/assets/doc.png +0 -0
- package/src/modules/search/assets/genera.gif +0 -0
- package/src/modules/search/assets/icon-robot.svg +0 -9
- package/src/modules/search/assets/icon-search-bar.svg +0 -14
- package/src/modules/search/assets/icon-sub-title.svg +0 -3
- package/src/modules/search/assets/icon-title.svg +0 -9
- package/src/modules/search/assets/icon-zoomOut.svg +0 -9
- package/src/modules/search/assets/iconAi.svg +0 -9
- package/src/modules/search/assets/pdf.png +0 -0
- package/src/modules/search/assets/ppt.png +0 -0
- package/src/modules/search/assets/search.svg +0 -3
- package/src/modules/search/assets/selected.svg +0 -4
- package/src/modules/search/assets/txt.png +0 -0
- package/src/modules/search/assets/xls.png +0 -0
- package/src/modules/search/components/AssisSelect.tsx +0 -137
- package/src/modules/search/components/Editor/ChatViewEditor.tsx +0 -261
- package/src/modules/search/components/Editor/aichat.css +0 -1
- package/src/modules/search/components/Editor/constant.ts +0 -13
- package/src/modules/search/components/Editor/index.tsx +0 -113
- package/src/modules/search/components/Editor/plugins/autofomatRules.ts +0 -332
- package/src/modules/search/components/Editor/plugins/convertImgPlugins.tsx +0 -20
- package/src/modules/search/components/Editor/plugins/createIndexes.tsx +0 -38
- package/src/modules/search/components/Editor/plugins/displayer.ts +0 -298
- package/src/modules/search/components/Editor/plugins/imageClick.tsx +0 -32
- package/src/modules/search/components/Editor/plugins/myplugin.tsx +0 -98
- package/src/modules/search/components/Editor/ui/avatar.tsx +0 -19
- package/src/modules/search/components/Editor/ui/blockquote-element.tsx +0 -21
- package/src/modules/search/components/Editor/ui/button.tsx +0 -58
- package/src/modules/search/components/Editor/ui/calendar.tsx +0 -68
- package/src/modules/search/components/Editor/ui/caption.tsx +0 -46
- package/src/modules/search/components/Editor/ui/checkbox.tsx +0 -27
- package/src/modules/search/components/Editor/ui/code-block-combobox.tsx +0 -188
- package/src/modules/search/components/Editor/ui/code-block-element.css +0 -434
- package/src/modules/search/components/Editor/ui/code-block-element.tsx +0 -39
- package/src/modules/search/components/Editor/ui/code-leaf.tsx +0 -24
- package/src/modules/search/components/Editor/ui/code-line-element.tsx +0 -10
- package/src/modules/search/components/Editor/ui/code-syntax-leaf.tsx +0 -21
- package/src/modules/search/components/Editor/ui/column-element.tsx +0 -30
- package/src/modules/search/components/Editor/ui/column-group-element.tsx +0 -94
- package/src/modules/search/components/Editor/ui/command.tsx +0 -75
- package/src/modules/search/components/Editor/ui/comment-avatar.tsx +0 -22
- package/src/modules/search/components/Editor/ui/comment-create-form.tsx +0 -37
- package/src/modules/search/components/Editor/ui/comment-item.tsx +0 -74
- package/src/modules/search/components/Editor/ui/comment-leaf.tsx +0 -49
- package/src/modules/search/components/Editor/ui/comment-more-dropdown.tsx +0 -42
- package/src/modules/search/components/Editor/ui/comment-reply-items.tsx +0 -22
- package/src/modules/search/components/Editor/ui/comment-resolve-button.tsx +0 -32
- package/src/modules/search/components/Editor/ui/comment-value.tsx +0 -34
- package/src/modules/search/components/Editor/ui/comments-popover.tsx +0 -63
- package/src/modules/search/components/Editor/ui/date-element.tsx +0 -83
- package/src/modules/search/components/Editor/ui/dialog.tsx +0 -63
- package/src/modules/search/components/Editor/ui/draggable.tsx +0 -177
- package/src/modules/search/components/Editor/ui/dropdown-menu.tsx +0 -180
- package/src/modules/search/components/Editor/ui/emoji-input-element.tsx +0 -85
- package/src/modules/search/components/Editor/ui/excalidraw-element.tsx +0 -28
- package/src/modules/search/components/Editor/ui/fixed-toolbar-buttons.tsx +0 -76
- package/src/modules/search/components/Editor/ui/fixed-toolbar.tsx +0 -8
- package/src/modules/search/components/Editor/ui/floating-toolbar-buttons.tsx +0 -51
- package/src/modules/search/components/Editor/ui/floating-toolbar.tsx +0 -77
- package/src/modules/search/components/Editor/ui/heading-element.tsx +0 -48
- package/src/modules/search/components/Editor/ui/highlight-leaf.tsx +0 -17
- package/src/modules/search/components/Editor/ui/hr-element.tsx +0 -30
- package/src/modules/search/components/Editor/ui/icons.tsx +0 -267
- package/src/modules/search/components/Editor/ui/image-element.tsx +0 -74
- package/src/modules/search/components/Editor/ui/inline-combobox.tsx +0 -368
- package/src/modules/search/components/Editor/ui/input.tsx +0 -25
- package/src/modules/search/components/Editor/ui/insert-dropdown-menu.tsx +0 -218
- package/src/modules/search/components/Editor/ui/kbd-leaf.tsx +0 -20
- package/src/modules/search/components/Editor/ui/link-element.tsx +0 -29
- package/src/modules/search/components/Editor/ui/link-floating-toolbar.tsx +0 -161
- package/src/modules/search/components/Editor/ui/list-element.tsx +0 -30
- package/src/modules/search/components/Editor/ui/mark-toolbar-button.tsx +0 -24
- package/src/modules/search/components/Editor/ui/media-embed-element.tsx +0 -133
- package/src/modules/search/components/Editor/ui/media-popover.tsx +0 -97
- package/src/modules/search/components/Editor/ui/mention-element.tsx +0 -43
- package/src/modules/search/components/Editor/ui/mention-input-element.tsx +0 -141
- package/src/modules/search/components/Editor/ui/mode-dropdown-menu.tsx +0 -93
- package/src/modules/search/components/Editor/ui/more-dropdown-menu.tsx +0 -67
- package/src/modules/search/components/Editor/ui/paragraph-element.tsx +0 -4
- package/src/modules/search/components/Editor/ui/placeholder.tsx +0 -52
- package/src/modules/search/components/Editor/ui/popover.tsx +0 -32
- package/src/modules/search/components/Editor/ui/resizable.tsx +0 -66
- package/src/modules/search/components/Editor/ui/separator.tsx +0 -25
- package/src/modules/search/components/Editor/ui/style.less +0 -12
- package/src/modules/search/components/Editor/ui/table-cell-element.tsx +0 -143
- package/src/modules/search/components/Editor/ui/table-element.tsx +0 -243
- package/src/modules/search/components/Editor/ui/table-row-element.tsx +0 -22
- package/src/modules/search/components/Editor/ui/tableValue.tsx +0 -135
- package/src/modules/search/components/Editor/ui/todo-list-element.tsx +0 -43
- package/src/modules/search/components/Editor/ui/toggle-element.tsx +0 -31
- package/src/modules/search/components/Editor/ui/toolbar.tsx +0 -157
- package/src/modules/search/components/Editor/ui/tooltip.tsx +0 -65
- package/src/modules/search/components/Editor/ui/turn-into-dropdown-menu.tsx +0 -160
- package/src/modules/search/components/Editor/ui/with-draggables.tsx +0 -175
- package/src/modules/search/components/FileList.tsx +0 -287
- package/src/modules/search/components/ImageGroupView/index.tsx +0 -85
- package/src/modules/search/components/ResultContent.tsx +0 -232
- package/src/modules/search/components/SearchInput.tsx +0 -232
- package/src/modules/search/components/SearchLanding.tsx +0 -74
- package/src/modules/search/components/SearchView.tsx +0 -563
- package/src/modules/search/components/SimpleEditor.tsx +0 -158
- package/src/modules/search/components/SimpleFileList.tsx +0 -215
- package/src/modules/search/index.tsx +0 -10
- package/src/modules/search/reademe.md +0 -1
- package/src/modules/search/servers/apis.tsx +0 -19
- package/src/modules/search/servers/index.ts +0 -184
- package/src/modules/search/style.less +0 -503
- package/src/modules/search/type.ts +0 -22
- package/src/modules/search/utils.ts +0 -34
- package/src/modules/sensitive/index.tsx +0 -313
- package/src/modules/sensitive/server.ts +0 -122
- package/src/modules/streamFilesReader/GientechStreamReader.tsx +0 -1625
- package/src/modules/streamFilesReader/components/Header/Toolbar.tsx +0 -0
- package/src/modules/streamFilesReader/components/Header/index.tsx +0 -297
- package/src/modules/streamFilesReader/index.tsx +0 -3
- package/src/style.css +0 -6
- package/src/type.d.ts +0 -0
- package/src/utils/commonFn.tsx +0 -111
- package/src/utils/decryptApiKey.ts +0 -40
- package/src/utils/gientechCommon/components/AppError.tsx +0 -32
- package/src/utils/gientechCommon/components/AppLoading.tsx +0 -75
- package/src/utils/gientechCommon/components/DeleteModal.tsx +0 -75
- package/src/utils/gientechCommon/components/DisplayError.tsx +0 -33
- package/src/utils/gientechCommon/components/DisplayLoading.tsx +0 -38
- package/src/utils/gientechCommon/components/FeedBackModal.tsx +0 -319
- package/src/utils/gientechCommon/components/FileCardCommon.tsx +0 -82
- package/src/utils/gientechCommon/components/FileManager/index.tsx +0 -400
- package/src/utils/gientechCommon/components/FileManager/style.css +0 -5
- package/src/utils/gientechCommon/components/Messages/GientechNewChatWelcome.tsx +0 -581
- package/src/utils/gientechCommon/components/Messages/ReferenceCard.tsx +0 -359
- package/src/utils/gientechCommon/components/Messages/RetriveItem.tsx +0 -245
- package/src/utils/gientechCommon/components/Messages/WebRetriveItem.tsx +0 -209
- package/src/utils/gientechCommon/components/Messages/defaultBot.png +0 -0
- package/src/utils/gientechCommon/components/Messages/defaultStyleSet.tsx +0 -148
- package/src/utils/gientechCommon/components/Messages/defaultWeLogo.svg +0 -14
- package/src/utils/gientechCommon/components/RenameModal.tsx +0 -86
- package/src/utils/gientechCommon/components/style.less +0 -11
- package/src/utils/gientechCommon/configs/commonConfig.ts +0 -2
- package/src/utils/gientechCommon/configs/senderConfig.ts +0 -0
- package/src/utils/gientechCommon/configs/stylesConfig.ts +0 -142
- package/src/utils/gientechCommon/hooks/AichatUseController.tsx +0 -417
- package/src/utils/gientechCommon/hooks/useFileDisplayTools.tsx +0 -204
- package/src/utils/gientechCommon/hooks/useFileManager.ts +0 -193
- package/src/utils/gientechCommon/slate/converters/deserializers.ts +0 -763
- package/src/utils/gientechCommon/slate/converters/mockData.ts +0 -232
- package/src/utils/gientechCommon/slate/converters/slateConverters.ts +0 -258
- package/src/utils/gientechCommon/slate/richElements/index.tsx +0 -499
- package/src/utils/gientechCommon/utils/fileUtils.ts +0 -86
- package/src/utils/gientechCommon/utils/request.ts +0 -37
- package/src/utils/gientechCommon/utils/serverFn.ts +0 -172
- package/src/utils/index.tsx +0 -142
- package/src/utils/testconfigs/demologin/index.tsx +0 -32
- package/src/utils/testconfigs/index.ts +0 -59
- package/src/vite-env.d.ts +0 -42
- package/stats.html +0 -4949
- package/tailwind.config.js +0 -170
- package/tsconfig.app.json +0 -30
- package/tsconfig.app.tsbuildinfo +0 -11
- package/tsconfig.json +0 -13
- package/tsconfig.node.json +0 -22
- package/tsconfig.node.tsbuildinfo +0 -1
- package/vite.config.app.ts +0 -93
- package/vite.config.ts +0 -232
- package/workflows/release.yml +0 -60
- package//346/215/242/350/241/214/346/240/274/345/274/217/344/277/235/346/214/201/344/274/230/345/214/226/346/226/271/346/241/210.md +0 -359
- /package/{dist/assets → assets}/Doris.png +0 -0
- /package/{dist/assets → assets}/PostgreSQL.png +0 -0
- /package/{dist/assets → assets}/SQLServer.png +0 -0
- /package/{dist/assets → assets}/database.svg +0 -0
- /package/{dist/assets → assets}/database_add.svg +0 -0
- /package/{dist/assets → assets}/database_connect.svg +0 -0
- /package/{dist/assets → assets}/database_upload.svg +0 -0
- /package/{dist/assets → assets}/databse.svg +0 -0
- /package/{dist/assets → assets}/defaultWeLogo.svg +0 -0
- /package/{dist/assets → assets}/empty.png +0 -0
- /package/{dist/assets → assets}/graph.svg +0 -0
- /package/{dist/assets → assets}/homeBg.png +0 -0
- /package/{dist/assets → assets}/index-B2yNvzjy.js +0 -0
- /package/{dist/assets → assets}/index-BKe5FgcC.js +0 -0
- /package/{dist/assets → assets}/index-CpW6Dhpp.js +0 -0
- /package/{dist/assets → assets}/index-D72cKELw.js +0 -0
- /package/{dist/assets → assets}/index-DdVFXD_y.js +0 -0
- /package/{dist/assets → assets}/index-DrkSoKz6.js +0 -0
- /package/{dist/assets → assets}/index-ZopkeZtI.js +0 -0
- /package/{dist/assets → assets}/index-g-SUxfJH.js +0 -0
- /package/{dist/assets → assets}/index-j0kQJd0a.js +0 -0
- /package/{dist/assets → assets}/knowledge.svg +0 -0
- /package/{dist/assets → assets}/left.jpg +0 -0
- /package/{dist/assets → assets}/logoImg.png +0 -0
- /package/{dist/assets → assets}/mysql.svg +0 -0
- /package/{dist/assets → assets}/plus-V9zUoSq6.js +0 -0
- /package/{dist/assets → assets}/sensitive.svg +0 -0
- /package/{dist/assets → assets}/style-CGmZ5osp.js +0 -0
- /package/{dist/assets → assets}/style2.css +0 -0
- /package/{dist/assets → assets}/style3.css +0 -0
- /package/{dist/assets → assets}/worker-BbpylX7l.js +0 -0
- /package/{dist/assets → assets}/x-CnaaLGJF.js +0 -0
- /package/{dist/assistantConfig.d.ts → assistantConfig.d.ts} +0 -0
- /package/{dist/assistantConfig.js → assistantConfig.js} +0 -0
- /package/{dist/chat.d.ts → chat.d.ts} +0 -0
- /package/{dist/database.d.ts → database.d.ts} +0 -0
- /package/{dist/database.js → database.js} +0 -0
- /package/{dist/databaseId.d.ts → databaseId.d.ts} +0 -0
- /package/{dist/databaseTable.d.ts → databaseTable.d.ts} +0 -0
- /package/{dist/databaseTable.js → databaseTable.js} +0 -0
- /package/{dist/icons → icons}/answerAwartar.png +0 -0
- /package/{dist/icons → icons}/docx-file.png +0 -0
- /package/{dist/icons → icons}/folder.png +0 -0
- /package/{dist/icons → icons}/html.png +0 -0
- /package/{dist/icons → icons}/image.png +0 -0
- /package/{dist/icons → icons}/jpg-file.png +0 -0
- /package/{dist/icons → icons}/json.png +0 -0
- /package/{dist/icons → icons}/md.png +0 -0
- /package/{dist/icons → icons}/pdf.png +0 -0
- /package/{dist/icons → icons}/pptx.png +0 -0
- /package/{dist/icons → icons}/questionAwartar.png +0 -0
- /package/{dist/icons → icons}/sheets.png +0 -0
- /package/{dist/icons → icons}/txt.png +0 -0
- /package/{dist/icons → icons}/xlsx.png +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/modelManage.d.ts → modelManage.d.ts} +0 -0
- /package/{dist/modelManage.js → modelManage.js} +0 -0
- /package/{dist/sensitive.d.ts → sensitive.d.ts} +0 -0
- /package/{dist/sensitive.js → sensitive.js} +0 -0
- /package/{dist/streamFilesReader.d.ts → streamFilesReader.d.ts} +0 -0
- /package/{dist/vite.svg → vite.svg} +0 -0
- /package/{dist/worker → worker}/pdf.worker.min.js +0 -0
|
@@ -1,951 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { GientechStreamReader } from '../../modules/streamFilesReader';
|
|
3
|
-
import { AppTheme } from '@mxmweb/zui';
|
|
4
|
-
import type { Annotation, MDAnnotation, TableAnnotation } from '../../../../apps/FViewer/dist/core/types';
|
|
5
|
-
import { rag_dev_server } from '../../utils/testconfigs';
|
|
6
|
-
// 注意:Worker 应该由最终调用方在应用入口处注册
|
|
7
|
-
// import { registerPDFWorker } from '@mxmweb/fviewer';
|
|
8
|
-
// registerPDFWorker('/worker/pdf.worker.min.js');
|
|
9
|
-
|
|
10
|
-
// 自定义Loading组件示例
|
|
11
|
-
const CustomLoadingComponent: React.FC<{
|
|
12
|
-
status: string;
|
|
13
|
-
theme: AppTheme;
|
|
14
|
-
}> = ({ status, theme }) => {
|
|
15
|
-
return (
|
|
16
|
-
<div
|
|
17
|
-
style={{
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
height: '100%',
|
|
23
|
-
padding: '40px',
|
|
24
|
-
background: theme.colors.background,
|
|
25
|
-
}}
|
|
26
|
-
>
|
|
27
|
-
{/* 自定义加载动画 */}
|
|
28
|
-
<div
|
|
29
|
-
style={{
|
|
30
|
-
position: 'relative',
|
|
31
|
-
width: '100px',
|
|
32
|
-
height: '100px',
|
|
33
|
-
marginBottom: '24px',
|
|
34
|
-
}}
|
|
35
|
-
>
|
|
36
|
-
{/* 旋转的圆环 */}
|
|
37
|
-
<div
|
|
38
|
-
style={{
|
|
39
|
-
width: '100%',
|
|
40
|
-
height: '100%',
|
|
41
|
-
border: `4px solid ${theme.colors.border}`,
|
|
42
|
-
borderTop: `4px solid ${theme.colors.primary}`,
|
|
43
|
-
borderRadius: '50%',
|
|
44
|
-
animation: 'spin 1s linear infinite',
|
|
45
|
-
}}
|
|
46
|
-
/>
|
|
47
|
-
|
|
48
|
-
{/* 中心图标 */}
|
|
49
|
-
<div
|
|
50
|
-
style={{
|
|
51
|
-
position: 'absolute',
|
|
52
|
-
top: '50%',
|
|
53
|
-
left: '50%',
|
|
54
|
-
transform: 'translate(-50%, -50%)',
|
|
55
|
-
fontSize: '24px',
|
|
56
|
-
color: theme.colors.primary,
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
📄
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
{/* 状态文本 */}
|
|
64
|
-
<div
|
|
65
|
-
style={{
|
|
66
|
-
fontSize: '18px',
|
|
67
|
-
fontWeight: '600',
|
|
68
|
-
color: theme.colors.text,
|
|
69
|
-
marginBottom: '12px',
|
|
70
|
-
textAlign: 'center',
|
|
71
|
-
}}
|
|
72
|
-
>
|
|
73
|
-
{status}
|
|
74
|
-
</div>
|
|
75
|
-
|
|
76
|
-
{/* 进度条 */}
|
|
77
|
-
<div
|
|
78
|
-
style={{
|
|
79
|
-
width: '300px',
|
|
80
|
-
height: '6px',
|
|
81
|
-
background: theme.colors.border,
|
|
82
|
-
borderRadius: '3px',
|
|
83
|
-
overflow: 'hidden',
|
|
84
|
-
position: 'relative',
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
<div
|
|
88
|
-
style={{
|
|
89
|
-
width: '60%',
|
|
90
|
-
height: '100%',
|
|
91
|
-
background: `linear-gradient(90deg, ${theme.colors.primary}, ${theme.colors.info})`,
|
|
92
|
-
borderRadius: '3px',
|
|
93
|
-
animation: 'loading-progress 2s ease-in-out infinite',
|
|
94
|
-
}}
|
|
95
|
-
/>
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
{/* 动画样式 */}
|
|
99
|
-
<style>{`
|
|
100
|
-
@keyframes spin {
|
|
101
|
-
0% { transform: rotate(0deg); }
|
|
102
|
-
100% { transform: rotate(360deg); }
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@keyframes loading-progress {
|
|
106
|
-
0% { transform: translateX(-100%); }
|
|
107
|
-
50% { transform: translateX(0%); }
|
|
108
|
-
100% { transform: translateX(100%); }
|
|
109
|
-
}
|
|
110
|
-
`}</style>
|
|
111
|
-
</div>
|
|
112
|
-
);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
// 自定义Error组件示例
|
|
116
|
-
const CustomErrorComponent: React.FC<{
|
|
117
|
-
error: string;
|
|
118
|
-
theme: AppTheme;
|
|
119
|
-
}> = ({ error, theme }) => {
|
|
120
|
-
return (
|
|
121
|
-
<div
|
|
122
|
-
style={{
|
|
123
|
-
display: 'flex',
|
|
124
|
-
flexDirection: 'column',
|
|
125
|
-
alignItems: 'center',
|
|
126
|
-
justifyContent: 'center',
|
|
127
|
-
height: '100%',
|
|
128
|
-
padding: '40px',
|
|
129
|
-
background: theme.colors.background,
|
|
130
|
-
}}
|
|
131
|
-
>
|
|
132
|
-
{/* 错误图标 */}
|
|
133
|
-
<div
|
|
134
|
-
style={{
|
|
135
|
-
width: '80px',
|
|
136
|
-
height: '80px',
|
|
137
|
-
borderRadius: '50%',
|
|
138
|
-
background: theme.colors.error,
|
|
139
|
-
display: 'flex',
|
|
140
|
-
alignItems: 'center',
|
|
141
|
-
justifyContent: 'center',
|
|
142
|
-
marginBottom: '24px',
|
|
143
|
-
fontSize: '32px',
|
|
144
|
-
color: 'white',
|
|
145
|
-
}}
|
|
146
|
-
>
|
|
147
|
-
⚠️
|
|
148
|
-
</div>
|
|
149
|
-
|
|
150
|
-
{/* 错误标题 */}
|
|
151
|
-
<div
|
|
152
|
-
style={{
|
|
153
|
-
fontSize: '20px',
|
|
154
|
-
fontWeight: '600',
|
|
155
|
-
color: theme.colors.error,
|
|
156
|
-
marginBottom: '12px',
|
|
157
|
-
textAlign: 'center',
|
|
158
|
-
}}
|
|
159
|
-
>
|
|
160
|
-
加载失败
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
{/* 错误详情 */}
|
|
164
|
-
<div
|
|
165
|
-
style={{
|
|
166
|
-
fontSize: '14px',
|
|
167
|
-
color: theme.colors.text,
|
|
168
|
-
textAlign: 'center',
|
|
169
|
-
maxWidth: '400px',
|
|
170
|
-
lineHeight: '1.5',
|
|
171
|
-
}}
|
|
172
|
-
>
|
|
173
|
-
{error}
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
{/* 重试按钮 */}
|
|
177
|
-
<button
|
|
178
|
-
style={{
|
|
179
|
-
marginTop: '24px',
|
|
180
|
-
padding: '12px 24px',
|
|
181
|
-
background: theme.colors.primary,
|
|
182
|
-
color: 'white',
|
|
183
|
-
border: 'none',
|
|
184
|
-
borderRadius: '6px',
|
|
185
|
-
fontSize: '14px',
|
|
186
|
-
fontWeight: '500',
|
|
187
|
-
cursor: 'pointer',
|
|
188
|
-
transition: 'background-color 0.2s',
|
|
189
|
-
}}
|
|
190
|
-
onMouseEnter={e => {
|
|
191
|
-
e.currentTarget.style.background = theme.colors.info;
|
|
192
|
-
}}
|
|
193
|
-
onMouseLeave={e => {
|
|
194
|
-
e.currentTarget.style.background = theme.colors.primary;
|
|
195
|
-
}}
|
|
196
|
-
>
|
|
197
|
-
重新加载
|
|
198
|
-
</button>
|
|
199
|
-
</div>
|
|
200
|
-
);
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
// 测试标注数据
|
|
204
|
-
export const streamAnnotations: Annotation[] =[
|
|
205
|
-
{
|
|
206
|
-
"id": "f4b6f9516e0",
|
|
207
|
-
"pageNumber": 1,
|
|
208
|
-
"x": 0.4047,
|
|
209
|
-
"y": 0.481,
|
|
210
|
-
"width": 0.1898,
|
|
211
|
-
"height": 0.0172,
|
|
212
|
-
"content": "",
|
|
213
|
-
"color": "#C3F74F"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"id": "4b6f9516e0d",
|
|
217
|
-
"pageNumber": 1,
|
|
218
|
-
"x": 0.1495,
|
|
219
|
-
"y": 0.5243,
|
|
220
|
-
"width": 0.7003,
|
|
221
|
-
"height": 0.0534,
|
|
222
|
-
"content": "",
|
|
223
|
-
"color": "#C3F74F"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"id": "b6f9516e0d3",
|
|
227
|
-
"pageNumber": 1,
|
|
228
|
-
"x": 0.1495,
|
|
229
|
-
"y": 0.6057,
|
|
230
|
-
"width": 0.1763,
|
|
231
|
-
"height": 0.016,
|
|
232
|
-
"content": "",
|
|
233
|
-
"color": "#4FC3F7"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"id": "6f9516e0d32",
|
|
237
|
-
"pageNumber": 3,
|
|
238
|
-
"x": 0.1822,
|
|
239
|
-
"y": 0.1473,
|
|
240
|
-
"width": 0.4509,
|
|
241
|
-
"height": 0.0374,
|
|
242
|
-
"content": "",
|
|
243
|
-
"color": "#C3F74F"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"id": "f9516e0d32b",
|
|
247
|
-
"pageNumber": 3,
|
|
248
|
-
"x": 0.2275,
|
|
249
|
-
"y": 0.5825,
|
|
250
|
-
"width": 0.3762,
|
|
251
|
-
"height": 0.0214,
|
|
252
|
-
"content": "",
|
|
253
|
-
"color": "#4FC3F7"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"id": "9516e0d32b4",
|
|
257
|
-
"pageNumber": 4,
|
|
258
|
-
"x": 0.6902,
|
|
259
|
-
"y": 0.1467,
|
|
260
|
-
"width": 0.0311,
|
|
261
|
-
"height": 0.2179,
|
|
262
|
-
"content": "",
|
|
263
|
-
"color": "#4FC3F7"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"id": "516e0d32b44",
|
|
267
|
-
"pageNumber": 4,
|
|
268
|
-
"x": 0.1478,
|
|
269
|
-
"y": 0.7922,
|
|
270
|
-
"width": 0.7019,
|
|
271
|
-
"height": 0.0689,
|
|
272
|
-
"content": "",
|
|
273
|
-
"color": "#4FC3F7"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"id": "16e0d32b442",
|
|
277
|
-
"pageNumber": 5,
|
|
278
|
-
"x": 0.1495,
|
|
279
|
-
"y": 0.5137,
|
|
280
|
-
"width": 0.7003,
|
|
281
|
-
"height": 0.0695,
|
|
282
|
-
"content": "",
|
|
283
|
-
"color": "#4FC3F7"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"id": "6e0d32b442a",
|
|
287
|
-
"pageNumber": 6,
|
|
288
|
-
"x": 0.1495,
|
|
289
|
-
"y": 0.6805,
|
|
290
|
-
"width": 0.6952,
|
|
291
|
-
"height": 0.0315,
|
|
292
|
-
"content": "",
|
|
293
|
-
"color": "#4FC3F7"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"id": "e0d32b442a4",
|
|
297
|
-
"pageNumber": 6,
|
|
298
|
-
"x": 0.1478,
|
|
299
|
-
"y": 0.7173,
|
|
300
|
-
"width": 0.7019,
|
|
301
|
-
"height": 0.0315,
|
|
302
|
-
"content": "",
|
|
303
|
-
"color": "#4FC3F7"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"id": "0d32b442a43",
|
|
307
|
-
"pageNumber": 6,
|
|
308
|
-
"x": 0.1495,
|
|
309
|
-
"y": 0.7548,
|
|
310
|
-
"width": 0.7003,
|
|
311
|
-
"height": 0.0315,
|
|
312
|
-
"content": "",
|
|
313
|
-
"color": "#4FC3F7"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"id": "d32b442a43b",
|
|
317
|
-
"pageNumber": 6,
|
|
318
|
-
"x": 0.1495,
|
|
319
|
-
"y": 0.8165,
|
|
320
|
-
"width": 0.7003,
|
|
321
|
-
"height": 0.0315,
|
|
322
|
-
"content": "",
|
|
323
|
-
"color": "#4FC3F7"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"id": "32b442a43b6",
|
|
327
|
-
"pageNumber": 6,
|
|
328
|
-
"x": 0.1495,
|
|
329
|
-
"y": 0.8539,
|
|
330
|
-
"width": 0.7003,
|
|
331
|
-
"height": 0.0315,
|
|
332
|
-
"content": "",
|
|
333
|
-
"color": "#4FC3F7"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"id": "2b442a43b6e",
|
|
337
|
-
"pageNumber": 6,
|
|
338
|
-
"x": 0.2301,
|
|
339
|
-
"y": 0.8913,
|
|
340
|
-
"width": 0.6062,
|
|
341
|
-
"height": 0.0125,
|
|
342
|
-
"content": "",
|
|
343
|
-
"color": "#4FC3F7"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"id": "b442a43b6e3",
|
|
347
|
-
"pageNumber": 7,
|
|
348
|
-
"x": 0.1478,
|
|
349
|
-
"y": 0.0879,
|
|
350
|
-
"width": 0.2343,
|
|
351
|
-
"height": 0.0119,
|
|
352
|
-
"content": "",
|
|
353
|
-
"color": "#4FC3F7"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"id": "442a43b6e3f",
|
|
357
|
-
"pageNumber": 7,
|
|
358
|
-
"x": 0.1495,
|
|
359
|
-
"y": 0.1069,
|
|
360
|
-
"width": 0.6994,
|
|
361
|
-
"height": 0.0303,
|
|
362
|
-
"content": "",
|
|
363
|
-
"color": "#4FC3F7"
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
|
|
367
|
-
// 测试Markdown标注数据
|
|
368
|
-
export const streamMDAnnotations: MDAnnotation[] = [
|
|
369
|
-
{
|
|
370
|
-
id: 'md-anno-1',
|
|
371
|
-
start: 0,
|
|
372
|
-
end: 20, // 标注前20个字符
|
|
373
|
-
content: '这是第一个 Markdown 标注',
|
|
374
|
-
color: '#FFEB3B',
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
id: 'md-anno-2',
|
|
378
|
-
start: 50,
|
|
379
|
-
end: 70, // 标注第50-70个字符
|
|
380
|
-
content: '这是第二个 Markdown 标注',
|
|
381
|
-
color: '#A8E6CF',
|
|
382
|
-
},
|
|
383
|
-
];
|
|
384
|
-
|
|
385
|
-
// 测试表格标注数据
|
|
386
|
-
export const streamTableAnnotations: TableAnnotation[] = [
|
|
387
|
-
{
|
|
388
|
-
"id": "2bd1e2b0fed",
|
|
389
|
-
"offsets": [
|
|
390
|
-
[
|
|
391
|
-
0,
|
|
392
|
-
0
|
|
393
|
-
],
|
|
394
|
-
[
|
|
395
|
-
0,
|
|
396
|
-
1
|
|
397
|
-
],
|
|
398
|
-
[
|
|
399
|
-
0,
|
|
400
|
-
2
|
|
401
|
-
],
|
|
402
|
-
[
|
|
403
|
-
1,
|
|
404
|
-
0
|
|
405
|
-
],
|
|
406
|
-
[
|
|
407
|
-
1,
|
|
408
|
-
1
|
|
409
|
-
],
|
|
410
|
-
[
|
|
411
|
-
1,
|
|
412
|
-
2
|
|
413
|
-
],
|
|
414
|
-
[
|
|
415
|
-
2,
|
|
416
|
-
0
|
|
417
|
-
],
|
|
418
|
-
[
|
|
419
|
-
2,
|
|
420
|
-
1
|
|
421
|
-
],
|
|
422
|
-
[
|
|
423
|
-
2,
|
|
424
|
-
2
|
|
425
|
-
],
|
|
426
|
-
[
|
|
427
|
-
3,
|
|
428
|
-
0
|
|
429
|
-
],
|
|
430
|
-
[
|
|
431
|
-
3,
|
|
432
|
-
1
|
|
433
|
-
],
|
|
434
|
-
[
|
|
435
|
-
3,
|
|
436
|
-
2
|
|
437
|
-
],
|
|
438
|
-
[
|
|
439
|
-
4,
|
|
440
|
-
0
|
|
441
|
-
],
|
|
442
|
-
[
|
|
443
|
-
4,
|
|
444
|
-
1
|
|
445
|
-
],
|
|
446
|
-
[
|
|
447
|
-
4,
|
|
448
|
-
2
|
|
449
|
-
]
|
|
450
|
-
],
|
|
451
|
-
content: '这是表格标注',
|
|
452
|
-
color: '#FFEB3B',
|
|
453
|
-
},
|
|
454
|
-
];
|
|
455
|
-
|
|
456
|
-
export default function StreamPreview() {
|
|
457
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
458
|
-
|
|
459
|
-
// 可配置的参数
|
|
460
|
-
const [fileType, setFileType] = useState<'pdf'|'pdf_slides' | 'markdown' | 'markdown_table' | 'image' | 'html' | 'text'>('pdf');
|
|
461
|
-
|
|
462
|
-
// 统一的标注状态
|
|
463
|
-
const [annotations, setAnnotations] = useState<(Annotation | MDAnnotation | TableAnnotation)[]>([
|
|
464
|
-
...streamAnnotations,
|
|
465
|
-
...streamMDAnnotations,
|
|
466
|
-
...streamTableAnnotations,
|
|
467
|
-
]);
|
|
468
|
-
|
|
469
|
-
//http://10.15.12.13:9000/dev-rag-data/测试南自/电压和电池容量的关系.md/V0/电压和电池容量的关系.md
|
|
470
|
-
//http://10.15.12.13:9000/dev-rag-data/测试南自/中国电子规章制度汇编(2024版)-集团公司第二分册.pdf/V0/中国电子规章制度汇编(2024版)-集团公司第二分册.pdf
|
|
471
|
-
//http://10.15.12.13:9000/dev-rag-data/测试南自/服务发布专利具体步骤.md/V0/服务发布专利具体步骤.md
|
|
472
|
-
//http://10.15.12.13:9000/dev-rag-data/测试南自/测试文档.txt/V0/测试文档.txt
|
|
473
|
-
const [convertedFilePath, setConvertedFilePath] = useState(
|
|
474
|
-
'http://10.15.12.13:9000/dev-rag-data/合肥晶合演示JBB/一般_山地自行车的组装1.pdf/V0/一般_山地自行车的组装1.pdf'
|
|
475
|
-
);
|
|
476
|
-
const [fileName, setFileName] = useState('VR设备专题:Pancake迎来渗透加速,产业链受益硬件升级2023-02-02行业研报.pdf');
|
|
477
|
-
const [totalPages, setTotalPages] = useState(29); // 根据响应头更新为实际总页数
|
|
478
|
-
const [initialPage, setInitialPage] = useState(1);
|
|
479
|
-
const [pageO, setPageO] = useState(1);
|
|
480
|
-
const [initialZoom, setInitialZoom] = useState(1.5);
|
|
481
|
-
const [authorization, setAuthorization] = useState(
|
|
482
|
-
rag_dev_server.token
|
|
483
|
-
);
|
|
484
|
-
const [streamApiUrl, setStreamApiUrl] = useState(
|
|
485
|
-
'/proxy/index/knowledgeBase/file/stream'
|
|
486
|
-
);
|
|
487
|
-
const [pageSize, setPageSize] = useState(5); // 修改为5,与网络请求一致
|
|
488
|
-
|
|
489
|
-
const handleEventsEmit = (name: string, data?: any, innerFn?: any) => {
|
|
490
|
-
console.log('GientechStreamReader 事件:', name, data);
|
|
491
|
-
|
|
492
|
-
switch (name) {
|
|
493
|
-
case 'viewer:close':
|
|
494
|
-
setIsVisible(false);
|
|
495
|
-
break;
|
|
496
|
-
case 'pageChange':
|
|
497
|
-
console.log('页面变化事件:', data);
|
|
498
|
-
console.log('当前页面状态:', data.pageNumber, '总页数:', data.totalPages);
|
|
499
|
-
break;
|
|
500
|
-
case 'zoomChange':
|
|
501
|
-
console.log('缩放变化:', data);
|
|
502
|
-
break;
|
|
503
|
-
case 'markdown_scroll_to_top':
|
|
504
|
-
console.log('Markdown滚动到顶部');
|
|
505
|
-
break;
|
|
506
|
-
case 'markdown_scroll_to_bottom':
|
|
507
|
-
console.log('Markdown滚动到底部');
|
|
508
|
-
break;
|
|
509
|
-
case 'md_annotation_add':
|
|
510
|
-
console.log('添加Markdown标注:', data);
|
|
511
|
-
setAnnotations(prev => [...prev, data]);
|
|
512
|
-
break;
|
|
513
|
-
default:
|
|
514
|
-
console.log('其他事件:', name, data);
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
if (!isVisible) {
|
|
520
|
-
return (
|
|
521
|
-
<div
|
|
522
|
-
className="preview-container"
|
|
523
|
-
style={{
|
|
524
|
-
display: 'flex',
|
|
525
|
-
flexDirection: 'column',
|
|
526
|
-
alignItems: 'center',
|
|
527
|
-
justifyContent: 'center',
|
|
528
|
-
height: '100vh',
|
|
529
|
-
padding: '20px',
|
|
530
|
-
backgroundColor: '#f5f5f5',
|
|
531
|
-
}}
|
|
532
|
-
>
|
|
533
|
-
<h1 style={{ marginBottom: '30px', color: '#333' }}>
|
|
534
|
-
GientechStreamReader 测试 -{' '}
|
|
535
|
-
{fileType === 'markdown'
|
|
536
|
-
? 'Markdown'
|
|
537
|
-
: fileType === 'pdf_slides'
|
|
538
|
-
? 'PDF幻灯片'
|
|
539
|
-
: fileType === 'markdown_table'
|
|
540
|
-
? 'Markdown表格'
|
|
541
|
-
: fileType === 'html'
|
|
542
|
-
? 'HTML'
|
|
543
|
-
: fileType === 'image'
|
|
544
|
-
? '图片'
|
|
545
|
-
: fileType === 'text'
|
|
546
|
-
? '文本'
|
|
547
|
-
: 'PDF'}{' '}
|
|
548
|
-
模式
|
|
549
|
-
</h1>
|
|
550
|
-
|
|
551
|
-
<div
|
|
552
|
-
style={{
|
|
553
|
-
display: 'flex',
|
|
554
|
-
flexDirection: 'column',
|
|
555
|
-
gap: '15px',
|
|
556
|
-
width: '100%',
|
|
557
|
-
maxWidth: '600px',
|
|
558
|
-
backgroundColor: 'white',
|
|
559
|
-
padding: '20px',
|
|
560
|
-
borderRadius: '8px',
|
|
561
|
-
boxShadow: '0 2px 8px rgba(0,0,0,0.1)',
|
|
562
|
-
}}
|
|
563
|
-
>
|
|
564
|
-
<div>
|
|
565
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
566
|
-
文件类型 (fileType):
|
|
567
|
-
</label>
|
|
568
|
-
<select
|
|
569
|
-
value={fileType}
|
|
570
|
-
onChange={e => {
|
|
571
|
-
const newFileType = e.target.value as 'pdf' | 'pdf_slides' | 'markdown' | 'markdown_table' | 'image' | 'html' | 'text';
|
|
572
|
-
setFileType(newFileType);
|
|
573
|
-
}}
|
|
574
|
-
style={{
|
|
575
|
-
width: '100%',
|
|
576
|
-
padding: '8px',
|
|
577
|
-
border: '1px solid #ddd',
|
|
578
|
-
borderRadius: '4px',
|
|
579
|
-
}}
|
|
580
|
-
>
|
|
581
|
-
<option value="pdf_slides">PDF幻灯片</option>
|
|
582
|
-
<option value="pdf">PDF文件</option>
|
|
583
|
-
<option value="markdown">Markdown文件</option>
|
|
584
|
-
<option value="markdown_table">Markdown表格文件</option>
|
|
585
|
-
<option value="image">图片文件</option>
|
|
586
|
-
<option value="html">HTML文件</option>
|
|
587
|
-
<option value="text">文本文件</option>
|
|
588
|
-
</select>
|
|
589
|
-
</div>
|
|
590
|
-
|
|
591
|
-
<div>
|
|
592
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
593
|
-
文件路径 (convertedFilePath):
|
|
594
|
-
</label>
|
|
595
|
-
<input
|
|
596
|
-
type="text"
|
|
597
|
-
value={convertedFilePath}
|
|
598
|
-
onChange={e => setConvertedFilePath(e.target.value)}
|
|
599
|
-
style={{
|
|
600
|
-
width: '100%',
|
|
601
|
-
padding: '8px',
|
|
602
|
-
border: '1px solid #ddd',
|
|
603
|
-
borderRadius: '4px',
|
|
604
|
-
}}
|
|
605
|
-
placeholder="输入文件路径"
|
|
606
|
-
/>
|
|
607
|
-
</div>
|
|
608
|
-
|
|
609
|
-
<div>
|
|
610
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
611
|
-
文件名 (fileName):
|
|
612
|
-
</label>
|
|
613
|
-
<input
|
|
614
|
-
type="text"
|
|
615
|
-
value={fileName}
|
|
616
|
-
onChange={e => setFileName(e.target.value)}
|
|
617
|
-
style={{
|
|
618
|
-
width: '100%',
|
|
619
|
-
padding: '8px',
|
|
620
|
-
border: '1px solid #ddd',
|
|
621
|
-
borderRadius: '4px',
|
|
622
|
-
}}
|
|
623
|
-
placeholder="输入文件名"
|
|
624
|
-
/>
|
|
625
|
-
</div>
|
|
626
|
-
|
|
627
|
-
<div>
|
|
628
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
629
|
-
{fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
630
|
-
? '总块数 (totalPages) - 仅用于显示:'
|
|
631
|
-
: '总页数 (totalPages):'}
|
|
632
|
-
</label>
|
|
633
|
-
<input
|
|
634
|
-
type="number"
|
|
635
|
-
value={totalPages}
|
|
636
|
-
onChange={e => setTotalPages(Number(e.target.value))}
|
|
637
|
-
min="1"
|
|
638
|
-
style={{
|
|
639
|
-
width: '100%',
|
|
640
|
-
padding: '8px',
|
|
641
|
-
border: '1px solid #ddd',
|
|
642
|
-
borderRadius: '4px',
|
|
643
|
-
}}
|
|
644
|
-
placeholder={
|
|
645
|
-
fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
646
|
-
? '仅用于显示'
|
|
647
|
-
: '输入总页数'
|
|
648
|
-
}
|
|
649
|
-
disabled={fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'}
|
|
650
|
-
/>
|
|
651
|
-
</div>
|
|
652
|
-
|
|
653
|
-
<div>
|
|
654
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
655
|
-
{fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
656
|
-
? '初始块 (initialPage) - 仅用于显示:'
|
|
657
|
-
: '初始页面 (initialPage):'}
|
|
658
|
-
</label>
|
|
659
|
-
<input
|
|
660
|
-
type="number"
|
|
661
|
-
value={initialPage}
|
|
662
|
-
onChange={e => setInitialPage(Number(e.target.value))}
|
|
663
|
-
min="1"
|
|
664
|
-
style={{
|
|
665
|
-
width: '100%',
|
|
666
|
-
padding: '8px',
|
|
667
|
-
border: '1px solid #ddd',
|
|
668
|
-
borderRadius: '4px',
|
|
669
|
-
}}
|
|
670
|
-
placeholder={
|
|
671
|
-
fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
672
|
-
? '仅用于显示'
|
|
673
|
-
: '输入初始页面号'
|
|
674
|
-
}
|
|
675
|
-
disabled={fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'}
|
|
676
|
-
/>
|
|
677
|
-
</div>
|
|
678
|
-
|
|
679
|
-
<div>
|
|
680
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
681
|
-
Authorization Token:
|
|
682
|
-
</label>
|
|
683
|
-
<input
|
|
684
|
-
type="text"
|
|
685
|
-
value={authorization}
|
|
686
|
-
onChange={e => setAuthorization(e.target.value)}
|
|
687
|
-
style={{
|
|
688
|
-
width: '100%',
|
|
689
|
-
padding: '8px',
|
|
690
|
-
border: '1px solid #ddd',
|
|
691
|
-
borderRadius: '4px',
|
|
692
|
-
}}
|
|
693
|
-
placeholder="输入Authorization token"
|
|
694
|
-
/>
|
|
695
|
-
</div>
|
|
696
|
-
|
|
697
|
-
<div>
|
|
698
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
699
|
-
Stream API URL:
|
|
700
|
-
</label>
|
|
701
|
-
<input
|
|
702
|
-
type="text"
|
|
703
|
-
value={streamApiUrl}
|
|
704
|
-
onChange={e => setStreamApiUrl(e.target.value)}
|
|
705
|
-
style={{
|
|
706
|
-
width: '100%',
|
|
707
|
-
padding: '8px',
|
|
708
|
-
border: '1px solid #ddd',
|
|
709
|
-
borderRadius: '4px',
|
|
710
|
-
}}
|
|
711
|
-
placeholder="输入Stream API URL"
|
|
712
|
-
/>
|
|
713
|
-
</div>
|
|
714
|
-
|
|
715
|
-
<div>
|
|
716
|
-
<label style={{ display: 'block', marginBottom: '5px', fontWeight: 'bold' }}>
|
|
717
|
-
{fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
718
|
-
? '页面大小 (pageSize) - 仅PDF使用:'
|
|
719
|
-
: '页面大小 (pageSize):'}
|
|
720
|
-
</label>
|
|
721
|
-
<input
|
|
722
|
-
type="number"
|
|
723
|
-
value={pageSize}
|
|
724
|
-
onChange={e => setPageSize(Number(e.target.value))}
|
|
725
|
-
min="1"
|
|
726
|
-
style={{
|
|
727
|
-
width: '100%',
|
|
728
|
-
padding: '8px',
|
|
729
|
-
border: '1px solid #ddd',
|
|
730
|
-
borderRadius: '4px',
|
|
731
|
-
}}
|
|
732
|
-
placeholder={
|
|
733
|
-
fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
734
|
-
? '仅PDF使用'
|
|
735
|
-
: '输入页面大小'
|
|
736
|
-
}
|
|
737
|
-
disabled={fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'}
|
|
738
|
-
/>
|
|
739
|
-
</div>
|
|
740
|
-
|
|
741
|
-
<div style={{ marginBottom: '16px' }}>
|
|
742
|
-
<label style={{ display: 'block', marginBottom: '8px', fontWeight: 'bold' }}>
|
|
743
|
-
初始缩放比例 (initialZoom):
|
|
744
|
-
</label>
|
|
745
|
-
<input
|
|
746
|
-
type="number"
|
|
747
|
-
value={initialZoom}
|
|
748
|
-
onChange={e => setInitialZoom(Number(e.target.value))}
|
|
749
|
-
min="0.1"
|
|
750
|
-
max="5"
|
|
751
|
-
step="0.1"
|
|
752
|
-
style={{
|
|
753
|
-
width: '100%',
|
|
754
|
-
padding: '8px',
|
|
755
|
-
border: '1px solid #ddd',
|
|
756
|
-
borderRadius: '4px',
|
|
757
|
-
}}
|
|
758
|
-
placeholder="输入初始缩放比例 (0.1-5.0)"
|
|
759
|
-
/>
|
|
760
|
-
</div>
|
|
761
|
-
|
|
762
|
-
<button
|
|
763
|
-
onClick={() => setIsVisible(true)}
|
|
764
|
-
style={{
|
|
765
|
-
padding: '12px 24px',
|
|
766
|
-
backgroundColor: '#007bff',
|
|
767
|
-
color: 'white',
|
|
768
|
-
border: 'none',
|
|
769
|
-
borderRadius: '4px',
|
|
770
|
-
cursor: 'pointer',
|
|
771
|
-
fontSize: '16px',
|
|
772
|
-
fontWeight: 'bold',
|
|
773
|
-
}}
|
|
774
|
-
>
|
|
775
|
-
开始测试{' '}
|
|
776
|
-
{fileType === 'markdown'
|
|
777
|
-
? 'Markdown完整文件'
|
|
778
|
-
: fileType === 'markdown_table'
|
|
779
|
-
? 'Markdown表格文件'
|
|
780
|
-
: fileType === 'html'
|
|
781
|
-
? 'HTML文件'
|
|
782
|
-
: fileType === 'image'
|
|
783
|
-
? '图片'
|
|
784
|
-
: 'PDF'}{' '}
|
|
785
|
-
Stream Reader
|
|
786
|
-
</button>
|
|
787
|
-
</div>
|
|
788
|
-
|
|
789
|
-
<div style={{ marginTop: '20px', textAlign: 'center', color: '#666' }}>
|
|
790
|
-
<p>
|
|
791
|
-
Stream模式:通过接口获取
|
|
792
|
-
{fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'html'
|
|
793
|
-
? '完整的文件内容'
|
|
794
|
-
: '分页的PDF数据'}
|
|
795
|
-
</p>
|
|
796
|
-
<p>
|
|
797
|
-
{fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'html'
|
|
798
|
-
? '支持完整文件渲染、缩放等功能'
|
|
799
|
-
: '支持页面导航、缩放等功能'}
|
|
800
|
-
</p>
|
|
801
|
-
|
|
802
|
-
{(fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'html') && (
|
|
803
|
-
<div
|
|
804
|
-
style={{
|
|
805
|
-
marginTop: '10px',
|
|
806
|
-
padding: '10px',
|
|
807
|
-
backgroundColor: '#e3f2fd',
|
|
808
|
-
borderRadius: '4px',
|
|
809
|
-
}}
|
|
810
|
-
>
|
|
811
|
-
<p style={{ margin: '0', fontSize: '14px' }}>
|
|
812
|
-
<strong>
|
|
813
|
-
{fileType === 'markdown_table'
|
|
814
|
-
? 'Markdown表格'
|
|
815
|
-
: fileType === 'html'
|
|
816
|
-
? 'HTML'
|
|
817
|
-
: 'Markdown'}推荐配置:
|
|
818
|
-
</strong>
|
|
819
|
-
<br />
|
|
820
|
-
文件路径:
|
|
821
|
-
{fileType === 'html'
|
|
822
|
-
? 'http://10.15.12.13:9000/dev-rag-data/demo/示例.html/V0/示例.html'
|
|
823
|
-
: 'http://10.15.12.13:9000/dev-rag-data/测试南自/服务发布专利具体步骤.md/V0/服务发布专利具体步骤.md'}
|
|
824
|
-
<br />
|
|
825
|
-
总块数: 10 (仅用于显示,实际获取完整文件)
|
|
826
|
-
<br />
|
|
827
|
-
注意: {fileType === 'markdown_table'
|
|
828
|
-
? 'Markdown表格'
|
|
829
|
-
: fileType === 'html'
|
|
830
|
-
? 'HTML'
|
|
831
|
-
: 'Markdown'}文件会获取完整内容,不支持分块加载
|
|
832
|
-
</p>
|
|
833
|
-
</div>
|
|
834
|
-
)}
|
|
835
|
-
|
|
836
|
-
{fileType === 'image' && (
|
|
837
|
-
<div
|
|
838
|
-
style={{
|
|
839
|
-
marginTop: '10px',
|
|
840
|
-
padding: '10px',
|
|
841
|
-
backgroundColor: '#fff3cd',
|
|
842
|
-
borderRadius: '4px',
|
|
843
|
-
}}
|
|
844
|
-
>
|
|
845
|
-
<p style={{ margin: '0', fontSize: '14px' }}>
|
|
846
|
-
<strong>图片推荐配置:</strong>
|
|
847
|
-
<br />
|
|
848
|
-
文件路径: 例如 http://10.15.12.13:9000/dev-rag-data/demo/示例图片.png/V0/示例图片.png
|
|
849
|
-
<br />
|
|
850
|
-
图片将以相同的接口请求方式获取(POST convertedFilePath),支持缩放与旋转
|
|
851
|
-
</p>
|
|
852
|
-
</div>
|
|
853
|
-
)}
|
|
854
|
-
|
|
855
|
-
{fileType === 'pdf' && (
|
|
856
|
-
<div
|
|
857
|
-
style={{
|
|
858
|
-
marginTop: '10px',
|
|
859
|
-
padding: '10px',
|
|
860
|
-
backgroundColor: '#f3e5f5',
|
|
861
|
-
borderRadius: '4px',
|
|
862
|
-
}}
|
|
863
|
-
>
|
|
864
|
-
<p style={{ margin: '0', fontSize: '14px' }}>
|
|
865
|
-
<strong>PDF推荐配置:</strong>
|
|
866
|
-
<br />
|
|
867
|
-
文件路径:
|
|
868
|
-
http://10.15.12.13:9000/dev-rag-data/测试南自/中国电子规章制度汇编(2024版)-集团公司第二分册.pdf/V0/中国电子规章制度汇编(2024版)-集团公司第二分册.pdf
|
|
869
|
-
<br />
|
|
870
|
-
总页数: 676, 页面大小: 5
|
|
871
|
-
</p>
|
|
872
|
-
</div>
|
|
873
|
-
)}
|
|
874
|
-
|
|
875
|
-
{fileType === 'text' && (
|
|
876
|
-
<div
|
|
877
|
-
style={{
|
|
878
|
-
marginTop: '10px',
|
|
879
|
-
padding: '10px',
|
|
880
|
-
backgroundColor: '#e8f5e8',
|
|
881
|
-
borderRadius: '4px',
|
|
882
|
-
}}
|
|
883
|
-
>
|
|
884
|
-
<p style={{ margin: '0', fontSize: '14px' }}>
|
|
885
|
-
<strong>文本文件推荐配置:</strong>
|
|
886
|
-
<br />
|
|
887
|
-
文件路径: 例如 http://10.15.12.13:9000/dev-rag-data/测试南自/测试文档.txt/V0/测试文档.txt
|
|
888
|
-
<br />
|
|
889
|
-
文本文件会获取完整内容,支持缩放,不支持分页
|
|
890
|
-
</p>
|
|
891
|
-
</div>
|
|
892
|
-
)}
|
|
893
|
-
</div>
|
|
894
|
-
</div>
|
|
895
|
-
);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
return (
|
|
899
|
-
<div style={{ height: '80vh', width: '85vw' }}>
|
|
900
|
-
<GientechStreamReader
|
|
901
|
-
convertedFilePath={convertedFilePath}
|
|
902
|
-
fileName={fileName}
|
|
903
|
-
fileType={fileType}
|
|
904
|
-
initialPage={initialPage}
|
|
905
|
-
initialZoom={initialZoom} // 传递初始缩放比例
|
|
906
|
-
totalPages={totalPages} // 传递总页数/总块数
|
|
907
|
-
annotations={
|
|
908
|
-
fileType === 'markdown_table'
|
|
909
|
-
? streamTableAnnotations
|
|
910
|
-
: fileType === 'markdown'
|
|
911
|
-
? streamMDAnnotations
|
|
912
|
-
: fileType === 'html'
|
|
913
|
-
? [] // HTML不需要标注
|
|
914
|
-
: streamAnnotations
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
authorization={authorization}
|
|
918
|
-
csrfToken={'csrfToken'}
|
|
919
|
-
streamApiUrl={streamApiUrl}
|
|
920
|
-
pageSize={fileType === 'pdf' ? pageSize : undefined} // 只有PDF模式才传递pageSize
|
|
921
|
-
eventsEmit={handleEventsEmit}
|
|
922
|
-
tools={{
|
|
923
|
-
close: true
|
|
924
|
-
}}
|
|
925
|
-
customComponents={{
|
|
926
|
-
LoadingComponent: CustomLoadingComponent,
|
|
927
|
-
ErrorComponent: CustomErrorComponent,
|
|
928
|
-
}}
|
|
929
|
-
/>
|
|
930
|
-
<input
|
|
931
|
-
type="number"
|
|
932
|
-
value={pageO}
|
|
933
|
-
onChange={e => setPageO(Number(e.target.value))}
|
|
934
|
-
min="1"
|
|
935
|
-
style={{
|
|
936
|
-
width: '100%',
|
|
937
|
-
padding: '8px',
|
|
938
|
-
border: '1px solid #ddd',
|
|
939
|
-
borderRadius: '4px',
|
|
940
|
-
}}
|
|
941
|
-
placeholder={
|
|
942
|
-
fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'
|
|
943
|
-
? '仅用于显示'
|
|
944
|
-
: '输入初始页面号'
|
|
945
|
-
}
|
|
946
|
-
disabled={fileType === 'markdown' || fileType === 'markdown_table' || fileType === 'image' || fileType === 'html' || fileType === 'text'}
|
|
947
|
-
/>
|
|
948
|
-
<button onClick={()=>{setInitialPage(pageO)}}>跳转</button>
|
|
949
|
-
</div>
|
|
950
|
-
);
|
|
951
|
-
}
|