vue-layout-gitcode 1.5.132 → 1.6.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-BvY300s8.js → GloabarSearch-BbRqBMmu.js} +3 -3
- package/{MenuItem-CLrMbzwa.js → MenuItem-i97zwNGH.js} +1 -1
- package/{ProjectMenuList-Di8P_yWw.js → ProjectMenuList-sIr-9kp3.js} +2 -2
- package/{ProjectMenuListV2-BebEl-jQ.js → ProjectMenuListV2-BhVhLwNx.js} +2 -2
- package/{ProjectSearch-8YfcBjcl.js → ProjectSearch-ahsx9m7I.js} +1 -1
- package/{SearchHistoryList-DWhKfbW_.js → SearchHistoryList-vIqvSmmv.js} +1 -1
- package/{SearchPrefixTag-ZirxcmQL.js → SearchPrefixTag-Cqxlkzhm.js} +1 -1
- package/{SearchRecommed-CVonzs22.js → SearchRecommed-juC_b_9i.js} +2 -2
- package/{SearchScopeList-CxDwKGvv.js → SearchScopeList-CnZnpGSC.js} +1 -1
- package/{UserSearch-DLpZBJD7.js → UserSearch-D8hObGqh.js} +1 -1
- package/{index-DVoJWwHl.js → index-D_8awRg3.js} +1 -1
- package/{index-yGPBNVMd.js → index-GorSenuN.js} +175 -160
- package/{index-C6A83cuj.js → index-pd_iY4hA.js} +2 -2
- package/index.js +1 -1
- package/{notice-CCcYVKVq.js → notice-BDFgkLs-.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-Cm9utQEf.js → transWebUrl-aCmgu1Bv.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-GorSenuN.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-pd_iY4hA.js";
|
|
7
|
+
import "./transWebUrl-aCmgu1Bv.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-GorSenuN.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-GorSenuN.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-aCmgu1Bv.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-GorSenuN.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-aCmgu1Bv.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-GorSenuN.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-GorSenuN.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-GorSenuN.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-pd_iY4hA.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-GorSenuN.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-GorSenuN.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-GorSenuN.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-GorSenuN.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -8897,6 +8897,9 @@ function toFormData$1(obj, formData, options) {
|
|
|
8897
8897
|
if (utils$1.isDate(value)) {
|
|
8898
8898
|
return value.toISOString();
|
|
8899
8899
|
}
|
|
8900
|
+
if (utils$1.isBoolean(value)) {
|
|
8901
|
+
return value.toString();
|
|
8902
|
+
}
|
|
8900
8903
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
8901
8904
|
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
8902
8905
|
}
|
|
@@ -10200,7 +10203,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
10200
10203
|
duplex: "half",
|
|
10201
10204
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
10202
10205
|
});
|
|
10203
|
-
let response = await fetch(request);
|
|
10206
|
+
let response = await fetch(request, fetchOptions);
|
|
10204
10207
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
10205
10208
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
10206
10209
|
const options = {};
|
|
@@ -10341,7 +10344,7 @@ function dispatchRequest(config) {
|
|
|
10341
10344
|
return Promise.reject(reason);
|
|
10342
10345
|
});
|
|
10343
10346
|
}
|
|
10344
|
-
const VERSION$1 = "1.
|
|
10347
|
+
const VERSION$1 = "1.10.0";
|
|
10345
10348
|
const validators$1 = {};
|
|
10346
10349
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
10347
10350
|
validators$1[type] = function validator2(thing) {
|
|
@@ -11511,6 +11514,143 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11511
11514
|
}
|
|
11512
11515
|
});
|
|
11513
11516
|
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11517
|
+
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
11518
|
+
repoTypeEnum2["NORMAL"] = "0";
|
|
11519
|
+
repoTypeEnum2["MODEL"] = "1";
|
|
11520
|
+
repoTypeEnum2["DATASET"] = "2";
|
|
11521
|
+
repoTypeEnum2["SPACE"] = "3";
|
|
11522
|
+
return repoTypeEnum2;
|
|
11523
|
+
})(repoTypeEnum || {});
|
|
11524
|
+
var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
11525
|
+
AuthTypeEnum2["CSDN"] = "csdn";
|
|
11526
|
+
AuthTypeEnum2["GITEE"] = "gitee";
|
|
11527
|
+
AuthTypeEnum2["GITHUB"] = "github";
|
|
11528
|
+
AuthTypeEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
11529
|
+
AuthTypeEnum2["WECHAT_MP"] = "wechat_mp";
|
|
11530
|
+
AuthTypeEnum2["H_BUILDER"] = "hbuilder";
|
|
11531
|
+
AuthTypeEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
11532
|
+
AuthTypeEnum2["ATOMGIT"] = "atomgit";
|
|
11533
|
+
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
11534
|
+
AuthTypeEnum2["HUAWEI"] = "huawei";
|
|
11535
|
+
return AuthTypeEnum2;
|
|
11536
|
+
})(AuthTypeEnum || {});
|
|
11537
|
+
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
11538
|
+
LoginMethodEnum2["PHONE"] = "phone";
|
|
11539
|
+
LoginMethodEnum2["PASSWORD"] = "password";
|
|
11540
|
+
LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
|
|
11541
|
+
LoginMethodEnum2["HARMONY"] = "harmony";
|
|
11542
|
+
LoginMethodEnum2["CSDN"] = "csdn";
|
|
11543
|
+
LoginMethodEnum2["ATOMGIT"] = "atomgit";
|
|
11544
|
+
LoginMethodEnum2["GITEE"] = "gitee";
|
|
11545
|
+
LoginMethodEnum2["GITHUB"] = "github";
|
|
11546
|
+
LoginMethodEnum2["HUAWEI"] = "huawei";
|
|
11547
|
+
LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
11548
|
+
LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
|
|
11549
|
+
LoginMethodEnum2["H_BUILDER"] = "hbuilder";
|
|
11550
|
+
LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
11551
|
+
return LoginMethodEnum2;
|
|
11552
|
+
})(LoginMethodEnum || {});
|
|
11553
|
+
var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
|
|
11554
|
+
AuthResType2["SUCCESS"] = "success";
|
|
11555
|
+
AuthResType2["FAIL"] = "fail";
|
|
11556
|
+
AuthResType2["CANCEL"] = "cancel";
|
|
11557
|
+
return AuthResType2;
|
|
11558
|
+
})(AuthResType || {});
|
|
11559
|
+
var REPO_EVENT = /* @__PURE__ */ ((REPO_EVENT2) => {
|
|
11560
|
+
REPO_EVENT2["CLICK"] = "PC_PageClick";
|
|
11561
|
+
REPO_EVENT2["SHOW"] = "PC_PageShow";
|
|
11562
|
+
REPO_EVENT2["STAY"] = "page_stay";
|
|
11563
|
+
return REPO_EVENT2;
|
|
11564
|
+
})(REPO_EVENT || {});
|
|
11565
|
+
var REPO_MODULE = /* @__PURE__ */ ((REPO_MODULE2) => {
|
|
11566
|
+
REPO_MODULE2["SEARCH_SUGGESTION_CARD"] = "搜索联想卡片";
|
|
11567
|
+
REPO_MODULE2["SEARCH_RECOMMEND_CARD"] = "搜索推荐卡片";
|
|
11568
|
+
REPO_MODULE2["SEARCH_BAR_CLICK"] = "搜索框点击";
|
|
11569
|
+
REPO_MODULE2["SEARCH_BAR_EXPO"] = "搜索框曝光";
|
|
11570
|
+
REPO_MODULE2["REPO"] = "搜索结果_项目";
|
|
11571
|
+
REPO_MODULE2["MODEL"] = "搜索结果_模型";
|
|
11572
|
+
REPO_MODULE2["DATASET"] = "搜索结果_数据集";
|
|
11573
|
+
REPO_MODULE2["TOPIC"] = "topic";
|
|
11574
|
+
REPO_MODULE2["TAG"] = "搜索结果_标签";
|
|
11575
|
+
REPO_MODULE2["ISSUE"] = "搜索结果_issue";
|
|
11576
|
+
REPO_MODULE2["PULLREQUEST"] = "搜索结果_pr";
|
|
11577
|
+
REPO_MODULE2["GROUP"] = "搜索结果_组织";
|
|
11578
|
+
REPO_MODULE2["USER"] = "搜索结果_用户";
|
|
11579
|
+
REPO_MODULE2["COMMIT"] = "搜索结果_commit";
|
|
11580
|
+
REPO_MODULE2["SEARCH_SUFFIX_CLICK"] = "搜索按钮点击";
|
|
11581
|
+
return REPO_MODULE2;
|
|
11582
|
+
})(REPO_MODULE || {});
|
|
11583
|
+
var ASIDE_MENU_REPO = /* @__PURE__ */ ((ASIDE_MENU_REPO2) => {
|
|
11584
|
+
ASIDE_MENU_REPO2["HOME"] = "侧边栏_首页";
|
|
11585
|
+
ASIDE_MENU_REPO2["ISSUES"] = "侧边栏_ISSUE";
|
|
11586
|
+
ASIDE_MENU_REPO2["MERGE"] = "侧边栏_PR";
|
|
11587
|
+
ASIDE_MENU_REPO2["KANBAN"] = "侧边栏_KANBAN";
|
|
11588
|
+
ASIDE_MENU_REPO2["DISCUSSIONCREATED"] = "侧边栏_讨论";
|
|
11589
|
+
ASIDE_MENU_REPO2["NEWS"] = "侧边栏_资讯中心";
|
|
11590
|
+
ASIDE_MENU_REPO2["CHATBOT"] = "侧边栏_天启";
|
|
11591
|
+
ASIDE_MENU_REPO2["COMPETITION"] = "侧边栏_大赛平台";
|
|
11592
|
+
ASIDE_MENU_REPO2["ASIDEEXPO"] = "侧边栏_曝光";
|
|
11593
|
+
ASIDE_MENU_REPO2["CHATBOTEXPO"] = "头部天启入口_曝光";
|
|
11594
|
+
ASIDE_MENU_REPO2["CHATBOTCLICK"] = "头部天启入口_点击";
|
|
11595
|
+
ASIDE_MENU_REPO2["TOOLBAR"] = "toolbar_点击";
|
|
11596
|
+
ASIDE_MENU_REPO2["TOOLBAREXPO"] = "toolbar_曝光";
|
|
11597
|
+
ASIDE_MENU_REPO2["ASIDEBTNCLICK"] = "侧边栏按钮_点击";
|
|
11598
|
+
ASIDE_MENU_REPO2["STICKYNOTICECLICK"] = "吸顶公告_点击";
|
|
11599
|
+
ASIDE_MENU_REPO2["STICKYNOTICEEXPO"] = "吸顶公告_曝光";
|
|
11600
|
+
return ASIDE_MENU_REPO2;
|
|
11601
|
+
})(ASIDE_MENU_REPO || {});
|
|
11602
|
+
var TOPIC_TYPE = /* @__PURE__ */ ((TOPIC_TYPE2) => {
|
|
11603
|
+
TOPIC_TYPE2[TOPIC_TYPE2["OPERATION"] = 0] = "OPERATION";
|
|
11604
|
+
TOPIC_TYPE2[TOPIC_TYPE2["USER"] = 1] = "USER";
|
|
11605
|
+
return TOPIC_TYPE2;
|
|
11606
|
+
})(TOPIC_TYPE || {});
|
|
11607
|
+
var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
|
|
11608
|
+
REPO_TYPE2[REPO_TYPE2["GITCODE"] = 0] = "GITCODE";
|
|
11609
|
+
REPO_TYPE2[REPO_TYPE2["GITHUB_MIRRORS"] = 1] = "GITHUB_MIRRORS";
|
|
11610
|
+
REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
|
|
11611
|
+
return REPO_TYPE2;
|
|
11612
|
+
})(REPO_TYPE || {});
|
|
11613
|
+
const registerLoginMethodMap = {
|
|
11614
|
+
[LoginMethodEnum.PHONE]: "短信",
|
|
11615
|
+
[LoginMethodEnum.PASSWORD]: "密码",
|
|
11616
|
+
[LoginMethodEnum.MINI_PROGRAM]: "小程序登录",
|
|
11617
|
+
[LoginMethodEnum.CSDN]: "CSDN",
|
|
11618
|
+
[LoginMethodEnum.GITEE]: "Gitee",
|
|
11619
|
+
[LoginMethodEnum.GITHUB]: "GitHub",
|
|
11620
|
+
[LoginMethodEnum.HUAWEI]: "华为",
|
|
11621
|
+
[LoginMethodEnum.WECHAT_OPEN]: "微信",
|
|
11622
|
+
[LoginMethodEnum.WECHAT_MP]: "微信",
|
|
11623
|
+
[LoginMethodEnum.H_BUILDER]: "Hbuilder",
|
|
11624
|
+
[LoginMethodEnum.H_BUILDER_PLUGIN]: "Hbuilder插件",
|
|
11625
|
+
[LoginMethodEnum.ATOMGIT]: "AtomGit"
|
|
11626
|
+
};
|
|
11627
|
+
const utmSourceMap = {
|
|
11628
|
+
"csdn-blog-iframe": "快应用",
|
|
11629
|
+
"miniapp": "小程序",
|
|
11630
|
+
"web": "网页"
|
|
11631
|
+
};
|
|
11632
|
+
const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success }) => {
|
|
11633
|
+
if (!window.collectEvent) {
|
|
11634
|
+
return;
|
|
11635
|
+
}
|
|
11636
|
+
const searchParams = Object.fromEntries(new URLSearchParams(location.search).entries());
|
|
11637
|
+
const reportData = {
|
|
11638
|
+
register_login_type: isRegister ? "注册" : "登录",
|
|
11639
|
+
register_login_result: success ? "成功" : "失败",
|
|
11640
|
+
register_login_source: searchParams["utm_source"] ? utmSourceMap[searchParams["utm_source"]] : "",
|
|
11641
|
+
register_login_method: registerLoginMethodMap[registerLoginMethod] || "",
|
|
11642
|
+
article_id: searchParams["from_id"] || "",
|
|
11643
|
+
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
11644
|
+
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
11645
|
+
page_url: location.href || "",
|
|
11646
|
+
env: void 0,
|
|
11647
|
+
...searchParams
|
|
11648
|
+
};
|
|
11649
|
+
delete reportData["from_id"];
|
|
11650
|
+
delete reportData["uuid_tt_dd"];
|
|
11651
|
+
delete reportData["utm_source"];
|
|
11652
|
+
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
11653
|
+
};
|
|
11514
11654
|
function usePopup(className, rootElement) {
|
|
11515
11655
|
const root = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt")) || document.body;
|
|
11516
11656
|
let cacheClass = "popup-container";
|
|
@@ -13483,102 +13623,6 @@ const vElementExposure = {
|
|
|
13483
13623
|
beforeUnmount() {
|
|
13484
13624
|
}
|
|
13485
13625
|
};
|
|
13486
|
-
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
13487
|
-
repoTypeEnum2["NORMAL"] = "0";
|
|
13488
|
-
repoTypeEnum2["MODEL"] = "1";
|
|
13489
|
-
repoTypeEnum2["DATASET"] = "2";
|
|
13490
|
-
repoTypeEnum2["SPACE"] = "3";
|
|
13491
|
-
return repoTypeEnum2;
|
|
13492
|
-
})(repoTypeEnum || {});
|
|
13493
|
-
var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
13494
|
-
AuthTypeEnum2["CSDN"] = "csdn";
|
|
13495
|
-
AuthTypeEnum2["GITEE"] = "gitee";
|
|
13496
|
-
AuthTypeEnum2["GITHUB"] = "github";
|
|
13497
|
-
AuthTypeEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
13498
|
-
AuthTypeEnum2["WECHAT_MP"] = "wechat_mp";
|
|
13499
|
-
AuthTypeEnum2["H_BUILDER"] = "hbuilder";
|
|
13500
|
-
AuthTypeEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
13501
|
-
AuthTypeEnum2["ATOMGIT"] = "atomgit";
|
|
13502
|
-
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
13503
|
-
AuthTypeEnum2["HUAWEI"] = "huawei";
|
|
13504
|
-
return AuthTypeEnum2;
|
|
13505
|
-
})(AuthTypeEnum || {});
|
|
13506
|
-
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
13507
|
-
LoginMethodEnum2["PHONE"] = "phone";
|
|
13508
|
-
LoginMethodEnum2["PASSWORD"] = "password";
|
|
13509
|
-
LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
|
|
13510
|
-
LoginMethodEnum2["HARMONY"] = "harmony";
|
|
13511
|
-
LoginMethodEnum2["CSDN"] = "csdn";
|
|
13512
|
-
LoginMethodEnum2["ATOMGIT"] = "atomgit";
|
|
13513
|
-
LoginMethodEnum2["GITEE"] = "gitee";
|
|
13514
|
-
LoginMethodEnum2["GITHUB"] = "github";
|
|
13515
|
-
LoginMethodEnum2["HUAWEI"] = "huawei";
|
|
13516
|
-
LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
13517
|
-
LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
|
|
13518
|
-
LoginMethodEnum2["H_BUILDER"] = "hbuilder";
|
|
13519
|
-
LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
13520
|
-
return LoginMethodEnum2;
|
|
13521
|
-
})(LoginMethodEnum || {});
|
|
13522
|
-
var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
|
|
13523
|
-
AuthResType2["SUCCESS"] = "success";
|
|
13524
|
-
AuthResType2["FAIL"] = "fail";
|
|
13525
|
-
AuthResType2["CANCEL"] = "cancel";
|
|
13526
|
-
return AuthResType2;
|
|
13527
|
-
})(AuthResType || {});
|
|
13528
|
-
var REPO_EVENT = /* @__PURE__ */ ((REPO_EVENT2) => {
|
|
13529
|
-
REPO_EVENT2["CLICK"] = "PC_PageClick";
|
|
13530
|
-
REPO_EVENT2["SHOW"] = "PC_PageShow";
|
|
13531
|
-
REPO_EVENT2["STAY"] = "page_stay";
|
|
13532
|
-
return REPO_EVENT2;
|
|
13533
|
-
})(REPO_EVENT || {});
|
|
13534
|
-
var REPO_MODULE = /* @__PURE__ */ ((REPO_MODULE2) => {
|
|
13535
|
-
REPO_MODULE2["SEARCH_SUGGESTION_CARD"] = "搜索联想卡片";
|
|
13536
|
-
REPO_MODULE2["SEARCH_RECOMMEND_CARD"] = "搜索推荐卡片";
|
|
13537
|
-
REPO_MODULE2["SEARCH_BAR_CLICK"] = "搜索框点击";
|
|
13538
|
-
REPO_MODULE2["SEARCH_BAR_EXPO"] = "搜索框曝光";
|
|
13539
|
-
REPO_MODULE2["REPO"] = "搜索结果_项目";
|
|
13540
|
-
REPO_MODULE2["MODEL"] = "搜索结果_模型";
|
|
13541
|
-
REPO_MODULE2["DATASET"] = "搜索结果_数据集";
|
|
13542
|
-
REPO_MODULE2["TOPIC"] = "topic";
|
|
13543
|
-
REPO_MODULE2["TAG"] = "搜索结果_标签";
|
|
13544
|
-
REPO_MODULE2["ISSUE"] = "搜索结果_issue";
|
|
13545
|
-
REPO_MODULE2["PULLREQUEST"] = "搜索结果_pr";
|
|
13546
|
-
REPO_MODULE2["GROUP"] = "搜索结果_组织";
|
|
13547
|
-
REPO_MODULE2["USER"] = "搜索结果_用户";
|
|
13548
|
-
REPO_MODULE2["COMMIT"] = "搜索结果_commit";
|
|
13549
|
-
REPO_MODULE2["SEARCH_SUFFIX_CLICK"] = "搜索按钮点击";
|
|
13550
|
-
return REPO_MODULE2;
|
|
13551
|
-
})(REPO_MODULE || {});
|
|
13552
|
-
var ASIDE_MENU_REPO = /* @__PURE__ */ ((ASIDE_MENU_REPO2) => {
|
|
13553
|
-
ASIDE_MENU_REPO2["HOME"] = "侧边栏_首页";
|
|
13554
|
-
ASIDE_MENU_REPO2["ISSUES"] = "侧边栏_ISSUE";
|
|
13555
|
-
ASIDE_MENU_REPO2["MERGE"] = "侧边栏_PR";
|
|
13556
|
-
ASIDE_MENU_REPO2["KANBAN"] = "侧边栏_KANBAN";
|
|
13557
|
-
ASIDE_MENU_REPO2["DISCUSSIONCREATED"] = "侧边栏_讨论";
|
|
13558
|
-
ASIDE_MENU_REPO2["NEWS"] = "侧边栏_资讯中心";
|
|
13559
|
-
ASIDE_MENU_REPO2["CHATBOT"] = "侧边栏_天启";
|
|
13560
|
-
ASIDE_MENU_REPO2["COMPETITION"] = "侧边栏_大赛平台";
|
|
13561
|
-
ASIDE_MENU_REPO2["ASIDEEXPO"] = "侧边栏_曝光";
|
|
13562
|
-
ASIDE_MENU_REPO2["CHATBOTEXPO"] = "头部天启入口_曝光";
|
|
13563
|
-
ASIDE_MENU_REPO2["CHATBOTCLICK"] = "头部天启入口_点击";
|
|
13564
|
-
ASIDE_MENU_REPO2["TOOLBAR"] = "toolbar_点击";
|
|
13565
|
-
ASIDE_MENU_REPO2["TOOLBAREXPO"] = "toolbar_曝光";
|
|
13566
|
-
ASIDE_MENU_REPO2["ASIDEBTNCLICK"] = "侧边栏按钮_点击";
|
|
13567
|
-
ASIDE_MENU_REPO2["STICKYNOTICECLICK"] = "吸顶公告_点击";
|
|
13568
|
-
ASIDE_MENU_REPO2["STICKYNOTICEEXPO"] = "吸顶公告_曝光";
|
|
13569
|
-
return ASIDE_MENU_REPO2;
|
|
13570
|
-
})(ASIDE_MENU_REPO || {});
|
|
13571
|
-
var TOPIC_TYPE = /* @__PURE__ */ ((TOPIC_TYPE2) => {
|
|
13572
|
-
TOPIC_TYPE2[TOPIC_TYPE2["OPERATION"] = 0] = "OPERATION";
|
|
13573
|
-
TOPIC_TYPE2[TOPIC_TYPE2["USER"] = 1] = "USER";
|
|
13574
|
-
return TOPIC_TYPE2;
|
|
13575
|
-
})(TOPIC_TYPE || {});
|
|
13576
|
-
var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
|
|
13577
|
-
REPO_TYPE2[REPO_TYPE2["GITCODE"] = 0] = "GITCODE";
|
|
13578
|
-
REPO_TYPE2[REPO_TYPE2["GITHUB_MIRRORS"] = 1] = "GITHUB_MIRRORS";
|
|
13579
|
-
REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
|
|
13580
|
-
return REPO_TYPE2;
|
|
13581
|
-
})(REPO_TYPE || {});
|
|
13582
13626
|
const _hoisted_1$q = ["src"];
|
|
13583
13627
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
13584
13628
|
...{
|
|
@@ -16815,13 +16859,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16815
16859
|
var _a;
|
|
16816
16860
|
const layoutConfig2 = useLayoutConfig();
|
|
16817
16861
|
const { t: $t } = i18n.global;
|
|
16818
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16819
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16820
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16821
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16822
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16823
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16824
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16862
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ahsx9m7I.js"));
|
|
16863
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-D8hObGqh.js"));
|
|
16864
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BbRqBMmu.js"));
|
|
16865
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-vIqvSmmv.js"));
|
|
16866
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CnZnpGSC.js"));
|
|
16867
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Cqxlkzhm.js"));
|
|
16868
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-juC_b_9i.js"));
|
|
16825
16869
|
const props = __props;
|
|
16826
16870
|
const repoInfo = inject("repoInfo");
|
|
16827
16871
|
const orgInfo = inject("orgInfo");
|
|
@@ -17475,7 +17519,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17475
17519
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17476
17520
|
}
|
|
17477
17521
|
};
|
|
17478
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17522
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-BDFgkLs-.js"));
|
|
17479
17523
|
function clearNotice() {
|
|
17480
17524
|
if (localStorage$2.getItem("validator_email")) {
|
|
17481
17525
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17554,6 +17598,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17554
17598
|
},
|
|
17555
17599
|
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
17556
17600
|
setup(__props, { emit: __emit }) {
|
|
17601
|
+
var _a;
|
|
17557
17602
|
useCssVars((_ctx) => ({
|
|
17558
17603
|
"cb0d2906": detailBgInfo.value
|
|
17559
17604
|
}));
|
|
@@ -17608,8 +17653,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17608
17653
|
const { height = 56 } = useElementSize(headerRef);
|
|
17609
17654
|
const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
|
|
17610
17655
|
const headerClassName = computed(() => {
|
|
17611
|
-
var
|
|
17612
|
-
if ((
|
|
17656
|
+
var _a2, _b;
|
|
17657
|
+
if ((_a2 = route == null ? void 0 : route.meta) == null ? void 0 : _a2.headerClassName) {
|
|
17613
17658
|
return (_b = route == null ? void 0 : route.meta) == null ? void 0 : _b.headerClassName;
|
|
17614
17659
|
}
|
|
17615
17660
|
if (GrayBgSceneValue.includes(props.sceneValue)) {
|
|
@@ -17618,12 +17663,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17618
17663
|
return "";
|
|
17619
17664
|
});
|
|
17620
17665
|
const hideNav = computed(() => {
|
|
17621
|
-
var
|
|
17622
|
-
return (
|
|
17666
|
+
var _a2;
|
|
17667
|
+
return (_a2 = route == null ? void 0 : route.meta) == null ? void 0 : _a2.hideNav;
|
|
17623
17668
|
});
|
|
17624
17669
|
const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
|
|
17625
17670
|
const inAIHub = computed(() => aiHubSceneValue.includes(props.sceneValue));
|
|
17626
|
-
|
|
17671
|
+
if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.hiddenThemeSetting)) {
|
|
17672
|
+
theme.initAutoTheme();
|
|
17673
|
+
}
|
|
17627
17674
|
const isChatBot = ref(false);
|
|
17628
17675
|
const isHome = computed(() => props.sceneValue === SceneValue.home);
|
|
17629
17676
|
const showHeaderShadow = ref(false);
|
|
@@ -17636,8 +17683,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17636
17683
|
}
|
|
17637
17684
|
});
|
|
17638
17685
|
const showNameAndIcon = computed(() => {
|
|
17639
|
-
var
|
|
17640
|
-
if (isModuleVisible(HeaderDisplayItem.NAME_AND_ICON) || ((
|
|
17686
|
+
var _a2, _b, _c;
|
|
17687
|
+
if (isModuleVisible(HeaderDisplayItem.NAME_AND_ICON) || ((_a2 = props.headerCustomProps) == null ? void 0 : _a2.errorCode)) {
|
|
17641
17688
|
return true;
|
|
17642
17689
|
} else {
|
|
17643
17690
|
if (props.sceneValue === SceneValue.user && (hideNav.value || !((_c = (_b = props.headerCustomProps) == null ? void 0 : _b.userProps) == null ? void 0 : _c.isOtherUser))) {
|
|
@@ -17787,13 +17834,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17787
17834
|
emit("resetPwdDirectlySuccess");
|
|
17788
17835
|
});
|
|
17789
17836
|
window.addEventListener("message", (event) => {
|
|
17790
|
-
var
|
|
17837
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
17791
17838
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
17792
|
-
if (((
|
|
17793
|
-
(
|
|
17839
|
+
if (((_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.type) === "main_report") {
|
|
17840
|
+
collectRegisterLoginEvent({ isRegister: (_b = event.data.report) == null ? void 0 : _b.isRegister, registerLoginMethod: (_c = event.data.report) == null ? void 0 : _c.registerLoginMethod, success: (_d = event.data.report) == null ? void 0 : _d.success });
|
|
17794
17841
|
}
|
|
17795
|
-
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((
|
|
17796
|
-
action[(
|
|
17842
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
|
|
17843
|
+
action[(_f = event.data) == null ? void 0 : _f.type](event);
|
|
17797
17844
|
}
|
|
17798
17845
|
});
|
|
17799
17846
|
});
|
|
@@ -17808,7 +17855,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17808
17855
|
closeStickyNotice.value = true;
|
|
17809
17856
|
};
|
|
17810
17857
|
return (_ctx, _cache) => {
|
|
17811
|
-
var
|
|
17858
|
+
var _a2, _b, _c, _d;
|
|
17812
17859
|
return openBlock(), createElementBlock("div", {
|
|
17813
17860
|
onClick: withModifiers(handleHeaderClick, ["stop"]),
|
|
17814
17861
|
class: normalizeClass(["gitcode-header-wrapper w-full", detailBgInfo.value ? "cursor-pointer" : ""]),
|
|
@@ -17871,7 +17918,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17871
17918
|
key: 1,
|
|
17872
17919
|
scene: _ctx.sceneValue,
|
|
17873
17920
|
isLogin: _ctx.isLogin,
|
|
17874
|
-
errorCode: (
|
|
17921
|
+
errorCode: (_a2 = _ctx.headerCustomProps) == null ? void 0 : _a2.errorCode,
|
|
17875
17922
|
orgProps: (_b = _ctx.headerCustomProps) == null ? void 0 : _b.orgProps,
|
|
17876
17923
|
repoProps: (_c = _ctx.headerCustomProps) == null ? void 0 : _c.repoProps,
|
|
17877
17924
|
userProps: (_d = _ctx.headerCustomProps) == null ? void 0 : _d.userProps,
|
|
@@ -18162,9 +18209,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18162
18209
|
const layoutConfig2 = useLayoutConfig();
|
|
18163
18210
|
const { t: t2 } = i18n.global;
|
|
18164
18211
|
const route = useRoute();
|
|
18165
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18166
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18167
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18212
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-i97zwNGH.js"));
|
|
18213
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BhVhLwNx.js"));
|
|
18214
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-sIr-9kp3.js"));
|
|
18168
18215
|
const props = __props;
|
|
18169
18216
|
console.log("slotKeys", props.slotKeys);
|
|
18170
18217
|
console.log("props", props);
|
|
@@ -19878,38 +19925,6 @@ async function csdnloginCheck(route, loginCallback, request) {
|
|
|
19878
19925
|
}
|
|
19879
19926
|
return false;
|
|
19880
19927
|
}
|
|
19881
|
-
const registerLoginMethodMap = {
|
|
19882
|
-
[LoginMethodEnum.PHONE]: "短信",
|
|
19883
|
-
[LoginMethodEnum.PASSWORD]: "密码",
|
|
19884
|
-
[LoginMethodEnum.MINI_PROGRAM]: "小程序登录"
|
|
19885
|
-
};
|
|
19886
|
-
const utmSourceMap = {
|
|
19887
|
-
"csdn-blog-iframe": "快应用",
|
|
19888
|
-
"miniapp": "小程序",
|
|
19889
|
-
"web": "网页"
|
|
19890
|
-
};
|
|
19891
|
-
const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success }) => {
|
|
19892
|
-
if (!window.collectEvent) {
|
|
19893
|
-
return;
|
|
19894
|
-
}
|
|
19895
|
-
const searchParams = Object.fromEntries(new URLSearchParams(location.search).entries());
|
|
19896
|
-
const reportData = {
|
|
19897
|
-
register_login_type: isRegister ? "注册" : "登录",
|
|
19898
|
-
register_login_result: success ? "成功" : "失败",
|
|
19899
|
-
register_login_source: searchParams["utm_source"] ? utmSourceMap[searchParams["utm_source"]] : "",
|
|
19900
|
-
register_login_method: registerLoginMethodMap[registerLoginMethod] || "",
|
|
19901
|
-
article_id: searchParams["from_id"] || "",
|
|
19902
|
-
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
19903
|
-
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
19904
|
-
page_url: location.href || "",
|
|
19905
|
-
env: void 0,
|
|
19906
|
-
...searchParams
|
|
19907
|
-
};
|
|
19908
|
-
delete reportData["from_id"];
|
|
19909
|
-
delete reportData["uuid_tt_dd"];
|
|
19910
|
-
delete reportData["utm_source"];
|
|
19911
|
-
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
19912
|
-
};
|
|
19913
19928
|
const layoutConfig = useLayoutConfig();
|
|
19914
19929
|
const { t: t$2 } = i18n.global;
|
|
19915
19930
|
const GRAPH_CODE = 400007;
|
|
@@ -23796,7 +23811,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23796
23811
|
}
|
|
23797
23812
|
});
|
|
23798
23813
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23799
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23814
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-D_8awRg3.js"));
|
|
23800
23815
|
const useSlidCaptcha = () => {
|
|
23801
23816
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23802
23817
|
const open = (config) => {
|
|
@@ -25559,13 +25574,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25559
25574
|
});
|
|
25560
25575
|
addEventListener("notice", toNotice);
|
|
25561
25576
|
window.addEventListener("message", (event) => {
|
|
25562
|
-
var _a, _b, _c, _d, _e, _f
|
|
25577
|
+
var _a, _b, _c, _d, _e, _f;
|
|
25563
25578
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
25564
25579
|
if (((_a = event == null ? void 0 : event.data) == null ? void 0 : _a.type) === "main_report") {
|
|
25565
|
-
(
|
|
25580
|
+
collectRegisterLoginEvent({ isRegister: (_b = event.data.report) == null ? void 0 : _b.isRegister, registerLoginMethod: (_c = event.data.report) == null ? void 0 : _c.registerLoginMethod, success: (_d = event.data.report) == null ? void 0 : _d.success });
|
|
25566
25581
|
}
|
|
25567
|
-
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((
|
|
25568
|
-
action[(
|
|
25582
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event == null ? void 0 : event.data) == null ? void 0 : _e.type)) {
|
|
25583
|
+
action[(_f = event == null ? void 0 : event.data) == null ? void 0 : _f.type](event);
|
|
25569
25584
|
}
|
|
25570
25585
|
});
|
|
25571
25586
|
});
|
|
@@ -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-GorSenuN.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-aCmgu1Bv.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";
|
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-GorSenuN.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