vue-layout-gitcode 1.8.15 → 1.8.17
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-CxScZrZQ.js → GloabarSearch-TUo4nn83.js} +3 -3
- package/{MenuItem-CENzFBxI.js → MenuItem-n5uAtSzm.js} +1 -1
- package/{ProjectMenuList-Cq6cMciT.js → ProjectMenuList--jQyMTlG.js} +3 -3
- package/{ProjectMenuListV2-B0fQkRZP.js → ProjectMenuListV2-5MZSguqA.js} +3 -3
- package/{ProjectSearch-CpCOtL4V.js → ProjectSearch-DOswQQGe.js} +1 -1
- package/{SearchHistoryList-BAvkX64s.js → SearchHistoryList-DeNV1yOx.js} +1 -1
- package/{SearchPrefixTag-y9-TbkOG.js → SearchPrefixTag-CoIhPekg.js} +1 -1
- package/{SearchRecommed-Ch_LjURo.js → SearchRecommed-DkBRd__0.js} +2 -2
- package/{SearchScopeList-Cqk5DRNL.js → SearchScopeList-DxPjaKfI.js} +1 -1
- package/{UserSearch-DukNoXsJ.js → UserSearch-j6NxjoS4.js} +1 -1
- package/{index-DPOjnDNY.js → index-CNV-z0yg.js} +44 -39
- package/{index-C2G7nbEf.js → index-D6XftEMr.js} +2 -2
- package/{index-Dx7Xm0MA.js → index-FV44K1EC.js} +1 -1
- package/{index-Btj7WgSR.js → index-lPvPZwC8.js} +1 -1
- package/index.js +1 -1
- package/{notice-Ch6dTG8d.js → notice-DKvkMz7S.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-CcebxoyM.js → transWebUrl-GZ3VtByG.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-CNV-z0yg.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-D6XftEMr.js";
|
|
7
|
+
import "./transWebUrl-GZ3VtByG.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-CNV-z0yg.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, 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-
|
|
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-CNV-z0yg.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-GZ3VtByG.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";
|
|
@@ -231,7 +231,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
231
|
if (router.hasRoute(targetRoute.name)) {
|
|
232
232
|
router.push(targetRoute);
|
|
233
233
|
} else {
|
|
234
|
-
window.location.href = `${layoutConfig.VITE_HOST}/${props.type !== "project" ? "org/" : ""}create?position=nav_top`;
|
|
234
|
+
window.location.href = `${transformUrl(layoutConfig.VITE_HOST)}/${props.type !== "project" ? "org/" : ""}create?position=nav_top`;
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
return (_ctx, _cache) => {
|
|
@@ -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, t as transformUrl, _ as _export_sfc } from "./index-CNV-z0yg.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-GZ3VtByG.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";
|
|
@@ -131,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
131
|
query: { position: "nav_top" }
|
|
132
132
|
});
|
|
133
133
|
} else {
|
|
134
|
-
window.location.href = `${layoutConfig.VITE_HOST}/create?position=nav_top`;
|
|
134
|
+
window.location.href = `${transformUrl(layoutConfig.VITE_HOST)}/create?position=nav_top`;
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
return (_ctx, _cache) => {
|
|
@@ -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-CNV-z0yg.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-CNV-z0yg.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-CNV-z0yg.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-D6XftEMr.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-CNV-z0yg.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-CNV-z0yg.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-CNV-z0yg.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]" };
|
|
@@ -120,12 +120,12 @@ const defaultConfig = {
|
|
|
120
120
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
121
121
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
122
122
|
};
|
|
123
|
-
const layoutConfig$
|
|
123
|
+
const layoutConfig$6 = reactive({ ...defaultConfig });
|
|
124
124
|
function setLayoutConfig(customConfig) {
|
|
125
|
-
Object.assign(layoutConfig$
|
|
125
|
+
Object.assign(layoutConfig$6, customConfig);
|
|
126
126
|
}
|
|
127
127
|
function useLayoutConfig() {
|
|
128
|
-
return readonly(layoutConfig$
|
|
128
|
+
return readonly(layoutConfig$6);
|
|
129
129
|
}
|
|
130
130
|
async function reqCatch(req, params) {
|
|
131
131
|
try {
|
|
@@ -8225,7 +8225,7 @@ const $i18n = setupI18n({
|
|
|
8225
8225
|
}
|
|
8226
8226
|
});
|
|
8227
8227
|
const i18n = $i18n;
|
|
8228
|
-
const layoutConfig$
|
|
8228
|
+
const layoutConfig$5 = useLayoutConfig();
|
|
8229
8229
|
function scrollToTop() {
|
|
8230
8230
|
if (typeof window !== "undefined" && window.pageYOffset) {
|
|
8231
8231
|
const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
|
|
@@ -8254,7 +8254,7 @@ function extractRepoInfoWithURL(repoUrl) {
|
|
|
8254
8254
|
return parts.join("/");
|
|
8255
8255
|
}
|
|
8256
8256
|
const isGstarRepo = (topics) => {
|
|
8257
|
-
const gstarTopicIds = layoutConfig$
|
|
8257
|
+
const gstarTopicIds = layoutConfig$5.VITE_GSTAR_TOPIC.split(",");
|
|
8258
8258
|
let isGstar = false;
|
|
8259
8259
|
topics && topics.forEach((item) => {
|
|
8260
8260
|
if (gstarTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -8264,7 +8264,7 @@ const isGstarRepo = (topics) => {
|
|
|
8264
8264
|
return isGstar;
|
|
8265
8265
|
};
|
|
8266
8266
|
const isTrustedRepo = (topics) => {
|
|
8267
|
-
const trustedTopicIds = layoutConfig$
|
|
8267
|
+
const trustedTopicIds = layoutConfig$5.VITE_TRUSTED_TOPIC.split(",");
|
|
8268
8268
|
let isTrusted = false;
|
|
8269
8269
|
topics && topics.forEach((item) => {
|
|
8270
8270
|
if (trustedTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -8273,7 +8273,7 @@ const isTrustedRepo = (topics) => {
|
|
|
8273
8273
|
});
|
|
8274
8274
|
return isTrusted;
|
|
8275
8275
|
};
|
|
8276
|
-
const INCUBATION_TOPICS = layoutConfig$
|
|
8276
|
+
const INCUBATION_TOPICS = layoutConfig$5.VITE_INCUBATION_TOPIC || "";
|
|
8277
8277
|
const isIncubationRepo = (topics = []) => {
|
|
8278
8278
|
if (!topics) return false;
|
|
8279
8279
|
const incubationIds = INCUBATION_TOPICS.split(",");
|
|
@@ -8316,7 +8316,7 @@ const getLastTimeRepoId = () => {
|
|
|
8316
8316
|
};
|
|
8317
8317
|
const setUtmSourceSign = (utm_source) => {
|
|
8318
8318
|
const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
|
|
8319
|
-
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$
|
|
8319
|
+
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$5.VITE_COOKIE_DOMAIN });
|
|
8320
8320
|
};
|
|
8321
8321
|
const getUtmSourceSign = () => {
|
|
8322
8322
|
return api.get("utm_source_sign") || "";
|
|
@@ -10876,7 +10876,7 @@ const getCommonHeadInfo = (isAiHub) => {
|
|
|
10876
10876
|
"X-Device-ID": "unknown"
|
|
10877
10877
|
};
|
|
10878
10878
|
};
|
|
10879
|
-
const layoutConfig$
|
|
10879
|
+
const layoutConfig$4 = useLayoutConfig();
|
|
10880
10880
|
const setPassportPrefix = (url, method) => {
|
|
10881
10881
|
const prefix = "/uc";
|
|
10882
10882
|
{
|
|
@@ -10900,7 +10900,7 @@ const setPassportPrefix = (url, method) => {
|
|
|
10900
10900
|
};
|
|
10901
10901
|
const proxyService = (params, customConfigs) => {
|
|
10902
10902
|
const service = axios.create({
|
|
10903
|
-
baseURL: layoutConfig$
|
|
10903
|
+
baseURL: layoutConfig$4.VITE_API_HOST,
|
|
10904
10904
|
timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
|
|
10905
10905
|
withCredentials: true
|
|
10906
10906
|
});
|
|
@@ -11604,7 +11604,7 @@ var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
|
|
|
11604
11604
|
REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
|
|
11605
11605
|
return REPO_TYPE2;
|
|
11606
11606
|
})(REPO_TYPE || {});
|
|
11607
|
-
const layoutConfig$
|
|
11607
|
+
const layoutConfig$3 = useLayoutConfig();
|
|
11608
11608
|
const registerLoginMethodMap = {
|
|
11609
11609
|
[LoginMethodEnum.PHONE]: "短信",
|
|
11610
11610
|
[LoginMethodEnum.PASSWORD]: "密码",
|
|
@@ -11638,7 +11638,7 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
11638
11638
|
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
11639
11639
|
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
11640
11640
|
page_url: location.href || "",
|
|
11641
|
-
env: layoutConfig$
|
|
11641
|
+
env: layoutConfig$3.VITE_ENV,
|
|
11642
11642
|
namespace: extraData.namespace || "",
|
|
11643
11643
|
...extraData,
|
|
11644
11644
|
...searchParams
|
|
@@ -12232,7 +12232,6 @@ if (isBrowser) {
|
|
|
12232
12232
|
}
|
|
12233
12233
|
const sessionStorage$1 = sessionStorage;
|
|
12234
12234
|
const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/AK0AFXKH2BMFmN+kxqfF4wVXwA0snQdUgQcXtwoFgLJk/T6xqG7Kx2w4xi5Mw37ziQF88fXd/NHe58scZxfYBdGzBQkYFkxVpSBQAXkXZJC8CYMUXTQCxZEU0sATsG/c+PwOL3/TVnhBY0vYqyABk7jjGJSnvc0L72qMeQaxB8gIWGGPgtjw+fRw2G+fKYMv/nQ3dwUuG2VNGfPMCagYd+yiWFGXH8Dcfzae7cRr2y/vzHJKuM3gGh4cX+tUXKAHHLvD1nDqAFuLnMc+ezyLlXnVFS5XN4ziUQpbAgySqGAF3Qmqpjc2prr1+6z/7/zK917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W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
|
|
12235
|
-
const layoutConfig$3 = useLayoutConfig();
|
|
12236
12235
|
const transformUrl = (url) => {
|
|
12237
12236
|
var _a;
|
|
12238
12237
|
if (!url) return url;
|
|
@@ -12255,20 +12254,21 @@ const transformUrl = (url) => {
|
|
|
12255
12254
|
return url;
|
|
12256
12255
|
};
|
|
12257
12256
|
const transformUrlWithSpecialPrefix = ({ url, host }) => {
|
|
12258
|
-
const
|
|
12259
|
-
const
|
|
12260
|
-
const
|
|
12261
|
-
|
|
12257
|
+
const specialPrefix = ["-tianqi", "-ai", "-news", "-competition"];
|
|
12258
|
+
const isTestEnv = /^(test|local)\./i.test(host);
|
|
12259
|
+
const isPreEnv = /^(pre|loc-pre)\./i.test(host);
|
|
12260
|
+
const isNonProdEnv = isTestEnv || isPreEnv;
|
|
12261
|
+
if (!isNonProdEnv) {
|
|
12262
12262
|
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
12263
12263
|
}
|
|
12264
|
-
if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix))
|
|
12264
|
+
if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix))) {
|
|
12265
12265
|
try {
|
|
12266
12266
|
const urlObj = new URL(url);
|
|
12267
12267
|
const urlHost = urlObj.host;
|
|
12268
12268
|
const specialPrefixMatch = specialPrefix.find((prefix) => urlHost.includes(prefix));
|
|
12269
12269
|
if (specialPrefixMatch) {
|
|
12270
12270
|
const prefixPart = urlHost.split(".gitcode.")[0];
|
|
12271
|
-
const mainDomain = host.replace(/^(test|pre|
|
|
12271
|
+
const mainDomain = host.replace(/^(test|pre|local|loc-pre)\./, "");
|
|
12272
12272
|
urlObj.host = `${prefixPart}.${mainDomain}`;
|
|
12273
12273
|
return urlObj.toString();
|
|
12274
12274
|
}
|
|
@@ -12282,7 +12282,12 @@ const replaceHost = ({ url, customHost }) => {
|
|
|
12282
12282
|
if (!url || !customHost) return url;
|
|
12283
12283
|
try {
|
|
12284
12284
|
const urlObj = new URL(url);
|
|
12285
|
-
|
|
12285
|
+
let pureHost = customHost;
|
|
12286
|
+
if (customHost.includes("://")) {
|
|
12287
|
+
const customUrlObj = new URL(customHost);
|
|
12288
|
+
pureHost = customUrlObj.host;
|
|
12289
|
+
}
|
|
12290
|
+
urlObj.host = pureHost;
|
|
12286
12291
|
return urlObj.toString();
|
|
12287
12292
|
} catch (error) {
|
|
12288
12293
|
return url;
|
|
@@ -13663,7 +13668,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13663
13668
|
function goPage() {
|
|
13664
13669
|
let url = "";
|
|
13665
13670
|
if (!tianqiButtonConfig.value.url) {
|
|
13666
|
-
url = layoutConfig2.VITE_HOST_TIANQI + "?utm_source=toolbar";
|
|
13671
|
+
url = transformUrlWithSpecialPrefix({ url: layoutConfig2.VITE_HOST_TIANQI, host: window.location.host }) + "?utm_source=toolbar";
|
|
13667
13672
|
} else {
|
|
13668
13673
|
url = transformUrl(tianqiButtonConfig.value.url) + "?utm_source=toolbar";
|
|
13669
13674
|
}
|
|
@@ -16245,7 +16250,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16245
16250
|
});
|
|
16246
16251
|
return (_ctx, _cache) => {
|
|
16247
16252
|
return openBlock(), createBlock(GLink, {
|
|
16248
|
-
href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
|
|
16253
|
+
href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/notice?message_sate=countNotRead`
|
|
16249
16254
|
}, {
|
|
16250
16255
|
default: withCtx(() => [
|
|
16251
16256
|
createVNode(unref(Badge), {
|
|
@@ -16319,7 +16324,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16319
16324
|
if (router2.hasRoute("settingPoints")) {
|
|
16320
16325
|
router2.push("/setting/points");
|
|
16321
16326
|
} else {
|
|
16322
|
-
location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
|
|
16327
|
+
location.href = `${transformUrl(layoutConfig2.VITE_HOST)}/setting/points`;
|
|
16323
16328
|
}
|
|
16324
16329
|
};
|
|
16325
16330
|
const levelInfo = computed(() => {
|
|
@@ -16499,7 +16504,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16499
16504
|
item.action();
|
|
16500
16505
|
}
|
|
16501
16506
|
if (item == null ? void 0 : item.link) {
|
|
16502
|
-
const link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
16507
|
+
const link = `${transformUrl(layoutConfig2.VITE_HOST)}${item.link}`;
|
|
16503
16508
|
window.open(link, "_self");
|
|
16504
16509
|
}
|
|
16505
16510
|
}
|
|
@@ -16516,7 +16521,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16516
16521
|
return openBlock(), createElementBlock("div", null, [
|
|
16517
16522
|
createVNode(GLink, {
|
|
16518
16523
|
class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
|
|
16519
|
-
href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
|
|
16524
|
+
href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/${__props.accountInfo.username}`,
|
|
16520
16525
|
key: "myPage",
|
|
16521
16526
|
target: __props.isChatBot ? "_blank" : ""
|
|
16522
16527
|
}, {
|
|
@@ -16862,13 +16867,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16862
16867
|
var _a;
|
|
16863
16868
|
const layoutConfig2 = useLayoutConfig();
|
|
16864
16869
|
const { t: $t } = i18n.global;
|
|
16865
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16866
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16867
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16868
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16869
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16870
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16871
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16870
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DOswQQGe.js"));
|
|
16871
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-j6NxjoS4.js"));
|
|
16872
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-TUo4nn83.js"));
|
|
16873
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DeNV1yOx.js"));
|
|
16874
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DxPjaKfI.js"));
|
|
16875
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CoIhPekg.js"));
|
|
16876
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DkBRd__0.js"));
|
|
16872
16877
|
const props = __props;
|
|
16873
16878
|
const repoInfo = inject("repoInfo");
|
|
16874
16879
|
const orgInfo = inject("orgInfo");
|
|
@@ -17522,7 +17527,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17522
17527
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17523
17528
|
}
|
|
17524
17529
|
};
|
|
17525
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17530
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DKvkMz7S.js"));
|
|
17526
17531
|
function clearNotice() {
|
|
17527
17532
|
if (localStorage$2.getItem("validator_email")) {
|
|
17528
17533
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18290,9 +18295,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18290
18295
|
const layoutConfig2 = useLayoutConfig();
|
|
18291
18296
|
const { t: t2 } = i18n.global;
|
|
18292
18297
|
const route = useRoute();
|
|
18293
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18294
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18295
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList
|
|
18298
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-n5uAtSzm.js"));
|
|
18299
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-5MZSguqA.js"));
|
|
18300
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList--jQyMTlG.js"));
|
|
18296
18301
|
const props = __props;
|
|
18297
18302
|
console.log("slotKeys", props.slotKeys);
|
|
18298
18303
|
console.log("props", props);
|
|
@@ -19157,7 +19162,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19157
19162
|
createVNode(GLink, {
|
|
19158
19163
|
class: normalizeClass(["g-toolbar-left-logo", unref(currentTheme)]),
|
|
19159
19164
|
to: _ctx.independence ? "" : { name: "home" },
|
|
19160
|
-
href: _ctx.independence ? unref(layoutConfig2).VITE_HOST : ""
|
|
19165
|
+
href: _ctx.independence ? unref(transformUrl)(unref(layoutConfig2).VITE_HOST) : ""
|
|
19161
19166
|
}, null, 8, ["class", "to", "href"]),
|
|
19162
19167
|
createVNode(unref(Button), {
|
|
19163
19168
|
class: "cursor-pointer draw-side-bar-close",
|
|
@@ -24005,7 +24010,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24005
24010
|
}
|
|
24006
24011
|
});
|
|
24007
24012
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24008
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24013
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-FV44K1EC.js"));
|
|
24009
24014
|
const useSlidCaptcha = () => {
|
|
24010
24015
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24011
24016
|
const open = (config) => {
|
|
@@ -24024,7 +24029,7 @@ const useSlidCaptcha = () => {
|
|
|
24024
24029
|
close: unMount
|
|
24025
24030
|
};
|
|
24026
24031
|
};
|
|
24027
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24032
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-lPvPZwC8.js"));
|
|
24028
24033
|
const useYunpianCaptcha = () => {
|
|
24029
24034
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24030
24035
|
const open = (config) => {
|
|
@@ -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-CNV-z0yg.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-GZ3VtByG.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";
|
|
@@ -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-CNV-z0yg.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-CNV-z0yg.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
constructor() {
|
|
14
14
|
__publicField(this, "ypRiddlerInstance", null);
|
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-CNV-z0yg.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