vue-layout-gitcode 1.10.46 → 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-Cfgtkgon.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-Cfgtkgon.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,157 +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
- "update:openCreateDropdown": (...args: any[]) => void;
39
- }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
40
- onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
41
- onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
42
- onFollowUser?: ((...args: any[]) => any) | undefined;
43
- "onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
44
- }>, {
45
- globalStore: Object;
46
- isLogin: boolean;
47
- sceneValue: SceneValue;
48
- request: Function;
49
- repoInfo: repoInfoType;
50
- orgInfo: OrgInfo;
51
- otherUserInfo: UserInfo;
52
- userInfo: UserInfo;
53
- independence: boolean;
54
- headerBorder: boolean;
55
- bgConfig: {
56
- index_head: string;
57
- detail_top: string;
58
- detail_top_black: string;
59
- detail_toolbar: string;
60
- detail_toolbar_black: string;
61
- detail_top_url: string;
62
- index_head_url: string;
63
- detail_toolbar_url: string;
64
- };
65
- openCreateDropdown: boolean;
66
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
67
- headerRef: HTMLDivElement;
68
- }, HTMLDivElement>;
69
-
70
- declare type __VLS_Props = {
71
- isLogin: boolean;
72
- request: Function;
73
- loginOutFinish?: Function;
74
- loginSuccess: Function;
75
- globalStore: Object;
76
- openHarmonyGuide: boolean;
77
- };
78
-
79
- declare type __VLS_Props_2 = {
80
- sceneValue: SceneValue;
81
- isLogin: boolean;
82
- request: Function;
83
- loginOutFinish?: Function;
84
- loginSuccess: Function;
85
- globalStore: Object;
86
- repoInfo?: repoInfoType;
87
- orgInfo?: OrgInfo;
88
- otherUserInfo?: UserInfo;
89
- userInfo?: UserInfo;
90
- headerFunctions?: HeaderDisplayItem[];
91
- headerCustomProps?: HeaderPropsForCustom;
92
- openHarmonyGuide: boolean;
93
- headerBorder?: boolean;
94
- independence?: boolean;
95
- userMenus?: any[];
96
- loginChildComponents: any;
97
- bgConfig?: {
98
- index_head: string;
99
- detail_top: string;
100
- detail_top_black: string;
101
- detail_toolbar: string;
102
- detail_toolbar_black: string;
103
- detail_top_url: string;
104
- index_head_url: string;
105
- detail_toolbar_url: string;
106
- };
107
- openCreateDropdown?: boolean;
108
- };
109
-
110
- declare function __VLS_template(): {
111
- attrs: Partial<{}>;
112
- slots: Partial<Record<string, (_: {}) => any>>;
113
- refs: {};
114
- rootEl: any;
115
- };
116
-
117
- declare function __VLS_template_2(): {
118
- attrs: Partial<{}>;
119
- slots: {
120
- headerCustom?(_: {}): any;
121
- aiSearch?(_: {}): any;
122
- headerMiddleRight?(_: {}): any;
123
- search?(_: {}): any;
124
- searchRecommend?(_: {}): any;
125
- globalSearch?(_: {
126
- searchStr: string | LocationQueryValue[];
127
- searchMore: (type: any) => void;
128
- }): any;
129
- bodyHeader?(_: {}): any;
130
- info?(_: {}): any;
131
- menu?(_: {}): any;
132
- headerBottom?(_: {}): any;
133
- };
134
- refs: {
135
- headerRef: HTMLDivElement;
136
- };
137
- rootEl: HTMLDivElement;
138
- };
139
-
140
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
141
-
142
- declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
143
-
144
- declare type __VLS_WithTemplateSlots<T, S> = T & {
145
- new (): {
146
- $slots: S;
147
- };
148
- };
149
-
150
- declare type __VLS_WithTemplateSlots_2<T, S> = T & {
151
- new (): {
152
- $slots: S;
153
- };
154
- };
8
+ import { default as SiteAnnouncement } from './components/Header/components/SiteAnnouncement.vue';
9
+ import { default as ToolsFloat } from './components/ToolsFloat/index.vue';
155
10
 
156
11
  declare interface BaseLayoutConfig {
157
12
  VITE_HOST: string;
@@ -207,31 +62,13 @@ declare type EventBus = {
207
62
  resetPwdDirectlySuccess: void;
208
63
  };
209
64
 
210
- export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
65
+ export { GitCodeAside }
211
66
 
212
- export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
67
+ export { GitCodeHeader }
213
68
 
214
69
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
215
70
 
216
- declare enum HeaderDisplayItem {
217
- LOGIN_AND_AVATAR = "0101",
218
- MESSAGE_CENTER = "0102",
219
- NEW_BUTTON = "0103",
220
- DOCUMENT_CENTER = "0104",
221
- DEEPSEEK_BUTTON = "0105",
222
- SEARCH_BUTTON = "0106",
223
- NAME_AND_ICON = "0107",
224
- CUSTOM_CONTENT = "0108",
225
- ASIDE_BUTTON = "0109",
226
- NEWS_MULTI_LANGUAGE = "0110",
227
- OPERATION_ENTRY = "0111"
228
- }
229
-
230
- export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
231
- globalStore: Object;
232
- request: Function;
233
- openHarmonyGuide: boolean;
234
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
71
+ export { Login }
235
72
 
236
73
  declare interface LoginOptions {
237
74
  Authorization?: boolean;
@@ -242,50 +79,6 @@ declare interface LoginOptions {
242
79
  [x: string]: any;
243
80
  }
244
81
 
245
- declare interface Props {
246
- /** 场景值 核心参数之一 */
247
- sceneValue: SceneValue;
248
- /** 是否登录 */
249
- isLogin: boolean;
250
- /** 请求实例 */
251
- request: Function;
252
- /** 全局store 上报需要 */
253
- globalStore: {
254
- isSignIn?: boolean;
255
- [key: string]: any;
256
- };
257
- /** 是否为项目页 */
258
- isRepoPage?: boolean;
259
- /** 是否是白名单项目 - 白名单项目页,默认收起工具栏 */
260
- isWhiteListRepo: boolean;
261
- }
262
-
263
- declare interface Props_2 {
264
- /** 场景值 核心参数之一 */
265
- sceneValue: SceneValue;
266
- /** 禁用 flat 模式 */
267
- disableFlatMode?: boolean;
268
- /** 用户信息 */
269
- userInfo: AccountInfo;
270
- /** 是否登录 */
271
- isLogin: boolean;
272
- /** 请求实例 */
273
- request: Function;
274
- /** 全局store 上报需要 */
275
- globalStore: Object;
276
- /** 是否独立部署 */
277
- independence?: boolean;
278
- /** 是否显示偏好设置 */
279
- showPreferencesSetting?: boolean | undefined;
280
- /** 是否显示主题设置 */
281
- showThemeSetting?: boolean | undefined;
282
- /** 是否显示语言设置 */
283
- showLangSetting?: boolean | undefined;
284
- collapseMode?: boolean;
285
- /** 需要显示hover的slotKeys */
286
- slotKeys?: Array<string>;
287
- }
288
-
289
82
  export declare enum SceneValue {
290
83
  home = "home",
291
84
  repo = "repo",
@@ -303,32 +96,9 @@ export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
303
96
 
304
97
  export { setTheme }
305
98
 
306
- export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
307
-
308
- declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
309
- COLLAPSE: string;
310
- EXPAND: string;
311
- };
312
-
313
- export declare const ToolsFloat: DefineComponent<Props, {
314
- handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
315
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
316
- "toggle-growth-center": () => any;
317
- }, string, PublicProps, Readonly<Props> & Readonly<{
318
- "onToggle-growth-center"?: (() => any) | undefined;
319
- }>, {
320
- globalStore: {
321
- isSignIn?: boolean;
322
- [key: string]: any;
323
- };
324
- isLogin: boolean;
325
- sceneValue: SceneValue;
326
- request: Function;
327
- isRepoPage: boolean;
328
- isWhiteListRepo: boolean;
329
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
99
+ export { SiteAnnouncement }
330
100
 
331
- declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
101
+ export { ToolsFloat }
332
102
 
333
103
  export declare function useLogin(request: any, globalStore?: any): {
334
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-Cfgtkgon.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-Cfgtkgon.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.46",
3
+ "version": "1.10.47",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",