vue-layout-gitcode 1.3.41 → 1.3.43
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-C7LAcV05.js → GloabarSearch-Cm-kH8Pu.js} +2 -2
- package/{ProjectSearch-B1zrQyDQ.js → ProjectSearch-D25Oj55X.js} +1 -1
- package/{SearchHistoryList-BuhqGED9.js → SearchHistoryList-Iyll20xo.js} +1 -1
- package/{SearchPrefixTag-BCkplaHZ.js → SearchPrefixTag-Htl6ZB9E.js} +1 -1
- package/{SearchRecommed-Bh1LqtOt.js → SearchRecommed-C6mWZ35K.js} +2 -2
- package/{SearchScopeList-Cgw8fkxu.js → SearchScopeList-B0J_I494.js} +1 -1
- package/{UserSearch-BQX10OlD.js → UserSearch-CpHemB3q.js} +1 -1
- package/{index-CwV2bsrg.js → index-BJiD9caE.js} +1 -1
- package/{index-BhrxF7Ye.js → index-BmG6buAx.js} +1 -1
- package/{index-Z1okzjC5.js → index-DaolLGsY.js} +186 -78
- package/index.js +1 -1
- package/{notice-CR0msS92.js → notice-_1JWF_fz.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent,
|
|
1
|
+
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, withDirectives, vShow, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withKeys, useCssVars, useSlots, createSlots, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
|
|
2
2
|
import { Button } from "vue-devui-lal/button";
|
|
3
3
|
import { Popover } from "vue-devui-lal/popover";
|
|
4
4
|
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
@@ -46,9 +46,9 @@ import { Checkbox } from "vue-devui-lal/checkbox";
|
|
|
46
46
|
import "vue-devui-lal/checkbox/style.css";
|
|
47
47
|
import { Modal } from "vue-devui-lal/modal";
|
|
48
48
|
import "vue-devui-lal/modal/style.css";
|
|
49
|
-
const _hoisted_1$
|
|
50
|
-
const _hoisted_2$
|
|
51
|
-
const _sfc_main$
|
|
49
|
+
const _hoisted_1$w = ["xlink:href"];
|
|
50
|
+
const _hoisted_2$m = ["xlink:href"];
|
|
51
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
52
52
|
__name: "index",
|
|
53
53
|
props: {
|
|
54
54
|
name: { default: "gt-run" },
|
|
@@ -77,7 +77,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
}, [
|
|
78
78
|
createElementVNode("use", {
|
|
79
79
|
"xlink:href": `#${_ctx.name}`
|
|
80
|
-
}, null, 8, _hoisted_1$
|
|
80
|
+
}, null, 8, _hoisted_1$w)
|
|
81
81
|
], 6)),
|
|
82
82
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
83
83
|
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
@@ -88,7 +88,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
}, [
|
|
89
89
|
createElementVNode("use", {
|
|
90
90
|
"xlink:href": `#${_ctx.name}`
|
|
91
|
-
}, null, 8, _hoisted_2$
|
|
91
|
+
}, null, 8, _hoisted_2$m)
|
|
92
92
|
], 6));
|
|
93
93
|
};
|
|
94
94
|
}
|
|
@@ -100,7 +100,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
100
100
|
}
|
|
101
101
|
return target;
|
|
102
102
|
};
|
|
103
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
103
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
104
104
|
const defaultConfig = {
|
|
105
105
|
VITE_ENV: "production",
|
|
106
106
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -452,6 +452,13 @@ var CLICK_TIME_MODULE = /* @__PURE__ */ ((CLICK_TIME_MODULE2) => {
|
|
|
452
452
|
CLICK_TIME_MODULE2["GROWTH_CENTER"] = "growthCenter";
|
|
453
453
|
return CLICK_TIME_MODULE2;
|
|
454
454
|
})(CLICK_TIME_MODULE || {});
|
|
455
|
+
var RepoType = /* @__PURE__ */ ((RepoType2) => {
|
|
456
|
+
RepoType2["repo"] = "0";
|
|
457
|
+
RepoType2["model"] = "1";
|
|
458
|
+
RepoType2["dataset"] = "2";
|
|
459
|
+
RepoType2["spaces"] = "3";
|
|
460
|
+
return RepoType2;
|
|
461
|
+
})(RepoType || {});
|
|
455
462
|
const OSS_IMAGES = {
|
|
456
463
|
gstar: "/static/images/homeweb/gstar-tag-twinkle.gif",
|
|
457
464
|
trusted: "/static/images/homeweb/trusted-tag.png",
|
|
@@ -10912,15 +10919,15 @@ const proxyService = (params, customConfigs) => {
|
|
|
10912
10919
|
);
|
|
10913
10920
|
return service(params);
|
|
10914
10921
|
};
|
|
10915
|
-
const _hoisted_1$
|
|
10916
|
-
const _hoisted_2$
|
|
10917
|
-
const _hoisted_3$
|
|
10922
|
+
const _hoisted_1$v = { class: "home-nav-right" };
|
|
10923
|
+
const _hoisted_2$l = { class: "home-nav-item" };
|
|
10924
|
+
const _hoisted_3$j = {
|
|
10918
10925
|
key: 0,
|
|
10919
10926
|
class: "tooltip-sign"
|
|
10920
10927
|
};
|
|
10921
10928
|
const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
|
|
10922
10929
|
const _hoisted_5$c = { class: "home-nav-text" };
|
|
10923
|
-
const _hoisted_6$
|
|
10930
|
+
const _hoisted_6$7 = {
|
|
10924
10931
|
key: 1,
|
|
10925
10932
|
class: "tools-list"
|
|
10926
10933
|
};
|
|
@@ -10966,7 +10973,7 @@ const _hoisted_27$1 = { class: "flex justify-center items-center w-[30px] h-[30p
|
|
|
10966
10973
|
const _hoisted_28$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
|
|
10967
10974
|
const _hoisted_29$1 = { class: "home-nav-item" };
|
|
10968
10975
|
const _hoisted_30$1 = ["src", "alt"];
|
|
10969
|
-
const _sfc_main$
|
|
10976
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
10970
10977
|
__name: "index",
|
|
10971
10978
|
props: {
|
|
10972
10979
|
sceneValue: { default: SceneValue.home },
|
|
@@ -11127,7 +11134,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11127
11134
|
window.removeEventListener("scroll", handleScroll);
|
|
11128
11135
|
});
|
|
11129
11136
|
return (_ctx, _cache) => {
|
|
11130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11137
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
11131
11138
|
isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createBlock(unref(Tooltip), {
|
|
11132
11139
|
key: 0,
|
|
11133
11140
|
position: "left",
|
|
@@ -11143,19 +11150,19 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11143
11150
|
class: "home-nav-link tools-questionnaire",
|
|
11144
11151
|
onClick: toggleGrowthCenter
|
|
11145
11152
|
}, [
|
|
11146
|
-
createElementVNode("div", _hoisted_2$
|
|
11153
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
11147
11154
|
_cache[3] || (_cache[3] = createElementVNode("img", {
|
|
11148
11155
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11149
11156
|
src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
|
|
11150
11157
|
alt: ""
|
|
11151
11158
|
}, null, -1)),
|
|
11152
|
-
!_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
11159
|
+
!_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$j, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
|
|
11153
11160
|
])
|
|
11154
11161
|
])
|
|
11155
11162
|
]),
|
|
11156
11163
|
_: 1
|
|
11157
11164
|
})) : createCommentVNode("", true),
|
|
11158
|
-
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
11165
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
11159
11166
|
createVNode(unref(Tooltip), {
|
|
11160
11167
|
position: "left",
|
|
11161
11168
|
"overlay-class": "tools-tag-tooltip"
|
|
@@ -11381,7 +11388,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11381
11388
|
};
|
|
11382
11389
|
}
|
|
11383
11390
|
});
|
|
11384
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11391
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
11385
11392
|
function usePopup(className, rootElement) {
|
|
11386
11393
|
const root2 = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt"));
|
|
11387
11394
|
let cacheClass = "popup-container";
|
|
@@ -11446,8 +11453,8 @@ function usePopup(className, rootElement) {
|
|
|
11446
11453
|
refreshModal
|
|
11447
11454
|
};
|
|
11448
11455
|
}
|
|
11449
|
-
const _hoisted_1$
|
|
11450
|
-
const _sfc_main$
|
|
11456
|
+
const _hoisted_1$u = ["href", "target", "disabled"];
|
|
11457
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11451
11458
|
...{
|
|
11452
11459
|
name: "GLink"
|
|
11453
11460
|
},
|
|
@@ -11491,11 +11498,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11491
11498
|
disabled: _ctx.disabled || _ctx.noPointer
|
|
11492
11499
|
}, [
|
|
11493
11500
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11494
|
-
], 10, _hoisted_1$
|
|
11501
|
+
], 10, _hoisted_1$u));
|
|
11495
11502
|
};
|
|
11496
11503
|
}
|
|
11497
11504
|
});
|
|
11498
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11505
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
11499
11506
|
const black = {
|
|
11500
11507
|
"theme-stress-text": "#f0f6fc",
|
|
11501
11508
|
"theme-text": "#D2D8E4",
|
|
@@ -12031,7 +12038,7 @@ if (isBrowser) {
|
|
|
12031
12038
|
const sessionStorage$1 = sessionStorage;
|
|
12032
12039
|
const _imports_0 = "data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3cg%20opacity='0.600000'%3e%3cpath%20id='Vector'%20d='M22%2013.89C22%2011.82%2020.72%2010.01%2018.81%209.2C19.08%2010.1%2019.27%2011%2019.27%2011.91C19.27%2014.7%2018%2017.23%2015.9%2018.86C16.18%2018.95%2016.54%2018.95%2016.9%2018.95C17.54%2018.95%2020.27%2019.04%2021.36%2019.13C21.54%2019.13%2021.63%2018.95%2021.54%2018.77C21.08%2018.41%2020.45%2017.59%2020.72%2017.23C21.54%2016.33%2022%2015.16%2022%2013.89L22%2013.89Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/g%3e%3cpath%20id='减去顶层'%20d='M10.1816%203.875C5.63672%203.875%202%207.48608%202%2011.9097C2%2013.9861%202.72656%2015.7916%204%2017.2361C4.36328%2017.6875%204%2018.5903%203.54492%2019.3125C3.36328%2019.6736%203.54492%2020.125%204%2020.125C5.72656%2020.125%209.18164%2020.0347%2010.1816%2020.0347C14.7266%2020.0347%2018.3633%2016.4236%2018.3633%2011.9097C18.3633%207.48608%2014.7266%203.875%2010.1816%203.875ZM11.9746%2015.1427L10.5762%209.59204C10.5234%209.38306%2010.4023%209.19751%2010.2324%209.06494C10.0605%208.93225%209.84961%208.86035%209.63281%208.86023L7.68555%208.86023C7.46875%208.86035%207.25781%208.93225%207.08594%209.06494C6.91602%209.19751%206.79492%209.38306%206.74219%209.59204L5.34375%2015.1427L7.35156%2015.1427L7.59375%2014.176L9.72461%2014.176L9.9668%2015.1427L11.9746%2015.1427ZM14.9863%208.86035L14.9863%2015.1437L13.041%2015.1437L13.041%208.86035L14.9863%208.86035ZM8.44531%2010.7931L8.87305%2010.7931L9.23828%2012.243L8.08008%2012.243L8.44531%2010.7931Z'%20clip-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/svg%3e";
|
|
12033
12040
|
const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7Vpdbxx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2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
|
|
12034
|
-
const _sfc_main$
|
|
12041
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12035
12042
|
...{
|
|
12036
12043
|
name: "GAvatar"
|
|
12037
12044
|
},
|
|
@@ -14479,12 +14486,91 @@ var RouteNameEnum = /* @__PURE__ */ ((RouteNameEnum2) => {
|
|
|
14479
14486
|
RouteNameEnum2["AI_THEME"] = "theme";
|
|
14480
14487
|
return RouteNameEnum2;
|
|
14481
14488
|
})(RouteNameEnum || {});
|
|
14482
|
-
const _hoisted_1$
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14489
|
+
const _hoisted_1$t = {
|
|
14490
|
+
key: 0,
|
|
14491
|
+
class: "ai-home-mb-menu-wrap"
|
|
14492
|
+
};
|
|
14493
|
+
const _hoisted_2$k = { class: "right-content cursor-pointer" };
|
|
14494
|
+
const _hoisted_3$i = { class: "list-menu-ai-home" };
|
|
14495
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
14496
|
+
__name: "AiHubMenusMobile",
|
|
14497
|
+
props: ["activeMenu", "menuList", "isRouterLink"],
|
|
14498
|
+
setup(__props) {
|
|
14499
|
+
const route = useRoute();
|
|
14500
|
+
const changeIcon = ref(false);
|
|
14501
|
+
const rotateIcon = computed(() => {
|
|
14502
|
+
return changeIcon.value ? "gt-line-up" : "gt-line-down";
|
|
14503
|
+
});
|
|
14504
|
+
const isHome = computed(() => {
|
|
14505
|
+
return [RouteNameEnum.HOME].includes(route.name);
|
|
14506
|
+
});
|
|
14507
|
+
const dynamicStyle = computed(() => !isHome.value ? "isBlack" : "isWhite");
|
|
14508
|
+
return (_ctx, _cache) => {
|
|
14509
|
+
return __props.activeMenu ? (openBlock(), createElementBlock("section", _hoisted_1$t, [
|
|
14510
|
+
__props.activeMenu.icon ? (openBlock(), createBlock(GIcon, {
|
|
14511
|
+
key: 0,
|
|
14512
|
+
class: "gt-line-ok1",
|
|
14513
|
+
name: __props.activeMenu.icon
|
|
14514
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
14515
|
+
createVNode(unref(Dropdown), {
|
|
14516
|
+
"overlay-class": "list-menu-ai-home-drop-wrap",
|
|
14517
|
+
class: normalizeClass(["menu-bg", { "menu-bg-white": !isHome.value }])
|
|
14518
|
+
}, {
|
|
14519
|
+
menu: withCtx(() => [
|
|
14520
|
+
createElementVNode("ul", _hoisted_3$i, [
|
|
14521
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
|
|
14522
|
+
var _a;
|
|
14523
|
+
return openBlock(), createElementBlock("li", {
|
|
14524
|
+
key: item.label,
|
|
14525
|
+
class: "menu-item"
|
|
14526
|
+
}, [
|
|
14527
|
+
createVNode(GLink, {
|
|
14528
|
+
class: "icon-title-wrap w-full py-[12px]",
|
|
14529
|
+
href: __props.isRouterLink ? void 0 : item.url,
|
|
14530
|
+
to: __props.isRouterLink ? item.to : void 0
|
|
14531
|
+
}, {
|
|
14532
|
+
default: withCtx(() => [
|
|
14533
|
+
createVNode(GIcon, {
|
|
14534
|
+
class: "menue-icon",
|
|
14535
|
+
name: item.icon
|
|
14536
|
+
}, null, 8, ["name"]),
|
|
14537
|
+
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
14538
|
+
]),
|
|
14539
|
+
_: 2
|
|
14540
|
+
}, 1032, ["href", "to"]),
|
|
14541
|
+
withDirectives(createVNode(GIcon, {
|
|
14542
|
+
name: "gt-line-ok1",
|
|
14543
|
+
class: normalizeClass([[dynamicStyle.value], "ml-[10px]"])
|
|
14544
|
+
}, null, 8, ["class"]), [
|
|
14545
|
+
[vShow, ((_a = __props.activeMenu) == null ? void 0 : _a.url) === item.url]
|
|
14546
|
+
])
|
|
14547
|
+
]);
|
|
14548
|
+
}), 128))
|
|
14549
|
+
])
|
|
14550
|
+
]),
|
|
14551
|
+
default: withCtx(() => [
|
|
14552
|
+
createElementVNode("section", _hoisted_2$k, [
|
|
14553
|
+
createElementVNode("span", {
|
|
14554
|
+
class: normalizeClass(["title", [dynamicStyle.value]])
|
|
14555
|
+
}, toDisplayString$1(__props.activeMenu.label), 3),
|
|
14556
|
+
createVNode(GIcon, {
|
|
14557
|
+
name: rotateIcon.value,
|
|
14558
|
+
class: normalizeClass(["gt-line-down", [dynamicStyle.value]])
|
|
14559
|
+
}, null, 8, ["name", "class"])
|
|
14560
|
+
])
|
|
14561
|
+
]),
|
|
14562
|
+
_: 1
|
|
14563
|
+
}, 8, ["class"])
|
|
14564
|
+
])) : createCommentVNode("", true);
|
|
14565
|
+
};
|
|
14566
|
+
}
|
|
14567
|
+
});
|
|
14568
|
+
const AiHubMenusMobile = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
14569
|
+
const _hoisted_1$s = { class: "ai-hub-menus-item_label" };
|
|
14570
|
+
const _hoisted_2$j = ["onMouseenter"];
|
|
14571
|
+
const _hoisted_3$h = { class: "ai-hub-menus-themetablist" };
|
|
14572
|
+
const _hoisted_4$f = { class: "flex items-center gap-[8px] font-semibold" };
|
|
14486
14573
|
const _hoisted_5$b = { class: "w-[32px] h-[32px] flex items-center justify-center" };
|
|
14487
|
-
const _hoisted_6$7 = { class: "flex items-center min-w-[90px] gap-[8px] font-semibold" };
|
|
14488
14574
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
14489
14575
|
__name: "AiHubMenus",
|
|
14490
14576
|
props: ["scene"],
|
|
@@ -14492,32 +14578,42 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14492
14578
|
const layoutConfig2 = useLayoutConfig();
|
|
14493
14579
|
const route = useRoute();
|
|
14494
14580
|
const props = __props;
|
|
14581
|
+
const isRouterLink = computed(() => {
|
|
14582
|
+
return props.scene !== SceneValue.aiRepo;
|
|
14583
|
+
});
|
|
14495
14584
|
const { t: t2 } = i18n.global;
|
|
14496
14585
|
const API = headRequest(inject("request"));
|
|
14586
|
+
const repoInfo = inject("repoInfo");
|
|
14497
14587
|
const menus = [
|
|
14498
14588
|
{
|
|
14499
14589
|
label: t2("gitCodeLayout.aihub.model"),
|
|
14500
14590
|
icon: "gt-model_default",
|
|
14501
14591
|
activeIcon: "gt-model_red",
|
|
14502
14592
|
whiteIcon: "gt-model_dark_bg",
|
|
14593
|
+
to: "/models",
|
|
14503
14594
|
url: `${layoutConfig2.VITE_AI_HOST}/models`,
|
|
14504
|
-
menueKey: RouteNameEnum.AI_MODELS
|
|
14595
|
+
menueKey: RouteNameEnum.AI_MODELS,
|
|
14596
|
+
repoType: RepoType.model
|
|
14505
14597
|
},
|
|
14506
14598
|
{
|
|
14507
14599
|
label: t2("gitCodeLayout.aihub.dataSet"),
|
|
14508
14600
|
icon: "gt-dataset_default",
|
|
14509
14601
|
activeIcon: "gt-dataset_red",
|
|
14510
14602
|
whiteIcon: "gt-dataset_dark_bg",
|
|
14603
|
+
to: "/datasets",
|
|
14511
14604
|
url: `${layoutConfig2.VITE_AI_HOST}/datasets`,
|
|
14512
|
-
menueKey: RouteNameEnum.AI_DATASETS
|
|
14605
|
+
menueKey: RouteNameEnum.AI_DATASETS,
|
|
14606
|
+
repoType: RepoType.dataset
|
|
14513
14607
|
},
|
|
14514
14608
|
{
|
|
14515
14609
|
label: "Spaces",
|
|
14516
14610
|
icon: "gt-space_default",
|
|
14517
14611
|
activeIcon: "gt-space_red",
|
|
14518
14612
|
whiteIcon: "gt-space_dark_bg",
|
|
14613
|
+
to: "/space",
|
|
14519
14614
|
url: `${layoutConfig2.VITE_AI_HOST}/space`,
|
|
14520
|
-
menueKey: RouteNameEnum.AI_SPACE
|
|
14615
|
+
menueKey: RouteNameEnum.AI_SPACE,
|
|
14616
|
+
repoType: RepoType.spaces
|
|
14521
14617
|
},
|
|
14522
14618
|
{
|
|
14523
14619
|
label: "专区",
|
|
@@ -14525,6 +14621,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14525
14621
|
icon: "gt-a-Property1Default7",
|
|
14526
14622
|
activeIcon: "gt-a-Property1red6",
|
|
14527
14623
|
whiteIcon: "gt-a-Property1white",
|
|
14624
|
+
to: "/theme",
|
|
14528
14625
|
url: `${layoutConfig2.VITE_AI_HOST}/theme`,
|
|
14529
14626
|
menueKey: RouteNameEnum.AI_THEME
|
|
14530
14627
|
},
|
|
@@ -14533,14 +14630,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14533
14630
|
icon: "gt-a-plane-GrowthCenter1",
|
|
14534
14631
|
activeIcon: "gt-a-plane-GrowthCenter-1",
|
|
14535
14632
|
whiteIcon: "gt-a-plane-GrowthCenter-2",
|
|
14633
|
+
to: "/competition",
|
|
14536
14634
|
url: `${layoutConfig2.VITE_AI_HOST}/competition`,
|
|
14537
14635
|
menueKey: RouteNameEnum.AI_COMPETITION
|
|
14538
14636
|
}
|
|
14539
14637
|
];
|
|
14540
14638
|
const activeMenu = computed(() => {
|
|
14541
14639
|
return menus.find((item) => {
|
|
14542
|
-
var _a;
|
|
14543
|
-
return item.menueKey === (route == null ? void 0 : route.name) || item.menueKey === ((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.pType);
|
|
14640
|
+
var _a, _b;
|
|
14641
|
+
return item.menueKey === (route == null ? void 0 : route.name) || item.menueKey === ((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.pType) || item.repoType === ((_b = repoInfo.value) == null ? void 0 : _b.repo_type);
|
|
14544
14642
|
}) || {};
|
|
14545
14643
|
});
|
|
14546
14644
|
const hoverMenu = ref(void 0);
|
|
@@ -14551,14 +14649,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14551
14649
|
return {
|
|
14552
14650
|
icon: item.icon,
|
|
14553
14651
|
name: item.tag_name || "国产模型专区",
|
|
14554
|
-
url: `${layoutConfig2.VITE_AI_HOST}/theme/${item.theme_id}
|
|
14652
|
+
url: `${layoutConfig2.VITE_AI_HOST}/theme/${item.theme_id}`,
|
|
14653
|
+
to: `/theme/${item.theme_id}`
|
|
14555
14654
|
};
|
|
14556
14655
|
});
|
|
14557
14656
|
themeTablist.value = [
|
|
14558
14657
|
{
|
|
14559
14658
|
icon: "gt-a-line-alltopics",
|
|
14560
14659
|
name: "全部主题",
|
|
14561
|
-
url: `${layoutConfig2.VITE_AI_HOST}/theme
|
|
14660
|
+
url: `${layoutConfig2.VITE_AI_HOST}/theme`,
|
|
14661
|
+
to: "/theme"
|
|
14562
14662
|
},
|
|
14563
14663
|
...dataResult
|
|
14564
14664
|
];
|
|
@@ -14580,30 +14680,35 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14580
14680
|
(openBlock(), createElementBlock(Fragment, null, renderList(menus, (menu, index2) => {
|
|
14581
14681
|
var _a;
|
|
14582
14682
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
14583
|
-
menu.id !== unref(aiThemeMenuId) ? (openBlock(),
|
|
14683
|
+
menu.id !== unref(aiThemeMenuId) ? (openBlock(), createBlock(GLink, {
|
|
14584
14684
|
key: 0,
|
|
14585
14685
|
class: normalizeClass(["ai-hub-menus-item flex items-center gap-[8px]", { active: ((_a = activeMenu.value) == null ? void 0 : _a.url) === menu.url }]),
|
|
14586
|
-
href: menu.url,
|
|
14686
|
+
href: isRouterLink.value ? void 0 : menu.url,
|
|
14687
|
+
to: isRouterLink.value ? menu.to : void 0,
|
|
14587
14688
|
onMouseenter: ($event) => hoverMenu.value = menu,
|
|
14588
14689
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => hoverMenu.value = void 0)
|
|
14589
|
-
},
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14690
|
+
}, {
|
|
14691
|
+
default: withCtx(() => [
|
|
14692
|
+
createVNode(GIcon, {
|
|
14693
|
+
size: "16px",
|
|
14694
|
+
name: getActiveIcon(menu)
|
|
14695
|
+
}, null, 8, ["name"]),
|
|
14696
|
+
createElementVNode("span", _hoisted_1$s, toDisplayString$1(menu.label), 1)
|
|
14697
|
+
]),
|
|
14698
|
+
_: 2
|
|
14699
|
+
}, 1032, ["class", "href", "to", "onMouseenter"])) : (openBlock(), createBlock(unref(Dropdown), {
|
|
14596
14700
|
key: 1,
|
|
14597
14701
|
trigger: "hover",
|
|
14598
14702
|
"overlay-class": "theme-tablist",
|
|
14599
14703
|
position: ["top-start"]
|
|
14600
14704
|
}, {
|
|
14601
14705
|
menu: withCtx(() => [
|
|
14602
|
-
createElementVNode("ul",
|
|
14706
|
+
createElementVNode("ul", _hoisted_3$h, [
|
|
14603
14707
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
|
|
14604
14708
|
return openBlock(), createBlock(GLink, {
|
|
14605
14709
|
key: index22,
|
|
14606
|
-
href: item.url,
|
|
14710
|
+
href: isRouterLink.value ? void 0 : item.url,
|
|
14711
|
+
to: isRouterLink.value ? item.to : void 0,
|
|
14607
14712
|
class: normalizeClass(["menuitems ellipsis block", { "active-theme-item": isActiveThemeItem(item.url) }]),
|
|
14608
14713
|
title: item.name
|
|
14609
14714
|
}, {
|
|
@@ -14616,7 +14721,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14616
14721
|
createElementVNode("span", null, toDisplayString$1(item.name), 1)
|
|
14617
14722
|
]),
|
|
14618
14723
|
_: 2
|
|
14619
|
-
}, 1032, ["href", "class", "title"]);
|
|
14724
|
+
}, 1032, ["href", "to", "class", "title"]);
|
|
14620
14725
|
}), 128))
|
|
14621
14726
|
])
|
|
14622
14727
|
]),
|
|
@@ -14635,7 +14740,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14635
14740
|
createElementVNode("span", {
|
|
14636
14741
|
class: normalizeClass(["ai-hub-menus-item_label hemin", { "theme-tablist-hoverColor": ((_a2 = activeMenu.value) == null ? void 0 : _a2.url) === menu.url || ((_b = hoverMenu.value) == null ? void 0 : _b.url) === menu.url }])
|
|
14637
14742
|
}, toDisplayString$1(menu.label), 3)
|
|
14638
|
-
], 40,
|
|
14743
|
+
], 40, _hoisted_2$j)
|
|
14639
14744
|
];
|
|
14640
14745
|
}),
|
|
14641
14746
|
_: 2
|
|
@@ -14643,28 +14748,35 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14643
14748
|
], 64);
|
|
14644
14749
|
}), 64))
|
|
14645
14750
|
], 2),
|
|
14646
|
-
|
|
14751
|
+
isRouterLink.value ? (openBlock(), createBlock(AiHubMenusMobile, {
|
|
14752
|
+
key: 0,
|
|
14753
|
+
activeMenu: activeMenu.value,
|
|
14754
|
+
menuList: menus,
|
|
14755
|
+
isRouterLink: isRouterLink.value,
|
|
14756
|
+
class: "md:hidden"
|
|
14757
|
+
}, null, 8, ["activeMenu", "isRouterLink"])) : (openBlock(), createBlock(GLink, {
|
|
14758
|
+
key: 1,
|
|
14647
14759
|
class: "flex items-center gap-[12px] md:hidden",
|
|
14648
14760
|
href: activeMenu.value.url
|
|
14649
14761
|
}, {
|
|
14650
14762
|
default: withCtx(() => [
|
|
14651
|
-
createElementVNode("
|
|
14652
|
-
createVNode(GIcon, {
|
|
14653
|
-
size: "18px",
|
|
14654
|
-
name: "gt-line-down",
|
|
14655
|
-
rotate: "90deg"
|
|
14656
|
-
})
|
|
14657
|
-
]),
|
|
14658
|
-
createElementVNode("span", _hoisted_6$7, [
|
|
14763
|
+
createElementVNode("span", _hoisted_4$f, [
|
|
14659
14764
|
createVNode(GIcon, {
|
|
14660
14765
|
size: "24px",
|
|
14661
14766
|
name: activeMenu.value.icon
|
|
14662
14767
|
}, null, 8, ["name"]),
|
|
14663
14768
|
createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
|
|
14769
|
+
]),
|
|
14770
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
14771
|
+
createVNode(GIcon, {
|
|
14772
|
+
size: "18px",
|
|
14773
|
+
name: "gt-line-down",
|
|
14774
|
+
rotate: "-90deg"
|
|
14775
|
+
})
|
|
14664
14776
|
])
|
|
14665
14777
|
]),
|
|
14666
14778
|
_: 1
|
|
14667
|
-
}, 8, ["href"])
|
|
14779
|
+
}, 8, ["href"]))
|
|
14668
14780
|
]);
|
|
14669
14781
|
};
|
|
14670
14782
|
}
|
|
@@ -16664,7 +16776,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16664
16776
|
default: withCtx(() => {
|
|
16665
16777
|
var _a2, _b2, _c;
|
|
16666
16778
|
return [
|
|
16667
|
-
createVNode(_sfc_main$
|
|
16779
|
+
createVNode(_sfc_main$z, {
|
|
16668
16780
|
class: "g-border",
|
|
16669
16781
|
src: (_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar,
|
|
16670
16782
|
name: (_b2 = unref(orgInfo)) == null ? void 0 : _b2.name,
|
|
@@ -16717,7 +16829,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16717
16829
|
default: withCtx(() => {
|
|
16718
16830
|
var _a3, _b3, _c2, _d2;
|
|
16719
16831
|
return [
|
|
16720
|
-
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$
|
|
16832
|
+
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$z, {
|
|
16721
16833
|
key: 0,
|
|
16722
16834
|
class: normalizeClass({ "g-border": isOrg.value }),
|
|
16723
16835
|
src: (_c2 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c2.avatar_url,
|
|
@@ -16861,7 +16973,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16861
16973
|
default: withCtx(() => {
|
|
16862
16974
|
var _a2, _b2, _c, _d, _e;
|
|
16863
16975
|
return [
|
|
16864
|
-
createVNode(_sfc_main$
|
|
16976
|
+
createVNode(_sfc_main$z, {
|
|
16865
16977
|
src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
|
|
16866
16978
|
name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c = unref(otherUserInfo)) == null ? void 0 : _c.nickname),
|
|
16867
16979
|
width: 28,
|
|
@@ -17602,9 +17714,6 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17602
17714
|
[
|
|
17603
17715
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
|
|
17604
17716
|
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
|
|
17605
|
-
],
|
|
17606
|
-
[
|
|
17607
|
-
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
|
|
17608
17717
|
]
|
|
17609
17718
|
];
|
|
17610
17719
|
const routerHref = computed(() => {
|
|
@@ -17666,7 +17775,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17666
17775
|
target: __props.isChatBot ? "_blank" : ""
|
|
17667
17776
|
}, {
|
|
17668
17777
|
default: withCtx(() => [
|
|
17669
|
-
createVNode(_sfc_main$
|
|
17778
|
+
createVNode(_sfc_main$z, {
|
|
17670
17779
|
name: __props.accountInfo.nickname,
|
|
17671
17780
|
src: __props.accountInfo.avatar,
|
|
17672
17781
|
width: 52,
|
|
@@ -17814,7 +17923,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17814
17923
|
onBeforeUnmount(() => {
|
|
17815
17924
|
window.removeEventListener("storage", handleStorageChange);
|
|
17816
17925
|
});
|
|
17817
|
-
console.log("aaa----------------");
|
|
17818
17926
|
return (_ctx, _cache) => {
|
|
17819
17927
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
17820
17928
|
unref(isMobile) ? (openBlock(), createElementBlock("div", {
|
|
@@ -17822,7 +17930,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17822
17930
|
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
17823
17931
|
}, [
|
|
17824
17932
|
createElementVNode("div", _hoisted_1$l, [
|
|
17825
|
-
createVNode(_sfc_main$
|
|
17933
|
+
createVNode(_sfc_main$z, {
|
|
17826
17934
|
name: accountInfo.value.nickname,
|
|
17827
17935
|
src: accountInfo.value.avatar
|
|
17828
17936
|
}, null, 8, ["name", "src"]),
|
|
@@ -17852,7 +17960,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17852
17960
|
]),
|
|
17853
17961
|
default: withCtx(() => [
|
|
17854
17962
|
createElementVNode("div", _hoisted_3$d, [
|
|
17855
|
-
createVNode(_sfc_main$
|
|
17963
|
+
createVNode(_sfc_main$z, {
|
|
17856
17964
|
name: accountInfo.value.nickname,
|
|
17857
17965
|
src: accountInfo.value.avatar
|
|
17858
17966
|
}, null, 8, ["name", "src"]),
|
|
@@ -18003,13 +18111,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18003
18111
|
var _a;
|
|
18004
18112
|
const layoutConfig2 = useLayoutConfig();
|
|
18005
18113
|
const { t: $t } = i18n.global;
|
|
18006
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
18007
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
18008
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
18009
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
18010
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
18011
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
18012
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
18114
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D25Oj55X.js"));
|
|
18115
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CpHemB3q.js"));
|
|
18116
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Cm-kH8Pu.js"));
|
|
18117
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Iyll20xo.js"));
|
|
18118
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B0J_I494.js"));
|
|
18119
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Htl6ZB9E.js"));
|
|
18120
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C6mWZ35K.js"));
|
|
18013
18121
|
const props = __props;
|
|
18014
18122
|
const repoInfo = inject("repoInfo");
|
|
18015
18123
|
const orgInfo = inject("orgInfo");
|
|
@@ -18619,7 +18727,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18619
18727
|
}
|
|
18620
18728
|
});
|
|
18621
18729
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18622
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18730
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-_1JWF_fz.js"));
|
|
18623
18731
|
function clearNotice() {
|
|
18624
18732
|
if (localStorage$2.getItem("validator_email")) {
|
|
18625
18733
|
localStorage$2.removeItem("validator_email");
|
|
@@ -19622,7 +19730,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19622
19730
|
name: "gt-line-project",
|
|
19623
19731
|
color: "var(--theme-menu-icon-fill)",
|
|
19624
19732
|
size: "16"
|
|
19625
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
19733
|
+
})) : (openBlock(), createBlock(_sfc_main$z, {
|
|
19626
19734
|
key: 1,
|
|
19627
19735
|
src: item.avatar,
|
|
19628
19736
|
name: item.key,
|
|
@@ -25410,7 +25518,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25410
25518
|
}
|
|
25411
25519
|
});
|
|
25412
25520
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25413
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25521
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BmG6buAx.js"));
|
|
25414
25522
|
const useSlidCaptcha = () => {
|
|
25415
25523
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25416
25524
|
const open = (config) => {
|
|
@@ -26798,7 +26906,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26798
26906
|
createElementVNode("div", _hoisted_33, [
|
|
26799
26907
|
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
26800
26908
|
key: 0,
|
|
26801
|
-
class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer
|
|
26909
|
+
class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
|
|
26802
26910
|
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
26803
26911
|
}, [
|
|
26804
26912
|
createElementVNode("div", _hoisted_34, [
|
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-DaolLGsY.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";
|