vue-layout-gitcode 1.12.15-beta.57 → 1.12.15-beta.59

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, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-L-3SsSi7.js";
3
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-BZd31zwH.js";
2
+ import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-CViAwZ_N.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-DM1TKivq.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, z 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-L-3SsSi7.js";
2
+ import { a as i18n, z 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-CViAwZ_N.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, z 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, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-L-3SsSi7.js";
2
+ import { a as i18n, z 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, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-CViAwZ_N.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-Cx9ZRI5m.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BXVaiY4x.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, z as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-L-3SsSi7.js";
2
+ import { a as i18n, z as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-CViAwZ_N.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-Cx9ZRI5m.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BXVaiY4x.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-L-3SsSi7.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CViAwZ_N.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-L-3SsSi7.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-CViAwZ_N.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 } from "./useReportRepo-BZd31zwH.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-L-3SsSi7.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-DM1TKivq.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-CViAwZ_N.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-L-3SsSi7.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CViAwZ_N.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-L-3SsSi7.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CViAwZ_N.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 { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-L-3SsSi7.js";
2
+ import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-CViAwZ_N.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, A as isZh, _ as _export_sfc } from "./index-L-3SsSi7.js";
11
+ import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-CViAwZ_N.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -7721,6 +7721,7 @@ const gitCodeLayout$1 = {
7721
7721
  aiCommunity: "AI社区",
7722
7722
  learnCenter: "学习中心",
7723
7723
  space: "Space",
7724
+ schoolParty: "校源行",
7724
7725
  copyright_atomgit: {
7725
7726
  slogon: "共创AtomGit,开发者的代码家园",
7726
7727
  digest: "深圳开源共创科技有限公司版权所有",
@@ -8141,6 +8142,7 @@ const gitCodeLayout = {
8141
8142
  aiCommunity: "AI Hub",
8142
8143
  learnCenter: "Learning Center",
8143
8144
  space: "Space",
8145
+ schoolParty: "School Party",
8144
8146
  copyright_atomgit: {
8145
8147
  slogon: "Co-create AtomGit, the Code Home for Developers",
8146
8148
  digest: "ShenZhenKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
@@ -16153,12 +16155,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
16153
16155
  setup(__props) {
16154
16156
  const layoutConfig2 = useLayoutConfig();
16155
16157
  const { t: $t } = i18n.global;
16156
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B3ykA31H.js"));
16157
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cde61Xu8.js"));
16158
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DiiT5MYU.js"));
16159
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-1RBcLezp.js"));
16160
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-mL7AhauQ.js"));
16161
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Dknq89dY.js"));
16158
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-uYJJkM9G.js"));
16159
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-D_1OZYEC.js"));
16160
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C6swm4Rv.js"));
16161
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CAnJpT6D.js"));
16162
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BuBUjn3N.js"));
16163
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D3Ne5XnE.js"));
16162
16164
  const props = __props;
16163
16165
  const repoInfo = inject("repoInfo", computed(() => void 0));
16164
16166
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17037,7 +17039,8 @@ const actionMenuNames = {
17037
17039
  atomCode: ["AtomCode"],
17038
17040
  learn: ["学习中心"],
17039
17041
  space: ["Space"],
17040
- competition: ["大赛平台"],
17042
+ schoolParty: ["校源行"],
17043
+ competition: ["大赛平台", "大赛"],
17041
17044
  marketplace: ["应用市场"],
17042
17045
  workspace: ["工作台"]
17043
17046
  };
@@ -17069,6 +17072,14 @@ function transformHomeSidebarUrl(url, transformers) {
17069
17072
  customHost: transformers.aiHost
17070
17073
  });
17071
17074
  }
17075
+ if (/^https?:\/\/activity\./i.test(url)) {
17076
+ return (transformers.transformUrl || transformUrl)(
17077
+ replaceHost({
17078
+ url,
17079
+ customHost: "https://activity.gitcode.com"
17080
+ })
17081
+ );
17082
+ }
17072
17083
  return (transformers.transformUrl || transformUrl)(url);
17073
17084
  }
17074
17085
  function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
@@ -17080,6 +17091,7 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
17080
17091
  atomCode: resolve("atomCode"),
17081
17092
  learn: resolve("learn"),
17082
17093
  space: resolve("space"),
17094
+ schoolParty: resolve("schoolParty"),
17083
17095
  competition: resolve("competition"),
17084
17096
  marketplace: resolve("marketplace"),
17085
17097
  workspace: resolve("workspace")
@@ -17126,6 +17138,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17126
17138
  atomCode: "https://atomcode.atomgit.com/",
17127
17139
  learn: "/learn",
17128
17140
  space: "/space",
17141
+ schoolParty: transformUrl("https://activity.gitcode.com/schoolparty"),
17129
17142
  competition: joinUrl(
17130
17143
  layoutConfig2.VITE_COMPETITION_HOST || "https://competition.gitcode.com",
17131
17144
  "/competition?utm_source=toolbar"
@@ -17152,6 +17165,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17152
17165
  label: t2("gitCodeLayout.home.space"),
17153
17166
  href: actionUrls.value.space
17154
17167
  },
17168
+ {
17169
+ label: t2("gitCodeLayout.home.schoolParty"),
17170
+ href: actionUrls.value.schoolParty
17171
+ },
17155
17172
  {
17156
17173
  label: t2("gitCodeLayout.home.competition"),
17157
17174
  href: actionUrls.value.competition
@@ -17526,7 +17543,7 @@ const vElementExposure = {
17526
17543
  beforeUnmount() {
17527
17544
  }
17528
17545
  };
17529
- const NoticeModal = defineAsyncComponent(() => import("./notice-BJoRIGi5.js"));
17546
+ const NoticeModal = defineAsyncComponent(() => import("./notice-Caw0JRfu.js"));
17530
17547
  function clearNotice() {
17531
17548
  if (localStorage$2.getItem("validator_email")) {
17532
17549
  localStorage$2.removeItem("validator_email");
@@ -19929,9 +19946,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19929
19946
  const layoutConfig2 = useLayoutConfig();
19930
19947
  const { t: t2 } = i18n.global;
19931
19948
  const route = useRoute();
19932
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DV6QzNnn.js"));
19933
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DTwA_NBs.js"));
19934
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BQweGz7_.js"));
19949
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-DL8i6fCu.js"));
19950
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DautpwLZ.js"));
19951
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-VXngt96a.js"));
19935
19952
  const props = __props;
19936
19953
  const useReport2 = inject("useReport");
19937
19954
  const userInfo = inject("userInfo");
@@ -26385,7 +26402,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26385
26402
  __publicField(_SlidCaptchaManager, "instance");
26386
26403
  let SlidCaptchaManager = _SlidCaptchaManager;
26387
26404
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26388
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CcIDm-yG.js"));
26405
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-8kXWavqO.js"));
26389
26406
  const useSlidCaptcha = () => {
26390
26407
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26391
26408
  const open = (config) => {
@@ -26415,7 +26432,7 @@ const useSlidCaptcha = () => {
26415
26432
  close
26416
26433
  };
26417
26434
  };
26418
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-BgCGiX2E.js"));
26435
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-BMDUgpnw.js"));
26419
26436
  const useYunpianCaptcha = () => {
26420
26437
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26421
26438
  const open = (config) => {
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-L-3SsSi7.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-CViAwZ_N.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-L-3SsSi7.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-CViAwZ_N.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.57",
3
+ "version": "1.12.15-beta.59",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { z as useLayoutConfig } from "./index-L-3SsSi7.js";
1
+ import { z as useLayoutConfig } from "./index-CViAwZ_N.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;
@@ -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, 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, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-L-3SsSi7.js";
3
- import { t as transWebUrl } from "./transWebUrl-Cx9ZRI5m.js";
2
+ 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, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-CViAwZ_N.js";
3
+ import { t as transWebUrl } from "./transWebUrl-BXVaiY4x.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";