vue-layout-gitcode 1.12.48 → 1.12.49

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, createElementBlock, openBlock, Fragment, renderList, withDirectives, createBlock, unref, ref, watch, createElementVNode, createCommentVNode, createVNode, toDisplayString } 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-DeGDfCYb.js";
3
- import { u as useReportRepo, S as SearchRepoCard, m as mergeSearchSuggestions } from "./search-suggestion-DgGrJ-K7.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-C9L7Er3e.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, m as mergeSearchSuggestions } from "./search-suggestion-BItU0y6n.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, createBlock, openBlock, 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-DeGDfCYb.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-C9L7Er3e.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, 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-DeGDfCYb.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-C9L7Er3e.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CqeYOxhc.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D2O93m4T.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, c as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, e as useRequestReport, _ as _export_sfc } from "./index-DeGDfCYb.js";
2
+ import { a as i18n, c as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, e as useRequestReport, _ as _export_sfc } from "./index-C9L7Er3e.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CqeYOxhc.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D2O93m4T.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, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DeGDfCYb.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-C9L7Er3e.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-DeGDfCYb.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-C9L7Er3e.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, createElementBlock, openBlock, 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-DgGrJ-K7.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-DeGDfCYb.js";
2
+ import { u as useReportRepo, S as SearchRepoCard, i as isProjectSuggestionType, n as normalizeProjectUrlForMainSite } from "./search-suggestion-BItU0y6n.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-C9L7Er3e.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DeGDfCYb.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-C9L7Er3e.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, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DeGDfCYb.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-C9L7Er3e.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" };
@@ -13332,6 +13332,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
13332
13332
  var _a, _b;
13333
13333
  return ((_b = (_a = repoInfo.value) == null ? void 0 : _a.enterprise) == null ? void 0 : _b.name) || "";
13334
13334
  });
13335
+ const ENTERPRISE_TIP_TEXT = {
13336
+ /** 组织场景 */
13337
+ org: { zh: "企业组织", en: "Enterprise organization" },
13338
+ /** 项目场景 */
13339
+ repo: { zh: "企业项目", en: "Enterprise project" }
13340
+ };
13341
+ const orgEnterpriseTip = isZh ? ENTERPRISE_TIP_TEXT.org.zh : ENTERPRISE_TIP_TEXT.org.en;
13342
+ const repoEnterpriseTip = isZh ? ENTERPRISE_TIP_TEXT.repo.zh : ENTERPRISE_TIP_TEXT.repo.en;
13335
13343
  const enterpriseMemberCache = /* @__PURE__ */ new Map();
13336
13344
  const pendingEnterpriseMemberReqs = /* @__PURE__ */ new Map();
13337
13345
  const fetchIsEnterpriseMember = (enterpriseId) => {
@@ -13434,17 +13442,25 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
13434
13442
  createElementVNode("div", _hoisted_2$v, [
13435
13443
  createElementVNode("span", _hoisted_3$u, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
13436
13444
  ]),
13437
- orgEnterpriseId.value ? (openBlock(), createElementBlock("span", {
13445
+ orgEnterpriseId.value ? (openBlock(), createBlock(unref(Tooltip), {
13438
13446
  key: 0,
13439
- class: "header-custom-enterprise-btn org-layout-toolbar-enterprise",
13440
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleEnterpriseClick(orgEnterpriseId.value, orgEnterpriseName.value), ["stop", "prevent"]))
13441
- }, [
13442
- createVNode(GIcon, {
13443
- name: "gt-enterprise1",
13444
- size: "16px",
13445
- class: "header-custom-enterprise-icon"
13446
- })
13447
- ])) : createCommentVNode("", true)
13447
+ content: unref(orgEnterpriseTip),
13448
+ position: ["top", "bottom"]
13449
+ }, {
13450
+ default: withCtx(() => [
13451
+ createElementVNode("span", {
13452
+ class: "header-custom-enterprise-btn org-layout-toolbar-enterprise",
13453
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleEnterpriseClick(orgEnterpriseId.value, orgEnterpriseName.value), ["stop", "prevent"]))
13454
+ }, [
13455
+ createVNode(GIcon, {
13456
+ name: "gt-enterprise1",
13457
+ size: "16px",
13458
+ class: "header-custom-enterprise-icon"
13459
+ })
13460
+ ])
13461
+ ]),
13462
+ _: 1
13463
+ }, 8, ["content"])) : createCommentVNode("", true)
13448
13464
  ];
13449
13465
  }),
13450
13466
  _: 1
@@ -13581,17 +13597,25 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
13581
13597
  _: 1
13582
13598
  }, 8, ["message"])
13583
13599
  ])) : createCommentVNode("", true),
13584
- repoEnterpriseId.value ? (openBlock(), createElementBlock("div", {
13600
+ repoEnterpriseId.value ? (openBlock(), createBlock(unref(Tooltip), {
13585
13601
  key: 2,
13586
- class: "header-custom-tag-mb header-custom-enterprise-btn",
13587
- onClick: _cache[2] || (_cache[2] = ($event) => handleEnterpriseClick(repoEnterpriseId.value, repoEnterpriseName.value))
13588
- }, [
13589
- createVNode(GIcon, {
13590
- name: "gt-enterprise1",
13591
- size: "16px",
13592
- class: "header-custom-enterprise-icon"
13593
- })
13594
- ])) : createCommentVNode("", true),
13602
+ content: unref(repoEnterpriseTip),
13603
+ position: ["top", "bottom"]
13604
+ }, {
13605
+ default: withCtx(() => [
13606
+ createElementVNode("div", {
13607
+ class: "header-custom-tag-mb header-custom-enterprise-btn",
13608
+ onClick: _cache[2] || (_cache[2] = ($event) => handleEnterpriseClick(repoEnterpriseId.value, repoEnterpriseName.value))
13609
+ }, [
13610
+ createVNode(GIcon, {
13611
+ name: "gt-enterprise1",
13612
+ size: "16px",
13613
+ class: "header-custom-enterprise-icon"
13614
+ })
13615
+ ])
13616
+ ]),
13617
+ _: 1
13618
+ }, 8, ["content"])) : createCommentVNode("", true),
13595
13619
  unref(isTrustedRepo)((_g = unref(repoInfo)) == null ? void 0 : _g.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
13596
13620
  createVNode(_sfc_main$M, {
13597
13621
  trusted: "",
@@ -16048,12 +16072,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
16048
16072
  setup(__props) {
16049
16073
  const layoutConfig2 = useLayoutConfig();
16050
16074
  const { t: $t } = i18n.global;
16051
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BjvTpyHG.js"));
16052
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Bl5NlF8w.js"));
16053
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DlN5CIiN.js"));
16054
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DSzmJaiq.js"));
16055
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Bd8z5pfE.js"));
16056
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Cz5wdSW5.js"));
16075
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Db39EGmG.js"));
16076
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Dgfc7SCl.js"));
16077
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CF_0kfsZ.js"));
16078
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DsJwwwqz.js"));
16079
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DoRnqknT.js"));
16080
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BZAwO694.js"));
16057
16081
  const props = __props;
16058
16082
  const repoInfo = inject("repoInfo", computed(() => void 0));
16059
16083
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17444,7 +17468,7 @@ const vElementExposure = {
17444
17468
  beforeUnmount() {
17445
17469
  }
17446
17470
  };
17447
- const NoticeModal = defineAsyncComponent(() => import("./notice-BfZ0ZS1h.js"));
17471
+ const NoticeModal = defineAsyncComponent(() => import("./notice-lOlCwT2W.js"));
17448
17472
  function clearNotice() {
17449
17473
  if (localStorage$2.getItem("validator_email")) {
17450
17474
  localStorage$2.removeItem("validator_email");
@@ -19894,9 +19918,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19894
19918
  const layoutConfig2 = useLayoutConfig();
19895
19919
  const { t: t2 } = i18n.global;
19896
19920
  const route = useRoute();
19897
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DqIhS8S4.js"));
19898
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-aHSdKWzH.js"));
19899
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DuP20QR9.js"));
19921
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-Cz2BmiKq.js"));
19922
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BzdlWqLk.js"));
19923
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BwQYTsU9.js"));
19900
19924
  const props = __props;
19901
19925
  const useReport2 = inject("useReport");
19902
19926
  const userInfo = inject("userInfo");
@@ -26367,7 +26391,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26367
26391
  __publicField(_SlidCaptchaManager, "instance");
26368
26392
  let SlidCaptchaManager = _SlidCaptchaManager;
26369
26393
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26370
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CpLWFp5g.js"));
26394
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-zAcz4IRM.js"));
26371
26395
  const useSlidCaptcha = () => {
26372
26396
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26373
26397
  const open = (config) => {
@@ -26397,7 +26421,7 @@ const useSlidCaptcha = () => {
26397
26421
  close
26398
26422
  };
26399
26423
  };
26400
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-DJYL3DkE.js"));
26424
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CngOZcYe.js"));
26401
26425
  const useYunpianCaptcha = () => {
26402
26426
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26403
26427
  const open = (config) => {
@@ -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-DeGDfCYb.js";
11
+ import { a as i18n, j as usePageResize, A as isZh, _ as _export_sfc } from "./index-C9L7Er3e.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { z as slidCaptchaManager, c as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-DeGDfCYb.js";
2
+ import { z as slidCaptchaManager, c as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-C9L7Er3e.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:";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-DeGDfCYb.js";
1
+ import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-C9L7Er3e.js";
2
2
  export {
3
3
  a3 as AsideFooterTools,
4
4
  $ as AtomCodeLauncher,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-DeGDfCYb.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-C9L7Er3e.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.48",
3
+ "version": "1.12.49",
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, mergeModels, useModel, ref, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, renderList, withCtx, reactive, onMounted, watchEffect } from "vue";
2
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, e as useRequestReport, r as reqCatch, 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-DeGDfCYb.js";
3
- import { t as transWebUrl } from "./transWebUrl-CqeYOxhc.js";
2
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, e as useRequestReport, r as reqCatch, 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-C9L7Er3e.js";
3
+ import { t as transWebUrl } from "./transWebUrl-D2O93m4T.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-DeGDfCYb.js";
1
+ import { c as useLayoutConfig } from "./index-C9L7Er3e.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params, options = {}) => {
4
4
  if (!url) return url;