vue-layout-gitcode 1.10.45 → 1.10.47

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-Cly4qH4O.js";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-BsAdNTFu.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:";
@@ -105,10 +105,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
105
  });
106
106
  return (_ctx, _cache) => {
107
107
  return openBlock(), createBlock(unref(FixedOverlay), { class: "captcha-overlay-slid" }, {
108
- default: withCtx(() => [..._cache[0] || (_cache[0] = [
108
+ default: withCtx(() => _cache[0] || (_cache[0] = [
109
109
  createElementVNode("div", { id: "captcha-box" }, null, -1)
110
- ])]),
111
- _: 1
110
+ ])),
111
+ _: 1,
112
+ __: [0]
112
113
  });
113
114
  };
114
115
  }
@@ -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, z as isZh, _ as _export_sfc } from "./index-Cly4qH4O.js";
11
+ import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-BsAdNTFu.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
package/index.d.ts CHANGED
@@ -1,155 +1,12 @@
1
- import { AccountInfo } from '../../types/types';
2
1
  import { App } from '../vue/dist/vue.esm-bundler.js';
3
- import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
4
- import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
5
- import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
6
- import { ComponentProvideOptions as ComponentProvideOptions_2 } from '../../../../vue/dist/vue.esm-bundler.js';
7
2
  import { currentTheme } from './themes/index';
8
- import { DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
9
- import { DefineComponent as DefineComponent_2 } from '../../../../vue/dist/vue.esm-bundler.js';
10
3
  import { Emitter } from 'mitt';
11
- import { HeaderPropsForCustom } from '../../types/types';
12
- import { LocationQueryValue } from 'vue-router';
13
- import { OrgInfo } from '../../types/types';
14
- import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
15
- import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
16
- import { repoInfoType } from '../../types/types';
4
+ import { default as GitCodeAside } from './components/Aside/index.vue';
5
+ import { default as GitCodeHeader } from './components/Header/index.vue';
6
+ import { default as Login } from './components//Login/Login.vue';
17
7
  import { setTheme } from './themes/index';
18
- import { UserInfo } from '../../types/types';
19
-
20
- declare const __VLS_component: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
21
- globalStore: Object;
22
- sceneValue: SceneValue;
23
- request: Function;
24
- userInfo: AccountInfo;
25
- independence: boolean;
26
- slotKeys: Array<string>;
27
- showThemeSetting: boolean;
28
- showLangSetting: boolean;
29
- showPreferencesSetting: boolean;
30
- collapseMode: boolean;
31
- disableFlatMode: boolean;
32
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
33
-
34
- declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
35
- resetPwdDirectlySuccess: (...args: any[]) => void;
36
- followDevCommunity: (...args: any[]) => void;
37
- followUser: (...args: any[]) => void;
38
- }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
39
- onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
40
- onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
41
- onFollowUser?: ((...args: any[]) => any) | undefined;
42
- }>, {
43
- globalStore: Object;
44
- isLogin: boolean;
45
- sceneValue: SceneValue;
46
- request: Function;
47
- repoInfo: repoInfoType;
48
- orgInfo: OrgInfo;
49
- otherUserInfo: UserInfo;
50
- userInfo: UserInfo;
51
- independence: boolean;
52
- headerBorder: boolean;
53
- bgConfig: {
54
- index_head: string;
55
- detail_top: string;
56
- detail_top_black: string;
57
- detail_toolbar: string;
58
- detail_toolbar_black: string;
59
- detail_top_url: string;
60
- index_head_url: string;
61
- detail_toolbar_url: string;
62
- };
63
- openCreateDropdown: boolean;
64
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
65
- headerRef: HTMLDivElement;
66
- }, HTMLDivElement>;
67
-
68
- declare type __VLS_Props = {
69
- isLogin: boolean;
70
- request: Function;
71
- loginOutFinish?: Function;
72
- loginSuccess: Function;
73
- globalStore: Object;
74
- openHarmonyGuide: boolean;
75
- };
76
-
77
- declare type __VLS_Props_2 = {
78
- sceneValue: SceneValue;
79
- isLogin: boolean;
80
- request: Function;
81
- loginOutFinish?: Function;
82
- loginSuccess: Function;
83
- globalStore: Object;
84
- repoInfo?: repoInfoType;
85
- orgInfo?: OrgInfo;
86
- otherUserInfo?: UserInfo;
87
- userInfo?: UserInfo;
88
- headerFunctions?: HeaderDisplayItem[];
89
- headerCustomProps?: HeaderPropsForCustom;
90
- openHarmonyGuide: boolean;
91
- headerBorder?: boolean;
92
- independence?: boolean;
93
- userMenus?: any[];
94
- loginChildComponents: any;
95
- bgConfig?: {
96
- index_head: string;
97
- detail_top: string;
98
- detail_top_black: string;
99
- detail_toolbar: string;
100
- detail_toolbar_black: string;
101
- detail_top_url: string;
102
- index_head_url: string;
103
- detail_toolbar_url: string;
104
- };
105
- openCreateDropdown?: boolean;
106
- };
107
-
108
- declare function __VLS_template(): {
109
- attrs: Partial<{}>;
110
- slots: Partial<Record<string, (_: {}) => any>>;
111
- refs: {};
112
- rootEl: any;
113
- };
114
-
115
- declare function __VLS_template_2(): {
116
- attrs: Partial<{}>;
117
- slots: {
118
- headerCustom?(_: {}): any;
119
- aiSearch?(_: {}): any;
120
- headerMiddleRight?(_: {}): any;
121
- search?(_: {}): any;
122
- searchRecommend?(_: {}): any;
123
- globalSearch?(_: {
124
- searchStr: string | LocationQueryValue[];
125
- searchMore: (type: any) => void;
126
- }): any;
127
- bodyHeader?(_: {}): any;
128
- info?(_: {}): any;
129
- menu?(_: {}): any;
130
- headerBottom?(_: {}): any;
131
- };
132
- refs: {
133
- headerRef: HTMLDivElement;
134
- };
135
- rootEl: HTMLDivElement;
136
- };
137
-
138
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
139
-
140
- declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
141
-
142
- declare type __VLS_WithTemplateSlots<T, S> = T & {
143
- new (): {
144
- $slots: S;
145
- };
146
- };
147
-
148
- declare type __VLS_WithTemplateSlots_2<T, S> = T & {
149
- new (): {
150
- $slots: S;
151
- };
152
- };
8
+ import { default as SiteAnnouncement } from './components/Header/components/SiteAnnouncement.vue';
9
+ import { default as ToolsFloat } from './components/ToolsFloat/index.vue';
153
10
 
154
11
  declare interface BaseLayoutConfig {
155
12
  VITE_HOST: string;
@@ -205,31 +62,13 @@ declare type EventBus = {
205
62
  resetPwdDirectlySuccess: void;
206
63
  };
207
64
 
208
- export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
65
+ export { GitCodeAside }
209
66
 
210
- export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
67
+ export { GitCodeHeader }
211
68
 
212
69
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
213
70
 
214
- declare enum HeaderDisplayItem {
215
- LOGIN_AND_AVATAR = "0101",
216
- MESSAGE_CENTER = "0102",
217
- NEW_BUTTON = "0103",
218
- DOCUMENT_CENTER = "0104",
219
- DEEPSEEK_BUTTON = "0105",
220
- SEARCH_BUTTON = "0106",
221
- NAME_AND_ICON = "0107",
222
- CUSTOM_CONTENT = "0108",
223
- ASIDE_BUTTON = "0109",
224
- NEWS_MULTI_LANGUAGE = "0110",
225
- OPERATION_ENTRY = "0111"
226
- }
227
-
228
- export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
229
- globalStore: Object;
230
- request: Function;
231
- openHarmonyGuide: boolean;
232
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
71
+ export { Login }
233
72
 
234
73
  declare interface LoginOptions {
235
74
  Authorization?: boolean;
@@ -240,50 +79,6 @@ declare interface LoginOptions {
240
79
  [x: string]: any;
241
80
  }
242
81
 
243
- declare interface Props {
244
- /** 场景值 核心参数之一 */
245
- sceneValue: SceneValue;
246
- /** 是否登录 */
247
- isLogin: boolean;
248
- /** 请求实例 */
249
- request: Function;
250
- /** 全局store 上报需要 */
251
- globalStore: {
252
- isSignIn?: boolean;
253
- [key: string]: any;
254
- };
255
- /** 是否为项目页 */
256
- isRepoPage?: boolean;
257
- /** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
258
- isWhiteListRepo: boolean;
259
- }
260
-
261
- declare interface Props_2 {
262
- /** 场景值 核心参数之一 */
263
- sceneValue: SceneValue;
264
- /** 禁用 flat 模式 */
265
- disableFlatMode?: boolean;
266
- /** 用户信息 */
267
- userInfo: AccountInfo;
268
- /** 是否登录 */
269
- isLogin: boolean;
270
- /** 请求实例 */
271
- request: Function;
272
- /** 全局store 上报需要 */
273
- globalStore: Object;
274
- /** 是否独立部署 */
275
- independence?: boolean;
276
- /** 是否显示偏好设置 */
277
- showPreferencesSetting?: boolean | undefined;
278
- /** 是否显示主题设置 */
279
- showThemeSetting?: boolean | undefined;
280
- /** 是否显示语言设置 */
281
- showLangSetting?: boolean | undefined;
282
- collapseMode?: boolean;
283
- /** 需要显示hover的slotKeys */
284
- slotKeys?: Array<string>;
285
- }
286
-
287
82
  export declare enum SceneValue {
288
83
  home = "home",
289
84
  repo = "repo",
@@ -301,32 +96,9 @@ export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
301
96
 
302
97
  export { setTheme }
303
98
 
304
- export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
305
-
306
- declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
307
- COLLAPSE: string;
308
- EXPAND: string;
309
- };
310
-
311
- export declare const ToolsFloat: DefineComponent<Props, {
312
- handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
313
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
314
- "toggle-growth-center": () => any;
315
- }, string, PublicProps, Readonly<Props> & Readonly<{
316
- "onToggle-growth-center"?: (() => any) | undefined;
317
- }>, {
318
- globalStore: {
319
- isSignIn?: boolean;
320
- [key: string]: any;
321
- };
322
- isLogin: boolean;
323
- sceneValue: SceneValue;
324
- request: Function;
325
- isRepoPage: boolean;
326
- isWhiteListRepo: boolean;
327
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
99
+ export { SiteAnnouncement }
328
100
 
329
- declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
101
+ export { ToolsFloat }
330
102
 
331
103
  export declare function useLogin(request: any, globalStore?: any): {
332
104
  login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { O, P, W, N, S, Q, M, B, Y, V, X, U } from "./index-Cly4qH4O.js";
1
+ import { O, P, W, N, S, Q, M, B, Y, V, X, U } from "./index-BsAdNTFu.js";
2
2
  export {
3
3
  O as GitCodeAside,
4
4
  P as GitCodeHeader,
@@ -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-Cly4qH4O.js";
2
+ import { i as isPhone, u as useModel } from "./index-BsAdNTFu.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";
@@ -33,13 +33,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  createVNode(unref(Button), {
34
34
  variant: "outline",
35
35
  size: isMobile.value ? "sm" : "md",
36
- onClick: __props.onClose,
36
+ onClick: _ctx.onClose,
37
37
  class: "mr-[8px]"
38
38
  }, {
39
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
40
- createTextVNode("忽略", -1)
41
- ])]),
42
- _: 1
39
+ default: withCtx(() => _cache[1] || (_cache[1] = [
40
+ createTextVNode("忽略")
41
+ ])),
42
+ _: 1,
43
+ __: [1]
43
44
  }, 8, ["size", "onClick"]),
44
45
  createVNode(unref(Button), {
45
46
  variant: "solid",
@@ -47,10 +48,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
48
  color: "primary",
48
49
  onClick: handleConfirm
49
50
  }, {
50
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
51
- createTextVNode("修改", -1)
52
- ])]),
53
- _: 1
51
+ default: withCtx(() => _cache[2] || (_cache[2] = [
52
+ createTextVNode("修改")
53
+ ])),
54
+ _: 1,
55
+ __: [2]
54
56
  }, 8, ["size"])
55
57
  ], 2)
56
58
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.10.45",
3
+ "version": "1.10.47",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",