vue-layout-gitcode 1.3.32 → 1.3.34
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.
- package/{GloabarSearch-B3-NOYSV.js → GloabarSearch-Dut1NjQ3.js} +2 -2
- package/{ProjectSearch-xOicdZsi.js → ProjectSearch-C4K2BdqI.js} +1 -1
- package/{SearchHistoryList-ROCCTlzW.js → SearchHistoryList-C2jtstq5.js} +1 -1
- package/{SearchPrefixTag-DxWd8MSn.js → SearchPrefixTag-Byii6fX6.js} +1 -1
- package/{SearchRecommed-CKwuT009.js → SearchRecommed-Dq3_WdaW.js} +2 -2
- package/{SearchScopeList-DquaSEAv.js → SearchScopeList-CldFimsf.js} +1 -1
- package/{UserSearch-DVlU0Q0G.js → UserSearch-Cl3hTf6e.js} +1 -1
- package/{index-DmjsOrQr.js → index-BMISejvU.js} +31 -16
- package/{index-BrhmB1VC.js → index-D2yttXfH.js} +1 -1
- package/{index-CH3g_5Xp.js → index-k9V8PYfj.js} +1 -1
- package/index.js +1 -1
- package/{notice-Dmz7Z0DC.js → notice-PG7L-qHk.js} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
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-BMISejvU.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-D2yttXfH.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BMISejvU.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BMISejvU.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-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-BMISejvU.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-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-D2yttXfH.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-BMISejvU.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BMISejvU.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon } from "./index-BMISejvU.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]" };
|
|
@@ -16905,6 +16905,7 @@ var REPO_MODULE = /* @__PURE__ */ ((REPO_MODULE2) => {
|
|
|
16905
16905
|
REPO_MODULE2["GROUP"] = "搜索结果_组织";
|
|
16906
16906
|
REPO_MODULE2["USER"] = "搜索结果_用户";
|
|
16907
16907
|
REPO_MODULE2["COMMIT"] = "搜索结果_commit";
|
|
16908
|
+
REPO_MODULE2["SEARCH_SUFFIX_CLICK"] = "搜索按钮点击";
|
|
16908
16909
|
return REPO_MODULE2;
|
|
16909
16910
|
})(REPO_MODULE || {});
|
|
16910
16911
|
var ASIDE_MENU_REPO = /* @__PURE__ */ ((ASIDE_MENU_REPO2) => {
|
|
@@ -16922,6 +16923,8 @@ var ASIDE_MENU_REPO = /* @__PURE__ */ ((ASIDE_MENU_REPO2) => {
|
|
|
16922
16923
|
ASIDE_MENU_REPO2["TOOLBAR"] = "toolbar_点击";
|
|
16923
16924
|
ASIDE_MENU_REPO2["TOOLBAREXPO"] = "toolbar_曝光";
|
|
16924
16925
|
ASIDE_MENU_REPO2["ASIDEBTNCLICK"] = "侧边栏按钮_点击";
|
|
16926
|
+
ASIDE_MENU_REPO2["STICKYNOTICECLICK"] = "吸顶公告_点击";
|
|
16927
|
+
ASIDE_MENU_REPO2["STICKYNOTICEEXPO"] = "吸顶公告_曝光";
|
|
16925
16928
|
return ASIDE_MENU_REPO2;
|
|
16926
16929
|
})(ASIDE_MENU_REPO || {});
|
|
16927
16930
|
var TOPIC_TYPE = /* @__PURE__ */ ((TOPIC_TYPE2) => {
|
|
@@ -17900,13 +17903,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17900
17903
|
setup(__props) {
|
|
17901
17904
|
var _a;
|
|
17902
17905
|
const { t: $t } = i18n.global;
|
|
17903
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17904
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17905
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17906
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17907
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17908
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17909
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17906
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C4K2BdqI.js"));
|
|
17907
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cl3hTf6e.js"));
|
|
17908
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Dut1NjQ3.js"));
|
|
17909
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C2jtstq5.js"));
|
|
17910
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CldFimsf.js"));
|
|
17911
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Byii6fX6.js"));
|
|
17912
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Dq3_WdaW.js"));
|
|
17910
17913
|
const props = __props;
|
|
17911
17914
|
const repoInfo = inject("repoInfo");
|
|
17912
17915
|
const orgInfo = inject("orgInfo");
|
|
@@ -18098,6 +18101,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18098
18101
|
}
|
|
18099
18102
|
}
|
|
18100
18103
|
};
|
|
18104
|
+
const handleSuffixClick = (type) => {
|
|
18105
|
+
useReport2(REPO_EVENT.CLICK, { module_name: REPO_MODULE.SEARCH_SUFFIX_CLICK });
|
|
18106
|
+
onSearch();
|
|
18107
|
+
};
|
|
18101
18108
|
const handleSearchMore = (type) => {
|
|
18102
18109
|
console.log(type);
|
|
18103
18110
|
searchParams.type = type;
|
|
@@ -18330,7 +18337,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18330
18337
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
18331
18338
|
!_ctx.inAIHub ? (openBlock(), createElementBlock("div", {
|
|
18332
18339
|
key: 0,
|
|
18333
|
-
class: normalizeClass([isFocus.value ? "focusSearch" : { "left-search": true }, Boolean(_ctx.isShowStickyNotice) ? "focusSearch-sticky-notice" : ""])
|
|
18340
|
+
class: normalizeClass([isFocus.value ? "focusSearch" : { "left-search": true }, Boolean(_ctx.isShowStickyNotice) ? "focusSearch-sticky-notice" : ""]),
|
|
18341
|
+
onClick: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
18342
|
+
}, ["stop"]))
|
|
18334
18343
|
}, [
|
|
18335
18344
|
withDirectives(createElementVNode("div", {
|
|
18336
18345
|
class: normalizeClass(["mark-search", searchDropDownVisible.value ? "mask-opacity-transition" : ""]),
|
|
@@ -18419,14 +18428,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18419
18428
|
createVNode(GIcon, {
|
|
18420
18429
|
name: "gt-search",
|
|
18421
18430
|
class: "g-header-search-icon",
|
|
18422
|
-
onClick: onInputClick
|
|
18431
|
+
onClick: withModifiers(onInputClick, ["stop"])
|
|
18423
18432
|
})
|
|
18424
18433
|
]),
|
|
18425
18434
|
showRecommendSearch.value ? (openBlock(), createElementBlock("div", {
|
|
18426
18435
|
key: 0,
|
|
18427
18436
|
class: normalizeClass(["g-header-search-recommend-placeholder z-[-1] absolute top-0 left-[44px] w-full h-full leading-[100%] text-[var(--theme-placeholder)]", { default: !isFocus.value, focus: isFocus.value }])
|
|
18428
18437
|
}, [
|
|
18429
|
-
_cache[
|
|
18438
|
+
_cache[8] || (_cache[8] = createElementVNode("div", { class: "absolute top-0 left-0 h-full flex items-center" }, "🔥", -1)),
|
|
18430
18439
|
(openBlock(true), createElementBlock(Fragment, null, renderList(searchHotWords.value, (item, index2) => {
|
|
18431
18440
|
return openBlock(), createElementBlock("div", {
|
|
18432
18441
|
class: normalizeClass(["g-header-search-recommend-item absolute top-0 left-[24px] h-full flex items-center", { fadeInUp: activeSearchKey.value === index2, fadeOutUp: activeSearchKey.value !== index2 }]),
|
|
@@ -18455,7 +18464,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18455
18464
|
isFocus.value ? (openBlock(), createElementBlock("div", {
|
|
18456
18465
|
key: 0,
|
|
18457
18466
|
class: "g-header-search-suffix",
|
|
18458
|
-
onClick:
|
|
18467
|
+
onClick: withModifiers(handleSuffixClick, ["stop"])
|
|
18459
18468
|
}, [
|
|
18460
18469
|
withDirectives(createVNode(GIcon, {
|
|
18461
18470
|
name: "gt-line-close",
|
|
@@ -18490,7 +18499,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18490
18499
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
18491
18500
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
18492
18501
|
modelValue: searchStr.value,
|
|
18493
|
-
"onUpdate:modelValue": _cache[
|
|
18502
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => searchStr.value = $event)
|
|
18494
18503
|
}, {
|
|
18495
18504
|
prefix: withCtx(() => [
|
|
18496
18505
|
createVNode(GIcon, {
|
|
@@ -18506,7 +18515,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18506
18515
|
}
|
|
18507
18516
|
});
|
|
18508
18517
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18509
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18518
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-PG7L-qHk.js"));
|
|
18510
18519
|
function clearNotice() {
|
|
18511
18520
|
if (localStorage$2.getItem("validator_email")) {
|
|
18512
18521
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18726,10 +18735,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18726
18735
|
} : {};
|
|
18727
18736
|
});
|
|
18728
18737
|
const handleStickyNoticeClick = () => {
|
|
18738
|
+
useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.STICKYNOTICECLICK });
|
|
18729
18739
|
if (props.bgConfig.detail_top_url) {
|
|
18730
18740
|
window.open(props.bgConfig.detail_top_url, "_blank");
|
|
18731
18741
|
}
|
|
18732
18742
|
};
|
|
18743
|
+
const handleStickyNoticeExpo = (type) => {
|
|
18744
|
+
useReport2(REPO_EVENT.SHOW, { module_name: ASIDE_MENU_REPO.STICKYNOTICEEXPO });
|
|
18745
|
+
};
|
|
18733
18746
|
const handleHeaderClick = (e) => {
|
|
18734
18747
|
console.log("handleHeaderClick", e);
|
|
18735
18748
|
if (!e.target.classList.contains("allow-click-stop")) {
|
|
@@ -18817,7 +18830,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18817
18830
|
ref_key: "headerRef",
|
|
18818
18831
|
ref: headerRef
|
|
18819
18832
|
}, [
|
|
18820
|
-
isShowStickyNoticeByClose.value ? (openBlock(), createElementBlock("div", {
|
|
18833
|
+
isShowStickyNoticeByClose.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
18821
18834
|
key: 0,
|
|
18822
18835
|
class: "sticky-notice w-full cursor-pointer",
|
|
18823
18836
|
style: normalizeStyle(stickyNoticeStyle.value),
|
|
@@ -18828,7 +18841,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18828
18841
|
name: "gt-close",
|
|
18829
18842
|
onClick: withModifiers(handleCloseStickyNotice, ["stop"])
|
|
18830
18843
|
})
|
|
18831
|
-
], 4))
|
|
18844
|
+
], 4)), [
|
|
18845
|
+
[unref(vElementExposure), { trigger: (type) => handleStickyNoticeExpo() }]
|
|
18846
|
+
]) : createCommentVNode("", true),
|
|
18832
18847
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
18833
18848
|
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" : ""]]),
|
|
18834
18849
|
style: normalizeStyle(detailBgStyle.value),
|
|
@@ -25158,7 +25173,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25158
25173
|
}
|
|
25159
25174
|
});
|
|
25160
25175
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25161
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25176
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-k9V8PYfj.js"));
|
|
25162
25177
|
const useSlidCaptcha = () => {
|
|
25163
25178
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25164
25179
|
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-
|
|
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-BMISejvU.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-
|
|
3
|
+
import { x as useLayoutConfig, _ as _export_sfc } from "./index-BMISejvU.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,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-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-BMISejvU.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";
|