@glodon-aiot/agent-cli-ui 2.4.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.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +155 -0
- package/dist/es/Dialog/AgentChat/index.mjs +757 -0
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +142 -0
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +90 -0
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +31 -0
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +14 -0
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +355 -0
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/think.svg.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +46 -0
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +68 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +69 -0
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +48 -0
- package/dist/es/Dialog/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +128 -0
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +130 -0
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +96 -0
- package/dist/es/Dialog/Recommend/index.mjs +60 -0
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/tip.svg.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +65 -0
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +64 -0
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +232 -0
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +197 -0
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +48 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +142 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +120 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +94 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +86 -0
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +43 -0
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +51 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +368 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +67 -0
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +128 -0
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/FileItem/index.mjs +85 -0
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +25 -0
- package/dist/es/Footer/index.mjs +18 -0
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/Iconfont/index.mjs +12 -0
- package/dist/es/InputProgress/index.mjs +39 -0
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +219 -0
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/index4.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/minio-zj.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +16 -0
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +26 -0
- package/dist/es/components/Markdown/index.mjs +48 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +96 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +325 -0
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/base64-js/index.mjs +47 -0
- package/dist/es/node_modules/buffer/index.mjs +927 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
- package/dist/es/node_modules/ieee754/index.mjs +28 -0
- package/dist/es/node_modules/js-base64/base64.mjs +31 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +15 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/agent-cli-sdk/src/AgentSession.mjs +243 -0
- package/dist/es/packages/agent-cli-sdk/src/BotClient.mjs +242 -0
- package/dist/es/packages/agent-cli-sdk/src/Config.mjs +34 -0
- package/dist/es/packages/agent-cli-sdk/src/DialogSession.mjs +281 -0
- package/dist/es/packages/agent-cli-sdk/src/EventBus.mjs +64 -0
- package/dist/es/packages/agent-cli-sdk/src/Logger.mjs +31 -0
- package/dist/es/packages/agent-cli-sdk/src/PayloadTypes.mjs +4 -0
- package/dist/es/packages/agent-cli-sdk/src/Session.mjs +527 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/parse.mjs +97 -0
- package/dist/es/packages/agent-cli-sdk/src/api/index.mjs +48 -0
- package/dist/es/packages/agent-cli-sdk/src/utils.mjs +11 -0
- package/dist/es/packages/apis/dist/es/aecpilot/cosntant.mjs +5 -0
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +9 -0
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +414 -0
- package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/fetch.mjs +106 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/parse.mjs +97 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/index.mjs +33 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +169 -0
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/AgentClientUI.d.ts +4 -0
- package/dist/src/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +17 -0
- package/dist/src/Dialog/ChatEmptyView/index.d.ts +6 -0
- package/dist/src/Dialog/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/FilePreview/index.d.ts +20 -0
- package/dist/src/Dialog/Greeting/index.d.ts +7 -0
- package/dist/src/Dialog/HistoryContent/index.d.ts +5 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +17 -0
- package/dist/src/Dialog/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/Dialog/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/Dialog/KnowledgeList/index.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/PromptSetting/index.d.ts +14 -0
- package/dist/src/Dialog/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/Dialog/Recommend/index.d.ts +14 -0
- package/dist/src/Dialog/ReferCollapse/index.d.ts +8 -0
- package/dist/src/Dialog/SearchReference/index.d.ts +7 -0
- package/dist/src/Dialog/SessionAction/index.d.ts +11 -0
- package/dist/src/Dialog/SessionList/index.d.ts +20 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/UploadFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadFiles/index.d.ts +21 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/FileCard/index.d.ts +21 -0
- package/dist/src/FileItem/index.d.ts +11 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +7 -0
- package/dist/src/Greeting/index.d.ts +7 -0
- package/dist/src/Iconfont/font_4108228_8te6zfkclqu.d.ts +0 -0
- package/dist/src/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/Iconfont/index.d.ts +3 -0
- package/dist/src/InputProgress/index.d.ts +7 -0
- package/dist/src/QuillEditor/index.d.ts +19 -0
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Header/index.d.ts +6 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/Markdown/Code/index.d.ts +3 -0
- package/dist/src/components/Markdown/Image/index.d.ts +3 -0
- package/dist/src/components/Markdown/index.d.ts +6 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +11 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/types.d.ts +183 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +17 -0
- package/package.json +138 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
var h = (w, i, n) => new Promise((I, e) => {
|
|
2
|
+
var r = (c) => {
|
|
3
|
+
try {
|
|
4
|
+
a(n.next(c));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
e(f);
|
|
7
|
+
}
|
|
8
|
+
}, E = (c) => {
|
|
9
|
+
try {
|
|
10
|
+
a(n.throw(c));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
e(f);
|
|
13
|
+
}
|
|
14
|
+
}, a = (c) => c.done ? I(c.value) : Promise.resolve(c.value).then(r, E);
|
|
15
|
+
a((n = n.apply(w, i)).next());
|
|
16
|
+
});
|
|
17
|
+
import { jsx as L } from "../../../_virtual/jsx-runtime.mjs";
|
|
18
|
+
import { useContext as O, useState as b, useRef as R, useEffect as x } from "react";
|
|
19
|
+
import { Drawer as j, Spin as v, message as m } from "antd";
|
|
20
|
+
import "./style.less.mjs";
|
|
21
|
+
import { LoadingOutlined as B } from "@ant-design/icons";
|
|
22
|
+
import H from "./SessionItem.mjs";
|
|
23
|
+
import P from "../../../context.mjs";
|
|
24
|
+
const M = (w) => {
|
|
25
|
+
const {
|
|
26
|
+
currentSessionId: i,
|
|
27
|
+
onSessionChange: n,
|
|
28
|
+
onClose: I
|
|
29
|
+
} = w, {
|
|
30
|
+
agentClient: e,
|
|
31
|
+
popupContainer: r
|
|
32
|
+
} = O(P), [E, a] = b(!1), [c, f] = b(!1), [p, T] = b(""), [l, S] = b([]), s = R(l);
|
|
33
|
+
x(() => {
|
|
34
|
+
s.current = [], S(s.current), a(!0), e == null || e.getSessions().then((t) => h(void 0, null, function* () {
|
|
35
|
+
a(!1), s.current = [...t], S(s.current);
|
|
36
|
+
}));
|
|
37
|
+
}, []), x(() => {
|
|
38
|
+
l.length && i && setTimeout(() => {
|
|
39
|
+
var t;
|
|
40
|
+
(t = document.getElementById(i)) == null || t.scrollIntoView(!0);
|
|
41
|
+
}, 100);
|
|
42
|
+
}, [l]);
|
|
43
|
+
const _ = (t, o) => {
|
|
44
|
+
m.config({
|
|
45
|
+
getContainer: () => (r == null ? void 0 : r.current) || document.body
|
|
46
|
+
}), e == null || e.removeSession(t, !0).then(() => h(void 0, null, function* () {
|
|
47
|
+
const d = l.filter((u) => {
|
|
48
|
+
var g, y;
|
|
49
|
+
return ((g = u.data) == null ? void 0 : g.id) !== ((y = t.data) == null ? void 0 : y.id);
|
|
50
|
+
});
|
|
51
|
+
t.data.id === i && n && n(""), m.success("删除成功"), s.current = [...d], S(s.current);
|
|
52
|
+
})), o == null || o.stopPropagation();
|
|
53
|
+
}, $ = (t) => {
|
|
54
|
+
t && (n && n(t.sessionId, t), I());
|
|
55
|
+
}, z = (t, o) => h(void 0, null, function* () {
|
|
56
|
+
m.config({
|
|
57
|
+
getContainer: () => (r == null ? void 0 : r.current) || document.body
|
|
58
|
+
});
|
|
59
|
+
try {
|
|
60
|
+
yield e == null ? void 0 : e.setTop(t.data.id, o), m.success(`${o ? "" : "取消"}置顶成功`);
|
|
61
|
+
} catch (d) {
|
|
62
|
+
m.error(`${o ? "" : "取消"}置顶失败`);
|
|
63
|
+
}
|
|
64
|
+
e == null || e.getSessions({
|
|
65
|
+
order: "top_time desc, sort_status desc, updated_at desc"
|
|
66
|
+
}).then((d) => h(void 0, null, function* () {
|
|
67
|
+
s.current = [...d], S(s.current);
|
|
68
|
+
}));
|
|
69
|
+
}), D = (t, o) => {
|
|
70
|
+
m.config({
|
|
71
|
+
getContainer: () => (r == null ? void 0 : r.current) || document.body
|
|
72
|
+
}), o && (t.rename(o), t == null || t.addEventListener("data:updated", () => {
|
|
73
|
+
const d = s.current.map((u) => {
|
|
74
|
+
var g, y;
|
|
75
|
+
return ((g = u.data) == null ? void 0 : g.id) === ((y = u.data) == null ? void 0 : y.id), u;
|
|
76
|
+
});
|
|
77
|
+
s.current = [...d], S(s.current);
|
|
78
|
+
}));
|
|
79
|
+
}, N = (t, o) => {
|
|
80
|
+
f(o), T(t);
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ L(j, {
|
|
83
|
+
title: "会话历史记录",
|
|
84
|
+
open: !0,
|
|
85
|
+
placement: "bottom",
|
|
86
|
+
onClose: I,
|
|
87
|
+
className: `session-list-drawer ${E ? "loading-panel" : ""}`,
|
|
88
|
+
size: "large",
|
|
89
|
+
getContainer: () => (r == null ? void 0 : r.current) || document.body,
|
|
90
|
+
destroyOnClose: !0,
|
|
91
|
+
style: {
|
|
92
|
+
position: "absolute"
|
|
93
|
+
},
|
|
94
|
+
children: E ? /* @__PURE__ */ L(v, {
|
|
95
|
+
indicator: /* @__PURE__ */ L(B, {
|
|
96
|
+
style: {
|
|
97
|
+
fontSize: 24
|
|
98
|
+
},
|
|
99
|
+
spin: !0
|
|
100
|
+
})
|
|
101
|
+
}) : l.map((t, o) => {
|
|
102
|
+
var d;
|
|
103
|
+
return /* @__PURE__ */ L(H, {
|
|
104
|
+
session: t,
|
|
105
|
+
index: o,
|
|
106
|
+
currentSessionId: i,
|
|
107
|
+
onChangeSession: $,
|
|
108
|
+
onDelSession: _,
|
|
109
|
+
onTopSession: z,
|
|
110
|
+
onEditNameConfirm: D,
|
|
111
|
+
editSessionId: p,
|
|
112
|
+
isEdit: c,
|
|
113
|
+
onChangeEditStatus: N
|
|
114
|
+
}, (d = t.data) == null ? void 0 : d.id);
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
M as default
|
|
120
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as a, jsx as s } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Popover as p, Button as c } from "antd";
|
|
3
|
+
import { useState as m } from "react";
|
|
4
|
+
import d from "./HistorySessionList/index.mjs";
|
|
5
|
+
import "./style.less.mjs";
|
|
6
|
+
import f from "../../Iconfont/index.mjs";
|
|
7
|
+
const h = (o) => {
|
|
8
|
+
const {
|
|
9
|
+
currentSessionId: t,
|
|
10
|
+
disabled: i = !1,
|
|
11
|
+
onSessionChange: n
|
|
12
|
+
} = o, [r, e] = m(!1);
|
|
13
|
+
return /* @__PURE__ */ a("div", {
|
|
14
|
+
className: "session-list-component",
|
|
15
|
+
children: [/* @__PURE__ */ s(p, {
|
|
16
|
+
placement: "top",
|
|
17
|
+
overlayClassName: "session-list-overlay",
|
|
18
|
+
overlayStyle: {
|
|
19
|
+
padding: "4px"
|
|
20
|
+
},
|
|
21
|
+
getPopupContainer: (l) => l.parentNode,
|
|
22
|
+
content: "会话历史记录",
|
|
23
|
+
children: /* @__PURE__ */ s(c, {
|
|
24
|
+
className: "list-overlay-action",
|
|
25
|
+
disabled: i,
|
|
26
|
+
type: "text",
|
|
27
|
+
icon: /* @__PURE__ */ s(f, {
|
|
28
|
+
type: "icon-lishijilu",
|
|
29
|
+
style: {
|
|
30
|
+
fontSize: 24
|
|
31
|
+
}
|
|
32
|
+
}),
|
|
33
|
+
onClick: () => e(!0)
|
|
34
|
+
})
|
|
35
|
+
}), r && /* @__PURE__ */ s(d, {
|
|
36
|
+
currentSessionId: t || "",
|
|
37
|
+
onSessionChange: n,
|
|
38
|
+
onClose: () => e(!1)
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
h as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var p = (a, e, t) => new Promise((l, i) => {
|
|
2
|
+
var m = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
c(t.next(o));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
i(r);
|
|
7
|
+
}
|
|
8
|
+
}, k = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
c(t.throw(o));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
i(r);
|
|
13
|
+
}
|
|
14
|
+
}, c = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(m, k);
|
|
15
|
+
c((t = t.apply(a, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { jsxs as g, jsx as n } from "../../../_virtual/jsx-runtime.mjs";
|
|
18
|
+
import { useContext as w } from "react";
|
|
19
|
+
import { Space as h, Tooltip as I, Button as y } from "antd";
|
|
20
|
+
import "axios";
|
|
21
|
+
import "../../../node_modules/@glodon-aiot/minio/dist/minio-zj.mjs";
|
|
22
|
+
import { ISourceType as f, IversionInfo as b } from "../../../packages/apis/dist/es/aecpilot/model.mjs";
|
|
23
|
+
import "dayjs";
|
|
24
|
+
import "../../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs";
|
|
25
|
+
import "../../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs";
|
|
26
|
+
import "../../../packages/apis/dist/es/agentcliui/index.mjs";
|
|
27
|
+
import "../../../packages/apis/dist/es/aecpilotui/index.mjs";
|
|
28
|
+
import d from "../../../Iconfont/index.mjs";
|
|
29
|
+
import "./style.less.mjs";
|
|
30
|
+
import x from "../../../components/WebLink/index.mjs";
|
|
31
|
+
import C from "../../../context.mjs";
|
|
32
|
+
const D = (a) => {
|
|
33
|
+
var o, r;
|
|
34
|
+
const {
|
|
35
|
+
data: e,
|
|
36
|
+
onClick: t,
|
|
37
|
+
loadPage: l
|
|
38
|
+
} = a, {
|
|
39
|
+
transform: i
|
|
40
|
+
} = w(C), m = () => p(void 0, null, function* () {
|
|
41
|
+
return l ? yield l(e.knowledgeId, e.docId, e.textId) : 0;
|
|
42
|
+
}), k = e.sourceType === f.WebLink && !!e.webLink, c = (
|
|
43
|
+
// data?.origin === IFileOrigin.AECPILOT ||
|
|
44
|
+
e.sourceType === f.SourceFile && !!e.sourceFileName && // data.sourceFileName 标识参考文件存在与否,不能使用其他字段判断
|
|
45
|
+
(e == null ? void 0 : e.versionInfo) !== b.ProtectUnauthorize
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ g(h, {
|
|
48
|
+
className: "session-refer-panel",
|
|
49
|
+
children: [/* @__PURE__ */ n("span", {
|
|
50
|
+
className: "refer-panel-item",
|
|
51
|
+
children: (e.knowledgeSourceName || "") + (e.knowledgeTitleName || "") || "-"
|
|
52
|
+
}), k && ((o = i == null ? void 0 : i.reference) == null ? void 0 : o.iconVisible) && /* @__PURE__ */ n(I, {
|
|
53
|
+
overlayStyle: {
|
|
54
|
+
maxWidth: "90vw"
|
|
55
|
+
},
|
|
56
|
+
title: /* @__PURE__ */ n(x, {
|
|
57
|
+
href: e.webLink,
|
|
58
|
+
onClick: (s) => {
|
|
59
|
+
s.stopPropagation();
|
|
60
|
+
}
|
|
61
|
+
}),
|
|
62
|
+
children: /* @__PURE__ */ n(y, {
|
|
63
|
+
icon: /* @__PURE__ */ n(d, {
|
|
64
|
+
type: e.sourceType === f.WebLink ? "icon-lianjie" : "icon-doc-link",
|
|
65
|
+
style: {
|
|
66
|
+
fontSize: 16
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
type: "link",
|
|
70
|
+
size: "small",
|
|
71
|
+
onClick: (s) => p(void 0, null, function* () {
|
|
72
|
+
s.stopPropagation(), t(e);
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
}), c && ((r = i == null ? void 0 : i.reference) == null ? void 0 : r.iconVisible) && /* @__PURE__ */ n(y, {
|
|
76
|
+
icon: /* @__PURE__ */ n(d, {
|
|
77
|
+
type: "icon-doc-link",
|
|
78
|
+
style: {
|
|
79
|
+
fontSize: 16
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
type: "link",
|
|
83
|
+
size: "small",
|
|
84
|
+
onClick: (s) => p(void 0, null, function* () {
|
|
85
|
+
s.stopPropagation();
|
|
86
|
+
const u = (yield m()) || 0;
|
|
87
|
+
t(e, u);
|
|
88
|
+
})
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
D as default
|
|
94
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs as n, jsx as i } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as x } from "react";
|
|
3
|
+
import { Space as p, Collapse as f } from "antd";
|
|
4
|
+
import S from "../../Iconfont/index.mjs";
|
|
5
|
+
import "./style.less.mjs";
|
|
6
|
+
import "axios";
|
|
7
|
+
import "../../node_modules/@glodon-aiot/minio/dist/minio-zj.mjs";
|
|
8
|
+
import { ISourceType as u } from "../../packages/apis/dist/es/aecpilot/model.mjs";
|
|
9
|
+
import "dayjs";
|
|
10
|
+
import "../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs";
|
|
11
|
+
import "../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs";
|
|
12
|
+
import "../../packages/apis/dist/es/agentcliui/index.mjs";
|
|
13
|
+
import "../../packages/apis/dist/es/aecpilotui/index.mjs";
|
|
14
|
+
import D from "../../components/Markdown/index.mjs";
|
|
15
|
+
import y from "./ReferItem/index.mjs";
|
|
16
|
+
import F from "../../context.mjs";
|
|
17
|
+
const {
|
|
18
|
+
Panel: R
|
|
19
|
+
} = f, G = (h) => {
|
|
20
|
+
var l, d, m, c;
|
|
21
|
+
const {
|
|
22
|
+
history: o,
|
|
23
|
+
docViewerUrl: w
|
|
24
|
+
} = h, {
|
|
25
|
+
transform: r,
|
|
26
|
+
service: s
|
|
27
|
+
} = x(F), I = (e, t) => {
|
|
28
|
+
if (!(!(e != null && e.knowledgeId) || !(e != null && e.docId))) {
|
|
29
|
+
if (e.sourceType === u.WebLink) {
|
|
30
|
+
window.open(e.webLink);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
e.sourceType === u.SourceFile && window.open(`${w}#/doc?url=${encodeURIComponent(e.sourceFileUrl)}&page=${t || 0}`);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ n("div", {
|
|
37
|
+
className: "session-refer",
|
|
38
|
+
children: [/* @__PURE__ */ n(p, {
|
|
39
|
+
className: "session-refer-header",
|
|
40
|
+
size: 8,
|
|
41
|
+
children: [/* @__PURE__ */ i(S, {
|
|
42
|
+
type: "icon-cankaolaiyuan",
|
|
43
|
+
style: {
|
|
44
|
+
color: "#0A51D1",
|
|
45
|
+
fontSize: 16
|
|
46
|
+
}
|
|
47
|
+
}), /* @__PURE__ */ i("span", {
|
|
48
|
+
className: "refer-header-title",
|
|
49
|
+
children: "参考来源"
|
|
50
|
+
}), /* @__PURE__ */ n("span", {
|
|
51
|
+
children: ["(共 ", ((l = o == null ? void 0 : o.reference) == null ? void 0 : l.length) || 0, " 项)"]
|
|
52
|
+
})]
|
|
53
|
+
}), /* @__PURE__ */ i("div", {
|
|
54
|
+
className: "session-refer-content",
|
|
55
|
+
children: /* @__PURE__ */ i(f, {
|
|
56
|
+
ghost: !0,
|
|
57
|
+
defaultActiveKey: (d = r == null ? void 0 : r.reference) != null && d.isExpand ? (m = o == null ? void 0 : o.reference) == null ? void 0 : m.map((e, t) => e.docId + t) : [],
|
|
58
|
+
children: (c = o == null ? void 0 : o.reference) == null ? void 0 : c.map((e, t) => /* @__PURE__ */ i(R, {
|
|
59
|
+
header: /* @__PURE__ */ n(p, {
|
|
60
|
+
className: "session-refer-panel",
|
|
61
|
+
children: [/* @__PURE__ */ n("span", {
|
|
62
|
+
className: "refer-panel-item",
|
|
63
|
+
children: [t + 1, "."]
|
|
64
|
+
}), s && /* @__PURE__ */ i(y, {
|
|
65
|
+
data: e,
|
|
66
|
+
loadPage: (g, k, C) => s.getKnowledgeIdFileIdData(g, k, C).then((N) => {
|
|
67
|
+
const a = (N || []).find((v) => v.key === "pages_from");
|
|
68
|
+
return (a == null ? void 0 : a.value) || 0;
|
|
69
|
+
}),
|
|
70
|
+
onClick: I
|
|
71
|
+
})]
|
|
72
|
+
}),
|
|
73
|
+
children: /* @__PURE__ */ i("div", {
|
|
74
|
+
className: "refer-markdown",
|
|
75
|
+
children: /* @__PURE__ */ i(D, {
|
|
76
|
+
children: e.text || "-"
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
}, e.docId + t))
|
|
80
|
+
})
|
|
81
|
+
})]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
G as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Space as s } from "antd";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import { removeNewlines as c } from "../../utils/index.mjs";
|
|
5
|
+
import l from "../../Iconfont/index.mjs";
|
|
6
|
+
const N = (o) => {
|
|
7
|
+
const {
|
|
8
|
+
history: m,
|
|
9
|
+
onRelatedClick: i,
|
|
10
|
+
relatedQuesion: t
|
|
11
|
+
} = o;
|
|
12
|
+
return /* @__PURE__ */ n(s, {
|
|
13
|
+
className: "session-related",
|
|
14
|
+
direction: "vertical",
|
|
15
|
+
size: 12,
|
|
16
|
+
children: [/* @__PURE__ */ n(s, {
|
|
17
|
+
className: "session-related-header",
|
|
18
|
+
size: 8,
|
|
19
|
+
children: [/* @__PURE__ */ e(l, {
|
|
20
|
+
type: "icon-xiangguanwenti",
|
|
21
|
+
style: {
|
|
22
|
+
color: "#0A51D1",
|
|
23
|
+
fontSize: 16
|
|
24
|
+
}
|
|
25
|
+
}), /* @__PURE__ */ e("span", {
|
|
26
|
+
className: "question-header-title",
|
|
27
|
+
children: "相关问题"
|
|
28
|
+
})]
|
|
29
|
+
}), /* @__PURE__ */ e(s, {
|
|
30
|
+
className: "session-related-main",
|
|
31
|
+
direction: "vertical",
|
|
32
|
+
size: 12,
|
|
33
|
+
children: t.map((r, a) => /* @__PURE__ */ e("div", {
|
|
34
|
+
className: "question-main-item",
|
|
35
|
+
onClick: () => i == null ? void 0 : i(c(r)),
|
|
36
|
+
children: r
|
|
37
|
+
}, a))
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
N as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { CloseCircleFilled as r } from "@ant-design/icons";
|
|
3
|
+
import { Modal as a, Button as o } from "antd";
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
const p = (t) => {
|
|
6
|
+
const {
|
|
7
|
+
isvisible: c,
|
|
8
|
+
onClose: l
|
|
9
|
+
} = t;
|
|
10
|
+
return /* @__PURE__ */ e(a, {
|
|
11
|
+
className: "clear-modal",
|
|
12
|
+
width: 340,
|
|
13
|
+
open: c,
|
|
14
|
+
title: /* @__PURE__ */ n("div", {
|
|
15
|
+
className: "title",
|
|
16
|
+
children: [/* @__PURE__ */ e(r, {
|
|
17
|
+
style: {
|
|
18
|
+
color: "#F33E3E",
|
|
19
|
+
fontSize: 20
|
|
20
|
+
}
|
|
21
|
+
}), /* @__PURE__ */ e("span", {
|
|
22
|
+
children: "确认清空所有文件"
|
|
23
|
+
})]
|
|
24
|
+
}),
|
|
25
|
+
centered: !0,
|
|
26
|
+
maskClosable: !1,
|
|
27
|
+
onCancel: () => {
|
|
28
|
+
l("cancel");
|
|
29
|
+
},
|
|
30
|
+
getContainer: document.getElementById("dialog-modal") || !1,
|
|
31
|
+
footer: [/* @__PURE__ */ e(o, {
|
|
32
|
+
onClick: () => {
|
|
33
|
+
l("cancel");
|
|
34
|
+
},
|
|
35
|
+
children: "暂时保留"
|
|
36
|
+
}, "cancel"), /* @__PURE__ */ e(o, {
|
|
37
|
+
type: "primary",
|
|
38
|
+
onClick: () => {
|
|
39
|
+
l("clear");
|
|
40
|
+
},
|
|
41
|
+
children: "继续清空"
|
|
42
|
+
}, "confirm")],
|
|
43
|
+
children: /* @__PURE__ */ e("div", {
|
|
44
|
+
className: "content",
|
|
45
|
+
children: "列表中的文件清空后不能恢复,请确认是否清空所有文件。"
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
p as default
|
|
51
|
+
};
|