vue-layout-gitcode 1.5.131 → 1.6.0
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-n76m5eHW.js → GloabarSearch-BP50THaj.js} +3 -3
- package/{MenuItem-Bk8fURpY.js → MenuItem-CFIYhdVM.js} +1 -1
- package/{ProjectMenuList-CsqNvhkJ.js → ProjectMenuList-CAZQQYyL.js} +2 -2
- package/{ProjectMenuListV2-DB7BKYe5.js → ProjectMenuListV2-xsjybuIa.js} +2 -2
- package/{ProjectSearch-CxqDrQF3.js → ProjectSearch-ibd991F4.js} +1 -1
- package/{SearchHistoryList-BMUlhn3T.js → SearchHistoryList-83yhRS6g.js} +1 -1
- package/{SearchPrefixTag-C5XyxKAx.js → SearchPrefixTag-BXJA08yy.js} +1 -1
- package/{SearchRecommed-BSvW5Bk6.js → SearchRecommed-B5AwlNww.js} +2 -2
- package/{SearchScopeList-DZkRNqKb.js → SearchScopeList-YKXErF4d.js} +1 -1
- package/{UserSearch-kw9UktDD.js → UserSearch-BeiVr4GS.js} +1 -1
- package/{index-D5RRAi7A.js → index-1lTcEJvx.js} +2 -2
- package/{index-Cs6vs1iK.js → index-CrrDmZaO.js} +161 -146
- package/{index-DJ2MEwju.js → index-Dugmf06i.js} +1 -1
- package/index.js +1 -1
- package/{notice-DtWRuSxa.js → notice-oKwpQ5UB.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-CdOsmHfX.js → transWebUrl-BjJ4IWmF.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-CrrDmZaO.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-1lTcEJvx.js";
|
|
7
|
+
import "./transWebUrl-BjJ4IWmF.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-CrrDmZaO.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-CrrDmZaO.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BjJ4IWmF.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-CrrDmZaO.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BjJ4IWmF.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-CrrDmZaO.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-CrrDmZaO.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-CrrDmZaO.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-1lTcEJvx.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-CrrDmZaO.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-CrrDmZaO.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-CrrDmZaO.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,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-CrrDmZaO.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BjJ4IWmF.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";
|
|
@@ -11511,6 +11511,143 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11511
11511
|
}
|
|
11512
11512
|
});
|
|
11513
11513
|
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11514
|
+
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
11515
|
+
repoTypeEnum2["NORMAL"] = "0";
|
|
11516
|
+
repoTypeEnum2["MODEL"] = "1";
|
|
11517
|
+
repoTypeEnum2["DATASET"] = "2";
|
|
11518
|
+
repoTypeEnum2["SPACE"] = "3";
|
|
11519
|
+
return repoTypeEnum2;
|
|
11520
|
+
})(repoTypeEnum || {});
|
|
11521
|
+
var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
11522
|
+
AuthTypeEnum2["CSDN"] = "csdn";
|
|
11523
|
+
AuthTypeEnum2["GITEE"] = "gitee";
|
|
11524
|
+
AuthTypeEnum2["GITHUB"] = "github";
|
|
11525
|
+
AuthTypeEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
11526
|
+
AuthTypeEnum2["WECHAT_MP"] = "wechat_mp";
|
|
11527
|
+
AuthTypeEnum2["H_BUILDER"] = "hbuilder";
|
|
11528
|
+
AuthTypeEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
11529
|
+
AuthTypeEnum2["ATOMGIT"] = "atomgit";
|
|
11530
|
+
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
11531
|
+
AuthTypeEnum2["HUAWEI"] = "huawei";
|
|
11532
|
+
return AuthTypeEnum2;
|
|
11533
|
+
})(AuthTypeEnum || {});
|
|
11534
|
+
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
11535
|
+
LoginMethodEnum2["PHONE"] = "phone";
|
|
11536
|
+
LoginMethodEnum2["PASSWORD"] = "password";
|
|
11537
|
+
LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
|
|
11538
|
+
LoginMethodEnum2["HARMONY"] = "harmony";
|
|
11539
|
+
LoginMethodEnum2["CSDN"] = "csdn";
|
|
11540
|
+
LoginMethodEnum2["ATOMGIT"] = "atomgit";
|
|
11541
|
+
LoginMethodEnum2["GITEE"] = "gitee";
|
|
11542
|
+
LoginMethodEnum2["GITHUB"] = "github";
|
|
11543
|
+
LoginMethodEnum2["HUAWEI"] = "huawei";
|
|
11544
|
+
LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
|
|
11545
|
+
LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
|
|
11546
|
+
LoginMethodEnum2["H_BUILDER"] = "hbuilder";
|
|
11547
|
+
LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
|
|
11548
|
+
return LoginMethodEnum2;
|
|
11549
|
+
})(LoginMethodEnum || {});
|
|
11550
|
+
var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
|
|
11551
|
+
AuthResType2["SUCCESS"] = "success";
|
|
11552
|
+
AuthResType2["FAIL"] = "fail";
|
|
11553
|
+
AuthResType2["CANCEL"] = "cancel";
|
|
11554
|
+
return AuthResType2;
|
|
11555
|
+
})(AuthResType || {});
|
|
11556
|
+
var REPO_EVENT = /* @__PURE__ */ ((REPO_EVENT2) => {
|
|
11557
|
+
REPO_EVENT2["CLICK"] = "PC_PageClick";
|
|
11558
|
+
REPO_EVENT2["SHOW"] = "PC_PageShow";
|
|
11559
|
+
REPO_EVENT2["STAY"] = "page_stay";
|
|
11560
|
+
return REPO_EVENT2;
|
|
11561
|
+
})(REPO_EVENT || {});
|
|
11562
|
+
var REPO_MODULE = /* @__PURE__ */ ((REPO_MODULE2) => {
|
|
11563
|
+
REPO_MODULE2["SEARCH_SUGGESTION_CARD"] = "搜索联想卡片";
|
|
11564
|
+
REPO_MODULE2["SEARCH_RECOMMEND_CARD"] = "搜索推荐卡片";
|
|
11565
|
+
REPO_MODULE2["SEARCH_BAR_CLICK"] = "搜索框点击";
|
|
11566
|
+
REPO_MODULE2["SEARCH_BAR_EXPO"] = "搜索框曝光";
|
|
11567
|
+
REPO_MODULE2["REPO"] = "搜索结果_项目";
|
|
11568
|
+
REPO_MODULE2["MODEL"] = "搜索结果_模型";
|
|
11569
|
+
REPO_MODULE2["DATASET"] = "搜索结果_数据集";
|
|
11570
|
+
REPO_MODULE2["TOPIC"] = "topic";
|
|
11571
|
+
REPO_MODULE2["TAG"] = "搜索结果_标签";
|
|
11572
|
+
REPO_MODULE2["ISSUE"] = "搜索结果_issue";
|
|
11573
|
+
REPO_MODULE2["PULLREQUEST"] = "搜索结果_pr";
|
|
11574
|
+
REPO_MODULE2["GROUP"] = "搜索结果_组织";
|
|
11575
|
+
REPO_MODULE2["USER"] = "搜索结果_用户";
|
|
11576
|
+
REPO_MODULE2["COMMIT"] = "搜索结果_commit";
|
|
11577
|
+
REPO_MODULE2["SEARCH_SUFFIX_CLICK"] = "搜索按钮点击";
|
|
11578
|
+
return REPO_MODULE2;
|
|
11579
|
+
})(REPO_MODULE || {});
|
|
11580
|
+
var ASIDE_MENU_REPO = /* @__PURE__ */ ((ASIDE_MENU_REPO2) => {
|
|
11581
|
+
ASIDE_MENU_REPO2["HOME"] = "侧边栏_首页";
|
|
11582
|
+
ASIDE_MENU_REPO2["ISSUES"] = "侧边栏_ISSUE";
|
|
11583
|
+
ASIDE_MENU_REPO2["MERGE"] = "侧边栏_PR";
|
|
11584
|
+
ASIDE_MENU_REPO2["KANBAN"] = "侧边栏_KANBAN";
|
|
11585
|
+
ASIDE_MENU_REPO2["DISCUSSIONCREATED"] = "侧边栏_讨论";
|
|
11586
|
+
ASIDE_MENU_REPO2["NEWS"] = "侧边栏_资讯中心";
|
|
11587
|
+
ASIDE_MENU_REPO2["CHATBOT"] = "侧边栏_天启";
|
|
11588
|
+
ASIDE_MENU_REPO2["COMPETITION"] = "侧边栏_大赛平台";
|
|
11589
|
+
ASIDE_MENU_REPO2["ASIDEEXPO"] = "侧边栏_曝光";
|
|
11590
|
+
ASIDE_MENU_REPO2["CHATBOTEXPO"] = "头部天启入口_曝光";
|
|
11591
|
+
ASIDE_MENU_REPO2["CHATBOTCLICK"] = "头部天启入口_点击";
|
|
11592
|
+
ASIDE_MENU_REPO2["TOOLBAR"] = "toolbar_点击";
|
|
11593
|
+
ASIDE_MENU_REPO2["TOOLBAREXPO"] = "toolbar_曝光";
|
|
11594
|
+
ASIDE_MENU_REPO2["ASIDEBTNCLICK"] = "侧边栏按钮_点击";
|
|
11595
|
+
ASIDE_MENU_REPO2["STICKYNOTICECLICK"] = "吸顶公告_点击";
|
|
11596
|
+
ASIDE_MENU_REPO2["STICKYNOTICEEXPO"] = "吸顶公告_曝光";
|
|
11597
|
+
return ASIDE_MENU_REPO2;
|
|
11598
|
+
})(ASIDE_MENU_REPO || {});
|
|
11599
|
+
var TOPIC_TYPE = /* @__PURE__ */ ((TOPIC_TYPE2) => {
|
|
11600
|
+
TOPIC_TYPE2[TOPIC_TYPE2["OPERATION"] = 0] = "OPERATION";
|
|
11601
|
+
TOPIC_TYPE2[TOPIC_TYPE2["USER"] = 1] = "USER";
|
|
11602
|
+
return TOPIC_TYPE2;
|
|
11603
|
+
})(TOPIC_TYPE || {});
|
|
11604
|
+
var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
|
|
11605
|
+
REPO_TYPE2[REPO_TYPE2["GITCODE"] = 0] = "GITCODE";
|
|
11606
|
+
REPO_TYPE2[REPO_TYPE2["GITHUB_MIRRORS"] = 1] = "GITHUB_MIRRORS";
|
|
11607
|
+
REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
|
|
11608
|
+
return REPO_TYPE2;
|
|
11609
|
+
})(REPO_TYPE || {});
|
|
11610
|
+
const registerLoginMethodMap = {
|
|
11611
|
+
[LoginMethodEnum.PHONE]: "短信",
|
|
11612
|
+
[LoginMethodEnum.PASSWORD]: "密码",
|
|
11613
|
+
[LoginMethodEnum.MINI_PROGRAM]: "小程序登录",
|
|
11614
|
+
[LoginMethodEnum.CSDN]: "CSDN",
|
|
11615
|
+
[LoginMethodEnum.GITEE]: "Gitee",
|
|
11616
|
+
[LoginMethodEnum.GITHUB]: "GitHub",
|
|
11617
|
+
[LoginMethodEnum.HUAWEI]: "华为",
|
|
11618
|
+
[LoginMethodEnum.WECHAT_OPEN]: "微信",
|
|
11619
|
+
[LoginMethodEnum.WECHAT_MP]: "微信",
|
|
11620
|
+
[LoginMethodEnum.H_BUILDER]: "Hbuilder",
|
|
11621
|
+
[LoginMethodEnum.H_BUILDER_PLUGIN]: "Hbuilder插件",
|
|
11622
|
+
[LoginMethodEnum.ATOMGIT]: "AtomGit"
|
|
11623
|
+
};
|
|
11624
|
+
const utmSourceMap = {
|
|
11625
|
+
"csdn-blog-iframe": "快应用",
|
|
11626
|
+
"miniapp": "小程序",
|
|
11627
|
+
"web": "网页"
|
|
11628
|
+
};
|
|
11629
|
+
const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success }) => {
|
|
11630
|
+
if (!window.collectEvent) {
|
|
11631
|
+
return;
|
|
11632
|
+
}
|
|
11633
|
+
const searchParams = Object.fromEntries(new URLSearchParams(location.search).entries());
|
|
11634
|
+
const reportData = {
|
|
11635
|
+
register_login_type: isRegister ? "注册" : "登录",
|
|
11636
|
+
register_login_result: success ? "成功" : "失败",
|
|
11637
|
+
register_login_source: searchParams["utm_source"] ? utmSourceMap[searchParams["utm_source"]] : "",
|
|
11638
|
+
register_login_method: registerLoginMethodMap[registerLoginMethod] || "",
|
|
11639
|
+
article_id: searchParams["from_id"] || "",
|
|
11640
|
+
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
11641
|
+
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
11642
|
+
page_url: location.href || "",
|
|
11643
|
+
env: void 0,
|
|
11644
|
+
...searchParams
|
|
11645
|
+
};
|
|
11646
|
+
delete reportData["from_id"];
|
|
11647
|
+
delete reportData["uuid_tt_dd"];
|
|
11648
|
+
delete reportData["utm_source"];
|
|
11649
|
+
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
11650
|
+
};
|
|
11514
11651
|
function usePopup(className, rootElement) {
|
|
11515
11652
|
const root = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt")) || document.body;
|
|
11516
11653
|
let cacheClass = "popup-container";
|
|
@@ -13483,102 +13620,6 @@ const vElementExposure = {
|
|
|
13483
13620
|
beforeUnmount() {
|
|
13484
13621
|
}
|
|
13485
13622
|
};
|
|
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
13623
|
const _hoisted_1$q = ["src"];
|
|
13583
13624
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
13584
13625
|
...{
|
|
@@ -16815,13 +16856,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16815
16856
|
var _a;
|
|
16816
16857
|
const layoutConfig2 = useLayoutConfig();
|
|
16817
16858
|
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-
|
|
16859
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ibd991F4.js"));
|
|
16860
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-BeiVr4GS.js"));
|
|
16861
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BP50THaj.js"));
|
|
16862
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-83yhRS6g.js"));
|
|
16863
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-YKXErF4d.js"));
|
|
16864
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BXJA08yy.js"));
|
|
16865
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B5AwlNww.js"));
|
|
16825
16866
|
const props = __props;
|
|
16826
16867
|
const repoInfo = inject("repoInfo");
|
|
16827
16868
|
const orgInfo = inject("orgInfo");
|
|
@@ -17475,7 +17516,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17475
17516
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17476
17517
|
}
|
|
17477
17518
|
};
|
|
17478
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17519
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-oKwpQ5UB.js"));
|
|
17479
17520
|
function clearNotice() {
|
|
17480
17521
|
if (localStorage$2.getItem("validator_email")) {
|
|
17481
17522
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17787,10 +17828,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17787
17828
|
emit("resetPwdDirectlySuccess");
|
|
17788
17829
|
});
|
|
17789
17830
|
window.addEventListener("message", (event) => {
|
|
17790
|
-
var _a, _b;
|
|
17831
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17791
17832
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
17792
|
-
if (
|
|
17793
|
-
|
|
17833
|
+
if (((_a = event == null ? void 0 : event.data) == null ? void 0 : _a.type) === "main_report") {
|
|
17834
|
+
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 });
|
|
17835
|
+
}
|
|
17836
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
|
|
17837
|
+
action[(_f = event.data) == null ? void 0 : _f.type](event);
|
|
17794
17838
|
}
|
|
17795
17839
|
});
|
|
17796
17840
|
});
|
|
@@ -18159,9 +18203,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18159
18203
|
const layoutConfig2 = useLayoutConfig();
|
|
18160
18204
|
const { t: t2 } = i18n.global;
|
|
18161
18205
|
const route = useRoute();
|
|
18162
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18163
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18164
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18206
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CFIYhdVM.js"));
|
|
18207
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-xsjybuIa.js"));
|
|
18208
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CAZQQYyL.js"));
|
|
18165
18209
|
const props = __props;
|
|
18166
18210
|
console.log("slotKeys", props.slotKeys);
|
|
18167
18211
|
console.log("props", props);
|
|
@@ -19875,38 +19919,6 @@ async function csdnloginCheck(route, loginCallback, request) {
|
|
|
19875
19919
|
}
|
|
19876
19920
|
return false;
|
|
19877
19921
|
}
|
|
19878
|
-
const registerLoginMethodMap = {
|
|
19879
|
-
[LoginMethodEnum.PHONE]: "短信",
|
|
19880
|
-
[LoginMethodEnum.PASSWORD]: "密码",
|
|
19881
|
-
[LoginMethodEnum.MINI_PROGRAM]: "小程序登录"
|
|
19882
|
-
};
|
|
19883
|
-
const utmSourceMap = {
|
|
19884
|
-
"csdn-blog-iframe": "快应用",
|
|
19885
|
-
"miniapp": "小程序",
|
|
19886
|
-
"web": "网页"
|
|
19887
|
-
};
|
|
19888
|
-
const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success }) => {
|
|
19889
|
-
if (!window.collectEvent) {
|
|
19890
|
-
return;
|
|
19891
|
-
}
|
|
19892
|
-
const searchParams = Object.fromEntries(new URLSearchParams(location.search).entries());
|
|
19893
|
-
const reportData = {
|
|
19894
|
-
register_login_type: isRegister ? "注册" : "登录",
|
|
19895
|
-
register_login_result: success ? "成功" : "失败",
|
|
19896
|
-
register_login_source: searchParams["utm_source"] ? utmSourceMap[searchParams["utm_source"]] : "",
|
|
19897
|
-
register_login_method: registerLoginMethodMap[registerLoginMethod] || "",
|
|
19898
|
-
article_id: searchParams["from_id"] || "",
|
|
19899
|
-
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
19900
|
-
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
19901
|
-
page_url: location.href || "",
|
|
19902
|
-
env: "production",
|
|
19903
|
-
...searchParams
|
|
19904
|
-
};
|
|
19905
|
-
delete reportData["from_id"];
|
|
19906
|
-
delete reportData["uuid_tt_dd"];
|
|
19907
|
-
delete reportData["utm_source"];
|
|
19908
|
-
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
19909
|
-
};
|
|
19910
19922
|
const layoutConfig = useLayoutConfig();
|
|
19911
19923
|
const { t: t$2 } = i18n.global;
|
|
19912
19924
|
const GRAPH_CODE = 400007;
|
|
@@ -23793,7 +23805,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23793
23805
|
}
|
|
23794
23806
|
});
|
|
23795
23807
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23796
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23808
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Dugmf06i.js"));
|
|
23797
23809
|
const useSlidCaptcha = () => {
|
|
23798
23810
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23799
23811
|
const open = (config) => {
|
|
@@ -25556,10 +25568,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25556
25568
|
});
|
|
25557
25569
|
addEventListener("notice", toNotice);
|
|
25558
25570
|
window.addEventListener("message", (event) => {
|
|
25559
|
-
var _a, _b;
|
|
25571
|
+
var _a, _b, _c, _d, _e, _f;
|
|
25560
25572
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
25561
|
-
if (
|
|
25562
|
-
|
|
25573
|
+
if (((_a = event == null ? void 0 : event.data) == null ? void 0 : _a.type) === "main_report") {
|
|
25574
|
+
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 });
|
|
25575
|
+
}
|
|
25576
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event == null ? void 0 : event.data) == null ? void 0 : _e.type)) {
|
|
25577
|
+
action[(_f = event == null ? void 0 : event.data) == null ? void 0 : _f.type](event);
|
|
25563
25578
|
}
|
|
25564
25579
|
});
|
|
25565
25580
|
});
|
|
@@ -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-CrrDmZaO.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,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-CrrDmZaO.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