vue-layout-gitcode 1.8.19 → 1.8.21
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-juKKLLOK.js → GloabarSearch-DWutXBZ0.js} +3 -3
- package/{MenuItem-DJKreYxG.js → MenuItem-B48J7_bH.js} +1 -1
- package/{ProjectMenuList-CvH44w5H.js → ProjectMenuList-eMPknWyF.js} +2 -2
- package/{ProjectMenuListV2-Dijx9Hv5.js → ProjectMenuListV2-BDrzG4ue.js} +2 -2
- package/{ProjectSearch-DNSS71ms.js → ProjectSearch-CSK6qeey.js} +1 -1
- package/{SearchHistoryList-Cre7H6Vy.js → SearchHistoryList-j9cRlcCi.js} +1 -1
- package/{SearchPrefixTag-CIvcpQUx.js → SearchPrefixTag-xrGOwpv6.js} +1 -1
- package/{SearchRecommed-DYVWwTUL.js → SearchRecommed-BrPLs0fF.js} +2 -2
- package/{SearchScopeList-BhAWsnRw.js → SearchScopeList-CuNgQw8w.js} +1 -1
- package/{UserSearch-BVQHFW0v.js → UserSearch-C69mULge.js} +1 -1
- package/{index-D3ZtD1R5.js → index-CQGXV6Ps.js} +1 -1
- package/{index-CyVJbjev.js → index-C_yAfSqS.js} +2 -2
- package/{index-DpMmmbyO.js → index-DXolqsNi.js} +145 -50
- package/{index-KYsBY6xk.js → index-bBRwqaOi.js} +1 -1
- package/index.js +1 -1
- package/{notice-ClD9wOoG.js → notice-B8DH0Zm_.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-6KMivziA.js → transWebUrl-BN2jSeBd.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-DXolqsNi.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-C_yAfSqS.js";
|
|
7
|
+
import "./transWebUrl-BN2jSeBd.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 { x as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, w as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, w as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DXolqsNi.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, x as useLayoutConfig, G as GIcon, t as transformUrl, D as _sfc_main$1, F as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, H as asideRequest, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, x as useLayoutConfig, G as GIcon, t as transformUrl, D as _sfc_main$1, F as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, H as asideRequest, _ as _export_sfc } from "./index-DXolqsNi.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BN2jSeBd.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, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-DXolqsNi.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BN2jSeBd.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-DXolqsNi.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-DXolqsNi.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-DXolqsNi.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-C_yAfSqS.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-DXolqsNi.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-DXolqsNi.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, t as transformUrl } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DXolqsNi.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]" };
|
|
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
|
|
|
8
8
|
import "vue-devui-lal/message/style.css";
|
|
9
9
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
10
10
|
import "vue-devui-lal/overlay/style.css";
|
|
11
|
-
import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-DXolqsNi.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
constructor() {
|
|
14
14
|
__publicField(this, "ypRiddlerInstance", null);
|
|
@@ -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 { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DXolqsNi.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BN2jSeBd.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";
|
|
@@ -9,12 +9,12 @@ import "vue-devui-lal/tooltip/style.css";
|
|
|
9
9
|
import "vue-devui-lal/textarea/style.css";
|
|
10
10
|
import { Icon } from "vue-devui-lal/icon";
|
|
11
11
|
import "vue-devui-lal/icon/style.css";
|
|
12
|
+
import cloneDeep from "lodash/cloneDeep";
|
|
12
13
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
13
14
|
import { useLocalStorage, useWindowSize, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
|
|
14
15
|
import { Avatar } from "vue-devui-lal/avatar";
|
|
15
16
|
import "vue-devui-lal/avatar/style.css";
|
|
16
17
|
import "lodash/last";
|
|
17
|
-
import cloneDeep from "lodash/cloneDeep";
|
|
18
18
|
import dayjs$1 from "dayjs";
|
|
19
19
|
import isDate$2 from "lodash/isDate";
|
|
20
20
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -512,6 +512,22 @@ const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo
|
|
|
512
512
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
513
513
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
514
514
|
const GUI_YANG_GITCODE_HOST = "gitcode.host";
|
|
515
|
+
const LOGO_MAP = {
|
|
516
|
+
gitcode: {
|
|
517
|
+
favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
|
|
518
|
+
siteLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png",
|
|
519
|
+
siteLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
|
|
520
|
+
tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-gitcode.png",
|
|
521
|
+
tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-gitcode.png"
|
|
522
|
+
},
|
|
523
|
+
atomgit: {
|
|
524
|
+
favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon-atomgit.png",
|
|
525
|
+
siteLogoDark: "https://cdn-static.gitcode.com/static/images/atomgit-logo-dark.png",
|
|
526
|
+
siteLogoWhite: "https://cdn-static.gitcode.com/static/images/atomgit-logo-white.png",
|
|
527
|
+
tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-atomgit.png",
|
|
528
|
+
tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-atomgit.png"
|
|
529
|
+
}
|
|
530
|
+
};
|
|
515
531
|
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
516
532
|
const {
|
|
517
533
|
entries,
|
|
@@ -8181,6 +8197,59 @@ const LANGUAGE = [
|
|
|
8181
8197
|
{ label: "English", value: LANG_EN, language: LANGUAGE_EN, icon: "gt-line-English1" }
|
|
8182
8198
|
];
|
|
8183
8199
|
const LANG_KEY = "gitcode_lang";
|
|
8200
|
+
const isAtomGitDomain = () => {
|
|
8201
|
+
if (typeof window === "undefined" || typeof window.location === "undefined") {
|
|
8202
|
+
return false;
|
|
8203
|
+
}
|
|
8204
|
+
return window.location.hostname.includes("atomgit.com");
|
|
8205
|
+
};
|
|
8206
|
+
const reverseGitcodeToAtomgit = (messages) => {
|
|
8207
|
+
if (!messages) return messages;
|
|
8208
|
+
const _messages = cloneDeep(messages);
|
|
8209
|
+
const isAtomGit = isAtomGitDomain();
|
|
8210
|
+
const protectedPlaceholders = ["{notGitCodeUsers}", "{gitCodeUserName}"];
|
|
8211
|
+
const uniquePrefix = `__I18N_PROTECTED_${Date.now()}_`;
|
|
8212
|
+
const traverseMessages = (messages2) => {
|
|
8213
|
+
if (!messages2 || typeof messages2 !== "object") return;
|
|
8214
|
+
Object.keys(messages2).forEach((key) => {
|
|
8215
|
+
const value = messages2[key];
|
|
8216
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
8217
|
+
traverseMessages(value);
|
|
8218
|
+
return;
|
|
8219
|
+
}
|
|
8220
|
+
if (typeof value !== "string") return;
|
|
8221
|
+
const hasProtectedPlaceholder = protectedPlaceholders.some(
|
|
8222
|
+
(placeholder) => value.includes(placeholder)
|
|
8223
|
+
);
|
|
8224
|
+
if (hasProtectedPlaceholder) {
|
|
8225
|
+
let temp = value;
|
|
8226
|
+
const placeholderMap = {};
|
|
8227
|
+
protectedPlaceholders.forEach((placeholder, index2) => {
|
|
8228
|
+
const tempMark = `${uniquePrefix}${index2}__`;
|
|
8229
|
+
placeholderMap[tempMark] = placeholder;
|
|
8230
|
+
temp = temp.replace(new RegExp(placeholder.replace(/[{}]/g, "\\$&"), "g"), tempMark);
|
|
8231
|
+
});
|
|
8232
|
+
if (isAtomGit) {
|
|
8233
|
+
temp = temp.replace(/GitCode/g, "AtomGit").replace(/gitcode/g, "atomgit");
|
|
8234
|
+
} else {
|
|
8235
|
+
temp = temp.replace(/AtomGit/g, "GitCode").replace(/atomgit/g, "gitcode");
|
|
8236
|
+
}
|
|
8237
|
+
Object.keys(placeholderMap).forEach((tempMark) => {
|
|
8238
|
+
temp = temp.replace(new RegExp(tempMark, "g"), placeholderMap[tempMark]);
|
|
8239
|
+
});
|
|
8240
|
+
messages2[key] = temp;
|
|
8241
|
+
} else {
|
|
8242
|
+
if (isAtomGit) {
|
|
8243
|
+
messages2[key] = value.replace(/GitCode/g, "AtomGit").replace(/gitcode/g, "atomgit");
|
|
8244
|
+
} else {
|
|
8245
|
+
messages2[key] = value.replace(/AtomGit/g, "GitCode").replace(/atomgit/g, "gitcode");
|
|
8246
|
+
}
|
|
8247
|
+
}
|
|
8248
|
+
});
|
|
8249
|
+
};
|
|
8250
|
+
traverseMessages(_messages);
|
|
8251
|
+
return _messages;
|
|
8252
|
+
};
|
|
8184
8253
|
function isComposer(instance, mode) {
|
|
8185
8254
|
return mode === "composition" && isRef(instance.locale);
|
|
8186
8255
|
}
|
|
@@ -8195,7 +8264,7 @@ function setupI18n(options = { locale: LANG_EN }) {
|
|
|
8195
8264
|
if (typeof document !== "undefined" && document.documentElement) {
|
|
8196
8265
|
document.documentElement.lang = options.locale;
|
|
8197
8266
|
}
|
|
8198
|
-
const i18n2 = createI18n(options);
|
|
8267
|
+
const i18n2 = createI18n({ ...options });
|
|
8199
8268
|
setI18nLanguage(i18n2, options.locale);
|
|
8200
8269
|
return i18n2;
|
|
8201
8270
|
}
|
|
@@ -8215,13 +8284,15 @@ const getLocaleLang = () => {
|
|
|
8215
8284
|
return lang;
|
|
8216
8285
|
};
|
|
8217
8286
|
const local = getLocaleLang();
|
|
8287
|
+
const _zh = reverseGitcodeToAtomgit(zh);
|
|
8288
|
+
const _en = reverseGitcodeToAtomgit(en$1);
|
|
8218
8289
|
const $i18n = setupI18n({
|
|
8219
8290
|
legacy: false,
|
|
8220
8291
|
locale: local,
|
|
8221
8292
|
fallbackLocale: local,
|
|
8222
8293
|
messages: {
|
|
8223
|
-
zh,
|
|
8224
|
-
en:
|
|
8294
|
+
zh: _zh,
|
|
8295
|
+
en: _en
|
|
8225
8296
|
}
|
|
8226
8297
|
});
|
|
8227
8298
|
const i18n = $i18n;
|
|
@@ -12293,6 +12364,14 @@ const replaceHost = ({ url, customHost }) => {
|
|
|
12293
12364
|
return url;
|
|
12294
12365
|
}
|
|
12295
12366
|
};
|
|
12367
|
+
const getCurrentLogoMap = () => {
|
|
12368
|
+
if (typeof window === "undefined" || typeof location === "undefined") {
|
|
12369
|
+
console.warn("[getCurrentLogoMap] 在 SSR 环境中被调用,返回默认配置");
|
|
12370
|
+
return LOGO_MAP.gitcode;
|
|
12371
|
+
}
|
|
12372
|
+
const siteType = location.host.includes("atomgit") ? "atomgit" : "gitcode";
|
|
12373
|
+
return LOGO_MAP[siteType];
|
|
12374
|
+
};
|
|
12296
12375
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12297
12376
|
...{
|
|
12298
12377
|
name: "GAvatar"
|
|
@@ -13613,8 +13692,6 @@ const vElementExposure = {
|
|
|
13613
13692
|
}
|
|
13614
13693
|
};
|
|
13615
13694
|
const _hoisted_1$q = ["src"];
|
|
13616
|
-
const TIANQI_LOGO_WHITE = "https://cdn-static.gitcode.com/static/images/tianqi-white-atomgit.png";
|
|
13617
|
-
const TIANQI_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/tianqi-black-atomgit.png";
|
|
13618
13695
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
13619
13696
|
...{
|
|
13620
13697
|
name: "ChatBot"
|
|
@@ -13654,8 +13731,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13654
13731
|
}
|
|
13655
13732
|
};
|
|
13656
13733
|
getTianqiRouteConfig();
|
|
13734
|
+
const logoConfig = getCurrentLogoMap();
|
|
13735
|
+
const TIANQI_LOGO_WHITE = logoConfig.tianqiLogoLocalWhite;
|
|
13736
|
+
const TIANQI_LOGO_BLACK = logoConfig.tianqiLogoLocalDark;
|
|
13657
13737
|
const logo = computed(() => {
|
|
13658
|
-
|
|
13738
|
+
var _a, _b;
|
|
13739
|
+
if (tianqiButtonConfig.value.img && ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode"))) {
|
|
13659
13740
|
return currentTheme.value === ThemeType.BLACK ? tianqiButtonConfig.value.img_black : tianqiButtonConfig.value.img;
|
|
13660
13741
|
}
|
|
13661
13742
|
return currentTheme.value === ThemeType.BLACK ? TIANQI_LOGO_BLACK : TIANQI_LOGO_WHITE;
|
|
@@ -16867,13 +16948,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16867
16948
|
var _a;
|
|
16868
16949
|
const layoutConfig2 = useLayoutConfig();
|
|
16869
16950
|
const { t: $t } = i18n.global;
|
|
16870
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16871
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16872
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16873
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16874
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16875
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16876
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16951
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CSK6qeey.js"));
|
|
16952
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-C69mULge.js"));
|
|
16953
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DWutXBZ0.js"));
|
|
16954
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-j9cRlcCi.js"));
|
|
16955
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CuNgQw8w.js"));
|
|
16956
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-xrGOwpv6.js"));
|
|
16957
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BrPLs0fF.js"));
|
|
16877
16958
|
const props = __props;
|
|
16878
16959
|
const repoInfo = inject("repoInfo");
|
|
16879
16960
|
const orgInfo = inject("orgInfo");
|
|
@@ -17527,7 +17608,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17527
17608
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17528
17609
|
}
|
|
17529
17610
|
};
|
|
17530
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17611
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-B8DH0Zm_.js"));
|
|
17531
17612
|
function clearNotice() {
|
|
17532
17613
|
if (localStorage$2.getItem("validator_email")) {
|
|
17533
17614
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17919,6 +18000,17 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17919
18000
|
const handleCloseStickyNotice = () => {
|
|
17920
18001
|
closeStickyNotice.value = true;
|
|
17921
18002
|
};
|
|
18003
|
+
const logoConfig = getCurrentLogoMap();
|
|
18004
|
+
const logoStyle = computed(() => {
|
|
18005
|
+
const isBlackTheme = currentTheme.value === "black";
|
|
18006
|
+
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
18007
|
+
return {
|
|
18008
|
+
backgroundImage: `url(${logoUrl})`,
|
|
18009
|
+
backgroundRepeat: "no-repeat",
|
|
18010
|
+
backgroundPosition: "0 center",
|
|
18011
|
+
backgroundSize: "contain"
|
|
18012
|
+
};
|
|
18013
|
+
});
|
|
17922
18014
|
return (_ctx, _cache) => {
|
|
17923
18015
|
var _a2, _b, _c, _d;
|
|
17924
18016
|
return openBlock(), createElementBlock("div", {
|
|
@@ -17966,14 +18058,16 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17966
18058
|
})) : createCommentVNode("", true),
|
|
17967
18059
|
showNameAndIcon.value && _ctx.independence || inAIHub.value ? (openBlock(), createBlock(GLink, {
|
|
17968
18060
|
key: 1,
|
|
17969
|
-
class:
|
|
18061
|
+
class: "g-toolbar-left-logo",
|
|
18062
|
+
style: normalizeStyle(logoStyle.value),
|
|
17970
18063
|
href: inAIHub.value ? `${unref(layoutConfig2).VITE_AI_HOST}` : `${unref(layoutConfig2).VITE_HOST}?p=seo`
|
|
17971
|
-
}, null, 8, ["
|
|
18064
|
+
}, null, 8, ["style", "href"])) : createCommentVNode("", true),
|
|
17972
18065
|
showNameAndIcon.value && !_ctx.independence ? (openBlock(), createBlock(GLink, {
|
|
17973
18066
|
key: 2,
|
|
17974
|
-
class:
|
|
18067
|
+
class: "g-toolbar-left-logo",
|
|
18068
|
+
style: normalizeStyle(logoStyle.value),
|
|
17975
18069
|
to: { name: "home" }
|
|
17976
|
-
}, null, 8, ["
|
|
18070
|
+
}, null, 8, ["style"])) : createCommentVNode("", true)
|
|
17977
18071
|
]),
|
|
17978
18072
|
isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
|
|
17979
18073
|
key: 0,
|
|
@@ -18295,9 +18389,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18295
18389
|
const layoutConfig2 = useLayoutConfig();
|
|
18296
18390
|
const { t: t2 } = i18n.global;
|
|
18297
18391
|
const route = useRoute();
|
|
18298
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18299
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18300
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18392
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-B48J7_bH.js"));
|
|
18393
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BDrzG4ue.js"));
|
|
18394
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-eMPknWyF.js"));
|
|
18301
18395
|
const props = __props;
|
|
18302
18396
|
console.log("slotKeys", props.slotKeys);
|
|
18303
18397
|
console.log("props", props);
|
|
@@ -19048,6 +19142,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19048
19142
|
if (route.meta.showBgColor) return true;
|
|
19049
19143
|
return false;
|
|
19050
19144
|
});
|
|
19145
|
+
const logoConfig = getCurrentLogoMap();
|
|
19146
|
+
const logoStyle = computed(() => {
|
|
19147
|
+
const isBlackTheme = currentTheme.value === "black";
|
|
19148
|
+
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
19149
|
+
return {
|
|
19150
|
+
backgroundImage: `url(${logoUrl})`,
|
|
19151
|
+
backgroundRepeat: "no-repeat",
|
|
19152
|
+
backgroundPosition: "0 center",
|
|
19153
|
+
backgroundSize: "contain"
|
|
19154
|
+
};
|
|
19155
|
+
});
|
|
19051
19156
|
const sizeStore = usePageResize();
|
|
19052
19157
|
const asideSetShow = computed(() => {
|
|
19053
19158
|
return (props.sceneValue === SceneValue.home && !sizeStore.isMobile.value || props.collapseMode) && !props.disableFlatMode;
|
|
@@ -19160,10 +19265,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19160
19265
|
default: withCtx(() => [
|
|
19161
19266
|
createElementVNode("div", _hoisted_1$d, [
|
|
19162
19267
|
createVNode(GLink, {
|
|
19163
|
-
class:
|
|
19268
|
+
class: "g-toolbar-left-logo",
|
|
19269
|
+
style: normalizeStyle(logoStyle.value),
|
|
19164
19270
|
to: _ctx.independence ? "" : { name: "home" },
|
|
19165
19271
|
href: _ctx.independence ? unref(transformUrl)(unref(layoutConfig2).VITE_HOST) : ""
|
|
19166
|
-
}, null, 8, ["
|
|
19272
|
+
}, null, 8, ["style", "to", "href"]),
|
|
19167
19273
|
createVNode(unref(Button), {
|
|
19168
19274
|
class: "cursor-pointer draw-side-bar-close",
|
|
19169
19275
|
icon: "close",
|
|
@@ -23776,8 +23882,6 @@ const _hoisted_9$1 = {
|
|
|
23776
23882
|
const _hoisted_10$1 = { class: "my-[32px]" };
|
|
23777
23883
|
const _hoisted_11$1 = { class: "flex items-center justify-between" };
|
|
23778
23884
|
const _hoisted_12$1 = { class: "cursor-pointer" };
|
|
23779
|
-
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/atomgit-logo-dark.png";
|
|
23780
|
-
const GIT_CODE_LOGO_WHITE = "https://cdn-static.gitcode.com/static/images/atomgit-logo-white.png";
|
|
23781
23885
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
23782
23886
|
__name: "MFA",
|
|
23783
23887
|
props: {
|
|
@@ -23787,11 +23891,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23787
23891
|
},
|
|
23788
23892
|
emits: ["success", "back", "fail"],
|
|
23789
23893
|
setup(__props, { emit: __emit }) {
|
|
23894
|
+
const logoConfig = getCurrentLogoMap();
|
|
23790
23895
|
const currentLogo = computed(() => {
|
|
23791
|
-
|
|
23792
|
-
return GIT_CODE_LOGO_WHITE;
|
|
23793
|
-
}
|
|
23794
|
-
return GIT_CODE_LOGO_BLACK;
|
|
23896
|
+
return currentTheme.value === ThemeType.BLACK ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
23795
23897
|
});
|
|
23796
23898
|
const { t: t2 } = i18n.global;
|
|
23797
23899
|
const emits = __emit;
|
|
@@ -24010,7 +24112,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24010
24112
|
}
|
|
24011
24113
|
});
|
|
24012
24114
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24013
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24115
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-bBRwqaOi.js"));
|
|
24014
24116
|
const useSlidCaptcha = () => {
|
|
24015
24117
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24016
24118
|
const open = (config) => {
|
|
@@ -24029,7 +24131,7 @@ const useSlidCaptcha = () => {
|
|
|
24029
24131
|
close: unMount
|
|
24030
24132
|
};
|
|
24031
24133
|
};
|
|
24032
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24134
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-CQGXV6Ps.js"));
|
|
24033
24135
|
const useYunpianCaptcha = () => {
|
|
24034
24136
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24035
24137
|
const open = (config) => {
|
|
@@ -24283,9 +24385,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24283
24385
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
24284
24386
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24285
24387
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24388
|
+
const logoConfig = getCurrentLogoMap();
|
|
24286
24389
|
const logoType = {
|
|
24287
|
-
black:
|
|
24288
|
-
white:
|
|
24390
|
+
black: logoConfig.siteLogoWhite,
|
|
24391
|
+
white: logoConfig.siteLogoDark
|
|
24289
24392
|
};
|
|
24290
24393
|
const formErrors = reactive({});
|
|
24291
24394
|
const extraErrors = reactive({
|
|
@@ -24565,7 +24668,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24565
24668
|
...VerifyPassword
|
|
24566
24669
|
]);
|
|
24567
24670
|
const status = ref(false);
|
|
24568
|
-
const hwStatus = ref(
|
|
24671
|
+
const hwStatus = ref(true);
|
|
24569
24672
|
const FormRef = shallowRef(null);
|
|
24570
24673
|
const tabPanel = ref("miniProgram");
|
|
24571
24674
|
const formType = ref(props.defaultType);
|
|
@@ -25435,7 +25538,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25435
25538
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
25436
25539
|
createVNode(unref(Modal), {
|
|
25437
25540
|
modelValue: unref(vModels),
|
|
25438
|
-
"onUpdate:modelValue": _cache[
|
|
25541
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
25439
25542
|
"show-close": false,
|
|
25440
25543
|
"lock-scroll": _ctx.lockScroll,
|
|
25441
25544
|
draggable: _ctx.draggable,
|
|
@@ -25683,7 +25786,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25683
25786
|
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
25684
25787
|
}, [
|
|
25685
25788
|
createElementVNode("div", _hoisted_42, [
|
|
25686
|
-
_cache[
|
|
25789
|
+
_cache[15] || (_cache[15] = createElementVNode("img", {
|
|
25687
25790
|
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
25688
25791
|
alt: "",
|
|
25689
25792
|
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
@@ -25721,21 +25824,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25721
25824
|
createElementVNode("div", {
|
|
25722
25825
|
class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
25723
25826
|
}, [
|
|
25724
|
-
createVNode(_sfc_main$7, {
|
|
25725
|
-
modelValue: hwStatus.value,
|
|
25726
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => hwStatus.value = $event),
|
|
25727
|
-
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ, "huawei")),
|
|
25728
|
-
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
25729
|
-
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
25730
|
-
onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
25731
|
-
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
25732
25827
|
createVNode(_sfc_main$7, {
|
|
25733
25828
|
modelValue: status.value,
|
|
25734
|
-
"onUpdate:modelValue": _cache[
|
|
25735
|
-
onDeclares: _cache[
|
|
25829
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
|
|
25830
|
+
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
|
|
25736
25831
|
"agreement-text": `《AtomGit ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
25737
25832
|
"privacy-text": `《AtomGit ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
25738
|
-
onClick: _cache[
|
|
25833
|
+
onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
25739
25834
|
}, null, 8, ["modelValue", "agreement-text", "privacy-text"])
|
|
25740
25835
|
], 2),
|
|
25741
25836
|
createElementVNode("div", _hoisted_49, [
|
|
@@ -25792,9 +25887,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25792
25887
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
25793
25888
|
createVNode(_sfc_main$5, {
|
|
25794
25889
|
visible: showProtoCheck.value,
|
|
25795
|
-
"onUpdate:visible": _cache[
|
|
25890
|
+
"onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
|
|
25796
25891
|
onConfirm: agreeAndLogin,
|
|
25797
|
-
onDeclares: _cache[
|
|
25892
|
+
onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
|
|
25798
25893
|
}, null, 8, ["visible"])
|
|
25799
25894
|
], 64);
|
|
25800
25895
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
2
|
+
import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-DXolqsNi.js";
|
|
3
3
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const TARGET_TEXT = "Click in order:";
|
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-DXolqsNi.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";
|