vue-layout-gitcode 1.1.11 → 1.1.13
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-43d5acdf.js → GloabarSearch-467e80d4.js} +2 -2
- package/{ProjectSearch-842f361f.js → ProjectSearch-5cf60f4e.js} +1 -1
- package/{SearchHistoryList-b0530797.js → SearchHistoryList-126f6acd.js} +1 -1
- package/{SearchPrefixTag-06eeacb3.js → SearchPrefixTag-81a098a9.js} +1 -1
- package/{SearchRecommed-d2f3ceb7.js → SearchRecommed-b33b0da9.js} +4 -4
- package/{SearchScopeList-cfccf897.js → SearchScopeList-68765536.js} +1 -1
- package/{UserSearch-cfd618e3.js → UserSearch-c21145bd.js} +1 -1
- package/{index-227d4793.js → index-0bdc8fd3.js} +948 -675
- package/{index-5a19b8ab.js → index-72da4dc3.js} +1 -1
- package/{index-b7a55717.js → index-c21036dd.js} +38 -10
- package/index.d.ts +12 -1
- package/index.js +11 -11
- package/{notice-dd803ec2.js → notice-fe8afb5d.js} +1 -1
- package/package.json +2 -2
- package/style.css +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import {
|
|
3
|
+
import { p as useLayoutConfig, _ as _export_sfc } from "./index-0bdc8fd3.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
import "vue-devui-lal/button";
|
|
6
6
|
import "vue-devui-lal/popover";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, toDisplayString, inject, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, unref, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, resolveComponent, withCtx } from "vue";
|
|
2
|
-
import { d as debounce, h as headRequest, G as GIcon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, j as highlightWords, t as transWebUrl,
|
|
2
|
+
import { d as debounce, h as headRequest, G as GIcon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, j as isGstarRepo, k as _sfc_main$8, m as isIncubationRepo, n as highlightWords, t as transWebUrl, o as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-0bdc8fd3.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import "vue-devui-lal/grid/style.css";
|
|
@@ -432,8 +432,10 @@ const _hoisted_2 = {
|
|
|
432
432
|
key: 0,
|
|
433
433
|
class: "is-recommend ml-[8px]"
|
|
434
434
|
};
|
|
435
|
-
const _hoisted_3 =
|
|
436
|
-
const _hoisted_4 = { key:
|
|
435
|
+
const _hoisted_3 = { key: 1 };
|
|
436
|
+
const _hoisted_4 = { key: 2 };
|
|
437
|
+
const _hoisted_5 = ["innerHTML"];
|
|
438
|
+
const _hoisted_6 = { key: 0 };
|
|
437
439
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
438
440
|
__name: "index",
|
|
439
441
|
props: {
|
|
@@ -532,20 +534,46 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
532
534
|
createVNode(unref(Row), { class: "i-search-projects-card-title mb-[8px]" }, {
|
|
533
535
|
default: withCtx(() => [
|
|
534
536
|
createVNode(unref(Col), {
|
|
535
|
-
class: "ellipsis",
|
|
537
|
+
class: "ellipsis flex items-center gap-[8px]",
|
|
536
538
|
flex: "auto"
|
|
537
539
|
}, {
|
|
538
540
|
default: withCtx(() => [
|
|
539
541
|
createVNode(GIcon, {
|
|
540
|
-
class: normalizeClass(["mr-[8px]", { "align-middle": _ctx.info.is_gh_mirrors }]),
|
|
541
542
|
name: iconName.value,
|
|
543
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
542
544
|
color: "var(--theme-placeholder)"
|
|
543
545
|
}, null, 8, ["name", "class"]),
|
|
544
546
|
createElementVNode("span", {
|
|
545
547
|
class: "repo-title",
|
|
546
548
|
innerHTML: preHandWord()
|
|
547
549
|
}, null, 8, _hoisted_1),
|
|
548
|
-
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true)
|
|
550
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
551
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
552
|
+
createVNode(_sfc_main$8, {
|
|
553
|
+
origin: "repo",
|
|
554
|
+
icon: "",
|
|
555
|
+
type: "gstar",
|
|
556
|
+
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
557
|
+
}, {
|
|
558
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
559
|
+
createTextVNode("G-Star ")
|
|
560
|
+
])),
|
|
561
|
+
_: 1
|
|
562
|
+
}, 8, ["message"])
|
|
563
|
+
])) : createCommentVNode("", true),
|
|
564
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
565
|
+
createVNode(_sfc_main$8, {
|
|
566
|
+
origin: "repo",
|
|
567
|
+
icon: "",
|
|
568
|
+
type: "incubation",
|
|
569
|
+
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
570
|
+
}, {
|
|
571
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
572
|
+
createTextVNode(" G-Star ")
|
|
573
|
+
])),
|
|
574
|
+
_: 1
|
|
575
|
+
}, 8, ["message"])
|
|
576
|
+
])) : createCommentVNode("", true)
|
|
549
577
|
]),
|
|
550
578
|
_: 1
|
|
551
579
|
}),
|
|
@@ -565,8 +593,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
565
593
|
createElementVNode("div", {
|
|
566
594
|
innerHTML: unref(highlightWords)("", _ctx.info.description),
|
|
567
595
|
class: "i-search-projects-card-desc ellipsis"
|
|
568
|
-
}, null, 8,
|
|
569
|
-
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div",
|
|
596
|
+
}, null, 8, _hoisted_5),
|
|
597
|
+
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
570
598
|
queryLoading.value ? (openBlock(), createBlock(_component_d_skeleton, { key: 0 }, {
|
|
571
599
|
placeholder: withCtx(() => [
|
|
572
600
|
createVNode(unref(Row), {
|
|
@@ -620,8 +648,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
620
648
|
};
|
|
621
649
|
}
|
|
622
650
|
});
|
|
623
|
-
const
|
|
624
|
-
const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
651
|
+
const index_vue_vue_type_style_index_0_scoped_428956e5_lang = "";
|
|
652
|
+
const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-428956e5"]]);
|
|
625
653
|
export {
|
|
626
654
|
SearchRepoCard as S,
|
|
627
655
|
formatNameSpace as f,
|
package/index.d.ts
CHANGED
|
@@ -104,6 +104,11 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
|
|
|
104
104
|
httpStatus: number;
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
+
independence: {
|
|
108
|
+
type: PropType<boolean | undefined>;
|
|
109
|
+
required: false;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
107
112
|
showPreferencesSetting: {
|
|
108
113
|
type: PropType<boolean | undefined>;
|
|
109
114
|
required: false;
|
|
@@ -159,6 +164,11 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
|
|
|
159
164
|
httpStatus: number;
|
|
160
165
|
};
|
|
161
166
|
};
|
|
167
|
+
independence: {
|
|
168
|
+
type: PropType<boolean | undefined>;
|
|
169
|
+
required: false;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
162
172
|
showPreferencesSetting: {
|
|
163
173
|
type: PropType<boolean | undefined>;
|
|
164
174
|
required: false;
|
|
@@ -183,6 +193,7 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
|
|
|
183
193
|
globalStore: Object;
|
|
184
194
|
disableFlatMode: boolean | undefined;
|
|
185
195
|
userInfo: AccountInfo;
|
|
196
|
+
independence: boolean | undefined;
|
|
186
197
|
showPreferencesSetting: boolean | undefined;
|
|
187
198
|
showThemeSetting: boolean | undefined;
|
|
188
199
|
showLangSetting: boolean | undefined;
|
|
@@ -361,11 +372,11 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
361
372
|
request: Function;
|
|
362
373
|
globalStore: Object;
|
|
363
374
|
userInfo: UserInfo | undefined;
|
|
375
|
+
independence: boolean | undefined;
|
|
364
376
|
repoInfo: repoInfoType | undefined;
|
|
365
377
|
orgInfo: OrgInfo | undefined;
|
|
366
378
|
otherUserInfo: UserInfo | undefined;
|
|
367
379
|
headerBorder: boolean | undefined;
|
|
368
|
-
independence: boolean | undefined;
|
|
369
380
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
370
381
|
|
|
371
382
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v, w, z, s, S, q, A, C, y, B, x } from "./index-0bdc8fd3.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "vue-devui-lal/button";
|
|
4
4
|
import "vue-devui-lal/popover";
|
|
@@ -46,15 +46,15 @@ import "vue-devui-lal/checkbox/style.css";
|
|
|
46
46
|
import "vue-devui-lal/modal";
|
|
47
47
|
import "vue-devui-lal/modal/style.css";
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
v as GitCodeAside,
|
|
50
|
+
w as GitCodeHeader,
|
|
51
|
+
z as GitCodeLayoutEmitter,
|
|
52
|
+
s as Login,
|
|
53
53
|
S as SceneValue,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
q as ToolsFloat,
|
|
55
|
+
A as currentTheme,
|
|
56
|
+
C as default,
|
|
57
|
+
y as setLayoutConfig,
|
|
58
|
+
B as setTheme,
|
|
59
|
+
x as useLogin
|
|
60
60
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, 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-0bdc8fd3.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";
|