vue-layout-gitcode 1.10.32 → 1.10.34
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/{GloabarSearch-DpN8sZM2.js → GloabarSearch-ZUdgMdHw.js} +3 -3
- package/{MenuItem-Caf2A8XB.js → MenuItem-DbDSgCVb.js} +1 -1
- package/{ProjectMenuList-CmDLuZ88.js → ProjectMenuList--EX_Y6FK.js} +2 -2
- package/{ProjectMenuListV2-D064CkUY.js → ProjectMenuListV2-lwkDC5yc.js} +2 -2
- package/{ProjectSearch-fQ7mQQ5O.js → ProjectSearch-Cu27Oo6T.js} +1 -1
- package/{SearchHistoryList-Dsgw3erW.js → SearchHistoryList-BRknibL3.js} +1 -1
- package/{SearchPrefixTag-QOqABDHl.js → SearchPrefixTag-DsGhdEYB.js} +1 -1
- package/{SearchRecommed-DO1S7xER.js → SearchRecommed-ChxDbWAw.js} +2 -2
- package/{SearchScopeList-CRrRHm9F.js → SearchScopeList-KLBGTkpp.js} +1 -1
- package/{UserSearch-D3WNGWmG.js → UserSearch-Ea37hnHC.js} +1 -1
- package/{index-Bokp3itA.js → index-B37z48Pf.js} +1 -1
- package/{index-b0DGasFN.js → index-BZlQeUfS.js} +2 -2
- package/{index-VPhgrMFM.js → index-Bzp5LVcG.js} +1 -1
- package/{index-COqP5qrx.js → index-nIHrUJs_.js} +127 -42
- package/index.js +1 -1
- package/{notice-CaMDFvhR.js → notice-CreD6h0k.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-CZnxR5BU.js → transWebUrl-C7BMQtiW.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
+
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-nIHrUJs_.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
7
|
-
import "./transWebUrl-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BZlQeUfS.js";
|
|
7
|
+
import "./transWebUrl-C7BMQtiW.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Popover } from "vue-devui-lal/popover";
|
|
5
5
|
import "vue-devui-lal/popover/style.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-C7BMQtiW.js";
|
|
5
5
|
import { Select, Option } from "vue-devui-lal/select";
|
|
6
6
|
import { Input } from "vue-devui-lal/input";
|
|
7
7
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-C7BMQtiW.js";
|
|
5
5
|
import { Input } from "vue-devui-lal/input";
|
|
6
6
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
7
7
|
import { MenuItem } from "vue-devui-lal/menu";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-nIHrUJs_.js";
|
|
3
3
|
import { useRoute, useRouter } from "vue-router";
|
|
4
4
|
import "vue-devui-lal/icon";
|
|
5
5
|
import "vue-devui-lal/icon/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "history-list" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
|
|
2
|
-
import { u as useReportRepo, S as SearchRepoCard } from "./index-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-BZlQeUfS.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { SkeletonItem } from "vue-devui-lal/skeleton";
|
|
6
6
|
import "vue-devui-lal/grid/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-nIHrUJs_.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
|
|
|
8
8
|
import "vue-devui-lal/message/style.css";
|
|
9
9
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
10
10
|
import "vue-devui-lal/overlay/style.css";
|
|
11
|
-
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-nIHrUJs_.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-C7BMQtiW.js";
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
7
7
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-nIHrUJs_.js";
|
|
3
3
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const TARGET_TEXT = "Click in order:";
|
|
@@ -235,6 +235,13 @@ function asideRequest(request) {
|
|
|
235
235
|
url: `/api/v1/search/common/configs/home_page_sidebar`,
|
|
236
236
|
method: "get"
|
|
237
237
|
}));
|
|
238
|
+
},
|
|
239
|
+
// 获取群聊服务器列表
|
|
240
|
+
getGroupChatServerList() {
|
|
241
|
+
return reqCatch(() => request({
|
|
242
|
+
url: "/api/v1/im/server/list",
|
|
243
|
+
method: "get"
|
|
244
|
+
}), {});
|
|
238
245
|
}
|
|
239
246
|
};
|
|
240
247
|
}
|
|
@@ -9031,9 +9038,9 @@ const _hoisted_8$8 = {
|
|
|
9031
9038
|
class: "tools-list"
|
|
9032
9039
|
};
|
|
9033
9040
|
const _hoisted_9$6 = { class: "home-nav-tooltip-wrapper" };
|
|
9034
|
-
const _hoisted_10$
|
|
9035
|
-
const _hoisted_11$
|
|
9036
|
-
const _hoisted_12$
|
|
9041
|
+
const _hoisted_10$6 = { class: "home-nav-text" };
|
|
9042
|
+
const _hoisted_11$5 = { class: "text-[var(--theme-placeholder)] text-[10px]" };
|
|
9043
|
+
const _hoisted_12$5 = { class: "qrcode-wrapper" };
|
|
9037
9044
|
const _hoisted_13$2 = { class: "pl-[8px]" };
|
|
9038
9045
|
const _hoisted_14$2 = { class: "tools-list-item" };
|
|
9039
9046
|
const _hoisted_15$2 = { class: "g-card px-5 pt-4 pb-5 w-[410px]" };
|
|
@@ -9373,9 +9380,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9373
9380
|
}, {
|
|
9374
9381
|
content: withCtx(() => [
|
|
9375
9382
|
createElementVNode("div", _hoisted_9$6, [
|
|
9376
|
-
createElementVNode("div", _hoisted_10$
|
|
9383
|
+
createElementVNode("div", _hoisted_10$6, [
|
|
9377
9384
|
createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
9378
|
-
createElementVNode("p", _hoisted_11$
|
|
9385
|
+
createElementVNode("p", _hoisted_11$5, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
|
|
9379
9386
|
])
|
|
9380
9387
|
])
|
|
9381
9388
|
]),
|
|
@@ -9405,7 +9412,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9405
9412
|
"overlay-class": "tools-tag-tooltip"
|
|
9406
9413
|
}, {
|
|
9407
9414
|
content: withCtx(() => [
|
|
9408
|
-
createElementVNode("div", _hoisted_12$
|
|
9415
|
+
createElementVNode("div", _hoisted_12$5, [
|
|
9409
9416
|
createElementVNode("div", _hoisted_13$2, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
9410
9417
|
_cache[8] || (_cache[8] = createElementVNode("img", {
|
|
9411
9418
|
class: "qrcode",
|
|
@@ -11286,9 +11293,9 @@ const _hoisted_9$5 = {
|
|
|
11286
11293
|
key: 0,
|
|
11287
11294
|
class: "flex items-center w-full"
|
|
11288
11295
|
};
|
|
11289
|
-
const _hoisted_10$
|
|
11290
|
-
const _hoisted_11$
|
|
11291
|
-
const _hoisted_12$
|
|
11296
|
+
const _hoisted_10$5 = ["title"];
|
|
11297
|
+
const _hoisted_11$4 = ["title"];
|
|
11298
|
+
const _hoisted_12$4 = {
|
|
11292
11299
|
key: 0,
|
|
11293
11300
|
class: "mb-[2px]"
|
|
11294
11301
|
};
|
|
@@ -11536,7 +11543,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11536
11543
|
ref: breadcrumbTextRef,
|
|
11537
11544
|
title: item.label,
|
|
11538
11545
|
class: normalizeClass(["linkTx", index2 === unref(breadcrumb).length - 1 ? "font-bold" : ""])
|
|
11539
|
-
}, toDisplayString$1(item.label), 11, _hoisted_10$
|
|
11546
|
+
}, toDisplayString$1(item.label), 11, _hoisted_10$5)
|
|
11540
11547
|
]),
|
|
11541
11548
|
_: 2
|
|
11542
11549
|
}, 1032, ["href"]),
|
|
@@ -11561,11 +11568,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11561
11568
|
ref: breadcrumbNextTextRef,
|
|
11562
11569
|
title: unref(breadcrumb)[unref(breadcrumb).length - 1].label,
|
|
11563
11570
|
class: "linkTx font-bold"
|
|
11564
|
-
}, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$
|
|
11571
|
+
}, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$4)
|
|
11565
11572
|
]),
|
|
11566
11573
|
_: 1
|
|
11567
11574
|
}, 8, ["to"]),
|
|
11568
|
-
unref(isGstarRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
11575
|
+
unref(isGstarRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$4, [
|
|
11569
11576
|
createVNode(_sfc_main$D, {
|
|
11570
11577
|
origin: "repo",
|
|
11571
11578
|
icon: "",
|
|
@@ -14420,7 +14427,7 @@ const _hoisted_6$a = { class: "flex message-item-body flex-1" };
|
|
|
14420
14427
|
const _hoisted_7$7 = ["title", "innerHTML"];
|
|
14421
14428
|
const _hoisted_8$6 = ["title"];
|
|
14422
14429
|
const _hoisted_9$4 = { class: "message-item-info flex" };
|
|
14423
|
-
const _hoisted_10$
|
|
14430
|
+
const _hoisted_10$4 = { class: "flex justify-end message-item-rightTx message-item-date" };
|
|
14424
14431
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
14425
14432
|
__name: "index",
|
|
14426
14433
|
props: {
|
|
@@ -14496,7 +14503,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14496
14503
|
])
|
|
14497
14504
|
])
|
|
14498
14505
|
]),
|
|
14499
|
-
createElementVNode("div", _hoisted_10$
|
|
14506
|
+
createElementVNode("div", _hoisted_10$4, toDisplayString$1(unref(formatTimeFromNow)(__props.data.time)), 1)
|
|
14500
14507
|
]);
|
|
14501
14508
|
};
|
|
14502
14509
|
}
|
|
@@ -14517,18 +14524,30 @@ const _hoisted_4$f = {
|
|
|
14517
14524
|
};
|
|
14518
14525
|
const _hoisted_5$a = { class: "message-content-cover" };
|
|
14519
14526
|
const _hoisted_6$9 = {
|
|
14520
|
-
key:
|
|
14521
|
-
class: "message-content-
|
|
14527
|
+
key: 0,
|
|
14528
|
+
class: "message-content-header"
|
|
14522
14529
|
};
|
|
14523
14530
|
const _hoisted_7$6 = {
|
|
14524
|
-
key:
|
|
14525
|
-
class: "
|
|
14531
|
+
key: 0,
|
|
14532
|
+
class: "g-number"
|
|
14526
14533
|
};
|
|
14527
14534
|
const _hoisted_8$5 = {
|
|
14535
|
+
key: 0,
|
|
14536
|
+
class: "g-number"
|
|
14537
|
+
};
|
|
14538
|
+
const _hoisted_9$3 = {
|
|
14539
|
+
key: 2,
|
|
14540
|
+
class: "message-content-empty"
|
|
14541
|
+
};
|
|
14542
|
+
const _hoisted_10$3 = {
|
|
14528
14543
|
key: 3,
|
|
14544
|
+
class: "loading-more"
|
|
14545
|
+
};
|
|
14546
|
+
const _hoisted_11$3 = {
|
|
14547
|
+
key: 4,
|
|
14529
14548
|
class: "no-more"
|
|
14530
14549
|
};
|
|
14531
|
-
const
|
|
14550
|
+
const _hoisted_12$3 = { class: "message-footer-nav" };
|
|
14532
14551
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
14533
14552
|
__name: "MessageBox",
|
|
14534
14553
|
setup(__props, { expose: __expose }) {
|
|
@@ -14549,6 +14568,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14549
14568
|
const total = ref(0);
|
|
14550
14569
|
const hasMore = ref(false);
|
|
14551
14570
|
const loadingMore = ref(false);
|
|
14571
|
+
const currentType = ref("mention");
|
|
14572
|
+
const mentionSubTab = ref("project");
|
|
14573
|
+
const mentionSubTabCount = ref({
|
|
14574
|
+
project: 0,
|
|
14575
|
+
discussion: 0
|
|
14576
|
+
});
|
|
14552
14577
|
const scrollContainer = ref(null);
|
|
14553
14578
|
const formData = ref([
|
|
14554
14579
|
{
|
|
@@ -14632,12 +14657,17 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14632
14657
|
const res = await API.getMsgDict();
|
|
14633
14658
|
msgDict.value = res.data;
|
|
14634
14659
|
(_a2 = res.data) == null ? void 0 : _a2.forEach((item) => {
|
|
14660
|
+
var _a3, _b, _c;
|
|
14635
14661
|
if (!item.act) return;
|
|
14636
14662
|
for (const i in formData.value) {
|
|
14637
14663
|
if (formData.value[i].messageType === item.type || item.type === "5" && formData.value[i].notifyType === 5) {
|
|
14638
14664
|
formData.value[i].dict = item.act || [];
|
|
14639
14665
|
formData.value[i].count = Number(item.un_read_count);
|
|
14640
14666
|
}
|
|
14667
|
+
if (formData.value[i].messageType === "mention" && ((_a3 = item.children) == null ? void 0 : _a3.length) > 0) {
|
|
14668
|
+
mentionSubTabCount.value.project = ((_b = item.children.find((child) => child.type === "mention")) == null ? void 0 : _b.un_read_count) || 0;
|
|
14669
|
+
mentionSubTabCount.value.discussion = ((_c = item.children.find((child) => child.type === "mention-im")) == null ? void 0 : _c.un_read_count) || 0;
|
|
14670
|
+
}
|
|
14641
14671
|
}
|
|
14642
14672
|
});
|
|
14643
14673
|
};
|
|
@@ -14650,7 +14680,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14650
14680
|
}
|
|
14651
14681
|
};
|
|
14652
14682
|
const productQueryArgs = (page = 1) => {
|
|
14653
|
-
|
|
14683
|
+
let typeString = checkedId.value;
|
|
14684
|
+
if (currentType.value === "mention") {
|
|
14685
|
+
typeString = mentionSubTab.value === "project" ? "mention" : "mention-im";
|
|
14686
|
+
}
|
|
14654
14687
|
const queryArgs = {
|
|
14655
14688
|
page_num: page,
|
|
14656
14689
|
page_size: pageSize.value,
|
|
@@ -14728,6 +14761,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14728
14761
|
let nowType = "mention";
|
|
14729
14762
|
const tabChange = (type) => {
|
|
14730
14763
|
console.log("sb====", type);
|
|
14764
|
+
currentType.value = type;
|
|
14731
14765
|
if (nowType === type) {
|
|
14732
14766
|
return false;
|
|
14733
14767
|
} else {
|
|
@@ -14735,6 +14769,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14735
14769
|
}
|
|
14736
14770
|
init2(true);
|
|
14737
14771
|
};
|
|
14772
|
+
const switchMentionSubTab = (tab) => {
|
|
14773
|
+
if (mentionSubTab.value === tab) return;
|
|
14774
|
+
mentionSubTab.value = tab;
|
|
14775
|
+
init2(true);
|
|
14776
|
+
};
|
|
14738
14777
|
const init2 = async (resetPage = true) => {
|
|
14739
14778
|
if (resetPage) {
|
|
14740
14779
|
pageNum.value = 1;
|
|
@@ -14778,7 +14817,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14778
14817
|
const _directive_loading = resolveDirective("loading");
|
|
14779
14818
|
return openBlock(), createElementBlock("div", {
|
|
14780
14819
|
class: "message-box",
|
|
14781
|
-
onClick: _cache[
|
|
14820
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => console.log("stop"), ["stop"]))
|
|
14782
14821
|
}, [
|
|
14783
14822
|
createElementVNode("div", _hoisted_1$q, [
|
|
14784
14823
|
createVNode(unref(Tabs), {
|
|
@@ -14832,26 +14871,42 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14832
14871
|
class: "message-content"
|
|
14833
14872
|
}, [
|
|
14834
14873
|
withDirectives((openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
14835
|
-
|
|
14874
|
+
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
14875
|
+
createElementVNode("div", {
|
|
14876
|
+
class: normalizeClass(["message-content-header-item mr-[8px]", { active: mentionSubTab.value === "project" }]),
|
|
14877
|
+
onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
|
|
14878
|
+
}, [
|
|
14879
|
+
_cache[6] || (_cache[6] = createTextVNode(" 项目相关 ", -1)),
|
|
14880
|
+
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$6, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
|
|
14881
|
+
], 2),
|
|
14882
|
+
createElementVNode("div", {
|
|
14883
|
+
class: normalizeClass(["message-content-header-item", { active: mentionSubTab.value === "discussion" }]),
|
|
14884
|
+
onClick: _cache[3] || (_cache[3] = ($event) => switchMentionSubTab("discussion"))
|
|
14885
|
+
}, [
|
|
14886
|
+
_cache[7] || (_cache[7] = createTextVNode(" 在线讨论 ", -1)),
|
|
14887
|
+
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$5, toDisplayString$1(mentionSubTabCount.value.discussion), 1)) : createCommentVNode("", true)
|
|
14888
|
+
], 2)
|
|
14889
|
+
])) : createCommentVNode("", true),
|
|
14890
|
+
listData.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(listData.value, (item) => {
|
|
14836
14891
|
return openBlock(), createBlock(MessageItem, {
|
|
14837
14892
|
type: checkedId.value,
|
|
14838
14893
|
key: item.id,
|
|
14839
14894
|
data: item,
|
|
14840
14895
|
onTrigger: ($event) => handleMessageRead(item)
|
|
14841
14896
|
}, null, 8, ["type", "data", "onTrigger"]);
|
|
14842
|
-
}), 128)) : (openBlock(), createElementBlock("div",
|
|
14897
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
14843
14898
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMessage")), 1)
|
|
14844
14899
|
])),
|
|
14845
|
-
loadingMore.value ? (openBlock(), createElementBlock("div",
|
|
14846
|
-
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
14900
|
+
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_10$3, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.loading")) + "... ", 1)) : createCommentVNode("", true),
|
|
14901
|
+
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11$3, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMore")), 1)) : createCommentVNode("", true)
|
|
14847
14902
|
])), [
|
|
14848
14903
|
[_directive_loading, loading.value]
|
|
14849
14904
|
])
|
|
14850
14905
|
], 512),
|
|
14851
|
-
createElementVNode("div",
|
|
14906
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
14852
14907
|
createElementVNode("div", { onClick: setPageRead }, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.pageRead")), 1),
|
|
14853
14908
|
createElementVNode("div", {
|
|
14854
|
-
onClick: _cache[
|
|
14909
|
+
onClick: _cache[4] || (_cache[4] = ($event) => toPage("all"))
|
|
14855
14910
|
}, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.viewAll")) + " >", 1)
|
|
14856
14911
|
])
|
|
14857
14912
|
]);
|
|
@@ -14928,6 +14983,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
14928
14983
|
position: ["bottom-start"],
|
|
14929
14984
|
"destroy-on-hide": false,
|
|
14930
14985
|
trigger: "hover",
|
|
14986
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14987
|
+
}, ["stop"])),
|
|
14931
14988
|
"overlay-class": "g-user-dropdown",
|
|
14932
14989
|
onToggle: handleToggle
|
|
14933
14990
|
}, {
|
|
@@ -15653,13 +15710,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15653
15710
|
var _a;
|
|
15654
15711
|
const layoutConfig2 = useLayoutConfig();
|
|
15655
15712
|
const { t: $t } = i18n.global;
|
|
15656
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
15657
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
15658
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
15659
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
15660
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
15661
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
15662
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
15713
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Cu27Oo6T.js"));
|
|
15714
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Ea37hnHC.js"));
|
|
15715
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-ZUdgMdHw.js"));
|
|
15716
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BRknibL3.js"));
|
|
15717
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-KLBGTkpp.js"));
|
|
15718
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DsGhdEYB.js"));
|
|
15719
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-ChxDbWAw.js"));
|
|
15663
15720
|
const props = __props;
|
|
15664
15721
|
const repoInfo = inject("repoInfo");
|
|
15665
15722
|
const orgInfo = inject("orgInfo");
|
|
@@ -16433,7 +16490,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
16433
16490
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
16434
16491
|
}
|
|
16435
16492
|
};
|
|
16436
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
16493
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CreD6h0k.js"));
|
|
16437
16494
|
function clearNotice() {
|
|
16438
16495
|
if (localStorage$2.getItem("validator_email")) {
|
|
16439
16496
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17236,9 +17293,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17236
17293
|
const layoutConfig2 = useLayoutConfig();
|
|
17237
17294
|
const { t: t2 } = i18n.global;
|
|
17238
17295
|
const route = useRoute();
|
|
17239
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
17240
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
17241
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList
|
|
17296
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-DbDSgCVb.js"));
|
|
17297
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-lwkDC5yc.js"));
|
|
17298
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList--EX_Y6FK.js"));
|
|
17242
17299
|
const props = __props;
|
|
17243
17300
|
console.log("slotKeys", props.slotKeys);
|
|
17244
17301
|
console.log("props", props);
|
|
@@ -17813,7 +17870,7 @@ const _hoisted_3$9 = {
|
|
|
17813
17870
|
class: "aside-menus"
|
|
17814
17871
|
};
|
|
17815
17872
|
const _hoisted_4$7 = {
|
|
17816
|
-
key:
|
|
17873
|
+
key: 1,
|
|
17817
17874
|
class: "line mt-[16px] mb-[6px]"
|
|
17818
17875
|
};
|
|
17819
17876
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -17831,9 +17888,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17831
17888
|
collapseMode: { type: Boolean, default: false }
|
|
17832
17889
|
},
|
|
17833
17890
|
setup(__props) {
|
|
17891
|
+
const layoutConfig2 = useLayoutConfig();
|
|
17834
17892
|
const userInfo = inject("userInfo");
|
|
17835
17893
|
const route = useRoute();
|
|
17894
|
+
const serverList = ref([]);
|
|
17836
17895
|
const request = inject("request");
|
|
17896
|
+
const API = asideRequest(request);
|
|
17837
17897
|
const props = __props;
|
|
17838
17898
|
const layoutSlotKeys = computed(() => {
|
|
17839
17899
|
return [...props.slotKeys, "project", "team"];
|
|
@@ -17844,6 +17904,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17844
17904
|
fetchArea();
|
|
17845
17905
|
const isScroll = ref(false);
|
|
17846
17906
|
const timer = ref(null);
|
|
17907
|
+
const isGroupHover = ref(false);
|
|
17847
17908
|
const visibleItems = computed(() => {
|
|
17848
17909
|
switch (props.sceneValue) {
|
|
17849
17910
|
case SceneValue.news:
|
|
@@ -17914,11 +17975,22 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17914
17975
|
return item2;
|
|
17915
17976
|
});
|
|
17916
17977
|
};
|
|
17978
|
+
const getUserGroupChatServerList = async () => {
|
|
17979
|
+
var _a;
|
|
17980
|
+
const res = await API.getGroupChatServerList();
|
|
17981
|
+
const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || [];
|
|
17982
|
+
serverList.value = data;
|
|
17983
|
+
};
|
|
17984
|
+
getUserGroupChatServerList();
|
|
17917
17985
|
const displayArea = computed(() => {
|
|
17918
17986
|
return area.value.filter((item) => {
|
|
17919
17987
|
return getAreaItem(item).length;
|
|
17920
17988
|
});
|
|
17921
17989
|
});
|
|
17990
|
+
const toGroupChat = () => {
|
|
17991
|
+
var _a;
|
|
17992
|
+
window.open(transformUrl(layoutConfig2.VITE_HOST) + "/im?server_id=" + ((_a = serverList.value[0]) == null ? void 0 : _a.server_id), "_blank");
|
|
17993
|
+
};
|
|
17922
17994
|
watch(() => area.value, (newVal) => {
|
|
17923
17995
|
console.log("area", newVal);
|
|
17924
17996
|
});
|
|
@@ -17962,11 +18034,24 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17962
18034
|
};
|
|
17963
18035
|
})
|
|
17964
18036
|
]), 1032, ["list", "isLogin", "slotKeys", "sceneValue", "asideSetShowLittle"]),
|
|
18037
|
+
!index2 && !unref(isPhone)() && serverList.value.length ? (openBlock(), createElementBlock("div", {
|
|
18038
|
+
key: 0,
|
|
18039
|
+
class: "group-discussion",
|
|
18040
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => isGroupHover.value = true),
|
|
18041
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => isGroupHover.value = false),
|
|
18042
|
+
onClick: toGroupChat
|
|
18043
|
+
}, [
|
|
18044
|
+
createVNode(GIcon, {
|
|
18045
|
+
name: isGroupHover.value ? "gt-plane-users-black" : "gt-line-users",
|
|
18046
|
+
size: "16"
|
|
18047
|
+
}, null, 8, ["name"]),
|
|
18048
|
+
_cache[2] || (_cache[2] = createElementVNode("span", null, "群组讨论", -1))
|
|
18049
|
+
], 32)) : createCommentVNode("", true),
|
|
17965
18050
|
!__props.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$7)) : createCommentVNode("", true)
|
|
17966
18051
|
], 64);
|
|
17967
18052
|
}), 128)),
|
|
17968
18053
|
!__props.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
17969
|
-
_cache[
|
|
18054
|
+
_cache[3] || (_cache[3] = createElementVNode("hr", { class: "line mt-[16px] mb-[16px]" }, null, -1)),
|
|
17970
18055
|
createVNode(SubMenuList)
|
|
17971
18056
|
], 64)) : createCommentVNode("", true)
|
|
17972
18057
|
])),
|
|
@@ -23415,7 +23500,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
23415
23500
|
__publicField(_SlidCaptchaManager, "instance");
|
|
23416
23501
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
23417
23502
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
23418
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23503
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Bzp5LVcG.js"));
|
|
23419
23504
|
const useSlidCaptcha = () => {
|
|
23420
23505
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
23421
23506
|
const open = (config) => {
|
|
@@ -23445,7 +23530,7 @@ const useSlidCaptcha = () => {
|
|
|
23445
23530
|
close
|
|
23446
23531
|
};
|
|
23447
23532
|
};
|
|
23448
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23533
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-B37z48Pf.js"));
|
|
23449
23534
|
const useYunpianCaptcha = () => {
|
|
23450
23535
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23451
23536
|
const open = (config) => {
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-nIHrUJs_.js";
|
|
3
3
|
import { Notification } from "vue-devui-lal/notification";
|
|
4
4
|
import { Button } from "vue-devui-lal/button";
|
|
5
5
|
import "vue-devui-lal/notification/style.css";
|