vue-layout-gitcode 1.12.81 → 1.12.82

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-CDgaiNCF.js";
3
- import { u as useReportRepo, S as SearchRepoCard, m as mergeSearchSuggestions } from "./search-suggestion-BD52ea3F.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-D8YQtrik.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, m as mergeSearchSuggestions } from "./search-suggestion-CFDjeSDP.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-CDgaiNCF.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-D8YQtrik.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-CDgaiNCF.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-D8YQtrik.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-qWEFoNg3.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CYvL6Wvd.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-CDgaiNCF.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-D8YQtrik.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-qWEFoNg3.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CYvL6Wvd.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-CDgaiNCF.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-D8YQtrik.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-CDgaiNCF.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-D8YQtrik.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-BD52ea3F.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-CDgaiNCF.js";
2
+ import { u as useReportRepo, S as SearchRepoCard, i as isProjectSuggestionType, n as normalizeProjectUrlForMainSite } from "./search-suggestion-CFDjeSDP.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-D8YQtrik.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-CDgaiNCF.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-D8YQtrik.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-CDgaiNCF.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-D8YQtrik.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" };
@@ -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-CDgaiNCF.js";
2
+ import { z as slidCaptchaManager, c as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-D8YQtrik.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:";
@@ -17889,12 +17889,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
17889
17889
  setup(__props) {
17890
17890
  const layoutConfig2 = useLayoutConfig();
17891
17891
  const { t: $t } = i18n.global;
17892
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BCwze3cf.js"));
17893
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BRqcXTsu.js"));
17894
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BlOf2oOr.js"));
17895
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-mqOjzbzP.js"));
17896
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DNoat9CF.js"));
17897
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DoWMv_Mc.js"));
17892
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DOoLP3Zo.js"));
17893
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-YQS6R5yb.js"));
17894
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-549iZBHj.js"));
17895
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BSHvF6FT.js"));
17896
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BE7t0vbv.js"));
17897
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B9tPkkT7.js"));
17898
17898
  const props = __props;
17899
17899
  const repoInfo = inject("repoInfo", computed(() => void 0));
17900
17900
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -19261,7 +19261,7 @@ const vElementExposure = {
19261
19261
  beforeUnmount() {
19262
19262
  }
19263
19263
  };
19264
- const NoticeModal = defineAsyncComponent(() => import("./notice-CPag0wRM.js"));
19264
+ const NoticeModal = defineAsyncComponent(() => import("./notice-B8B84Wgc.js"));
19265
19265
  function clearNotice() {
19266
19266
  if (localStorage$2.getItem("validator_email")) {
19267
19267
  localStorage$2.removeItem("validator_email");
@@ -21137,6 +21137,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21137
21137
  headerBorder: { type: Boolean, default: false },
21138
21138
  independence: { type: Boolean, default: false },
21139
21139
  userMenus: {},
21140
+ accountSessionSupported: { type: Boolean, default: false },
21141
+ accountSessionLogout: {},
21142
+ accountSessions: { default: () => [] },
21143
+ accountSessionActiveRef: { default: null },
21144
+ accountSessionMax: { default: 5 },
21145
+ accountSessionBusy: { type: Boolean, default: false },
21140
21146
  loginChildComponents: { default: void 0 },
21141
21147
  atomcodeLaunchQs: { default: "" },
21142
21148
  showAtomCodeLauncher: { type: Boolean, default: false },
@@ -21146,12 +21152,33 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21146
21152
  createMenuItems: {},
21147
21153
  createMenuNavigate: {}
21148
21154
  },
21149
- emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess", "update:openCreateDropdown"],
21155
+ emits: [
21156
+ "followDevCommunity",
21157
+ "followUser",
21158
+ "resetPwdDirectlySuccess",
21159
+ "update:openCreateDropdown",
21160
+ "account-switch",
21161
+ "account-add",
21162
+ "account-reauthorize",
21163
+ "account-remove"
21164
+ ],
21150
21165
  setup(__props, { emit: __emit }) {
21151
21166
  var _a;
21152
21167
  const route = useRoute();
21153
21168
  const props = __props;
21154
21169
  const emit = __emit;
21170
+ const accountSessionBindings = computed(() => ({
21171
+ accountSessionSupported: props.accountSessionSupported,
21172
+ accountSessionLogout: props.accountSessionLogout,
21173
+ accountSessions: props.accountSessions,
21174
+ accountSessionActiveRef: props.accountSessionActiveRef,
21175
+ accountSessionMax: props.accountSessionMax,
21176
+ accountSessionBusy: props.accountSessionBusy,
21177
+ onAccountSwitch: (ref2) => emit("account-switch", ref2),
21178
+ onAccountAdd: () => emit("account-add"),
21179
+ onAccountReauthorize: (ref2) => emit("account-reauthorize", ref2),
21180
+ onAccountRemove: (ref2) => emit("account-remove", ref2)
21181
+ }));
21155
21182
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
21156
21183
  provide("request", props.request);
21157
21184
  provide(
@@ -21477,7 +21504,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21477
21504
  "onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
21478
21505
  }, null, 8, ["dropdownVisible", "items", "onNavigate", "isCreateEnterprise", "independence"])) : createCommentVNode("", true),
21479
21506
  isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
21480
- isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
21507
+ isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, mergeProps({
21481
21508
  key: 3,
21482
21509
  isChatBot: false,
21483
21510
  loginOutFinish: __props.loginOutFinish,
@@ -21485,7 +21512,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21485
21512
  independence: __props.independence,
21486
21513
  userMenus: __props.userMenus,
21487
21514
  inEnterpriseHeader: true
21488
- }, null, 8, ["loginOutFinish", "independence", "userMenus"])) : createCommentVNode("", true)
21515
+ }, accountSessionBindings.value), null, 16, ["loginOutFinish", "independence", "userMenus"])) : createCommentVNode("", true)
21489
21516
  ], 64))
21490
21517
  ])
21491
21518
  ])), [
@@ -21741,9 +21768,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
21741
21768
  const layoutConfig2 = useLayoutConfig();
21742
21769
  const { t: t2 } = i18n.global;
21743
21770
  const route = useRoute();
21744
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DmlOoM_4.js"));
21745
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Bn_tJ5Js.js"));
21746
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DEZ9jlEH.js"));
21771
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-CCw5Fz98.js"));
21772
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CF8go5fi.js"));
21773
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DVBkEX3k.js"));
21747
21774
  const props = __props;
21748
21775
  const useReport2 = inject("useReport");
21749
21776
  const userInfo = inject("userInfo");
@@ -28282,7 +28309,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
28282
28309
  __publicField(_SlidCaptchaManager, "instance");
28283
28310
  let SlidCaptchaManager = _SlidCaptchaManager;
28284
28311
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
28285
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DgETneKq.js"));
28312
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-B7IA4AhG.js"));
28286
28313
  const useSlidCaptcha = () => {
28287
28314
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
28288
28315
  const open = (config2) => {
@@ -28312,7 +28339,7 @@ const useSlidCaptcha = () => {
28312
28339
  close
28313
28340
  };
28314
28341
  };
28315
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-CMraF4HP.js"));
28342
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-DD75fCD6.js"));
28316
28343
  const useYunpianCaptcha = () => {
28317
28344
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
28318
28345
  const open = (config2) => {
@@ -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-CDgaiNCF.js";
11
+ import { a as i18n, j as usePageResize, A as isZh, _ as _export_sfc } from "./index-D8YQtrik.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, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, C, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL } from "./index-CDgaiNCF.js";
1
+ import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, C, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL } from "./index-D8YQtrik.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-CDgaiNCF.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-D8YQtrik.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.81",
3
+ "version": "1.12.82",
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-CDgaiNCF.js";
3
- import { t as transWebUrl } from "./transWebUrl-qWEFoNg3.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-D8YQtrik.js";
3
+ import { t as transWebUrl } from "./transWebUrl-CYvL6Wvd.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-CDgaiNCF.js";
1
+ import { c as useLayoutConfig } from "./index-D8YQtrik.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params, options = {}) => {
4
4
  if (!url) return url;