vue-layout-gitcode 1.8.12 → 1.8.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.
- package/{GloabarSearch-Cx9qvOxl.js → GloabarSearch-DOry7z_v.js} +3 -3
- package/{MenuItem-DWAedLFZ.js → MenuItem-CIgzVojf.js} +1 -1
- package/{ProjectMenuList-CBP3abqc.js → ProjectMenuList-NN6EMNRA.js} +2 -2
- package/{ProjectMenuListV2-CnpuQMHB.js → ProjectMenuListV2-D4Inlf47.js} +2 -2
- package/{ProjectSearch-0h-E2Xyw.js → ProjectSearch-CISPcBR4.js} +1 -1
- package/{SearchHistoryList-BVFKOsxU.js → SearchHistoryList-DLoXPObe.js} +1 -1
- package/{SearchPrefixTag-B_Ws7leV.js → SearchPrefixTag-DvPHRrol.js} +1 -1
- package/{SearchRecommed-CyVy-8P7.js → SearchRecommed-Ch939xlF.js} +2 -2
- package/{SearchScopeList-BuDBeSIj.js → SearchScopeList-BrP-M0Ot.js} +1 -1
- package/{UserSearch-CN1FYLG4.js → UserSearch-D1O_0E6r.js} +1 -1
- package/{index-tyjZoIhY.js → index-BD5XMKew.js} +1 -1
- package/{index-CIxicDlx.js → index-BDXYe6YR.js} +1 -1
- package/{index-D9tjG0gc.js → index-HAA3F5Te.js} +46 -86
- package/{index-WmRS4ZG3.js → index-tbNoovZi.js} +2 -2
- package/index.js +10 -10
- package/{notice-ms9rOVkp.js → notice-CjlIawkW.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-CbPDVu1j.js → transWebUrl-wQ1yWCFq.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-HAA3F5Te.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-tbNoovZi.js";
|
|
7
|
+
import "./transWebUrl-wQ1yWCFq.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 { x as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, w as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, w as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-HAA3F5Te.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, x as useLayoutConfig, G as GIcon,
|
|
2
|
+
import { a as i18n, x as useLayoutConfig, G as GIcon, t as transformUrl, D as _sfc_main$1, F as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, H as asideRequest, _ as _export_sfc } from "./index-HAA3F5Te.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-wQ1yWCFq.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, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-HAA3F5Te.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-wQ1yWCFq.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-HAA3F5Te.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-HAA3F5Te.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-HAA3F5Te.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-
|
|
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-tbNoovZi.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-HAA3F5Te.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-HAA3F5Te.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, t as transformUrl } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-HAA3F5Te.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 { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
2
|
+
import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-HAA3F5Te.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:";
|
|
@@ -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, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-HAA3F5Te.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
constructor() {
|
|
14
14
|
__publicField(this, "ypRiddlerInstance", null);
|
|
@@ -105,7 +105,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
105
105
|
return target;
|
|
106
106
|
};
|
|
107
107
|
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
108
|
-
const transformUrl
|
|
108
|
+
const transformUrl = (url) => {
|
|
109
109
|
if (!url || typeof url !== "string") {
|
|
110
110
|
return url;
|
|
111
111
|
}
|
|
@@ -125,14 +125,17 @@ const transformUrl$1 = (url) => {
|
|
|
125
125
|
try {
|
|
126
126
|
const urlObj = new URL(url);
|
|
127
127
|
const originalHostname = urlObj.hostname;
|
|
128
|
-
const parseHostname = (hostname =
|
|
128
|
+
const parseHostname = (hostname, isLocationHost = false) => {
|
|
129
129
|
const parts = hostname.split(".");
|
|
130
130
|
const baseDomain = parts.length >= 2 ? parts.slice(-2).join(".") : hostname;
|
|
131
|
-
|
|
131
|
+
let subdomainPrefix = parts.length > 2 ? parts[0] : "";
|
|
132
|
+
if (isLocationHost && subdomainPrefix && subdomainPrefix.includes("-")) {
|
|
133
|
+
subdomainPrefix = subdomainPrefix.split("-")[0];
|
|
134
|
+
}
|
|
132
135
|
return { baseDomain, subdomainPrefix };
|
|
133
136
|
};
|
|
134
|
-
const { subdomainPrefix: urlSubdomain } = parseHostname(originalHostname);
|
|
135
|
-
const { baseDomain: targetBaseDomain, subdomainPrefix: targetEnvPrefix } = parseHostname(targetHost);
|
|
137
|
+
const { subdomainPrefix: urlSubdomain } = parseHostname(originalHostname, false);
|
|
138
|
+
const { baseDomain: targetBaseDomain, subdomainPrefix: targetEnvPrefix } = parseHostname(targetHost, true);
|
|
136
139
|
let finalHostname = targetBaseDomain;
|
|
137
140
|
if (targetEnvPrefix) {
|
|
138
141
|
finalHostname = `${targetEnvPrefix}.${finalHostname}`;
|
|
@@ -162,7 +165,7 @@ const defaultConfig = {
|
|
|
162
165
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
163
166
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
164
167
|
};
|
|
165
|
-
const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl
|
|
168
|
+
const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl(defaultConfig.VITE_HOST_TIANQI) });
|
|
166
169
|
function setLayoutConfig(customConfig) {
|
|
167
170
|
Object.assign(layoutConfig$5, customConfig);
|
|
168
171
|
}
|
|
@@ -12274,48 +12277,6 @@ if (isBrowser) {
|
|
|
12274
12277
|
}
|
|
12275
12278
|
const sessionStorage$1 = sessionStorage;
|
|
12276
12279
|
const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo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0uLWC/HQicuSokQSi8VFE0DNpRk1gNX0BO4DqdgZhRwnAZakhZ4LfnVq70OnCdfW8aZeY0pCnNLrSf9GyDjAjBhTjvx0BHYmkpmQWgyVKDqnpnQX440kjg2wDo4yYVZSuDY14G/8+65JSbjlk/aRgXEhpFEHL2r+5rohqjllzKVEZhYivETUbCBwZ/9YaIDZwkQYIcHtk7BCQvowhgdcLZ9ld8K1ezuu88sctjMsQt/JC6JFAe0Rl2Vi2Sf2zxbJHspx2RLzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
|
|
12277
|
-
const transformUrl = (url) => {
|
|
12278
|
-
if (!url || typeof url !== "string") {
|
|
12279
|
-
return url;
|
|
12280
|
-
}
|
|
12281
|
-
if (url.startsWith("/") && !url.startsWith("//") || url.startsWith("./") || url.startsWith("../")) {
|
|
12282
|
-
return url;
|
|
12283
|
-
}
|
|
12284
|
-
if (url.startsWith("https://cdn-") || url.startsWith("http://cdn-") || url.startsWith("//cdn-")) {
|
|
12285
|
-
return url;
|
|
12286
|
-
}
|
|
12287
|
-
if (typeof window === "undefined" || typeof location === "undefined") {
|
|
12288
|
-
return url;
|
|
12289
|
-
}
|
|
12290
|
-
const targetHost = location.host;
|
|
12291
|
-
if (!targetHost) {
|
|
12292
|
-
return url;
|
|
12293
|
-
}
|
|
12294
|
-
try {
|
|
12295
|
-
const urlObj = new URL(url);
|
|
12296
|
-
const originalHostname = urlObj.hostname;
|
|
12297
|
-
const parseHostname = (hostname = "") => {
|
|
12298
|
-
const parts = hostname.split(".");
|
|
12299
|
-
const baseDomain = parts.length >= 2 ? parts.slice(-2).join(".") : hostname;
|
|
12300
|
-
const subdomainPrefix = parts.length > 2 ? parts[0] : "";
|
|
12301
|
-
return { baseDomain, subdomainPrefix };
|
|
12302
|
-
};
|
|
12303
|
-
const { subdomainPrefix: urlSubdomain } = parseHostname(originalHostname);
|
|
12304
|
-
const { baseDomain: targetBaseDomain, subdomainPrefix: targetEnvPrefix } = parseHostname(targetHost);
|
|
12305
|
-
let finalHostname = targetBaseDomain;
|
|
12306
|
-
if (targetEnvPrefix) {
|
|
12307
|
-
finalHostname = `${targetEnvPrefix}.${finalHostname}`;
|
|
12308
|
-
}
|
|
12309
|
-
if (urlSubdomain && urlSubdomain !== targetEnvPrefix) {
|
|
12310
|
-
finalHostname = `${urlSubdomain}.${finalHostname}`;
|
|
12311
|
-
}
|
|
12312
|
-
const transformed = url.replace(originalHostname, finalHostname);
|
|
12313
|
-
return transformed;
|
|
12314
|
-
} catch (error) {
|
|
12315
|
-
console.warn("URL解析失败:", url, error);
|
|
12316
|
-
return url;
|
|
12317
|
-
}
|
|
12318
|
-
};
|
|
12319
12280
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12320
12281
|
...{
|
|
12321
12282
|
name: "GAvatar"
|
|
@@ -13689,7 +13650,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13689
13650
|
};
|
|
13690
13651
|
});
|
|
13691
13652
|
function goPage() {
|
|
13692
|
-
let url = transformUrl
|
|
13653
|
+
let url = transformUrl(tianqiButtonConfig.value.url || layoutConfig2.VITE_HOST_TIANQI + "?utm_source=toolbar");
|
|
13693
13654
|
if (location.host === "test.atomgit.com") {
|
|
13694
13655
|
url = "https://test-tianqi.atomgit.com";
|
|
13695
13656
|
}
|
|
@@ -16891,13 +16852,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16891
16852
|
var _a;
|
|
16892
16853
|
const layoutConfig2 = useLayoutConfig();
|
|
16893
16854
|
const { t: $t } = i18n.global;
|
|
16894
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16895
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16896
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16897
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16898
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16899
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16900
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16855
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CISPcBR4.js"));
|
|
16856
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-D1O_0E6r.js"));
|
|
16857
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DOry7z_v.js"));
|
|
16858
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DLoXPObe.js"));
|
|
16859
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BrP-M0Ot.js"));
|
|
16860
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DvPHRrol.js"));
|
|
16861
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Ch939xlF.js"));
|
|
16901
16862
|
const props = __props;
|
|
16902
16863
|
const repoInfo = inject("repoInfo");
|
|
16903
16864
|
const orgInfo = inject("orgInfo");
|
|
@@ -17135,7 +17096,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17135
17096
|
} else {
|
|
17136
17097
|
hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
|
|
17137
17098
|
}
|
|
17138
|
-
window.open(transformUrl
|
|
17099
|
+
window.open(transformUrl(hotUrl), "_blank");
|
|
17139
17100
|
return;
|
|
17140
17101
|
}
|
|
17141
17102
|
isSearchHistory.value = false;
|
|
@@ -17551,7 +17512,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17551
17512
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17552
17513
|
}
|
|
17553
17514
|
};
|
|
17554
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17515
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CjlIawkW.js"));
|
|
17555
17516
|
function clearNotice() {
|
|
17556
17517
|
if (localStorage$2.getItem("validator_email")) {
|
|
17557
17518
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18179,11 +18140,11 @@ const useConfigSide = (request, sceneValue) => {
|
|
|
18179
18140
|
let asideList = (((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || []).map((item) => {
|
|
18180
18141
|
return {
|
|
18181
18142
|
...item,
|
|
18182
|
-
left_menu_url: transformUrl
|
|
18183
|
-
left_menu_logo: transformUrl
|
|
18184
|
-
left_menu_logo_black: transformUrl
|
|
18185
|
-
left_menu_logo_hover: transformUrl
|
|
18186
|
-
left_menu_logo_hover_black: transformUrl
|
|
18143
|
+
left_menu_url: transformUrl(item.left_menu_url),
|
|
18144
|
+
left_menu_logo: transformUrl(item.left_menu_logo),
|
|
18145
|
+
left_menu_logo_black: transformUrl(item.left_menu_logo_black),
|
|
18146
|
+
left_menu_logo_hover: transformUrl(item.left_menu_logo_hover),
|
|
18147
|
+
left_menu_logo_hover_black: transformUrl(item.left_menu_logo_hover_black)
|
|
18187
18148
|
};
|
|
18188
18149
|
});
|
|
18189
18150
|
if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
|
|
@@ -18258,8 +18219,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
|
|
|
18258
18219
|
var _a;
|
|
18259
18220
|
return {
|
|
18260
18221
|
key: item.name,
|
|
18261
|
-
web_url: transformUrl
|
|
18262
|
-
avatar: transformUrl
|
|
18222
|
+
web_url: transformUrl(item.web_url),
|
|
18223
|
+
avatar: transformUrl(item.avatar),
|
|
18263
18224
|
id: item.id,
|
|
18264
18225
|
label: item.name,
|
|
18265
18226
|
namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
|
|
@@ -18310,9 +18271,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18310
18271
|
const layoutConfig2 = useLayoutConfig();
|
|
18311
18272
|
const { t: t2 } = i18n.global;
|
|
18312
18273
|
const route = useRoute();
|
|
18313
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18314
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18315
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18274
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CIgzVojf.js"));
|
|
18275
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-D4Inlf47.js"));
|
|
18276
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-NN6EMNRA.js"));
|
|
18316
18277
|
const props = __props;
|
|
18317
18278
|
console.log("slotKeys", props.slotKeys);
|
|
18318
18279
|
console.log("props", props);
|
|
@@ -18695,7 +18656,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18695
18656
|
{
|
|
18696
18657
|
name: t2("gitCodeLayout.home.feedbackCenter"),
|
|
18697
18658
|
icon: "gt-line-Checks",
|
|
18698
|
-
url: transformUrl
|
|
18659
|
+
url: transformUrl(FEEDBACK_CENTER_URL),
|
|
18699
18660
|
target: "_self"
|
|
18700
18661
|
}
|
|
18701
18662
|
];
|
|
@@ -20322,7 +20283,7 @@ async function successResolve(params, API, isRegister = false) {
|
|
|
20322
20283
|
const { path, userInfo, type, loginMethod } = params;
|
|
20323
20284
|
const transformUserInfo = {
|
|
20324
20285
|
...userInfo,
|
|
20325
|
-
avatar: transformUrl
|
|
20286
|
+
avatar: transformUrl(userInfo == null ? void 0 : userInfo.avatar)
|
|
20326
20287
|
};
|
|
20327
20288
|
if (userInfo) {
|
|
20328
20289
|
emitEvent("updateUserInfo", transformUserInfo);
|
|
@@ -24024,7 +23985,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24024
23985
|
}
|
|
24025
23986
|
});
|
|
24026
23987
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24027
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23988
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BD5XMKew.js"));
|
|
24028
23989
|
const useSlidCaptcha = () => {
|
|
24029
23990
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24030
23991
|
const open = (config) => {
|
|
@@ -24043,7 +24004,7 @@ const useSlidCaptcha = () => {
|
|
|
24043
24004
|
close: unMount
|
|
24044
24005
|
};
|
|
24045
24006
|
};
|
|
24046
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24007
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BDXYe6YR.js"));
|
|
24047
24008
|
const useYunpianCaptcha = () => {
|
|
24048
24009
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24049
24010
|
const open = (config) => {
|
|
@@ -26058,25 +26019,24 @@ export {
|
|
|
26058
26019
|
LANG_EN as A,
|
|
26059
26020
|
emitEvent as B,
|
|
26060
26021
|
isHttps as C,
|
|
26061
|
-
|
|
26022
|
+
_sfc_main$z as D,
|
|
26062
26023
|
EVENT_NAME as E,
|
|
26063
|
-
|
|
26024
|
+
loadAsideData as F,
|
|
26064
26025
|
GIcon as G,
|
|
26065
|
-
|
|
26066
|
-
|
|
26067
|
-
|
|
26068
|
-
|
|
26026
|
+
asideRequest as H,
|
|
26027
|
+
ToolsFloat as I,
|
|
26028
|
+
_sfc_main as J,
|
|
26029
|
+
GitCodeAside as K,
|
|
26069
26030
|
LANG_KEY as L,
|
|
26070
|
-
|
|
26071
|
-
|
|
26072
|
-
|
|
26073
|
-
|
|
26074
|
-
|
|
26031
|
+
GitCodeHeader as M,
|
|
26032
|
+
useLogin as N,
|
|
26033
|
+
setLayoutConfig as O,
|
|
26034
|
+
GitCodeLayoutEmitter as P,
|
|
26035
|
+
setTheme as Q,
|
|
26075
26036
|
REPO_MODULE as R,
|
|
26076
26037
|
SceneValue as S,
|
|
26077
26038
|
TOPIC_TYPE as T,
|
|
26078
|
-
|
|
26079
|
-
index as V,
|
|
26039
|
+
index as U,
|
|
26080
26040
|
_export_sfc as _,
|
|
26081
26041
|
i18n as a,
|
|
26082
26042
|
REPO_EVENT as b,
|
|
@@ -26097,7 +26057,7 @@ export {
|
|
|
26097
26057
|
_frEventTrack as q,
|
|
26098
26058
|
reqCatch as r,
|
|
26099
26059
|
setLoginTriggerSource as s,
|
|
26100
|
-
transformUrl
|
|
26060
|
+
transformUrl as t,
|
|
26101
26061
|
useModel as u,
|
|
26102
26062
|
vElementExposure as v,
|
|
26103
26063
|
getLocaleLang as w,
|
|
@@ -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 { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, 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$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, 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$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-HAA3F5Te.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-wQ1yWCFq.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,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-HAA3F5Te.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
K as GitCodeAside,
|
|
4
|
+
M as GitCodeHeader,
|
|
5
|
+
P as GitCodeLayoutEmitter,
|
|
6
|
+
J as Login,
|
|
7
7
|
S as SceneValue,
|
|
8
|
-
|
|
8
|
+
I as ToolsFloat,
|
|
9
9
|
z as currentTheme,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
U as default,
|
|
11
|
+
O as setLayoutConfig,
|
|
12
|
+
Q as setTheme,
|
|
13
|
+
N as useLogin
|
|
14
14
|
};
|
|
@@ -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-HAA3F5Te.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