vue-layout-gitcode 1.4.9 → 1.4.11
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-qu3GWrgG.js → GloabarSearch-DNWvkeh3.js} +2 -2
- package/{ProjectSearch-B4ClNiNk.js → ProjectSearch-BAzhcPmP.js} +1 -1
- package/{SearchHistoryList-XzK0Wdq9.js → SearchHistoryList-CvAkMbAE.js} +1 -1
- package/{SearchPrefixTag-e0wgvUOD.js → SearchPrefixTag-B66gAq6R.js} +1 -1
- package/{SearchRecommed-BceP3iS2.js → SearchRecommed-D7ROhdww.js} +2 -2
- package/{SearchScopeList-D89A7tfX.js → SearchScopeList-DsGT1TjI.js} +1 -1
- package/{UserSearch-L0Kc1TOX.js → UserSearch-DKHiIal8.js} +1 -1
- package/{index-BvzxCA8c.js → index-C9AzeoS1.js} +1 -1
- package/{index-CWnxebDr.js → index-Du_cDTmQ.js} +24 -25
- package/{index-CkwkroLc.js → index-ghwKiGDP.js} +1 -1
- package/index.js +1 -1
- package/{notice-B4XN9pi4.js → notice-ChrKvyCR.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-Du_cDTmQ.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-C9AzeoS1.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-Du_cDTmQ.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-Du_cDTmQ.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-Du_cDTmQ.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-C9AzeoS1.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-Du_cDTmQ.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-Du_cDTmQ.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-Du_cDTmQ.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 { 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
|
-
import { d as debounce, f as transferNumber, G as GIcon, s as setLoginTriggerSource, g as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, j as useTimeFormat, L as LANG_KEY, k as LANG_ZH, m as usePageResize, n as isGstarRepo, o as _sfc_main$9, p as isIncubationRepo, q as highlightWords, w as transWebUrl, t as transformUrl, x as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
2
|
+
import { d as debounce, f as transferNumber, G as GIcon, s as setLoginTriggerSource, g as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, j as useTimeFormat, L as LANG_KEY, k as LANG_ZH, m as usePageResize, n as isGstarRepo, o as _sfc_main$9, p as isIncubationRepo, q as highlightWords, w as transWebUrl, t as transformUrl, x as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Du_cDTmQ.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";
|
|
@@ -101,8 +101,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
101
101
|
return target;
|
|
102
102
|
};
|
|
103
103
|
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
104
|
-
const transformUrl
|
|
105
|
-
|
|
104
|
+
const transformUrl = (url) => {
|
|
105
|
+
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
106
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host);
|
|
107
|
+
}
|
|
108
|
+
return url;
|
|
106
109
|
};
|
|
107
110
|
const defaultConfig = {
|
|
108
111
|
VITE_ENV: "production",
|
|
@@ -119,7 +122,7 @@ const defaultConfig = {
|
|
|
119
122
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
120
123
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
121
124
|
};
|
|
122
|
-
const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl
|
|
125
|
+
const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl(defaultConfig.VITE_HOST_TIANQI) });
|
|
123
126
|
function setLayoutConfig(customConfig) {
|
|
124
127
|
Object.assign(layoutConfig$5, customConfig);
|
|
125
128
|
}
|
|
@@ -17862,10 +17865,6 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17862
17865
|
}
|
|
17863
17866
|
});
|
|
17864
17867
|
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17865
|
-
const transformUrl = (url) => {
|
|
17866
|
-
if (!url) return "";
|
|
17867
|
-
return url.replace(/gitcode\.com/g, location.host);
|
|
17868
|
-
};
|
|
17869
17868
|
const _hoisted_1$l = { class: "g-user-avatar flex-center ml-1" };
|
|
17870
17869
|
const _hoisted_2$f = {
|
|
17871
17870
|
key: 0,
|
|
@@ -17967,7 +17966,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17967
17966
|
createElementVNode("div", _hoisted_1$l, [
|
|
17968
17967
|
createVNode(_sfc_main$z, {
|
|
17969
17968
|
name: accountInfo.value.nickname,
|
|
17970
|
-
src:
|
|
17969
|
+
src: accountInfo.value.avatar
|
|
17971
17970
|
}, null, 8, ["name", "src"]),
|
|
17972
17971
|
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[4] || (_cache[4] = [
|
|
17973
17972
|
createElementVNode("div", null, null, -1)
|
|
@@ -17997,7 +17996,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17997
17996
|
createElementVNode("div", _hoisted_3$d, [
|
|
17998
17997
|
createVNode(_sfc_main$z, {
|
|
17999
17998
|
name: accountInfo.value.nickname,
|
|
18000
|
-
src:
|
|
17999
|
+
src: accountInfo.value.avatar
|
|
18001
18000
|
}, null, 8, ["name", "src"]),
|
|
18002
18001
|
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, _cache[5] || (_cache[5] = [
|
|
18003
18002
|
createElementVNode("div", null, null, -1)
|
|
@@ -18147,13 +18146,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18147
18146
|
var _a;
|
|
18148
18147
|
const layoutConfig2 = useLayoutConfig();
|
|
18149
18148
|
const { t: $t } = i18n.global;
|
|
18150
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
18151
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
18152
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
18153
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
18154
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
18155
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
18156
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
18149
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BAzhcPmP.js"));
|
|
18150
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DKHiIal8.js"));
|
|
18151
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DNWvkeh3.js"));
|
|
18152
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CvAkMbAE.js"));
|
|
18153
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DsGT1TjI.js"));
|
|
18154
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-B66gAq6R.js"));
|
|
18155
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D7ROhdww.js"));
|
|
18157
18156
|
const props = __props;
|
|
18158
18157
|
const repoInfo = inject("repoInfo");
|
|
18159
18158
|
const orgInfo = inject("orgInfo");
|
|
@@ -18382,7 +18381,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18382
18381
|
}
|
|
18383
18382
|
const targetHotWord = searchHotWords.value[activeSearchKey.value];
|
|
18384
18383
|
if (!searchStr.value && (targetHotWord == null ? void 0 : targetHotWord.url) && !isSearchHistory.value) {
|
|
18385
|
-
window.open(
|
|
18384
|
+
window.open(targetHotWord.url, "_blank");
|
|
18386
18385
|
return;
|
|
18387
18386
|
}
|
|
18388
18387
|
isSearchHistory.value = false;
|
|
@@ -18763,7 +18762,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18763
18762
|
}
|
|
18764
18763
|
});
|
|
18765
18764
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18766
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18765
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-ChrKvyCR.js"));
|
|
18767
18766
|
function clearNotice() {
|
|
18768
18767
|
if (localStorage$2.getItem("validator_email")) {
|
|
18769
18768
|
localStorage$2.removeItem("validator_email");
|
|
@@ -19401,8 +19400,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
|
|
|
19401
19400
|
var _a;
|
|
19402
19401
|
return {
|
|
19403
19402
|
key: item.name,
|
|
19404
|
-
web_url: transformUrl
|
|
19405
|
-
avatar: transformUrl
|
|
19403
|
+
web_url: transformUrl(item.web_url),
|
|
19404
|
+
avatar: transformUrl(item.avatar),
|
|
19406
19405
|
id: item.id,
|
|
19407
19406
|
label: item.name,
|
|
19408
19407
|
namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
|
|
@@ -19759,7 +19758,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19759
19758
|
return openBlock(), createBlock(unref(MenuItem), {
|
|
19760
19759
|
key: item.key,
|
|
19761
19760
|
"data-openBlank": true,
|
|
19762
|
-
"data-href": unref(
|
|
19761
|
+
"data-href": unref(transWebUrl)(item.web_url),
|
|
19763
19762
|
class: "text",
|
|
19764
19763
|
title: _ctx.type === "project" ? `${item.namespace}/${item.label}` : item.label
|
|
19765
19764
|
}, {
|
|
@@ -20610,7 +20609,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20610
20609
|
}, 8, ["href"]),
|
|
20611
20610
|
createVNode(GLink, {
|
|
20612
20611
|
class: "custom-link",
|
|
20613
|
-
href: unref(transformUrl
|
|
20612
|
+
href: unref(transformUrl)("https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues")
|
|
20614
20613
|
}, {
|
|
20615
20614
|
default: withCtx(() => [
|
|
20616
20615
|
createVNode(GIcon, {
|
|
@@ -21959,7 +21958,7 @@ async function successResolve(params, API) {
|
|
|
21959
21958
|
const { path, userInfo, type, loginMethod } = params;
|
|
21960
21959
|
const transformUserInfo = {
|
|
21961
21960
|
...userInfo,
|
|
21962
|
-
avatar: transformUrl
|
|
21961
|
+
avatar: transformUrl(userInfo == null ? void 0 : userInfo.avatar)
|
|
21963
21962
|
};
|
|
21964
21963
|
if (userInfo) {
|
|
21965
21964
|
emitEvent("updateUserInfo", transformUserInfo);
|
|
@@ -25585,7 +25584,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25585
25584
|
}
|
|
25586
25585
|
});
|
|
25587
25586
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25588
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25587
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-ghwKiGDP.js"));
|
|
25589
25588
|
const useSlidCaptcha = () => {
|
|
25590
25589
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25591
25590
|
const open = (config) => {
|
|
@@ -27326,7 +27325,7 @@ export {
|
|
|
27326
27325
|
highlightWords as q,
|
|
27327
27326
|
reqCatch as r,
|
|
27328
27327
|
setLoginTriggerSource as s,
|
|
27329
|
-
transformUrl
|
|
27328
|
+
transformUrl as t,
|
|
27330
27329
|
useModel as u,
|
|
27331
27330
|
vElementExposure as v,
|
|
27332
27331
|
transWebUrl as w,
|
|
@@ -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 { y as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { y as useLayoutConfig, _ as _export_sfc } from "./index-Du_cDTmQ.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-Du_cDTmQ.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";
|