vue-layout-gitcode 1.12.57-multiple-account → 1.12.58-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.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, openBlock, createElementBlock, Fragment, renderList, withDirectives, createBlock, unref, ref, watch, createElementVNode, createVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, a as i18n, c as useLayoutConfig, G as GIcon } from "./index-trrN7Eu4.js";
3
- import { u as useReportRepo, S as SearchRepoCard, m as mergeSearchSuggestions } from "./search-suggestion-DiqU8XS4.js";
2
+ import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, a as i18n, c as useLayoutConfig, G as GIcon } from "./index-COKhviBm.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, m as mergeSearchSuggestions } from "./search-suggestion-C8A5qUyV.js";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
6
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, computed, ref, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, c as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { a as i18n, c as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-COKhviBm.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, openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString, unref, createVNode, withModifiers, normalizeClass, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
- import { a as i18n, c as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, e as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { a as i18n, c as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, e as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-COKhviBm.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CfS-lRqR.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BSrPTPSK.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, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createVNode, withModifiers, normalizeClass, withCtx, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, withDirectives, vShow } from "vue";
2
- import { a as i18n, c as useLayoutConfig, t as transformUrl, G as GIcon, M as asideRequest, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, e as useRequestReport, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { a as i18n, c as useLayoutConfig, t as transformUrl, G as GIcon, M as asideRequest, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, e as useRequestReport, _ as _export_sfc } from "./index-COKhviBm.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CfS-lRqR.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BSrPTPSK.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 { defineComponent, ref, inject, watch, computed, withDirectives, openBlock, createElementBlock, 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-trrN7Eu4.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-COKhviBm.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, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers, createCommentVNode } from "vue";
2
- import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-COKhviBm.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,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard, i as isProjectSuggestionType, n as normalizeProjectUrlForMainSite } from "./search-suggestion-DiqU8XS4.js";
3
- import { a as i18n, h as headRequest, c as useLayoutConfig, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { u as useReportRepo, S as SearchRepoCard, i as isProjectSuggestionType, n as normalizeProjectUrlForMainSite } from "./search-suggestion-C8A5qUyV.js";
3
+ import { a as i18n, h as headRequest, c as useLayoutConfig, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-COKhviBm.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, openBlock, createElementBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createCommentVNode, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-COKhviBm.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 { defineComponent, inject, ref, watch, withDirectives, openBlock, createElementBlock, 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-trrN7Eu4.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-COKhviBm.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-project history-list-project--padded" };
@@ -16130,6 +16130,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16130
16130
  userMenus: {},
16131
16131
  inEnterpriseHeader: { type: Boolean },
16132
16132
  accountSessionSupported: { type: Boolean },
16133
+ accountSessionLogout: { type: Function },
16133
16134
  accountSessions: {},
16134
16135
  accountSessionActiveRef: {},
16135
16136
  accountSessionMax: {},
@@ -16157,12 +16158,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16157
16158
  localStorage$2.removeItem(HARMONY_SURVEY_DELAY);
16158
16159
  };
16159
16160
  const handleLogout = async () => {
16160
- var _a, _b;
16161
+ var _a, _b, _c;
16162
+ if (props.accountSessionSupported) {
16163
+ if (!props.accountSessionBusy) await ((_a = props.accountSessionLogout) == null ? void 0 : _a.call(props));
16164
+ return;
16165
+ }
16161
16166
  const res = await API.toLogout();
16162
16167
  clearSurveyDelayStatus();
16163
16168
  if (!res.error) {
16164
16169
  props.loginOutFinish && props.loginOutFinish();
16165
- if (((_a = route.meta) == null ? void 0 : _a.needLogin) || ((_b = route.meta) == null ? void 0 : _b.type) === "repo" && (repoInfo == null ? void 0 : repoInfo.value.visibility) === "private" || (orgInfo == null ? void 0 : orgInfo.value.visibility) === "private") {
16170
+ 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
16171
  router2.push("/");
16167
16172
  } else {
16168
16173
  const $route = Object.assign({}, route);
@@ -16464,6 +16469,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16464
16469
  userMenus: { default: () => [] },
16465
16470
  inEnterpriseHeader: { type: Boolean, default: false },
16466
16471
  accountSessionSupported: { type: Boolean, default: false },
16472
+ accountSessionLogout: {},
16467
16473
  accountSessions: { default: () => [] },
16468
16474
  accountSessionActiveRef: { default: null },
16469
16475
  accountSessionMax: { default: 5 },
@@ -16475,6 +16481,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16475
16481
  const emit = __emit;
16476
16482
  const accountSessionBindings = computed(() => ({
16477
16483
  accountSessionSupported: props.accountSessionSupported,
16484
+ accountSessionLogout: props.accountSessionLogout,
16478
16485
  accountSessions: props.accountSessions,
16479
16486
  accountSessionActiveRef: props.accountSessionActiveRef,
16480
16487
  accountSessionMax: props.accountSessionMax,
@@ -17242,12 +17249,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17242
17249
  setup(__props) {
17243
17250
  const layoutConfig2 = useLayoutConfig();
17244
17251
  const { t: $t } = i18n.global;
17245
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ChKjse9q.js"));
17246
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CHo98UZ-.js"));
17247
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C_XOB8aP.js"));
17248
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Bj080d6k.js"));
17249
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-hX8DhZOk.js"));
17250
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C_-qWsLc.js"));
17252
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BeXPZIuA.js"));
17253
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BvS9pX2t.js"));
17254
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DCbTfZbE.js"));
17255
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Dg1vo5XJ.js"));
17256
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Ce9GkeZp.js"));
17257
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CL6KcC1p.js"));
17251
17258
  const props = __props;
17252
17259
  const repoInfo = inject("repoInfo", computed(() => void 0));
17253
17260
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -18616,7 +18623,7 @@ const vElementExposure = {
18616
18623
  beforeUnmount() {
18617
18624
  }
18618
18625
  };
18619
- const NoticeModal = defineAsyncComponent(() => import("./notice-BPpQsy5g.js"));
18626
+ const NoticeModal = defineAsyncComponent(() => import("./notice-AgKq4Bgs.js"));
18620
18627
  function clearNotice() {
18621
18628
  if (localStorage$2.getItem("validator_email")) {
18622
18629
  localStorage$2.removeItem("validator_email");
@@ -18712,6 +18719,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
18712
18719
  launchAtomCode: { type: Function, default: void 0 },
18713
18720
  defaultGlobalSearchType: { default: "repo" },
18714
18721
  accountSessionSupported: { type: Boolean, default: false },
18722
+ accountSessionLogout: {},
18715
18723
  accountSessions: { default: () => [] },
18716
18724
  accountSessionActiveRef: { default: null },
18717
18725
  accountSessionMax: { default: 5 },
@@ -18752,6 +18760,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
18752
18760
  const emit = __emit;
18753
18761
  const accountSessionBindings = computed(() => ({
18754
18762
  accountSessionSupported: props.accountSessionSupported,
18763
+ accountSessionLogout: props.accountSessionLogout,
18755
18764
  accountSessions: props.accountSessions,
18756
18765
  accountSessionActiveRef: props.accountSessionActiveRef,
18757
18766
  accountSessionMax: props.accountSessionMax,
@@ -21090,9 +21099,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
21090
21099
  const layoutConfig2 = useLayoutConfig();
21091
21100
  const { t: t2 } = i18n.global;
21092
21101
  const route = useRoute();
21093
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CSbC2r5Q.js"));
21094
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Bu9RU8Ah.js"));
21095
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D9-s-L30.js"));
21102
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-Ba7YKRMV.js"));
21103
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DedFI8-A.js"));
21104
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-K6sxu3zx.js"));
21096
21105
  const props = __props;
21097
21106
  const useReport2 = inject("useReport");
21098
21107
  const userInfo = inject("userInfo");
@@ -27630,7 +27639,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27630
27639
  __publicField(_SlidCaptchaManager, "instance");
27631
27640
  let SlidCaptchaManager = _SlidCaptchaManager;
27632
27641
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
27633
- const SlidCaptcha = defineAsyncComponent(() => import("./index-D98To__r.js"));
27642
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-D6YubXuH.js"));
27634
27643
  const useSlidCaptcha = () => {
27635
27644
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
27636
27645
  const open = (config) => {
@@ -27660,7 +27669,7 @@ const useSlidCaptcha = () => {
27660
27669
  close
27661
27670
  };
27662
27671
  };
27663
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-D5SbFi-H.js"));
27672
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-DvHsRlkN.js"));
27664
27673
  const useYunpianCaptcha = () => {
27665
27674
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
27666
27675
  const open = (config) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { z as slidCaptchaManager, c as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { z as slidCaptchaManager, c as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-COKhviBm.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:";
@@ -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, j as usePageResize, A as isZh, _ as _export_sfc } from "./index-trrN7Eu4.js";
11
+ import { a as i18n, j as usePageResize, A as isZh, _ as _export_sfc } from "./index-COKhviBm.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, C, a6, a7, a8, a9 } from "./index-trrN7Eu4.js";
1
+ import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, C, a6, a7, a8, a9 } from "./index-COKhviBm.js";
2
2
  export {
3
3
  P as AsideFooterTools,
4
4
  Q as AtomCodeLauncher,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-trrN7Eu4.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-COKhviBm.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.12.57-multiple-account",
3
+ "version": "1.12.58-multiple-account",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toDisplayString, unref, useModel, ref, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, createTextVNode, renderList, withCtx, reactive, onMounted, watchEffect } from "vue";
2
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, e as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as useCookie, j as usePageResize, L as LANG_ZH, k as isGstarRepo, m as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, w as REPO_TYPE, x as extractRepoInfoWithURL, y as LANG_KEY } from "./index-trrN7Eu4.js";
3
- import { t as transWebUrl } from "./transWebUrl-CfS-lRqR.js";
2
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, e as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as useCookie, j as usePageResize, L as LANG_ZH, k as isGstarRepo, m as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, w as REPO_TYPE, x as extractRepoInfoWithURL, y as LANG_KEY } from "./index-COKhviBm.js";
3
+ import { t as transWebUrl } from "./transWebUrl-BSrPTPSK.js";
4
4
  import { useRouter } from "vue-router";
5
5
  import { Row, Col } from "vue-devui-lal/grid";
6
6
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -1,4 +1,4 @@
1
- import { c as useLayoutConfig } from "./index-trrN7Eu4.js";
1
+ import { c as useLayoutConfig } from "./index-COKhviBm.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params, options = {}) => {
4
4
  if (!url) return url;