vue-layout-gitcode 1.5.28 → 1.5.30
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-Pfv_0V1A.js → GloabarSearch-DlWeNlVc.js} +2 -2
- package/{MenuItem-V6j9-iQa.js → MenuItem-COZGJG-z.js} +1 -1
- package/{ProjectSearch-3uQaORN7.js → ProjectSearch-BLXH_Ism.js} +1 -1
- package/{SearchHistoryList-BVG9GLfD.js → SearchHistoryList-DDQ1WfZZ.js} +1 -1
- package/{SearchPrefixTag-CsmF_EiG.js → SearchPrefixTag-DGXgedQU.js} +1 -1
- package/{SearchRecommed-DyOsxFmz.js → SearchRecommed-D-XFbGoM.js} +2 -2
- package/{SearchScopeList-CsoHOEWj.js → SearchScopeList-B5EEykd-.js} +1 -1
- package/{UserSearch-DEXgPi5l.js → UserSearch-BNILiVad.js} +1 -1
- package/{index-C2ETa7j0.js → index-BgMR_vYm.js} +1 -1
- package/{index-D8cqk7Mk.js → index-CGtbi3N3.js} +25 -17
- package/{index-DT4nbw3F.js → index-CQC5dD6T.js} +1 -1
- package/index.js +1 -1
- package/{notice-D5DfOIub.js → notice-DwCD1IcT.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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-CGtbi3N3.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CQC5dD6T.js";
|
|
7
7
|
import "vue-devui-lal/tooltip";
|
|
8
8
|
import "vue-devui-lal/tooltip/style.css";
|
|
9
9
|
import "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { x as currentTheme, y as ThemeType, g as LANG_ZH, z as LANG_EN, A as getLocaleLang, G as GIcon, B as isHttps, C as emitEvent, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as currentTheme, y as ThemeType, g as LANG_ZH, z as LANG_EN, A as getLocaleLang, G as GIcon, B as isHttps, C as emitEvent, b as REPO_EVENT, _ as _export_sfc } from "./index-CGtbi3N3.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
const _hoisted_1 = ["src"];
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -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-CGtbi3N3.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-CGtbi3N3.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-CGtbi3N3.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-CQC5dD6T.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-CGtbi3N3.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-CGtbi3N3.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-CGtbi3N3.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 { w as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-CGtbi3N3.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -17129,13 +17129,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17129
17129
|
var _a;
|
|
17130
17130
|
const layoutConfig2 = useLayoutConfig();
|
|
17131
17131
|
const { t: $t } = i18n.global;
|
|
17132
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17133
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17134
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17135
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17136
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17137
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17138
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17132
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BLXH_Ism.js"));
|
|
17133
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-BNILiVad.js"));
|
|
17134
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DlWeNlVc.js"));
|
|
17135
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DDQ1WfZZ.js"));
|
|
17136
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B5EEykd-.js"));
|
|
17137
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DGXgedQU.js"));
|
|
17138
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D-XFbGoM.js"));
|
|
17139
17139
|
const props = __props;
|
|
17140
17140
|
const repoInfo = inject("repoInfo");
|
|
17141
17141
|
const orgInfo = inject("orgInfo");
|
|
@@ -17745,7 +17745,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17745
17745
|
}
|
|
17746
17746
|
});
|
|
17747
17747
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17748
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17748
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DwCD1IcT.js"));
|
|
17749
17749
|
function clearNotice() {
|
|
17750
17750
|
if (localStorage$2.getItem("validator_email")) {
|
|
17751
17751
|
localStorage$2.removeItem("validator_email");
|
|
@@ -19803,7 +19803,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19803
19803
|
const layoutConfig2 = useLayoutConfig();
|
|
19804
19804
|
const { t: t2 } = i18n.global;
|
|
19805
19805
|
const route = useRoute();
|
|
19806
|
-
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-
|
|
19806
|
+
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-COZGJG-z.js"));
|
|
19807
19807
|
const ProjectMenuListV22 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuListV2$1));
|
|
19808
19808
|
const ProjectMenuList2 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuList$1));
|
|
19809
19809
|
const props = __props;
|
|
@@ -21393,13 +21393,13 @@ function bindResultResolve(params, API) {
|
|
|
21393
21393
|
function sendMessageToParent(message) {
|
|
21394
21394
|
window.parent && window.parent.postMessage(message, "*");
|
|
21395
21395
|
}
|
|
21396
|
-
function phoneAndPasswordLogin(userInfo, API, loginMethod) {
|
|
21396
|
+
function phoneAndPasswordLogin(userInfo, API, loginMethod, isRegister = false) {
|
|
21397
21397
|
successResolve({
|
|
21398
21398
|
path: new URLSearchParams(window.location.search).get("returnUrl") || "",
|
|
21399
21399
|
userInfo,
|
|
21400
21400
|
type: AuthTypeEnum.PHONE_AND_PASSWORD,
|
|
21401
21401
|
loginMethod
|
|
21402
|
-
}, API);
|
|
21402
|
+
}, API, isRegister);
|
|
21403
21403
|
const params = {
|
|
21404
21404
|
access_token: userInfo.access_token,
|
|
21405
21405
|
refresh_token: userInfo.refresh_token
|
|
@@ -21422,16 +21422,24 @@ async function redirectToDashboardIfNeeded(API) {
|
|
|
21422
21422
|
}
|
|
21423
21423
|
return false;
|
|
21424
21424
|
}
|
|
21425
|
-
async function checkUserRepositoryIssue(API) {
|
|
21425
|
+
async function checkUserRepositoryIssue(API, isRegister = false) {
|
|
21426
|
+
var _a, _b;
|
|
21426
21427
|
const isHomePage = window.location.pathname === "/";
|
|
21427
21428
|
const haveQuery = new URLSearchParams(window.location.search).size > 0;
|
|
21428
21429
|
if (isHomePage && !haveQuery) {
|
|
21429
21430
|
const redirected = await redirectToDashboardIfNeeded(API);
|
|
21430
21431
|
if (redirected) return;
|
|
21431
21432
|
}
|
|
21432
|
-
|
|
21433
|
+
const layoutConfig2 = useLayoutConfig();
|
|
21434
|
+
if (isRegister && ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.origin) === layoutConfig2.VITE_AI_HOST) {
|
|
21435
|
+
const url = new URL((_b = window == null ? void 0 : window.location) == null ? void 0 : _b.href);
|
|
21436
|
+
url.searchParams.set("aiRegist", "1");
|
|
21437
|
+
window.location.href = url.toString();
|
|
21438
|
+
} else {
|
|
21439
|
+
router.go(0);
|
|
21440
|
+
}
|
|
21433
21441
|
}
|
|
21434
|
-
async function successResolve(params, API) {
|
|
21442
|
+
async function successResolve(params, API, isRegister = false) {
|
|
21435
21443
|
var _a;
|
|
21436
21444
|
const { path, userInfo, type, loginMethod } = params;
|
|
21437
21445
|
if (userInfo) {
|
|
@@ -21444,7 +21452,7 @@ async function successResolve(params, API) {
|
|
|
21444
21452
|
const { unMount, isMounted } = usePopup();
|
|
21445
21453
|
if (isMounted()) {
|
|
21446
21454
|
unMount();
|
|
21447
|
-
checkUserRepositoryIssue(API);
|
|
21455
|
+
checkUserRepositoryIssue(API, isRegister);
|
|
21448
21456
|
return;
|
|
21449
21457
|
}
|
|
21450
21458
|
}
|
|
@@ -25058,7 +25066,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25058
25066
|
}
|
|
25059
25067
|
});
|
|
25060
25068
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25061
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25069
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BgMR_vYm.js"));
|
|
25062
25070
|
const useSlidCaptcha = () => {
|
|
25063
25071
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25064
25072
|
const open = (config) => {
|
|
@@ -25741,7 +25749,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25741
25749
|
cacheForm.mobile = res.mobile;
|
|
25742
25750
|
const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
|
|
25743
25751
|
saveLoginMobile(mobile, country);
|
|
25744
|
-
phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
|
|
25752
|
+
phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE, true);
|
|
25745
25753
|
} else {
|
|
25746
25754
|
extraErrors.requestInfo = result2.error.error_message;
|
|
25747
25755
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$9, n as isIncubationRepo, o as highlightWords, p as transWebUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
3
|
+
import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$9, n as isIncubationRepo, o as highlightWords, p as transWebUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CGtbi3N3.js";
|
|
4
4
|
import { useRouter } from "vue-router";
|
|
5
5
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
6
6
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
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-CGtbi3N3.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";
|