vue-layout-gitcode 1.12.57-multiple-account → 1.12.59-multiple-account
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-C_XOB8aP.js → GloabarSearch-d9jVn7yF.js} +2 -2
- package/{MenuItem-CSbC2r5Q.js → MenuItem-BEndVsWS.js} +1 -1
- package/{ProjectMenuList-D9-s-L30.js → ProjectMenuList-D8_C7FLf.js} +2 -2
- package/{ProjectMenuListV2-Bu9RU8Ah.js → ProjectMenuListV2-EXoyOFZI.js} +2 -2
- package/{ProjectSearch-ChKjse9q.js → ProjectSearch-tRTrAuIP.js} +1 -1
- package/{SearchHistoryList-Bj080d6k.js → SearchHistoryList-C2ww3OtA.js} +1 -1
- package/{SearchRecommed-C_-qWsLc.js → SearchRecommed-DCaqaCO4.js} +2 -2
- package/{SearchScopeList-hX8DhZOk.js → SearchScopeList-CHREVt9w.js} +1 -1
- package/{UserSearch-CHo98UZ-.js → UserSearch-BUPIBFFs.js} +1 -1
- package/{index-D5SbFi-H.js → index-ByRirfNI.js} +1 -1
- package/{index-trrN7Eu4.js → index-Cv1-5J76.js} +327 -213
- package/{index-D98To__r.js → index-hWcTkag1.js} +1 -1
- package/index.js +1 -1
- package/{notice-BPpQsy5g.js → notice-DrorJOhW.js} +1 -1
- package/package.json +1 -1
- package/{search-suggestion-DiqU8XS4.js → search-suggestion-fEciatBa.js} +2 -2
- package/style.css +1 -1
- package/{transWebUrl-CfS-lRqR.js → transWebUrl-BUJjsTFP.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { reactive, readonly, inject, effectScope, computed, watch, isRef, getCurrentInstance, ref, shallowRef, defineComponent, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, openBlock, createElementBlock, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createCommentVNode, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow,
|
|
4
|
+
import { reactive, readonly, inject, effectScope, computed, watch, isRef, getCurrentInstance, ref, shallowRef, defineComponent, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, openBlock, createElementBlock, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createCommentVNode, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, withKeys, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots } from "vue";
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
7
7
|
import { Icon } from "vue-devui-lal/icon";
|
|
@@ -1457,7 +1457,7 @@ function createDOMPurify() {
|
|
|
1457
1457
|
const originalDocument = document2;
|
|
1458
1458
|
const currentScript = originalDocument.currentScript;
|
|
1459
1459
|
window2.DocumentFragment;
|
|
1460
|
-
const HTMLTemplateElement = window2.HTMLTemplateElement,
|
|
1460
|
+
const HTMLTemplateElement = window2.HTMLTemplateElement, Node2 = window2.Node, Element = window2.Element, NodeFilter = window2.NodeFilter;
|
|
1461
1461
|
window2.NamedNodeMap === void 0 && (window2.NamedNodeMap || window2.MozNamedAttrMap);
|
|
1462
1462
|
window2.HTMLFormElement;
|
|
1463
1463
|
const DOMParser = window2.DOMParser, trustedTypes = window2.trustedTypes;
|
|
@@ -1470,9 +1470,9 @@ function createDOMPurify() {
|
|
|
1470
1470
|
const getParentNode = lookupGetter(ElementPrototype, "parentNode");
|
|
1471
1471
|
const getShadowRoot = lookupGetter(ElementPrototype, "shadowRoot");
|
|
1472
1472
|
const getAttributes = lookupGetter(ElementPrototype, "attributes");
|
|
1473
|
-
const getNodeType =
|
|
1474
|
-
const getNodeName =
|
|
1475
|
-
const getOwnerDocument =
|
|
1473
|
+
const getNodeType = Node2 && Node2.prototype ? lookupGetter(Node2.prototype, "nodeType") : null;
|
|
1474
|
+
const getNodeName = Node2 && Node2.prototype ? lookupGetter(Node2.prototype, "nodeName") : null;
|
|
1475
|
+
const getOwnerDocument = Node2 && Node2.prototype ? lookupGetter(Node2.prototype, "ownerDocument") : null;
|
|
1476
1476
|
const _readNodeType = function _readNodeType2(node) {
|
|
1477
1477
|
return getNodeType ? getNodeType(node) : node.nodeType;
|
|
1478
1478
|
};
|
|
@@ -8672,6 +8672,7 @@ const gitCodeLayout$1 = {
|
|
|
8672
8672
|
myStar: "我的 Star",
|
|
8673
8673
|
personSetting: "个人设置",
|
|
8674
8674
|
helpDocument: "帮助文档",
|
|
8675
|
+
accountSwitchTitle: "切换账号",
|
|
8675
8676
|
accountSessions: "账号",
|
|
8676
8677
|
accountCurrent: "当前",
|
|
8677
8678
|
accountNeedReauth: "需重新登录",
|
|
@@ -9105,6 +9106,7 @@ const gitCodeLayout = {
|
|
|
9105
9106
|
myStar: "Your stars",
|
|
9106
9107
|
personSetting: "Settings",
|
|
9107
9108
|
helpDocument: "GitCode Docs",
|
|
9109
|
+
accountSwitchTitle: "Switch account",
|
|
9108
9110
|
accountSessions: "Accounts",
|
|
9109
9111
|
accountCurrent: "Current",
|
|
9110
9112
|
accountNeedReauth: "Sign-in required",
|
|
@@ -10045,12 +10047,12 @@ const _hoisted_4$p = {
|
|
|
10045
10047
|
class: "tools-float-bar"
|
|
10046
10048
|
};
|
|
10047
10049
|
const _hoisted_5$k = { class: "float-tooltip" };
|
|
10048
|
-
const _hoisted_6$
|
|
10049
|
-
const _hoisted_7$
|
|
10050
|
-
const _hoisted_8$
|
|
10051
|
-
const _hoisted_9$
|
|
10052
|
-
const _hoisted_10$
|
|
10053
|
-
const _hoisted_11$
|
|
10050
|
+
const _hoisted_6$j = { class: "float-tooltip-content" };
|
|
10051
|
+
const _hoisted_7$g = { class: "float-tooltip" };
|
|
10052
|
+
const _hoisted_8$e = { class: "float-tooltip-content" };
|
|
10053
|
+
const _hoisted_9$d = { class: "float-tooltip" };
|
|
10054
|
+
const _hoisted_10$a = { class: "float-tooltip-content" };
|
|
10055
|
+
const _hoisted_11$8 = { class: "float-tooltip" };
|
|
10054
10056
|
const _hoisted_12$8 = { class: "float-tooltip-content" };
|
|
10055
10057
|
const _hoisted_13$6 = { class: "float-tooltip" };
|
|
10056
10058
|
const _hoisted_14$3 = { class: "float-tooltip-content" };
|
|
@@ -10301,7 +10303,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10301
10303
|
}, [
|
|
10302
10304
|
_cache[6] || (_cache[6] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><g transform="translate(1, 0.26)" data-v-vue-layout-gitcode><path d="M6.37369 9.73359H7.67369V12.7336H6.37371L6.37369 9.73359Z" data-v-vue-layout-gitcode></path><path d="M9.8064 4.18587L8.34306 5.28613L8.88219 7.02454C8.88219 7.03555 8.89319 7.05755 8.89319 7.06855C8.89319 7.12357 8.87118 7.16758 8.82717 7.20058C8.79416 7.22259 8.76116 7.23359 8.72815 7.23359C8.69514 7.23359 8.66213 7.22259 8.64013 7.20058L7.12177 6.17734L5.61441 7.22259C5.5594 7.2666 5.48238 7.2666 5.42737 7.22259C5.38336 7.17858 5.36135 7.13457 5.36135 7.07956C5.36135 7.05755 5.36135 7.04655 5.37235 7.02454L5.90048 5.28613L4.43713 4.18587C4.38212 4.14186 4.36011 4.06484 4.38212 3.99883C4.40413 3.93281 4.47014 3.8888 4.53616 3.8888L6.37359 3.85579L6.97873 2.12838C7.00074 2.06237 7.06676 2.01836 7.13277 2.01836C7.19879 2.01836 7.2648 2.06237 7.28681 2.12838L7.89195 3.85579L9.72939 3.8888C10.7954 3.8888 10.8614 3.93281 10.8834 3.99883C10.8834 4.06484 10.8614 4.14186 10.8064 4.18587Z" data-v-vue-layout-gitcode></path><path d="M2.32766 2.22724V3.17963C2.26417 3.16693 2.18798 3.15423 2.11179 3.15423C2.0229 3.15423 1.94671 3.15423 1.87052 3.17963C1.10861 3.3701 0.727662 4.48756 1.01973 5.60502C2.2483 6.50661 1.88322 7.19232 2.53084 7.33201C2.53084 7.30661 2.87369 8.24629 2.87369 8.2209C2.8229 8.23359 2.75941 8.23359 2.70861 8.23359C1.60385 8.23359 0.511789 7.25582 0.130837 5.83359C-0.300909 4.2082 0.372107 2.6082 1.61655 2.27804C1.78163 2.23994 1.94671 2.21455 2.11179 2.21455C2.17528 2.21455 2.25147 2.21455 2.32766 2.22724Z" data-v-vue-layout-gitcode></path><path d="M11.6769 2.24629V3.19867C11.7403 3.18597 11.8165 3.17328 11.8927 3.17328C11.9816 3.17328 12.0578 3.17328 13.134 3.19867C12.8959 3.38915 13.2769 4.50661 12.9848 5.62407C12.7562 6.52566 12.1213 7.21137 12.4737 7.35105C12.4737 7.32566 11.1308 8.26534 11.1308 8.23994C11.1816 8.25264 11.2451 8.25264 11.2959 8.25264C12.4007 8.25264 13.4927 7.27486 14.8737 5.85264C14.3054 4.22724 13.6324 2.62724 12.388 2.29709C12.2229 2.25899 12.0578 2.23359 11.8927 2.23359C11.8292 2.23359 11.753 2.23359 11.6769 2.24629Z" data-v-vue-layout-gitcode></path><path d="M7.00412 10.236C6.20909 10.236 5.41406 10.0373 4.7184 9.73913C3.12834 9.24225 2.23393 7.75155 2.23393 6.06211V0.695656C2.23393 0.298125 2.53206 0 2.92959 0H11.178C11.5755 0 11.8737 0.298125 11.8737 0.695656V6.06211C11.8737 7.65217 10.8799 9.14286 9.38921 9.73914C8.59418 10.1366 7.79915 10.236 7.00412 10.236ZM3.22771 0.993781V6.06211C3.22771 7.25466 3.92337 8.34783 5.11592 8.84472C6.40785 9.34161 7.79915 9.34161 8.9917 8.84472C10.0849 8.34783 10.8799 7.25466 10.8799 6.06211V0.993781H3.22771Z" data-v-vue-layout-gitcode></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.191 13.4781H4.88525L4.71859 14.4781H9.35766L9.191 13.4781ZM4.88525 12.4781H9.191C9.67984 12.4781 10.097 12.8315 10.1774 13.3137L10.3441 14.3137C10.4456 14.9233 9.9756 15.4781 9.35766 15.4781H4.71859C4.10065 15.4781 3.6306 14.9233 3.73219 14.3137L3.89886 13.3137C3.97922 12.8315 4.39641 12.4781 4.88525 12.4781Z" data-v-vue-layout-gitcode></path></g></svg></div>', 1)),
|
|
10303
10305
|
createElementVNode("div", _hoisted_5$k, [
|
|
10304
|
-
createElementVNode("span", _hoisted_6$
|
|
10306
|
+
createElementVNode("span", _hoisted_6$j, toDisplayString$1(growthCenterTooltip.value), 1),
|
|
10305
10307
|
_cache[5] || (_cache[5] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10306
10308
|
])
|
|
10307
10309
|
])) : createCommentVNode("", true),
|
|
@@ -10311,8 +10313,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10311
10313
|
onClick: handleInvite
|
|
10312
10314
|
}, [
|
|
10313
10315
|
_cache[8] || (_cache[8] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><path d="M5.76106 0.835284V0.836261C6.72931 0.885228 7.49934 1.6864 7.49934 2.66732V4.49935H5.66731L5.56282 4.49642C4.68866 4.44778 3.97761 3.7865 3.85286 2.93489L3.83625 2.76107L3.83333 2.66732C3.83333 1.65629 4.65197 0.835756 5.66243 0.833331L5.76106 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M10.2389 0.835284V0.836261C9.27067 0.885228 8.50064 1.6864 8.50064 2.66732V4.49935H10.3327L10.4372 4.49642C11.3113 4.44778 12.0224 3.7865 12.1471 2.93489L12.1637 2.76107L12.1667 2.66732C12.1667 1.65629 11.348 0.835756 10.3375 0.833331L10.2389 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M2.50039 7.52441L2.02578 7.50098L1.90957 7.49512C1.49211 7.45034 1.16657 7.09627 1.16641 6.66699V5.33301L1.17031 5.24805C1.21307 4.82811 1.56865 4.5 2.00039 4.5H14.0004C14.4604 4.50019 14.8332 4.87305 14.8334 5.33301V6.66699L14.8295 6.74707C14.7918 7.14014 14.4809 7.4537 14.0893 7.49512L13.975 7.50098L13.5004 7.52441V14.333C13.5004 14.7932 13.1266 15.167 12.6664 15.167H3.3334C2.87364 15.167 2.50039 14.7937 2.50039 14.333V7.52441Z" stroke="currentColor" data-v-vue-layout-gitcode></path><rect x="5.25" y="12.25" width="5.5" height="0.5" rx="0.25" stroke="currentColor" stroke-width="0.5" stroke-linejoin="round" data-v-vue-layout-gitcode></rect><rect x="2.25" y="7.25" width="11.5" height="0.5" stroke="currentColor" stroke-width="0.5" data-v-vue-layout-gitcode></rect></svg></div>', 1)),
|
|
10314
|
-
createElementVNode("div", _hoisted_7$
|
|
10315
|
-
createElementVNode("span", _hoisted_8$
|
|
10316
|
+
createElementVNode("div", _hoisted_7$g, [
|
|
10317
|
+
createElementVNode("span", _hoisted_8$e, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
|
|
10316
10318
|
_cache[7] || (_cache[7] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10317
10319
|
])
|
|
10318
10320
|
])) : createCommentVNode("", true),
|
|
@@ -10333,8 +10335,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10333
10335
|
createElementVNode("path", { d: "M14.6182 12.3893H12.2961C12.0184 12.3893 11.7934 12.1643 11.7934 11.8865L11.7881 5.96621C11.7564 3.89551 10.0742 2.31523 8 2.30469C5.92578 2.31523 4.24355 3.89551 4.21016 5.96621L4.20664 11.1025C4.20664 11.1025 4.85527 13.342 6.40039 13.0818C6.51816 12.6898 6.93301 12.5422 7.2002 12.5422H8.82793C9.3834 12.5422 9.8334 12.9922 9.8334 13.5477V13.8623C9.8334 14.4178 9.3834 14.8678 8.82793 14.8678H7.33027C6.90488 14.8678 6.54277 14.6006 6.39512 14.2262C6.37051 14.2121 6.17012 14.2297 5.97324 14.1875C4.44922 13.6426 3.78125 12.3822 3.78125 12.3822C3.75488 12.3875 3.72852 12.391 3.70215 12.391H1.38184C1.1041 12.391 0.879102 12.166 0.879102 11.8883V6.73437C0.879102 6.45664 1.1041 6.23164 1.38184 6.23164H3.04121C3.04121 5.80625 3.03945 5.96445 3.03945 5.96445C3.09922 1.1498 7.91738 1.13398 7.91738 1.13398C7.95605 1.13223 8.0457 1.13223 8.08262 1.13398C8.08262 1.13398 12.9008 1.15156 12.9605 5.96445C12.9605 5.96445 12.9605 5.80449 12.9588 6.23164H14.6182C14.8959 6.23164 15.1209 6.45664 15.1209 6.73437V11.8865C15.1209 12.1643 14.8959 12.3893 14.6182 12.3893ZM3.14492 7.70469C3.14492 7.53418 3.05352 7.39531 2.94102 7.39531H2.0832C1.9707 7.39531 1.8793 7.53418 1.8793 7.70469V10.8775C1.8793 11.0498 1.9707 11.1869 2.0832 11.1869H2.94102C3.05352 11.1869 3.14492 11.048 3.14492 10.8775V7.70469ZM14.1207 7.70469C14.1207 7.53418 14.0293 7.39531 13.9168 7.39531H13.0607C12.9482 7.39531 12.8551 7.53418 12.8551 7.70469V10.8775C12.8551 11.0498 12.9482 11.1869 13.0607 11.1869H13.9168C14.0293 11.1869 14.1207 11.048 14.1207 10.8775V7.70469Z" })
|
|
10334
10336
|
])
|
|
10335
10337
|
], -1)),
|
|
10336
|
-
createElementVNode("div", _hoisted_9$
|
|
10337
|
-
createElementVNode("span", _hoisted_10$
|
|
10338
|
+
createElementVNode("div", _hoisted_9$d, [
|
|
10339
|
+
createElementVNode("span", _hoisted_10$a, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
10338
10340
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10339
10341
|
])
|
|
10340
10342
|
])) : createCommentVNode("", true),
|
|
@@ -10358,7 +10360,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10358
10360
|
})
|
|
10359
10361
|
])
|
|
10360
10362
|
], -1)),
|
|
10361
|
-
createElementVNode("div", _hoisted_11$
|
|
10363
|
+
createElementVNode("div", _hoisted_11$8, [
|
|
10362
10364
|
createElementVNode("span", _hoisted_12$8, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.collapse")), 1),
|
|
10363
10365
|
_cache[11] || (_cache[11] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10364
10366
|
])
|
|
@@ -14164,28 +14166,28 @@ const _hoisted_2$w = { class: "org-layout-toolbar-title ellipsis-two-line" };
|
|
|
14164
14166
|
const _hoisted_3$v = { class: "org-layout-toolbar-name" };
|
|
14165
14167
|
const _hoisted_4$o = { class: "header-custom-btn-label" };
|
|
14166
14168
|
const _hoisted_5$j = { class: "g-repo-breadcrumb-custom" };
|
|
14167
|
-
const _hoisted_6$
|
|
14169
|
+
const _hoisted_6$i = {
|
|
14168
14170
|
key: 1,
|
|
14169
14171
|
class: "header-custom-mirrors-avatar"
|
|
14170
14172
|
};
|
|
14171
|
-
const _hoisted_7$
|
|
14173
|
+
const _hoisted_7$f = {
|
|
14172
14174
|
key: 0,
|
|
14173
14175
|
src: _imports_0,
|
|
14174
14176
|
alt: "mirrors-avatar-phone",
|
|
14175
14177
|
class: "header-custom-mirrors-img"
|
|
14176
14178
|
};
|
|
14177
|
-
const _hoisted_8$
|
|
14179
|
+
const _hoisted_8$d = {
|
|
14178
14180
|
key: 1,
|
|
14179
14181
|
src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
|
|
14180
14182
|
alt: "mirrors-avatar",
|
|
14181
14183
|
class: "header-custom-mirrors-img-tall"
|
|
14182
14184
|
};
|
|
14183
|
-
const _hoisted_9$
|
|
14184
|
-
const _hoisted_10$
|
|
14185
|
+
const _hoisted_9$c = { class: "g-repo-breadcrumb-container" };
|
|
14186
|
+
const _hoisted_10$9 = {
|
|
14185
14187
|
key: 0,
|
|
14186
14188
|
class: "header-custom-breadcrumb-row"
|
|
14187
14189
|
};
|
|
14188
|
-
const _hoisted_11$
|
|
14190
|
+
const _hoisted_11$7 = ["title"];
|
|
14189
14191
|
const _hoisted_12$7 = ["title"];
|
|
14190
14192
|
const _hoisted_13$5 = {
|
|
14191
14193
|
key: 0,
|
|
@@ -14481,14 +14483,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14481
14483
|
width: 28,
|
|
14482
14484
|
height: 28,
|
|
14483
14485
|
is_round: !isOrg.value
|
|
14484
|
-
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
14485
|
-
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$
|
|
14486
|
+
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$i, [
|
|
14487
|
+
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$f)) : (openBlock(), createElementBlock("img", _hoisted_8$d))
|
|
14486
14488
|
]))
|
|
14487
14489
|
];
|
|
14488
14490
|
}),
|
|
14489
14491
|
_: 1
|
|
14490
14492
|
}, 8, ["href"]),
|
|
14491
|
-
createElementVNode("div", _hoisted_9$
|
|
14493
|
+
createElementVNode("div", _hoisted_9$c, [
|
|
14492
14494
|
!((_b2 = __props.repoProps) == null ? void 0 : _b2.isGhMirrors) ? (openBlock(), createElementBlock("div", {
|
|
14493
14495
|
key: 0,
|
|
14494
14496
|
ref_key: "breadcrumbRef",
|
|
@@ -14499,7 +14501,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14499
14501
|
return openBlock(), createElementBlock(Fragment, {
|
|
14500
14502
|
key: item.path
|
|
14501
14503
|
}, [
|
|
14502
|
-
index2 !== unref(breadcrumb).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_10$
|
|
14504
|
+
index2 !== unref(breadcrumb).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_10$9, [
|
|
14503
14505
|
createVNode(GLink, {
|
|
14504
14506
|
class: "linkTx",
|
|
14505
14507
|
href: item.path
|
|
@@ -14511,7 +14513,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14511
14513
|
ref: breadcrumbTextRef,
|
|
14512
14514
|
title: item.label,
|
|
14513
14515
|
class: normalizeClass(["linkTx", index2 === unref(breadcrumb).length - 1 ? "header-custom-bold" : ""])
|
|
14514
|
-
}, toDisplayString$1(item.label), 11, _hoisted_11$
|
|
14516
|
+
}, toDisplayString$1(item.label), 11, _hoisted_11$7)
|
|
14515
14517
|
]),
|
|
14516
14518
|
_: 2
|
|
14517
14519
|
}, 1032, ["href"]),
|
|
@@ -14787,10 +14789,10 @@ const _hoisted_5$i = {
|
|
|
14787
14789
|
class: "dashboard-create-menu__divider",
|
|
14788
14790
|
role: "separator"
|
|
14789
14791
|
};
|
|
14790
|
-
const _hoisted_6$
|
|
14791
|
-
const _hoisted_7$
|
|
14792
|
-
const _hoisted_8$
|
|
14793
|
-
const _hoisted_9$
|
|
14792
|
+
const _hoisted_6$h = ["href", "onClick", "onKeydown"];
|
|
14793
|
+
const _hoisted_7$e = { class: "dashboard-create-menu__title-row" };
|
|
14794
|
+
const _hoisted_8$c = { class: "dashboard-create-menu__title" };
|
|
14795
|
+
const _hoisted_9$b = {
|
|
14794
14796
|
key: 0,
|
|
14795
14797
|
class: "dashboard-create-menu__desc"
|
|
14796
14798
|
};
|
|
@@ -15028,7 +15030,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15028
15030
|
onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
|
|
15029
15031
|
onKeydown: ($event) => onMenuItemKeydown($event, index2)
|
|
15030
15032
|
}, [
|
|
15031
|
-
createElementVNode("div", _hoisted_7$
|
|
15033
|
+
createElementVNode("div", _hoisted_7$e, [
|
|
15032
15034
|
createVNode(GIcon, {
|
|
15033
15035
|
name: item.icon,
|
|
15034
15036
|
size: "16px",
|
|
@@ -15036,10 +15038,10 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15036
15038
|
class: "dashboard-create-menu__icon",
|
|
15037
15039
|
"aria-hidden": "true"
|
|
15038
15040
|
}, null, 8, ["name"]),
|
|
15039
|
-
createElementVNode("span", _hoisted_8$
|
|
15041
|
+
createElementVNode("span", _hoisted_8$c, toDisplayString$1(item.label), 1)
|
|
15040
15042
|
]),
|
|
15041
|
-
item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
15042
|
-
], 42, _hoisted_6$
|
|
15043
|
+
item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$b, toDisplayString$1(item.desc), 1)) : createCommentVNode("", true)
|
|
15044
|
+
], 42, _hoisted_6$h)
|
|
15043
15045
|
], 64);
|
|
15044
15046
|
}), 128))
|
|
15045
15047
|
], 8, _hoisted_4$n)
|
|
@@ -15194,11 +15196,11 @@ const _hoisted_2$u = { class: "message-item-footer" };
|
|
|
15194
15196
|
const _hoisted_3$t = ["title"];
|
|
15195
15197
|
const _hoisted_4$m = ["href"];
|
|
15196
15198
|
const _hoisted_5$h = { class: "message-item-info-content" };
|
|
15197
|
-
const _hoisted_6$
|
|
15198
|
-
const _hoisted_7$
|
|
15199
|
-
const _hoisted_8$
|
|
15200
|
-
const _hoisted_9$
|
|
15201
|
-
const _hoisted_10$
|
|
15199
|
+
const _hoisted_6$g = { class: "message-item-body" };
|
|
15200
|
+
const _hoisted_7$d = ["title", "innerHTML"];
|
|
15201
|
+
const _hoisted_8$b = ["title"];
|
|
15202
|
+
const _hoisted_9$a = { class: "message-item-info" };
|
|
15203
|
+
const _hoisted_10$8 = { class: "message-item-rightTx message-item-date" };
|
|
15202
15204
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
15203
15205
|
__name: "index",
|
|
15204
15206
|
props: {
|
|
@@ -15232,7 +15234,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15232
15234
|
], 8, _hoisted_3$t)
|
|
15233
15235
|
]),
|
|
15234
15236
|
createElementVNode("div", _hoisted_5$h, [
|
|
15235
|
-
createElementVNode("div", _hoisted_6$
|
|
15237
|
+
createElementVNode("div", _hoisted_6$g, [
|
|
15236
15238
|
createVNode(GLink, {
|
|
15237
15239
|
href: unref(transformUrl)(__props.data.url),
|
|
15238
15240
|
target: "_blank",
|
|
@@ -15247,17 +15249,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15247
15249
|
title: __props.data.title,
|
|
15248
15250
|
innerHTML: unref(xssPurify)(__props.data.title) || "",
|
|
15249
15251
|
class: "message-item__title"
|
|
15250
|
-
}, null, 8, _hoisted_7$
|
|
15252
|
+
}, null, 8, _hoisted_7$d)) : (openBlock(), createElementBlock("span", {
|
|
15251
15253
|
key: 1,
|
|
15252
15254
|
title: __props.data.title
|
|
15253
|
-
}, toDisplayString$1(__props.data.title || "-"), 9, _hoisted_8$
|
|
15255
|
+
}, toDisplayString$1(__props.data.title || "-"), 9, _hoisted_8$b))
|
|
15254
15256
|
]),
|
|
15255
15257
|
_: 1
|
|
15256
15258
|
})
|
|
15257
15259
|
]),
|
|
15258
15260
|
_: 1
|
|
15259
15261
|
}, 8, ["href", "class"]),
|
|
15260
|
-
createElementVNode("div", _hoisted_9$
|
|
15262
|
+
createElementVNode("div", _hoisted_9$a, [
|
|
15261
15263
|
createVNode(GText, null, {
|
|
15262
15264
|
default: withCtx(() => [
|
|
15263
15265
|
createTextVNode(toDisplayString$1(__props.data.repo), 1)
|
|
@@ -15274,7 +15276,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15274
15276
|
])
|
|
15275
15277
|
])
|
|
15276
15278
|
]),
|
|
15277
|
-
createElementVNode("div", _hoisted_10$
|
|
15279
|
+
createElementVNode("div", _hoisted_10$8, toDisplayString$1(unref(formatTimeFromNow)(__props.data.time)), 1)
|
|
15278
15280
|
]);
|
|
15279
15281
|
};
|
|
15280
15282
|
}
|
|
@@ -15294,27 +15296,27 @@ const _hoisted_4$l = {
|
|
|
15294
15296
|
class: "g-number message-box__count"
|
|
15295
15297
|
};
|
|
15296
15298
|
const _hoisted_5$g = { class: "message-content-cover" };
|
|
15297
|
-
const _hoisted_6$
|
|
15299
|
+
const _hoisted_6$f = {
|
|
15298
15300
|
key: 0,
|
|
15299
15301
|
class: "message-content-header"
|
|
15300
15302
|
};
|
|
15301
|
-
const _hoisted_7$
|
|
15303
|
+
const _hoisted_7$c = {
|
|
15302
15304
|
key: 0,
|
|
15303
15305
|
class: "g-number"
|
|
15304
15306
|
};
|
|
15305
|
-
const _hoisted_8$
|
|
15307
|
+
const _hoisted_8$a = {
|
|
15306
15308
|
key: 0,
|
|
15307
15309
|
class: "g-number"
|
|
15308
15310
|
};
|
|
15309
|
-
const _hoisted_9$
|
|
15311
|
+
const _hoisted_9$9 = {
|
|
15310
15312
|
key: 0,
|
|
15311
15313
|
class: "g-number"
|
|
15312
15314
|
};
|
|
15313
|
-
const _hoisted_10$
|
|
15315
|
+
const _hoisted_10$7 = {
|
|
15314
15316
|
key: 2,
|
|
15315
15317
|
class: "message-content-empty"
|
|
15316
15318
|
};
|
|
15317
|
-
const _hoisted_11$
|
|
15319
|
+
const _hoisted_11$6 = {
|
|
15318
15320
|
key: 3,
|
|
15319
15321
|
class: "loading-more"
|
|
15320
15322
|
};
|
|
@@ -15655,27 +15657,27 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15655
15657
|
class: "message-content"
|
|
15656
15658
|
}, [
|
|
15657
15659
|
withDirectives((openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
15658
|
-
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
15660
|
+
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
|
|
15659
15661
|
createElementVNode("div", {
|
|
15660
15662
|
class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "project" }]),
|
|
15661
15663
|
onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
|
|
15662
15664
|
}, [
|
|
15663
15665
|
_cache[7] || (_cache[7] = createTextVNode(" 项目相关 ", -1)),
|
|
15664
|
-
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
15666
|
+
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$c, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
|
|
15665
15667
|
], 2),
|
|
15666
15668
|
createElementVNode("div", {
|
|
15667
15669
|
class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "private" }]),
|
|
15668
15670
|
onClick: _cache[3] || (_cache[3] = ($event) => switchMentionSubTab("private"))
|
|
15669
15671
|
}, [
|
|
15670
15672
|
_cache[8] || (_cache[8] = createTextVNode(" 私信 ", -1)),
|
|
15671
|
-
mentionSubTabCount.value.private > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
15673
|
+
mentionSubTabCount.value.private > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$a, toDisplayString$1(mentionSubTabCount.value.private), 1)) : createCommentVNode("", true)
|
|
15672
15674
|
], 2),
|
|
15673
15675
|
createElementVNode("div", {
|
|
15674
15676
|
class: normalizeClass(["message-content-header-item", { active: mentionSubTab.value === "discussion" }]),
|
|
15675
15677
|
onClick: _cache[4] || (_cache[4] = ($event) => switchMentionSubTab("discussion"))
|
|
15676
15678
|
}, [
|
|
15677
15679
|
_cache[9] || (_cache[9] = createTextVNode(" 在线讨论 ", -1)),
|
|
15678
|
-
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
15680
|
+
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_9$9, toDisplayString$1(mentionSubTabCount.value.discussion), 1)) : createCommentVNode("", true)
|
|
15679
15681
|
], 2)
|
|
15680
15682
|
])) : createCommentVNode("", true),
|
|
15681
15683
|
listData.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(listData.value, (item) => {
|
|
@@ -15685,10 +15687,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15685
15687
|
data: item,
|
|
15686
15688
|
onTrigger: ($event) => handleMessageRead(item)
|
|
15687
15689
|
}, null, 8, ["type", "data", "onTrigger"]);
|
|
15688
|
-
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$
|
|
15690
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$7, [
|
|
15689
15691
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMessage")), 1)
|
|
15690
15692
|
])),
|
|
15691
|
-
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
15693
|
+
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_11$6, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.loading")) + "... ", 1)) : createCommentVNode("", true),
|
|
15692
15694
|
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12$6, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMore")), 1)) : createCommentVNode("", true)
|
|
15693
15695
|
])), [
|
|
15694
15696
|
[_directive_loading, loading.value]
|
|
@@ -15932,9 +15934,9 @@ const _hoisted_2$r = { class: "user-level__row" };
|
|
|
15932
15934
|
const _hoisted_3$q = ["src"];
|
|
15933
15935
|
const _hoisted_4$k = { class: "level-name" };
|
|
15934
15936
|
const _hoisted_5$f = { class: "level-icon" };
|
|
15935
|
-
const _hoisted_6$
|
|
15936
|
-
const _hoisted_7$
|
|
15937
|
-
const _hoisted_8$
|
|
15937
|
+
const _hoisted_6$e = ["src"];
|
|
15938
|
+
const _hoisted_7$b = { class: "custom-btn" };
|
|
15939
|
+
const _hoisted_8$9 = { class: "user-level__btn-text" };
|
|
15938
15940
|
const maxLevel = 3;
|
|
15939
15941
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
15940
15942
|
...{ name: "UserLevel" },
|
|
@@ -16000,38 +16002,30 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
16000
16002
|
createElementVNode("img", {
|
|
16001
16003
|
src: levelInfo.value.level,
|
|
16002
16004
|
alt: ""
|
|
16003
|
-
}, null, 8, _hoisted_6$
|
|
16005
|
+
}, null, 8, _hoisted_6$e)
|
|
16004
16006
|
])
|
|
16005
16007
|
])
|
|
16006
16008
|
]),
|
|
16007
|
-
createElementVNode("div", _hoisted_7$
|
|
16008
|
-
createElementVNode("div", _hoisted_8$
|
|
16009
|
+
createElementVNode("div", _hoisted_7$b, [
|
|
16010
|
+
createElementVNode("div", _hoisted_8$9, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.tips.getPoints")), 1)
|
|
16009
16011
|
])
|
|
16010
16012
|
], 2);
|
|
16011
16013
|
};
|
|
16012
16014
|
}
|
|
16013
16015
|
});
|
|
16014
16016
|
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16015
|
-
const _hoisted_1$w = {
|
|
16016
|
-
|
|
16017
|
-
|
|
16018
|
-
};
|
|
16019
|
-
const _hoisted_2$q = { class: "g-user-drawer-account-session-title" };
|
|
16020
|
-
const _hoisted_3$p = { class: "g-user-drawer-account-session-info" };
|
|
16017
|
+
const _hoisted_1$w = { class: "g-account-switch-menu" };
|
|
16018
|
+
const _hoisted_2$q = { class: "g-account-switch-title" };
|
|
16019
|
+
const _hoisted_3$p = ["disabled", "onClick"];
|
|
16021
16020
|
const _hoisted_4$j = ["title"];
|
|
16022
|
-
const _hoisted_5$e =
|
|
16023
|
-
const _hoisted_6$c = {
|
|
16021
|
+
const _hoisted_5$e = {
|
|
16024
16022
|
key: 0,
|
|
16025
|
-
class: "g-
|
|
16023
|
+
class: "g-account-switch-status"
|
|
16026
16024
|
};
|
|
16027
|
-
const
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
const _hoisted_8$7 = ["disabled", "onClick"];
|
|
16032
|
-
const _hoisted_9$7 = ["disabled", "onClick"];
|
|
16033
|
-
const _hoisted_10$7 = ["disabled", "onClick"];
|
|
16034
|
-
const _hoisted_11$6 = ["disabled"];
|
|
16025
|
+
const _hoisted_6$d = ["disabled", "aria-label", "title", "onClick"];
|
|
16026
|
+
const _hoisted_7$a = { class: "g-account-switch-actions" };
|
|
16027
|
+
const _hoisted_8$8 = ["disabled"];
|
|
16028
|
+
const _hoisted_9$8 = ["disabled"];
|
|
16035
16029
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
16036
16030
|
__name: "AccountSessionList",
|
|
16037
16031
|
props: {
|
|
@@ -16040,82 +16034,112 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16040
16034
|
max: { default: 5 },
|
|
16041
16035
|
busy: { type: Boolean, default: false }
|
|
16042
16036
|
},
|
|
16043
|
-
emits: ["switch", "add", "reauthorize", "remove"],
|
|
16037
|
+
emits: ["switch", "add", "reauthorize", "remove", "logout"],
|
|
16044
16038
|
setup(__props, { emit: __emit }) {
|
|
16045
16039
|
const props = __props;
|
|
16046
16040
|
const emit = __emit;
|
|
16047
16041
|
const { t: t2 } = i18n.global;
|
|
16042
|
+
const otherAccounts = computed(() => props.items.filter((item) => item.ref !== props.activeRef && !item.active));
|
|
16048
16043
|
const canAdd = computed(() => props.items.length < props.max);
|
|
16049
16044
|
return (_ctx, _cache) => {
|
|
16050
|
-
return
|
|
16051
|
-
createElementVNode("div", _hoisted_2$q, toDisplayString$1(unref(t2)("gitCodeLayout.header.
|
|
16052
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
16045
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
16046
|
+
createElementVNode("div", _hoisted_2$q, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountSwitchTitle")), 1),
|
|
16047
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(otherAccounts.value, (item) => {
|
|
16053
16048
|
return openBlock(), createElementBlock("div", {
|
|
16054
16049
|
key: item.ref,
|
|
16055
|
-
class:
|
|
16050
|
+
class: "g-account-switch-row"
|
|
16056
16051
|
}, [
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
src: item.avatarUrl || "",
|
|
16060
|
-
width: 28,
|
|
16061
|
-
height: 28
|
|
16062
|
-
}, null, 8, ["name", "src"]),
|
|
16063
|
-
createElementVNode("div", _hoisted_3$p, [
|
|
16064
|
-
createElementVNode("p", {
|
|
16065
|
-
class: "ellipsis",
|
|
16066
|
-
title: item.nickname || item.username
|
|
16067
|
-
}, toDisplayString$1(item.nickname || item.username), 9, _hoisted_4$j),
|
|
16068
|
-
createElementVNode("p", {
|
|
16069
|
-
class: "ellipsis g-user-drawer-account-session-id",
|
|
16070
|
-
title: item.username
|
|
16071
|
-
}, "@" + toDisplayString$1(item.username), 9, _hoisted_5$e)
|
|
16072
|
-
]),
|
|
16073
|
-
item.status !== "valid" ? (openBlock(), createElementBlock("span", _hoisted_6$c, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountNeedReauth")), 1)) : item.ref === __props.activeRef ? (openBlock(), createElementBlock("span", _hoisted_7$9, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountCurrent")), 1)) : createCommentVNode("", true),
|
|
16074
|
-
item.status !== "valid" ? (openBlock(), createElementBlock("button", {
|
|
16075
|
-
key: 2,
|
|
16076
|
-
type: "button",
|
|
16077
|
-
class: "g-user-drawer-account-session-action",
|
|
16078
|
-
disabled: __props.busy,
|
|
16079
|
-
onClick: ($event) => emit("reauthorize", item.ref)
|
|
16080
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountReauthorize")), 9, _hoisted_8$7)) : item.ref !== __props.activeRef ? (openBlock(), createElementBlock("button", {
|
|
16081
|
-
key: 3,
|
|
16052
|
+
createElementVNode("button", {
|
|
16053
|
+
class: "g-account-switch-member",
|
|
16082
16054
|
type: "button",
|
|
16083
|
-
class: "g-user-drawer-account-session-action",
|
|
16084
16055
|
disabled: __props.busy,
|
|
16085
|
-
onClick: ($event) => emit("switch", item.ref)
|
|
16086
|
-
},
|
|
16087
|
-
|
|
16088
|
-
|
|
16056
|
+
onClick: ($event) => item.status === "need_reauth" ? emit("reauthorize", item.ref) : emit("switch", item.ref)
|
|
16057
|
+
}, [
|
|
16058
|
+
createVNode(_sfc_main$O, {
|
|
16059
|
+
name: item.nickname || item.username,
|
|
16060
|
+
src: item.avatarUrl || "",
|
|
16061
|
+
width: 28,
|
|
16062
|
+
height: 28
|
|
16063
|
+
}, null, 8, ["name", "src"]),
|
|
16064
|
+
createElementVNode("span", {
|
|
16065
|
+
class: "g-account-switch-name",
|
|
16066
|
+
title: item.username
|
|
16067
|
+
}, toDisplayString$1(item.username), 9, _hoisted_4$j),
|
|
16068
|
+
item.status === "need_reauth" ? (openBlock(), createElementBlock("span", _hoisted_5$e, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountNeedReauth")), 1)) : createCommentVNode("", true)
|
|
16069
|
+
], 8, _hoisted_3$p),
|
|
16070
|
+
createElementVNode("button", {
|
|
16071
|
+
class: "g-account-switch-remove",
|
|
16089
16072
|
type: "button",
|
|
16090
|
-
class: "g-user-drawer-account-session-action",
|
|
16091
16073
|
disabled: __props.busy,
|
|
16074
|
+
"aria-label": `${unref(t2)("gitCodeLayout.header.accountRemove")} ${item.username}`,
|
|
16075
|
+
title: unref(t2)("gitCodeLayout.header.accountRemove"),
|
|
16092
16076
|
onClick: ($event) => emit("remove", item.ref)
|
|
16093
|
-
},
|
|
16094
|
-
]
|
|
16077
|
+
}, "×", 8, _hoisted_6$d)
|
|
16078
|
+
]);
|
|
16095
16079
|
}), 128)),
|
|
16096
|
-
|
|
16097
|
-
|
|
16098
|
-
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16080
|
+
createElementVNode("div", _hoisted_7$a, [
|
|
16081
|
+
canAdd.value ? (openBlock(), createElementBlock("button", {
|
|
16082
|
+
key: 0,
|
|
16083
|
+
type: "button",
|
|
16084
|
+
class: "g-account-switch-action",
|
|
16085
|
+
disabled: __props.busy,
|
|
16086
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("add"))
|
|
16087
|
+
}, [
|
|
16088
|
+
_cache[2] || (_cache[2] = createElementVNode("svg", {
|
|
16089
|
+
width: "18",
|
|
16090
|
+
height: "18",
|
|
16091
|
+
viewBox: "0 0 24 24",
|
|
16092
|
+
fill: "none",
|
|
16093
|
+
"aria-hidden": "true"
|
|
16094
|
+
}, [
|
|
16095
|
+
createElementVNode("path", {
|
|
16096
|
+
d: "M15 20v-2a5 5 0 0 0-10 0v2M10 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8m9-6v6m-3-3h6",
|
|
16097
|
+
stroke: "currentColor",
|
|
16098
|
+
"stroke-width": "1.7",
|
|
16099
|
+
"stroke-linecap": "round",
|
|
16100
|
+
"stroke-linejoin": "round"
|
|
16101
|
+
})
|
|
16102
|
+
], -1)),
|
|
16103
|
+
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.accountAdd")), 1)
|
|
16104
|
+
], 8, _hoisted_8$8)) : createCommentVNode("", true),
|
|
16105
|
+
createElementVNode("button", {
|
|
16106
|
+
type: "button",
|
|
16107
|
+
class: "g-account-switch-action",
|
|
16108
|
+
disabled: __props.busy,
|
|
16109
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("logout"))
|
|
16110
|
+
}, [
|
|
16111
|
+
_cache[3] || (_cache[3] = createElementVNode("svg", {
|
|
16112
|
+
width: "18",
|
|
16113
|
+
height: "18",
|
|
16114
|
+
viewBox: "0 0 24 24",
|
|
16115
|
+
fill: "none",
|
|
16116
|
+
"aria-hidden": "true"
|
|
16117
|
+
}, [
|
|
16118
|
+
createElementVNode("path", {
|
|
16119
|
+
d: "M9 4H4v16h5M13 8l4 4-4 4m-5-4h12",
|
|
16120
|
+
stroke: "currentColor",
|
|
16121
|
+
"stroke-width": "1.7",
|
|
16122
|
+
"stroke-linecap": "round",
|
|
16123
|
+
"stroke-linejoin": "round"
|
|
16124
|
+
})
|
|
16125
|
+
], -1)),
|
|
16126
|
+
createTextVNode(" " + toDisplayString$1(unref(t2)("gitCodeLayout.header.logout")), 1)
|
|
16127
|
+
], 8, _hoisted_9$8)
|
|
16128
|
+
])
|
|
16129
|
+
]);
|
|
16110
16130
|
};
|
|
16111
16131
|
}
|
|
16112
16132
|
});
|
|
16113
16133
|
const AccountSessionList = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16114
|
-
const _hoisted_1$v = { class: "g-user-drawer-
|
|
16115
|
-
const _hoisted_2$p = { class: "g-user-drawer-info-
|
|
16116
|
-
const _hoisted_3$o =
|
|
16134
|
+
const _hoisted_1$v = { class: "g-user-drawer-account-heading" };
|
|
16135
|
+
const _hoisted_2$p = { class: "g-user-drawer-info-list" };
|
|
16136
|
+
const _hoisted_3$o = { class: "g-user-drawer-info-list__name-wrap" };
|
|
16117
16137
|
const _hoisted_4$i = ["title"];
|
|
16118
|
-
const _hoisted_5$d =
|
|
16138
|
+
const _hoisted_5$d = ["title"];
|
|
16139
|
+
const _hoisted_6$c = ["onKeydown"];
|
|
16140
|
+
const _hoisted_7$9 = ["aria-label", "aria-expanded", "disabled"];
|
|
16141
|
+
const _hoisted_8$7 = ["aria-label"];
|
|
16142
|
+
const _hoisted_9$7 = {
|
|
16119
16143
|
key: 0,
|
|
16120
16144
|
class: "g-user-drawer-lang-row"
|
|
16121
16145
|
};
|
|
@@ -16130,6 +16154,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16130
16154
|
userMenus: {},
|
|
16131
16155
|
inEnterpriseHeader: { type: Boolean },
|
|
16132
16156
|
accountSessionSupported: { type: Boolean },
|
|
16157
|
+
menuVisible: { type: Boolean },
|
|
16158
|
+
accountSessionLogout: { type: Function },
|
|
16133
16159
|
accountSessions: {},
|
|
16134
16160
|
accountSessionActiveRef: {},
|
|
16135
16161
|
accountSessionMax: {},
|
|
@@ -16137,6 +16163,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16137
16163
|
},
|
|
16138
16164
|
emits: ["link-click", "account-switch", "account-add", "account-reauthorize", "account-remove"],
|
|
16139
16165
|
setup(__props, { emit: __emit }) {
|
|
16166
|
+
var _a;
|
|
16140
16167
|
const layoutConfig2 = useLayoutConfig();
|
|
16141
16168
|
const API = headRequest(inject("request"));
|
|
16142
16169
|
const repoInfo = inject("repoInfo");
|
|
@@ -16157,12 +16184,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16157
16184
|
localStorage$2.removeItem(HARMONY_SURVEY_DELAY);
|
|
16158
16185
|
};
|
|
16159
16186
|
const handleLogout = async () => {
|
|
16160
|
-
var
|
|
16187
|
+
var _a2, _b, _c;
|
|
16188
|
+
if (props.accountSessionSupported) {
|
|
16189
|
+
if (!props.accountSessionBusy) await ((_a2 = props.accountSessionLogout) == null ? void 0 : _a2.call(props));
|
|
16190
|
+
return;
|
|
16191
|
+
}
|
|
16161
16192
|
const res = await API.toLogout();
|
|
16162
16193
|
clearSurveyDelayStatus();
|
|
16163
16194
|
if (!res.error) {
|
|
16164
16195
|
props.loginOutFinish && props.loginOutFinish();
|
|
16165
|
-
if (((
|
|
16196
|
+
if (((_b = route.meta) == null ? void 0 : _b.needLogin) || ((_c = route.meta) == null ? void 0 : _c.type) === "repo" && (repoInfo == null ? void 0 : repoInfo.value.visibility) === "private" || (orgInfo == null ? void 0 : orgInfo.value.visibility) === "private") {
|
|
16166
16197
|
router2.push("/");
|
|
16167
16198
|
} else {
|
|
16168
16199
|
const $route = Object.assign({}, route);
|
|
@@ -16230,9 +16261,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16230
16261
|
]
|
|
16231
16262
|
];
|
|
16232
16263
|
const routerMenuList = computed(() => {
|
|
16233
|
-
var
|
|
16264
|
+
var _a2;
|
|
16234
16265
|
return [
|
|
16235
|
-
...((
|
|
16266
|
+
...((_a2 = userCustomMenus.value) == null ? void 0 : _a2.length) ? userCustomMenus.value : baseRouterMenus,
|
|
16236
16267
|
[
|
|
16237
16268
|
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: handleLogout }
|
|
16238
16269
|
]
|
|
@@ -16256,9 +16287,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16256
16287
|
]
|
|
16257
16288
|
];
|
|
16258
16289
|
const hrefList = computed(() => {
|
|
16259
|
-
var
|
|
16290
|
+
var _a2;
|
|
16260
16291
|
return [
|
|
16261
|
-
...((
|
|
16292
|
+
...((_a2 = userCustomMenus.value) == null ? void 0 : _a2.length) ? userCustomMenus.value : baseHrefMenus,
|
|
16262
16293
|
[
|
|
16263
16294
|
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: handleLogout }
|
|
16264
16295
|
]
|
|
@@ -16271,40 +16302,49 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16271
16302
|
};
|
|
16272
16303
|
const shouldShowEnterpriseLang = computed(
|
|
16273
16304
|
() => {
|
|
16274
|
-
var
|
|
16275
|
-
return Boolean(props.inEnterpriseHeader && !((
|
|
16305
|
+
var _a2;
|
|
16306
|
+
return Boolean(props.inEnterpriseHeader && !((_a2 = props.userMenus) == null ? void 0 : _a2.length));
|
|
16276
16307
|
}
|
|
16277
16308
|
);
|
|
16278
|
-
const
|
|
16279
|
-
|
|
16280
|
-
|
|
16309
|
+
const accountMenuId = `toolbar-account-switcher-${(_a = getCurrentInstance()) == null ? void 0 : _a.uid}`;
|
|
16310
|
+
const accountMenuOpen = ref(false);
|
|
16311
|
+
const accountSwitcherRef = ref(null);
|
|
16312
|
+
const accountSwitchButton = ref(null);
|
|
16313
|
+
const accountMenuPanel = ref(null);
|
|
16314
|
+
const closeAccountMenu = () => {
|
|
16315
|
+
var _a2;
|
|
16316
|
+
accountMenuOpen.value = false;
|
|
16317
|
+
(_a2 = accountSwitchButton.value) == null ? void 0 : _a2.focus();
|
|
16318
|
+
};
|
|
16319
|
+
const toggleAccountMenu = async () => {
|
|
16320
|
+
var _a2, _b;
|
|
16321
|
+
accountMenuOpen.value = !accountMenuOpen.value;
|
|
16322
|
+
if (accountMenuOpen.value) {
|
|
16323
|
+
await nextTick();
|
|
16324
|
+
(_b = (_a2 = accountMenuPanel.value) == null ? void 0 : _a2.querySelector("button:not(:disabled)")) == null ? void 0 : _b.focus();
|
|
16281
16325
|
}
|
|
16282
|
-
|
|
16283
|
-
|
|
16284
|
-
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
onSwitch: (ref2) => emit("account-switch", ref2),
|
|
16292
|
-
onAdd: () => emit("account-add"),
|
|
16293
|
-
onReauthorize: (ref2) => emit("account-reauthorize", ref2),
|
|
16294
|
-
onRemove: (ref2) => emit("account-remove", ref2)
|
|
16295
|
-
}
|
|
16296
|
-
};
|
|
16326
|
+
};
|
|
16327
|
+
const accountAction = (action, ref2) => {
|
|
16328
|
+
closeAccountMenu();
|
|
16329
|
+
if (action === "account-add") emit("account-add");
|
|
16330
|
+
else if (action === "account-switch" && ref2) emit("account-switch", ref2);
|
|
16331
|
+
else if (action === "account-reauthorize" && ref2) emit("account-reauthorize", ref2);
|
|
16332
|
+
};
|
|
16333
|
+
watch(() => props.menuVisible, (visible) => {
|
|
16334
|
+
if (visible === false) accountMenuOpen.value = false;
|
|
16297
16335
|
});
|
|
16336
|
+
const dismissAccountMenu = (event) => {
|
|
16337
|
+
var _a2;
|
|
16338
|
+
if (accountMenuOpen.value && event.target instanceof Node && !((_a2 = accountSwitcherRef.value) == null ? void 0 : _a2.contains(event.target))) {
|
|
16339
|
+
accountMenuOpen.value = false;
|
|
16340
|
+
}
|
|
16341
|
+
};
|
|
16298
16342
|
const userMenuList = computed(() => {
|
|
16299
16343
|
const base = props.independence ? hrefList.value : routerMenuList.value;
|
|
16300
16344
|
const inserts = [];
|
|
16301
16345
|
if (shouldShowEnterpriseLang.value) {
|
|
16302
16346
|
inserts.push(avatarLangBlock);
|
|
16303
16347
|
}
|
|
16304
|
-
const accountBlock = accountSessionBlock.value;
|
|
16305
|
-
if (accountBlock) {
|
|
16306
|
-
inserts.push(accountBlock);
|
|
16307
|
-
}
|
|
16308
16348
|
if (!inserts.length) {
|
|
16309
16349
|
return base;
|
|
16310
16350
|
}
|
|
@@ -16341,11 +16381,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16341
16381
|
}
|
|
16342
16382
|
};
|
|
16343
16383
|
onMounted(() => {
|
|
16384
|
+
document.addEventListener("pointerdown", dismissAccountMenu);
|
|
16344
16385
|
if (menuContainerRef.value) {
|
|
16345
16386
|
menuContainerRef.value.addEventListener("click", handleLinkClick, true);
|
|
16346
16387
|
}
|
|
16347
16388
|
});
|
|
16348
16389
|
onBeforeUnmount(() => {
|
|
16390
|
+
document.removeEventListener("pointerdown", dismissAccountMenu);
|
|
16349
16391
|
if (menuContainerRef.value) {
|
|
16350
16392
|
menuContainerRef.value.removeEventListener("click", handleLinkClick, true);
|
|
16351
16393
|
}
|
|
@@ -16364,38 +16406,102 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16364
16406
|
ref_key: "menuContainerRef",
|
|
16365
16407
|
ref: menuContainerRef
|
|
16366
16408
|
}, [
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16409
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
16410
|
+
createVNode(GLink, {
|
|
16411
|
+
class: "g-user-drawer-info",
|
|
16412
|
+
href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
|
|
16413
|
+
key: "myPage",
|
|
16414
|
+
target: __props.isChatBot ? "_blank" : ""
|
|
16415
|
+
}, {
|
|
16416
|
+
default: withCtx(() => [
|
|
16417
|
+
createVNode(_sfc_main$O, {
|
|
16418
|
+
name: __props.accountInfo.nickname || "",
|
|
16419
|
+
src: __props.accountInfo.avatar || "",
|
|
16420
|
+
width: 52,
|
|
16421
|
+
height: 52
|
|
16422
|
+
}, null, 8, ["name", "src"]),
|
|
16381
16423
|
createElementVNode("div", _hoisted_2$p, [
|
|
16382
|
-
createElementVNode("
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16424
|
+
createElementVNode("div", _hoisted_3$o, [
|
|
16425
|
+
createElementVNode("p", {
|
|
16426
|
+
class: "g-user-drawer-info-list-name ellipsis",
|
|
16427
|
+
title: __props.accountInfo.nickname
|
|
16428
|
+
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_4$i),
|
|
16429
|
+
createElementVNode("p", {
|
|
16430
|
+
class: "g-user-drawer-info-list-id ellipsis",
|
|
16431
|
+
title: __props.accountInfo.username
|
|
16432
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_5$d)
|
|
16433
|
+
]),
|
|
16434
|
+
!__props.accountSessionSupported ? (openBlock(), createBlock(GIcon, {
|
|
16435
|
+
key: 0,
|
|
16436
|
+
name: "gt-line-right",
|
|
16437
|
+
size: "16"
|
|
16438
|
+
})) : createCommentVNode("", true)
|
|
16439
|
+
])
|
|
16440
|
+
]),
|
|
16441
|
+
_: 1
|
|
16442
|
+
}, 8, ["href", "target"]),
|
|
16443
|
+
__props.accountSessionSupported ? (openBlock(), createElementBlock("div", {
|
|
16444
|
+
key: 0,
|
|
16445
|
+
ref_key: "accountSwitcherRef",
|
|
16446
|
+
ref: accountSwitcherRef,
|
|
16447
|
+
class: "g-user-account-switcher",
|
|
16448
|
+
onKeydown: withKeys(withModifiers(closeAccountMenu, ["stop", "prevent"]), ["esc"])
|
|
16449
|
+
}, [
|
|
16450
|
+
createElementVNode("button", {
|
|
16451
|
+
ref_key: "accountSwitchButton",
|
|
16452
|
+
ref: accountSwitchButton,
|
|
16453
|
+
class: "g-user-account-switcher-trigger",
|
|
16454
|
+
type: "button",
|
|
16455
|
+
"aria-label": unref(t2)("gitCodeLayout.header.accountSwitchTitle"),
|
|
16456
|
+
"aria-haspopup": "dialog",
|
|
16457
|
+
"aria-expanded": accountMenuOpen.value,
|
|
16458
|
+
"aria-controls": accountMenuId,
|
|
16459
|
+
disabled: __props.accountSessionBusy,
|
|
16460
|
+
onClick: withModifiers(toggleAccountMenu, ["stop"])
|
|
16461
|
+
}, [..._cache[5] || (_cache[5] = [
|
|
16462
|
+
createElementVNode("svg", {
|
|
16463
|
+
width: "20",
|
|
16464
|
+
height: "20",
|
|
16465
|
+
viewBox: "0 0 24 24",
|
|
16466
|
+
fill: "none",
|
|
16467
|
+
"aria-hidden": "true"
|
|
16468
|
+
}, [
|
|
16469
|
+
createElementVNode("path", {
|
|
16470
|
+
d: "M4 8h15m-4-4 4 4-4 4M20 16H5m4-4-4 4 4 4",
|
|
16471
|
+
stroke: "currentColor",
|
|
16472
|
+
"stroke-width": "1.7",
|
|
16473
|
+
"stroke-linecap": "round",
|
|
16474
|
+
"stroke-linejoin": "round"
|
|
16475
|
+
})
|
|
16476
|
+
], -1)
|
|
16477
|
+
])], 8, _hoisted_7$9),
|
|
16478
|
+
accountMenuOpen.value ? (openBlock(), createElementBlock("div", {
|
|
16479
|
+
key: 0,
|
|
16480
|
+
id: accountMenuId,
|
|
16481
|
+
ref_key: "accountMenuPanel",
|
|
16482
|
+
ref: accountMenuPanel,
|
|
16483
|
+
class: "g-user-account-switcher-panel",
|
|
16484
|
+
role: "dialog",
|
|
16485
|
+
"aria-label": unref(t2)("gitCodeLayout.header.accountSwitchTitle"),
|
|
16486
|
+
tabindex: "-1"
|
|
16487
|
+
}, [
|
|
16488
|
+
createVNode(AccountSessionList, {
|
|
16489
|
+
items: __props.accountSessions,
|
|
16490
|
+
"active-ref": __props.accountSessionActiveRef,
|
|
16491
|
+
max: __props.accountSessionMax,
|
|
16492
|
+
busy: __props.accountSessionBusy,
|
|
16493
|
+
onSwitch: _cache[0] || (_cache[0] = (ref2) => accountAction("account-switch", ref2)),
|
|
16494
|
+
onAdd: _cache[1] || (_cache[1] = ($event) => accountAction("account-add")),
|
|
16495
|
+
onReauthorize: _cache[2] || (_cache[2] = (ref2) => accountAction("account-reauthorize", ref2)),
|
|
16496
|
+
onRemove: _cache[3] || (_cache[3] = (ref2) => emit("account-remove", ref2)),
|
|
16497
|
+
onLogout: _cache[4] || (_cache[4] = ($event) => {
|
|
16498
|
+
closeAccountMenu();
|
|
16499
|
+
handleLogout();
|
|
16500
|
+
})
|
|
16501
|
+
}, null, 8, ["items", "active-ref", "max", "busy"])
|
|
16502
|
+
], 8, _hoisted_8$7)) : createCommentVNode("", true)
|
|
16503
|
+
], 40, _hoisted_6$c)) : createCommentVNode("", true)
|
|
16504
|
+
]),
|
|
16399
16505
|
!__props.inAIHub ? (openBlock(), createBlock(UserLevel, {
|
|
16400
16506
|
key: 0,
|
|
16401
16507
|
accountInfo: __props.accountInfo
|
|
@@ -16406,7 +16512,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16406
16512
|
key: index2
|
|
16407
16513
|
}, [
|
|
16408
16514
|
block.component ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16409
|
-
block.avatarLangRow ? (openBlock(), createElementBlock("div",
|
|
16515
|
+
block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
|
|
16410
16516
|
(openBlock(), createBlock(resolveDynamicComponent(block.component), {
|
|
16411
16517
|
key: block.id
|
|
16412
16518
|
}))
|
|
@@ -16464,6 +16570,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16464
16570
|
userMenus: { default: () => [] },
|
|
16465
16571
|
inEnterpriseHeader: { type: Boolean, default: false },
|
|
16466
16572
|
accountSessionSupported: { type: Boolean, default: false },
|
|
16573
|
+
accountSessionLogout: {},
|
|
16467
16574
|
accountSessions: { default: () => [] },
|
|
16468
16575
|
accountSessionActiveRef: { default: null },
|
|
16469
16576
|
accountSessionMax: { default: 5 },
|
|
@@ -16475,6 +16582,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16475
16582
|
const emit = __emit;
|
|
16476
16583
|
const accountSessionBindings = computed(() => ({
|
|
16477
16584
|
accountSessionSupported: props.accountSessionSupported,
|
|
16585
|
+
accountSessionLogout: props.accountSessionLogout,
|
|
16478
16586
|
accountSessions: props.accountSessions,
|
|
16479
16587
|
accountSessionActiveRef: props.accountSessionActiveRef,
|
|
16480
16588
|
accountSessionMax: props.accountSessionMax,
|
|
@@ -16486,6 +16594,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16486
16594
|
}));
|
|
16487
16595
|
const { isMobile } = usePageResize();
|
|
16488
16596
|
const drawerVisible = ref(false);
|
|
16597
|
+
const avatarMenuVisible = ref(false);
|
|
16489
16598
|
const userInfo = inject("userInfo");
|
|
16490
16599
|
const getLocalStorageUserInfo = () => {
|
|
16491
16600
|
try {
|
|
@@ -16509,6 +16618,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16509
16618
|
{ immediate: true }
|
|
16510
16619
|
);
|
|
16511
16620
|
const handleToggle = (status) => {
|
|
16621
|
+
avatarMenuVisible.value = Boolean(status);
|
|
16512
16622
|
visitedClick();
|
|
16513
16623
|
const params = { need_tips: accountInfo.value.need_tips, prompt_style: accountInfo.value.style_tips };
|
|
16514
16624
|
useReport2("score_personal_center_avatar_click", params);
|
|
@@ -16629,6 +16739,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16629
16739
|
menu: withCtx(() => [
|
|
16630
16740
|
createElementVNode("div", _hoisted_5$c, [
|
|
16631
16741
|
createVNode(UserAvatarMenu, mergeProps({
|
|
16742
|
+
"menu-visible": avatarMenuVisible.value,
|
|
16632
16743
|
independence: __props.independence,
|
|
16633
16744
|
loginOutFinish: __props.loginOutFinish,
|
|
16634
16745
|
accountInfo: accountInfo.value,
|
|
@@ -16636,7 +16747,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16636
16747
|
inAIHub: __props.inAIHub,
|
|
16637
16748
|
userMenus: __props.userMenus,
|
|
16638
16749
|
inEnterpriseHeader: __props.inEnterpriseHeader
|
|
16639
|
-
}, accountSessionBindings.value, { onLinkClick: resetOverflow }), null, 16, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus", "inEnterpriseHeader"])
|
|
16750
|
+
}, accountSessionBindings.value, { onLinkClick: resetOverflow }), null, 16, ["menu-visible", "independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus", "inEnterpriseHeader"])
|
|
16640
16751
|
])
|
|
16641
16752
|
]),
|
|
16642
16753
|
default: withCtx(() => [
|
|
@@ -16670,6 +16781,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16670
16781
|
})
|
|
16671
16782
|
]),
|
|
16672
16783
|
createVNode(UserAvatarMenu, mergeProps({
|
|
16784
|
+
"menu-visible": drawerVisible.value,
|
|
16673
16785
|
independence: __props.independence,
|
|
16674
16786
|
loginOutFinish: __props.loginOutFinish,
|
|
16675
16787
|
accountInfo: accountInfo.value,
|
|
@@ -16680,7 +16792,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16680
16792
|
}, accountSessionBindings.value, {
|
|
16681
16793
|
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false),
|
|
16682
16794
|
onLinkClick: resetOverflow
|
|
16683
|
-
}), null, 16, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus", "inEnterpriseHeader"])
|
|
16795
|
+
}), null, 16, ["menu-visible", "independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus", "inEnterpriseHeader"])
|
|
16684
16796
|
])
|
|
16685
16797
|
]),
|
|
16686
16798
|
_: 1
|
|
@@ -17242,12 +17354,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17242
17354
|
setup(__props) {
|
|
17243
17355
|
const layoutConfig2 = useLayoutConfig();
|
|
17244
17356
|
const { t: $t } = i18n.global;
|
|
17245
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17246
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17247
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17248
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17249
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17250
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17357
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-tRTrAuIP.js"));
|
|
17358
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-BUPIBFFs.js"));
|
|
17359
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-d9jVn7yF.js"));
|
|
17360
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C2ww3OtA.js"));
|
|
17361
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CHREVt9w.js"));
|
|
17362
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DCaqaCO4.js"));
|
|
17251
17363
|
const props = __props;
|
|
17252
17364
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
17253
17365
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -18616,7 +18728,7 @@ const vElementExposure = {
|
|
|
18616
18728
|
beforeUnmount() {
|
|
18617
18729
|
}
|
|
18618
18730
|
};
|
|
18619
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18731
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DrorJOhW.js"));
|
|
18620
18732
|
function clearNotice() {
|
|
18621
18733
|
if (localStorage$2.getItem("validator_email")) {
|
|
18622
18734
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18712,6 +18824,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18712
18824
|
launchAtomCode: { type: Function, default: void 0 },
|
|
18713
18825
|
defaultGlobalSearchType: { default: "repo" },
|
|
18714
18826
|
accountSessionSupported: { type: Boolean, default: false },
|
|
18827
|
+
accountSessionLogout: {},
|
|
18715
18828
|
accountSessions: { default: () => [] },
|
|
18716
18829
|
accountSessionActiveRef: { default: null },
|
|
18717
18830
|
accountSessionMax: { default: 5 },
|
|
@@ -18752,6 +18865,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18752
18865
|
const emit = __emit;
|
|
18753
18866
|
const accountSessionBindings = computed(() => ({
|
|
18754
18867
|
accountSessionSupported: props.accountSessionSupported,
|
|
18868
|
+
accountSessionLogout: props.accountSessionLogout,
|
|
18755
18869
|
accountSessions: props.accountSessions,
|
|
18756
18870
|
accountSessionActiveRef: props.accountSessionActiveRef,
|
|
18757
18871
|
accountSessionMax: props.accountSessionMax,
|
|
@@ -21090,9 +21204,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
21090
21204
|
const layoutConfig2 = useLayoutConfig();
|
|
21091
21205
|
const { t: t2 } = i18n.global;
|
|
21092
21206
|
const route = useRoute();
|
|
21093
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
21094
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
21095
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
21207
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-BEndVsWS.js"));
|
|
21208
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-EXoyOFZI.js"));
|
|
21209
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D8_C7FLf.js"));
|
|
21096
21210
|
const props = __props;
|
|
21097
21211
|
const useReport2 = inject("useReport");
|
|
21098
21212
|
const userInfo = inject("userInfo");
|
|
@@ -27630,7 +27744,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
27630
27744
|
__publicField(_SlidCaptchaManager, "instance");
|
|
27631
27745
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
27632
27746
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
27633
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
27747
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-hWcTkag1.js"));
|
|
27634
27748
|
const useSlidCaptcha = () => {
|
|
27635
27749
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
27636
27750
|
const open = (config) => {
|
|
@@ -27660,7 +27774,7 @@ const useSlidCaptcha = () => {
|
|
|
27660
27774
|
close
|
|
27661
27775
|
};
|
|
27662
27776
|
};
|
|
27663
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
27777
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-ByRirfNI.js"));
|
|
27664
27778
|
const useYunpianCaptcha = () => {
|
|
27665
27779
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
27666
27780
|
const open = (config) => {
|