vue-layout-gitcode 1.3.31 → 1.3.33

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-BA1ulOF1.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-TONtEkcx.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-BA1ulOF1.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-BA1ulOF1.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-BA1ulOF1.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-TONtEkcx.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-BA1ulOF1.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-BA1ulOF1.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-BA1ulOF1.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]" };
@@ -16921,6 +16921,9 @@ 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"] = "侧边栏按钮_点击";
16925
+ ASIDE_MENU_REPO2["STICKYNOTICECLICK"] = "吸顶公告_点击";
16926
+ ASIDE_MENU_REPO2["STICKYNOTICEEXPO"] = "吸顶公告_曝光";
16924
16927
  return ASIDE_MENU_REPO2;
16925
16928
  })(ASIDE_MENU_REPO || {});
16926
16929
  var TOPIC_TYPE = /* @__PURE__ */ ((TOPIC_TYPE2) => {
@@ -17899,13 +17902,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17899
17902
  setup(__props) {
17900
17903
  var _a;
17901
17904
  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"));
17905
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DHnXsfEX.js"));
17906
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-D53P1UaY.js"));
17907
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-8ZRemABw.js"));
17908
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DOuOKq5h.js"));
17909
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BITn6S9n.js"));
17910
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BuLMFKYa.js"));
17911
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D23_7aA5.js"));
17909
17912
  const props = __props;
17910
17913
  const repoInfo = inject("repoInfo");
17911
17914
  const orgInfo = inject("orgInfo");
@@ -18505,7 +18508,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18505
18508
  }
18506
18509
  });
18507
18510
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18508
- const NoticeModal = defineAsyncComponent(() => import("./notice-C_JvKN1x.js"));
18511
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DaBY-8-F.js"));
18509
18512
  function clearNotice() {
18510
18513
  if (localStorage$2.getItem("validator_email")) {
18511
18514
  localStorage$2.removeItem("validator_email");
@@ -18666,6 +18669,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18666
18669
  }
18667
18670
  return false;
18668
18671
  });
18672
+ const handleHamburgerClick = () => {
18673
+ emitEvent("toggleAsideMenuByHamburger");
18674
+ useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
18675
+ };
18669
18676
  const handleLogin = (type) => {
18670
18677
  emitEvent("login", { type, triggerType: "主动注册", loginTriggerSource: type === "login" ? "toolbar_login" : "" });
18671
18678
  if (type === "register") {
@@ -18721,10 +18728,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18721
18728
  } : {};
18722
18729
  });
18723
18730
  const handleStickyNoticeClick = () => {
18731
+ useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.STICKYNOTICECLICK });
18724
18732
  if (props.bgConfig.detail_top_url) {
18725
18733
  window.open(props.bgConfig.detail_top_url, "_blank");
18726
18734
  }
18727
18735
  };
18736
+ const handleStickyNoticeExpo = (type) => {
18737
+ useReport2(REPO_EVENT.SHOW, { module_name: ASIDE_MENU_REPO.STICKYNOTICEEXPO });
18738
+ };
18728
18739
  const handleHeaderClick = (e) => {
18729
18740
  console.log("handleHeaderClick", e);
18730
18741
  if (!e.target.classList.contains("allow-click-stop")) {
@@ -18812,7 +18823,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18812
18823
  ref_key: "headerRef",
18813
18824
  ref: headerRef
18814
18825
  }, [
18815
- isShowStickyNoticeByClose.value ? (openBlock(), createElementBlock("div", {
18826
+ isShowStickyNoticeByClose.value ? withDirectives((openBlock(), createElementBlock("div", {
18816
18827
  key: 0,
18817
18828
  class: "sticky-notice w-full cursor-pointer",
18818
18829
  style: normalizeStyle(stickyNoticeStyle.value),
@@ -18823,7 +18834,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18823
18834
  name: "gt-close",
18824
18835
  onClick: withModifiers(handleCloseStickyNotice, ["stop"])
18825
18836
  })
18826
- ], 4)) : createCommentVNode("", true),
18837
+ ], 4)), [
18838
+ [unref(vElementExposure), { trigger: (type) => handleStickyNoticeExpo() }]
18839
+ ]) : createCommentVNode("", true),
18827
18840
  withDirectives((openBlock(), createElementBlock("div", {
18828
18841
  class: normalizeClass(["g-toolbar w-full overflow-hidden bg-[var(--theme-default-bg)] allow-click-stop", [isHome.value && showHeaderShadow.value ? "head-shadow" : "", _ctx.headerBorder ? "oldBorder" : "", headerClassName.value, isIndexHead.value && !showHeaderShadow.value ? "g-toolbar-index-head" : ""]]),
18829
18842
  style: normalizeStyle(detailBgStyle.value),
@@ -18833,13 +18846,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18833
18846
  class: normalizeClass(["g-toolbar-left items-center allow-click-stop", { "flex-[1] min-w-0": !inAIHub.value }])
18834
18847
  }, [
18835
18848
  createElementVNode("div", {
18836
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
18849
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
18837
18850
  }, ["stop"])),
18838
18851
  class: "flex flex-center gap-[12px] g-header-ailog"
18839
18852
  }, [
18840
18853
  isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
18841
18854
  key: 0,
18842
- onClick: _cache[0] || (_cache[0] = ($event) => unref(emitEvent)("toggleAsideMenuByHamburger")),
18855
+ onClick: handleHamburgerClick,
18843
18856
  name: "gt-hamburger",
18844
18857
  size: "24px",
18845
18858
  class: "cursor-pointer hover:!text-[var(--theme-stress-text)] g-toolbar-left-asideicon",
@@ -18868,8 +18881,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18868
18881
  orgProps: (_b = _ctx.headerCustomProps) == null ? void 0 : _b.orgProps,
18869
18882
  repoProps: (_c = _ctx.headerCustomProps) == null ? void 0 : _c.repoProps,
18870
18883
  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"))
18884
+ onFollowDevCommunity: _cache[1] || (_cache[1] = ($event) => emit("followDevCommunity", $event)),
18885
+ onFollowUser: _cache[2] || (_cache[2] = ($event) => emit("followUser"))
18873
18886
  }, null, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
18874
18887
  ], 2)) : createCommentVNode("", true)
18875
18888
  ], 2),
@@ -18892,7 +18905,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18892
18905
  unref(isMobile) ? (openBlock(), createElementBlock("section", {
18893
18906
  key: 0,
18894
18907
  class: "app-login-warp border-none login-icon",
18895
- onClick: _cache[4] || (_cache[4] = ($event) => handleLogin("login"))
18908
+ onClick: _cache[3] || (_cache[3] = ($event) => handleLogin("login"))
18896
18909
  }, [
18897
18910
  createVNode(GIcon, {
18898
18911
  name: "gt-line-NotLoggedIn",
@@ -18904,7 +18917,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18904
18917
  createVNode(unref(Button), {
18905
18918
  variant: "solid",
18906
18919
  color: "primary",
18907
- onClick: _cache[5] || (_cache[5] = withModifiers(($event) => handleLogin("login"), ["stop"]))
18920
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => handleLogin("login"), ["stop"]))
18908
18921
  }, {
18909
18922
  default: withCtx(() => [
18910
18923
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.login")), 1)
@@ -18912,7 +18925,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18912
18925
  _: 1
18913
18926
  }),
18914
18927
  createVNode(unref(Button), {
18915
- onClick: _cache[6] || (_cache[6] = withModifiers(($event) => handleLogin("register"), ["stop"])),
18928
+ onClick: _cache[5] || (_cache[5] = withModifiers(($event) => handleLogin("register"), ["stop"])),
18916
18929
  class: "min-w-[64px]"
18917
18930
  }, {
18918
18931
  default: withCtx(() => [
@@ -25153,7 +25166,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25153
25166
  }
25154
25167
  });
25155
25168
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25156
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CEqKIaAc.js"));
25169
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-v128fXSV.js"));
25157
25170
  const useSlidCaptcha = () => {
25158
25171
  const { mount, unMount } = usePopup("slid-captcha-popup");
25159
25172
  const open = (config) => {
@@ -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-BA1ulOF1.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-BA1ulOF1.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
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-BA1ulOF1.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-BA1ulOF1.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.33",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",