vue-layout-gitcode 1.2.0 → 1.2.1
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-bLGdUZ9B.js → GloabarSearch-C81eBQli.js} +2 -2
- package/{ProjectSearch-C4qpEV9n.js → ProjectSearch-CkXs5Zol.js} +1 -1
- package/{SearchHistoryList-BNmz8bGY.js → SearchHistoryList-BX_OdTVL.js} +1 -1
- package/{SearchPrefixTag-Cx0sD9xo.js → SearchPrefixTag-DKWkKXeO.js} +1 -1
- package/{SearchRecommed-5hv5iUfd.js → SearchRecommed-BUNnDwkp.js} +2 -2
- package/{SearchScopeList-Cf9lDKYH.js → SearchScopeList-C5UXYFfz.js} +1 -1
- package/{UserSearch-Bh1cUWeG.js → UserSearch-sJKoX39E.js} +1 -1
- package/{index-nUZBHDww.js → index-C1JExHMa.js} +85 -36
- package/{index-DjPSWlud.js → index-DTd5WI7b.js} +2 -1
- package/{index-Dz5FySOA.js → index-WLpSdyKt.js} +1 -1
- package/index.js +11 -11
- package/{notice-LLTB90Mk.js → notice--nrqmZoG.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-C1JExHMa.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DTd5WI7b.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-C1JExHMa.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-C1JExHMa.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-C1JExHMa.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-DTd5WI7b.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-C1JExHMa.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-C1JExHMa.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-C1JExHMa.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]" };
|
|
@@ -453,6 +453,12 @@ const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
|
|
|
453
453
|
const UTM_SOURCE = "utm_source";
|
|
454
454
|
const PASSPORT_PREFIX = "/uc";
|
|
455
455
|
const AUTH_WINDOW = "auth_window";
|
|
456
|
+
const LOGIN_MODAL_TAB_SWITCH = "loginModal_click";
|
|
457
|
+
const REGISTER_SOURCE_TAB_REPORT = "loginModal_register_click";
|
|
458
|
+
const OAUTH_CANCEL = "oauth_cancel";
|
|
459
|
+
const OAUTH_LOGIN_TYPE_KEY = "oauthType";
|
|
460
|
+
const REGISTER_SOURCE_TAB = "register_source_tab";
|
|
461
|
+
const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
|
|
456
462
|
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
457
463
|
const {
|
|
458
464
|
entries,
|
|
@@ -14168,7 +14174,8 @@ function headRequest(request) {
|
|
|
14168
14174
|
method: "post",
|
|
14169
14175
|
data,
|
|
14170
14176
|
headers: {
|
|
14171
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
14177
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
14178
|
+
"X-Source": getLoginTriggerSource()
|
|
14172
14179
|
}
|
|
14173
14180
|
})
|
|
14174
14181
|
);
|
|
@@ -14192,7 +14199,8 @@ function headRequest(request) {
|
|
|
14192
14199
|
method: "post",
|
|
14193
14200
|
data: userInfo,
|
|
14194
14201
|
headers: {
|
|
14195
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
14202
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
14203
|
+
"X-Source": getLoginTriggerSource()
|
|
14196
14204
|
}
|
|
14197
14205
|
}),
|
|
14198
14206
|
userInfo
|
|
@@ -14206,7 +14214,8 @@ function headRequest(request) {
|
|
|
14206
14214
|
method: "post",
|
|
14207
14215
|
data,
|
|
14208
14216
|
headers: {
|
|
14209
|
-
"last-repo-id": getLastTimeRepoId()
|
|
14217
|
+
"last-repo-id": getLastTimeRepoId(),
|
|
14218
|
+
"X-Source": getLoginTriggerSource()
|
|
14210
14219
|
}
|
|
14211
14220
|
})
|
|
14212
14221
|
);
|
|
@@ -14216,7 +14225,10 @@ function headRequest(request) {
|
|
|
14216
14225
|
return reqCatch(
|
|
14217
14226
|
() => request({
|
|
14218
14227
|
url: `/uc/api/v1/qrcode/${data.platform}`,
|
|
14219
|
-
method: "post"
|
|
14228
|
+
method: "post",
|
|
14229
|
+
headers: {
|
|
14230
|
+
"X-Source": getLoginTriggerSource()
|
|
14231
|
+
}
|
|
14220
14232
|
})
|
|
14221
14233
|
);
|
|
14222
14234
|
},
|
|
@@ -14244,24 +14256,30 @@ function headRequest(request) {
|
|
|
14244
14256
|
);
|
|
14245
14257
|
},
|
|
14246
14258
|
// mfa 恢复码登陆
|
|
14247
|
-
postMfaRecover(data
|
|
14259
|
+
postMfaRecover(data) {
|
|
14248
14260
|
return reqCatchV2(
|
|
14249
14261
|
() => request({
|
|
14250
14262
|
url: "/api/v1/user/oauth/login/mfa_recover",
|
|
14251
14263
|
method: "post",
|
|
14252
14264
|
data,
|
|
14253
|
-
headers
|
|
14265
|
+
headers: {
|
|
14266
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
14267
|
+
"X-Source": getLoginTriggerSource()
|
|
14268
|
+
}
|
|
14254
14269
|
})
|
|
14255
14270
|
);
|
|
14256
14271
|
},
|
|
14257
14272
|
// mfa 验证码登陆
|
|
14258
|
-
postMfaLogin(data
|
|
14273
|
+
postMfaLogin(data) {
|
|
14259
14274
|
return reqCatchV2(
|
|
14260
14275
|
() => request({
|
|
14261
14276
|
url: "/api/v1/user/oauth/login/mfa",
|
|
14262
14277
|
method: "post",
|
|
14263
14278
|
data,
|
|
14264
|
-
headers
|
|
14279
|
+
headers: {
|
|
14280
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
14281
|
+
"X-Source": getLoginTriggerSource()
|
|
14282
|
+
}
|
|
14265
14283
|
})
|
|
14266
14284
|
);
|
|
14267
14285
|
},
|
|
@@ -17597,13 +17615,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17597
17615
|
setup(__props) {
|
|
17598
17616
|
var _a;
|
|
17599
17617
|
const { t: $t } = i18n.global;
|
|
17600
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17601
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17602
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17603
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17604
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17605
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17606
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17618
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CkXs5Zol.js"));
|
|
17619
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-sJKoX39E.js"));
|
|
17620
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C81eBQli.js"));
|
|
17621
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BX_OdTVL.js"));
|
|
17622
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-C5UXYFfz.js"));
|
|
17623
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DKWkKXeO.js"));
|
|
17624
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BUNnDwkp.js"));
|
|
17607
17625
|
const props = __props;
|
|
17608
17626
|
const repoInfo = inject("repoInfo");
|
|
17609
17627
|
const orgInfo = inject("orgInfo");
|
|
@@ -18161,7 +18179,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18161
18179
|
}
|
|
18162
18180
|
});
|
|
18163
18181
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18164
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice
|
|
18182
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice--nrqmZoG.js"));
|
|
18165
18183
|
function clearNotice() {
|
|
18166
18184
|
if (localStorage$2.getItem("validator_email")) {
|
|
18167
18185
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18942,6 +18960,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18942
18960
|
};
|
|
18943
18961
|
const createRepoOrOrg = () => {
|
|
18944
18962
|
if (!props.isLogin) {
|
|
18963
|
+
setLoginTriggerSource(props.type === "project" ? "aside_createRepo" : "aside_createOrg");
|
|
18945
18964
|
useReport2("login_exposure", { source: props.type === "project" ? "aside_createRepo" : "aside_createOrg" });
|
|
18946
18965
|
}
|
|
18947
18966
|
router2.push(props.type === "project" ? projectRoute : teamRoute);
|
|
@@ -19204,6 +19223,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19204
19223
|
};
|
|
19205
19224
|
const createRepoOrOrg = () => {
|
|
19206
19225
|
if (!props.isLogin) {
|
|
19226
|
+
setLoginTriggerSource("aside_createRepo");
|
|
19207
19227
|
useReport2("login_exposure", { source: "aside_createRepo" });
|
|
19208
19228
|
}
|
|
19209
19229
|
router2.push({
|
|
@@ -20982,6 +21002,18 @@ function saveSignPath() {
|
|
|
20982
21002
|
function saveLoginType(triggerType = "") {
|
|
20983
21003
|
sessionStorage.setItem("loginType", triggerType);
|
|
20984
21004
|
}
|
|
21005
|
+
function saveOauthType(oauthType = "") {
|
|
21006
|
+
sessionStorage.setItem(OAUTH_LOGIN_TYPE_KEY, oauthType);
|
|
21007
|
+
}
|
|
21008
|
+
function getOauthType() {
|
|
21009
|
+
return sessionStorage.getItem(OAUTH_LOGIN_TYPE_KEY);
|
|
21010
|
+
}
|
|
21011
|
+
function setLoginTriggerSource(triggerSource) {
|
|
21012
|
+
sessionStorage.setItem(LOGIN_MODAL_TRIGGER_SOURCE, triggerSource);
|
|
21013
|
+
}
|
|
21014
|
+
function getLoginTriggerSource() {
|
|
21015
|
+
return sessionStorage.getItem(LOGIN_MODAL_TRIGGER_SOURCE);
|
|
21016
|
+
}
|
|
20985
21017
|
function getLoginReturnUrl() {
|
|
20986
21018
|
return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
|
|
20987
21019
|
}
|
|
@@ -21008,11 +21040,11 @@ function goAuthPage(type, noOpen = false) {
|
|
|
21008
21040
|
function bindResultResolve(params, API) {
|
|
21009
21041
|
const { responseType } = params;
|
|
21010
21042
|
if (responseType === AuthResType.CANCEL) {
|
|
21011
|
-
cancelAuth(params);
|
|
21043
|
+
cancelAuth(params, API);
|
|
21012
21044
|
} else if (responseType === AuthResType.SUCCESS) {
|
|
21013
21045
|
successResolve(params, API);
|
|
21014
21046
|
} else if (responseType === AuthResType.FAIL) {
|
|
21015
|
-
failResolve(params);
|
|
21047
|
+
failResolve(params, API);
|
|
21016
21048
|
}
|
|
21017
21049
|
}
|
|
21018
21050
|
function sendMessageToParent(message) {
|
|
@@ -21103,10 +21135,15 @@ async function handleReturnUrl(API, path) {
|
|
|
21103
21135
|
}
|
|
21104
21136
|
defaultBackResolve(returnUrl);
|
|
21105
21137
|
}
|
|
21106
|
-
function
|
|
21138
|
+
function reportCancelAuth(API) {
|
|
21139
|
+
const currentAuthType = getOauthType();
|
|
21140
|
+
currentAuthType && useReport(OAUTH_CANCEL, { source: currentAuthType }, API.report);
|
|
21141
|
+
}
|
|
21142
|
+
function cancelAuth(params, API) {
|
|
21107
21143
|
var _a;
|
|
21108
21144
|
const { noTip = false } = params;
|
|
21109
21145
|
if (isAuthWindow()) {
|
|
21146
|
+
reportCancelAuth(API);
|
|
21110
21147
|
!noTip && ((_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: t$2("gitCodeLayout.oauth.revokedAuthorization") }, "*"));
|
|
21111
21148
|
window == null ? void 0 : window.close();
|
|
21112
21149
|
return;
|
|
@@ -21115,11 +21152,12 @@ function cancelAuth(params) {
|
|
|
21115
21152
|
removeStatusAfterLogin();
|
|
21116
21153
|
defaultBackResolve(returnUrl);
|
|
21117
21154
|
}
|
|
21118
|
-
function failResolve(params) {
|
|
21155
|
+
function failResolve(params, API) {
|
|
21119
21156
|
var _a;
|
|
21120
21157
|
const { errorInfo } = params;
|
|
21121
21158
|
const msg = errorInfo || t$2("gitCodeLayout.userSetting.tips.autFai");
|
|
21122
21159
|
if (isAuthWindow()) {
|
|
21160
|
+
reportCancelAuth(API);
|
|
21123
21161
|
(_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: msg }, "*");
|
|
21124
21162
|
window == null ? void 0 : window.close();
|
|
21125
21163
|
return;
|
|
@@ -21155,6 +21193,7 @@ const HandleParentWindowGetLoginInfo = (request) => {
|
|
|
21155
21193
|
checkUserRepositoryIssue(API);
|
|
21156
21194
|
},
|
|
21157
21195
|
[AuthResType.FAIL]: (event) => {
|
|
21196
|
+
reportCancelAuth(API);
|
|
21158
21197
|
Message.warning(event.data.message || "授权失败");
|
|
21159
21198
|
}
|
|
21160
21199
|
};
|
|
@@ -21728,9 +21767,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21728
21767
|
},
|
|
21729
21768
|
emits: ["auth"],
|
|
21730
21769
|
setup(__props, { emit: __emit }) {
|
|
21770
|
+
const request = inject("request");
|
|
21771
|
+
const API = headRequest(request);
|
|
21731
21772
|
const { t: $t } = i18n.global;
|
|
21732
21773
|
const emits = __emit;
|
|
21733
21774
|
const handleClick = (icon) => {
|
|
21775
|
+
useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
|
|
21734
21776
|
emits("auth", icon.alt);
|
|
21735
21777
|
};
|
|
21736
21778
|
return (_ctx, _cache) => {
|
|
@@ -24437,10 +24479,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24437
24479
|
code: code2
|
|
24438
24480
|
};
|
|
24439
24481
|
const loginFunc = mode.value === "code" ? props.API.postMfaLogin : props.API.postMfaRecover;
|
|
24440
|
-
const
|
|
24441
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
24442
|
-
};
|
|
24443
|
-
const { error, data } = await loginFunc(params, header);
|
|
24482
|
+
const { error, data } = await loginFunc(params);
|
|
24444
24483
|
loading.value = false;
|
|
24445
24484
|
if (error) {
|
|
24446
24485
|
errorMsg.value = error.error_message;
|
|
@@ -24544,7 +24583,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24544
24583
|
}
|
|
24545
24584
|
});
|
|
24546
24585
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24547
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24586
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-WLpSdyKt.js"));
|
|
24548
24587
|
const useSlidCaptcha = () => {
|
|
24549
24588
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24550
24589
|
const open = (config) => {
|
|
@@ -25496,6 +25535,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25496
25535
|
const authType = ref(null);
|
|
25497
25536
|
const pcAuthLogin = (type) => {
|
|
25498
25537
|
authType.value = type;
|
|
25538
|
+
saveOauthType(type);
|
|
25539
|
+
if (tabPanel.value === "miniProgram") {
|
|
25540
|
+
stopPoll();
|
|
25541
|
+
miniProgramStatus.value = "TIMEOUT";
|
|
25542
|
+
}
|
|
25499
25543
|
if (localStorage$2.getItem("access_token")) {
|
|
25500
25544
|
emits("close", true);
|
|
25501
25545
|
} else {
|
|
@@ -25558,6 +25602,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25558
25602
|
});
|
|
25559
25603
|
const clickRegister = () => {
|
|
25560
25604
|
formType.value = "register";
|
|
25605
|
+
sessionStorage.setItem(REGISTER_SOURCE_TAB, tabPanel.value);
|
|
25606
|
+
useReport(REGISTER_SOURCE_TAB_REPORT, { source: tabPanel.value }, API.report);
|
|
25561
25607
|
};
|
|
25562
25608
|
const handleRegisterHarmony = () => {
|
|
25563
25609
|
emits("openHarmonyGuide");
|
|
@@ -25621,6 +25667,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25621
25667
|
const handleTabPanelChange = async (val) => {
|
|
25622
25668
|
tabPanel.value = val;
|
|
25623
25669
|
authType.value = null;
|
|
25670
|
+
useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
|
|
25624
25671
|
if (val !== "miniProgram") {
|
|
25625
25672
|
stopPoll();
|
|
25626
25673
|
handleMiniProgramReset();
|
|
@@ -25931,6 +25978,7 @@ function useLogin(request, globalStore) {
|
|
|
25931
25978
|
return;
|
|
25932
25979
|
}
|
|
25933
25980
|
if (loginTriggerSource) {
|
|
25981
|
+
setLoginTriggerSource(loginTriggerSource);
|
|
25934
25982
|
useReport2("login_exposure", { source: loginTriggerSource });
|
|
25935
25983
|
}
|
|
25936
25984
|
if (isPhone()) {
|
|
@@ -26087,13 +26135,14 @@ const index = {
|
|
|
26087
26135
|
}
|
|
26088
26136
|
};
|
|
26089
26137
|
export {
|
|
26090
|
-
|
|
26091
|
-
|
|
26092
|
-
|
|
26093
|
-
|
|
26138
|
+
useLogin as A,
|
|
26139
|
+
setLayoutConfig as B,
|
|
26140
|
+
GitCodeLayoutEmitter as C,
|
|
26141
|
+
currentTheme as D,
|
|
26094
26142
|
EVENT_NAME as E,
|
|
26095
|
-
|
|
26143
|
+
setTheme as F,
|
|
26096
26144
|
GIcon as G,
|
|
26145
|
+
index as H,
|
|
26097
26146
|
LANG_KEY as L,
|
|
26098
26147
|
REPO_MODULE as R,
|
|
26099
26148
|
SceneValue as S,
|
|
@@ -26117,12 +26166,12 @@ export {
|
|
|
26117
26166
|
highlightWords as p,
|
|
26118
26167
|
_frEventTrack as q,
|
|
26119
26168
|
reqCatch as r,
|
|
26120
|
-
|
|
26169
|
+
setLoginTriggerSource as s,
|
|
26121
26170
|
transWebUrl as t,
|
|
26122
26171
|
useModel as u,
|
|
26123
|
-
|
|
26124
|
-
|
|
26125
|
-
|
|
26126
|
-
|
|
26127
|
-
|
|
26172
|
+
useLayoutConfig as v,
|
|
26173
|
+
ToolsFloat as w,
|
|
26174
|
+
_sfc_main as x,
|
|
26175
|
+
GitCodeAside as y,
|
|
26176
|
+
GitCodeHeader as z
|
|
26128
26177
|
};
|
|
@@ -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, s as setLoginTriggerSource, 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-C1JExHMa.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";
|
|
@@ -143,6 +143,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
143
143
|
const handleStar = async (e) => {
|
|
144
144
|
e.preventDefault();
|
|
145
145
|
if (!isLogin.value) {
|
|
146
|
+
setLoginTriggerSource(props.loginTriggerSource || "search_star_repo_recommend");
|
|
146
147
|
useReport("login_exposure", { source: props.loginTriggerSource || "search_star_repo_recommend" });
|
|
147
148
|
}
|
|
148
149
|
try {
|
|
@@ -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 {
|
|
3
|
+
import { v as useLayoutConfig, _ as _export_sfc } from "./index-C1JExHMa.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,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y, z, C, x, S, w, D, H, B, F, A } from "./index-C1JExHMa.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
y as GitCodeAside,
|
|
4
|
+
z as GitCodeHeader,
|
|
5
|
+
C as GitCodeLayoutEmitter,
|
|
6
|
+
x as Login,
|
|
7
7
|
S as SceneValue,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
w as ToolsFloat,
|
|
9
|
+
D as currentTheme,
|
|
10
|
+
H as default,
|
|
11
|
+
B as setLayoutConfig,
|
|
12
|
+
F as setTheme,
|
|
13
|
+
A as useLogin
|
|
14
14
|
};
|
|
@@ -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-C1JExHMa.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";
|