vue-layout-gitcode 1.12.70 → 1.12.71

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/index.d.ts CHANGED
@@ -1,10 +1,44 @@
1
1
  import { App } from '../vue/dist/vue.esm-bundler.js';
2
2
  import { default as AsideFooterTools } from './components/AsideFooterTools/index.vue';
3
3
  import { default as AtomCodeLauncher } from './components/Header/AtomCodeLauncher.vue';
4
+ import { buildHovercardCacheKey } from './components/EntityHovercard/public';
5
+ import { computeHovercardPosition } from './components/EntityHovercard/public';
4
6
  import { currentTheme } from './themes/index';
5
7
  import { Emitter } from 'mitt';
6
8
  import { default as EnterpriseHeader } from './components/Header/EnterpriseHeader.vue';
9
+ import { EntityHovercardCommitAuthor } from './components/EntityHovercard/public';
10
+ import { EntityHovercardCommitCard } from './components/EntityHovercard/public';
11
+ import { EntityHovercardCommitData } from './components/EntityHovercard/public';
12
+ import { EntityHovercardConfig } from './components/EntityHovercard/public';
13
+ import { EntityHovercardData } from './components/EntityHovercard/public';
14
+ import { EntityHovercardEntityType } from './components/EntityHovercard/public';
15
+ import { EntityHovercardFollowTarget } from './components/EntityHovercard/public';
16
+ import { EntityHovercardHost } from './components/EntityHovercard/public';
17
+ import { EntityHovercardIssueCard } from './components/EntityHovercard/public';
18
+ import { EntityHovercardIssueData } from './components/EntityHovercard/public';
19
+ import { EntityHovercardLabel } from './components/EntityHovercard/public';
20
+ import { EntityHovercardLabels } from './components/EntityHovercard/public';
21
+ import { EntityHovercardOrganizationCard } from './components/EntityHovercard/public';
22
+ import { EntityHovercardOrganizationData } from './components/EntityHovercard/public';
23
+ import { EntityHovercardPreview } from './components/EntityHovercard/public';
24
+ import { EntityHovercardProvider } from './components/EntityHovercard/public';
25
+ import { EntityHovercardPullRequestCard } from './components/EntityHovercard/public';
26
+ import { EntityHovercardPullRequestData } from './components/EntityHovercard/public';
27
+ import { EntityHovercardPullRequestRef } from './components/EntityHovercard/public';
28
+ import { EntityHovercardQuery } from './components/EntityHovercard/public';
29
+ import { EntityHovercardShell } from './components/EntityHovercard/public';
30
+ import { EntityHovercardTarget } from './components/EntityHovercard/public';
31
+ import { EntityHovercardTrackEvent } from './components/EntityHovercard/public';
32
+ import { EntityHovercardTrackPayload } from './components/EntityHovercard/public';
33
+ import { EntityHovercardType } from './components/EntityHovercard/public';
34
+ import { EntityHovercardUserCard } from './components/EntityHovercard/public';
35
+ import { EntityHovercardUserData } from './components/EntityHovercard/public';
36
+ import { EntityHovercardVisibility } from './components/EntityHovercard/public';
37
+ import { EntityIcon } from './components/EntityHovercard/public';
38
+ import { EntityStateIcon } from './components/EntityHovercard/public';
7
39
  import { EventBus } from './utils/eventBus';
40
+ import { formatRelativeTime } from './components/EntityHovercard/public';
41
+ import { formatShortSha } from './components/EntityHovercard/public';
8
42
  import { default as GitCodeAside } from './components/Aside/index.vue';
9
43
  import { default as GitCodeAsideV2 } from './components/AsideV2/index.vue';
10
44
  import { default as GitCodeHeader } from './components/Header/index.vue';
@@ -16,12 +50,31 @@ import { default as HeaderSkeleton } from './components/Header/HeaderSkeleton.vu
16
50
  import { HeaderSkeletonProps } from './components/Header/HeaderSkeleton.vue';
17
51
  import { default as HomeHeaderActions } from './components/Header/HomeHeaderActions.vue';
18
52
  import { HomeHeaderWorkspaceNavigate } from './utils/home-header-actions';
53
+ import { HOVERCARD_ATTR } from './components/EntityHovercard/public';
54
+ import { HovercardCache } from './components/EntityHovercard/public';
55
+ import { HovercardCacheStats } from './components/EntityHovercard/public';
56
+ import { HovercardPosition } from './components/EntityHovercard/public';
57
+ import { HovercardRect } from './components/EntityHovercard/public';
58
+ import { InFlightRegistry } from './components/EntityHovercard/public';
59
+ import { isCacheablePreview } from './components/EntityHovercard/public';
60
+ import { labelTextColor } from './components/EntityHovercard/public';
19
61
  import { default as Login } from './components//Login/Login.vue';
62
+ import { normalizeStateLabel } from './components/EntityHovercard/public';
20
63
  import { openShortcutCommands } from './utils/hooks/useGlobalShortcuts';
21
64
  import { openShortcutHelp } from './utils/hooks/useGlobalShortcuts';
65
+ import { pickFirstLineRect } from './components/EntityHovercard/public';
66
+ import { resetEntityHovercardConfig } from './components/EntityHovercard/public';
67
+ import { resetEntityHovercardHost } from './components/EntityHovercard/public';
22
68
  import { resetShortcutSequence } from './utils/hooks/useGlobalShortcuts';
69
+ import { resolveHovercardLabels } from './components/EntityHovercard/public';
70
+ import { resolveHovercardTargetFromElement } from './components/EntityHovercard/public';
71
+ import { resolveTargetFromAttributes } from './components/EntityHovercard/public';
72
+ import { resolveTargetFromUrl } from './components/EntityHovercard/public';
73
+ import { rgbToLum } from './components/EntityHovercard/public';
23
74
  import { SceneValue } from './constant/index';
24
75
  import { default as ScrollActiveContainer } from './components/AsideV2/ScrollActiveContainer.vue';
76
+ import { setEntityHovercardConfig } from './components/EntityHovercard/public';
77
+ import { setEntityHovercardHost } from './components/EntityHovercard/public';
25
78
  import { setLayoutConfig } from './config';
26
79
  import { setShortcutConfig } from './config/shortcuts';
27
80
  import { setTheme } from './themes/index';
@@ -32,6 +85,8 @@ import { default as ShortcutHelpButton } from './components/ShortcutHelpButton.v
32
85
  import { default as ShortcutProvider } from './components/ShortcutProvider/index.vue';
33
86
  import { default as SiteAnnouncement } from './components/Header/components/SiteAnnouncement.vue';
34
87
  import { default as ToolsFloat } from './components/ToolsFloat/index.vue';
88
+ import { useEntityHovercardConfig } from './components/EntityHovercard/public';
89
+ import { useEntityHovercardHost } from './components/EntityHovercard/public';
35
90
  import { useLogin } from './utils/hooks/useLogin';
36
91
  import { useShortcutConfig } from './config/shortcuts';
37
92
 
@@ -39,6 +94,10 @@ export { AsideFooterTools }
39
94
 
40
95
  export { AtomCodeLauncher }
41
96
 
97
+ export { buildHovercardCacheKey }
98
+
99
+ export { computeHovercardPosition }
100
+
42
101
  export { currentTheme }
43
102
 
44
103
  declare const _default: {
@@ -48,6 +107,70 @@ export default _default;
48
107
 
49
108
  export { EnterpriseHeader }
50
109
 
110
+ export { EntityHovercardCommitAuthor }
111
+
112
+ export { EntityHovercardCommitCard }
113
+
114
+ export { EntityHovercardCommitData }
115
+
116
+ export { EntityHovercardConfig }
117
+
118
+ export { EntityHovercardData }
119
+
120
+ export { EntityHovercardEntityType }
121
+
122
+ export { EntityHovercardFollowTarget }
123
+
124
+ export { EntityHovercardHost }
125
+
126
+ export { EntityHovercardIssueCard }
127
+
128
+ export { EntityHovercardIssueData }
129
+
130
+ export { EntityHovercardLabel }
131
+
132
+ export { EntityHovercardLabels }
133
+
134
+ export { EntityHovercardOrganizationCard }
135
+
136
+ export { EntityHovercardOrganizationData }
137
+
138
+ export { EntityHovercardPreview }
139
+
140
+ export { EntityHovercardProvider }
141
+
142
+ export { EntityHovercardPullRequestCard }
143
+
144
+ export { EntityHovercardPullRequestData }
145
+
146
+ export { EntityHovercardPullRequestRef }
147
+
148
+ export { EntityHovercardQuery }
149
+
150
+ export { EntityHovercardShell }
151
+
152
+ export { EntityHovercardTarget }
153
+
154
+ export { EntityHovercardTrackEvent }
155
+
156
+ export { EntityHovercardTrackPayload }
157
+
158
+ export { EntityHovercardType }
159
+
160
+ export { EntityHovercardUserCard }
161
+
162
+ export { EntityHovercardUserData }
163
+
164
+ export { EntityHovercardVisibility }
165
+
166
+ export { EntityIcon }
167
+
168
+ export { EntityStateIcon }
169
+
170
+ export { formatRelativeTime }
171
+
172
+ export { formatShortSha }
173
+
51
174
  export { GitCodeAside }
52
175
 
53
176
  export { GitCodeAsideV2 }
@@ -72,18 +195,56 @@ export { HomeHeaderActions }
72
195
 
73
196
  export { HomeHeaderWorkspaceNavigate }
74
197
 
198
+ export { HOVERCARD_ATTR }
199
+
200
+ export { HovercardCache }
201
+
202
+ export { HovercardCacheStats }
203
+
204
+ export { HovercardPosition }
205
+
206
+ export { HovercardRect }
207
+
208
+ export { InFlightRegistry }
209
+
210
+ export { isCacheablePreview }
211
+
212
+ export { labelTextColor }
213
+
75
214
  export { Login }
76
215
 
216
+ export { normalizeStateLabel }
217
+
77
218
  export { openShortcutCommands }
78
219
 
79
220
  export { openShortcutHelp }
80
221
 
222
+ export { pickFirstLineRect }
223
+
224
+ export { resetEntityHovercardConfig }
225
+
226
+ export { resetEntityHovercardHost }
227
+
81
228
  export { resetShortcutSequence }
82
229
 
230
+ export { resolveHovercardLabels }
231
+
232
+ export { resolveHovercardTargetFromElement }
233
+
234
+ export { resolveTargetFromAttributes }
235
+
236
+ export { resolveTargetFromUrl }
237
+
238
+ export { rgbToLum }
239
+
83
240
  export { SceneValue }
84
241
 
85
242
  export { ScrollActiveContainer }
86
243
 
244
+ export { setEntityHovercardConfig }
245
+
246
+ export { setEntityHovercardHost }
247
+
87
248
  export { setLayoutConfig }
88
249
 
89
250
  export { setShortcutConfig }
@@ -104,6 +265,10 @@ export { SiteAnnouncement }
104
265
 
105
266
  export { ToolsFloat }
106
267
 
268
+ export { useEntityHovercardConfig }
269
+
270
+ export { useEntityHovercardHost }
271
+
107
272
  export { useLogin }
108
273
 
109
274
  export { useShortcutConfig }
package/index.js CHANGED
@@ -1,31 +1,62 @@
1
- import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, C, a8, a9, aa, ab, ac, ad, ae, af, ag } from "./index-Tb1IDrjA.js";
1
+ import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, C, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL } from "./index-V0acCNJL.js";
2
2
  export {
3
3
  P as AsideFooterTools,
4
4
  Q as AtomCodeLauncher,
5
5
  S as EnterpriseHeader,
6
- U as GitCodeAside,
7
- V as GitCodeAsideV2,
8
- W as GitCodeHeader,
9
- X as GitCodeLayoutEmitter,
10
- Y as HEADER_CREATE_MENU_PATHS,
11
- Z as HeaderCreateMenu,
12
- $ as HeaderSkeleton,
13
- a0 as HomeHeaderActions,
14
- a1 as Login,
15
- a2 as SceneValue,
16
- a3 as ScrollActiveContainer,
17
- a4 as ShortcutHelpButton,
18
- a5 as ShortcutProvider,
19
- a6 as SiteAnnouncement,
20
- a7 as ToolsFloat,
6
+ U as EntityHovercardCommitCard,
7
+ V as EntityHovercardIssueCard,
8
+ W as EntityHovercardOrganizationCard,
9
+ X as EntityHovercardProvider,
10
+ Y as EntityHovercardPullRequestCard,
11
+ Z as EntityHovercardShell,
12
+ $ as EntityHovercardUserCard,
13
+ a0 as EntityIcon,
14
+ a1 as EntityStateIcon,
15
+ a2 as GitCodeAside,
16
+ a3 as GitCodeAsideV2,
17
+ a4 as GitCodeHeader,
18
+ a5 as GitCodeLayoutEmitter,
19
+ a6 as HEADER_CREATE_MENU_PATHS,
20
+ a7 as HOVERCARD_ATTR,
21
+ a8 as HeaderCreateMenu,
22
+ a9 as HeaderSkeleton,
23
+ aa as HomeHeaderActions,
24
+ ab as HovercardCache,
25
+ ac as InFlightRegistry,
26
+ ad as Login,
27
+ ae as SceneValue,
28
+ af as ScrollActiveContainer,
29
+ ag as ShortcutHelpButton,
30
+ ah as ShortcutProvider,
31
+ ai as SiteAnnouncement,
32
+ aj as ToolsFloat,
33
+ ak as buildHovercardCacheKey,
34
+ al as computeHovercardPosition,
21
35
  C as currentTheme,
22
- a8 as default,
23
- a9 as openShortcutCommands,
24
- aa as openShortcutHelp,
25
- ab as resetShortcutSequence,
26
- ac as setLayoutConfig,
27
- ad as setShortcutConfig,
28
- ae as setTheme,
29
- af as useLogin,
30
- ag as useShortcutConfig
36
+ am as default,
37
+ an as formatRelativeTime,
38
+ ao as formatShortSha,
39
+ ap as isCacheablePreview,
40
+ aq as labelTextColor,
41
+ ar as normalizeStateLabel,
42
+ as as openShortcutCommands,
43
+ at as openShortcutHelp,
44
+ au as pickFirstLineRect,
45
+ av as resetEntityHovercardConfig,
46
+ aw as resetEntityHovercardHost,
47
+ ax as resetShortcutSequence,
48
+ ay as resolveHovercardLabels,
49
+ az as resolveHovercardTargetFromElement,
50
+ aA as resolveTargetFromAttributes,
51
+ aB as resolveTargetFromUrl,
52
+ aC as rgbToLum,
53
+ aD as setEntityHovercardConfig,
54
+ aE as setEntityHovercardHost,
55
+ aF as setLayoutConfig,
56
+ aG as setShortcutConfig,
57
+ aH as setTheme,
58
+ aI as useEntityHovercardConfig,
59
+ aJ as useEntityHovercardHost,
60
+ aK as useLogin,
61
+ aL as useShortcutConfig
31
62
  };
@@ -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, _ as _export_sfc } from "./index-Tb1IDrjA.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-V0acCNJL.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.12.70",
3
+ "version": "1.12.71",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toDisplayString, unref, useModel, ref, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, createTextVNode, renderList, withCtx, reactive, onMounted, watchEffect } from "vue";
2
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, e as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as useCookie, j as usePageResize, L as LANG_ZH, k as isGstarRepo, m as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, w as REPO_TYPE, x as extractRepoInfoWithURL, y as LANG_KEY } from "./index-Tb1IDrjA.js";
3
- import { t as transWebUrl } from "./transWebUrl-grf0hGxK.js";
2
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, e as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as useCookie, j as usePageResize, L as LANG_ZH, k as isGstarRepo, m as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, w as REPO_TYPE, x as extractRepoInfoWithURL, y as LANG_KEY } from "./index-V0acCNJL.js";
3
+ import { t as transWebUrl } from "./transWebUrl-DK2jox9N.js";
4
4
  import { useRouter } from "vue-router";
5
5
  import { Row, Col } from "vue-devui-lal/grid";
6
6
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";