vue-layout-gitcode 1.9.12 → 1.9.13

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-C_eD11Q6.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-SyhYqBGO.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CToTcuTi.js";
7
- import "./transWebUrl-CGTVpVoX.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CvJBISFe.js";
7
+ import "./transWebUrl-CstIlsYO.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, w as useLayoutConfig, x as ThemeType, y as currentTheme, g as LANG_ZH, z as LANG_EN, q as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-C_eD11Q6.js";
2
+ import { a as i18n, w as useLayoutConfig, x as ThemeType, y as currentTheme, g as LANG_ZH, z as LANG_EN, q as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-SyhYqBGO.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, w as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-C_eD11Q6.js";
2
+ import { a as i18n, w as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-SyhYqBGO.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CGTVpVoX.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CstIlsYO.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, w as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-C_eD11Q6.js";
2
+ import { a as i18n, w as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-SyhYqBGO.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CGTVpVoX.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CstIlsYO.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-C_eD11Q6.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-SyhYqBGO.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-C_eD11Q6.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-SyhYqBGO.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-C_eD11Q6.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-SyhYqBGO.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-CToTcuTi.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-C_eD11Q6.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CvJBISFe.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-SyhYqBGO.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-C_eD11Q6.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-SyhYqBGO.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 } from "./index-C_eD11Q6.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-SyhYqBGO.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]" };
@@ -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, q as getLocaleLang, g as LANG_ZH, _ as _export_sfc } from "./index-C_eD11Q6.js";
11
+ import { a as i18n, j as usePageResize, q as getLocaleLang, g as LANG_ZH, _ as _export_sfc } from "./index-SyhYqBGO.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { q as getLocaleLang, g as LANG_ZH, w as useLayoutConfig, _ as _export_sfc } from "./index-C_eD11Q6.js";
2
+ import { q as getLocaleLang, g as LANG_ZH, w as useLayoutConfig, _ as _export_sfc } from "./index-SyhYqBGO.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:";
@@ -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 { t as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$b, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C_eD11Q6.js";
4
- import { t as transWebUrl } from "./transWebUrl-CGTVpVoX.js";
3
+ import { t as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$b, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-SyhYqBGO.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CstIlsYO.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";
@@ -7922,7 +7922,8 @@ const gitCodeLayout$1 = {
7922
7922
  },
7923
7923
  growthCenter: {
7924
7924
  signIn: "签到",
7925
- receive: "领福利"
7925
+ receive: "领福利",
7926
+ invite: "邀请"
7926
7927
  }
7927
7928
  };
7928
7929
  const zh = {
@@ -8225,7 +8226,8 @@ const gitCodeLayout = {
8225
8226
  },
8226
8227
  growthCenter: {
8227
8228
  signIn: "Sign in",
8228
- receive: "Benefits‌"
8229
+ receive: "Benefits‌",
8230
+ invite: "Invite"
8229
8231
  }
8230
8232
  };
8231
8233
  const en$1 = {
@@ -11101,59 +11103,58 @@ const proxyService = (params, customConfigs) => {
11101
11103
  };
11102
11104
  const _hoisted_1$v = { class: "home-nav-right" };
11103
11105
  const _hoisted_2$k = { class: "home-nav-item" };
11104
- const _hoisted_3$h = {
11105
- key: 0,
11106
- class: "tooltip-sign"
11107
- };
11106
+ const _hoisted_3$h = { class: "tooltip-sign" };
11108
11107
  const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
11109
11108
  const _hoisted_5$a = { class: "home-nav-text" };
11110
- const _hoisted_6$9 = {
11109
+ const _hoisted_6$9 = { class: "home-nav-tooltip-wrapper" };
11110
+ const _hoisted_7$6 = { class: "home-nav-text" };
11111
+ const _hoisted_8$6 = {
11111
11112
  key: 1,
11112
11113
  class: "tools-list"
11113
11114
  };
11114
- const _hoisted_7$6 = { class: "home-nav-tooltip-wrapper" };
11115
- const _hoisted_8$6 = { class: "home-nav-text" };
11116
- const _hoisted_9$4 = { class: "text-[var(--theme-placeholder)] text-[10px]" };
11117
- const _hoisted_10$4 = { class: "qrcode-wrapper" };
11118
- const _hoisted_11$4 = { class: "pl-[8px]" };
11119
- const _hoisted_12$4 = { class: "tools-list-item" };
11120
- const _hoisted_13$2 = { class: "g-card px-5 pt-4 pb-5 w-[410px]" };
11121
- const _hoisted_14$2 = {
11115
+ const _hoisted_9$4 = { class: "home-nav-tooltip-wrapper" };
11116
+ const _hoisted_10$4 = { class: "home-nav-text" };
11117
+ const _hoisted_11$4 = { class: "text-[var(--theme-placeholder)] text-[10px]" };
11118
+ const _hoisted_12$4 = { class: "qrcode-wrapper" };
11119
+ const _hoisted_13$2 = { class: "pl-[8px]" };
11120
+ const _hoisted_14$2 = { class: "tools-list-item" };
11121
+ const _hoisted_15$2 = { class: "g-card px-5 pt-4 pb-5 w-[410px]" };
11122
+ const _hoisted_16$2 = {
11122
11123
  key: 0,
11123
11124
  class: "opinion-box"
11124
11125
  };
11125
- const _hoisted_15$2 = { class: "tab-step" };
11126
- const _hoisted_16$2 = ["onClick"];
11127
- const _hoisted_17$2 = {
11126
+ const _hoisted_17$2 = { class: "tab-step" };
11127
+ const _hoisted_18$2 = ["onClick"];
11128
+ const _hoisted_19$2 = {
11128
11129
  key: 0,
11129
11130
  class: "rate relative overflow-hidden"
11130
11131
  };
11131
- const _hoisted_18$2 = {
11132
+ const _hoisted_20$2 = {
11132
11133
  key: 0,
11133
11134
  class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
11134
11135
  };
11135
- const _hoisted_19$2 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
11136
- const _hoisted_20$2 = { class: "flex gap-1 items-center mt-3" };
11137
- const _hoisted_21$2 = ["onMouseover", "onClick"];
11138
- const _hoisted_22$2 = {
11136
+ const _hoisted_21$2 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
11137
+ const _hoisted_22$2 = { class: "flex gap-1 items-center mt-3" };
11138
+ const _hoisted_23$1 = ["onMouseover", "onClick"];
11139
+ const _hoisted_24$1 = {
11139
11140
  key: 1,
11140
11141
  class: "Opinion relative overflow-hidden"
11141
11142
  };
11142
- const _hoisted_23$1 = {
11143
+ const _hoisted_25$1 = {
11143
11144
  key: 0,
11144
11145
  class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
11145
11146
  };
11146
- const _hoisted_24$1 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
11147
- const _hoisted_25$1 = { class: "mt-3" };
11148
- const _hoisted_26$1 = {
11147
+ const _hoisted_26$1 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
11148
+ const _hoisted_27$1 = { class: "mt-3" };
11149
+ const _hoisted_28$1 = {
11149
11150
  key: 1,
11150
11151
  class: "finish flex items-center"
11151
11152
  };
11152
- const _hoisted_27$1 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
11153
- const _hoisted_28$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
11154
- const _hoisted_29$1 = { class: "home-nav-item collapse-tool" };
11155
- const _hoisted_30$1 = { class: "home-nav-item" };
11156
- const _hoisted_31$1 = ["src", "alt"];
11153
+ const _hoisted_29$1 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
11154
+ const _hoisted_30$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
11155
+ const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
11156
+ const _hoisted_32$1 = { class: "home-nav-item" };
11157
+ const _hoisted_33$1 = ["src", "alt"];
11157
11158
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
11158
11159
  __name: "index",
11159
11160
  props: {
@@ -11172,7 +11173,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11172
11173
  provide("globalStore", computed(() => props.globalStore));
11173
11174
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
11174
11175
  provide("useReport", useReport2);
11175
- const isSignIn = computed(() => {
11176
+ computed(() => {
11176
11177
  return props.globalStore.isSignIn;
11177
11178
  });
11178
11179
  const visibleItems = computed(() => {
@@ -11206,6 +11207,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11206
11207
  }
11207
11208
  emits("toggle-growth-center");
11208
11209
  };
11210
+ const handleInvite = () => {
11211
+ window.open("https://gitcode.com/setting/points?type=invite", "_blank");
11212
+ };
11209
11213
  const showDesk = () => {
11210
11214
  if (window.ud) {
11211
11215
  window.ud("showPanel");
@@ -11384,43 +11388,68 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11384
11388
  })
11385
11389
  ])) : createCommentVNode("", true),
11386
11390
  createElementVNode("div", _hoisted_1$v, [
11387
- isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createBlock(unref(Tooltip), {
11388
- key: 0,
11391
+ createVNode(unref(Tooltip), {
11389
11392
  position: "left",
11390
11393
  "overlay-class": "tools-tag-tooltip"
11391
11394
  }, {
11392
11395
  content: withCtx(() => [
11393
11396
  createElementVNode("div", _hoisted_4$e, [
11394
- createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11397
+ createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
11395
11398
  ])
11396
11399
  ]),
11397
11400
  default: withCtx(() => [
11398
11401
  createElementVNode("div", {
11399
11402
  class: "home-nav-link tools-questionnaire",
11400
- onClick: toggleGrowthCenter
11403
+ onClick: handleInvite
11401
11404
  }, [
11402
11405
  createElementVNode("div", _hoisted_2$k, [
11403
11406
  _cache[5] || (_cache[5] = createElementVNode("img", {
11404
11407
  class: "common-icon inline-block h-[20px] w-[20px]",
11405
- src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
11408
+ src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
11406
11409
  alt: ""
11407
11410
  }, null, -1)),
11408
- !_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
11411
+ createElementVNode("div", _hoisted_3$h, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
11409
11412
  ])
11410
11413
  ])
11411
11414
  ]),
11412
11415
  _: 1
11416
+ }),
11417
+ isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createBlock(unref(Tooltip), {
11418
+ key: 0,
11419
+ position: "left",
11420
+ "overlay-class": "tools-tag-tooltip"
11421
+ }, {
11422
+ content: withCtx(() => [
11423
+ createElementVNode("div", _hoisted_6$9, [
11424
+ createElementVNode("div", _hoisted_7$6, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11425
+ ])
11426
+ ]),
11427
+ default: withCtx(() => [
11428
+ createElementVNode("div", {
11429
+ class: "home-nav-link tools-questionnaire",
11430
+ onClick: toggleGrowthCenter
11431
+ }, [..._cache[6] || (_cache[6] = [
11432
+ createElementVNode("div", { class: "home-nav-item" }, [
11433
+ createElementVNode("img", {
11434
+ class: "common-icon inline-block h-[20px] w-[20px]",
11435
+ src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
11436
+ alt: ""
11437
+ })
11438
+ ], -1)
11439
+ ])])
11440
+ ]),
11441
+ _: 1
11413
11442
  })) : createCommentVNode("", true),
11414
- isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
11443
+ isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_8$6, [
11415
11444
  createVNode(unref(Tooltip), {
11416
11445
  position: "left",
11417
11446
  "overlay-class": "tools-tag-tooltip"
11418
11447
  }, {
11419
11448
  content: withCtx(() => [
11420
- createElementVNode("div", _hoisted_7$6, [
11421
- createElementVNode("div", _hoisted_8$6, [
11449
+ createElementVNode("div", _hoisted_9$4, [
11450
+ createElementVNode("div", _hoisted_10$4, [
11422
11451
  createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
11423
- createElementVNode("p", _hoisted_9$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
11452
+ createElementVNode("p", _hoisted_11$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
11424
11453
  ])
11425
11454
  ])
11426
11455
  ]),
@@ -11430,7 +11459,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11430
11459
  id: "gitcode-desk-btn",
11431
11460
  class: "home-nav-item kefu",
11432
11461
  onClick: showDesk
11433
- }, [..._cache[6] || (_cache[6] = [
11462
+ }, [..._cache[7] || (_cache[7] = [
11434
11463
  createElementVNode("img", {
11435
11464
  class: "inline-block h-[20px] w-[20px]",
11436
11465
  src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
@@ -11450,16 +11479,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11450
11479
  "overlay-class": "tools-tag-tooltip"
11451
11480
  }, {
11452
11481
  content: withCtx(() => [
11453
- createElementVNode("div", _hoisted_10$4, [
11454
- createElementVNode("div", _hoisted_11$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
11455
- _cache[7] || (_cache[7] = createElementVNode("img", {
11482
+ createElementVNode("div", _hoisted_12$4, [
11483
+ createElementVNode("div", _hoisted_13$2, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
11484
+ _cache[8] || (_cache[8] = createElementVNode("img", {
11456
11485
  class: "qrcode",
11457
11486
  src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
11458
11487
  }, null, -1))
11459
11488
  ])
11460
11489
  ]),
11461
11490
  default: withCtx(() => [
11462
- _cache[8] || (_cache[8] = createElementVNode("a", { class: "home-nav-link tools-list-item" }, [
11491
+ _cache[9] || (_cache[9] = createElementVNode("a", { class: "home-nav-link tools-list-item" }, [
11463
11492
  createElementVNode("div", { class: "home-nav-item" }, [
11464
11493
  createElementVNode("img", {
11465
11494
  class: "common-icon inline-block h-[20px] w-[20px]",
@@ -11485,28 +11514,28 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11485
11514
  "is-open": npsPopVisible.value
11486
11515
  }, {
11487
11516
  content: withCtx(() => [
11488
- createElementVNode("div", _hoisted_13$2, [
11489
- process2.value ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
11490
- createElementVNode("div", _hoisted_15$2, [
11517
+ createElementVNode("div", _hoisted_15$2, [
11518
+ process2.value ? (openBlock(), createElementBlock("div", _hoisted_16$2, [
11519
+ createElementVNode("div", _hoisted_17$2, [
11491
11520
  (openBlock(), createElementBlock(Fragment, null, renderList(opinionStepList, (item) => {
11492
11521
  return createElementVNode("div", {
11493
11522
  key: item.index,
11494
11523
  class: normalizeClass(["tab-item w-8 h-1 mr-1 cursor-pointer", opinionStep.value === item.index ? "bg-[var(--theme-home-step-active-bg)]" : "bg-[var(--theme-home-step-bg)]"]),
11495
11524
  onClick: ($event) => swTab(item)
11496
- }, [..._cache[10] || (_cache[10] = [
11525
+ }, [..._cache[11] || (_cache[11] = [
11497
11526
  createElementVNode("span", { class: "cursor-pointer" }, null, -1)
11498
- ])], 10, _hoisted_16$2);
11527
+ ])], 10, _hoisted_18$2);
11499
11528
  }), 64))
11500
11529
  ]),
11501
11530
  createElementVNode("div", null, [
11502
- opinionStep.value === 0 ? (openBlock(), createElementBlock("div", _hoisted_17$2, [
11503
- rateActive.value !== null || rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_18$2, [
11531
+ opinionStep.value === 0 ? (openBlock(), createElementBlock("div", _hoisted_19$2, [
11532
+ rateActive.value !== null || rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_20$2, [
11504
11533
  createElementVNode("span", null, toDisplayString$1(rateIcon[rateActive.value === null ? rateNow.value : rateActive.value].title), 1)
11505
11534
  ])) : createCommentVNode("", true),
11506
- createElementVNode("div", _hoisted_19$2, [
11535
+ createElementVNode("div", _hoisted_21$2, [
11507
11536
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.rateExperience")), 1)
11508
11537
  ]),
11509
- createElementVNode("div", _hoisted_20$2, [
11538
+ createElementVNode("div", _hoisted_22$2, [
11510
11539
  (openBlock(), createElementBlock(Fragment, null, renderList(rateIcon, (ico) => {
11511
11540
  return createElementVNode("div", {
11512
11541
  key: ico.name,
@@ -11519,18 +11548,18 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11519
11548
  name: ico.name,
11520
11549
  size: "24px"
11521
11550
  }, null, 8, ["name"])
11522
- ], 42, _hoisted_21$2);
11551
+ ], 42, _hoisted_23$1);
11523
11552
  }), 64))
11524
11553
  ])
11525
11554
  ])) : createCommentVNode("", true),
11526
- opinionStep.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_22$2, [
11527
- rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
11555
+ opinionStep.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_24$1, [
11556
+ rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
11528
11557
  createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
11529
11558
  ])) : createCommentVNode("", true),
11530
- createElementVNode("div", _hoisted_24$1, [
11559
+ createElementVNode("div", _hoisted_26$1, [
11531
11560
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
11532
11561
  ]),
11533
- createElementVNode("div", _hoisted_25$1, [
11562
+ createElementVNode("div", _hoisted_27$1, [
11534
11563
  createVNode(unref(Textarea), {
11535
11564
  modelValue: opinionText.value,
11536
11565
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => opinionText.value = $event),
@@ -11554,22 +11583,22 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11554
11583
  ])
11555
11584
  ])) : createCommentVNode("", true)
11556
11585
  ])
11557
- ])) : (openBlock(), createElementBlock("div", _hoisted_26$1, [
11558
- createElementVNode("div", _hoisted_27$1, [
11586
+ ])) : (openBlock(), createElementBlock("div", _hoisted_28$1, [
11587
+ createElementVNode("div", _hoisted_29$1, [
11559
11588
  createVNode(GIcon, {
11560
11589
  name: "gt-success",
11561
11590
  size: "14px",
11562
11591
  color: "#fff"
11563
11592
  })
11564
11593
  ]),
11565
- createElementVNode("div", _hoisted_28$1, [
11594
+ createElementVNode("div", _hoisted_30$1, [
11566
11595
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
11567
11596
  ])
11568
11597
  ]))
11569
11598
  ])
11570
11599
  ]),
11571
11600
  default: withCtx(() => [
11572
- createElementVNode("div", _hoisted_12$4, [
11601
+ createElementVNode("div", _hoisted_14$2, [
11573
11602
  createVNode(unref(Popover), {
11574
11603
  class: "custom-popover-feedback",
11575
11604
  position: ["left"],
@@ -11577,7 +11606,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11577
11606
  trigger: "hover",
11578
11607
  offset: { mainAxis: 22, crossAxis: 0 }
11579
11608
  }, {
11580
- default: withCtx(() => [..._cache[9] || (_cache[9] = [
11609
+ default: withCtx(() => [..._cache[10] || (_cache[10] = [
11581
11610
  createElementVNode("div", { class: "home-nav-item" }, [
11582
11611
  createElementVNode("img", {
11583
11612
  class: "common-icon inline-block h-[20px] w-[20px]",
@@ -11597,7 +11626,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11597
11626
  ]),
11598
11627
  _: 1
11599
11628
  }, 8, ["offset", "is-open"])) : createCommentVNode("", true),
11600
- _cache[11] || (_cache[11] = createElementVNode("div", { class: "divider" }, null, -1)),
11629
+ _cache[12] || (_cache[12] = createElementVNode("div", { class: "divider" }, null, -1)),
11601
11630
  createVNode(unref(Popover), {
11602
11631
  position: ["left"],
11603
11632
  content: "收起",
@@ -11609,7 +11638,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11609
11638
  class: "tools-list-item",
11610
11639
  onClick: _cache[3] || (_cache[3] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
11611
11640
  }, [
11612
- createElementVNode("div", _hoisted_29$1, [
11641
+ createElementVNode("div", _hoisted_31$1, [
11613
11642
  createVNode(GIcon, {
11614
11643
  name: "gt-plane-skip",
11615
11644
  size: "18px"
@@ -11628,7 +11657,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11628
11657
  onClick: _cache[4] || (_cache[4] = //@ts-ignore
11629
11658
  (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
11630
11659
  }, [
11631
- createElementVNode("div", _hoisted_30$1, [
11660
+ createElementVNode("div", _hoisted_32$1, [
11632
11661
  createVNode(GIcon, {
11633
11662
  name: "gt-plane-Topping1",
11634
11663
  size: "20px"
@@ -11651,7 +11680,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11651
11680
  width: "200",
11652
11681
  src: activeAdItem.value.imgUrl,
11653
11682
  alt: activeAdItem.value.title
11654
- }, null, 8, _hoisted_31$1)
11683
+ }, null, 8, _hoisted_33$1)
11655
11684
  ])) : createCommentVNode("", true)
11656
11685
  ])
11657
11686
  ], 64);
@@ -16979,13 +17008,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16979
17008
  var _a;
16980
17009
  const layoutConfig2 = useLayoutConfig();
16981
17010
  const { t: $t } = i18n.global;
16982
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CC1U8n2c.js"));
16983
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-PqqwHJ_R.js"));
16984
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D6QuN03U.js"));
16985
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CkZPNETS.js"));
16986
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-WFd6Bvvi.js"));
16987
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-6sPvmEwI.js"));
16988
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BY3zQJC4.js"));
17011
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CQ565fsv.js"));
17012
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-yHSL8PUZ.js"));
17013
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CHGkULUa.js"));
17014
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BeDtyENU.js"));
17015
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B3cENXb-.js"));
17016
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-PAbDfeVe.js"));
17017
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-bjhRONpI.js"));
16989
17018
  const props = __props;
16990
17019
  const repoInfo = inject("repoInfo");
16991
17020
  const orgInfo = inject("orgInfo");
@@ -17639,7 +17668,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17639
17668
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17640
17669
  }
17641
17670
  };
17642
- const NoticeModal = defineAsyncComponent(() => import("./notice-MIeZBhwZ.js"));
17671
+ const NoticeModal = defineAsyncComponent(() => import("./notice-UywZ_Xg5.js"));
17643
17672
  function clearNotice() {
17644
17673
  if (localStorage$2.getItem("validator_email")) {
17645
17674
  localStorage$2.removeItem("validator_email");
@@ -18393,9 +18422,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18393
18422
  const layoutConfig2 = useLayoutConfig();
18394
18423
  const { t: t2 } = i18n.global;
18395
18424
  const route = useRoute();
18396
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CvXg3E1J.js"));
18397
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-pBrpfY8F.js"));
18398
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-jxcfs9R_.js"));
18425
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-dtb3d8dp.js"));
18426
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-79rtJSxR.js"));
18427
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-C28miRMf.js"));
18399
18428
  const props = __props;
18400
18429
  console.log("slotKeys", props.slotKeys);
18401
18430
  console.log("props", props);
@@ -24148,7 +24177,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24148
24177
  }
24149
24178
  });
24150
24179
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24151
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Dgn4vwI3.js"));
24180
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CSE15nUM.js"));
24152
24181
  const useSlidCaptcha = () => {
24153
24182
  const { mount, unMount } = usePopup("slid-captcha-popup");
24154
24183
  const open = (config) => {
@@ -24167,7 +24196,7 @@ const useSlidCaptcha = () => {
24167
24196
  close: unMount
24168
24197
  };
24169
24198
  };
24170
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-Dp8ofkEb.js"));
24199
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-7kY0e4wb.js"));
24171
24200
  const useYunpianCaptcha = () => {
24172
24201
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24173
24202
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J, K, O, I, S, H, y, Q, N, P, M } from "./index-C_eD11Q6.js";
1
+ import { J, K, O, I, S, H, y, Q, N, P, M } from "./index-SyhYqBGO.js";
2
2
  export {
3
3
  J as GitCodeAside,
4
4
  K 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-C_eD11Q6.js";
2
+ import { i as isPhone, u as useModel } from "./index-SyhYqBGO.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.9.12",
3
+ "version": "1.9.13",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { w as useLayoutConfig } from "./index-C_eD11Q6.js";
1
+ import { w as useLayoutConfig } from "./index-SyhYqBGO.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;