@ahooks.js/dumi-theme-antd 0.1.6 → 0.1.8
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/README.md +7 -1
- package/dist/builtins/Alert/index.d.ts +6 -6
- package/dist/builtins/BashOSPlatform/index.d.ts +8 -8
- package/dist/builtins/BashOSPlatform/linux.d.ts +7 -7
- package/dist/builtins/BashOSPlatform/macos.d.ts +7 -7
- package/dist/builtins/BashOSPlatform/windows.d.ts +7 -7
- package/dist/builtins/HomeBaseLayout/components/Features/index.d.ts +3 -3
- package/dist/builtins/HomeBaseLayout/components/Group.d.ts +19 -19
- package/dist/builtins/HomeBaseLayout/index.d.ts +3 -3
- package/dist/builtins/ImagePreview/index.d.ts +3 -3
- package/dist/builtins/InstallDependencies/icons.d.ts +10 -10
- package/dist/builtins/InstallDependencies/index.d.ts +9 -9
- package/dist/common/CommonHelmet.d.ts +2 -2
- package/dist/common/EditLink.d.ts +2 -2
- package/dist/common/GlobalStyles.d.ts +2 -2
- package/dist/common/LastUpdated.d.ts +5 -5
- package/dist/common/Loading/index.d.ts +3 -3
- package/dist/common/PrevAndNext.d.ts +3 -3
- package/dist/common/ThemeSwitch/ThemeIcon.d.ts +5 -5
- package/dist/common/ThemeSwitch/index.d.ts +8 -8
- package/dist/common/styles/Common.d.ts +2 -2
- package/dist/common/styles/DumiDefaultStyleOverride.d.ts +2 -2
- package/dist/common/styles/HeadingAnchor.d.ts +2 -2
- package/dist/common/styles/Highlight.d.ts +2 -2
- package/dist/common/styles/Markdown.d.ts +2 -2
- package/dist/common/styles/PreviewImage.d.ts +2 -2
- package/dist/common/styles/Reset.d.ts +2 -2
- package/dist/common/styles/Responsive.d.ts +2 -2
- package/dist/common/styles/SearchBar.d.ts +2 -2
- package/dist/common/styles/index.d.ts +9 -9
- package/dist/hooks/useAdditionalThemeConfig.d.ts +3 -3
- package/dist/hooks/useAffixTop.d.ts +2 -2
- package/dist/hooks/useLocaleValue.d.ts +1 -1
- package/dist/hooks/useMenu.d.ts +8 -8
- package/dist/hooks/useSiteToken.d.ts +21 -21
- package/dist/hooks/uselocale.d.ts +5 -5
- package/dist/icons/LTRIcon.d.ts +5 -5
- package/dist/icons/RTLIcon.d.ts +5 -5
- package/dist/index.d.ts +11 -11
- package/dist/layouts/DocLayout/index.d.ts +4 -4
- package/dist/layouts/GlobalLayout.d.ts +3 -3
- package/dist/layouts/HomePageLayout/index.d.ts +3 -3
- package/dist/layouts/SidebarLayout/index.d.ts +3 -3
- package/dist/plugin/index.d.ts +3 -3
- package/dist/plugin.d.ts +4 -4
- package/dist/slots/Content/index.d.ts +5 -5
- package/dist/slots/Footer/index.d.ts +3 -3
- package/dist/slots/Header/{HeaderExtral.d.ts → HeaderExtra.d.ts} +3 -3
- package/dist/slots/Header/HeaderExtra.js +34 -0
- package/dist/slots/Header/Logo.d.ts +2 -2
- package/dist/slots/Header/More.d.ts +6 -6
- package/dist/slots/Header/Navigation.d.ts +6 -6
- package/dist/slots/Header/SwitchBtn.d.ts +11 -11
- package/dist/slots/Header/index.d.ts +4 -4
- package/dist/slots/Header/index.js +3 -3
- package/dist/slots/LangSwitch/index.d.ts +3 -3
- package/dist/slots/NotFound/index.d.ts +9 -9
- package/dist/slots/RtlSwitch/index.d.ts +3 -3
- package/dist/slots/Sidebar/index.d.ts +4 -4
- package/dist/slots/Sidebar/index.js +9 -14
- package/dist/slots/SiteContext.d.ts +11 -10
- package/dist/static/style.d.ts +1 -1
- package/dist/types.d.ts +105 -105
- package/dist/utils.d.ts +10 -10
- package/package.json +13 -6
- package/dist/slots/Header/HeaderExtral.js +0 -34
package/dist/types.d.ts
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { IThemeConfig } from 'dumi/dist/client/theme-api/types';
|
|
3
|
-
import type { ThemeConfig } from 'antd';
|
|
4
|
-
import type { FooterColumn } from 'rc-footer/lib/column';
|
|
5
|
-
export declare type ISidebarGroupModePathItem = string;
|
|
6
|
-
interface ILocaleEnhance {
|
|
7
|
-
/** 同 themeConfig 中 locales 项中的 id */
|
|
8
|
-
id: string;
|
|
9
|
-
/** 当多语言只有两项时用于展示切换的前缀 */
|
|
10
|
-
switchPrefix: string;
|
|
11
|
-
}
|
|
12
|
-
interface IAction {
|
|
13
|
-
/** 按钮文字描述 */
|
|
14
|
-
text: string;
|
|
15
|
-
/** 按钮链接 */
|
|
16
|
-
link: string;
|
|
17
|
-
/** 按钮类型 */
|
|
18
|
-
type?: 'primary' | 'default';
|
|
19
|
-
}
|
|
20
|
-
export interface IMoreLink {
|
|
21
|
-
/** 链接文字描述 */
|
|
22
|
-
text: string;
|
|
23
|
-
/** 链接 */
|
|
24
|
-
link: string;
|
|
25
|
-
}
|
|
26
|
-
interface IFeature {
|
|
27
|
-
/** 特性名称 */
|
|
28
|
-
title: string;
|
|
29
|
-
/** 特性具体描述 */
|
|
30
|
-
details: string;
|
|
31
|
-
/** css in js 样式 */
|
|
32
|
-
itemCss?: SerializedStyles;
|
|
33
|
-
}
|
|
34
|
-
interface ILoading {
|
|
35
|
-
skeleton?: Array<string>;
|
|
36
|
-
}
|
|
37
|
-
export declare type SidebarEnhanceItemType = {
|
|
38
|
-
title: string;
|
|
39
|
-
link: string;
|
|
40
|
-
target?: string;
|
|
41
|
-
};
|
|
42
|
-
export declare type SidebarEnhanceChildrenType = string | SidebarEnhanceItemType;
|
|
43
|
-
export declare type SidebarEnhanceSubType = {
|
|
44
|
-
children: SidebarEnhanceChildrenType[];
|
|
45
|
-
title: string;
|
|
46
|
-
};
|
|
47
|
-
export declare type SidebarEnhanceGroupChildren = (SidebarEnhanceSubType | SidebarEnhanceChildrenType)[];
|
|
48
|
-
export declare type SidebarEnhanceGroupType = {
|
|
49
|
-
type: 'group';
|
|
50
|
-
title: string;
|
|
51
|
-
children: SidebarEnhanceGroupChildren;
|
|
52
|
-
};
|
|
53
|
-
export declare type SidebarEnhanceType = SidebarEnhanceSubType | SidebarEnhanceGroupType | SidebarEnhanceChildrenType;
|
|
54
|
-
export declare type SidebarEnhanceItems = SidebarEnhanceType[];
|
|
55
|
-
interface IDocVersion {
|
|
56
|
-
[propName: string]: string;
|
|
57
|
-
}
|
|
58
|
-
export interface IBannerConfig {
|
|
59
|
-
/** 是否展示头部 banner 背景 */
|
|
60
|
-
showBanner?: boolean;
|
|
61
|
-
/** banner 图片地址 */
|
|
62
|
-
bannerImgUrl?: string;
|
|
63
|
-
/** banner 移动端图片地址 */
|
|
64
|
-
bannerMobileImgUrl?: string;
|
|
65
|
-
}
|
|
66
|
-
interface IAdditionalThemeConfig {
|
|
67
|
-
/** github 链接 */
|
|
68
|
-
github?: string;
|
|
69
|
-
/** 首页链接 */
|
|
70
|
-
homeLink?: string;
|
|
71
|
-
/** 多语言额外配置,主要用于展示语言切换文字(只针对于两项多语言时) */
|
|
72
|
-
localesEnhance?: ILocaleEnhance[];
|
|
73
|
-
/** 配置首页首屏区域的大标题。 */
|
|
74
|
-
title?: string | Record<string, string>;
|
|
75
|
-
/** 配置首页首屏区域的简介文字 */
|
|
76
|
-
description?: string | Record<string, string>;
|
|
77
|
-
/** 配置首页首屏区域的操作按钮 */
|
|
78
|
-
actions?: IAction[] | Record<string, IAction[]>;
|
|
79
|
-
/** 配置首页特性描述 */
|
|
80
|
-
features?: IFeature[] | Record<string, IFeature[]>;
|
|
81
|
-
/** sidebar group 模式路由 */
|
|
82
|
-
sidebarGroupModePath?: true | ISidebarGroupModePathItem[];
|
|
83
|
-
/** 文档版本 */
|
|
84
|
-
docVersions?: IDocVersion;
|
|
85
|
-
/** 更多链接 */
|
|
86
|
-
moreLinks?: IMoreLink[] | Record<string, IMoreLink[]>;
|
|
87
|
-
/** banner 配置 */
|
|
88
|
-
bannerConfig?: IBannerConfig;
|
|
89
|
-
/** 是否展示 rtl */
|
|
90
|
-
rtl?: boolean;
|
|
91
|
-
/** 增强模式的 sidebar */
|
|
92
|
-
sidebarEnhance?: Record<string, SidebarEnhanceItems>;
|
|
93
|
-
/** antd 主题定制,同 `ConfigProvider` 中 `theme` */
|
|
94
|
-
theme?: Omit<ThemeConfig, 'algorithm'>;
|
|
95
|
-
/** 是否展示页面加载状态 */
|
|
96
|
-
loading?: ILoading;
|
|
97
|
-
/** footer 上方展示友情链接 */
|
|
98
|
-
footerLinks?: FooterColumn[] | Record<string, FooterColumn[]>;
|
|
99
|
-
/** SSR, plugin 自动注入,无需设置 */
|
|
100
|
-
ssr?: boolean | Record<string, unknown>;
|
|
101
|
-
}
|
|
102
|
-
export interface IAllThemeConfig extends Omit<IThemeConfig, 'socialLinks'>, IAdditionalThemeConfig {
|
|
103
|
-
socialLinks?: IThemeConfig['socialLinks'];
|
|
104
|
-
}
|
|
105
|
-
export { IAdditionalThemeConfig, ILocaleEnhance, IFeature, IAction };
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { IThemeConfig } from 'dumi/dist/client/theme-api/types';
|
|
3
|
+
import type { ThemeConfig } from 'antd';
|
|
4
|
+
import type { FooterColumn } from 'rc-footer/lib/column';
|
|
5
|
+
export declare type ISidebarGroupModePathItem = string;
|
|
6
|
+
interface ILocaleEnhance {
|
|
7
|
+
/** 同 themeConfig 中 locales 项中的 id */
|
|
8
|
+
id: string;
|
|
9
|
+
/** 当多语言只有两项时用于展示切换的前缀 */
|
|
10
|
+
switchPrefix: string;
|
|
11
|
+
}
|
|
12
|
+
interface IAction {
|
|
13
|
+
/** 按钮文字描述 */
|
|
14
|
+
text: string;
|
|
15
|
+
/** 按钮链接 */
|
|
16
|
+
link: string;
|
|
17
|
+
/** 按钮类型 */
|
|
18
|
+
type?: 'primary' | 'default';
|
|
19
|
+
}
|
|
20
|
+
export interface IMoreLink {
|
|
21
|
+
/** 链接文字描述 */
|
|
22
|
+
text: string;
|
|
23
|
+
/** 链接 */
|
|
24
|
+
link: string;
|
|
25
|
+
}
|
|
26
|
+
interface IFeature {
|
|
27
|
+
/** 特性名称 */
|
|
28
|
+
title: string;
|
|
29
|
+
/** 特性具体描述 */
|
|
30
|
+
details: string;
|
|
31
|
+
/** css in js 样式 */
|
|
32
|
+
itemCss?: SerializedStyles;
|
|
33
|
+
}
|
|
34
|
+
interface ILoading {
|
|
35
|
+
skeleton?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
export declare type SidebarEnhanceItemType = {
|
|
38
|
+
title: string;
|
|
39
|
+
link: string;
|
|
40
|
+
target?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare type SidebarEnhanceChildrenType = string | SidebarEnhanceItemType;
|
|
43
|
+
export declare type SidebarEnhanceSubType = {
|
|
44
|
+
children: SidebarEnhanceChildrenType[];
|
|
45
|
+
title: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type SidebarEnhanceGroupChildren = (SidebarEnhanceSubType | SidebarEnhanceChildrenType)[];
|
|
48
|
+
export declare type SidebarEnhanceGroupType = {
|
|
49
|
+
type: 'group';
|
|
50
|
+
title: string;
|
|
51
|
+
children: SidebarEnhanceGroupChildren;
|
|
52
|
+
};
|
|
53
|
+
export declare type SidebarEnhanceType = SidebarEnhanceSubType | SidebarEnhanceGroupType | SidebarEnhanceChildrenType;
|
|
54
|
+
export declare type SidebarEnhanceItems = SidebarEnhanceType[];
|
|
55
|
+
interface IDocVersion {
|
|
56
|
+
[propName: string]: string;
|
|
57
|
+
}
|
|
58
|
+
export interface IBannerConfig {
|
|
59
|
+
/** 是否展示头部 banner 背景 */
|
|
60
|
+
showBanner?: boolean;
|
|
61
|
+
/** banner 图片地址 */
|
|
62
|
+
bannerImgUrl?: string;
|
|
63
|
+
/** banner 移动端图片地址 */
|
|
64
|
+
bannerMobileImgUrl?: string;
|
|
65
|
+
}
|
|
66
|
+
interface IAdditionalThemeConfig {
|
|
67
|
+
/** github 链接 */
|
|
68
|
+
github?: string;
|
|
69
|
+
/** 首页链接 */
|
|
70
|
+
homeLink?: string;
|
|
71
|
+
/** 多语言额外配置,主要用于展示语言切换文字(只针对于两项多语言时) */
|
|
72
|
+
localesEnhance?: ILocaleEnhance[];
|
|
73
|
+
/** 配置首页首屏区域的大标题。 */
|
|
74
|
+
title?: string | Record<string, string>;
|
|
75
|
+
/** 配置首页首屏区域的简介文字 */
|
|
76
|
+
description?: string | Record<string, string>;
|
|
77
|
+
/** 配置首页首屏区域的操作按钮 */
|
|
78
|
+
actions?: IAction[] | Record<string, IAction[]>;
|
|
79
|
+
/** 配置首页特性描述 */
|
|
80
|
+
features?: IFeature[] | Record<string, IFeature[]>;
|
|
81
|
+
/** sidebar group 模式路由 */
|
|
82
|
+
sidebarGroupModePath?: true | ISidebarGroupModePathItem[];
|
|
83
|
+
/** 文档版本 */
|
|
84
|
+
docVersions?: IDocVersion;
|
|
85
|
+
/** 更多链接 */
|
|
86
|
+
moreLinks?: IMoreLink[] | Record<string, IMoreLink[]>;
|
|
87
|
+
/** banner 配置 */
|
|
88
|
+
bannerConfig?: IBannerConfig;
|
|
89
|
+
/** 是否展示 rtl */
|
|
90
|
+
rtl?: boolean;
|
|
91
|
+
/** 增强模式的 sidebar */
|
|
92
|
+
sidebarEnhance?: Record<string, SidebarEnhanceItems>;
|
|
93
|
+
/** antd 主题定制,同 `ConfigProvider` 中 `theme` */
|
|
94
|
+
theme?: Omit<ThemeConfig, 'algorithm'>;
|
|
95
|
+
/** 是否展示页面加载状态 */
|
|
96
|
+
loading?: ILoading;
|
|
97
|
+
/** footer 上方展示友情链接 */
|
|
98
|
+
footerLinks?: FooterColumn[] | Record<string, FooterColumn[]>;
|
|
99
|
+
/** SSR, plugin 自动注入,无需设置 */
|
|
100
|
+
ssr?: boolean | Record<string, unknown>;
|
|
101
|
+
}
|
|
102
|
+
export interface IAllThemeConfig extends Omit<IThemeConfig, 'socialLinks'>, IAdditionalThemeConfig {
|
|
103
|
+
socialLinks?: IThemeConfig['socialLinks'];
|
|
104
|
+
}
|
|
105
|
+
export { IAdditionalThemeConfig, ILocaleEnhance, IFeature, IAction };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useSiteData } from 'dumi';
|
|
2
|
-
declare type ILocaleItem = ReturnType<typeof useSiteData>['locales'][0];
|
|
3
|
-
export declare function getTargetLocalePath({ pathname, current, target }: {
|
|
4
|
-
pathname?: string;
|
|
5
|
-
current: ILocaleItem;
|
|
6
|
-
target: ILocaleItem;
|
|
7
|
-
}): string;
|
|
8
|
-
export declare const removeTitleCode: (title?: string) => string;
|
|
9
|
-
export declare const isExternalLinks: (link?: string) => boolean;
|
|
10
|
-
export {};
|
|
1
|
+
import { useSiteData } from 'dumi';
|
|
2
|
+
declare type ILocaleItem = ReturnType<typeof useSiteData>['locales'][0];
|
|
3
|
+
export declare function getTargetLocalePath({ pathname, current, target }: {
|
|
4
|
+
pathname?: string;
|
|
5
|
+
current: ILocaleItem;
|
|
6
|
+
target: ILocaleItem;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare const removeTitleCode: (title?: string) => string;
|
|
9
|
+
export declare const isExternalLinks: (link?: string) => boolean;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahooks.js/dumi-theme-antd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Ant Design 5.0 官网风格类似的 dumi2 主题插件",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dumi",
|
|
@@ -21,13 +21,17 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "cross-env APP_ROOT=example dumi dev",
|
|
24
|
-
"
|
|
24
|
+
"start": "pnpm run dev",
|
|
25
|
+
"build": "father build",
|
|
26
|
+
"build:docs": "cross-env APP_ROOT=example dumi build",
|
|
27
|
+
"doctor": "father doctor",
|
|
25
28
|
"preview": "cross-env APP_ROOT=example dumi preview",
|
|
26
29
|
"lint": "pnpm run lint:es && pnpm run lint:css",
|
|
27
30
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
28
31
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
32
|
+
"clean": "pnpx rimraf --glob node_modules",
|
|
29
33
|
"prepare": "husky install && father link-dev-theme",
|
|
30
|
-
"prepublishOnly": "
|
|
34
|
+
"prepublishOnly": "pnpm run doctor && pnpm run build"
|
|
31
35
|
},
|
|
32
36
|
"commitlint": {
|
|
33
37
|
"extends": [
|
|
@@ -52,13 +56,13 @@
|
|
|
52
56
|
},
|
|
53
57
|
"dependencies": {
|
|
54
58
|
"@ant-design/cssinjs": "1.16.2",
|
|
55
|
-
"@ant-design/icons": "
|
|
59
|
+
"@ant-design/icons": "^6.1.0",
|
|
56
60
|
"@babel/runtime": "7.22.3",
|
|
57
61
|
"@ctrl/tinycolor": "3.6.0",
|
|
58
62
|
"@emotion/css": "11.11.2",
|
|
59
63
|
"@emotion/react": "11.14.0",
|
|
60
64
|
"@emotion/server": "11.11.0",
|
|
61
|
-
"antd-token-previewer": "
|
|
65
|
+
"antd-token-previewer": "^3.0.0",
|
|
62
66
|
"classnames": "2.3.2",
|
|
63
67
|
"crypto": "1.0.1",
|
|
64
68
|
"dayjs": "1.11.7",
|
|
@@ -72,6 +76,8 @@
|
|
|
72
76
|
"@commitlint/config-conventional": "^17.6.5",
|
|
73
77
|
"@emotion/babel-preset-css-prop": "11.10.0",
|
|
74
78
|
"@types/lodash": "^4.14.195",
|
|
79
|
+
"@types/react": "^19.2.4",
|
|
80
|
+
"@types/react-dom": "^19.2.3",
|
|
75
81
|
"@utopia/eslint-config-react": "^0.0.13",
|
|
76
82
|
"@utopia/prettier-config-base": "^0.0.13",
|
|
77
83
|
"antd": "^5.7.0",
|
|
@@ -86,7 +92,8 @@
|
|
|
86
92
|
"lint-staged": "^13.2.2",
|
|
87
93
|
"prettier": "^3.2.5",
|
|
88
94
|
"react": "^18.0.0",
|
|
89
|
-
"react-dom": "^18.0.0"
|
|
95
|
+
"react-dom": "^18.0.0",
|
|
96
|
+
"typescript": "^5.9.3"
|
|
90
97
|
},
|
|
91
98
|
"peerDependencies": {
|
|
92
99
|
"antd": "^5.7.0",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { GithubOutlined } from '@ant-design/icons';
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { Tooltip } from 'antd';
|
|
4
|
-
import useAdditionalThemeConfig from "../../hooks/useAdditionalThemeConfig";
|
|
5
|
-
import useSiteToken from "../../hooks/useSiteToken";
|
|
6
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
-
var BASE_SIZE = '1.2em';
|
|
8
|
-
var useStyle = function useStyle() {
|
|
9
|
-
var _useSiteToken = useSiteToken(),
|
|
10
|
-
token = _useSiteToken.token;
|
|
11
|
-
var controlHeight = token.controlHeight,
|
|
12
|
-
motionDurationMid = token.motionDurationMid;
|
|
13
|
-
return {
|
|
14
|
-
btn: /*#__PURE__*/css("color:", token.colorText, ";border-color:", token.colorBorder, ";padding:0!important;width:", controlHeight, "px;height:", controlHeight, "px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:", token.borderRadius, "px;transition:all ", motionDurationMid, ";cursor:pointer;.btn-inner{transition:all ", motionDurationMid, ";}&:hover{background:", token.colorBgTextHover, ";}img{width:", BASE_SIZE, ";height:", BASE_SIZE, ";}.anticon{font-size:", BASE_SIZE, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:btn;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhlYWRlckV4dHJhbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY1kiLCJmaWxlIjoiSGVhZGVyRXh0cmFsLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdpdGh1Yk91dGxpbmVkIH0gZnJvbSAnQGFudC1kZXNpZ24vaWNvbn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DwvVG9vbHRpcD5cbiAgICAgICkgOiBudWxsfVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgSGVhZGVyRXh0cmE7XG4iXX0= */")
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
var HeaderExtra = function HeaderExtra() {
|
|
18
|
-
var _useAdditionalThemeCo = useAdditionalThemeConfig(),
|
|
19
|
-
github = _useAdditionalThemeCo.github,
|
|
20
|
-
socialLinks = _useAdditionalThemeCo.socialLinks;
|
|
21
|
-
var style = useStyle();
|
|
22
|
-
return ___EmotionJSX("div", null, github || socialLinks !== null && socialLinks !== void 0 && socialLinks.github ? ___EmotionJSX(Tooltip, {
|
|
23
|
-
title: "Github"
|
|
24
|
-
}, ___EmotionJSX("a", {
|
|
25
|
-
key: "github",
|
|
26
|
-
href: github || (socialLinks === null || socialLinks === void 0 ? void 0 : socialLinks.github),
|
|
27
|
-
target: "_blank",
|
|
28
|
-
rel: "noreferrer"
|
|
29
|
-
}, ___EmotionJSX("button", {
|
|
30
|
-
css: [style.btn, process.env.NODE_ENV === "production" ? "" : ";label:HeaderExtra;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhlYWRlckV4dHJhbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeURvQiIsImZpbGUiOiJIZWFkZXJFeHRyYWwudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgR2l0aHViT3V0bGluZWQgfSBmcm9tICdAYW50LWRlc2lnbi9pY29ucyc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBUb29sdGlwIH0gZnJvbSAnYW50ZCc7XG5pbXBvcnQgeyB0eXBlIEZDIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHVzZUFkZGl0aW9uYWxUaGVtZU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ICR7dG9rZW4uY29sb3JCZ1RleHRIb3Zlcn07XG4gICAgICB9XG5cbiAgICAgIGltZyB7XG4gICAgICAgIHdpZHRoOiAke0JBU0VfU0laRX07XG4gICAgICAgIGhlaWdodDogJHtCQVNFX1NJWkV9O1xuICAgICAgfVxuXG4gICAgICAuYW50aWNvbiB7XG4gICAgICAgIGZvbnQtc2l6ZTogJHtCQVNFX1NJWkV9O1xuICAgICAgfVxuICAgIGBcbiAgfTtcbn07XG5cbmNvbnN0IEhlYWRlckV4dHJhOiBGQyA9ICgpID0+IHtcbiAgY29uc3QgeyBnaXRodWIsIHNvY2lhbExpbmtzIH0gPSB1c2VBZGRpdGlvbmFsVGhlbWVDb25maWcoKTtcbiAgY29uc3Qgc3R5bGUgPSB1c2VTdHlsZSgpO1xuICByZXR1cm4gKFxuICAgIDxkaXY+XG4gICAgICB7Z2l0aHViIHx8IHNvY2lhbExpbmtzPy5naXRodWIgPyAoXG4gICAgICAgIDxUb29sdGlwIHRpdGxlPVwiR2l0aHViXCI+XG4gICAgICAgICAgPGEga2V5PVwiZ2l0aHViXCIgaHJlZj17Z2l0aHViIHx8IHNvY2lhbExpbmtzPy5naXRodWJ9IHRhcmdldD1cIl9ibGFua1wiIHJlbD1cIm5vcmVmZXJyZXJcIj5cbiAgICAgICAgICAgIDxidXR0b24gY3NzPXtbc3R5bGUuYnRuXX0gdHlwZT1cImJ1dHRvblwiPlxuICAgICAgICAgICAgICA8R2l0aHViT3V0bGluZWQgLz5cbiAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgIDwvYT5cbiAgICAgICAgPC9Ub29sdGlwPlxuICAgICAgKSA6IG51bGx9XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBIZWFkZXJFeHRyYTtcbiJdfQ== */"],
|
|
31
|
-
type: "button"
|
|
32
|
-
}, ___EmotionJSX(GithubOutlined, null)))) : null);
|
|
33
|
-
};
|
|
34
|
-
export default HeaderExtra;
|