vue-layout-gitcode 1.10.10 → 1.10.12
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-DUL5Nl5N.js → GloabarSearch-BH1kyLmx.js} +3 -3
- package/{MenuItem-Dd8w-uJG.js → MenuItem-dLEw2jEY.js} +1 -1
- package/{ProjectMenuList-DBXLtG2G.js → ProjectMenuList-CnULbBay.js} +2 -2
- package/{ProjectMenuListV2-QUm3X2t0.js → ProjectMenuListV2-B1gEPXOT.js} +2 -2
- package/{ProjectSearch-CMugJqjv.js → ProjectSearch-CuRR_Qfh.js} +1 -1
- package/{SearchHistoryList-CJTLkNg0.js → SearchHistoryList-CX3MOQnL.js} +1 -1
- package/{SearchPrefixTag-I3wSahrr.js → SearchPrefixTag-C61bhDtE.js} +1 -1
- package/{SearchRecommed-CRgflbzl.js → SearchRecommed-dwPsbHkp.js} +2 -2
- package/{SearchScopeList-oo4vAXER.js → SearchScopeList-fKPVLmZC.js} +1 -1
- package/{UserSearch-Cwly5mnk.js → UserSearch-CRimBUfM.js} +1 -1
- package/{index-Dc5cET6V.js → index-B5SPmNsv.js} +2 -2
- package/index-BDOvV0e4.js +120 -0
- package/{index-BRrfHHfk.js → index-C4flXqUk.js} +888 -136
- package/{index-DPDJvnHe.js → index-Dqaz3zpg.js} +2 -5
- package/index.js +12 -12
- package/{notice-BxIpPFCN.js → notice-C-JfMfRw.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DN3m9R5c.js → transWebUrl-B13zn-hx.js} +1 -1
- package/index-De4SI5w4.js +0 -101
|
@@ -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-C4flXqUk.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-B5SPmNsv.js";
|
|
7
|
+
import "./transWebUrl-B13zn-hx.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 { a as i18n,
|
|
2
|
+
import { a as i18n, z as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, x as getLocaleLang, G as GIcon, D as emitEvent, F as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-C4flXqUk.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,
|
|
2
|
+
import { a as i18n, z as useLayoutConfig, G as GIcon, t as transformUrl, I as _sfc_main$1, J as loadAsideData, D as emitEvent, s as setLoginTriggerSource, f as useRequestReport, H as asideRequest, _ as _export_sfc } from "./index-C4flXqUk.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-B13zn-hx.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,
|
|
2
|
+
import { a as i18n, z as useLayoutConfig, t as transformUrl, H as asideRequest, G as GIcon, D as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-C4flXqUk.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-B13zn-hx.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-C4flXqUk.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-C4flXqUk.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-C4flXqUk.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-B5SPmNsv.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-C4flXqUk.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-C4flXqUk.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-C4flXqUk.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,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, j as useCookie, k as usePageResize, L as LANG_ZH, 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, w as LANG_KEY } 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, j as useCookie, k as usePageResize, L as LANG_ZH, 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, w as LANG_KEY } from "./index-C4flXqUk.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-B13zn-hx.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";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
+
import { x as getLocaleLang, L as LANG_ZH, y as slidCaptchaManager, z as useLayoutConfig, _ as _export_sfc } from "./index-C4flXqUk.js";
|
|
3
|
+
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
4
|
+
import "vue-devui-lal/overlay/style.css";
|
|
5
|
+
const TARGET_TEXT = "Click in order:";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
...{ name: "tianaiCaptcha" },
|
|
8
|
+
__name: "index",
|
|
9
|
+
emits: ["close", "success"],
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
const isZh = getLocaleLang() === LANG_ZH;
|
|
12
|
+
const emits = __emit;
|
|
13
|
+
let timer = null;
|
|
14
|
+
const captchaInit = async () => {
|
|
15
|
+
try {
|
|
16
|
+
const captchaBox = document.getElementById("captcha-box");
|
|
17
|
+
if (!captchaBox) {
|
|
18
|
+
console.error("验证码容器元素不存在");
|
|
19
|
+
emits("close");
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const baseURL = useLayoutConfig().VITE_API_HOST;
|
|
23
|
+
const config = {
|
|
24
|
+
requestCaptchaDataUrl: `${baseURL}/uc/api/v1/captcha/gen`,
|
|
25
|
+
validCaptchaUrl: `${baseURL}/uc/api/v1/captcha/check`,
|
|
26
|
+
bindEl: "#captcha-box",
|
|
27
|
+
validSuccess: (res) => {
|
|
28
|
+
stopTimer();
|
|
29
|
+
slidCaptchaManager.destroyTAC();
|
|
30
|
+
emits("success", res.data);
|
|
31
|
+
},
|
|
32
|
+
validFail: () => {
|
|
33
|
+
slidCaptchaManager.reloadCaptcha();
|
|
34
|
+
stopTimer();
|
|
35
|
+
startTimer();
|
|
36
|
+
},
|
|
37
|
+
btnRefreshFun: () => {
|
|
38
|
+
slidCaptchaManager.reloadCaptcha();
|
|
39
|
+
stopTimer();
|
|
40
|
+
startTimer();
|
|
41
|
+
},
|
|
42
|
+
btnCloseFun: () => {
|
|
43
|
+
stopTimer();
|
|
44
|
+
slidCaptchaManager.destroyTAC();
|
|
45
|
+
emits("close");
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const style = {
|
|
49
|
+
logoUrl: null
|
|
50
|
+
// 去除logo
|
|
51
|
+
};
|
|
52
|
+
await slidCaptchaManager.initTAC(
|
|
53
|
+
"https://cdn-static.gitcode.com/js/tac/",
|
|
54
|
+
config,
|
|
55
|
+
style,
|
|
56
|
+
() => {
|
|
57
|
+
slidCaptchaManager.init();
|
|
58
|
+
nextTick(() => {
|
|
59
|
+
replaceEnglishTip();
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
(err) => {
|
|
63
|
+
console.error("初始化 TAC 失败:", err);
|
|
64
|
+
emits("close");
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
} catch (error) {
|
|
68
|
+
console.error("初始化 TAC 失败:", error);
|
|
69
|
+
emits("close");
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const replaceEnglishTip = () => {
|
|
73
|
+
if (isZh) return false;
|
|
74
|
+
const tipDom = document.querySelector("#captcha-box #tianai-captcha-click-track-font");
|
|
75
|
+
if (tipDom && tipDom.textContent !== TARGET_TEXT) {
|
|
76
|
+
tipDom.textContent = TARGET_TEXT;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
if (tipDom && tipDom.textContent === TARGET_TEXT) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
};
|
|
84
|
+
const startTimer = () => {
|
|
85
|
+
if (isZh) return;
|
|
86
|
+
stopTimer();
|
|
87
|
+
timer = window.setInterval(() => {
|
|
88
|
+
replaceEnglishTip();
|
|
89
|
+
}, 100);
|
|
90
|
+
};
|
|
91
|
+
const stopTimer = () => {
|
|
92
|
+
if (timer) {
|
|
93
|
+
clearInterval(timer);
|
|
94
|
+
timer = null;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
onMounted(() => {
|
|
98
|
+
startTimer();
|
|
99
|
+
nextTick(() => {
|
|
100
|
+
captchaInit();
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
onUnmounted(() => {
|
|
104
|
+
stopTimer();
|
|
105
|
+
slidCaptchaManager.destroyTAC();
|
|
106
|
+
});
|
|
107
|
+
return (_ctx, _cache) => {
|
|
108
|
+
return openBlock(), createBlock(unref(FixedOverlay), { class: "captcha-overlay-slid" }, {
|
|
109
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
110
|
+
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
111
|
+
])]),
|
|
112
|
+
_: 1
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
118
|
+
export {
|
|
119
|
+
index as default
|
|
120
|
+
};
|