vue-layout-gitcode 1.12.15-beta.35 → 1.12.15-beta.37

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, openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString, unref, createVNode, 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-Dy_ygVv2.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-DATaJSFB.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BF43h3sm.js";
7
- import "./transWebUrl-ClkTqZ9T.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-5Q19piGg.js";
7
+ import "./transWebUrl-IyhMGnAe.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, computed, ref, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createTextVNode, 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, b as REPO_EVENT, H as ASIDE_MENU_REPO, I as isHttps, J as navigateWithMigrationGuard, _ as _export_sfc } from "./index-Dy_ygVv2.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, b as REPO_EVENT, H as ASIDE_MENU_REPO, I as isHttps, J as navigateWithMigrationGuard, _ as _export_sfc } from "./index-DATaJSFB.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, y as useLayoutConfig, G as GIcon, t as transformUrl, M as _sfc_main$1, N as loadAsideData, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, K as asideRequest, _ as _export_sfc } from "./index-Dy_ygVv2.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, M as _sfc_main$1, N as loadAsideData, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, K as asideRequest, _ as _export_sfc } from "./index-DATaJSFB.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-ClkTqZ9T.js";
4
+ import { t as transWebUrl } from "./transWebUrl-IyhMGnAe.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, y as useLayoutConfig, t as transformUrl, G as GIcon, K as asideRequest, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-Dy_ygVv2.js";
2
+ import { a as i18n, y as useLayoutConfig, t as transformUrl, G as GIcon, K as asideRequest, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DATaJSFB.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-ClkTqZ9T.js";
4
+ import { t as transWebUrl } from "./transWebUrl-IyhMGnAe.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, 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-Dy_ygVv2.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DATaJSFB.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, G as GIcon, _ as _export_sfc } from "./index-Dy_ygVv2.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DATaJSFB.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 } from "./index-BF43h3sm.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-Dy_ygVv2.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-5Q19piGg.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-DATaJSFB.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-Dy_ygVv2.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DATaJSFB.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, 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-Dy_ygVv2.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DATaJSFB.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,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, useModel, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, 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, r as reqCatch, f as useRequestReport, 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-Dy_ygVv2.js";
4
- import { t as transWebUrl } from "./transWebUrl-ClkTqZ9T.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, f as useRequestReport, 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-DATaJSFB.js";
4
+ import { t as transWebUrl } from "./transWebUrl-IyhMGnAe.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";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-Dy_ygVv2.js";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-DATaJSFB.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:";
@@ -16419,17 +16419,19 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16419
16419
  next.splice(next.length - 1, 0, avatarLangBlock);
16420
16420
  return next;
16421
16421
  });
16422
+ const getMenuHref = (item) => {
16423
+ if (item.href) {
16424
+ return item.href;
16425
+ }
16426
+ if (item.link) {
16427
+ return toApplicationUrl(layoutConfig2.VITE_HOST, item.link);
16428
+ }
16429
+ return void 0;
16430
+ };
16422
16431
  function handleClick(item) {
16423
16432
  if (item == null ? void 0 : item.action) {
16424
16433
  item.action();
16425
16434
  }
16426
- if (item == null ? void 0 : item.link) {
16427
- const link = `${layoutConfig2.VITE_HOST}${item.link}`;
16428
- emit("link-click");
16429
- setTimeout(() => {
16430
- window.open(link, "_self");
16431
- }, 100);
16432
- }
16433
16435
  }
16434
16436
  const handleLinkClick = (e) => {
16435
16437
  const target = e.target;
@@ -16522,6 +16524,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16522
16524
  return openBlock(), createBlock(OptionLink, mergeProps({
16523
16525
  key: item.id
16524
16526
  }, { ref_for: true }, item, {
16527
+ href: getMenuHref(item),
16525
16528
  onClick: ($event) => handleClick(item),
16526
16529
  target: __props.isChatBot && !item.action ? "_blank" : item.target || ""
16527
16530
  }), {
@@ -16534,7 +16537,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16534
16537
  createTextVNode(toDisplayString$1(item.label), 1)
16535
16538
  ]),
16536
16539
  _: 2
16537
- }, 1040, ["onClick", "target"]);
16540
+ }, 1040, ["href", "onClick", "target"]);
16538
16541
  }), 128))
16539
16542
  ], 2);
16540
16543
  }), 128))
@@ -17221,12 +17224,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17221
17224
  setup(__props) {
17222
17225
  const layoutConfig2 = useLayoutConfig();
17223
17226
  const { t: $t } = i18n.global;
17224
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CAfC9D0U.js"));
17225
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BkTqSdzz.js"));
17226
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-mKuJwojO.js"));
17227
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BSzAiApI.js"));
17228
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-vzOyFcWR.js"));
17229
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CPwOHFoD.js"));
17227
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CX9nterP.js"));
17228
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BFZc1V5R.js"));
17229
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-iW2MK14N.js"));
17230
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CDvfpiHU.js"));
17231
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-9nYos3oU.js"));
17232
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D_0gOyYw.js"));
17230
17233
  const props = __props;
17231
17234
  const repoInfo = inject("repoInfo");
17232
17235
  const orgInfo = inject("orgInfo");
@@ -18294,7 +18297,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
18294
18297
  return `${url}${separator}${qs}`;
18295
18298
  });
18296
18299
  const resolvedCliDownloadUrl = computed(() => {
18297
- return joinUrl(layoutConfig2.VITE_HOST, "/atomgit_atomcode/atomcode/releases/latest");
18300
+ return joinUrl(layoutConfig2.VITE_HOST, "/?tn=atomcode-coding-plan");
18298
18301
  });
18299
18302
  const handleToggle = (visible) => {
18300
18303
  isOpen.value = visible;
@@ -18465,7 +18468,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
18465
18468
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
18466
18469
  }
18467
18470
  };
18468
- const NoticeModal = defineAsyncComponent(() => import("./notice-Bs5oNzFH.js"));
18471
+ const NoticeModal = defineAsyncComponent(() => import("./notice-D1OxwaIT.js"));
18469
18472
  function clearNotice() {
18470
18473
  if (localStorage$2.getItem("validator_email")) {
18471
18474
  localStorage$2.removeItem("validator_email");
@@ -20995,9 +20998,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
20995
20998
  const layoutConfig2 = useLayoutConfig();
20996
20999
  const { t: t2 } = i18n.global;
20997
21000
  const route = useRoute();
20998
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-C7qX5JBL.js"));
20999
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BEg993LO.js"));
21000
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-C2KV0RRR.js"));
21001
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-SgshfF_F.js"));
21002
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BUZCIZtZ.js"));
21003
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CeZvP5_n.js"));
21001
21004
  const props = __props;
21002
21005
  const useReport2 = inject("useReport");
21003
21006
  const userInfo = inject("userInfo");
@@ -27481,7 +27484,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27481
27484
  __publicField(_SlidCaptchaManager, "instance");
27482
27485
  let SlidCaptchaManager = _SlidCaptchaManager;
27483
27486
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
27484
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Do-CQRho.js"));
27487
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-B5bJc6HS.js"));
27485
27488
  const useSlidCaptcha = () => {
27486
27489
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
27487
27490
  const open = (config) => {
@@ -27511,7 +27514,7 @@ const useSlidCaptcha = () => {
27511
27514
  close
27512
27515
  };
27513
27516
  };
27514
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-B8mrF-R_.js"));
27517
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-I1dEyL8B.js"));
27515
27518
  const useYunpianCaptcha = () => {
27516
27519
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
27517
27520
  const open = (config) => {
@@ -29480,8 +29483,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
29480
29483
  const isForgetTypeSwitch = menu === "forget" && prev_menu === "forget";
29481
29484
  if (isForgetTypeSwitch) {
29482
29485
  if ((_a = FormRef.value) == null ? void 0 : _a.Data) {
29483
- forgetSavedFormData = { ...FormRef.value.Data };
29486
+ forgetSavedFormData = {
29487
+ password: FormRef.value.Data.password || "",
29488
+ pwd: FormRef.value.Data.pwd || ""
29489
+ };
29484
29490
  }
29491
+ clearFormError("mobile_email");
29492
+ clearFormError("code");
29485
29493
  } else if (FormRef.value) {
29486
29494
  FormRef.value.ClearForm();
29487
29495
  clearFormError();
@@ -29508,7 +29516,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
29508
29516
  }
29509
29517
  }
29510
29518
  if (isForgetTypeSwitch && forgetSavedFormData) {
29511
- nextTick(async () => {
29519
+ nextTick(() => {
29512
29520
  var _a2;
29513
29521
  const data = (_a2 = FormRef.value) == null ? void 0 : _a2.Data;
29514
29522
  if (data) {
@@ -29518,19 +29526,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
29518
29526
  }
29519
29527
  }
29520
29528
  disabled.value = ForgetPasswordForm.value.some((item) => item.required && !data[item.key]);
29521
- clearFormError();
29522
- const filledKeys = ForgetPasswordForm.value.map((item) => item.key).filter((key) => data[key]);
29523
- if (filledKeys.length) {
29524
- const res = await FormRef.value.ValidateFormKeys(filledKeys);
29525
- if (res.type === "fail") {
29526
- for (const key of Object.keys(res.errors)) {
29527
- const messages = res.errors[key];
29528
- if (messages == null ? void 0 : messages.length) {
29529
- formErrors[key] = messages[0].message;
29530
- }
29531
- }
29532
- }
29533
- }
29534
29529
  }
29535
29530
  forgetSavedFormData = null;
29536
29531
  });
@@ -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-Dy_ygVv2.js";
11
+ import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-DATaJSFB.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 { O, P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, B, a4, a5, a6, a7 } from "./index-Dy_ygVv2.js";
1
+ import { O, P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, B, a4, a5, a6, a7 } from "./index-DATaJSFB.js";
2
2
  export {
3
3
  O as AsideFooterTools,
4
4
  P 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-Dy_ygVv2.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-DATaJSFB.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.15-beta.35",
3
+ "version": "1.12.15-beta.37",
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-Dy_ygVv2.js";
1
+ import { y as useLayoutConfig } from "./index-DATaJSFB.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;