@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,92 @@
|
|
|
1
|
+
import { jsx as e, Fragment as g, jsxs as r } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useState as l, useEffect as c } from "react";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import { Button as k } from "antd";
|
|
5
|
+
import { CloseOutlined as v } from "@ant-design/icons";
|
|
6
|
+
import d from "../../Iconfont/index.mjs";
|
|
7
|
+
const E = (f) => {
|
|
8
|
+
const {
|
|
9
|
+
sessionId: u,
|
|
10
|
+
netStatus: s,
|
|
11
|
+
enable: t,
|
|
12
|
+
onNetStatusChange: p
|
|
13
|
+
} = f, [m, i] = l(!1), [o, a] = l(!1), [h, n] = l(
|
|
14
|
+
"#070C14"
|
|
15
|
+
/* default */
|
|
16
|
+
);
|
|
17
|
+
c(() => {
|
|
18
|
+
a(!t), t || n(
|
|
19
|
+
"#070C14"
|
|
20
|
+
/* default */
|
|
21
|
+
);
|
|
22
|
+
}, [u, t]);
|
|
23
|
+
const C = () => {
|
|
24
|
+
a(!1);
|
|
25
|
+
};
|
|
26
|
+
c(() => {
|
|
27
|
+
i(o);
|
|
28
|
+
}, [o]);
|
|
29
|
+
const S = (y) => {
|
|
30
|
+
p(y);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ e(g, {
|
|
33
|
+
children: /* @__PURE__ */ r("div", {
|
|
34
|
+
className: "connect",
|
|
35
|
+
onMouseEnter: () => {
|
|
36
|
+
i(!0);
|
|
37
|
+
},
|
|
38
|
+
onMouseLeave: () => {
|
|
39
|
+
o || i(!1);
|
|
40
|
+
},
|
|
41
|
+
children: [/* @__PURE__ */ e(k, {
|
|
42
|
+
type: "link",
|
|
43
|
+
icon: s ? /* @__PURE__ */ e(d, {
|
|
44
|
+
className: "link-btn",
|
|
45
|
+
type: "icon-yilianwang",
|
|
46
|
+
style: {
|
|
47
|
+
fontSize: 22
|
|
48
|
+
}
|
|
49
|
+
}) : /* @__PURE__ */ e(d, {
|
|
50
|
+
className: "link-not-btn",
|
|
51
|
+
type: "icon-lianwangguanbi",
|
|
52
|
+
style: {
|
|
53
|
+
color: h,
|
|
54
|
+
fontSize: 22
|
|
55
|
+
},
|
|
56
|
+
onMouseEnter: () => {
|
|
57
|
+
n(
|
|
58
|
+
t ? "#B452FF" : "#070C14"
|
|
59
|
+
/* highlight */
|
|
60
|
+
);
|
|
61
|
+
},
|
|
62
|
+
onMouseLeave: () => n(
|
|
63
|
+
"#070C14"
|
|
64
|
+
/* default */
|
|
65
|
+
)
|
|
66
|
+
}),
|
|
67
|
+
disabled: !t,
|
|
68
|
+
onClick: () => {
|
|
69
|
+
S(!s);
|
|
70
|
+
}
|
|
71
|
+
}), m && /* @__PURE__ */ e("div", {
|
|
72
|
+
className: "net-tip",
|
|
73
|
+
children: t ? s ? "网络访问已开启" : "网络访问已关闭" : o ? /* @__PURE__ */ r("div", {
|
|
74
|
+
style: {
|
|
75
|
+
display: "flex",
|
|
76
|
+
gap: 6
|
|
77
|
+
},
|
|
78
|
+
children: [/* @__PURE__ */ e("span", {
|
|
79
|
+
children: "上传文件后,该会话自动停止网络访问"
|
|
80
|
+
}), /* @__PURE__ */ e("div", {
|
|
81
|
+
children: /* @__PURE__ */ e(v, {
|
|
82
|
+
onClick: C
|
|
83
|
+
})
|
|
84
|
+
})]
|
|
85
|
+
}) : "上传文件后,该会话自动停止网络访问"
|
|
86
|
+
})]
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
E as default
|
|
92
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const M = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM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0IDMxLjMzNCAyNiAzMi4wMDU2IDI2IDMyLjgzNFYzNS4xNjczQzI2IDM1Ljk5NTcgMjUuMzI4NCAzNi42NjczIDI0LjUgMzYuNjY3M0gyMlYzMS4zMzRaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTUgMzEuMzM0SDE5VjM0LjY2NzNIMTVWMzEuMzM0WiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE1IDMwLjU4NTlMMTUgMzciIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0zMCAxNkgzNS43OTI5QzM2LjIzODMgMTYgMzYuNDYxNCAxNS40NjE0IDM2LjE0NjQgMTUuMTQ2NEwyOC44NTM2IDcuODUzNTVDMjguNTM4NiA3LjUzODU3IDI4IDcuNzYxNjUgMjggOC4yMDcxMVYxNEMyOCAxNS4xMDQ2IDI4Ljg5NTQgMTYgMzAgMTZaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9zdmc+Cg==";
|
|
2
|
+
export {
|
|
3
|
+
M as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as U } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useState as d, useEffect as a } from "react";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import z from "./doc-icons/pdf.svg.mjs";
|
|
5
|
+
import j from "./doc-icons/doc.svg.mjs";
|
|
6
|
+
import O from "./doc-icons/docx.svg.mjs";
|
|
7
|
+
import { Typography as P, Spin as T } from "antd";
|
|
8
|
+
import { LoadingOutlined as K, CloseCircleFilled as L, CloseOutlined as N } from "@ant-design/icons";
|
|
9
|
+
import "axios";
|
|
10
|
+
import "../../node_modules/@glodon-aiot/minio/dist/minio-zj.mjs";
|
|
11
|
+
import "dayjs";
|
|
12
|
+
import "../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs";
|
|
13
|
+
import "../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs";
|
|
14
|
+
import "../../packages/apis/dist/es/agentcliui/index.mjs";
|
|
15
|
+
import "../../packages/apis/dist/es/aecpilotui/index.mjs";
|
|
16
|
+
import { KnowledgeFileStatus as F } from "../../packages/apis/dist/es/cvforce/model.mjs";
|
|
17
|
+
import $ from "../../Iconfont/index.mjs";
|
|
18
|
+
import { getFileExtension as b } from "../../utils/index.mjs";
|
|
19
|
+
const q = {
|
|
20
|
+
doc: j,
|
|
21
|
+
docx: O,
|
|
22
|
+
pdf: z
|
|
23
|
+
}, ni = (o) => {
|
|
24
|
+
const {
|
|
25
|
+
className: k,
|
|
26
|
+
style: S,
|
|
27
|
+
id: n,
|
|
28
|
+
file: i,
|
|
29
|
+
actions: {
|
|
30
|
+
upload: m,
|
|
31
|
+
remove: l,
|
|
32
|
+
download: h,
|
|
33
|
+
checkStatus: f,
|
|
34
|
+
preview: u
|
|
35
|
+
} = {},
|
|
36
|
+
onUrlChange: g,
|
|
37
|
+
onStatusChange: v
|
|
38
|
+
} = o, y = b((i == null ? void 0 : i.name) || ""), [w, s] = d(o.uploading), [A, E] = d(!1);
|
|
39
|
+
a(() => {
|
|
40
|
+
s(o.uploading);
|
|
41
|
+
}, [o.uploading]);
|
|
42
|
+
const [x, C] = d(o.url);
|
|
43
|
+
a(() => {
|
|
44
|
+
C(o.url);
|
|
45
|
+
}, [o.url]), a(() => {
|
|
46
|
+
m && i instanceof File && (x || (s(!0), setTimeout(() => {
|
|
47
|
+
s(!1);
|
|
48
|
+
}, 2e3), m(i).then((t) => {
|
|
49
|
+
C(t), g && g(t);
|
|
50
|
+
}).catch((t) => E(t)).finally(() => {
|
|
51
|
+
s(!1);
|
|
52
|
+
})));
|
|
53
|
+
}, [m, x, i]);
|
|
54
|
+
const [r, p] = d(i instanceof File || i == null ? void 0 : i.status);
|
|
55
|
+
a(() => {
|
|
56
|
+
p(i instanceof File || i == null ? void 0 : i.status);
|
|
57
|
+
}, [i]);
|
|
58
|
+
const I = () => {
|
|
59
|
+
n && f && r === F.Processing && f(n).then((t) => {
|
|
60
|
+
t !== r && (r !== void 0 && v && v(t), p(t));
|
|
61
|
+
}).catch((t) => p(F.Failed));
|
|
62
|
+
};
|
|
63
|
+
return a(() => {
|
|
64
|
+
I();
|
|
65
|
+
}, [n, f, r]), i ? /* @__PURE__ */ c("div", {
|
|
66
|
+
className: `file-card ${k}`,
|
|
67
|
+
style: S,
|
|
68
|
+
children: [y && /* @__PURE__ */ e("img", {
|
|
69
|
+
className: "file-icon",
|
|
70
|
+
src: q[y]
|
|
71
|
+
}), /* @__PURE__ */ e("div", {
|
|
72
|
+
className: "file-desc",
|
|
73
|
+
children: /* @__PURE__ */ e("div", {
|
|
74
|
+
className: "file-desc-name",
|
|
75
|
+
onClick: () => u == null ? void 0 : u(i),
|
|
76
|
+
children: /* @__PURE__ */ e(P.Paragraph, {
|
|
77
|
+
style: {
|
|
78
|
+
margin: 0
|
|
79
|
+
},
|
|
80
|
+
ellipsis: {
|
|
81
|
+
rows: 1,
|
|
82
|
+
tooltip: i.name
|
|
83
|
+
},
|
|
84
|
+
children: i.name
|
|
85
|
+
})
|
|
86
|
+
})
|
|
87
|
+
}), (i == null ? void 0 : i.status) === 1 ? /* @__PURE__ */ c("div", {
|
|
88
|
+
className: "analysis",
|
|
89
|
+
children: [/* @__PURE__ */ e(T, {
|
|
90
|
+
indicator: /* @__PURE__ */ e(K, {
|
|
91
|
+
style: {
|
|
92
|
+
fontSize: 16
|
|
93
|
+
},
|
|
94
|
+
spin: !0
|
|
95
|
+
})
|
|
96
|
+
}), /* @__PURE__ */ e("span", {
|
|
97
|
+
children: "解析中"
|
|
98
|
+
})]
|
|
99
|
+
}) : (i == null ? void 0 : i.status) === 3 ? l && /* @__PURE__ */ c("div", {
|
|
100
|
+
style: {
|
|
101
|
+
display: "flex",
|
|
102
|
+
gap: 6
|
|
103
|
+
},
|
|
104
|
+
children: [/* @__PURE__ */ e("div", {
|
|
105
|
+
className: "file-action file-failed",
|
|
106
|
+
children: /* @__PURE__ */ e(L, {})
|
|
107
|
+
}), /* @__PURE__ */ e("div", {
|
|
108
|
+
className: "file-action file-remove",
|
|
109
|
+
onClick: () => {
|
|
110
|
+
l(i, n);
|
|
111
|
+
},
|
|
112
|
+
children: /* @__PURE__ */ e(N, {})
|
|
113
|
+
})]
|
|
114
|
+
}) : l && h && /* @__PURE__ */ c("div", {
|
|
115
|
+
style: {
|
|
116
|
+
display: "flex",
|
|
117
|
+
gap: 6
|
|
118
|
+
},
|
|
119
|
+
children: [/* @__PURE__ */ e("div", {
|
|
120
|
+
className: "file-action file-remove",
|
|
121
|
+
onClick: () => {
|
|
122
|
+
h(i, n);
|
|
123
|
+
},
|
|
124
|
+
children: /* @__PURE__ */ e($, {
|
|
125
|
+
type: "icon-xiazai",
|
|
126
|
+
style: {
|
|
127
|
+
fontSize: 16
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
}), /* @__PURE__ */ e("div", {
|
|
131
|
+
className: "file-action file-remove",
|
|
132
|
+
onClick: () => {
|
|
133
|
+
l(i, n);
|
|
134
|
+
},
|
|
135
|
+
children: /* @__PURE__ */ e(N, {})
|
|
136
|
+
})]
|
|
137
|
+
})]
|
|
138
|
+
}) : /* @__PURE__ */ e(U, {});
|
|
139
|
+
};
|
|
140
|
+
export {
|
|
141
|
+
ni as default
|
|
142
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsxs as x, jsx as o, Fragment as U } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useState as c, useEffect as r } from "react";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import { Image as k, Spin as E, Tooltip as j, Button as z } from "antd";
|
|
5
|
+
import { LoadingOutlined as B } from "@ant-design/icons";
|
|
6
|
+
import I from "../../Iconfont/index.mjs";
|
|
7
|
+
import "axios";
|
|
8
|
+
import "../../node_modules/@glodon-aiot/minio/dist/minio-zj.mjs";
|
|
9
|
+
import { AecKnowledgeFileStatus as F } from "../../packages/apis/dist/es/aecpilot/model.mjs";
|
|
10
|
+
import "dayjs";
|
|
11
|
+
import "../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs";
|
|
12
|
+
import "../../packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs";
|
|
13
|
+
import "../../packages/apis/dist/es/agentcliui/index.mjs";
|
|
14
|
+
import "../../packages/apis/dist/es/aecpilotui/index.mjs";
|
|
15
|
+
import { getBase64 as b } from "../../utils/index.mjs";
|
|
16
|
+
const V = (i) => {
|
|
17
|
+
const {
|
|
18
|
+
className: y,
|
|
19
|
+
style: N,
|
|
20
|
+
id: n,
|
|
21
|
+
file: t,
|
|
22
|
+
actions: {
|
|
23
|
+
upload: a,
|
|
24
|
+
remove: g,
|
|
25
|
+
checkStatus: m
|
|
26
|
+
} = {},
|
|
27
|
+
onUrlChange: h,
|
|
28
|
+
onStatusChange: v
|
|
29
|
+
} = i, [f, u] = c(i.uploading), [A, S] = c(!1);
|
|
30
|
+
r(() => {
|
|
31
|
+
u(i.uploading);
|
|
32
|
+
}, [i.uploading]);
|
|
33
|
+
const [s, d] = c(i.url);
|
|
34
|
+
r(() => {
|
|
35
|
+
d(i.url);
|
|
36
|
+
}, [i.url]), r(() => {
|
|
37
|
+
a && t instanceof File && (s || (console.log(a, s, t, "====="), !f && (u(!0), a(t).then((e) => {
|
|
38
|
+
d(e), h && h(e);
|
|
39
|
+
}).catch((e) => S(e)).finally(() => u(!1)))));
|
|
40
|
+
}, [a, s, t]);
|
|
41
|
+
const [l, p] = c(t instanceof File || t == null ? void 0 : t.status);
|
|
42
|
+
r(() => {
|
|
43
|
+
p(t instanceof File || t == null ? void 0 : t.status);
|
|
44
|
+
}, [t]);
|
|
45
|
+
const C = () => {
|
|
46
|
+
n && m && l === F.Processing && m(n).then((e) => {
|
|
47
|
+
e !== l && (l !== void 0 && v && v(e), p(e));
|
|
48
|
+
}).catch((e) => p(F.Failed));
|
|
49
|
+
};
|
|
50
|
+
return r(() => {
|
|
51
|
+
C();
|
|
52
|
+
}, [n, m, l]), r(() => {
|
|
53
|
+
b(t).then((e) => {
|
|
54
|
+
d(e);
|
|
55
|
+
});
|
|
56
|
+
}, [t]), t ? /* @__PURE__ */ x("div", {
|
|
57
|
+
className: `file-preview ${y}`,
|
|
58
|
+
style: N,
|
|
59
|
+
children: [/* @__PURE__ */ o(k, {
|
|
60
|
+
src: s,
|
|
61
|
+
className: "file-icon"
|
|
62
|
+
}), f && /* @__PURE__ */ o(E, {
|
|
63
|
+
className: "file-action file-process",
|
|
64
|
+
indicator: /* @__PURE__ */ o(B, {
|
|
65
|
+
style: {
|
|
66
|
+
fontSize: 16
|
|
67
|
+
},
|
|
68
|
+
spin: !0
|
|
69
|
+
})
|
|
70
|
+
}), !f && g && /* @__PURE__ */ o(j, {
|
|
71
|
+
overlayClassName: "file-remove-tooltip",
|
|
72
|
+
title: "删除文件",
|
|
73
|
+
children: /* @__PURE__ */ o(z, {
|
|
74
|
+
className: "file-action file-remove",
|
|
75
|
+
icon: /* @__PURE__ */ o(I, {
|
|
76
|
+
style: {
|
|
77
|
+
fontSize: "10px"
|
|
78
|
+
},
|
|
79
|
+
type: "icon-shanchu"
|
|
80
|
+
}),
|
|
81
|
+
onClick: () => {
|
|
82
|
+
g(t, n);
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
})]
|
|
86
|
+
}) : /* @__PURE__ */ o(U, {});
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
V as default
|
|
90
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as o } from "react";
|
|
3
|
+
import g from "../../context.mjs";
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
const x = (r) => {
|
|
6
|
+
const {
|
|
7
|
+
transform: e
|
|
8
|
+
} = o(g), {
|
|
9
|
+
icon: i,
|
|
10
|
+
text: n,
|
|
11
|
+
children: s
|
|
12
|
+
} = r;
|
|
13
|
+
return /* @__PURE__ */ c("div", {
|
|
14
|
+
className: "greeting",
|
|
15
|
+
children: [(e == null ? void 0 : e.greet) && i && /* @__PURE__ */ t("div", {
|
|
16
|
+
className: "greeting-icon",
|
|
17
|
+
children: /* @__PURE__ */ t("img", {
|
|
18
|
+
src: i
|
|
19
|
+
})
|
|
20
|
+
}), (e == null ? void 0 : e.greet) && n && /* @__PURE__ */ t("div", {
|
|
21
|
+
className: "greeting-word",
|
|
22
|
+
children: n
|
|
23
|
+
}), /* @__PURE__ */ t("div", {
|
|
24
|
+
className: "greeting-questions",
|
|
25
|
+
children: s
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
x as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as r } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import "./style.less.mjs";
|
|
3
|
+
const e = (t) => {
|
|
4
|
+
const {
|
|
5
|
+
children: o
|
|
6
|
+
} = t;
|
|
7
|
+
return /* @__PURE__ */ r("div", {
|
|
8
|
+
className: "history-content",
|
|
9
|
+
children: o
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
e as default
|
|
14
|
+
};
|