byt-lingxiao-ai 0.3.21 → 0.3.23
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/components/AiMessage.vue +43 -14
- package/components/utils/StreamParser.js +1 -1
- package/dist/index.common.js +258 -62
- package/dist/index.common.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +215 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
Outdated base version: https://github.com/primer/github-syntax-light
|
|
10
10
|
Current colors taken from GitHub's CSS
|
|
11
|
-
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.ai-loading[data-v-
|
|
11
|
+
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.ai-loading[data-v-7f2cec94]{display:flex;align-items:center;padding:12px 0;height:24px}.dot[data-v-7f2cec94]{width:8px;height:8px;margin-right:6px;background-color:#86909c;border-radius:50%;animation:dot-bounce-7f2cec94 1.4s ease-in-out infinite both}.dot[data-v-7f2cec94]:first-child{animation-delay:-.32s}.dot[data-v-7f2cec94]:nth-child(2){animation-delay:-.16s}.dot[data-v-7f2cec94]:nth-child(3){animation-delay:0s}@keyframes dot-bounce-7f2cec94{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.chat-window-message-ai[data-v-7f2cec94]{display:flex;gap:12px;align-items:flex-start;max-width:100%;border-radius:12px;background:#f6f8fc;padding:8px 12px}.ai-render[data-v-7f2cec94]{width:100%}.ai-thinking[data-v-7f2cec94]{margin-bottom:8px}.ai-thinking-time[data-v-7f2cec94]{border-radius:9px;background:#ecedf4;color:#86909c;font-family:"Alibaba PuHuiTi 2.0";font-size:16px;font-style:normal;font-weight:500;padding:0 30px 0 30px;height:28px;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.ai-thinking-time[data-v-7f2cec94]:before{left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAYFBMVEUAAADu8P/u8P/u8P/u8P/u8P/u8P/s7//v8v/s7//v7//t7//v8f/u8P/l6P/Iz/+stv+1v//S1/9Xbf/b3/+/x/+irv/b4P+Zpv9yhP+Pnv+Glv+Qnv99jf9hdf/R1/8RfKwjAAAADXRSTlMA36/vz5CAYF9QEHBvMEqmkAAAAM9JREFUGNNNkIkSgyAMRAG1niEoouDV///LJvFqZmDgkZ0Nq6SazmiA3FTqrTqDq/SDC7nbE39O9iHQA/S0HL0UzEppG3gfpbsmqPnwXcFtsAQ+Zw032ol7A2vBkaRVRsRpOPbN44r8YFTOinmxKbpjjKPMpQAGmCx6R/6+h2gRgCDe0BGcgKEWecQUpzSuMll+Gs07+rR63C+j9hppDoFdHG2VaiQMXMAtsAUx54jeb87yzeoOibwDh2L/Y3qrUFeV+kYZR/Rgk5OD6Rq5/QAhCBJvrLC2lgAAAABJRU5ErkJggg==) no-repeat;background-size:cover}.ai-thinking-time[data-v-7f2cec94]:after,.ai-thinking-time[data-v-7f2cec94]:before{content:"";position:absolute;top:50%;transform:translateY(-50%);width:16px;height:16px}.ai-thinking-time[data-v-7f2cec94]:after{right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAFVBMVEUAAACDj5eGkJyGj5uFj5uGj5uAj5/flAqRAAAAB3RSTlMAIN+ggHAQx7ts8QAAAClJREFUCNdjIBWwCUAZQooQmlHZSAAiYMCsCBFgYAALsRowMDA7kGY8AIDkAfQcVWSDAAAAAElFTkSuQmCC) no-repeat;background-size:cover}.ai-thinking-content[data-v-7f2cec94]{color:#86909c;font-size:14px;padding:8px 0 8px 12px}.ai-content[data-v-7f2cec94],.ai-thinking-content[data-v-7f2cec94]{font-family:"Alibaba PuHuiTi 2.0";font-style:normal;font-weight:400;line-height:24px}.ai-content[data-v-7f2cec94]{color:#4e5969;font-size:16px}.markdown-body[data-v-7f2cec94]{word-wrap:break-word}.markdown-body[data-v-7f2cec94] h1,.markdown-body[data-v-7f2cec94] h2,.markdown-body[data-v-7f2cec94] h3,.markdown-body[data-v-7f2cec94] h4{margin:16px 0 8px 0;font-weight:600;line-height:1.4;color:#1f2937}.markdown-body[data-v-7f2cec94] h1{font-size:24px;border-bottom:2px solid #e5e7eb;padding-bottom:8px}.markdown-body[data-v-7f2cec94] h2{font-size:20px;border-bottom:1px solid #e5e7eb;padding-bottom:6px}.markdown-body[data-v-7f2cec94] h3{font-size:18px}.markdown-body[data-v-7f2cec94] h4{font-size:16px}.markdown-body[data-v-7f2cec94] ol{list-style-type:decimal;padding-left:24px;margin:8px 0}.markdown-body[data-v-7f2cec94] ul{list-style-type:disc;padding-left:24px;margin:8px 0}.markdown-body[data-v-7f2cec94] li{display:list-item}.markdown-body[data-v-7f2cec94] code{background-color:rgba(175,184,193,.2);border-radius:3px;font-size:85%;margin:0;padding:.2em .4em;font-family:Monaco,Menlo,Consolas,Courier New,monospace;color:#e83e8c}.markdown-body[data-v-7f2cec94] pre{background-color:#f6f8fa;border-radius:6px;padding:16px;overflow:auto;margin:12px 0;border:1px solid #e1e4e8}.markdown-body[data-v-7f2cec94] pre code{background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;overflow:visible;padding:0;word-wrap:normal;color:#24292e;font-size:14px}.markdown-body[data-v-7f2cec94] table{border:1px solid #dfe2e5;max-height:500px;margin:12px 0;border-collapse:collapse;width:100%;display:block;overflow:auto}.markdown-body[data-v-7f2cec94] table::-webkit-scrollbar{height:6px}.markdown-body[data-v-7f2cec94] table::-webkit-scrollbar-track{background-color:#f3f4f6}.markdown-body[data-v-7f2cec94] table::-webkit-scrollbar-thumb{background-color:#d1d5db;border-radius:3px}.markdown-body[data-v-7f2cec94] table::-webkit-scrollbar-thumb:hover{background-color:#9ca3af}.markdown-body[data-v-7f2cec94] table td,.markdown-body[data-v-7f2cec94] table th{border:1px solid #dfe2e5;padding:10px 14px;text-align:left}.markdown-body[data-v-7f2cec94] table th{background-color:#f3f4f6;font-weight:600;color:#374151}.markdown-body[data-v-7f2cec94] table tr:nth-child(2n){background-color:#f9fafb}.markdown-body[data-v-7f2cec94] .markdown-table tr:hover{background-color:#f3f4f6;transition:background-color .2s}.markdown-body[data-v-7f2cec94] ol,.markdown-body[data-v-7f2cec94] ul{padding-left:24px;margin:8px 0}.markdown-body[data-v-7f2cec94] li{margin:4px 0;line-height:1.6}.markdown-body[data-v-7f2cec94] strong{font-weight:600;color:#1f2937}.markdown-body[data-v-7f2cec94] em{font-style:italic}.markdown-body[data-v-7f2cec94] del{text-decoration:line-through;opacity:.7}.markdown-body[data-v-7f2cec94] blockquote{border-left:4px solid #dfe2e5;padding-left:16px;margin:12px 0;color:#6b7280;font-style:italic}.markdown-body[data-v-7f2cec94] a{color:#3b82f6;text-decoration:none}.markdown-body[data-v-7f2cec94] a:hover{text-decoration:underline;color:#2563eb}.markdown-body[data-v-7f2cec94] img{max-width:100%;border-radius:6px;margin:12px 0}.markdown-body[data-v-7f2cec94] hr{border:none;border-top:1px solid #e5e7eb;margin:16px 0}.markdown-body[data-v-7f2cec94] br{line-height:.8em}.chat-window-empty[data-v-dfc4454c]{width:300px;height:300px;background:url(img/empty.f36cb82e.png) no-repeat;background-size:cover;margin:auto}.chat-window-content[data-v-dfc4454c]{flex:1;padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.scrollbar-hide[data-v-dfc4454c]::-webkit-scrollbar{display:none}.scrollbar-hide[data-v-dfc4454c]{-ms-overflow-style:none;scrollbar-width:none}[data-v-2cd84254] .el-textarea__inner{border:none!important;padding:0 5px;font-family:PingFang SC!important}[data-v-2cd84254] .el-textarea__inner::-webkit-scrollbar{width:6px;height:6px}[data-v-2cd84254] .el-textarea__inner::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px}[data-v-2cd84254] .el-textarea__inner::-webkit-scrollbar-track{background:transparent}.chat-window-footer[data-v-2cd84254]{padding:16px}.chat-window-textarea[data-v-2cd84254]{min-height:99px;max-height:180px;border-radius:8px;border:1px solid #f2f2f2;background:#fff;display:flex;flex-direction:column}.chat-window-input[data-v-2cd84254]{padding:10px 12px;font-size:16px;font-family:PingFang SC;box-sizing:border-box}.chat-window-bar[data-v-2cd84254]{display:flex;justify-content:flex-end;padding:8px}.chat-window-send[data-v-2cd84254]{width:70px;height:36px;flex-shrink:0;border-radius:6px;background:rgba(43,128,246,.1);display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-overlay[data-v-bc074e36]{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;z-index:9999;pointer-events:none}.chat-window[data-v-bc074e36]{width:480px;height:740px;border-radius:14px;background:#fff;box-shadow:0 2px 20px 0 rgba(0,0,0,.16);position:absolute;bottom:0;right:60px;overflow:hidden;display:flex;flex-direction:column;z-index:10000}.hidden-audio[data-v-244aa1c1]{position:absolute;left:-9999px;opacity:0;pointer-events:none}.chat[data-v-244aa1c1]{position:fixed;bottom:20px;right:10px;z-index:10001}
|
package/dist/index.umd.js
CHANGED
|
@@ -1217,6 +1217,23 @@ function stylus(hljs) {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
module.exports = stylus;
|
|
1219
1219
|
|
|
1220
|
+
/***/ }),
|
|
1221
|
+
|
|
1222
|
+
/***/ 655:
|
|
1223
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1224
|
+
|
|
1225
|
+
"use strict";
|
|
1226
|
+
|
|
1227
|
+
var classof = __webpack_require__(6955);
|
|
1228
|
+
|
|
1229
|
+
var $String = String;
|
|
1230
|
+
|
|
1231
|
+
module.exports = function (argument) {
|
|
1232
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1233
|
+
return $String(argument);
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
|
|
1220
1237
|
/***/ }),
|
|
1221
1238
|
|
|
1222
1239
|
/***/ 679:
|
|
@@ -5774,6 +5791,21 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
5774
5791
|
module.exports = isForced;
|
|
5775
5792
|
|
|
5776
5793
|
|
|
5794
|
+
/***/ }),
|
|
5795
|
+
|
|
5796
|
+
/***/ 2812:
|
|
5797
|
+
/***/ (function(module) {
|
|
5798
|
+
|
|
5799
|
+
"use strict";
|
|
5800
|
+
|
|
5801
|
+
var $TypeError = TypeError;
|
|
5802
|
+
|
|
5803
|
+
module.exports = function (passed, required) {
|
|
5804
|
+
if (passed < required) throw new $TypeError('Not enough arguments');
|
|
5805
|
+
return passed;
|
|
5806
|
+
};
|
|
5807
|
+
|
|
5808
|
+
|
|
5777
5809
|
/***/ }),
|
|
5778
5810
|
|
|
5779
5811
|
/***/ 2839:
|
|
@@ -11813,6 +11845,63 @@ module.exports =
|
|
|
11813
11845
|
(function () { return this; })() || Function('return this')();
|
|
11814
11846
|
|
|
11815
11847
|
|
|
11848
|
+
/***/ }),
|
|
11849
|
+
|
|
11850
|
+
/***/ 4603:
|
|
11851
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
11852
|
+
|
|
11853
|
+
"use strict";
|
|
11854
|
+
|
|
11855
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
11856
|
+
var uncurryThis = __webpack_require__(9504);
|
|
11857
|
+
var toString = __webpack_require__(655);
|
|
11858
|
+
var validateArgumentsLength = __webpack_require__(2812);
|
|
11859
|
+
|
|
11860
|
+
var $URLSearchParams = URLSearchParams;
|
|
11861
|
+
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
11862
|
+
var append = uncurryThis(URLSearchParamsPrototype.append);
|
|
11863
|
+
var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
|
|
11864
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
11865
|
+
var push = uncurryThis([].push);
|
|
11866
|
+
var params = new $URLSearchParams('a=1&a=2&b=3');
|
|
11867
|
+
|
|
11868
|
+
params['delete']('a', 1);
|
|
11869
|
+
// `undefined` case is a Chromium 117 bug
|
|
11870
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
11871
|
+
params['delete']('b', undefined);
|
|
11872
|
+
|
|
11873
|
+
if (params + '' !== 'a=2') {
|
|
11874
|
+
defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
|
|
11875
|
+
var length = arguments.length;
|
|
11876
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
11877
|
+
if (length && $value === undefined) return $delete(this, name);
|
|
11878
|
+
var entries = [];
|
|
11879
|
+
forEach(this, function (v, k) { // also validates `this`
|
|
11880
|
+
push(entries, { key: k, value: v });
|
|
11881
|
+
});
|
|
11882
|
+
validateArgumentsLength(length, 1);
|
|
11883
|
+
var key = toString(name);
|
|
11884
|
+
var value = toString($value);
|
|
11885
|
+
var index = 0;
|
|
11886
|
+
var dindex = 0;
|
|
11887
|
+
var found = false;
|
|
11888
|
+
var entriesLength = entries.length;
|
|
11889
|
+
var entry;
|
|
11890
|
+
while (index < entriesLength) {
|
|
11891
|
+
entry = entries[index++];
|
|
11892
|
+
if (found || entry.key === key) {
|
|
11893
|
+
found = true;
|
|
11894
|
+
$delete(this, entry.key);
|
|
11895
|
+
} else dindex++;
|
|
11896
|
+
}
|
|
11897
|
+
while (dindex < entriesLength) {
|
|
11898
|
+
entry = entries[dindex++];
|
|
11899
|
+
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
|
|
11900
|
+
}
|
|
11901
|
+
}, { enumerable: true, unsafe: true });
|
|
11902
|
+
}
|
|
11903
|
+
|
|
11904
|
+
|
|
11816
11905
|
/***/ }),
|
|
11817
11906
|
|
|
11818
11907
|
/***/ 4618:
|
|
@@ -21277,6 +21366,42 @@ function dsconfig(hljs) {
|
|
|
21277
21366
|
}
|
|
21278
21367
|
module.exports = dsconfig;
|
|
21279
21368
|
|
|
21369
|
+
/***/ }),
|
|
21370
|
+
|
|
21371
|
+
/***/ 7566:
|
|
21372
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21373
|
+
|
|
21374
|
+
"use strict";
|
|
21375
|
+
|
|
21376
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
21377
|
+
var uncurryThis = __webpack_require__(9504);
|
|
21378
|
+
var toString = __webpack_require__(655);
|
|
21379
|
+
var validateArgumentsLength = __webpack_require__(2812);
|
|
21380
|
+
|
|
21381
|
+
var $URLSearchParams = URLSearchParams;
|
|
21382
|
+
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
21383
|
+
var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
|
|
21384
|
+
var $has = uncurryThis(URLSearchParamsPrototype.has);
|
|
21385
|
+
var params = new $URLSearchParams('a=1');
|
|
21386
|
+
|
|
21387
|
+
// `undefined` case is a Chromium 117 bug
|
|
21388
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
21389
|
+
if (params.has('a', 2) || !params.has('a', undefined)) {
|
|
21390
|
+
defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
|
|
21391
|
+
var length = arguments.length;
|
|
21392
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
21393
|
+
if (length && $value === undefined) return $has(this, name);
|
|
21394
|
+
var values = getAll(this, name); // also validates `this`
|
|
21395
|
+
validateArgumentsLength(length, 1);
|
|
21396
|
+
var value = toString($value);
|
|
21397
|
+
var index = 0;
|
|
21398
|
+
while (index < values.length) {
|
|
21399
|
+
if (values[index++] === value) return true;
|
|
21400
|
+
} return false;
|
|
21401
|
+
}, { enumerable: true, unsafe: true });
|
|
21402
|
+
}
|
|
21403
|
+
|
|
21404
|
+
|
|
21280
21405
|
/***/ }),
|
|
21281
21406
|
|
|
21282
21407
|
/***/ 7569:
|
|
@@ -24154,6 +24279,35 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
24154
24279
|
});
|
|
24155
24280
|
|
|
24156
24281
|
|
|
24282
|
+
/***/ }),
|
|
24283
|
+
|
|
24284
|
+
/***/ 8721:
|
|
24285
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
24286
|
+
|
|
24287
|
+
"use strict";
|
|
24288
|
+
|
|
24289
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
24290
|
+
var uncurryThis = __webpack_require__(9504);
|
|
24291
|
+
var defineBuiltInAccessor = __webpack_require__(2106);
|
|
24292
|
+
|
|
24293
|
+
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
24294
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
24295
|
+
|
|
24296
|
+
// `URLSearchParams.prototype.size` getter
|
|
24297
|
+
// https://github.com/whatwg/url/pull/734
|
|
24298
|
+
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
24299
|
+
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
24300
|
+
get: function size() {
|
|
24301
|
+
var count = 0;
|
|
24302
|
+
forEach(this, function () { count++; });
|
|
24303
|
+
return count;
|
|
24304
|
+
},
|
|
24305
|
+
configurable: true,
|
|
24306
|
+
enumerable: true
|
|
24307
|
+
});
|
|
24308
|
+
}
|
|
24309
|
+
|
|
24310
|
+
|
|
24157
24311
|
/***/ }),
|
|
24158
24312
|
|
|
24159
24313
|
/***/ 8727:
|
|
@@ -29023,8 +29177,8 @@ var UserMessage_component = normalizeComponent(
|
|
|
29023
29177
|
)
|
|
29024
29178
|
|
|
29025
29179
|
/* harmony default export */ var UserMessage = (UserMessage_component.exports);
|
|
29026
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=template&id=
|
|
29027
|
-
var
|
|
29180
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=template&id=7f2cec94&scoped=true
|
|
29181
|
+
var AiMessagevue_type_template_id_7f2cec94_scoped_true_render = function render() {
|
|
29028
29182
|
var _vm = this,
|
|
29029
29183
|
_c = _vm._self._c;
|
|
29030
29184
|
return _c('div', {
|
|
@@ -29054,11 +29208,20 @@ var AiMessagevue_type_template_id_c82646d8_scoped_true_render = function render(
|
|
|
29054
29208
|
staticClass: "ai-content markdown-body",
|
|
29055
29209
|
domProps: {
|
|
29056
29210
|
"innerHTML": _vm._s(_vm.renderedContent)
|
|
29211
|
+
},
|
|
29212
|
+
on: {
|
|
29213
|
+
"click": _vm.handleLinkClick
|
|
29057
29214
|
}
|
|
29058
29215
|
})])]);
|
|
29059
29216
|
};
|
|
29060
|
-
var
|
|
29061
|
-
|
|
29217
|
+
var AiMessagevue_type_template_id_7f2cec94_scoped_true_staticRenderFns = [];
|
|
29218
|
+
|
|
29219
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
|
|
29220
|
+
var web_url_search_params_delete = __webpack_require__(4603);
|
|
29221
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
|
|
29222
|
+
var web_url_search_params_has = __webpack_require__(7566);
|
|
29223
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
|
|
29224
|
+
var web_url_search_params_size = __webpack_require__(8721);
|
|
29062
29225
|
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
29063
29226
|
function _typeof(o) {
|
|
29064
29227
|
"@babel/helpers - typeof";
|
|
@@ -30834,22 +30997,28 @@ var lib = __webpack_require__(336);
|
|
|
30834
30997
|
|
|
30835
30998
|
|
|
30836
30999
|
|
|
31000
|
+
|
|
31001
|
+
|
|
31002
|
+
|
|
31003
|
+
|
|
30837
31004
|
// 创建自定义渲染器
|
|
30838
31005
|
const renderer = new d.Renderer();
|
|
30839
31006
|
|
|
30840
|
-
//
|
|
30841
|
-
// renderer.link = function(content) {
|
|
30842
|
-
// console.log(content)
|
|
30843
|
-
// return `<router-link to="http://192.168.2.24:9529/portal/permission/user">点击跳转</router-link>`
|
|
30844
|
-
// };
|
|
31007
|
+
// 自定义链接渲染
|
|
30845
31008
|
renderer.link = function ({
|
|
30846
31009
|
href,
|
|
30847
|
-
|
|
31010
|
+
text
|
|
30848
31011
|
}) {
|
|
30849
|
-
|
|
30850
|
-
|
|
30851
|
-
const
|
|
30852
|
-
|
|
31012
|
+
let dataPath = '';
|
|
31013
|
+
const url = new URL(href, window.location.origin);
|
|
31014
|
+
const pathname = url.pathname;
|
|
31015
|
+
if (pathname.startsWith('/portal/')) {
|
|
31016
|
+
dataPath = pathname.substring('/portal'.length);
|
|
31017
|
+
return `<a href="javascript:void(0)" data-path="${dataPath}" data-text="${text}">${text}</a>`;
|
|
31018
|
+
} else {
|
|
31019
|
+
dataPath = href;
|
|
31020
|
+
return `<a href="${dataPath}" target="_blank">${text}</a>`;
|
|
31021
|
+
}
|
|
30853
31022
|
};
|
|
30854
31023
|
d.setOptions({
|
|
30855
31024
|
renderer: renderer,
|
|
@@ -30887,14 +31056,41 @@ d.setOptions({
|
|
|
30887
31056
|
thinkStatus(newVal, oldVal) {
|
|
30888
31057
|
console.log('thinkStatus 变化:', newVal, oldVal);
|
|
30889
31058
|
}
|
|
31059
|
+
},
|
|
31060
|
+
methods: {
|
|
31061
|
+
handleLinkClick(event) {
|
|
31062
|
+
const link = event.target.closest('a');
|
|
31063
|
+
if (!link) return;
|
|
31064
|
+
const routePath = link.getAttribute('data-path');
|
|
31065
|
+
const linkText = link.getAttribute('data-text');
|
|
31066
|
+
if (routePath && linkText) {
|
|
31067
|
+
event.preventDefault();
|
|
31068
|
+
if (this.$appOptions?.store?.dispatch) {
|
|
31069
|
+
this.$appOptions.store.dispatch('tags/addTagview', {
|
|
31070
|
+
path: routePath,
|
|
31071
|
+
fullPath: routePath,
|
|
31072
|
+
label: linkText,
|
|
31073
|
+
name: linkText,
|
|
31074
|
+
meta: {
|
|
31075
|
+
title: linkText
|
|
31076
|
+
}
|
|
31077
|
+
});
|
|
31078
|
+
this.$appOptions.router.push({
|
|
31079
|
+
path: routePath
|
|
31080
|
+
});
|
|
31081
|
+
} else {
|
|
31082
|
+
this.$router.push(routePath).catch(() => {});
|
|
31083
|
+
}
|
|
31084
|
+
}
|
|
31085
|
+
}
|
|
30890
31086
|
}
|
|
30891
31087
|
});
|
|
30892
31088
|
;// ./components/AiMessage.vue?vue&type=script&lang=js
|
|
30893
31089
|
/* harmony default export */ var components_AiMessagevue_type_script_lang_js = (AiMessagevue_type_script_lang_js);
|
|
30894
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=style&index=0&id=
|
|
31090
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=style&index=0&id=7f2cec94&prod&scoped=true&lang=css
|
|
30895
31091
|
// extracted by mini-css-extract-plugin
|
|
30896
31092
|
|
|
30897
|
-
;// ./components/AiMessage.vue?vue&type=style&index=0&id=
|
|
31093
|
+
;// ./components/AiMessage.vue?vue&type=style&index=0&id=7f2cec94&prod&scoped=true&lang=css
|
|
30898
31094
|
|
|
30899
31095
|
;// ./components/AiMessage.vue
|
|
30900
31096
|
|
|
@@ -30907,11 +31103,11 @@ d.setOptions({
|
|
|
30907
31103
|
|
|
30908
31104
|
var AiMessage_component = normalizeComponent(
|
|
30909
31105
|
components_AiMessagevue_type_script_lang_js,
|
|
30910
|
-
|
|
30911
|
-
|
|
31106
|
+
AiMessagevue_type_template_id_7f2cec94_scoped_true_render,
|
|
31107
|
+
AiMessagevue_type_template_id_7f2cec94_scoped_true_staticRenderFns,
|
|
30912
31108
|
false,
|
|
30913
31109
|
null,
|
|
30914
|
-
"
|
|
31110
|
+
"7f2cec94",
|
|
30915
31111
|
null
|
|
30916
31112
|
|
|
30917
31113
|
)
|