vue-layout-gitcode 1.5.77 → 1.5.79
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-hNl2S4C8.js → GloabarSearch-BICFzKQT.js} +3 -3
- package/{MenuItem-DHFnT435.js → MenuItem-3Mk4f4KL.js} +1 -1
- package/{ProjectMenuList-Bh6frKzg.js → ProjectMenuList-bpl02-_f.js} +2 -2
- package/{ProjectMenuListV2-CXemRIPF.js → ProjectMenuListV2-BlsvgQfd.js} +2 -2
- package/{ProjectSearch-5T6n0gk2.js → ProjectSearch-mqTNEBNg.js} +1 -1
- package/{SearchHistoryList-lBuZr_3-.js → SearchHistoryList-DWkTcuro.js} +1 -1
- package/{SearchPrefixTag-CbG0A2LH.js → SearchPrefixTag-Bx1ms7y_.js} +1 -1
- package/{SearchRecommed-BBVxiMV2.js → SearchRecommed-2rWUzXDp.js} +3 -3
- package/{SearchScopeList-4GqO-s3t.js → SearchScopeList-CqCv7IK5.js} +1 -1
- package/{UserSearch-BIU0xVU2.js → UserSearch-D21vdZWx.js} +1 -1
- package/{index-DR20DILU.js → index-BXLGg-dX.js} +42 -14
- package/{index-D3oftwtg.js → index-CCxdfi96.js} +1 -1
- package/{index-BoyxnwkL.js → index-D1d3SzOQ.js} +2 -2
- package/index.js +1 -1
- package/{notice-y3rGtGTB.js → notice-DxPH5fZs.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-Cg5lKjfF.js → transWebUrl-CY61-F41.js} +1 -1
|
@@ -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-
|
|
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-BXLGg-dX.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
7
|
-
import "./transWebUrl-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-D1d3SzOQ.js";
|
|
7
|
+
import "./transWebUrl-CY61-F41.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 { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BXLGg-dX.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, q 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-
|
|
2
|
+
import { a as i18n, q 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-BXLGg-dX.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CY61-F41.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, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-BXLGg-dX.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CY61-F41.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BXLGg-dX.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-BXLGg-dX.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-BXLGg-dX.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-D1d3SzOQ.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-BXLGg-dX.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";
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
hideTopicTags: "",
|
|
66
66
|
onReport: (evt) => handleReport(item, index, evt),
|
|
67
67
|
cardType: (item == null ? void 0 : item.repo_type) || "repo",
|
|
68
|
-
"url-params": { source_module: "
|
|
68
|
+
"url-params": { source_module: "search_box_discovery" }
|
|
69
69
|
}, null, 8, ["info", "onReport", "cardType"]);
|
|
70
70
|
}), 128))
|
|
71
71
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
@@ -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-BXLGg-dX.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-BXLGg-dX.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]" };
|
|
@@ -15792,7 +15792,7 @@ const _hoisted_2$i = {
|
|
|
15792
15792
|
};
|
|
15793
15793
|
const _hoisted_3$g = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
15794
15794
|
const _hoisted_4$d = { class: "text-xs" };
|
|
15795
|
-
const _hoisted_5$a = { class: "flex items-center w-full" };
|
|
15795
|
+
const _hoisted_5$a = { class: "flex items-center w-full g-repo-breadcrumb-custom" };
|
|
15796
15796
|
const _hoisted_6$7 = {
|
|
15797
15797
|
key: 1,
|
|
15798
15798
|
class: "flex items-center min-w-[30px]"
|
|
@@ -15942,6 +15942,27 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15942
15942
|
if (props.scene !== SceneValue.user) return;
|
|
15943
15943
|
emits("followUser");
|
|
15944
15944
|
};
|
|
15945
|
+
const handleBreadcrumbCopy = (e) => {
|
|
15946
|
+
const container = document.querySelector(".g-repo-breadcrumb-custom");
|
|
15947
|
+
if (!container) return;
|
|
15948
|
+
const selection = window.getSelection();
|
|
15949
|
+
if (!selection || !selection.rangeCount) return;
|
|
15950
|
+
const range = selection.getRangeAt(0);
|
|
15951
|
+
const selectedText = selection.toString().trim();
|
|
15952
|
+
const isSelectionInContainer = container.contains(range.startContainer) && container.contains(range.endContainer);
|
|
15953
|
+
if (isSelectionInContainer && selectedText) {
|
|
15954
|
+
e.preventDefault();
|
|
15955
|
+
if (e.clipboardData) {
|
|
15956
|
+
e.clipboardData.setData("text/plain", selectedText.replace(/\s+/g, ""));
|
|
15957
|
+
}
|
|
15958
|
+
}
|
|
15959
|
+
};
|
|
15960
|
+
onMounted(() => {
|
|
15961
|
+
document.addEventListener("copy", handleBreadcrumbCopy);
|
|
15962
|
+
});
|
|
15963
|
+
onUnmounted(() => {
|
|
15964
|
+
document.removeEventListener("copy", handleBreadcrumbCopy);
|
|
15965
|
+
});
|
|
15945
15966
|
return (_ctx, _cache) => {
|
|
15946
15967
|
var _a, _b;
|
|
15947
15968
|
return inAIHub.value && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
@@ -17166,13 +17187,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17166
17187
|
var _a;
|
|
17167
17188
|
const layoutConfig2 = useLayoutConfig();
|
|
17168
17189
|
const { t: $t } = i18n.global;
|
|
17169
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17170
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17171
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17172
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17173
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17174
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17175
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17190
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-mqTNEBNg.js"));
|
|
17191
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-D21vdZWx.js"));
|
|
17192
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BICFzKQT.js"));
|
|
17193
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DWkTcuro.js"));
|
|
17194
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CqCv7IK5.js"));
|
|
17195
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Bx1ms7y_.js"));
|
|
17196
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-2rWUzXDp.js"));
|
|
17176
17197
|
const props = __props;
|
|
17177
17198
|
const repoInfo = inject("repoInfo");
|
|
17178
17199
|
const orgInfo = inject("orgInfo");
|
|
@@ -17403,7 +17424,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17403
17424
|
}
|
|
17404
17425
|
const targetHotWord = searchHotWords.value[activeSearchKey.value];
|
|
17405
17426
|
if (!searchStr.value && (targetHotWord == null ? void 0 : targetHotWord.url) && !isSearchHistory.value) {
|
|
17406
|
-
|
|
17427
|
+
let hotUrl = targetHotWord.url;
|
|
17428
|
+
const urlObj = new URL(targetHotWord.url);
|
|
17429
|
+
if (urlObj.search.length > 1) {
|
|
17430
|
+
hotUrl = `${hotUrl}&source_module=search_box_hot_word`;
|
|
17431
|
+
} else {
|
|
17432
|
+
hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
|
|
17433
|
+
}
|
|
17434
|
+
window.open(hotUrl, "_blank");
|
|
17407
17435
|
return;
|
|
17408
17436
|
}
|
|
17409
17437
|
isSearchHistory.value = false;
|
|
@@ -17793,7 +17821,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17793
17821
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17794
17822
|
}
|
|
17795
17823
|
};
|
|
17796
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17824
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DxPH5fZs.js"));
|
|
17797
17825
|
function clearNotice() {
|
|
17798
17826
|
if (localStorage$2.getItem("validator_email")) {
|
|
17799
17827
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18465,9 +18493,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18465
18493
|
const layoutConfig2 = useLayoutConfig();
|
|
18466
18494
|
const { t: t2 } = i18n.global;
|
|
18467
18495
|
const route = useRoute();
|
|
18468
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18469
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18470
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18496
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-3Mk4f4KL.js"));
|
|
18497
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BlsvgQfd.js"));
|
|
18498
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-bpl02-_f.js"));
|
|
18471
18499
|
const props = __props;
|
|
18472
18500
|
const useReport2 = inject("useReport");
|
|
18473
18501
|
const userInfo = inject("userInfo");
|
|
@@ -24012,7 +24040,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24012
24040
|
}
|
|
24013
24041
|
});
|
|
24014
24042
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24015
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24043
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-CCxdfi96.js"));
|
|
24016
24044
|
const useSlidCaptcha = () => {
|
|
24017
24045
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24018
24046
|
const open = (config) => {
|
|
@@ -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 { q as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { q as useLayoutConfig, _ as _export_sfc } from "./index-BXLGg-dX.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
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, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BXLGg-dX.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-CY61-F41.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";
|
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-BXLGg-dX.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