vue-layout-gitcode 1.7.1 → 1.7.3
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-BKCN0Tq-.js → GloabarSearch-B8ENdpbz.js} +3 -3
- package/{MenuItem-BOlCKcjR.js → MenuItem-BbWTJ3TC.js} +1 -1
- package/{ProjectMenuList-C7JQ8C_B.js → ProjectMenuList-DcL-YWFf.js} +2 -2
- package/{ProjectMenuListV2-Bf_xd4Z4.js → ProjectMenuListV2-CbjDSbpJ.js} +2 -2
- package/{ProjectSearch-COm_iYxX.js → ProjectSearch-KXQI9EXE.js} +1 -1
- package/{SearchHistoryList-DtHZs6TI.js → SearchHistoryList-Dio7OIDt.js} +1 -1
- package/{SearchPrefixTag-D4S4TP5i.js → SearchPrefixTag-D6Hinad8.js} +1 -1
- package/{SearchRecommed-v8Tr2d9M.js → SearchRecommed-C1YDDC2d.js} +2 -2
- package/{SearchScopeList-YYiYp6KV.js → SearchScopeList-Cma8y-al.js} +1 -1
- package/{UserSearch-7Rjtmw9u.js → UserSearch-DY7rUzOa.js} +1 -1
- package/{index-DwPDP3DZ.js → index-CPnn_0jN.js} +1 -1
- package/{index-D2HFgZcz.js → index-CVWIlvsn.js} +2 -2
- package/{index-CnkOEgFB.js → index-Cb7tqq6l.js} +94 -81
- package/index.js +1 -1
- package/{notice-PaVykPNQ.js → notice-e2NCMJyf.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-GcVgjNJw.js → transWebUrl-BChMu1HZ.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-Cb7tqq6l.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-CVWIlvsn.js";
|
|
7
|
+
import "./transWebUrl-BChMu1HZ.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-Cb7tqq6l.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-Cb7tqq6l.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BChMu1HZ.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-Cb7tqq6l.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BChMu1HZ.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-Cb7tqq6l.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-Cb7tqq6l.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-Cb7tqq6l.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-CVWIlvsn.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-Cb7tqq6l.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-Cb7tqq6l.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-Cb7tqq6l.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,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-Cb7tqq6l.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, 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 { t as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, 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$b, 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, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, 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$b, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Cb7tqq6l.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BChMu1HZ.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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed as computed$1, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers,
|
|
1
|
+
import { defineComponent, computed as computed$1, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
|
|
2
2
|
import { Button } from "vue-devui-lal/button";
|
|
3
3
|
import { Popover } from "vue-devui-lal/popover";
|
|
4
4
|
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
@@ -8899,6 +8899,9 @@ function toFormData$1(obj, formData, options) {
|
|
|
8899
8899
|
if (utils$1.isDate(value)) {
|
|
8900
8900
|
return value.toISOString();
|
|
8901
8901
|
}
|
|
8902
|
+
if (utils$1.isBoolean(value)) {
|
|
8903
|
+
return value.toString();
|
|
8904
|
+
}
|
|
8902
8905
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
8903
8906
|
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
8904
8907
|
}
|
|
@@ -10202,7 +10205,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
10202
10205
|
duplex: "half",
|
|
10203
10206
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
10204
10207
|
});
|
|
10205
|
-
let response = await fetch(request);
|
|
10208
|
+
let response = await fetch(request, fetchOptions);
|
|
10206
10209
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
10207
10210
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
10208
10211
|
const options = {};
|
|
@@ -10343,7 +10346,7 @@ function dispatchRequest(config) {
|
|
|
10343
10346
|
return Promise.reject(reason);
|
|
10344
10347
|
});
|
|
10345
10348
|
}
|
|
10346
|
-
const VERSION$1 = "1.
|
|
10349
|
+
const VERSION$1 = "1.10.0";
|
|
10347
10350
|
const validators$1 = {};
|
|
10348
10351
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
10349
10352
|
validators$1[type] = function validator2(thing) {
|
|
@@ -11662,71 +11665,6 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success })
|
|
|
11662
11665
|
delete reportData["utm_source"];
|
|
11663
11666
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
11664
11667
|
};
|
|
11665
|
-
function usePopup(className, rootElement) {
|
|
11666
|
-
const root = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt")) || document.body;
|
|
11667
|
-
let cacheClass = "popup-container";
|
|
11668
|
-
if (className) {
|
|
11669
|
-
cacheClass = className;
|
|
11670
|
-
}
|
|
11671
|
-
function mount(component, options = {}) {
|
|
11672
|
-
const el = document.createElement("div");
|
|
11673
|
-
el.className = cacheClass;
|
|
11674
|
-
root.appendChild(el);
|
|
11675
|
-
const { slots, ...props } = options;
|
|
11676
|
-
const vnode = h(component, Object.assign({
|
|
11677
|
-
onClose: () => {
|
|
11678
|
-
unMount();
|
|
11679
|
-
}
|
|
11680
|
-
}, props), slots);
|
|
11681
|
-
render(vnode, el);
|
|
11682
|
-
}
|
|
11683
|
-
function unMount() {
|
|
11684
|
-
let firstClassName = "";
|
|
11685
|
-
if (cacheClass.split(" ").length) {
|
|
11686
|
-
firstClassName = cacheClass.split(" ")[0];
|
|
11687
|
-
}
|
|
11688
|
-
const el = root.querySelector(`.${firstClassName}`);
|
|
11689
|
-
if (el) {
|
|
11690
|
-
render(null, el);
|
|
11691
|
-
root.removeChild(el);
|
|
11692
|
-
}
|
|
11693
|
-
}
|
|
11694
|
-
function isMounted() {
|
|
11695
|
-
let firstClassName = "";
|
|
11696
|
-
if (cacheClass.split(" ").length) {
|
|
11697
|
-
firstClassName = cacheClass.split(" ")[0];
|
|
11698
|
-
}
|
|
11699
|
-
const el = root.querySelector(`.${firstClassName}`);
|
|
11700
|
-
return Boolean(el);
|
|
11701
|
-
}
|
|
11702
|
-
function closeModal() {
|
|
11703
|
-
const el = document.body.querySelector(".devui-modal");
|
|
11704
|
-
const mask = document.body.querySelector(".devui-modal__overlay");
|
|
11705
|
-
if (el) {
|
|
11706
|
-
el.style.display = "none";
|
|
11707
|
-
}
|
|
11708
|
-
if (mask) {
|
|
11709
|
-
mask.style.display = "none";
|
|
11710
|
-
}
|
|
11711
|
-
}
|
|
11712
|
-
function refreshModal() {
|
|
11713
|
-
const el = document.body.querySelector(".devui-modal");
|
|
11714
|
-
const mask = document.body.querySelector(".devui-modal__overlay");
|
|
11715
|
-
if (el) {
|
|
11716
|
-
el.style.display = "block";
|
|
11717
|
-
}
|
|
11718
|
-
if (mask) {
|
|
11719
|
-
mask.style.display = "block";
|
|
11720
|
-
}
|
|
11721
|
-
}
|
|
11722
|
-
return {
|
|
11723
|
-
mount,
|
|
11724
|
-
isMounted,
|
|
11725
|
-
unMount,
|
|
11726
|
-
closeModal,
|
|
11727
|
-
refreshModal
|
|
11728
|
-
};
|
|
11729
|
-
}
|
|
11730
11668
|
const _hoisted_1$t = ["href", "target", "disabled"];
|
|
11731
11669
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11732
11670
|
...{
|
|
@@ -16870,13 +16808,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16870
16808
|
var _a;
|
|
16871
16809
|
const layoutConfig2 = useLayoutConfig();
|
|
16872
16810
|
const { t: $t } = i18n.global;
|
|
16873
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16874
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16875
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16876
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16877
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16878
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16879
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16811
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-KXQI9EXE.js"));
|
|
16812
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DY7rUzOa.js"));
|
|
16813
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B8ENdpbz.js"));
|
|
16814
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Dio7OIDt.js"));
|
|
16815
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Cma8y-al.js"));
|
|
16816
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-D6Hinad8.js"));
|
|
16817
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C1YDDC2d.js"));
|
|
16880
16818
|
const props = __props;
|
|
16881
16819
|
const repoInfo = inject("repoInfo");
|
|
16882
16820
|
const orgInfo = inject("orgInfo");
|
|
@@ -17530,7 +17468,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17530
17468
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17531
17469
|
}
|
|
17532
17470
|
};
|
|
17533
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17471
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-e2NCMJyf.js"));
|
|
17534
17472
|
function clearNotice() {
|
|
17535
17473
|
if (localStorage$2.getItem("validator_email")) {
|
|
17536
17474
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18273,9 +18211,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18273
18211
|
const layoutConfig2 = useLayoutConfig();
|
|
18274
18212
|
const { t: t2 } = i18n.global;
|
|
18275
18213
|
const route = useRoute();
|
|
18276
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18277
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18278
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18214
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-BbWTJ3TC.js"));
|
|
18215
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CbjDSbpJ.js"));
|
|
18216
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DcL-YWFf.js"));
|
|
18279
18217
|
const props = __props;
|
|
18280
18218
|
console.log("slotKeys", props.slotKeys);
|
|
18281
18219
|
console.log("props", props);
|
|
@@ -20148,8 +20086,11 @@ function getOauthType() {
|
|
|
20148
20086
|
function setLoginTriggerSource(triggerSource) {
|
|
20149
20087
|
sessionStorage$1.setItem(LOGIN_MODAL_TRIGGER_SOURCE, triggerSource);
|
|
20150
20088
|
}
|
|
20089
|
+
function setLoginTriggerSourceCookie(triggerSource) {
|
|
20090
|
+
api.set(LOGIN_MODAL_TRIGGER_SOURCE, triggerSource, { expires: 1, domain: layoutConfig.VITE_COOKIE_DOMAIN });
|
|
20091
|
+
}
|
|
20151
20092
|
function getLoginTriggerSource() {
|
|
20152
|
-
return sessionStorage$1.getItem(LOGIN_MODAL_TRIGGER_SOURCE);
|
|
20093
|
+
return sessionStorage$1.getItem(LOGIN_MODAL_TRIGGER_SOURCE) || api.get(LOGIN_MODAL_TRIGGER_SOURCE);
|
|
20153
20094
|
}
|
|
20154
20095
|
function getRegisterSourceTab() {
|
|
20155
20096
|
return sessionStorage$1.getItem(REGISTER_SOURCE_TAB);
|
|
@@ -20254,6 +20195,7 @@ async function successResolve(params, API, isRegister = false) {
|
|
|
20254
20195
|
setEmailValid(username, email);
|
|
20255
20196
|
}
|
|
20256
20197
|
saveLastLoginType(loginMethod);
|
|
20198
|
+
removeLoginTriggerSourceCookie();
|
|
20257
20199
|
if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
|
|
20258
20200
|
const { unMount, isMounted } = usePopup();
|
|
20259
20201
|
if (isMounted()) {
|
|
@@ -20332,6 +20274,9 @@ function removeStatusAfterLogin() {
|
|
|
20332
20274
|
localStorage$2.removeItem("loginReturnUrl");
|
|
20333
20275
|
api.set("third_utm_source_sign_path", "", { expires: -1, domain: layoutConfig.VITE_COOKIE_DOMAIN });
|
|
20334
20276
|
}
|
|
20277
|
+
function removeLoginTriggerSourceCookie() {
|
|
20278
|
+
api.set(LOGIN_MODAL_TRIGGER_SOURCE, "", { expires: -1, domain: layoutConfig.VITE_COOKIE_DOMAIN });
|
|
20279
|
+
}
|
|
20335
20280
|
function defaultBackResolve(url) {
|
|
20336
20281
|
if (typeof window !== "undefined" && window.location) {
|
|
20337
20282
|
window.location.replace(removeIsLoginParam(url));
|
|
@@ -20374,6 +20319,72 @@ function saveLoginMobile(mobile, country) {
|
|
|
20374
20319
|
function saveLastLoginType(loginMethod) {
|
|
20375
20320
|
localStorage$2.setItem("lastLoginMethod", loginMethod);
|
|
20376
20321
|
}
|
|
20322
|
+
function usePopup(className, rootElement) {
|
|
20323
|
+
const root = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt")) || document.body;
|
|
20324
|
+
let cacheClass = "popup-container";
|
|
20325
|
+
if (className) {
|
|
20326
|
+
cacheClass = className;
|
|
20327
|
+
}
|
|
20328
|
+
function mount(component, options = {}) {
|
|
20329
|
+
const el = document.createElement("div");
|
|
20330
|
+
el.className = cacheClass;
|
|
20331
|
+
root.appendChild(el);
|
|
20332
|
+
const { slots, ...props } = options;
|
|
20333
|
+
const vnode = h(component, Object.assign({
|
|
20334
|
+
onClose: () => {
|
|
20335
|
+
unMount();
|
|
20336
|
+
}
|
|
20337
|
+
}, props), slots);
|
|
20338
|
+
render(vnode, el);
|
|
20339
|
+
}
|
|
20340
|
+
function unMount() {
|
|
20341
|
+
let firstClassName = "";
|
|
20342
|
+
if (cacheClass.split(" ").length) {
|
|
20343
|
+
firstClassName = cacheClass.split(" ")[0];
|
|
20344
|
+
}
|
|
20345
|
+
const el = root.querySelector(`.${firstClassName}`);
|
|
20346
|
+
if (el) {
|
|
20347
|
+
render(null, el);
|
|
20348
|
+
root.removeChild(el);
|
|
20349
|
+
}
|
|
20350
|
+
removeLoginTriggerSourceCookie();
|
|
20351
|
+
}
|
|
20352
|
+
function isMounted() {
|
|
20353
|
+
let firstClassName = "";
|
|
20354
|
+
if (cacheClass.split(" ").length) {
|
|
20355
|
+
firstClassName = cacheClass.split(" ")[0];
|
|
20356
|
+
}
|
|
20357
|
+
const el = root.querySelector(`.${firstClassName}`);
|
|
20358
|
+
return Boolean(el);
|
|
20359
|
+
}
|
|
20360
|
+
function closeModal() {
|
|
20361
|
+
const el = document.body.querySelector(".devui-modal");
|
|
20362
|
+
const mask = document.body.querySelector(".devui-modal__overlay");
|
|
20363
|
+
if (el) {
|
|
20364
|
+
el.style.display = "none";
|
|
20365
|
+
}
|
|
20366
|
+
if (mask) {
|
|
20367
|
+
mask.style.display = "none";
|
|
20368
|
+
}
|
|
20369
|
+
}
|
|
20370
|
+
function refreshModal() {
|
|
20371
|
+
const el = document.body.querySelector(".devui-modal");
|
|
20372
|
+
const mask = document.body.querySelector(".devui-modal__overlay");
|
|
20373
|
+
if (el) {
|
|
20374
|
+
el.style.display = "block";
|
|
20375
|
+
}
|
|
20376
|
+
if (mask) {
|
|
20377
|
+
mask.style.display = "block";
|
|
20378
|
+
}
|
|
20379
|
+
}
|
|
20380
|
+
return {
|
|
20381
|
+
mount,
|
|
20382
|
+
isMounted,
|
|
20383
|
+
unMount,
|
|
20384
|
+
closeModal,
|
|
20385
|
+
refreshModal
|
|
20386
|
+
};
|
|
20387
|
+
}
|
|
20377
20388
|
const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
20378
20389
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20379
20390
|
__proto__: null,
|
|
@@ -23874,7 +23885,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23874
23885
|
}
|
|
23875
23886
|
});
|
|
23876
23887
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23877
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23888
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-CPnn_0jN.js"));
|
|
23878
23889
|
const useSlidCaptcha = () => {
|
|
23879
23890
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23880
23891
|
const open = (config) => {
|
|
@@ -25489,8 +25500,10 @@ function useLogin(request, globalStore) {
|
|
|
25489
25500
|
if (isMounted()) {
|
|
25490
25501
|
return;
|
|
25491
25502
|
}
|
|
25503
|
+
removeLoginTriggerSourceCookie();
|
|
25492
25504
|
if (loginTriggerSource) {
|
|
25493
25505
|
setLoginTriggerSource(loginTriggerSource);
|
|
25506
|
+
setLoginTriggerSourceCookie(loginTriggerSource);
|
|
25494
25507
|
useReport2("login_exposure", { source: loginTriggerSource });
|
|
25495
25508
|
}
|
|
25496
25509
|
if (isPhone()) {
|
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-Cb7tqq6l.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