vue-layout-gitcode 1.12.13-beta.1 → 1.12.14-beta.1

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-DZ-SSYRi.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-sew8BkJ5.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CXC1gZMV.js";
7
- import "./transWebUrl-BhvwwdLt.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DMMMTIq6.js";
7
+ import "./transWebUrl-BjCYPJAp.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, createBlock, openBlock, 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, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DZ-SSYRi.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-sew8BkJ5.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-DZ-SSYRi.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-sew8BkJ5.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BhvwwdLt.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BjCYPJAp.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-DZ-SSYRi.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-sew8BkJ5.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BhvwwdLt.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BjCYPJAp.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-DZ-SSYRi.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-sew8BkJ5.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-DZ-SSYRi.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-sew8BkJ5.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-DZ-SSYRi.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-sew8BkJ5.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-CXC1gZMV.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-DZ-SSYRi.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DMMMTIq6.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-sew8BkJ5.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-DZ-SSYRi.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-sew8BkJ5.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-DZ-SSYRi.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-sew8BkJ5.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, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-DZ-SSYRi.js";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-sew8BkJ5.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-DZ-SSYRi.js";
11
+ import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-sew8BkJ5.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-DZ-SSYRi.js";
4
- import { t as transWebUrl } from "./transWebUrl-BhvwwdLt.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-sew8BkJ5.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BjCYPJAp.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";
@@ -7766,7 +7766,8 @@ const gitCodeLayout$1 = {
7766
7766
  autFai: "授权失败"
7767
7767
  },
7768
7768
  menu: {
7769
- growthCenter: "成长中心"
7769
+ growthCenter: "成长中心",
7770
+ cannTask: "CANN 任务"
7770
7771
  },
7771
7772
  account: {
7772
7773
  phone: "手机号",
@@ -8154,7 +8155,8 @@ const gitCodeLayout = {
8154
8155
  autFai: "Authorization Failed"
8155
8156
  },
8156
8157
  menu: {
8157
- growthCenter: "Growth Center"
8158
+ growthCenter: "Growth Center",
8159
+ cannTask: "CANN Tasks"
8158
8160
  },
8159
8161
  account: {
8160
8162
  phone: "Phone Number",
@@ -9103,7 +9105,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9103
9105
  request: { type: Function, default: proxyService },
9104
9106
  globalStore: { default: () => ({}) },
9105
9107
  isRepoPage: { type: Boolean, default: false },
9106
- isWhiteListRepo: { type: Boolean, default: false }
9108
+ isWhiteListRepo: { type: Boolean, default: false },
9109
+ isCannWhiteList: { type: Boolean, default: false }
9107
9110
  },
9108
9111
  emits: ["toggle-growth-center"],
9109
9112
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -9371,7 +9374,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9371
9374
  }, {
9372
9375
  content: withCtx(() => [
9373
9376
  createElementVNode("div", _hoisted_6$d, [
9374
- createElementVNode("div", _hoisted_7$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
9377
+ createElementVNode("div", _hoisted_7$a, toDisplayString$1(_ctx.isCannWhiteList ? unref(t2)("gitCodeLayout.userSetting.menu.cannTask") : unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
9375
9378
  ])
9376
9379
  ]),
9377
9380
  default: withCtx(() => [
@@ -15914,13 +15917,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
15914
15917
  var _a;
15915
15918
  const layoutConfig2 = useLayoutConfig();
15916
15919
  const { t: $t } = i18n.global;
15917
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BacyHFEk.js"));
15918
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CaoEz3xN.js"));
15919
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Cbm9dRy9.js"));
15920
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CDGFfawT.js"));
15921
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CwBi4N6Z.js"));
15922
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DlAx3tjS.js"));
15923
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Cw0JyOJ9.js"));
15920
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CHyEnuxq.js"));
15921
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BQPeKq9w.js"));
15922
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D510G-DP.js"));
15923
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BFjEf7Xe.js"));
15924
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DuAwPlCU.js"));
15925
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BX3XaW_6.js"));
15926
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DpjuW6xU.js"));
15924
15927
  const props = __props;
15925
15928
  const repoInfo = inject("repoInfo");
15926
15929
  const orgInfo = inject("orgInfo");
@@ -16696,7 +16699,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
16696
16699
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
16697
16700
  }
16698
16701
  };
16699
- const NoticeModal = defineAsyncComponent(() => import("./notice-DJRIxGGL.js"));
16702
+ const NoticeModal = defineAsyncComponent(() => import("./notice-WYyhMYst.js"));
16700
16703
  function clearNotice() {
16701
16704
  if (localStorage$2.getItem("validator_email")) {
16702
16705
  localStorage$2.removeItem("validator_email");
@@ -17884,9 +17887,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
17884
17887
  const layoutConfig2 = useLayoutConfig();
17885
17888
  const { t: t2 } = i18n.global;
17886
17889
  const route = useRoute();
17887
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-C70Lv285.js"));
17888
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-B8hffoF9.js"));
17889
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-cePmsaX1.js"));
17890
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-Bacdijkh.js"));
17891
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CgWGkULc.js"));
17892
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BYyd6e3M.js"));
17890
17893
  const props = __props;
17891
17894
  const useReport2 = inject("useReport");
17892
17895
  const userInfo = inject("userInfo");
@@ -24329,7 +24332,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
24329
24332
  __publicField(_SlidCaptchaManager, "instance");
24330
24333
  let SlidCaptchaManager = _SlidCaptchaManager;
24331
24334
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
24332
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BdJRfYEN.js"));
24335
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BZYCIwxN.js"));
24333
24336
  const useSlidCaptcha = () => {
24334
24337
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
24335
24338
  const open = (config) => {
@@ -24359,7 +24362,7 @@ const useSlidCaptcha = () => {
24359
24362
  close
24360
24363
  };
24361
24364
  };
24362
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-B78settw.js"));
24365
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CXi5WgqU.js"));
24363
24366
  const useYunpianCaptcha = () => {
24364
24367
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24365
24368
  const open = (config) => {
package/index.d.ts CHANGED
@@ -811,6 +811,11 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
811
811
  required: true;
812
812
  default: boolean;
813
813
  };
814
+ isCannWhiteList: {
815
+ type: PropType<boolean>;
816
+ required: true;
817
+ default: boolean;
818
+ };
814
819
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "toggle-growth-center"[], "toggle-growth-center", PublicProps, Readonly<ExtractPropTypes<{
815
820
  sceneValue: {
816
821
  type: PropType<SceneValue>;
@@ -850,6 +855,11 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
850
855
  required: true;
851
856
  default: boolean;
852
857
  };
858
+ isCannWhiteList: {
859
+ type: PropType<boolean>;
860
+ required: true;
861
+ default: boolean;
862
+ };
853
863
  }>> & Readonly<{
854
864
  "onToggle-growth-center"?: ((...args: any[]) => any) | undefined;
855
865
  }>, {
@@ -862,6 +872,7 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
862
872
  };
863
873
  isRepoPage: boolean | undefined;
864
874
  isWhiteListRepo: boolean;
875
+ isCannWhiteList: boolean;
865
876
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
866
877
 
867
878
  export declare function useLogin(request: any, globalStore?: any): {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Q, O, P, X, N, S, U, M, B, Z, W, Y, V } from "./index-DZ-SSYRi.js";
1
+ import { Q, O, P, X, N, S, U, M, B, Z, W, Y, V } from "./index-sew8BkJ5.js";
2
2
  export {
3
3
  Q as EnterpriseHeader,
4
4
  O as GitCodeAside,
@@ -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-DZ-SSYRi.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-sew8BkJ5.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.13-beta.1",
3
+ "version": "1.12.14-beta.1",
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-DZ-SSYRi.js";
1
+ import { y as useLayoutConfig } from "./index-sew8BkJ5.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;