vue-layout-gitcode 1.0.1 → 1.0.3
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-52647c97.js → GloabarSearch-9071e199.js} +5 -4
- package/{ProjectSearch-e63ed1ba.js → ProjectSearch-6706fc55.js} +5 -4
- package/{SearchHistoryList-87488e31.js → SearchHistoryList-72d09344.js} +4 -3
- package/{SearchPrefixTag-cfcbeba4.js → SearchPrefixTag-3fb0d097.js} +4 -3
- package/{SearchRecommed-8ba4e3a3.js → SearchRecommed-f64a70dd.js} +9 -7
- package/{SearchScopeList-dab774d3.js → SearchScopeList-0f3fd546.js} +4 -3
- package/{UserSearch-d57efc36.js → UserSearch-cebcea5f.js} +5 -4
- package/{formatNameSpace-24f91ed9.js → formatNameSpace-a1c3167c.js} +1 -1
- package/{index-e987b0b4.js → index-04a85ee7.js} +4 -3
- package/{index-74e529af.js → index-b1389917.js} +228 -169
- package/index.d.ts +33 -4
- package/index.js +9 -7
- package/{notice-dd3a9d4a.js → notice-7585c9e0.js} +4 -3
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -35,10 +35,11 @@ import { Badge } from "vue-devui-lal/badge";
|
|
|
35
35
|
import "vue-devui-lal/badge/style.css";
|
|
36
36
|
import { Tabs } from "vue-devui-lal/tabs";
|
|
37
37
|
import "vue-devui-lal/tabs/style.css";
|
|
38
|
-
import { RadioGroup, Radio } from "vue-devui-lal/radio";
|
|
39
|
-
import "vue-devui-lal/radio/style.css";
|
|
40
38
|
import { Form, FormItem } from "vue-devui-lal/form";
|
|
41
39
|
import "vue-devui-lal/form/style.css";
|
|
40
|
+
import { RadioGroup, Radio } from "vue-devui-lal/radio";
|
|
41
|
+
import "@devui-design/icons/icomoon/devui-icon.css";
|
|
42
|
+
import "vue-devui-lal/radio/style.css";
|
|
42
43
|
import { Checkbox } from "vue-devui-lal/checkbox";
|
|
43
44
|
import "vue-devui-lal/checkbox/style.css";
|
|
44
45
|
import { Modal } from "vue-devui-lal/modal";
|
|
@@ -101,6 +102,30 @@ const _export_sfc = (sfc, props) => {
|
|
|
101
102
|
return target;
|
|
102
103
|
};
|
|
103
104
|
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-2e3caaf8"]]);
|
|
105
|
+
const defaultConfig = {
|
|
106
|
+
VITE_ENV: "production",
|
|
107
|
+
VITE_HOST: "https://gitcode.com",
|
|
108
|
+
VITE_API_HOST: "https://web-api.gitcode.com",
|
|
109
|
+
VITE_AD_LINK: "https://cdn-static.gitcode.com/adList/active.json",
|
|
110
|
+
VITE_NEWS_HOST: "https://news.gitcode.com",
|
|
111
|
+
VITE_AI_HOST: "https://ai.gitcode.com",
|
|
112
|
+
VITE_INCUBATION_TOPIC: "6656c64efd46e722f6299761",
|
|
113
|
+
VITE_GSTAR_TOPIC: "6656c65ebacc215dac8b2d06",
|
|
114
|
+
VITE_TRUSTED_TOPIC: "6716255303226504db66d8d7",
|
|
115
|
+
VITE_SEARCH_REPO_CHANNEL_ID: "67bc3f5f97a0293d6bfebd01",
|
|
116
|
+
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
117
|
+
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
118
|
+
};
|
|
119
|
+
let layoutConfig$5 = { ...defaultConfig };
|
|
120
|
+
function setLayoutConfig(customConfig) {
|
|
121
|
+
layoutConfig$5 = {
|
|
122
|
+
...layoutConfig$5,
|
|
123
|
+
...customConfig
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function useLayoutConfig() {
|
|
127
|
+
return layoutConfig$5;
|
|
128
|
+
}
|
|
104
129
|
function generateRandomString(length) {
|
|
105
130
|
let result2 = "";
|
|
106
131
|
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -284,9 +309,6 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
|
|
|
284
309
|
AsideReportEvent2["AI_CLICK"] = "aihub_gitcode_toolbar";
|
|
285
310
|
return AsideReportEvent2;
|
|
286
311
|
})(AsideReportEvent || {});
|
|
287
|
-
const SITE_HOST = "https://gitcode.com";
|
|
288
|
-
const AI_HOST = "https://ai.gitcode.com";
|
|
289
|
-
const NEWS_HOST = "https://news.gitcode.com";
|
|
290
312
|
const AICopilot_ROUTE_NAME = "aiCopilot";
|
|
291
313
|
const HELP_DOCS_URL = "https://docs.gitcode.com";
|
|
292
314
|
const MENU_ITEM_ROUTE_NAME = ["home", "gStar", "trusted", "aiCopilot", "kanban", "contributed", "issues", "merge", "discussionCreated", "explore", "userFollowing", "userStars", "ai"];
|
|
@@ -1288,6 +1310,7 @@ function init(converter, defaultAttributes) {
|
|
|
1288
1310
|
);
|
|
1289
1311
|
}
|
|
1290
1312
|
var api = init(defaultConverter, { path: "/" });
|
|
1313
|
+
const layoutConfig$4 = useLayoutConfig();
|
|
1291
1314
|
function scrollToTop() {
|
|
1292
1315
|
const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
|
|
1293
1316
|
if (c > 0) {
|
|
@@ -1311,7 +1334,7 @@ function extractRepoInfoWithURL(repoUrl) {
|
|
|
1311
1334
|
return parts.join("/");
|
|
1312
1335
|
}
|
|
1313
1336
|
const isGstarRepo = (topics) => {
|
|
1314
|
-
const gstarTopicIds =
|
|
1337
|
+
const gstarTopicIds = layoutConfig$4.VITE_GSTAR_TOPIC.split(",");
|
|
1315
1338
|
let isGstar = false;
|
|
1316
1339
|
topics && topics.forEach((item) => {
|
|
1317
1340
|
if (gstarTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -1321,7 +1344,7 @@ const isGstarRepo = (topics) => {
|
|
|
1321
1344
|
return isGstar;
|
|
1322
1345
|
};
|
|
1323
1346
|
const isTrustedRepo = (topics) => {
|
|
1324
|
-
const trustedTopicIds =
|
|
1347
|
+
const trustedTopicIds = layoutConfig$4.VITE_TRUSTED_TOPIC.split(",");
|
|
1325
1348
|
let isTrusted = false;
|
|
1326
1349
|
topics && topics.forEach((item) => {
|
|
1327
1350
|
if (trustedTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -1330,7 +1353,7 @@ const isTrustedRepo = (topics) => {
|
|
|
1330
1353
|
});
|
|
1331
1354
|
return isTrusted;
|
|
1332
1355
|
};
|
|
1333
|
-
const INCUBATION_TOPICS = "
|
|
1356
|
+
const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
|
|
1334
1357
|
const isIncubationRepo = (topics = []) => {
|
|
1335
1358
|
if (!topics)
|
|
1336
1359
|
return false;
|
|
@@ -1374,7 +1397,7 @@ const getLastTimeRepoId = () => {
|
|
|
1374
1397
|
};
|
|
1375
1398
|
const setUtmSourceSign = (utm_source) => {
|
|
1376
1399
|
const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
|
|
1377
|
-
return api.set("utm_source_sign", utm_source, { expires: time, domain:
|
|
1400
|
+
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$4.VITE_COOKIE_DOMAIN });
|
|
1378
1401
|
};
|
|
1379
1402
|
const getUtmSourceSign = () => {
|
|
1380
1403
|
return api.get("utm_source_sign") || "";
|
|
@@ -1539,6 +1562,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1539
1562
|
},
|
|
1540
1563
|
emits: ["toggle-growth-center"],
|
|
1541
1564
|
setup(__props, { emit: __emit }) {
|
|
1565
|
+
const layoutConfig2 = useLayoutConfig();
|
|
1542
1566
|
const { t: t2 } = useI18n();
|
|
1543
1567
|
const props = __props;
|
|
1544
1568
|
provide("globalStore", computed(() => props.globalStore));
|
|
@@ -1638,7 +1662,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1638
1662
|
if (closeActive && closeActive === "1" && closeDate === nowDate) {
|
|
1639
1663
|
return false;
|
|
1640
1664
|
}
|
|
1641
|
-
const adLink = "
|
|
1665
|
+
const adLink = layoutConfig2.VITE_AD_LINK + "?timestamp=" + (/* @__PURE__ */ new Date()).getTime();
|
|
1642
1666
|
const response = await fetch(adLink);
|
|
1643
1667
|
activeAdJson.value = await response.json();
|
|
1644
1668
|
};
|
|
@@ -1935,9 +1959,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1935
1959
|
};
|
|
1936
1960
|
}
|
|
1937
1961
|
});
|
|
1938
|
-
const
|
|
1962
|
+
const index_vue_vue_type_style_index_0_scoped_7df4d805_lang = "";
|
|
1939
1963
|
const index_vue_vue_type_style_index_1_lang$3 = "";
|
|
1940
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-
|
|
1964
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-7df4d805"]]);
|
|
1941
1965
|
const { width } = useWindowSize();
|
|
1942
1966
|
const usePageResize = () => {
|
|
1943
1967
|
const widthConfig = {
|
|
@@ -2704,10 +2728,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2704
2728
|
}
|
|
2705
2729
|
});
|
|
2706
2730
|
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
2731
|
+
const layoutConfig$3 = useLayoutConfig();
|
|
2707
2732
|
const transWebUrl = (url, params) => {
|
|
2708
2733
|
if (!url)
|
|
2709
2734
|
return url;
|
|
2710
2735
|
let processedUrl = url;
|
|
2736
|
+
if (layoutConfig$3.VITE_ENV !== "production") {
|
|
2737
|
+
const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
|
|
2738
|
+
const match = url.match(regex);
|
|
2739
|
+
processedUrl = match ? match[2] : url || "/";
|
|
2740
|
+
}
|
|
2711
2741
|
if (!params)
|
|
2712
2742
|
return processedUrl;
|
|
2713
2743
|
const separator = processedUrl.includes("?") ? "&" : "?";
|
|
@@ -3152,6 +3182,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3152
3182
|
},
|
|
3153
3183
|
emits: ["onSelect"],
|
|
3154
3184
|
setup(__props, { emit: __emit }) {
|
|
3185
|
+
const layoutConfig2 = useLayoutConfig();
|
|
3186
|
+
const AI_HOST = layoutConfig2.VITE_AI_HOST;
|
|
3187
|
+
const NEWS_HOST = layoutConfig2.VITE_NEWS_HOST;
|
|
3155
3188
|
const router2 = useRouter();
|
|
3156
3189
|
const route = useRoute();
|
|
3157
3190
|
const { t: t2, locale: locale2 } = useI18n();
|
|
@@ -3201,7 +3234,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3201
3234
|
icon: "gt-line-home-2",
|
|
3202
3235
|
activeIcon: "gt-plane-home-2",
|
|
3203
3236
|
label: t2("gitCodeLayout.header.home"),
|
|
3204
|
-
host:
|
|
3237
|
+
host: layoutConfig2.VITE_HOST,
|
|
3205
3238
|
// 跳转的域名
|
|
3206
3239
|
route: { name: "home", microApp: HOMEWEB_APP_NAME }
|
|
3207
3240
|
// 跳转的路径
|
|
@@ -3211,7 +3244,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3211
3244
|
icon: "gt-line-issues",
|
|
3212
3245
|
activeIcon: "gt-plane-issues-2",
|
|
3213
3246
|
label: "Issues",
|
|
3214
|
-
host:
|
|
3247
|
+
host: layoutConfig2.VITE_HOST,
|
|
3215
3248
|
route: { name: "issues", login: true }
|
|
3216
3249
|
},
|
|
3217
3250
|
{
|
|
@@ -3219,7 +3252,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3219
3252
|
icon: "gt-line-pullRequest",
|
|
3220
3253
|
activeIcon: "gt-plane-pullRequest-2",
|
|
3221
3254
|
label: props.asideSetShowLittle ? "PR" : "Pull Requests",
|
|
3222
|
-
host:
|
|
3255
|
+
host: layoutConfig2.VITE_HOST,
|
|
3223
3256
|
route: { name: "merge", login: true }
|
|
3224
3257
|
},
|
|
3225
3258
|
{
|
|
@@ -3227,7 +3260,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3227
3260
|
icon: "gt-line-table",
|
|
3228
3261
|
activeIcon: "gt-plane-table-2",
|
|
3229
3262
|
label: t2("gitCodeLayout.org.board"),
|
|
3230
|
-
host:
|
|
3263
|
+
host: layoutConfig2.VITE_HOST,
|
|
3231
3264
|
// 跳转的域名
|
|
3232
3265
|
route: { name: "kanban", login: true },
|
|
3233
3266
|
// 跳转的路径
|
|
@@ -3238,7 +3271,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3238
3271
|
icon: "gt-line-discussions",
|
|
3239
3272
|
activeIcon: "gt-plane-discussions-2",
|
|
3240
3273
|
label: t2("gitCodeLayout.repo.pr.discussion"),
|
|
3241
|
-
host:
|
|
3274
|
+
host: layoutConfig2.VITE_HOST,
|
|
3242
3275
|
route: { name: "discussionCreated", login: true }
|
|
3243
3276
|
}
|
|
3244
3277
|
// {
|
|
@@ -3247,7 +3280,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3247
3280
|
// icon: 'gt-a-watchshuxing1guan5',
|
|
3248
3281
|
// activeIcon: 'gt-a-watchshuxing1kai8',
|
|
3249
3282
|
// label: t('gitCodeLayout.home.focusOn'),
|
|
3250
|
-
// host:
|
|
3283
|
+
// host: layoutConfig.VITE_HOST,
|
|
3251
3284
|
// route: { name: 'userFollowing', microApp: 'user-center', params: { namespace: username }, login: true }
|
|
3252
3285
|
// },
|
|
3253
3286
|
// {
|
|
@@ -3256,7 +3289,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3256
3289
|
// icon: 'gt-a-Star_Navigation_Defaults_16px1',
|
|
3257
3290
|
// activeIcon: 'gt-a-Star_Navigation_Select_16px1',
|
|
3258
3291
|
// label: t('gitCodeLayout.home.star'),
|
|
3259
|
-
// host:
|
|
3292
|
+
// host: layoutConfig.VITE_HOST,
|
|
3260
3293
|
// route: { name: 'userStars', microApp: 'user-center', params: { namespace: username }, login: true }
|
|
3261
3294
|
// }
|
|
3262
3295
|
];
|
|
@@ -3273,8 +3306,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3273
3306
|
activeIcon: "gt-plane-GitCodeAI",
|
|
3274
3307
|
label: props.asideSetShowLittle ? "AI" : "GitCode AI",
|
|
3275
3308
|
openBlank: true,
|
|
3276
|
-
host:
|
|
3277
|
-
href: `${
|
|
3309
|
+
host: layoutConfig2.VITE_HOST,
|
|
3310
|
+
href: `${layoutConfig2.VITE_HOST}/ai?utm_source=sidebar`
|
|
3278
3311
|
},
|
|
3279
3312
|
/* {
|
|
3280
3313
|
key: 'ai',
|
|
@@ -3291,7 +3324,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3291
3324
|
icon: 'gt-plane-GStar',
|
|
3292
3325
|
activeIcon: 'gt-plane-GStar-red',
|
|
3293
3326
|
label: 'G-Star',
|
|
3294
|
-
host:
|
|
3327
|
+
host: layoutConfig.VITE_HOST,
|
|
3295
3328
|
route: { name: 'gStar', microApp: HOMEWEB_APP_NAME }
|
|
3296
3329
|
}, */
|
|
3297
3330
|
{
|
|
@@ -3317,7 +3350,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3317
3350
|
icon: 'gt-a-Property1Default5',
|
|
3318
3351
|
activeIcon: 'gt-a-Property1red5',
|
|
3319
3352
|
label: asideSetShowLittle ? t('gitCodeLayout.trusted.shortName') : t('gitCodeLayout.trusted.menu'),
|
|
3320
|
-
host:
|
|
3353
|
+
host: layoutConfig.VITE_HOST,
|
|
3321
3354
|
route: { name: 'trusted', microApp: HOMEWEB_APP_NAME }
|
|
3322
3355
|
} */
|
|
3323
3356
|
];
|
|
@@ -3675,14 +3708,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3675
3708
|
};
|
|
3676
3709
|
}
|
|
3677
3710
|
});
|
|
3678
|
-
const
|
|
3711
|
+
const asideContent_vue_vue_type_style_index_0_scoped_bde13c74_lang = "";
|
|
3679
3712
|
const asideContent_vue_vue_type_style_index_1_lang = "";
|
|
3680
|
-
const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
3713
|
+
const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-bde13c74"]]);
|
|
3681
3714
|
const _hoisted_1$l = { class: "p-[16px] flex justify-between items-center h-[60px]" };
|
|
3682
3715
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
3683
3716
|
__name: "index",
|
|
3684
3717
|
props: {
|
|
3685
3718
|
sceneValue: { default: SceneValue.home },
|
|
3719
|
+
disableFlatMode: { type: Boolean, default: false },
|
|
3686
3720
|
userInfo: { default: () => ({}) },
|
|
3687
3721
|
isLogin: { type: Boolean },
|
|
3688
3722
|
request: { type: Function, default: () => Promise.resolve({ data: null }) },
|
|
@@ -3702,7 +3736,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3702
3736
|
return false;
|
|
3703
3737
|
});
|
|
3704
3738
|
const asideSetShow = computed(() => {
|
|
3705
|
-
return props.sceneValue === SceneValue.home;
|
|
3739
|
+
return props.sceneValue === SceneValue.home && !props.disableFlatMode;
|
|
3706
3740
|
});
|
|
3707
3741
|
const sizeStore = usePageResize();
|
|
3708
3742
|
const { isMobile } = usePageResize();
|
|
@@ -3796,9 +3830,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3796
3830
|
};
|
|
3797
3831
|
}
|
|
3798
3832
|
});
|
|
3799
|
-
const
|
|
3833
|
+
const index_vue_vue_type_style_index_0_scoped_5e9c608f_lang = "";
|
|
3800
3834
|
const index_vue_vue_type_style_index_1_lang$2 = "";
|
|
3801
|
-
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
3835
|
+
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-5e9c608f"]]);
|
|
3802
3836
|
function isPhone() {
|
|
3803
3837
|
const flag = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
3804
3838
|
return flag;
|
|
@@ -5841,6 +5875,7 @@ var encUtf8 = { exports: {} };
|
|
|
5841
5875
|
})(encUtf8);
|
|
5842
5876
|
var encUtf8Exports = encUtf8.exports;
|
|
5843
5877
|
const Utf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
|
|
5878
|
+
const layoutConfig$2 = useLayoutConfig();
|
|
5844
5879
|
function headRequest(request) {
|
|
5845
5880
|
return {
|
|
5846
5881
|
// 获取用户是否可以创建组织 checkUserCreateOrg
|
|
@@ -6065,8 +6100,8 @@ function headRequest(request) {
|
|
|
6065
6100
|
},
|
|
6066
6101
|
// 密码登录
|
|
6067
6102
|
toLogin(data) {
|
|
6068
|
-
const key = Utf8.parse(
|
|
6069
|
-
const iv = Utf8.parse(
|
|
6103
|
+
const key = Utf8.parse(layoutConfig$2.VITE_SECRET_KEY);
|
|
6104
|
+
const iv = Utf8.parse(layoutConfig$2.VITE_SECRET_IV);
|
|
6070
6105
|
const cryptoCode = AES.encrypt(data.password, key, {
|
|
6071
6106
|
iv,
|
|
6072
6107
|
padding: Pkcs7
|
|
@@ -6183,6 +6218,8 @@ const _hoisted_7$5 = { class: "flex items-center min-w-[90px] gap-[8px] font-sem
|
|
|
6183
6218
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
6184
6219
|
__name: "AiHubMenus",
|
|
6185
6220
|
setup(__props) {
|
|
6221
|
+
const layoutConfig2 = useLayoutConfig();
|
|
6222
|
+
const AI_HOST = layoutConfig2.VITE_AI_HOST;
|
|
6186
6223
|
const { t: t2 } = useI18n();
|
|
6187
6224
|
const API = headRequest(inject("request"));
|
|
6188
6225
|
const repoInfo = inject("repoInfo");
|
|
@@ -6341,9 +6378,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6341
6378
|
};
|
|
6342
6379
|
}
|
|
6343
6380
|
});
|
|
6344
|
-
const
|
|
6381
|
+
const AiHubMenus_vue_vue_type_style_index_0_scoped_369af3b6_lang = "";
|
|
6345
6382
|
const AiHubMenus_vue_vue_type_style_index_1_lang = "";
|
|
6346
|
-
const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
6383
|
+
const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-369af3b6"]]);
|
|
6347
6384
|
const _hoisted_1$j = ["src"];
|
|
6348
6385
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
6349
6386
|
...{ name: "FlashTag" },
|
|
@@ -8258,6 +8295,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8258
8295
|
},
|
|
8259
8296
|
emits: ["followDevCommunity", "followUser"],
|
|
8260
8297
|
setup(__props, { emit: __emit }) {
|
|
8298
|
+
const layoutConfig2 = useLayoutConfig();
|
|
8299
|
+
const AI_HOST = layoutConfig2.VITE_AI_HOST;
|
|
8261
8300
|
const breadcrumb = useBreadcrumb();
|
|
8262
8301
|
console.log("breadcrumb", breadcrumb);
|
|
8263
8302
|
const breadcrumbRef = ref(null);
|
|
@@ -8320,7 +8359,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8320
8359
|
return;
|
|
8321
8360
|
if (!topicTag.value)
|
|
8322
8361
|
return;
|
|
8323
|
-
const aiUrl = `${
|
|
8362
|
+
const aiUrl = `${AI_HOST}${topicTag.value.linkUrl}`;
|
|
8324
8363
|
location.href = aiUrl;
|
|
8325
8364
|
};
|
|
8326
8365
|
const showTimeTopic = computed(() => {
|
|
@@ -8589,9 +8628,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8589
8628
|
};
|
|
8590
8629
|
}
|
|
8591
8630
|
});
|
|
8592
|
-
const
|
|
8631
|
+
const HeaderCustom_vue_vue_type_style_index_0_scoped_fe3d30e3_lang = "";
|
|
8593
8632
|
const HeaderCustom_vue_vue_type_style_index_1_lang = "";
|
|
8594
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
8633
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-fe3d30e3"]]);
|
|
8595
8634
|
const logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAAAkCAYAAADrcPSPAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8USURBVHgB7V1NbCRHFX6vemx+DmQWIgJc0j5kQ4RQvGeUeHyE2LteEJwixY4EydomthGIG7YvKEIRa7P2ZgEpHitXBLP2rpAipJ1NDjnaOUE2SG6iiEuQcASbLJ7pKt6r7p6p7unf8exidvuT2jPTXf26+lW9V6++et0GKFGixF0DQh84sGvVFsAUgnxSAtq0a9QQ6CiAQzp2dQis5ojTdKBEiQcUhQzsll2bBlDP0VbLfxY2AeT2aeetOpQo8YAhl4G9a9dotFIXybBs6B80somlx51mA0qUeECQamAcCrZBbSlQUzA4rJ123lyCe4SpRVWFdjeEBQmHjcu4DyXuK5ydd1eUwuXODiFndi9V6vA/hkg6QMZlt0DtDdi4GIvv2mN/gHuENhmXq9SNYFMoF6BEiXuEWAPzjevGMUPCRFC4OfWeXatBiRL3OXoMzGMIB2Fc2CRDSgwFFbg2lChxn6PHwNogl+OMCwGJnEAHUkATukOPNVQzp52b4xWw6sllLQdKlLjPUTF/EA0/qkAuxhVsAy49QWtaHNrROpft794/7TQTCQNaAzu8ZY81Y2h95zGn2YQTCE2KHIHtBmt7Ag4tchyNDXYcfcibVaOuIH1JqPJvS4BDWt9vrOFh4jkvKpvOqQW/6fr7ATGj5Zl1k+D0Q9rQfdoukz9+vYL7zKpbgqzB6ywiq596nQRUwj+Zik9HUcNwAWdIQUbIiU3eBwPC1LyquQj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lLgbyL8iC4GhcdZDvn9hpN9JAUA0umiUhlXiQUQhA4uC17eCLHl+aNMTKGgdRb8scr/853slSpQoUeKu4b/VMDt15riwZwAAAABJRU5ErkJggg==";
|
|
8596
8635
|
const _hoisted_1$h = ["src"];
|
|
8597
8636
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
@@ -8600,8 +8639,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8600
8639
|
},
|
|
8601
8640
|
__name: "ChatBot",
|
|
8602
8641
|
setup(__props) {
|
|
8642
|
+
const layoutConfig2 = useLayoutConfig();
|
|
8603
8643
|
function goPage() {
|
|
8604
|
-
window.open(`${
|
|
8644
|
+
window.open(`${layoutConfig2.VITE_HOST}/ai?utm_source=toolbar`);
|
|
8605
8645
|
}
|
|
8606
8646
|
return (_ctx, _cache) => {
|
|
8607
8647
|
return openBlock(), createElementBlock("div", {
|
|
@@ -8617,8 +8657,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8617
8657
|
};
|
|
8618
8658
|
}
|
|
8619
8659
|
});
|
|
8620
|
-
const
|
|
8621
|
-
const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
8660
|
+
const ChatBot_vue_vue_type_style_index_0_scoped_e951add8_lang = "";
|
|
8661
|
+
const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-e951add8"]]);
|
|
8622
8662
|
const _hoisted_1$g = { class: "devui-select__item g-option-link" };
|
|
8623
8663
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
8624
8664
|
...{
|
|
@@ -9385,7 +9425,7 @@ const $i18n = setupI18n({
|
|
|
9385
9425
|
}
|
|
9386
9426
|
});
|
|
9387
9427
|
const i18n = $i18n;
|
|
9388
|
-
const
|
|
9428
|
+
const index_vue_vue_type_style_index_0_scoped_4bd4e5e2_lang = "";
|
|
9389
9429
|
const _sfc_main$k = /* @__PURE__ */ Object.assign({
|
|
9390
9430
|
name: "Create"
|
|
9391
9431
|
}, {
|
|
@@ -9397,6 +9437,7 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
|
|
|
9397
9437
|
}
|
|
9398
9438
|
},
|
|
9399
9439
|
setup(__props) {
|
|
9440
|
+
const layoutConfig2 = useLayoutConfig();
|
|
9400
9441
|
const API = headRequest(inject("request"));
|
|
9401
9442
|
const getUserCreateOrg = async (user) => {
|
|
9402
9443
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -9412,8 +9453,8 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
|
|
|
9412
9453
|
};
|
|
9413
9454
|
const { t: $t } = i18n.global;
|
|
9414
9455
|
const linkList = ref([
|
|
9415
|
-
{ label: $t("gitCodeLayout.header.createRepo"), href: `${
|
|
9416
|
-
{ label: $t("gitCodeLayout.header.importRepo"), href: `${
|
|
9456
|
+
{ label: $t("gitCodeLayout.header.createRepo"), href: `${layoutConfig2.VITE_HOST}/create?position=nav_top` },
|
|
9457
|
+
{ label: $t("gitCodeLayout.header.importRepo"), href: `${layoutConfig2.VITE_HOST}/migrate?type=3` },
|
|
9417
9458
|
{ label: $t("gitCodeLayout.header.createOrg"), linkName: "newOrg" }
|
|
9418
9459
|
]);
|
|
9419
9460
|
useRoute();
|
|
@@ -9426,10 +9467,10 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
|
|
|
9426
9467
|
Message.warning($t("gitCodeLayout.userSetting.tips.youCanCreOrManUp", { num: 5 }));
|
|
9427
9468
|
return;
|
|
9428
9469
|
} else {
|
|
9429
|
-
window.location.href = `${
|
|
9470
|
+
window.location.href = `${layoutConfig2.VITE_HOST}/org/create`;
|
|
9430
9471
|
}
|
|
9431
9472
|
}
|
|
9432
|
-
if (window.location.href.includes("create") && linkItem.href === `${
|
|
9473
|
+
if (window.location.href.includes("create") && linkItem.href === `${layoutConfig2.VITE_HOST}/create?position=nav_top`) {
|
|
9433
9474
|
window.location.reload();
|
|
9434
9475
|
event.stopPropagation();
|
|
9435
9476
|
}
|
|
@@ -9476,7 +9517,7 @@ const _sfc_main$k = /* @__PURE__ */ Object.assign({
|
|
|
9476
9517
|
};
|
|
9477
9518
|
}
|
|
9478
9519
|
});
|
|
9479
|
-
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
9520
|
+
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4bd4e5e2"]]);
|
|
9480
9521
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
9481
9522
|
...{
|
|
9482
9523
|
name: "DocumentCenter"
|
|
@@ -9646,6 +9687,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9646
9687
|
},
|
|
9647
9688
|
__name: "Notice",
|
|
9648
9689
|
setup(__props) {
|
|
9690
|
+
const layoutConfig2 = useLayoutConfig();
|
|
9649
9691
|
const API = headRequest(inject("request"));
|
|
9650
9692
|
const counts = ref(0);
|
|
9651
9693
|
const getCounts = () => {
|
|
@@ -9674,7 +9716,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9674
9716
|
});
|
|
9675
9717
|
return (_ctx, _cache) => {
|
|
9676
9718
|
return openBlock(), createBlock(GLink, {
|
|
9677
|
-
href: `${unref(
|
|
9719
|
+
href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
|
|
9678
9720
|
}, {
|
|
9679
9721
|
default: withCtx(() => [
|
|
9680
9722
|
createVNode(unref(Badge), {
|
|
@@ -9699,8 +9741,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9699
9741
|
};
|
|
9700
9742
|
}
|
|
9701
9743
|
});
|
|
9702
|
-
const
|
|
9703
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
9744
|
+
const Notice_vue_vue_type_style_index_0_scoped_061b58d4_lang = "";
|
|
9745
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-061b58d4"]]);
|
|
9704
9746
|
const UserLevel_vue_vue_type_style_index_0_scoped_decf23ff_lang = "";
|
|
9705
9747
|
const _hoisted_1$f = {
|
|
9706
9748
|
key: 0,
|
|
@@ -9798,6 +9840,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9798
9840
|
__name: "UserAvatarMenu",
|
|
9799
9841
|
props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub"],
|
|
9800
9842
|
setup(__props) {
|
|
9843
|
+
const layoutConfig2 = useLayoutConfig();
|
|
9801
9844
|
const API = headRequest(inject("request"));
|
|
9802
9845
|
const repoInfo = inject("repoInfo");
|
|
9803
9846
|
const orgInfo = inject("orgInfo");
|
|
@@ -9890,7 +9933,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9890
9933
|
return openBlock(), createElementBlock("div", null, [
|
|
9891
9934
|
createVNode(GLink, {
|
|
9892
9935
|
class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
|
|
9893
|
-
href: `${unref(
|
|
9936
|
+
href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
|
|
9894
9937
|
key: "myPage",
|
|
9895
9938
|
target: __props.isChatBot ? "_blank" : ""
|
|
9896
9939
|
}, {
|
|
@@ -9987,8 +10030,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9987
10030
|
};
|
|
9988
10031
|
}
|
|
9989
10032
|
});
|
|
9990
|
-
const
|
|
9991
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
10033
|
+
const UserAvatarMenu_vue_vue_type_style_index_0_scoped_488040dd_lang = "";
|
|
10034
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-488040dd"]]);
|
|
9992
10035
|
const _hoisted_1$d = { class: "g-user-avatar flex-center ml-1" };
|
|
9993
10036
|
const _hoisted_2$a = {
|
|
9994
10037
|
key: 0,
|
|
@@ -10258,13 +10301,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
10258
10301
|
setup(__props) {
|
|
10259
10302
|
var _a;
|
|
10260
10303
|
const { t: $t } = i18n.global;
|
|
10261
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
10262
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
10263
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
10264
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
10265
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
10266
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
10267
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
10304
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-6706fc55.js"));
|
|
10305
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-cebcea5f.js"));
|
|
10306
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-9071e199.js"));
|
|
10307
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-72d09344.js"));
|
|
10308
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-0f3fd546.js"));
|
|
10309
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-3fb0d097.js"));
|
|
10310
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-f64a70dd.js"));
|
|
10268
10311
|
const props = __props;
|
|
10269
10312
|
const repoInfo = inject("repoInfo");
|
|
10270
10313
|
const orgInfo = inject("orgInfo");
|
|
@@ -10288,7 +10331,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
10288
10331
|
}
|
|
10289
10332
|
});
|
|
10290
10333
|
const showRecommend = computed(() => {
|
|
10291
|
-
return props.sceneValue === SceneValue.home;
|
|
10334
|
+
return props.sceneValue === SceneValue.home || props.sceneValue === SceneValue.repo;
|
|
10292
10335
|
});
|
|
10293
10336
|
const isFocus = ref(false);
|
|
10294
10337
|
const searchDropDownVisible = ref(false);
|
|
@@ -10664,85 +10707,90 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
10664
10707
|
])
|
|
10665
10708
|
]),
|
|
10666
10709
|
default: withCtx(() => [
|
|
10667
|
-
(
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
isFocus.value ? (openBlock(), createElementBlock("div", {
|
|
10721
|
-
key: 0,
|
|
10722
|
-
class: "g-header-search-suffix",
|
|
10723
|
-
onClick: onSearch
|
|
10724
|
-
}, [
|
|
10725
|
-
withDirectives(createVNode(Icon, {
|
|
10726
|
-
name: "gt-line-close",
|
|
10727
|
-
class: "g-header-search-suffix-close",
|
|
10728
|
-
onClick: withModifiers(onClearSearch, ["stop"])
|
|
10729
|
-
}, null, 512), [
|
|
10730
|
-
[vShow, searchStr.value]
|
|
10710
|
+
createVNode(unref(Form), null, {
|
|
10711
|
+
default: withCtx(() => [
|
|
10712
|
+
(openBlock(), createBlock(unref(Input), {
|
|
10713
|
+
key: _ctx.$route.fullPath,
|
|
10714
|
+
id: "golbalSearch",
|
|
10715
|
+
class: "g-header-search custom-h-searchinput",
|
|
10716
|
+
modelValue: searchStr.value,
|
|
10717
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchStr.value = $event),
|
|
10718
|
+
modelModifiers: { trim: true },
|
|
10719
|
+
onKeydown: [
|
|
10720
|
+
withKeys(onSearchBefore, ["enter"]),
|
|
10721
|
+
_cache[1] || (_cache[1] = withKeys(($event) => changeHoverIndex("del"), ["up"])),
|
|
10722
|
+
_cache[2] || (_cache[2] = withKeys(($event) => changeHoverIndex("add"), ["down"])),
|
|
10723
|
+
withKeys(onBackspaceHandle, ["backspace"])
|
|
10724
|
+
],
|
|
10725
|
+
onFocus,
|
|
10726
|
+
onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
|
|
10727
|
+
onCompositionend: _cache[4] || (_cache[4] = ($event) => inputIng.value = false),
|
|
10728
|
+
autocomplete: "off",
|
|
10729
|
+
ref_key: "inputRef",
|
|
10730
|
+
ref: inputRef
|
|
10731
|
+
}, {
|
|
10732
|
+
prefix: withCtx(() => [
|
|
10733
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
10734
|
+
createVNode(Icon, {
|
|
10735
|
+
name: "gt-search",
|
|
10736
|
+
class: "g-header-search-icon",
|
|
10737
|
+
onClick: onInputClick
|
|
10738
|
+
})
|
|
10739
|
+
]),
|
|
10740
|
+
withDirectives(createElementVNode("span", {
|
|
10741
|
+
class: "quick-tips",
|
|
10742
|
+
innerHTML: unref(quickTips),
|
|
10743
|
+
onClick: onInputClick
|
|
10744
|
+
}, null, 8, _hoisted_2$9), [
|
|
10745
|
+
[vShow, placeholderVisible.value]
|
|
10746
|
+
]),
|
|
10747
|
+
withDirectives(createVNode(unref(SearchPrefixTag), {
|
|
10748
|
+
tag: cnScopeMap[localSearchInfo.value.searchScope] + ":" + localSearchInfo.value.searchScopeName,
|
|
10749
|
+
closeVisible: isFocus.value,
|
|
10750
|
+
onInputClick,
|
|
10751
|
+
onCloseTag
|
|
10752
|
+
}, null, 8, ["tag", "closeVisible"]), [
|
|
10753
|
+
[vShow, projectTagVisible.value]
|
|
10754
|
+
]),
|
|
10755
|
+
withDirectives(createVNode(unref(SearchPrefixTag), {
|
|
10756
|
+
tag: unref($t)("gitCodeLayout.header.language") + ":" + language.value,
|
|
10757
|
+
closeVisible: isFocus.value,
|
|
10758
|
+
onInputClick,
|
|
10759
|
+
onCloseTag: onCloseLanguageTag
|
|
10760
|
+
}, null, 8, ["tag", "closeVisible"]), [
|
|
10761
|
+
[vShow, languageTagVisible.value]
|
|
10762
|
+
])
|
|
10731
10763
|
]),
|
|
10732
|
-
|
|
10733
|
-
|
|
10764
|
+
suffix: withCtx(() => [
|
|
10765
|
+
isFocus.value ? (openBlock(), createElementBlock("div", {
|
|
10766
|
+
key: 0,
|
|
10767
|
+
class: "g-header-search-suffix",
|
|
10768
|
+
onClick: onSearch
|
|
10769
|
+
}, [
|
|
10770
|
+
withDirectives(createVNode(Icon, {
|
|
10771
|
+
name: "gt-line-close",
|
|
10772
|
+
class: "g-header-search-suffix-close",
|
|
10773
|
+
onClick: withModifiers(onClearSearch, ["stop"])
|
|
10774
|
+
}, null, 512), [
|
|
10775
|
+
[vShow, searchStr.value]
|
|
10776
|
+
]),
|
|
10777
|
+
withDirectives(createElementVNode("span", _hoisted_3$6, "|", 512), [
|
|
10778
|
+
[vShow, searchStr.value]
|
|
10779
|
+
]),
|
|
10780
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
10781
|
+
createVNode(Icon, {
|
|
10782
|
+
name: "search",
|
|
10783
|
+
class: "g-header-search-icon",
|
|
10784
|
+
color: "#fff"
|
|
10785
|
+
})
|
|
10786
|
+
])
|
|
10787
|
+
])) : createCommentVNode("", true)
|
|
10734
10788
|
]),
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
name: "search",
|
|
10738
|
-
class: "g-header-search-icon",
|
|
10739
|
-
color: "#fff"
|
|
10740
|
-
})
|
|
10741
|
-
])
|
|
10742
|
-
])) : createCommentVNode("", true)
|
|
10789
|
+
_: 1
|
|
10790
|
+
}, 8, ["modelValue"]))
|
|
10743
10791
|
]),
|
|
10744
10792
|
_: 1
|
|
10745
|
-
}
|
|
10793
|
+
})
|
|
10746
10794
|
]),
|
|
10747
10795
|
_: 1
|
|
10748
10796
|
}, 8, ["visible"])
|
|
@@ -10767,9 +10815,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
10767
10815
|
};
|
|
10768
10816
|
}
|
|
10769
10817
|
});
|
|
10770
|
-
const
|
|
10818
|
+
const index_vue_vue_type_style_index_0_scoped_ac54e615_lang = "";
|
|
10771
10819
|
const index_vue_vue_type_style_index_1_lang$1 = "";
|
|
10772
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
10820
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ac54e615"]]);
|
|
10773
10821
|
function usePopup(className, rootElement) {
|
|
10774
10822
|
const root2 = rootElement || document.getElementById("app");
|
|
10775
10823
|
let cacheClass = "popup-container";
|
|
@@ -13177,13 +13225,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
13177
13225
|
HttpStatusCode[value] = key;
|
|
13178
13226
|
});
|
|
13179
13227
|
const HttpStatusCode$1 = HttpStatusCode;
|
|
13180
|
-
function createInstance(
|
|
13181
|
-
const context = new Axios$1(
|
|
13228
|
+
function createInstance(defaultConfig2) {
|
|
13229
|
+
const context = new Axios$1(defaultConfig2);
|
|
13182
13230
|
const instance = bind(Axios$1.prototype.request, context);
|
|
13183
13231
|
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
13184
13232
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
13185
13233
|
instance.create = function create2(instanceConfig) {
|
|
13186
|
-
return createInstance(mergeConfig(
|
|
13234
|
+
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
13187
13235
|
};
|
|
13188
13236
|
return instance;
|
|
13189
13237
|
}
|
|
@@ -13304,6 +13352,7 @@ const getCommonHeadInfo = (isAiHub) => {
|
|
|
13304
13352
|
"X-Device-ID": "unknown"
|
|
13305
13353
|
};
|
|
13306
13354
|
};
|
|
13355
|
+
const layoutConfig$1 = useLayoutConfig();
|
|
13307
13356
|
const setPassportPrefix = (url, method) => {
|
|
13308
13357
|
const prefix = "/uc";
|
|
13309
13358
|
{
|
|
@@ -13325,7 +13374,7 @@ const setPassportPrefix = (url, method) => {
|
|
|
13325
13374
|
}
|
|
13326
13375
|
return url;
|
|
13327
13376
|
};
|
|
13328
|
-
const baseURL =
|
|
13377
|
+
const baseURL = layoutConfig$1.VITE_API_HOST;
|
|
13329
13378
|
const proxyService = (params, customConfigs) => {
|
|
13330
13379
|
const baseUrl = baseURL;
|
|
13331
13380
|
const service = axios$1.create({
|
|
@@ -13376,7 +13425,6 @@ const proxyService = (params, customConfigs) => {
|
|
|
13376
13425
|
);
|
|
13377
13426
|
return service(params);
|
|
13378
13427
|
};
|
|
13379
|
-
const devuiIcon = "";
|
|
13380
13428
|
const repoInfoData = {
|
|
13381
13429
|
"star_count": 0,
|
|
13382
13430
|
"forks_count": 0,
|
|
@@ -13890,6 +13938,20 @@ const _hoisted_4$4 = { class: "home-main" };
|
|
|
13890
13938
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
13891
13939
|
__name: "home",
|
|
13892
13940
|
setup(__props) {
|
|
13941
|
+
setLayoutConfig({
|
|
13942
|
+
VITE_ENV: "development",
|
|
13943
|
+
VITE_HOST: "https://test.gitcode.net",
|
|
13944
|
+
VITE_API_HOST: "https://test.gitcode.net",
|
|
13945
|
+
VITE_AD_LINK: "https://cdn-static.gitcode.com/adList/test-active.json",
|
|
13946
|
+
VITE_NEWS_HOST: "https://test-news.gitcode.net",
|
|
13947
|
+
VITE_AI_HOST: "https://test-ai.gitcode.net",
|
|
13948
|
+
VITE_INCUBATION_TOPIC: "6653f7a191a72b11f2478e93",
|
|
13949
|
+
VITE_GSTAR_TOPIC: "6653f80e91a72b11f2478e99",
|
|
13950
|
+
VITE_TRUSTED_TOPIC: "6715c49554670a12f26fb08d",
|
|
13951
|
+
VITE_SEARCH_REPO_CHANNEL_ID: "67b45f4dbfd0c85476fd8b84",
|
|
13952
|
+
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
13953
|
+
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
13954
|
+
});
|
|
13893
13955
|
const isLogin = ref(false);
|
|
13894
13956
|
const userInfo = ref({});
|
|
13895
13957
|
const repoInfo = ref({});
|
|
@@ -13911,9 +13973,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13911
13973
|
localStorage.removeItem("xauth_token");
|
|
13912
13974
|
localStorage.removeItem("userInfo");
|
|
13913
13975
|
};
|
|
13914
|
-
const openHarmonyGuide = () => {
|
|
13915
|
-
alert("鸿蒙开发者登录,在这里登录不了");
|
|
13916
|
-
};
|
|
13917
13976
|
const sceneSelected = ref(SceneValue.home);
|
|
13918
13977
|
const directionRowList = ref(Object.values(SceneValue));
|
|
13919
13978
|
const handleSceneChange = (val) => {
|
|
@@ -13972,7 +14031,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
13972
14031
|
orgInfo: orgInfo.value,
|
|
13973
14032
|
otherUserInfo: otherUserInfo.value,
|
|
13974
14033
|
headerFunctions: [],
|
|
13975
|
-
openHarmonyGuide,
|
|
14034
|
+
openHarmonyGuide: true,
|
|
13976
14035
|
headerCustomProps: headerCustomProps.value,
|
|
13977
14036
|
onFollowDevCommunity: followDevCommunity,
|
|
13978
14037
|
onFollowUser: followUser
|
|
@@ -14113,8 +14172,9 @@ async function csdnloginCheck(route, loginCallback, request) {
|
|
|
14113
14172
|
}
|
|
14114
14173
|
return false;
|
|
14115
14174
|
}
|
|
14116
|
-
const
|
|
14117
|
-
const
|
|
14175
|
+
const layoutConfig = useLayoutConfig();
|
|
14176
|
+
const cookieDomain = layoutConfig.VITE_COOKIE_DOMAIN;
|
|
14177
|
+
const VITE_API_HOST = layoutConfig.VITE_API_HOST;
|
|
14118
14178
|
const { t: t$2 } = i18n.global;
|
|
14119
14179
|
const GRAPH_CODE = 400007;
|
|
14120
14180
|
const createLoginConfig = (request) => {
|
|
@@ -17989,7 +18049,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17989
18049
|
const MFA_vue_vue_type_style_index_0_lang = "";
|
|
17990
18050
|
const MFA_vue_vue_type_style_index_1_scoped_3e0f827f_lang = "";
|
|
17991
18051
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3e0f827f"]]);
|
|
17992
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
18052
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-04a85ee7.js"));
|
|
17993
18053
|
const useSlidCaptcha = () => {
|
|
17994
18054
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
17995
18055
|
const open = (config) => {
|
|
@@ -18188,10 +18248,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18188
18248
|
triggerType: { default: "" },
|
|
18189
18249
|
route: {},
|
|
18190
18250
|
request: { default: () => Promise.resolve({ data: null }) },
|
|
18191
|
-
openHarmonyGuide: {},
|
|
18251
|
+
openHarmonyGuide: { type: Boolean },
|
|
18192
18252
|
loginSuccess: {}
|
|
18193
18253
|
},
|
|
18194
|
-
emits: ["update:modelValue", "login", "close", "link"],
|
|
18254
|
+
emits: ["update:modelValue", "login", "close", "link", "openHarmonyGuide"],
|
|
18195
18255
|
setup(__props, { emit: __emit }) {
|
|
18196
18256
|
const props = __props;
|
|
18197
18257
|
const request = props.request;
|
|
@@ -18993,7 +19053,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18993
19053
|
formType.value = "register";
|
|
18994
19054
|
};
|
|
18995
19055
|
const handleRegisterHarmony = () => {
|
|
18996
|
-
|
|
19056
|
+
emits("openHarmonyGuide");
|
|
18997
19057
|
};
|
|
18998
19058
|
const handleBack = () => {
|
|
18999
19059
|
mfaCheck.value = false;
|
|
@@ -19339,9 +19399,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
19339
19399
|
};
|
|
19340
19400
|
}
|
|
19341
19401
|
});
|
|
19342
|
-
const
|
|
19402
|
+
const index_vue_vue_type_style_index_0_scoped_4c0b3116_lang = "";
|
|
19343
19403
|
const index_vue_vue_type_style_index_1_lang = "";
|
|
19344
|
-
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
19404
|
+
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4c0b3116"]]);
|
|
19345
19405
|
const { t } = i18n.global;
|
|
19346
19406
|
function useLogin(request) {
|
|
19347
19407
|
const successMsg = t("gitCodeLayout.common.tips.welcome");
|
|
@@ -19420,7 +19480,7 @@ function useLogin(request) {
|
|
|
19420
19480
|
isMounted
|
|
19421
19481
|
};
|
|
19422
19482
|
}
|
|
19423
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
19483
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-7585c9e0.js"));
|
|
19424
19484
|
function clearNotice() {
|
|
19425
19485
|
if (localStorage.getItem("validator_email")) {
|
|
19426
19486
|
localStorage.removeItem("validator_email");
|
|
@@ -19476,10 +19536,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19476
19536
|
userInfo: { default: () => ({}) },
|
|
19477
19537
|
headerFunctions: {},
|
|
19478
19538
|
headerCustomProps: {},
|
|
19479
|
-
openHarmonyGuide: {}
|
|
19539
|
+
openHarmonyGuide: { type: Boolean }
|
|
19480
19540
|
},
|
|
19481
19541
|
emits: ["followDevCommunity", "followUser"],
|
|
19482
19542
|
setup(__props, { emit: __emit }) {
|
|
19543
|
+
const layoutConfig2 = useLayoutConfig();
|
|
19544
|
+
const VITE_HOST = layoutConfig2.VITE_HOST;
|
|
19483
19545
|
const route = useRoute();
|
|
19484
19546
|
const props = __props;
|
|
19485
19547
|
const emit = __emit;
|
|
@@ -19574,7 +19636,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19574
19636
|
notice();
|
|
19575
19637
|
}
|
|
19576
19638
|
};
|
|
19577
|
-
const { VITE_HOST } = { "VITE_APP_TITLE": "新gitcode", "VITE_TEST_REPOID": "34", "VITE_SECRET_KEY": "SA!nUNPZ5o!OSV&B", "VITE_SECRET_IV": "SA!nwwwZ5o!OSV&B", "VITE_PASSPORT_PREFIX": "/uc", "VITE_ENV": "production", "VITE_HOST": "https://gitcode.com", "VITE_API_HOST": "https://web-api.gitcode.com", "VITE_AD_LINK": "https://cdn-static.gitcode.com/adList/active.json", "VITE_NEWS_HOST": "https://news.gitcode.com", "VITE_AI_HOST": "https://ai.gitcode.com", "VITE_INCUBATION_TOPIC": "6656c64efd46e722f6299761", "VITE_GSTAR_TOPIC": "6656c65ebacc215dac8b2d06", "VITE_TRUSTED_TOPIC": "6716255303226504db66d8d7", "VITE_SEARCH_REPO_CHANNEL_ID": "67bc3f5f97a0293d6bfebd01", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false };
|
|
19578
19639
|
onMounted(() => {
|
|
19579
19640
|
toNotice();
|
|
19580
19641
|
addEventListener("logout", (options) => {
|
|
@@ -19608,9 +19669,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19608
19669
|
props.loginSuccess(options);
|
|
19609
19670
|
});
|
|
19610
19671
|
addEventListener("notice", toNotice);
|
|
19611
|
-
addEventListener("openHarmonyGuide", () => {
|
|
19612
|
-
props.openHarmonyGuide();
|
|
19613
|
-
});
|
|
19614
19672
|
window.addEventListener("message", (event) => {
|
|
19615
19673
|
if (event.origin !== VITE_HOST)
|
|
19616
19674
|
return;
|
|
@@ -19621,7 +19679,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19621
19679
|
});
|
|
19622
19680
|
});
|
|
19623
19681
|
onBeforeUnmount(() => {
|
|
19624
|
-
offEvent("openHarmonyGuide");
|
|
19625
19682
|
offEvent("notice");
|
|
19626
19683
|
offEvent("updateUserInfo");
|
|
19627
19684
|
offEvent("login");
|
|
@@ -19656,7 +19713,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19656
19713
|
showNameAndIcon.value ? (openBlock(), createBlock(GLink, {
|
|
19657
19714
|
key: 1,
|
|
19658
19715
|
class: normalizeClass(["g-toolbar-left-logo", unref(currentTheme)]),
|
|
19659
|
-
href: unref(
|
|
19716
|
+
href: unref(VITE_HOST)
|
|
19660
19717
|
}, null, 8, ["class", "href"])) : createCommentVNode("", true)
|
|
19661
19718
|
]),
|
|
19662
19719
|
isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
|
|
@@ -19753,8 +19810,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19753
19810
|
};
|
|
19754
19811
|
}
|
|
19755
19812
|
});
|
|
19756
|
-
const
|
|
19757
|
-
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
19813
|
+
const index_vue_vue_type_style_index_0_scoped_bc49236b_lang = "";
|
|
19814
|
+
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bc49236b"]]);
|
|
19758
19815
|
const GitCodeLayoutLibLocales = {
|
|
19759
19816
|
zh: zhLocale,
|
|
19760
19817
|
en: enLocale
|
|
@@ -19785,13 +19842,15 @@ export {
|
|
|
19785
19842
|
isPhone as i,
|
|
19786
19843
|
highlightWords as j,
|
|
19787
19844
|
_frEventTrack as k,
|
|
19788
|
-
|
|
19789
|
-
|
|
19790
|
-
|
|
19791
|
-
|
|
19792
|
-
|
|
19793
|
-
|
|
19845
|
+
useLayoutConfig as l,
|
|
19846
|
+
debounce$1 as m,
|
|
19847
|
+
baseURL as n,
|
|
19848
|
+
ToolsFloat as o,
|
|
19849
|
+
GitCodeHeader as p,
|
|
19850
|
+
GitCodeLayoutLibLocales as q,
|
|
19794
19851
|
reqCatch as r,
|
|
19852
|
+
setLayoutConfig as s,
|
|
19795
19853
|
transWebUrl as t,
|
|
19796
|
-
useModel as u
|
|
19854
|
+
useModel as u,
|
|
19855
|
+
index as v
|
|
19797
19856
|
};
|