vue-layout-gitcode 1.3.31 → 1.3.32

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,8 +1,8 @@
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-viA1GlGo.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-980SABWQ.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-DmjsOrQr.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BrhmB1VC.js";
6
6
  import "vue-devui-lal/tooltip";
7
7
  import "vue-devui-lal/tooltip/style.css";
8
8
  import "vue-router";
@@ -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-viA1GlGo.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DmjsOrQr.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-viA1GlGo.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DmjsOrQr.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-viA1GlGo.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-DmjsOrQr.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, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-980SABWQ.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-viA1GlGo.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-BrhmB1VC.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-DmjsOrQr.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-viA1GlGo.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DmjsOrQr.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-viA1GlGo.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-DmjsOrQr.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]" };
@@ -1,5 +1,5 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
2
- import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-viA1GlGo.js";
2
+ import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DmjsOrQr.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { x as useLayoutConfig, _ as _export_sfc } from "./index-viA1GlGo.js";
3
+ import { x as useLayoutConfig, _ as _export_sfc } from "./index-DmjsOrQr.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -16921,6 +16921,7 @@ var ASIDE_MENU_REPO = /* @__PURE__ */ ((ASIDE_MENU_REPO2) => {
16921
16921
  ASIDE_MENU_REPO2["CHATBOTCLICK"] = "头部天启入口_点击";
16922
16922
  ASIDE_MENU_REPO2["TOOLBAR"] = "toolbar_点击";
16923
16923
  ASIDE_MENU_REPO2["TOOLBAREXPO"] = "toolbar_曝光";
16924
+ ASIDE_MENU_REPO2["ASIDEBTNCLICK"] = "侧边栏按钮_点击";
16924
16925
  return ASIDE_MENU_REPO2;
16925
16926
  })(ASIDE_MENU_REPO || {});
16926
16927
  var TOPIC_TYPE = /* @__PURE__ */ ((TOPIC_TYPE2) => {
@@ -17899,13 +17900,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17899
17900
  setup(__props) {
17900
17901
  var _a;
17901
17902
  const { t: $t } = i18n.global;
17902
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-u121f-2-.js"));
17903
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cm1yvZoZ.js"));
17904
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Es9xsyE9.js"));
17905
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C7ULqFMT.js"));
17906
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CHYv_xQw.js"));
17907
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Br3ULAmO.js"));
17908
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DIGFkjm8.js"));
17903
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-xOicdZsi.js"));
17904
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DVlU0Q0G.js"));
17905
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B3-NOYSV.js"));
17906
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-ROCCTlzW.js"));
17907
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DquaSEAv.js"));
17908
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DxWd8MSn.js"));
17909
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CKwuT009.js"));
17909
17910
  const props = __props;
17910
17911
  const repoInfo = inject("repoInfo");
17911
17912
  const orgInfo = inject("orgInfo");
@@ -18505,7 +18506,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18505
18506
  }
18506
18507
  });
18507
18508
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18508
- const NoticeModal = defineAsyncComponent(() => import("./notice-C_JvKN1x.js"));
18509
+ const NoticeModal = defineAsyncComponent(() => import("./notice-Dmz7Z0DC.js"));
18509
18510
  function clearNotice() {
18510
18511
  if (localStorage$2.getItem("validator_email")) {
18511
18512
  localStorage$2.removeItem("validator_email");
@@ -18666,6 +18667,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18666
18667
  }
18667
18668
  return false;
18668
18669
  });
18670
+ const handleHamburgerClick = () => {
18671
+ emitEvent("toggleAsideMenuByHamburger");
18672
+ useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
18673
+ };
18669
18674
  const handleLogin = (type) => {
18670
18675
  emitEvent("login", { type, triggerType: "主动注册", loginTriggerSource: type === "login" ? "toolbar_login" : "" });
18671
18676
  if (type === "register") {
@@ -18833,13 +18838,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18833
18838
  class: normalizeClass(["g-toolbar-left items-center allow-click-stop", { "flex-[1] min-w-0": !inAIHub.value }])
18834
18839
  }, [
18835
18840
  createElementVNode("div", {
18836
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
18841
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
18837
18842
  }, ["stop"])),
18838
18843
  class: "flex flex-center gap-[12px] g-header-ailog"
18839
18844
  }, [
18840
18845
  isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
18841
18846
  key: 0,
18842
- onClick: _cache[0] || (_cache[0] = ($event) => unref(emitEvent)("toggleAsideMenuByHamburger")),
18847
+ onClick: handleHamburgerClick,
18843
18848
  name: "gt-hamburger",
18844
18849
  size: "24px",
18845
18850
  class: "cursor-pointer hover:!text-[var(--theme-stress-text)] g-toolbar-left-asideicon",
@@ -18868,8 +18873,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18868
18873
  orgProps: (_b = _ctx.headerCustomProps) == null ? void 0 : _b.orgProps,
18869
18874
  repoProps: (_c = _ctx.headerCustomProps) == null ? void 0 : _c.repoProps,
18870
18875
  userProps: (_d = _ctx.headerCustomProps) == null ? void 0 : _d.userProps,
18871
- onFollowDevCommunity: _cache[2] || (_cache[2] = ($event) => emit("followDevCommunity", $event)),
18872
- onFollowUser: _cache[3] || (_cache[3] = ($event) => emit("followUser"))
18876
+ onFollowDevCommunity: _cache[1] || (_cache[1] = ($event) => emit("followDevCommunity", $event)),
18877
+ onFollowUser: _cache[2] || (_cache[2] = ($event) => emit("followUser"))
18873
18878
  }, null, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
18874
18879
  ], 2)) : createCommentVNode("", true)
18875
18880
  ], 2),
@@ -18892,7 +18897,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18892
18897
  unref(isMobile) ? (openBlock(), createElementBlock("section", {
18893
18898
  key: 0,
18894
18899
  class: "app-login-warp border-none login-icon",
18895
- onClick: _cache[4] || (_cache[4] = ($event) => handleLogin("login"))
18900
+ onClick: _cache[3] || (_cache[3] = ($event) => handleLogin("login"))
18896
18901
  }, [
18897
18902
  createVNode(GIcon, {
18898
18903
  name: "gt-line-NotLoggedIn",
@@ -18904,7 +18909,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18904
18909
  createVNode(unref(Button), {
18905
18910
  variant: "solid",
18906
18911
  color: "primary",
18907
- onClick: _cache[5] || (_cache[5] = withModifiers(($event) => handleLogin("login"), ["stop"]))
18912
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => handleLogin("login"), ["stop"]))
18908
18913
  }, {
18909
18914
  default: withCtx(() => [
18910
18915
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.login")), 1)
@@ -18912,7 +18917,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18912
18917
  _: 1
18913
18918
  }),
18914
18919
  createVNode(unref(Button), {
18915
- onClick: _cache[6] || (_cache[6] = withModifiers(($event) => handleLogin("register"), ["stop"])),
18920
+ onClick: _cache[5] || (_cache[5] = withModifiers(($event) => handleLogin("register"), ["stop"])),
18916
18921
  class: "min-w-[64px]"
18917
18922
  }, {
18918
18923
  default: withCtx(() => [
@@ -25153,7 +25158,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25153
25158
  }
25154
25159
  });
25155
25160
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25156
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CEqKIaAc.js"));
25161
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CH3g_5Xp.js"));
25157
25162
  const useSlidCaptcha = () => {
25158
25163
  const { mount, unMount } = usePopup("slid-captcha-popup");
25159
25164
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, B, F, z, S, y, H, J, D, I, C } from "./index-viA1GlGo.js";
1
+ import { A, B, F, z, S, y, H, J, D, I, C } from "./index-DmjsOrQr.js";
2
2
  export {
3
3
  A as GitCodeAside,
4
4
  B 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-viA1GlGo.js";
2
+ import { i as isPhone, u as useModel } from "./index-DmjsOrQr.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.3.31",
3
+ "version": "1.3.32",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",