@gientech/modual 2.0.5 → 2.0.6
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/chat.js → chat.js} +98 -98
- package/package.json +41 -103
- 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/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}/GientechStreamReader-DUCq-O5X.js +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-KCfkkJKb.js +0 -0
- /package/{dist/assets → assets}/index-QI9biQrR.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}/style.css +0 -0
- /package/{dist/assets → assets}/style2.css +0 -0
- /package/{dist/assets → assets}/style3.css +0 -0
- /package/{dist/assets → assets}/style4.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/databaseId.js → databaseId.js} +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/index.js → index.js} +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/streamFilesReader.js → streamFilesReader.js} +0 -0
- /package/{dist/vite.svg → vite.svg} +0 -0
- /package/{dist/worker → worker}/pdf.worker.min.js +0 -0
package/package.json
CHANGED
|
@@ -1,130 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gientech/modual",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"style": "assets/style.css",
|
|
3
5
|
"private": false,
|
|
6
|
+
"version": "2.0.6",
|
|
4
7
|
"author": "hanfeng_Zhang",
|
|
5
|
-
"version": "2.0.5",
|
|
6
8
|
"type": "module",
|
|
7
|
-
"main": "
|
|
8
|
-
"types": "
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"types": "index.d.ts",
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"react": ">=18",
|
|
13
|
+
"react-dom": ">=18"
|
|
14
|
+
},
|
|
9
15
|
"exports": {
|
|
10
16
|
".": {
|
|
11
|
-
"types": "./
|
|
12
|
-
"import": "./
|
|
13
|
-
"default": "./
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"import": "./index.js",
|
|
19
|
+
"default": "./index.js"
|
|
14
20
|
},
|
|
15
21
|
"./chat": {
|
|
16
|
-
"types": "./
|
|
17
|
-
"import": "./
|
|
18
|
-
"default": "./
|
|
22
|
+
"types": "./chat.d.ts",
|
|
23
|
+
"import": "./chat.js",
|
|
24
|
+
"default": "./chat.js"
|
|
19
25
|
},
|
|
20
26
|
"./database": {
|
|
21
|
-
"types": "./
|
|
22
|
-
"import": "./
|
|
23
|
-
"default": "./
|
|
27
|
+
"types": "./database.d.ts",
|
|
28
|
+
"import": "./database.js",
|
|
29
|
+
"default": "./database.js"
|
|
24
30
|
},
|
|
25
31
|
"./databaseId": {
|
|
26
|
-
"types": "./
|
|
27
|
-
"import": "./
|
|
28
|
-
"default": "./
|
|
29
|
-
},
|
|
30
|
-
"./sensitive": {
|
|
31
|
-
"types": "./dist/sensitive.d.ts",
|
|
32
|
-
"import": "./dist/sensitive.js",
|
|
33
|
-
"default": "./dist/sensitive.js"
|
|
32
|
+
"types": "./databaseId.d.ts",
|
|
33
|
+
"import": "./databaseId.js",
|
|
34
|
+
"default": "./databaseId.js"
|
|
34
35
|
},
|
|
35
|
-
"./
|
|
36
|
-
"types": "./
|
|
37
|
-
"import": "./
|
|
38
|
-
"default": "./
|
|
36
|
+
"./modelManage": {
|
|
37
|
+
"types": "./modelManage.d.ts",
|
|
38
|
+
"import": "./modelManage.js",
|
|
39
|
+
"default": "./modelManage.js"
|
|
39
40
|
},
|
|
40
41
|
"./databaseTable": {
|
|
41
|
-
"types": "./
|
|
42
|
-
"import": "./
|
|
43
|
-
"default": "./
|
|
42
|
+
"types": "./databaseTable.d.ts",
|
|
43
|
+
"import": "./databaseTable.js",
|
|
44
|
+
"default": "./databaseTable.js"
|
|
44
45
|
},
|
|
45
|
-
"./
|
|
46
|
-
"types": "./
|
|
47
|
-
"import": "./
|
|
48
|
-
"default": "./
|
|
46
|
+
"./sensitive": {
|
|
47
|
+
"types": "./sensitive.d.ts",
|
|
48
|
+
"import": "./sensitive.js",
|
|
49
|
+
"default": "./sensitive.js"
|
|
50
|
+
},
|
|
51
|
+
"./streamFilesReader": {
|
|
52
|
+
"types": "./streamFilesReader.d.ts",
|
|
53
|
+
"import": "./streamFilesReader.js",
|
|
54
|
+
"default": "./streamFilesReader.js"
|
|
49
55
|
},
|
|
50
56
|
"./assistantConfig": {
|
|
51
57
|
"types": "./assistantConfig.d.ts",
|
|
52
58
|
"import": "./assistantConfig.js",
|
|
53
59
|
"default": "./assistantConfig.js"
|
|
54
60
|
},
|
|
55
|
-
"./style.css": "./
|
|
56
|
-
|
|
57
|
-
"peerDependencies": {
|
|
58
|
-
"@mxmweb/nodegraph": "^1.x.x",
|
|
59
|
-
"@mxmweb/aichat": "*",
|
|
60
|
-
"@mxmweb/fviewer": "^1",
|
|
61
|
-
"@mxmweb/rtext": "^1.3.*",
|
|
62
|
-
"@mxmweb/xviewer": "^1.2.x",
|
|
63
|
-
"@mxmweb/zui": "^1.3.x",
|
|
64
|
-
"@mxmweb/zui-components": "*",
|
|
65
|
-
"@mxmweb/zui-elements": "*",
|
|
66
|
-
"@mxmweb/zui-icons": "1.2.2",
|
|
67
|
-
"@mxmweb/zui-layouts": "*",
|
|
68
|
-
"@mxmweb/zui-theme": "*",
|
|
69
|
-
"react": ">=18 <20",
|
|
70
|
-
"react-dom": ">=18 <20",
|
|
71
|
-
"pdfjs-dist": "2.16.105",
|
|
72
|
-
"styled-components": "^6.1.19"
|
|
73
|
-
},
|
|
74
|
-
"dependencies": {
|
|
75
|
-
"@mxmweb/nodegraph": "1.0.15",
|
|
76
|
-
"@mxmweb/aichat": "1.9.7",
|
|
77
|
-
"@mxmweb/fviewer": "1.5.5",
|
|
78
|
-
"@mxmweb/rtext": "1.3.3",
|
|
79
|
-
"@mxmweb/xviewer": "1.1.50",
|
|
80
|
-
"@mxmweb/zui": "1.3.15",
|
|
81
|
-
"@mxmweb/zui-components": "1.2.5",
|
|
82
|
-
"@mxmweb/zui-elements": "1.1.5",
|
|
83
|
-
"@mxmweb/zui-icons": "1.2.2",
|
|
84
|
-
"@mxmweb/zui-layouts": "1.3.1",
|
|
85
|
-
"@mxmweb/zui-theme": "2.1.5",
|
|
86
|
-
"antd": "^5.18.0",
|
|
87
|
-
"axios": "^1.7.2"
|
|
88
|
-
},
|
|
89
|
-
"devDependencies": {
|
|
90
|
-
"clipboard": "^2.0.11",
|
|
91
|
-
"fs-extra": "^11.2.0",
|
|
92
|
-
"inquirer": "^9.2.15",
|
|
93
|
-
"less": "^4.4.2",
|
|
94
|
-
"react": "^18.3.1",
|
|
95
|
-
"react-dom": "^18.3.1",
|
|
96
|
-
"react-flip-toolkit": "^7.2.4"
|
|
97
|
-
},
|
|
98
|
-
"include": [
|
|
99
|
-
"src/application/**/*"
|
|
100
|
-
],
|
|
101
|
-
"exclude": [
|
|
102
|
-
"node_modules",
|
|
103
|
-
"src/main.tsx",
|
|
104
|
-
"src/Preview.tsx",
|
|
105
|
-
"type.d.ts",
|
|
106
|
-
"vite-env.d.ts"
|
|
107
|
-
],
|
|
108
|
-
"engines": {
|
|
109
|
-
"node": ">=16.0.0"
|
|
61
|
+
"./style.css": "./assets/style.css",
|
|
62
|
+
"./assets/style.css": "./assets/style.css"
|
|
110
63
|
},
|
|
111
64
|
"scripts": {
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"build:external": "vite build --mode production",
|
|
115
|
-
"build:app": "vite build --config vite.config.app.ts --mode production",
|
|
116
|
-
"build:app:dev": "vite build --config vite.config.app.ts --mode development",
|
|
117
|
-
"build:docs": "node ../../scripts/generate-docs.js && vite build --mode production",
|
|
118
|
-
"preview": "vite preview",
|
|
119
|
-
"preview:app": "vite preview --config vite.config.app.ts",
|
|
120
|
-
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
121
|
-
"lint:fix": "eslint src --ext ts,tsx --fix",
|
|
122
|
-
"format": "prettier --write \"src/**/*.{ts,tsx,css,md}\"",
|
|
123
|
-
"format:check": "prettier --check \"src/**/*.{ts,tsx,css,md}\"",
|
|
124
|
-
"release": "semantic-release",
|
|
125
|
-
"release:dry": "semantic-release --dry-run",
|
|
126
|
-
"dev:demo": "node scripts/dev-demo.js",
|
|
127
|
-
"build:demo": "node scripts/build-demo.js",
|
|
128
|
-
"preview:demo": "node scripts/preview-demo.js"
|
|
65
|
+
"test": "yarn link",
|
|
66
|
+
"disconnect": "yarn unlink"
|
|
129
67
|
}
|
|
130
68
|
}
|
package/.editorconfig
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
-
|
|
3
|
-
# top-most EditorConfig file
|
|
4
|
-
root = true
|
|
5
|
-
|
|
6
|
-
# Unix-style newlines with a newline ending every file
|
|
7
|
-
[*]
|
|
8
|
-
end_of_line = lf
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
charset = utf-8
|
|
11
|
-
trim_trailing_whitespace = true
|
|
12
|
-
|
|
13
|
-
# TypeScript and JavaScript files
|
|
14
|
-
[*.{ts,tsx,js,jsx}]
|
|
15
|
-
indent_style = space
|
|
16
|
-
indent_size = 2
|
|
17
|
-
quote_type = single
|
|
18
|
-
max_line_length = 100
|
|
19
|
-
|
|
20
|
-
# CSS files
|
|
21
|
-
[*.css]
|
|
22
|
-
indent_style = space
|
|
23
|
-
indent_size = 2
|
|
24
|
-
|
|
25
|
-
# Markdown files
|
|
26
|
-
[*.md]
|
|
27
|
-
trim_trailing_whitespace = false
|
|
28
|
-
max_line_length = off
|
|
29
|
-
|
|
30
|
-
# JSON files
|
|
31
|
-
[*.json]
|
|
32
|
-
indent_style = space
|
|
33
|
-
indent_size = 2
|
|
34
|
-
|
|
35
|
-
# YAML files
|
|
36
|
-
[*.{yml,yaml}]
|
|
37
|
-
indent_style = space
|
|
38
|
-
indent_size = 2
|
package/.prettierignore
DELETED
package/.prettierrc
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"semi": true,
|
|
3
|
-
"singleQuote": true,
|
|
4
|
-
"tabWidth": 2,
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"trailingComma": "es5",
|
|
7
|
-
"bracketSpacing": true,
|
|
8
|
-
"arrowParens": "avoid",
|
|
9
|
-
"endOfLine": "lf",
|
|
10
|
-
"jsxSingleQuote": false,
|
|
11
|
-
"quoteProps": "as-needed",
|
|
12
|
-
"useTabs": false,
|
|
13
|
-
"htmlWhitespaceSensitivity": "css",
|
|
14
|
-
"embeddedLanguageFormatting": "auto",
|
|
15
|
-
"singleAttributePerLine": false,
|
|
16
|
-
"bracketSameLine": false
|
|
17
|
-
}
|
package/USAGE.md
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
# Gientech 多模块使用指南
|
|
2
|
-
|
|
3
|
-
## 安装
|
|
4
|
-
|
|
5
|
-
### 方式一:npm 安装
|
|
6
|
-
```bash
|
|
7
|
-
npm install @gientech/modual
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
### 方式二:本地安装
|
|
11
|
-
```bash
|
|
12
|
-
npm install /path/to/gientech/dist
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## 重要:PDF Worker 注册
|
|
16
|
-
|
|
17
|
-
**在使用 Chat 模块或其他涉及 PDF 预览的功能之前,必须在应用入口处注册 PDF Worker。**
|
|
18
|
-
|
|
19
|
-
### 注册方式
|
|
20
|
-
|
|
21
|
-
```javascript
|
|
22
|
-
// 在应用入口文件(如 main.tsx 或 App.tsx)中
|
|
23
|
-
import { registerPDFWorker } from '@gientech/modual';
|
|
24
|
-
// 或者从 @mxmweb/fviewer 导入
|
|
25
|
-
// import { registerPDFWorker } from '@mxmweb/fviewer';
|
|
26
|
-
|
|
27
|
-
// 注册 Worker(只注册一次)
|
|
28
|
-
registerPDFWorker('/worker/pdf.worker.min.js');
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Worker 文件部署
|
|
32
|
-
|
|
33
|
-
1. **获取 Worker 文件**:
|
|
34
|
-
- 从 `node_modules/pdfjs-dist/build/pdf.worker.min.js` 复制
|
|
35
|
-
- 或从 `@mxmweb/fviewer` 的 dist 目录获取
|
|
36
|
-
|
|
37
|
-
2. **部署 Worker 文件**:
|
|
38
|
-
- 将 `pdf.worker.min.js` 放在项目的 `public/worker/` 目录
|
|
39
|
-
- 或使用 CDN 提供 Worker 文件
|
|
40
|
-
- 确保 Worker 文件路径与注册时使用的路径一致
|
|
41
|
-
|
|
42
|
-
3. **路径配置**:
|
|
43
|
-
- 开发环境:通常使用 `/worker/pdf.worker.min.js`
|
|
44
|
-
- 生产环境:根据实际部署路径调整(可能需要使用 CDN 或绝对路径)
|
|
45
|
-
|
|
46
|
-
### 注意事项
|
|
47
|
-
|
|
48
|
-
- ⚠️ **Worker 文件不应被打包进 bundle**,应作为静态资源部署
|
|
49
|
-
- ⚠️ **只注册一次**:`registerPDFWorker` 内部有检查机制,多次调用不会重复注册
|
|
50
|
-
- ⚠️ **必须在组件使用前注册**:建议在应用入口处注册,确保所有组件都能使用
|
|
51
|
-
|
|
52
|
-
### 完整示例
|
|
53
|
-
|
|
54
|
-
```javascript
|
|
55
|
-
// main.tsx 或 App.tsx
|
|
56
|
-
import React from 'react';
|
|
57
|
-
import ReactDOM from 'react-dom/client';
|
|
58
|
-
import { registerPDFWorker } from '@gientech/modual';
|
|
59
|
-
import App from './App';
|
|
60
|
-
|
|
61
|
-
// 注册 PDF Worker(必须在组件使用前)
|
|
62
|
-
registerPDFWorker('/worker/pdf.worker.min.js');
|
|
63
|
-
|
|
64
|
-
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
65
|
-
<React.StrictMode>
|
|
66
|
-
<App />
|
|
67
|
-
</React.StrictMode>
|
|
68
|
-
);
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## 使用方式
|
|
72
|
-
|
|
73
|
-
### 1. Chat 聊天模块
|
|
74
|
-
|
|
75
|
-
```javascript
|
|
76
|
-
// 导入 chat 模块
|
|
77
|
-
import { GientechChat } from '@gientech/modual/chat';
|
|
78
|
-
|
|
79
|
-
// 在 React 组件中使用
|
|
80
|
-
function App() {
|
|
81
|
-
return (
|
|
82
|
-
<div>
|
|
83
|
-
<GientechChat
|
|
84
|
-
config={{
|
|
85
|
-
apiUrl: 'https://your-api.com',
|
|
86
|
-
token: 'your-token'
|
|
87
|
-
}}
|
|
88
|
-
// 其他配置...
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### 2. Database 数据库模块
|
|
96
|
-
|
|
97
|
-
```javascript
|
|
98
|
-
import { GientechDatabase } from '@gientech/modual/database';
|
|
99
|
-
|
|
100
|
-
function DatabasePage() {
|
|
101
|
-
return (
|
|
102
|
-
<GientechDatabase
|
|
103
|
-
config={{
|
|
104
|
-
apiUrl: 'https://your-api.com',
|
|
105
|
-
token: 'your-token'
|
|
106
|
-
}}
|
|
107
|
-
/>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### 3. DatabaseTable 数据库表格模块
|
|
113
|
-
|
|
114
|
-
```javascript
|
|
115
|
-
import { GientechDatabaseTable } from '@gientech/modual/databaseTable';
|
|
116
|
-
|
|
117
|
-
function TablePage() {
|
|
118
|
-
return (
|
|
119
|
-
<GientechDatabaseTable
|
|
120
|
-
config={{
|
|
121
|
-
apiUrl: 'https://your-api.com',
|
|
122
|
-
token: 'your-token'
|
|
123
|
-
}}
|
|
124
|
-
/>
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### 4. HeadlessChat 无头聊天模块
|
|
130
|
-
|
|
131
|
-
```javascript
|
|
132
|
-
import { GientechHeadlessChat } from '@gientech/modual/headlessChat';
|
|
133
|
-
|
|
134
|
-
function HeadlessChatPage() {
|
|
135
|
-
return (
|
|
136
|
-
<GientechHeadlessChat
|
|
137
|
-
config={{
|
|
138
|
-
apiUrl: 'https://your-api.com',
|
|
139
|
-
token: 'your-token'
|
|
140
|
-
}}
|
|
141
|
-
/>
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### 5. Login 登录模块
|
|
147
|
-
|
|
148
|
-
```javascript
|
|
149
|
-
import { GientechLogin } from '@gientech/modual/login';
|
|
150
|
-
|
|
151
|
-
function LoginPage() {
|
|
152
|
-
return (
|
|
153
|
-
<GientechLogin
|
|
154
|
-
config={{
|
|
155
|
-
apiUrl: 'https://your-api.com',
|
|
156
|
-
token: 'your-token'
|
|
157
|
-
}}
|
|
158
|
-
/>
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
### 6. Search 搜索模块
|
|
164
|
-
|
|
165
|
-
```javascript
|
|
166
|
-
import { KnowledgeSearch } from '@gientech/modual/search';
|
|
167
|
-
|
|
168
|
-
function SearchPage() {
|
|
169
|
-
return (
|
|
170
|
-
<KnowledgeSearch
|
|
171
|
-
config={{
|
|
172
|
-
apiUrl: 'https://your-api.com',
|
|
173
|
-
token: 'your-token'
|
|
174
|
-
}}
|
|
175
|
-
/>
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
## 样式引入
|
|
181
|
-
|
|
182
|
-
```javascript
|
|
183
|
-
// 引入样式
|
|
184
|
-
import '@gientech/modual/style.css';
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
## 在 HTML 中直接使用
|
|
188
|
-
|
|
189
|
-
```html
|
|
190
|
-
<!DOCTYPE html>
|
|
191
|
-
<html>
|
|
192
|
-
<head>
|
|
193
|
-
<meta charset="UTF-8">
|
|
194
|
-
<title>Gientech Demo</title>
|
|
195
|
-
<!-- 引入样式 -->
|
|
196
|
-
<link rel="stylesheet" href="./node_modules/@gientech/modual/style.css">
|
|
197
|
-
</head>
|
|
198
|
-
<body>
|
|
199
|
-
<div id="app"></div>
|
|
200
|
-
|
|
201
|
-
<!-- 引入 React 和相关依赖 -->
|
|
202
|
-
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
|
|
203
|
-
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
|
|
204
|
-
<script src="https://unpkg.com/antd@5/dist/antd.min.js"></script>
|
|
205
|
-
|
|
206
|
-
<!-- 引入模块 -->
|
|
207
|
-
<script type="module">
|
|
208
|
-
import { GientechChat } from './node_modules/@gientech/modual/chat.js';
|
|
209
|
-
|
|
210
|
-
// 渲染组件
|
|
211
|
-
const root = ReactDOM.createRoot(document.getElementById('app'));
|
|
212
|
-
root.render(React.createElement(GientechChat, {
|
|
213
|
-
config: {
|
|
214
|
-
apiUrl: 'https://your-api.com',
|
|
215
|
-
token: 'your-token'
|
|
216
|
-
}
|
|
217
|
-
}));
|
|
218
|
-
</script>
|
|
219
|
-
</body>
|
|
220
|
-
</html>
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
## 依赖要求
|
|
224
|
-
|
|
225
|
-
确保项目中已安装以下依赖:
|
|
226
|
-
|
|
227
|
-
```json
|
|
228
|
-
{
|
|
229
|
-
"dependencies": {
|
|
230
|
-
"react": "^18.0.0",
|
|
231
|
-
"react-dom": "^18.0.0",
|
|
232
|
-
"antd": "^5.0.0",
|
|
233
|
-
"@mxmweb/xviewer": "*",
|
|
234
|
-
"@mxmweb/fviewer": "*",
|
|
235
|
-
"@mxmweb/rtext": "*",
|
|
236
|
-
"@mxmweb/zui": "*",
|
|
237
|
-
"@mxmweb/aichat": "*"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
## 注意事项
|
|
243
|
-
|
|
244
|
-
1. 每个模块都是独立的,可以按需引入
|
|
245
|
-
2. 所有模块都需要相应的依赖包
|
|
246
|
-
3. 确保 API 配置正确
|
|
247
|
-
4. 样式文件需要单独引入
|
package/bash.exe.stackdump
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
Stack trace:
|
|
2
|
-
Frame Function Args
|
|
3
|
-
0007FFFFCD30 00021006118E (0002102A6010, 000210272B51, 000000000063, 0007FFFFB660) msys-2.0.dll+0x2118E
|
|
4
|
-
0007FFFFCD30 0002100469BA (0007FFFFC710, 000200000000, 000700000000, 000700000001) msys-2.0.dll+0x69BA
|
|
5
|
-
0007FFFFCD30 0002100469F2 (000000000000, 000000000000, 000000000063, 000700000003) msys-2.0.dll+0x69F2
|
|
6
|
-
0007FFFFCD30 000210101D21 (000210177B53, 000800007798, 000000000000, 0002102752E0) msys-2.0.dll+0xC1D21
|
|
7
|
-
0007FFFFCD30 000210101D39 (0002101779A0, 0003000000FF, 000000000006, 0007FFFFC890) msys-2.0.dll+0xC1D39
|
|
8
|
-
0007FFFFCD30 000210104704 (0007FFFFCD30, 000000000000, 0007FFFFC890, 0002102752E0) msys-2.0.dll+0xC4704
|
|
9
|
-
0007FFFFCD30 000210059095 (000000000004, 000000000004, 0007FFFFC9E8, 0000FFFFFFFF) msys-2.0.dll+0x19095
|
|
10
|
-
0007FFFFCD30 000210059865 (000210070B52, 00021024CB20, 000800004540, 000000000030) msys-2.0.dll+0x19865
|
|
11
|
-
0007FFFFCD30 000210059D77 (00021017DB25, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x19D77
|
|
12
|
-
0007FFFFCD30 00021005A0B6 (0002100CB9A0, 000000000000, FFFFFFFFFFFFFF43, 000200000000) msys-2.0.dll+0x1A0B6
|
|
13
|
-
0007FFFFCD30 000210047151 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x7151
|
|
14
|
-
0007FFFFFFF0 000210045C86 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5C86
|
|
15
|
-
0007FFFFFFF0 000210045D34 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5D34
|
|
16
|
-
End of stack trace
|
|
17
|
-
Loaded modules:
|
|
18
|
-
000100400000 bash.exe
|
|
19
|
-
7FFD10F50000 ntdll.dll
|
|
20
|
-
7FFD0FA20000 KERNEL32.DLL
|
|
21
|
-
7FFD0E710000 KERNELBASE.dll
|
|
22
|
-
7FFD10800000 USER32.dll
|
|
23
|
-
7FFD0EB80000 win32u.dll
|
|
24
|
-
7FFD10370000 GDI32.dll
|
|
25
|
-
7FFD0E220000 gdi32full.dll
|
|
26
|
-
000210040000 msys-2.0.dll
|
|
27
|
-
7FFD0EBB0000 msvcp_win.dll
|
|
28
|
-
7FFD0E5F0000 ucrtbase.dll
|
|
29
|
-
7FFD0F630000 advapi32.dll
|
|
30
|
-
7FFD10430000 msvcrt.dll
|
|
31
|
-
7FFD0F350000 sechost.dll
|
|
32
|
-
7FFD0EAD0000 bcrypt.dll
|
|
33
|
-
7FFD104E0000 RPCRT4.dll
|
|
34
|
-
7FFD0DA20000 CRYPTBASE.DLL
|
|
35
|
-
7FFD0EB00000 bcryptPrimitives.dll
|
|
36
|
-
7FFD0F5F0000 IMM32.DLL
|
|
37
|
-
7FFD02F20000 netapi32.dll
|
|
38
|
-
7FFCFB7A0000 SAMCLI.DLL
|
|
39
|
-
7FFD05410000 SAMLIB.dll
|
|
40
|
-
7FFD0CD40000 NETUTILS.DLL
|
package/components.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
-
"style": "new-york",
|
|
4
|
-
"rsc": false,
|
|
5
|
-
"tsx": true,
|
|
6
|
-
"tailwind": {
|
|
7
|
-
"config": "tailwind.config.js",
|
|
8
|
-
"css": "src/style.css",
|
|
9
|
-
"baseColor": "slate",
|
|
10
|
-
"cssVariables": false,
|
|
11
|
-
"prefix": ""
|
|
12
|
-
},
|
|
13
|
-
"aliases": {
|
|
14
|
-
"components": "@/components",
|
|
15
|
-
"utils": "@/components/shadcn/utils",
|
|
16
|
-
"ui": "@/components/shadcn/ui",
|
|
17
|
-
"lib": "@/components/shadcn/lib",
|
|
18
|
-
"hooks": "@/components/shadcn/hooks"
|
|
19
|
-
},
|
|
20
|
-
"iconLibrary": "lucide"
|
|
21
|
-
}
|