vue-layout-gitcode 1.1.29 → 1.1.30
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-8d002a79.js → GloabarSearch-b409ef38.js} +2 -2
- package/{ProjectSearch-8d1ee20f.js → ProjectSearch-200b5135.js} +1 -1
- package/{SearchHistoryList-d9b99434.js → SearchHistoryList-cc47e231.js} +1 -1
- package/{SearchPrefixTag-4e13409b.js → SearchPrefixTag-d2280277.js} +1 -1
- package/{SearchRecommed-a03c8c7f.js → SearchRecommed-ad991b2d.js} +2 -2
- package/{SearchScopeList-1db90905.js → SearchScopeList-1962e874.js} +1 -1
- package/{UserSearch-46f2c43a.js → UserSearch-eae5cf2e.js} +1 -1
- package/{index-5e727914.js → index-7ae1ece1.js} +139 -89
- package/{index-c971b0e3.js → index-8286b559.js} +15 -6
- package/{index-bd742c83.js → index-97ba1635.js} +1 -1
- package/index.d.ts +1 -1
- package/index.js +11 -11
- package/{notice-827121c2.js → notice-618a06fd.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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, withCtx } from "vue";
|
|
2
|
-
import { d as debounce,
|
|
2
|
+
import { d as debounce, G as GIcon, r as reqCatch, h as headRequest, f as useRequestReport, _ as _export_sfc, 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$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-7ae1ece1.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -32,9 +32,10 @@ const useReportRepo = (reportParams, viewReport) => {
|
|
|
32
32
|
channelNames.push(data.channelName);
|
|
33
33
|
if (data.subChannelName)
|
|
34
34
|
channelNames.push(data.subChannelName);
|
|
35
|
+
const repoId = isNaN(Number(data.id)) ? data.id : Number(data.id);
|
|
35
36
|
return {
|
|
36
37
|
type: "gitcode",
|
|
37
|
-
repo_id:
|
|
38
|
+
repo_id: repoId,
|
|
38
39
|
dest_url: data.web_url,
|
|
39
40
|
strategy: channelNames.join("、") || "",
|
|
40
41
|
// 官方项目
|
|
@@ -125,11 +126,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
125
126
|
starInfo: { default: () => ({
|
|
126
127
|
starred: false,
|
|
127
128
|
starCount: 0
|
|
128
|
-
}) }
|
|
129
|
+
}) },
|
|
130
|
+
loginTriggerSource: { default: "search_star_repo_recommend" }
|
|
129
131
|
},
|
|
130
132
|
emits: ["report"],
|
|
131
133
|
setup(__props, { emit: __emit }) {
|
|
132
|
-
const
|
|
134
|
+
const request = inject("request");
|
|
135
|
+
const API = headRequest(request);
|
|
136
|
+
const globalStore = inject("globalStore");
|
|
137
|
+
const isLogin = inject("isLogin");
|
|
138
|
+
const { useReport } = useRequestReport(request, globalStore);
|
|
133
139
|
const props = __props;
|
|
134
140
|
const emits = __emit;
|
|
135
141
|
const running = ref(false);
|
|
@@ -138,6 +144,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
138
144
|
const starLoading = ref(false);
|
|
139
145
|
const handleStar = async (e) => {
|
|
140
146
|
e.preventDefault();
|
|
147
|
+
if (!isLogin.value) {
|
|
148
|
+
useReport("login_exposure", { source: props.loginTriggerSource || "search_star_repo_recommend" });
|
|
149
|
+
}
|
|
141
150
|
try {
|
|
142
151
|
if (starLoading.value)
|
|
143
152
|
return;
|
|
@@ -206,8 +215,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
206
215
|
};
|
|
207
216
|
}
|
|
208
217
|
});
|
|
209
|
-
const
|
|
210
|
-
const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
218
|
+
const index_vue_vue_type_style_index_0_scoped_5e8b2cbd_lang = "";
|
|
219
|
+
const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5e8b2cbd"]]);
|
|
211
220
|
const _hoisted_1$4 = { class: "fork-tag" };
|
|
212
221
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
213
222
|
__name: "index",
|
|
@@ -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 { s as useLayoutConfig, _ as _export_sfc } from "./index-7ae1ece1.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
import "vue-devui-lal/button";
|
|
6
6
|
import "vue-devui-lal/popover";
|
package/index.d.ts
CHANGED
|
@@ -548,7 +548,7 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
|
|
|
548
548
|
globalStore: Object;
|
|
549
549
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
550
550
|
|
|
551
|
-
export declare function useLogin(request: any): {
|
|
551
|
+
export declare function useLogin(request: any, globalStore?: any): {
|
|
552
552
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|
|
553
553
|
unMount: () => void;
|
|
554
554
|
isMounted: () => boolean;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x, y, B, w, S, v, C, F, A, D, z } from "./index-7ae1ece1.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
|
+
x as GitCodeAside,
|
|
50
|
+
y as GitCodeHeader,
|
|
51
|
+
B as GitCodeLayoutEmitter,
|
|
52
|
+
w as Login,
|
|
53
53
|
S as SceneValue,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
v as ToolsFloat,
|
|
55
|
+
C as currentTheme,
|
|
56
|
+
F as default,
|
|
57
|
+
A as setLayoutConfig,
|
|
58
|
+
D as setTheme,
|
|
59
|
+
z 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-7ae1ece1.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";
|