vue-layout-gitcode 1.10.47 → 1.10.48

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,10 +1,10 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BsAdNTFu.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-3wv-r-ed.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Bf468b3i.js";
7
- import "./transWebUrl-BCCt-IBJ.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CzUKdSx9.js";
7
+ import "./transWebUrl-Ddb2myxZ.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-3wv-r-ed.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-3wv-r-ed.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BCCt-IBJ.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Ddb2myxZ.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-3wv-r-ed.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BCCt-IBJ.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Ddb2myxZ.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BsAdNTFu.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-3wv-r-ed.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-3wv-r-ed.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-3wv-r-ed.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-Bf468b3i.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CzUKdSx9.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-3wv-r-ed.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-BsAdNTFu.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-3wv-r-ed.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-BsAdNTFu.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-3wv-r-ed.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -14261,12 +14261,14 @@ const _sfc_main$y = /* @__PURE__ */ Object.assign({
14261
14261
  type: Boolean,
14262
14262
  default: true
14263
14263
  },
14264
- openDropdown: {
14264
+ /** 由外部控制下拉是否展开;建议配合 v-model:dropdownVisible 使用 */
14265
+ dropdownVisible: {
14265
14266
  type: Boolean,
14266
14267
  default: false
14267
14268
  }
14268
14269
  },
14269
- setup(__props) {
14270
+ emits: ["update:dropdownVisible"],
14271
+ setup(__props, { emit: __emit }) {
14270
14272
  const layoutConfig2 = useLayoutConfig();
14271
14273
  const API = headRequest(inject("request"));
14272
14274
  const getUserCreateOrg = async (user) => {
@@ -14280,15 +14282,19 @@ const _sfc_main$y = /* @__PURE__ */ Object.assign({
14280
14282
  };
14281
14283
  };
14282
14284
  const props = __props;
14283
- const dropdownVisible = ref(false);
14285
+ const emit = __emit;
14286
+ const innerDropdownVisible = ref(false);
14287
+ watch(
14288
+ () => props.dropdownVisible,
14289
+ (isOpen) => {
14290
+ innerDropdownVisible.value = isOpen;
14291
+ },
14292
+ { immediate: true }
14293
+ );
14284
14294
  const handleDropdownToggle = (visible) => {
14285
- dropdownVisible.value = visible;
14295
+ innerDropdownVisible.value = visible;
14296
+ emit("update:dropdownVisible", visible);
14286
14297
  };
14287
- watch(props.openDropdown, (newVal) => {
14288
- if (newVal) {
14289
- dropdownVisible.value = true;
14290
- }
14291
- }, { immediate: true });
14292
14298
  const { t: $t } = i18n.global;
14293
14299
  const linkList = ref([
14294
14300
  { label: $t("gitCodeLayout.header.createRepo"), href: `${layoutConfig2.VITE_HOST}/create?position=nav_top` },
@@ -14316,7 +14322,7 @@ const _sfc_main$y = /* @__PURE__ */ Object.assign({
14316
14322
  class: "g-header-create",
14317
14323
  position: ["bottom-end"],
14318
14324
  align: "end",
14319
- visible: dropdownVisible.value,
14325
+ visible: innerDropdownVisible.value,
14320
14326
  onToggle: handleDropdownToggle,
14321
14327
  "overlay-class": "repo-guide-step3-menu"
14322
14328
  }, {
@@ -15767,13 +15773,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
15767
15773
  var _a;
15768
15774
  const layoutConfig2 = useLayoutConfig();
15769
15775
  const { t: $t } = i18n.global;
15770
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B4HyOR-n.js"));
15771
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-rUKYk8Jx.js"));
15772
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-lq_tNom-.js"));
15773
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CiLTeRjc.js"));
15774
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DLm9DBVr.js"));
15775
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BKBhPuRH.js"));
15776
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-De9HWMhQ.js"));
15776
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Dp9_cu_e.js"));
15777
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Dc_AB314.js"));
15778
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-q97SdAFR.js"));
15779
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CK_vrI0W.js"));
15780
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-EqYJNoOZ.js"));
15781
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BnAjR41M.js"));
15782
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-jgN6b9FK.js"));
15777
15783
  const props = __props;
15778
15784
  const repoInfo = inject("repoInfo");
15779
15785
  const orgInfo = inject("orgInfo");
@@ -16547,7 +16553,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
16547
16553
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
16548
16554
  }
16549
16555
  };
16550
- const NoticeModal = defineAsyncComponent(() => import("./notice-DfNMwy0L.js"));
16556
+ const NoticeModal = defineAsyncComponent(() => import("./notice-C2b_Buj_.js"));
16551
16557
  function clearNotice() {
16552
16558
  if (localStorage$2.getItem("validator_email")) {
16553
16559
  localStorage$2.removeItem("validator_email");
@@ -16625,7 +16631,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16625
16631
  }) },
16626
16632
  openCreateDropdown: { type: Boolean, default: false }
16627
16633
  },
16628
- emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
16634
+ emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess", "update:openCreateDropdown"],
16629
16635
  setup(__props, { emit: __emit }) {
16630
16636
  var _a;
16631
16637
  useCssVars((_ctx) => ({
@@ -17119,8 +17125,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17119
17125
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
17120
17126
  !["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(Create, {
17121
17127
  key: 0,
17122
- openDropdown: _ctx.openCreateDropdown
17123
- }, null, 8, ["openDropdown"])) : createCommentVNode("", true),
17128
+ dropdownVisible: props.openCreateDropdown,
17129
+ "onUpdate:dropdownVisible": _cache[6] || (_cache[6] = ($event) => emit("update:openCreateDropdown", $event))
17130
+ }, null, 8, ["dropdownVisible"])) : createCommentVNode("", true),
17124
17131
  isModuleVisible(unref(HeaderDisplayItem).DOCUMENT_CENTER) ? (openBlock(), createBlock(DocumentCenter, { key: 1 })) : createCommentVNode("", true),
17125
17132
  isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
17126
17133
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
@@ -17358,9 +17365,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17358
17365
  const layoutConfig2 = useLayoutConfig();
17359
17366
  const { t: t2 } = i18n.global;
17360
17367
  const route = useRoute();
17361
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-sa1lManN.js"));
17362
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CzbmFSbI.js"));
17363
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-B12jY7S4.js"));
17368
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-Dl_iFpYq.js"));
17369
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BjiGCgFQ.js"));
17370
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Bw6fFs7m.js"));
17364
17371
  const props = __props;
17365
17372
  console.log("slotKeys", props.slotKeys);
17366
17373
  console.log("props", props);
@@ -23565,7 +23572,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
23565
23572
  __publicField(_SlidCaptchaManager, "instance");
23566
23573
  let SlidCaptchaManager = _SlidCaptchaManager;
23567
23574
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
23568
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CYkBP9_X.js"));
23575
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BtzPb5iB.js"));
23569
23576
  const useSlidCaptcha = () => {
23570
23577
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
23571
23578
  const open = (config) => {
@@ -23595,7 +23602,7 @@ const useSlidCaptcha = () => {
23595
23602
  close
23596
23603
  };
23597
23604
  };
23598
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-Cp24Y9A7.js"));
23605
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CnIpdOp0.js"));
23599
23606
  const useYunpianCaptcha = () => {
23600
23607
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
23601
23608
  const open = (config) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-BsAdNTFu.js";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-3wv-r-ed.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, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-BsAdNTFu.js";
11
+ import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-3wv-r-ed.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-BsAdNTFu.js";
4
- import { t as transWebUrl } from "./transWebUrl-BCCt-IBJ.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-3wv-r-ed.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Ddb2myxZ.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { O, P, W, N, S, Q, M, B, Y, V, X, U } from "./index-BsAdNTFu.js";
1
+ import { O, P, W, N, S, Q, M, B, Y, V, X, U } from "./index-3wv-r-ed.js";
2
2
  export {
3
3
  O as GitCodeAside,
4
4
  P as GitCodeHeader,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-BsAdNTFu.js";
2
+ import { i as isPhone, u as useModel } from "./index-3wv-r-ed.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.10.47",
3
+ "version": "1.10.48",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { y as useLayoutConfig } from "./index-BsAdNTFu.js";
1
+ import { y as useLayoutConfig } from "./index-3wv-r-ed.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;