vue-layout-gitcode 1.1.45 → 1.1.46
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-nXZkxFvg.js → GloabarSearch-B8xrf6gL.js} +2 -2
- package/{ProjectSearch-BmTABzDv.js → ProjectSearch-DO4uWZCd.js} +1 -1
- package/{SearchHistoryList-Fh2jD5Wv.js → SearchHistoryList-Dp9dcJ0O.js} +1 -1
- package/{SearchPrefixTag-BvXE0okx.js → SearchPrefixTag-DX34xsiT.js} +1 -1
- package/{SearchRecommed-CAAEXfNK.js → SearchRecommed-_PFJLNAq.js} +2 -2
- package/{SearchScopeList-BsyQyZQ7.js → SearchScopeList-jwjkWHDP.js} +1 -1
- package/{UserSearch-IBAQMLXR.js → UserSearch-0zcUvGXl.js} +1 -1
- package/{index-BEaRFcUw.js → index-CeRpqf9R.js} +1 -1
- package/{index-CpcxZFgi.js → index-D2W9BVea.js} +1 -1
- package/{index-DmxcNTbW.js → index-DxsXLTGy.js} +18 -18
- package/index.js +1 -1
- package/{notice-ic4-_6MC.js → notice-bPao6_Zu.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, ref, watch, onMounted, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
4
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-DxsXLTGy.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CeRpqf9R.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "px-[8px] history-list-project pl-[8px]"
|
|
@@ -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-DxsXLTGy.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-DxsXLTGy.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-DxsXLTGy.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, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-CeRpqf9R.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-DxsXLTGy.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-DxsXLTGy.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-DxsXLTGy.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, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, unref, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
|
|
2
|
-
import { d as debounce, G as GIcon, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
2
|
+
import { d as debounce, G as GIcon, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DxsXLTGy.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";
|
|
@@ -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 { s as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { s as useLayoutConfig, _ as _export_sfc } from "./index-DxsXLTGy.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -15084,7 +15084,6 @@ function keys$3(object) {
|
|
|
15084
15084
|
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
15085
15085
|
}
|
|
15086
15086
|
var keys_1 = keys$3;
|
|
15087
|
-
const keys$4 = /* @__PURE__ */ getDefaultExportFromCjs(keys_1);
|
|
15088
15087
|
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
15089
15088
|
function baseAssign$1(object, source) {
|
|
15090
15089
|
return object && copyObject$3(source, keys$2(source), object);
|
|
@@ -17586,13 +17585,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17586
17585
|
setup(__props) {
|
|
17587
17586
|
var _a;
|
|
17588
17587
|
const { t: $t } = i18n.global;
|
|
17589
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17590
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17591
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17592
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17593
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17594
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17595
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17588
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DO4uWZCd.js"));
|
|
17589
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-0zcUvGXl.js"));
|
|
17590
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B8xrf6gL.js"));
|
|
17591
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Dp9dcJ0O.js"));
|
|
17592
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-jwjkWHDP.js"));
|
|
17593
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DX34xsiT.js"));
|
|
17594
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-_PFJLNAq.js"));
|
|
17596
17595
|
const props = __props;
|
|
17597
17596
|
const repoInfo = inject("repoInfo");
|
|
17598
17597
|
const orgInfo = inject("orgInfo");
|
|
@@ -18150,7 +18149,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18150
18149
|
}
|
|
18151
18150
|
});
|
|
18152
18151
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18153
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18152
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-bPao6_Zu.js"));
|
|
18154
18153
|
function clearNotice() {
|
|
18155
18154
|
if (localStorage$2.getItem("validator_email")) {
|
|
18156
18155
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18345,6 +18344,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18345
18344
|
addEventListener("notice", toNotice);
|
|
18346
18345
|
window.addEventListener("message", (event) => {
|
|
18347
18346
|
var _a, _b;
|
|
18347
|
+
console.log("收到 message - baselayout", event);
|
|
18348
18348
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
18349
18349
|
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_a = event.data) == null ? void 0 : _a.type)) {
|
|
18350
18350
|
action[(_b = event.data) == null ? void 0 : _b.type](event);
|
|
@@ -20748,7 +20748,7 @@ function saveStatusBeforeLogin(param) {
|
|
|
20748
20748
|
saveLoginType(triggerType);
|
|
20749
20749
|
}
|
|
20750
20750
|
function saveLoginReturnUrl(url = "") {
|
|
20751
|
-
const returnUrl = url ||
|
|
20751
|
+
const returnUrl = url || new URLSearchParams(window.location.search).get("returnUrl") || "";
|
|
20752
20752
|
localStorage$2.setItem("loginReturnUrl", returnUrl);
|
|
20753
20753
|
}
|
|
20754
20754
|
function saveSignPath() {
|
|
@@ -20794,9 +20794,8 @@ function sendMessageToParent(message) {
|
|
|
20794
20794
|
window.parent && window.parent.postMessage(message, "*");
|
|
20795
20795
|
}
|
|
20796
20796
|
function phoneAndPasswordLogin(userInfo, API) {
|
|
20797
|
-
var _a, _b;
|
|
20798
20797
|
successResolve({
|
|
20799
|
-
path:
|
|
20798
|
+
path: new URLSearchParams(window.location.search).get("returnUrl") || "",
|
|
20800
20799
|
userInfo,
|
|
20801
20800
|
type: AuthTypeEnum.PHONE_AND_PASSWORD
|
|
20802
20801
|
}, API);
|
|
@@ -20815,12 +20814,12 @@ async function checkProjectIssuePrInfo(API) {
|
|
|
20815
20814
|
return haveRepositoryInfo;
|
|
20816
20815
|
}
|
|
20817
20816
|
async function checkUserRepositoryIssue(API) {
|
|
20818
|
-
const isHomePage =
|
|
20819
|
-
const haveQuery =
|
|
20817
|
+
const isHomePage = window.location.pathname === "/";
|
|
20818
|
+
const haveQuery = new URLSearchParams(window.location.search).size > 0;
|
|
20820
20819
|
if (isHomePage && !haveQuery) {
|
|
20821
20820
|
const haveRepositoryInfo = await checkProjectIssuePrInfo(API);
|
|
20822
20821
|
if (haveRepositoryInfo) {
|
|
20823
|
-
|
|
20822
|
+
window.location.href = "/dashboard";
|
|
20824
20823
|
return;
|
|
20825
20824
|
}
|
|
20826
20825
|
}
|
|
@@ -20872,7 +20871,7 @@ async function handleReturnUrl(API, path) {
|
|
|
20872
20871
|
if (isHomePage && !search) {
|
|
20873
20872
|
const haveRepositoryInfo = await checkProjectIssuePrInfo(API);
|
|
20874
20873
|
if (haveRepositoryInfo) {
|
|
20875
|
-
|
|
20874
|
+
window.location.replace("/dashboard");
|
|
20876
20875
|
return;
|
|
20877
20876
|
}
|
|
20878
20877
|
}
|
|
@@ -20923,7 +20922,8 @@ const HandleParentWindowGetLoginInfo = (request) => {
|
|
|
20923
20922
|
unMount();
|
|
20924
20923
|
}
|
|
20925
20924
|
const returnUrl = getLoginReturnUrl();
|
|
20926
|
-
|
|
20925
|
+
const { pathname } = window.location;
|
|
20926
|
+
if (!isPhone() && returnUrl && pathname === "/login") {
|
|
20927
20927
|
handleReturnUrl(API);
|
|
20928
20928
|
return;
|
|
20929
20929
|
}
|
|
@@ -24319,7 +24319,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24319
24319
|
}
|
|
24320
24320
|
});
|
|
24321
24321
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24322
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24322
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-D2W9BVea.js"));
|
|
24323
24323
|
const useSlidCaptcha = () => {
|
|
24324
24324
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24325
24325
|
const open = (config) => {
|
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-DxsXLTGy.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";
|