@rspress/core 1.2.1 → 1.3.0
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/dist/index.d.ts +2 -0
- package/dist/index.js +53 -40
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/runtime/App.js +8 -4
- package/dist/runtime/clientEntry.js +7 -4
- package/dist/runtime/ssrEntry.js +2 -2
- package/package.json +19 -15
- package/runtime.ts +1 -1
- package/src/runtime/App.tsx +8 -4
- package/src/runtime/clientEntry.tsx +7 -4
- package/src/runtime/ssrEntry.tsx +2 -2
- package/theme.ts +2 -2
- package/dist/runtime/Content.d.ts +0 -6
- package/dist/runtime/Content.js +0 -33
- package/dist/runtime/NoSSR.d.ts +0 -4
- package/dist/runtime/NoSSR.js +0 -17
- package/dist/runtime/hooks.d.ts +0 -39
- package/dist/runtime/hooks.js +0 -54
- package/dist/runtime/index.d.ts +0 -6
- package/dist/runtime/index.js +0 -34
- package/dist/runtime/utils.d.ts +0 -8
- package/dist/runtime/utils.js +0 -45
- package/dist/theme/bundle.css +0 -2691
- package/dist/theme/bundle.d.ts +0 -176
- package/dist/theme/bundle.js +0 -4433
- package/dist/theme/bundle.js.map +0 -1
- package/dist/theme/index.js +0 -6
- package/src/runtime/Content.tsx +0 -43
- package/src/runtime/NoSSR.tsx +0 -16
- package/src/runtime/hooks.ts +0 -110
- package/src/runtime/index.ts +0 -17
- package/src/runtime/utils.ts +0 -46
- package/src/theme-default/assets/arrow-down.svg +0 -1
- package/src/theme-default/assets/arrow-right.svg +0 -1
- package/src/theme-default/assets/copy.svg +0 -1
- package/src/theme-default/assets/down.svg +0 -1
- package/src/theme-default/assets/github.svg +0 -1
- package/src/theme-default/assets/loading.svg +0 -1
- package/src/theme-default/assets/menu.svg +0 -1
- package/src/theme-default/assets/moon.svg +0 -3
- package/src/theme-default/assets/right.svg +0 -1
- package/src/theme-default/assets/small-menu.svg +0 -1
- package/src/theme-default/assets/success.svg +0 -1
- package/src/theme-default/assets/sun.svg +0 -11
- package/src/theme-default/assets/translator.svg +0 -1
- package/src/theme-default/components/Aside/index.css +0 -22
- package/src/theme-default/components/Aside/index.tsx +0 -75
- package/src/theme-default/components/BackDrop/index.module.scss +0 -14
- package/src/theme-default/components/BackDrop/index.tsx +0 -13
- package/src/theme-default/components/Button/index.module.scss +0 -68
- package/src/theme-default/components/Button/index.tsx +0 -40
- package/src/theme-default/components/DocFooter/index.module.scss +0 -60
- package/src/theme-default/components/DocFooter/index.tsx +0 -66
- package/src/theme-default/components/EditLink/index.module.scss +0 -11
- package/src/theme-default/components/EditLink/index.tsx +0 -18
- package/src/theme-default/components/HomeFeatures/index.module.scss +0 -50
- package/src/theme-default/components/HomeFeatures/index.tsx +0 -65
- package/src/theme-default/components/HomeFooter/index.tsx +0 -15
- package/src/theme-default/components/HomeHero/index.module.scss +0 -42
- package/src/theme-default/components/HomeHero/index.tsx +0 -75
- package/src/theme-default/components/Link/index.module.scss +0 -9
- package/src/theme-default/components/Link/index.tsx +0 -90
- package/src/theme-default/components/LocalSideBar/index.scss +0 -40
- package/src/theme-default/components/LocalSideBar/index.tsx +0 -39
- package/src/theme-default/components/Nav/NavBarTitle.tsx +0 -43
- package/src/theme-default/components/Nav/NavMenuGroup.tsx +0 -156
- package/src/theme-default/components/Nav/NavMenuSingleItem.tsx +0 -40
- package/src/theme-default/components/Nav/NavTranslations.tsx +0 -16
- package/src/theme-default/components/Nav/NavVersions.tsx +0 -16
- package/src/theme-default/components/Nav/index.module.scss +0 -115
- package/src/theme-default/components/Nav/index.tsx +0 -150
- package/src/theme-default/components/Nav/menuDataHooks.tsx +0 -75
- package/src/theme-default/components/NavHambmger/index.module.scss +0 -81
- package/src/theme-default/components/NavHambmger/index.tsx +0 -39
- package/src/theme-default/components/NavScreen/NavScreenMenuGroup.tsx +0 -95
- package/src/theme-default/components/NavScreen/index.module.scss +0 -88
- package/src/theme-default/components/NavScreen/index.tsx +0 -123
- package/src/theme-default/components/Overview/index.module.scss +0 -154
- package/src/theme-default/components/Overview/index.tsx +0 -136
- package/src/theme-default/components/PackageManagerTabs/icons/Bun.tsx +0 -101
- package/src/theme-default/components/PackageManagerTabs/icons/Npm.tsx +0 -16
- package/src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx +0 -22
- package/src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx +0 -18
- package/src/theme-default/components/PackageManagerTabs/index.scss +0 -5
- package/src/theme-default/components/PackageManagerTabs/index.tsx +0 -110
- package/src/theme-default/components/Search/NoSearchResult.tsx +0 -13
- package/src/theme-default/components/Search/SearchPanel.tsx +0 -340
- package/src/theme-default/components/Search/SuggestItem.tsx +0 -135
- package/src/theme-default/components/Search/assets/close.svg +0 -1
- package/src/theme-default/components/Search/assets/file.svg +0 -1
- package/src/theme-default/components/Search/assets/header.svg +0 -1
- package/src/theme-default/components/Search/assets/jump.svg +0 -1
- package/src/theme-default/components/Search/assets/loading.svg +0 -1
- package/src/theme-default/components/Search/assets/search.svg +0 -1
- package/src/theme-default/components/Search/assets/title.svg +0 -1
- package/src/theme-default/components/Search/empty.svg +0 -4
- package/src/theme-default/components/Search/index.module.scss +0 -236
- package/src/theme-default/components/Search/index.tsx +0 -39
- package/src/theme-default/components/Search/logic/Provider.ts +0 -35
- package/src/theme-default/components/Search/logic/providers/LocalProvider.ts +0 -102
- package/src/theme-default/components/Search/logic/providers/RemoteProvider.ts +0 -40
- package/src/theme-default/components/Search/logic/search.ts +0 -341
- package/src/theme-default/components/Search/logic/util.test.ts +0 -21
- package/src/theme-default/components/Search/logic/util.ts +0 -127
- package/src/theme-default/components/Sidebar/SidebarGroup.tsx +0 -180
- package/src/theme-default/components/Sidebar/SidebarItem.tsx +0 -61
- package/src/theme-default/components/Sidebar/index.module.scss +0 -142
- package/src/theme-default/components/Sidebar/index.tsx +0 -156
- package/src/theme-default/components/SocialLinks/HiddenLinks.tsx +0 -30
- package/src/theme-default/components/SocialLinks/LinkContent.tsx +0 -90
- package/src/theme-default/components/SocialLinks/ShownLinks.tsx +0 -32
- package/src/theme-default/components/SocialLinks/index.module.scss +0 -18
- package/src/theme-default/components/SocialLinks/index.tsx +0 -36
- package/src/theme-default/components/SocialLinks/presetIcons.tsx +0 -165
- package/src/theme-default/components/SwitchAppearance/index.module.scss +0 -15
- package/src/theme-default/components/SwitchAppearance/index.tsx +0 -35
- package/src/theme-default/components/Tabs/index.module.scss +0 -46
- package/src/theme-default/components/Tabs/index.tsx +0 -123
- package/src/theme-default/components/Tag/index.tsx +0 -18
- package/src/theme-default/components/Toc/index.css +0 -18
- package/src/theme-default/components/Toc/index.tsx +0 -42
- package/src/theme-default/index.ts +0 -26
- package/src/theme-default/layout/DocLayout/docComponents/code.tsx +0 -112
- package/src/theme-default/layout/DocLayout/docComponents/hr.tsx +0 -10
- package/src/theme-default/layout/DocLayout/docComponents/index.module.scss +0 -69
- package/src/theme-default/layout/DocLayout/docComponents/index.tsx +0 -33
- package/src/theme-default/layout/DocLayout/docComponents/link.tsx +0 -22
- package/src/theme-default/layout/DocLayout/docComponents/list.tsx +0 -13
- package/src/theme-default/layout/DocLayout/docComponents/paragraph.tsx +0 -19
- package/src/theme-default/layout/DocLayout/docComponents/pre.tsx +0 -37
- package/src/theme-default/layout/DocLayout/docComponents/prisim-theme.ts +0 -73
- package/src/theme-default/layout/DocLayout/docComponents/table.tsx +0 -37
- package/src/theme-default/layout/DocLayout/docComponents/title.tsx +0 -40
- package/src/theme-default/layout/DocLayout/index.module.scss +0 -138
- package/src/theme-default/layout/DocLayout/index.tsx +0 -125
- package/src/theme-default/layout/HomeLayout/index.css +0 -18
- package/src/theme-default/layout/HomeLayout/index.tsx +0 -39
- package/src/theme-default/layout/Layout/index.tsx +0 -176
- package/src/theme-default/layout/NotFountLayout/index.tsx +0 -40
- package/src/theme-default/logic/TabDataContext.ts +0 -14
- package/src/theme-default/logic/index.ts +0 -8
- package/src/theme-default/logic/sideEffects.ts +0 -174
- package/src/theme-default/logic/useAppearance.ts +0 -57
- package/src/theme-default/logic/useEditLink.ts +0 -33
- package/src/theme-default/logic/useHiddenNav.ts +0 -58
- package/src/theme-default/logic/useLocaleSiteData.ts +0 -26
- package/src/theme-default/logic/useNav.ts +0 -36
- package/src/theme-default/logic/usePathUtils.ts +0 -73
- package/src/theme-default/logic/usePrevNextPage.ts +0 -40
- package/src/theme-default/logic/useSidebarData.ts +0 -73
- package/src/theme-default/logic/utils.ts +0 -38
- package/src/theme-default/styles/base.css +0 -102
- package/src/theme-default/styles/code.css +0 -177
- package/src/theme-default/styles/index.ts +0 -7
- package/src/theme-default/styles/scrollbar.css +0 -28
- package/src/theme-default/styles/vars.css +0 -81
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
.navScreen {
|
|
2
|
-
display: none;
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: var(--rp-nav-height);
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
padding: 0 32px;
|
|
9
|
-
width: 100%;
|
|
10
|
-
background-color: var(--rp-c-bg);
|
|
11
|
-
overflow-y: auto;
|
|
12
|
-
pointer-events: auto;
|
|
13
|
-
z-index: 20;
|
|
14
|
-
}
|
|
15
|
-
.active {
|
|
16
|
-
display: block;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.container {
|
|
20
|
-
margin: 0 auto;
|
|
21
|
-
padding: 24px 0 96px;
|
|
22
|
-
max-width: 248px;
|
|
23
|
-
}
|
|
24
|
-
.navMenu {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
align-items: center;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
}
|
|
30
|
-
.navMenuItem {
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
padding: 12px 0 11px;
|
|
34
|
-
line-height: 24px;
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
color: var(--rp-c-text-1);
|
|
38
|
-
border-bottom: 1px solid var(--rp-c-divider-light);
|
|
39
|
-
transition: border-color 0.5s, color 0.25s;
|
|
40
|
-
}
|
|
41
|
-
.navAppearance {
|
|
42
|
-
padding-right: 0;
|
|
43
|
-
}
|
|
44
|
-
.socialAndAppearance {
|
|
45
|
-
padding: 8px 0 7px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.navScreenMenuGroup {
|
|
49
|
-
height: 39px;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
transition: border-color 0.5s;
|
|
52
|
-
}
|
|
53
|
-
.navScreenMenuGroup.open {
|
|
54
|
-
padding-bottom: 10px;
|
|
55
|
-
height: auto;
|
|
56
|
-
}
|
|
57
|
-
.button {
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
align-items: center;
|
|
61
|
-
padding: 8px 0 7px 0;
|
|
62
|
-
width: 100%;
|
|
63
|
-
line-height: 24px;
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
font-weight: 500;
|
|
66
|
-
color: var(--rp-c-text-1);
|
|
67
|
-
transition: color 0.25s;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.buttonSpan {
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
height: 24px;
|
|
74
|
-
padding-right: 4px;
|
|
75
|
-
}
|
|
76
|
-
.navScreenMenuGroup .items {
|
|
77
|
-
visibility: hidden;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.navScreenMenuGroup.open .items {
|
|
81
|
-
visibility: visible;
|
|
82
|
-
}
|
|
83
|
-
.down {
|
|
84
|
-
transition: all 0.5s;
|
|
85
|
-
}
|
|
86
|
-
.open.down {
|
|
87
|
-
transform: rotate(180deg);
|
|
88
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
-
import { disableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock';
|
|
3
|
-
import { LocaleConfig, NavItem, DefaultThemeConfig } from '@rspress/shared';
|
|
4
|
-
import type { SiteData } from '@rspress/shared';
|
|
5
|
-
import { NavMenuSingleItem } from '../Nav/NavMenuSingleItem';
|
|
6
|
-
import { SwitchAppearance } from '../SwitchAppearance';
|
|
7
|
-
import { SocialLinks } from '../SocialLinks';
|
|
8
|
-
import {
|
|
9
|
-
useTranslationMenuData,
|
|
10
|
-
useVersionMenuData,
|
|
11
|
-
} from '../Nav/menuDataHooks';
|
|
12
|
-
import { NavScreenMenuGroup } from './NavScreenMenuGroup';
|
|
13
|
-
import styles from './index.module.scss';
|
|
14
|
-
import { NoSSR } from '@/runtime';
|
|
15
|
-
|
|
16
|
-
interface Props {
|
|
17
|
-
isScreenOpen: boolean;
|
|
18
|
-
localeData: LocaleConfig;
|
|
19
|
-
siteData: SiteData<DefaultThemeConfig>;
|
|
20
|
-
pathname: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const NavScreenTranslations = () => {
|
|
24
|
-
const translationMenuData = useTranslationMenuData();
|
|
25
|
-
return (
|
|
26
|
-
<div
|
|
27
|
-
className={`${styles.navTranslations} flex text-sm font-bold justify-center`}
|
|
28
|
-
>
|
|
29
|
-
<div className="mx-1.5 my-1">
|
|
30
|
-
<NavScreenMenuGroup {...translationMenuData} />
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const NavScreenVersions = () => {
|
|
37
|
-
const versionMenuData = useVersionMenuData();
|
|
38
|
-
return (
|
|
39
|
-
<div
|
|
40
|
-
className={`${styles.navTranslations} flex text-sm font-bold justify-center`}
|
|
41
|
-
>
|
|
42
|
-
<div className="mx-1.5 my-1">
|
|
43
|
-
<NavScreenMenuGroup {...versionMenuData} />
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export function NavScreen(props: Props) {
|
|
50
|
-
const { isScreenOpen, localeData, siteData, pathname } = props;
|
|
51
|
-
const screen = useRef<HTMLDivElement | null>(null);
|
|
52
|
-
const localesData = siteData.themeConfig.locales || [];
|
|
53
|
-
const hasMultiLanguage = localesData.length > 1;
|
|
54
|
-
const hasMultiVersion = siteData.multiVersion.versions.length > 1;
|
|
55
|
-
const menuItems = localeData.nav || [];
|
|
56
|
-
const hasAppearanceSwitch = siteData.themeConfig.darkMode !== false;
|
|
57
|
-
const socialLinks = siteData?.themeConfig?.socialLinks || [];
|
|
58
|
-
const hasSocialLinks = socialLinks.length > 0;
|
|
59
|
-
const langs = localesData.map(item => item.lang || 'zh') || [];
|
|
60
|
-
const { base } = siteData;
|
|
61
|
-
const NavScreenAppearance = () => {
|
|
62
|
-
return (
|
|
63
|
-
<div className={`mt-2 ${styles.navAppearance} flex justify-center`}>
|
|
64
|
-
<NoSSR>
|
|
65
|
-
<SwitchAppearance />
|
|
66
|
-
</NoSSR>
|
|
67
|
-
</div>
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
const NavScreenMenu = ({ menuItems }: { menuItems: NavItem[] }) => {
|
|
71
|
-
return (
|
|
72
|
-
<div className={styles.navMenu}>
|
|
73
|
-
{menuItems.map(item => {
|
|
74
|
-
return (
|
|
75
|
-
<div key={item.text} className={`${styles.navMenuItem} w-full`}>
|
|
76
|
-
{'link' in item ? (
|
|
77
|
-
<NavMenuSingleItem
|
|
78
|
-
pathname={pathname}
|
|
79
|
-
key={item.text}
|
|
80
|
-
base={base}
|
|
81
|
-
langs={langs}
|
|
82
|
-
{...item}
|
|
83
|
-
/>
|
|
84
|
-
) : (
|
|
85
|
-
<div key={item.text} className="mx-3 last:mr-0">
|
|
86
|
-
<NavScreenMenuGroup
|
|
87
|
-
{...item}
|
|
88
|
-
items={'items' in item ? item.items : item}
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
)}
|
|
92
|
-
</div>
|
|
93
|
-
);
|
|
94
|
-
})}
|
|
95
|
-
</div>
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
useEffect(() => {
|
|
99
|
-
screen.current &&
|
|
100
|
-
isScreenOpen &&
|
|
101
|
-
disableBodyScroll(screen.current, { reserveScrollBarGap: true });
|
|
102
|
-
return () => {
|
|
103
|
-
clearAllBodyScrollLocks();
|
|
104
|
-
};
|
|
105
|
-
}, [isScreenOpen]);
|
|
106
|
-
return (
|
|
107
|
-
<div
|
|
108
|
-
className={`${styles.navScreen} ${isScreenOpen ? styles.active : ''}`}
|
|
109
|
-
ref={screen}
|
|
110
|
-
id="navScreen"
|
|
111
|
-
>
|
|
112
|
-
<div className={styles.container}>
|
|
113
|
-
<NavScreenMenu menuItems={menuItems} />
|
|
114
|
-
<div className="flex-center flex-col gap-2">
|
|
115
|
-
{hasAppearanceSwitch && <NavScreenAppearance />}
|
|
116
|
-
{hasMultiLanguage && <NavScreenTranslations />}
|
|
117
|
-
{hasMultiVersion && <NavScreenVersions />}
|
|
118
|
-
{hasSocialLinks && <SocialLinks socialLinks={socialLinks} />}
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
);
|
|
123
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
:global(.overview-index) {
|
|
2
|
-
h1,
|
|
3
|
-
h2,
|
|
4
|
-
h3 {
|
|
5
|
-
font-weight: 600;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
h2,
|
|
9
|
-
h3 {
|
|
10
|
-
line-height: 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
h2 {
|
|
14
|
-
letter-spacing: -0.02em;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
h2 {
|
|
18
|
-
font-size: 24px;
|
|
19
|
-
color: var(--rp-c-text-1);
|
|
20
|
-
margin: 36px 0;
|
|
21
|
-
transition: color 0.5s;
|
|
22
|
-
padding-top: 36px;
|
|
23
|
-
border-top: 1px solid var(--rp-c-divider-light);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
h3,
|
|
27
|
-
h3 > a {
|
|
28
|
-
letter-spacing: -0.01em;
|
|
29
|
-
color: var(--rp-c-brand);
|
|
30
|
-
font-size: 18px;
|
|
31
|
-
margin-bottom: 1em;
|
|
32
|
-
transition: color 0.5s;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
h3 > a {
|
|
37
|
-
margin: 0;
|
|
38
|
-
line-height: 1.3;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
h3 > a:hover {
|
|
42
|
-
transition: color 0.5s;
|
|
43
|
-
color: var(--rp-c-brand-dark);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
h3:before {
|
|
47
|
-
display: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
h1:hover .header-anchor,
|
|
51
|
-
h1:focus .header-anchor,
|
|
52
|
-
h2:hover .header-anchor,
|
|
53
|
-
h2:focus .header-anchor,
|
|
54
|
-
h3:hover .header-anchor,
|
|
55
|
-
h3:focus .header-anchor,
|
|
56
|
-
h4:hover .header-anchor,
|
|
57
|
-
h4:focus .header-anchor,
|
|
58
|
-
h5:hover .header-anchor,
|
|
59
|
-
h5:focus .header-anchor,
|
|
60
|
-
h6:hover .header-anchor,
|
|
61
|
-
h6:focus .header-anchor {
|
|
62
|
-
opacity: 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
a.header-anchor {
|
|
66
|
-
float: left;
|
|
67
|
-
margin-top: 0.125em;
|
|
68
|
-
margin-left: -0.87em;
|
|
69
|
-
padding-right: 0.23em;
|
|
70
|
-
font-size: 0.85em;
|
|
71
|
-
opacity: 0;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
color: var(--rp-c-brand);
|
|
74
|
-
transition: color 0.25s;
|
|
75
|
-
text-decoration-style: dotted;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
a.header-anchor:hover,
|
|
79
|
-
a.header-anchor:focus {
|
|
80
|
-
text-decoration: none;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.overview-groups a {
|
|
85
|
-
font-size: 15px;
|
|
86
|
-
font-weight: 500;
|
|
87
|
-
line-height: 1.6;
|
|
88
|
-
margin-top: 8px;
|
|
89
|
-
color: var(--rp-c-text-code);
|
|
90
|
-
transition: color 0.5s;
|
|
91
|
-
word-break: break-all;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.overview-group-li {
|
|
95
|
-
position: relative;
|
|
96
|
-
|
|
97
|
-
&.level-2 {
|
|
98
|
-
padding-left: 1px;
|
|
99
|
-
|
|
100
|
-
&:before {
|
|
101
|
-
left: -0.25rem;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:global(.dark) overview-groups a {
|
|
107
|
-
font-weight: 400;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.overview-group {
|
|
111
|
-
break-inside: avoid;
|
|
112
|
-
margin-bottom: 28px;
|
|
113
|
-
background-color: var(--rp-c-bg-soft);
|
|
114
|
-
border-radius: 12px;
|
|
115
|
-
padding: 28px 32px;
|
|
116
|
-
transition: background-color 0.5s;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@media (max-width: 768px) {
|
|
120
|
-
:global(.overview-index) {
|
|
121
|
-
padding: 42px 24px;
|
|
122
|
-
|
|
123
|
-
h1 {
|
|
124
|
-
font-size: 32px;
|
|
125
|
-
margin-bottom: 24px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
h2 {
|
|
129
|
-
font-size: 22px;
|
|
130
|
-
margin: 42px 0 32px;
|
|
131
|
-
padding-top: 32px;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.overview-groups a {
|
|
136
|
-
font-size: 14px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.header {
|
|
140
|
-
display: block;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@media (min-width: 768px) {
|
|
145
|
-
.overview-groups {
|
|
146
|
-
columns: 2;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@media (min-width: 1024px) {
|
|
151
|
-
.overview-groups {
|
|
152
|
-
columns: 3;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { Header, NormalizedSidebarGroup, SidebarItem } from '@rspress/shared';
|
|
3
|
-
import { useSidebarData } from '../../logic';
|
|
4
|
-
import { Link } from '../Link';
|
|
5
|
-
import styles from './index.module.scss';
|
|
6
|
-
import {
|
|
7
|
-
usePageData,
|
|
8
|
-
normalizeHrefInRuntime as normalizeHref,
|
|
9
|
-
withBase,
|
|
10
|
-
isEqualPath,
|
|
11
|
-
} from '@/runtime';
|
|
12
|
-
|
|
13
|
-
interface GroupItem {
|
|
14
|
-
text?: string;
|
|
15
|
-
link?: string;
|
|
16
|
-
headers?: Header[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface Group {
|
|
20
|
-
name: string;
|
|
21
|
-
items: GroupItem[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// The sidebar data include two types: sidebar item and sidebar group.
|
|
25
|
-
// In overpage page, we select all the related sidebar groups and show the groups in the page.
|
|
26
|
-
// In the meantime, some sidebar items also should be shown in the page, we collect them in the group named 'Others' and show them in the page.
|
|
27
|
-
const DEFAULT_GROUP = 'Others';
|
|
28
|
-
|
|
29
|
-
export function Overview(props: { content: React.ReactNode }) {
|
|
30
|
-
const {
|
|
31
|
-
siteData,
|
|
32
|
-
page: { routePath, title },
|
|
33
|
-
} = usePageData();
|
|
34
|
-
const { pages } = siteData;
|
|
35
|
-
const overviewModules = pages.filter(
|
|
36
|
-
page =>
|
|
37
|
-
page.routePath.startsWith(routePath.replace(/overview$/, '')) &&
|
|
38
|
-
page.routePath !== routePath,
|
|
39
|
-
);
|
|
40
|
-
const { items: overviewSidebarGroups } = useSidebarData() as {
|
|
41
|
-
items: (NormalizedSidebarGroup | SidebarItem)[];
|
|
42
|
-
};
|
|
43
|
-
function normalizeSidebarItem(item: NormalizedSidebarGroup | SidebarItem) {
|
|
44
|
-
const pageModule = overviewModules.find(m =>
|
|
45
|
-
isEqualPath(m.routePath, withBase(item.link || '')),
|
|
46
|
-
);
|
|
47
|
-
const getChildLink = (
|
|
48
|
-
traverseItem: SidebarItem | NormalizedSidebarGroup,
|
|
49
|
-
): string => {
|
|
50
|
-
if (traverseItem.link) {
|
|
51
|
-
return traverseItem.link;
|
|
52
|
-
}
|
|
53
|
-
if ('items' in traverseItem) {
|
|
54
|
-
return getChildLink(traverseItem.items[0]);
|
|
55
|
-
}
|
|
56
|
-
return '';
|
|
57
|
-
};
|
|
58
|
-
const link = getChildLink(item);
|
|
59
|
-
return {
|
|
60
|
-
...item,
|
|
61
|
-
link,
|
|
62
|
-
headers: pageModule?.toc?.filter(header => header.depth === 2) || [],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
const groups = useMemo(() => {
|
|
66
|
-
const group = overviewSidebarGroups
|
|
67
|
-
.filter(item => 'items' in item)
|
|
68
|
-
.map(sidebarGroup => ({
|
|
69
|
-
name: sidebarGroup.text || '',
|
|
70
|
-
items: (sidebarGroup as NormalizedSidebarGroup).items
|
|
71
|
-
.map(normalizeSidebarItem)
|
|
72
|
-
.filter(Boolean),
|
|
73
|
-
})) as Group[];
|
|
74
|
-
const singleLinks = overviewSidebarGroups.filter(
|
|
75
|
-
item => !('items' in item) && !isEqualPath(item.link || '', routePath),
|
|
76
|
-
);
|
|
77
|
-
return [
|
|
78
|
-
...group,
|
|
79
|
-
...(singleLinks.length > 0
|
|
80
|
-
? [
|
|
81
|
-
{
|
|
82
|
-
name: DEFAULT_GROUP,
|
|
83
|
-
items: singleLinks.map(normalizeSidebarItem),
|
|
84
|
-
},
|
|
85
|
-
]
|
|
86
|
-
: []),
|
|
87
|
-
];
|
|
88
|
-
}, [overviewSidebarGroups]);
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<div className="overview-index mx-auto px-8">
|
|
92
|
-
<div className="flex items-center justify-between">
|
|
93
|
-
{!title && (
|
|
94
|
-
<h1 className="text-3xl leading-10 tracking-tight">Overview</h1>
|
|
95
|
-
)}
|
|
96
|
-
</div>
|
|
97
|
-
{props.content}
|
|
98
|
-
{groups.map(group => (
|
|
99
|
-
<div className="mb-16" key={group.name}>
|
|
100
|
-
{/* If there is no sidebar group, we show the sidebar items directly and hide the group name */}
|
|
101
|
-
{group.name === DEFAULT_GROUP && groups.length === 1 ? (
|
|
102
|
-
<h2 style={{ paddingTop: 0 }}></h2>
|
|
103
|
-
) : (
|
|
104
|
-
<h2>{group.name}</h2>
|
|
105
|
-
)}
|
|
106
|
-
|
|
107
|
-
<div className={styles.overviewGroups}>
|
|
108
|
-
{group.items.map(item => (
|
|
109
|
-
<div className={styles.overviewGroup} key={item.link}>
|
|
110
|
-
<div className="flex">
|
|
111
|
-
<h3 style={{ marginBottom: 8 }}>
|
|
112
|
-
<Link href={normalizeHref(item.link)}>{item.text}</Link>
|
|
113
|
-
</h3>
|
|
114
|
-
</div>
|
|
115
|
-
<ul className="list-none">
|
|
116
|
-
{item.headers?.map(header => (
|
|
117
|
-
<li
|
|
118
|
-
key={header.id}
|
|
119
|
-
className={`${styles.overviewGroupLi} ${
|
|
120
|
-
styles[`level${header.depth}`]
|
|
121
|
-
} first:mt-2`}
|
|
122
|
-
>
|
|
123
|
-
<Link href={`${normalizeHref(item.link)}#${header.id}`}>
|
|
124
|
-
{header.text}
|
|
125
|
-
</Link>
|
|
126
|
-
</li>
|
|
127
|
-
))}
|
|
128
|
-
</ul>
|
|
129
|
-
</div>
|
|
130
|
-
))}
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
))}
|
|
134
|
-
</div>
|
|
135
|
-
);
|
|
136
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
|
|
3
|
-
export function Bun(props: ComponentProps<'svg'>) {
|
|
4
|
-
return (
|
|
5
|
-
<svg id="Bun" width="1.2em" height="1.2em" viewBox="0 0 80 70" {...props}>
|
|
6
|
-
<path
|
|
7
|
-
id="Shadow"
|
|
8
|
-
d="M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"
|
|
9
|
-
/>
|
|
10
|
-
<g id="Body">
|
|
11
|
-
<path
|
|
12
|
-
id="Background"
|
|
13
|
-
d="M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z"
|
|
14
|
-
style={{ fill: '#fbf0df' }}
|
|
15
|
-
/>
|
|
16
|
-
<path
|
|
17
|
-
id="Bottom_Shadow"
|
|
18
|
-
data-name="Bottom Shadow"
|
|
19
|
-
d="M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z"
|
|
20
|
-
style={{ fill: '#f6dece' }}
|
|
21
|
-
/>
|
|
22
|
-
<path
|
|
23
|
-
id="Light_Shine"
|
|
24
|
-
data-name="Light Shine"
|
|
25
|
-
d="M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z"
|
|
26
|
-
style={{ fill: '#fffefc' }}
|
|
27
|
-
/>
|
|
28
|
-
<path
|
|
29
|
-
id="Top"
|
|
30
|
-
d="M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z"
|
|
31
|
-
style={{ fill: '#ccbea7', fillRule: 'evenodd' }}
|
|
32
|
-
/>
|
|
33
|
-
<path
|
|
34
|
-
id="Outline"
|
|
35
|
-
d="M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"
|
|
36
|
-
/>
|
|
37
|
-
</g>
|
|
38
|
-
<g id="Mouth">
|
|
39
|
-
<g id="Background-2" data-name="Background">
|
|
40
|
-
<path
|
|
41
|
-
d="M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z"
|
|
42
|
-
style={{ fill: '#b71422' }}
|
|
43
|
-
/>
|
|
44
|
-
</g>
|
|
45
|
-
<g id="Tongue">
|
|
46
|
-
<path
|
|
47
|
-
id="Background-3"
|
|
48
|
-
data-name="Background"
|
|
49
|
-
d="M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z"
|
|
50
|
-
style={{ fill: '#ff6164' }}
|
|
51
|
-
/>
|
|
52
|
-
<path
|
|
53
|
-
id="Outline-2"
|
|
54
|
-
data-name="Outline"
|
|
55
|
-
d="M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"
|
|
56
|
-
/>
|
|
57
|
-
</g>
|
|
58
|
-
<path
|
|
59
|
-
id="Outline-3"
|
|
60
|
-
data-name="Outline"
|
|
61
|
-
d="M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"
|
|
62
|
-
/>
|
|
63
|
-
</g>
|
|
64
|
-
<g id="Face">
|
|
65
|
-
<ellipse
|
|
66
|
-
id="Right_Blush"
|
|
67
|
-
data-name="Right Blush"
|
|
68
|
-
cx="53.22"
|
|
69
|
-
cy="40.18"
|
|
70
|
-
rx="5.85"
|
|
71
|
-
ry="3.44"
|
|
72
|
-
style={{
|
|
73
|
-
fill: '#febbd0',
|
|
74
|
-
}}
|
|
75
|
-
/>
|
|
76
|
-
<ellipse
|
|
77
|
-
id="Left_Bluch"
|
|
78
|
-
data-name="Left Bluch"
|
|
79
|
-
cx="22.95"
|
|
80
|
-
cy="40.18"
|
|
81
|
-
rx="5.85"
|
|
82
|
-
ry="3.44"
|
|
83
|
-
style={{ fill: '#febbd0' }}
|
|
84
|
-
/>
|
|
85
|
-
<path
|
|
86
|
-
id="Eyes"
|
|
87
|
-
d="M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z"
|
|
88
|
-
style={{ fillRule: 'evenodd' }}
|
|
89
|
-
/>
|
|
90
|
-
<path
|
|
91
|
-
id="Iris"
|
|
92
|
-
d="M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z"
|
|
93
|
-
style={{
|
|
94
|
-
fill: '#fff',
|
|
95
|
-
fillRule: 'evenodd',
|
|
96
|
-
}}
|
|
97
|
-
/>
|
|
98
|
-
</g>
|
|
99
|
-
</svg>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
|
|
3
|
-
export function Npm(props: ComponentProps<'svg'>) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
width="1em"
|
|
8
|
-
height="1em"
|
|
9
|
-
viewBox="0 0 256 256"
|
|
10
|
-
{...props}
|
|
11
|
-
>
|
|
12
|
-
<path fill="#C12127" d="M0 256V0h256v256z"></path>
|
|
13
|
-
<path fill="#FFF" d="M48 48h160v160h-32V80h-48v128H48z"></path>
|
|
14
|
-
</svg>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
|
|
3
|
-
export function Pnpm(props: ComponentProps<'svg'>) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
width="1em"
|
|
8
|
-
height="1em"
|
|
9
|
-
viewBox="0 0 128 128"
|
|
10
|
-
{...props}
|
|
11
|
-
>
|
|
12
|
-
<path
|
|
13
|
-
fill="#f8ab00"
|
|
14
|
-
d="M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"
|
|
15
|
-
></path>
|
|
16
|
-
<path
|
|
17
|
-
fill="#4c4c4c"
|
|
18
|
-
d="M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"
|
|
19
|
-
></path>
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
|
|
3
|
-
export function Yarn(props: ComponentProps<'svg'>) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
width="1em"
|
|
8
|
-
height="1em"
|
|
9
|
-
viewBox="0 0 128 128"
|
|
10
|
-
{...props}
|
|
11
|
-
>
|
|
12
|
-
<g fill="#2c8ebb">
|
|
13
|
-
<path d="M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"></path>
|
|
14
|
-
<path d="M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"></path>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|
|
17
|
-
);
|
|
18
|
-
}
|