From af8a43c93adaf899e6174e286ff3da28a3caf4b7 Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti <24919330+marcalexiei@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:59:36 +0100 Subject: [PATCH] docs: use PascalCase for file name (#350) --- .../Breadcrumbs.tsx} | 63 ++++++++++--------- .../src/components/Breadcrumbs/index.ts | 3 + .../edit-page.tsx => EditPage/EditPage.tsx} | 0 .../src/components/EditPage/index.ts | 3 + .../{hero/hero.tsx => Hero/Hero.tsx} | 0 .../src/components/Hero/index.ts | 3 + .../MdxBold/MdxBold.tsx} | 0 .../components/MdxProvider/MdxBold/index.ts | 3 + .../MdxCode/MdxCode.tsx} | 0 .../components/MdxProvider/MdxCode/index.ts | 3 + .../MdxLink/MdxLink.tsx} | 0 .../components/MdxProvider/MdxLink/index.ts | 3 + .../MdxPre/MdxPre.module.css} | 0 .../MdxPre/MdxPre.tsx} | 2 +- .../components/MdxProvider/MdxPre/index.ts | 3 + .../MdxProvider.tsx} | 12 ++-- .../MdxQuote/MdxQuote.tsx} | 0 .../components/MdxProvider/MdxQuote/index.ts | 3 + .../MdxTitle/MdxTitle.tsx} | 0 .../components/MdxProvider/MdxTitle/index.ts | 5 ++ .../src/components/MdxProvider/index.ts | 3 + .../meta-tags.tsx => MetaTags/MetaTags.tsx} | 0 .../src/components/MetaTags/index.ts | 3 + .../{navbar/navbar.tsx => Navbar/Navbar.tsx} | 4 +- .../actions.tsx => Navbar/NavbarActions.tsx} | 4 +- .../src/components/Navbar/index.ts | 3 + .../NavigationButtons.tsx} | 0 .../src/components/NavigationButtons/index.ts | 3 + .../sidebar.tsx => Sidebar/Sidebar.tsx} | 4 +- .../SidebarLink.module.css} | 0 .../SidebarLink.tsx} | 2 +- .../src/components/Sidebar/index.ts | 3 + .../config.ts => Sidebar/sidebarElements.ts} | 0 .../TableOfContents.module.css} | 0 .../TableOfContents.tsx} | 12 ++-- .../getHeadings.ts} | 0 .../index.ts | 2 +- .../ThemeBtn.module.css} | 0 .../theme-btn.tsx => ThemeBtn/ThemeBtn.tsx} | 2 +- .../src/components/ThemeBtn/index.ts | 3 + .../src/components/breadcrumbs/index.ts | 5 -- .../src/components/edit-page/index.ts | 3 - .../src/components/hero/index.ts | 3 - .../src/components/mdx-provider/index.ts | 3 - .../components/mdx-provider/mdx-code/index.ts | 3 - .../components/mdx-provider/mdx-link/index.ts | 3 - .../components/mdx-provider/mdx-pre/index.ts | 3 - .../mdx-provider/mdx-quote/index.ts | 3 - .../mdx-provider/mdx-title/index.ts | 5 -- .../src/components/meta-tags/index.ts | 3 - .../src/components/navbar/index.ts | 3 - .../components/navigation-buttons/index.ts | 3 - .../src/components/sidebar/index.ts | 3 - .../src/components/theme-btn/index.ts | 3 - apps/documentation/src/routes/__root.tsx | 8 +-- .../documentation/application-state.mdx | 4 +- .../src/routes/documentation/cli.mdx | 4 +- .../routes/documentation/components/head.mdx | 4 +- .../routes/documentation/components/link.mdx | 4 +- .../routes/documentation/configuration.mdx | 4 +- .../src/routes/documentation/contributing.mdx | 4 +- .../documentation/contributing/index.mdx | 6 +- .../contributing/local-development.mdx | 6 +- .../contributing/pull-requests.mdx | 6 +- .../core-concepts/multithreading.mdx | 4 +- .../routes/documentation/hooks/use-router.mdx | 4 +- .../documentation/how-is-tuono-different.mdx | 4 +- .../src/routes/documentation/installation.mdx | 6 +- .../routes/documentation/integrations/mdx.mdx | 4 +- .../rendering/server-side-rendering.mdx | 4 +- .../rendering/static-site-rendering.mdx | 4 +- .../documentation/routing/defining-routes.mdx | 4 +- .../documentation/routing/dynamic-routes.mdx | 4 +- .../routes/documentation/routing/index.mdx | 4 +- .../routes/documentation/routing/layouts.mdx | 4 +- .../routing/link-and-navigation.mdx | 4 +- .../documentation/routing/loading-state.mdx | 4 +- .../routes/documentation/routing/pages.mdx | 4 +- .../documentation/routing/redirecting.mdx | 4 +- .../documentation/styles/css-modules.mdx | 4 +- .../documentation/tutorial/api-fetching.mdx | 6 +- .../documentation/tutorial/components.mdx | 6 +- .../documentation/tutorial/conclusion.mdx | 6 +- .../tutorial/development-setup.mdx | 6 +- .../documentation/tutorial/dynamic-routes.mdx | 6 +- .../documentation/tutorial/error-handling.mdx | 6 +- .../routes/documentation/tutorial/index.mdx | 6 +- .../documentation/tutorial/production.mdx | 6 +- .../documentation/tutorial/redirections.mdx | 6 +- .../src/routes/documentation/tutorial/seo.mdx | 6 +- apps/documentation/src/routes/index.mdx | 4 +- 91 files changed, 193 insertions(+), 187 deletions(-) rename apps/documentation/src/components/{breadcrumbs/breadcrumbs.tsx => Breadcrumbs/Breadcrumbs.tsx} (52%) create mode 100644 apps/documentation/src/components/Breadcrumbs/index.ts rename apps/documentation/src/components/{edit-page/edit-page.tsx => EditPage/EditPage.tsx} (100%) create mode 100644 apps/documentation/src/components/EditPage/index.ts rename apps/documentation/src/components/{hero/hero.tsx => Hero/Hero.tsx} (100%) create mode 100644 apps/documentation/src/components/Hero/index.ts rename apps/documentation/src/components/{mdx-provider/mdx-bold/mdx-bold.tsx => MdxProvider/MdxBold/MdxBold.tsx} (100%) create mode 100644 apps/documentation/src/components/MdxProvider/MdxBold/index.ts rename apps/documentation/src/components/{mdx-provider/mdx-code/mdx-code.tsx => MdxProvider/MdxCode/MdxCode.tsx} (100%) create mode 100644 apps/documentation/src/components/MdxProvider/MdxCode/index.ts rename apps/documentation/src/components/{mdx-provider/mdx-link/mdx-link.tsx => MdxProvider/MdxLink/MdxLink.tsx} (100%) create mode 100644 apps/documentation/src/components/MdxProvider/MdxLink/index.ts rename apps/documentation/src/components/{mdx-provider/mdx-pre/mdx-pre.module.css => MdxProvider/MdxPre/MdxPre.module.css} (100%) rename apps/documentation/src/components/{mdx-provider/mdx-pre/mdx-pre.tsx => MdxProvider/MdxPre/MdxPre.tsx} (92%) create mode 100644 apps/documentation/src/components/MdxProvider/MdxPre/index.ts rename apps/documentation/src/components/{mdx-provider/mdx-provider.tsx => MdxProvider/MdxProvider.tsx} (75%) rename apps/documentation/src/components/{mdx-provider/mdx-quote/mdx-quote.tsx => MdxProvider/MdxQuote/MdxQuote.tsx} (100%) create mode 100644 apps/documentation/src/components/MdxProvider/MdxQuote/index.ts rename apps/documentation/src/components/{mdx-provider/mdx-title/mdx-title.tsx => MdxProvider/MdxTitle/MdxTitle.tsx} (100%) create mode 100644 apps/documentation/src/components/MdxProvider/MdxTitle/index.ts create mode 100644 apps/documentation/src/components/MdxProvider/index.ts rename apps/documentation/src/components/{meta-tags/meta-tags.tsx => MetaTags/MetaTags.tsx} (100%) create mode 100644 apps/documentation/src/components/MetaTags/index.ts rename apps/documentation/src/components/{navbar/navbar.tsx => Navbar/Navbar.tsx} (90%) rename apps/documentation/src/components/{navbar/actions.tsx => Navbar/NavbarActions.tsx} (90%) create mode 100644 apps/documentation/src/components/Navbar/index.ts rename apps/documentation/src/components/{navigation-buttons/navigation-buttons.tsx => NavigationButtons/NavigationButtons.tsx} (100%) create mode 100644 apps/documentation/src/components/NavigationButtons/index.ts rename apps/documentation/src/components/{sidebar/sidebar.tsx => Sidebar/Sidebar.tsx} (96%) rename apps/documentation/src/components/{sidebar/sidebar-link.module.css => Sidebar/SidebarLink.module.css} (100%) rename apps/documentation/src/components/{sidebar/sidebar-link.tsx => Sidebar/SidebarLink.tsx} (95%) create mode 100644 apps/documentation/src/components/Sidebar/index.ts rename apps/documentation/src/components/{sidebar/config.ts => Sidebar/sidebarElements.ts} (100%) rename apps/documentation/src/components/{table-of-content/table-of-content.module.css => TableOfContents/TableOfContents.module.css} (100%) rename apps/documentation/src/components/{table-of-content/table-of-content.tsx => TableOfContents/TableOfContents.tsx} (96%) rename apps/documentation/src/components/{table-of-content/get-headings.ts => TableOfContents/getHeadings.ts} (100%) rename apps/documentation/src/components/{table-of-content => TableOfContents}/index.ts (75%) rename apps/documentation/src/components/{theme-btn/theme-btn.module.css => ThemeBtn/ThemeBtn.module.css} (100%) rename apps/documentation/src/components/{theme-btn/theme-btn.tsx => ThemeBtn/ThemeBtn.tsx} (94%) create mode 100644 apps/documentation/src/components/ThemeBtn/index.ts delete mode 100644 apps/documentation/src/components/breadcrumbs/index.ts delete mode 100644 apps/documentation/src/components/edit-page/index.ts delete mode 100644 apps/documentation/src/components/hero/index.ts delete mode 100644 apps/documentation/src/components/mdx-provider/index.ts delete mode 100644 apps/documentation/src/components/mdx-provider/mdx-code/index.ts delete mode 100644 apps/documentation/src/components/mdx-provider/mdx-link/index.ts delete mode 100644 apps/documentation/src/components/mdx-provider/mdx-pre/index.ts delete mode 100644 apps/documentation/src/components/mdx-provider/mdx-quote/index.ts delete mode 100644 apps/documentation/src/components/mdx-provider/mdx-title/index.ts delete mode 100644 apps/documentation/src/components/meta-tags/index.ts delete mode 100644 apps/documentation/src/components/navbar/index.ts delete mode 100644 apps/documentation/src/components/navigation-buttons/index.ts delete mode 100644 apps/documentation/src/components/sidebar/index.ts delete mode 100644 apps/documentation/src/components/theme-btn/index.ts diff --git a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx b/apps/documentation/src/components/Breadcrumbs/Breadcrumbs.tsx similarity index 52% rename from apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx rename to apps/documentation/src/components/Breadcrumbs/Breadcrumbs.tsx index e13fcbf9..6356af36 100644 --- a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx +++ b/apps/documentation/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -1,49 +1,54 @@ -import type { JSX } from 'react' -import { Breadcrumbs, Button } from '@mantine/core' +import { useMemo, type JSX } from 'react' +import { Breadcrumbs as MantineBreadcrumbs, Button } from '@mantine/core' import { Link, Head } from 'tuono' import { IconChevronRight, IconBolt } from '@tabler/icons-react' -interface Breadcrumb { +interface BreadcrumbData { href?: string label: string } interface BreadcrumbsProps { - breadcrumbs: Array + breadcrumbs: Array } -export default function TuonoBreadcrumbs({ +export default function Breadcrumbs({ breadcrumbs = [], }: BreadcrumbsProps): JSX.Element { + const ldJson = useMemo(() => { + const _ldJson = { + '@context': 'https://schema.org', + '@type': 'BreadcrumbList', + itemListElement: [ + { + '@type': 'ListItem', + position: 1, + name: 'Tuono - The React/Rust fullstack framework', + item: 'https://tuono.dev' as string | undefined, + }, + ], + } + + _ldJson.itemListElement.push( + ...breadcrumbs.map((br, i) => ({ + '@type': 'ListItem' as const, + position: i + 3, + name: br.label, + item: br.href ? `https://tuono.dev${br.href}` : undefined, + })), + ) + + return _ldJson + }, [breadcrumbs]) + return ( <> - } mb="md" mt="md" @@ -54,7 +59,7 @@ export default function TuonoBreadcrumbs({ {breadcrumbs.map((br) => ( ))} - + ) } diff --git a/apps/documentation/src/components/Breadcrumbs/index.ts b/apps/documentation/src/components/Breadcrumbs/index.ts new file mode 100644 index 00000000..7df1d1ab --- /dev/null +++ b/apps/documentation/src/components/Breadcrumbs/index.ts @@ -0,0 +1,3 @@ +import Breadcrumbs from './Breadcrumbs' + +export default Breadcrumbs diff --git a/apps/documentation/src/components/edit-page/edit-page.tsx b/apps/documentation/src/components/EditPage/EditPage.tsx similarity index 100% rename from apps/documentation/src/components/edit-page/edit-page.tsx rename to apps/documentation/src/components/EditPage/EditPage.tsx diff --git a/apps/documentation/src/components/EditPage/index.ts b/apps/documentation/src/components/EditPage/index.ts new file mode 100644 index 00000000..6bc636d1 --- /dev/null +++ b/apps/documentation/src/components/EditPage/index.ts @@ -0,0 +1,3 @@ +import EditPage from './EditPage' + +export default EditPage diff --git a/apps/documentation/src/components/hero/hero.tsx b/apps/documentation/src/components/Hero/Hero.tsx similarity index 100% rename from apps/documentation/src/components/hero/hero.tsx rename to apps/documentation/src/components/Hero/Hero.tsx diff --git a/apps/documentation/src/components/Hero/index.ts b/apps/documentation/src/components/Hero/index.ts new file mode 100644 index 00000000..0e0246c3 --- /dev/null +++ b/apps/documentation/src/components/Hero/index.ts @@ -0,0 +1,3 @@ +import Hero from './Hero' + +export default Hero diff --git a/apps/documentation/src/components/mdx-provider/mdx-bold/mdx-bold.tsx b/apps/documentation/src/components/MdxProvider/MdxBold/MdxBold.tsx similarity index 100% rename from apps/documentation/src/components/mdx-provider/mdx-bold/mdx-bold.tsx rename to apps/documentation/src/components/MdxProvider/MdxBold/MdxBold.tsx diff --git a/apps/documentation/src/components/MdxProvider/MdxBold/index.ts b/apps/documentation/src/components/MdxProvider/MdxBold/index.ts new file mode 100644 index 00000000..e361063c --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/MdxBold/index.ts @@ -0,0 +1,3 @@ +import MdxBold from './MdxBold' + +export default MdxBold diff --git a/apps/documentation/src/components/mdx-provider/mdx-code/mdx-code.tsx b/apps/documentation/src/components/MdxProvider/MdxCode/MdxCode.tsx similarity index 100% rename from apps/documentation/src/components/mdx-provider/mdx-code/mdx-code.tsx rename to apps/documentation/src/components/MdxProvider/MdxCode/MdxCode.tsx diff --git a/apps/documentation/src/components/MdxProvider/MdxCode/index.ts b/apps/documentation/src/components/MdxProvider/MdxCode/index.ts new file mode 100644 index 00000000..20b1d373 --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/MdxCode/index.ts @@ -0,0 +1,3 @@ +import MdxCode from './MdxCode' + +export default MdxCode diff --git a/apps/documentation/src/components/mdx-provider/mdx-link/mdx-link.tsx b/apps/documentation/src/components/MdxProvider/MdxLink/MdxLink.tsx similarity index 100% rename from apps/documentation/src/components/mdx-provider/mdx-link/mdx-link.tsx rename to apps/documentation/src/components/MdxProvider/MdxLink/MdxLink.tsx diff --git a/apps/documentation/src/components/MdxProvider/MdxLink/index.ts b/apps/documentation/src/components/MdxProvider/MdxLink/index.ts new file mode 100644 index 00000000..fd7158c9 --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/MdxLink/index.ts @@ -0,0 +1,3 @@ +import MdxLink from './MdxLink' + +export default MdxLink diff --git a/apps/documentation/src/components/mdx-provider/mdx-pre/mdx-pre.module.css b/apps/documentation/src/components/MdxProvider/MdxPre/MdxPre.module.css similarity index 100% rename from apps/documentation/src/components/mdx-provider/mdx-pre/mdx-pre.module.css rename to apps/documentation/src/components/MdxProvider/MdxPre/MdxPre.module.css diff --git a/apps/documentation/src/components/mdx-provider/mdx-pre/mdx-pre.tsx b/apps/documentation/src/components/MdxProvider/MdxPre/MdxPre.tsx similarity index 92% rename from apps/documentation/src/components/mdx-provider/mdx-pre/mdx-pre.tsx rename to apps/documentation/src/components/MdxProvider/MdxPre/MdxPre.tsx index 17aeabef..5cb2b41f 100644 --- a/apps/documentation/src/components/mdx-provider/mdx-pre/mdx-pre.tsx +++ b/apps/documentation/src/components/MdxProvider/MdxPre/MdxPre.tsx @@ -1,7 +1,7 @@ import type { JSX } from 'react' import { CodeHighlight } from '@mantine/code-highlight' -import styles from './mdx-pre.module.css' +import styles from './MdxPre.module.css' interface PreProps { children: { diff --git a/apps/documentation/src/components/MdxProvider/MdxPre/index.ts b/apps/documentation/src/components/MdxProvider/MdxPre/index.ts new file mode 100644 index 00000000..f255f150 --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/MdxPre/index.ts @@ -0,0 +1,3 @@ +import MdxPre from './MdxPre' + +export default MdxPre diff --git a/apps/documentation/src/components/mdx-provider/mdx-provider.tsx b/apps/documentation/src/components/MdxProvider/MdxProvider.tsx similarity index 75% rename from apps/documentation/src/components/mdx-provider/mdx-provider.tsx rename to apps/documentation/src/components/MdxProvider/MdxProvider.tsx index 89b2eb54..3588bf87 100644 --- a/apps/documentation/src/components/mdx-provider/mdx-provider.tsx +++ b/apps/documentation/src/components/MdxProvider/MdxProvider.tsx @@ -1,12 +1,12 @@ import type { JSX, ReactNode } from 'react' import { MDXProvider } from '@mdx-js/react' -import MdxLink from './mdx-link' -import MdxPre from './mdx-pre' -import MdxQuote from './mdx-quote' -import MdxCode from './mdx-code' -import { h } from './mdx-title' -import MdxBold from './mdx-bold/mdx-bold' +import MdxLink from './MdxLink' +import MdxPre from './MdxPre' +import MdxQuote from './MdxQuote' +import MdxCode from './MdxCode' +import { h } from './MdxTitle' +import MdxBold from './MdxBold' interface MdxProviderProps { children: ReactNode diff --git a/apps/documentation/src/components/mdx-provider/mdx-quote/mdx-quote.tsx b/apps/documentation/src/components/MdxProvider/MdxQuote/MdxQuote.tsx similarity index 100% rename from apps/documentation/src/components/mdx-provider/mdx-quote/mdx-quote.tsx rename to apps/documentation/src/components/MdxProvider/MdxQuote/MdxQuote.tsx diff --git a/apps/documentation/src/components/MdxProvider/MdxQuote/index.ts b/apps/documentation/src/components/MdxProvider/MdxQuote/index.ts new file mode 100644 index 00000000..2c54e73d --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/MdxQuote/index.ts @@ -0,0 +1,3 @@ +import MdxQuote from './MdxQuote' + +export default MdxQuote diff --git a/apps/documentation/src/components/mdx-provider/mdx-title/mdx-title.tsx b/apps/documentation/src/components/MdxProvider/MdxTitle/MdxTitle.tsx similarity index 100% rename from apps/documentation/src/components/mdx-provider/mdx-title/mdx-title.tsx rename to apps/documentation/src/components/MdxProvider/MdxTitle/MdxTitle.tsx diff --git a/apps/documentation/src/components/MdxProvider/MdxTitle/index.ts b/apps/documentation/src/components/MdxProvider/MdxTitle/index.ts new file mode 100644 index 00000000..a5ead4d7 --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/MdxTitle/index.ts @@ -0,0 +1,5 @@ +import MdxTitle, { h } from './MdxTitle' + +export default MdxTitle + +export { h } diff --git a/apps/documentation/src/components/MdxProvider/index.ts b/apps/documentation/src/components/MdxProvider/index.ts new file mode 100644 index 00000000..21bc9824 --- /dev/null +++ b/apps/documentation/src/components/MdxProvider/index.ts @@ -0,0 +1,3 @@ +import MdxProvider from './MdxProvider' + +export default MdxProvider diff --git a/apps/documentation/src/components/meta-tags/meta-tags.tsx b/apps/documentation/src/components/MetaTags/MetaTags.tsx similarity index 100% rename from apps/documentation/src/components/meta-tags/meta-tags.tsx rename to apps/documentation/src/components/MetaTags/MetaTags.tsx diff --git a/apps/documentation/src/components/MetaTags/index.ts b/apps/documentation/src/components/MetaTags/index.ts new file mode 100644 index 00000000..96522148 --- /dev/null +++ b/apps/documentation/src/components/MetaTags/index.ts @@ -0,0 +1,3 @@ +import MetaTags from './MetaTags' + +export default MetaTags diff --git a/apps/documentation/src/components/navbar/navbar.tsx b/apps/documentation/src/components/Navbar/Navbar.tsx similarity index 90% rename from apps/documentation/src/components/navbar/navbar.tsx rename to apps/documentation/src/components/Navbar/Navbar.tsx index 2f1e880b..40d99371 100644 --- a/apps/documentation/src/components/navbar/navbar.tsx +++ b/apps/documentation/src/components/Navbar/Navbar.tsx @@ -2,7 +2,7 @@ import type { JSX } from 'react' import { AppShell, Box, Burger, Button, Flex } from '@mantine/core' import { Link } from 'tuono' -import Actions from './actions' +import NavbarActions from './NavbarActions' interface NavbarProps { toggle: () => void @@ -24,7 +24,7 @@ export default function Navbar({ toggle }: NavbarProps): JSX.Element { - + diff --git a/apps/documentation/src/components/navbar/actions.tsx b/apps/documentation/src/components/Navbar/NavbarActions.tsx similarity index 90% rename from apps/documentation/src/components/navbar/actions.tsx rename to apps/documentation/src/components/Navbar/NavbarActions.tsx index d941748a..ce6806d5 100644 --- a/apps/documentation/src/components/navbar/actions.tsx +++ b/apps/documentation/src/components/Navbar/NavbarActions.tsx @@ -2,9 +2,9 @@ import type { JSX } from 'react' import { Flex, ActionIcon, Group } from '@mantine/core' import { IconBrandGithub, IconBrandDiscord } from '@tabler/icons-react' -import ThemeBtn from '../theme-btn' +import ThemeBtn from '../ThemeBtn' -export default function Actions(): JSX.Element { +export default function NavbarActions(): JSX.Element { return ( diff --git a/apps/documentation/src/components/Navbar/index.ts b/apps/documentation/src/components/Navbar/index.ts new file mode 100644 index 00000000..47edc167 --- /dev/null +++ b/apps/documentation/src/components/Navbar/index.ts @@ -0,0 +1,3 @@ +import Navbar from './Navbar' + +export default Navbar diff --git a/apps/documentation/src/components/navigation-buttons/navigation-buttons.tsx b/apps/documentation/src/components/NavigationButtons/NavigationButtons.tsx similarity index 100% rename from apps/documentation/src/components/navigation-buttons/navigation-buttons.tsx rename to apps/documentation/src/components/NavigationButtons/NavigationButtons.tsx diff --git a/apps/documentation/src/components/NavigationButtons/index.ts b/apps/documentation/src/components/NavigationButtons/index.ts new file mode 100644 index 00000000..fbd5641b --- /dev/null +++ b/apps/documentation/src/components/NavigationButtons/index.ts @@ -0,0 +1,3 @@ +import NavigationButtons from './NavigationButtons' + +export default NavigationButtons diff --git a/apps/documentation/src/components/sidebar/sidebar.tsx b/apps/documentation/src/components/Sidebar/Sidebar.tsx similarity index 96% rename from apps/documentation/src/components/sidebar/sidebar.tsx rename to apps/documentation/src/components/Sidebar/Sidebar.tsx index dcb490af..88eb9857 100644 --- a/apps/documentation/src/components/sidebar/sidebar.tsx +++ b/apps/documentation/src/components/Sidebar/Sidebar.tsx @@ -14,8 +14,8 @@ import { import { IconX } from '@tabler/icons-react' import { useMediaQuery } from '@mantine/hooks' -import { sidebarElements } from './config' -import SidebarLink from './sidebar-link' +import { sidebarElements } from './sidebarElements' +import SidebarLink from './SidebarLink' interface SidebarProps { close: () => void diff --git a/apps/documentation/src/components/sidebar/sidebar-link.module.css b/apps/documentation/src/components/Sidebar/SidebarLink.module.css similarity index 100% rename from apps/documentation/src/components/sidebar/sidebar-link.module.css rename to apps/documentation/src/components/Sidebar/SidebarLink.module.css diff --git a/apps/documentation/src/components/sidebar/sidebar-link.tsx b/apps/documentation/src/components/Sidebar/SidebarLink.tsx similarity index 95% rename from apps/documentation/src/components/sidebar/sidebar-link.tsx rename to apps/documentation/src/components/Sidebar/SidebarLink.tsx index 80cc7376..0fbada62 100644 --- a/apps/documentation/src/components/sidebar/sidebar-link.tsx +++ b/apps/documentation/src/components/Sidebar/SidebarLink.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx' import { Link, useRouter } from 'tuono' import { IconChevronRight } from '@tabler/icons-react' -import styles from './sidebar-link.module.css' +import styles from './SidebarLink.module.css' interface SidebarLinkProps { label: string diff --git a/apps/documentation/src/components/Sidebar/index.ts b/apps/documentation/src/components/Sidebar/index.ts new file mode 100644 index 00000000..e94c02c4 --- /dev/null +++ b/apps/documentation/src/components/Sidebar/index.ts @@ -0,0 +1,3 @@ +import Sidebar from './Sidebar' + +export default Sidebar diff --git a/apps/documentation/src/components/sidebar/config.ts b/apps/documentation/src/components/Sidebar/sidebarElements.ts similarity index 100% rename from apps/documentation/src/components/sidebar/config.ts rename to apps/documentation/src/components/Sidebar/sidebarElements.ts diff --git a/apps/documentation/src/components/table-of-content/table-of-content.module.css b/apps/documentation/src/components/TableOfContents/TableOfContents.module.css similarity index 100% rename from apps/documentation/src/components/table-of-content/table-of-content.module.css rename to apps/documentation/src/components/TableOfContents/TableOfContents.module.css diff --git a/apps/documentation/src/components/table-of-content/table-of-content.tsx b/apps/documentation/src/components/TableOfContents/TableOfContents.tsx similarity index 96% rename from apps/documentation/src/components/table-of-content/table-of-content.tsx rename to apps/documentation/src/components/TableOfContents/TableOfContents.tsx index bdba5877..57bf3229 100644 --- a/apps/documentation/src/components/table-of-content/table-of-content.tsx +++ b/apps/documentation/src/components/TableOfContents/TableOfContents.tsx @@ -7,12 +7,8 @@ import { useRouter, Link } from 'tuono' import { IconList } from '@tabler/icons-react' import { Box, rem, ScrollArea, Text } from '@mantine/core' -import { getHeadings, type Heading } from './get-headings' -import classes from './table-of-content.module.css' - -interface TableOfContentsProps { - withTabs: boolean -} +import { getHeadings, type Heading } from './getHeadings' +import classes from './TableOfContents.module.css' function getActiveElement(rects: Array): number { if (rects.length === 0) { @@ -36,6 +32,10 @@ function getActiveElement(rects: Array): number { return closest.index } +interface TableOfContentsProps { + withTabs: boolean +} + export function TableOfContents({ withTabs, }: TableOfContentsProps): JSX.Element | null { diff --git a/apps/documentation/src/components/table-of-content/get-headings.ts b/apps/documentation/src/components/TableOfContents/getHeadings.ts similarity index 100% rename from apps/documentation/src/components/table-of-content/get-headings.ts rename to apps/documentation/src/components/TableOfContents/getHeadings.ts diff --git a/apps/documentation/src/components/table-of-content/index.ts b/apps/documentation/src/components/TableOfContents/index.ts similarity index 75% rename from apps/documentation/src/components/table-of-content/index.ts rename to apps/documentation/src/components/TableOfContents/index.ts index 16f972af..dfe4ead4 100644 --- a/apps/documentation/src/components/table-of-content/index.ts +++ b/apps/documentation/src/components/TableOfContents/index.ts @@ -1,6 +1,6 @@ /* * Component inspired by: https://github.com/mantinedev/mantine/tree/master/apps/mantine.dev/src/components/TableOfContents */ -import { TableOfContents } from './table-of-content' +import { TableOfContents } from './TableOfContents' export default TableOfContents diff --git a/apps/documentation/src/components/theme-btn/theme-btn.module.css b/apps/documentation/src/components/ThemeBtn/ThemeBtn.module.css similarity index 100% rename from apps/documentation/src/components/theme-btn/theme-btn.module.css rename to apps/documentation/src/components/ThemeBtn/ThemeBtn.module.css diff --git a/apps/documentation/src/components/theme-btn/theme-btn.tsx b/apps/documentation/src/components/ThemeBtn/ThemeBtn.tsx similarity index 94% rename from apps/documentation/src/components/theme-btn/theme-btn.tsx rename to apps/documentation/src/components/ThemeBtn/ThemeBtn.tsx index 3a9b9cc2..9aec26a4 100644 --- a/apps/documentation/src/components/theme-btn/theme-btn.tsx +++ b/apps/documentation/src/components/ThemeBtn/ThemeBtn.tsx @@ -7,7 +7,7 @@ import { import { IconSun, IconMoon } from '@tabler/icons-react' import cx from 'clsx' -import classes from './theme-btn.module.css' +import classes from './ThemeBtn.module.css' export default function ThemeBtn(): JSX.Element { const { setColorScheme } = useMantineColorScheme() diff --git a/apps/documentation/src/components/ThemeBtn/index.ts b/apps/documentation/src/components/ThemeBtn/index.ts new file mode 100644 index 00000000..4122e72d --- /dev/null +++ b/apps/documentation/src/components/ThemeBtn/index.ts @@ -0,0 +1,3 @@ +import ThemeBtn from './ThemeBtn' + +export default ThemeBtn diff --git a/apps/documentation/src/components/breadcrumbs/index.ts b/apps/documentation/src/components/breadcrumbs/index.ts deleted file mode 100644 index d766c8d5..00000000 --- a/apps/documentation/src/components/breadcrumbs/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import Breadcrumbs, { BreadcrumbElement } from './breadcrumbs' - -export default Breadcrumbs - -export { BreadcrumbElement as Element } diff --git a/apps/documentation/src/components/edit-page/index.ts b/apps/documentation/src/components/edit-page/index.ts deleted file mode 100644 index 9469e890..00000000 --- a/apps/documentation/src/components/edit-page/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import EditPage from './edit-page' - -export default EditPage diff --git a/apps/documentation/src/components/hero/index.ts b/apps/documentation/src/components/hero/index.ts deleted file mode 100644 index 2b4b7fec..00000000 --- a/apps/documentation/src/components/hero/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Hero from './hero' - -export default Hero diff --git a/apps/documentation/src/components/mdx-provider/index.ts b/apps/documentation/src/components/mdx-provider/index.ts deleted file mode 100644 index 275c5ecf..00000000 --- a/apps/documentation/src/components/mdx-provider/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import MdxProvider from './mdx-provider' - -export default MdxProvider diff --git a/apps/documentation/src/components/mdx-provider/mdx-code/index.ts b/apps/documentation/src/components/mdx-provider/mdx-code/index.ts deleted file mode 100644 index 32dc03c6..00000000 --- a/apps/documentation/src/components/mdx-provider/mdx-code/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import MdxCode from './mdx-code' - -export default MdxCode diff --git a/apps/documentation/src/components/mdx-provider/mdx-link/index.ts b/apps/documentation/src/components/mdx-provider/mdx-link/index.ts deleted file mode 100644 index 9ef1ac78..00000000 --- a/apps/documentation/src/components/mdx-provider/mdx-link/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import MdxLink from './mdx-link' - -export default MdxLink diff --git a/apps/documentation/src/components/mdx-provider/mdx-pre/index.ts b/apps/documentation/src/components/mdx-provider/mdx-pre/index.ts deleted file mode 100644 index 54fa53df..00000000 --- a/apps/documentation/src/components/mdx-provider/mdx-pre/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import MdxPre from './mdx-pre' - -export default MdxPre diff --git a/apps/documentation/src/components/mdx-provider/mdx-quote/index.ts b/apps/documentation/src/components/mdx-provider/mdx-quote/index.ts deleted file mode 100644 index 60c00daa..00000000 --- a/apps/documentation/src/components/mdx-provider/mdx-quote/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import MdxQuote from './mdx-quote' - -export default MdxQuote diff --git a/apps/documentation/src/components/mdx-provider/mdx-title/index.ts b/apps/documentation/src/components/mdx-provider/mdx-title/index.ts deleted file mode 100644 index 8004c8c7..00000000 --- a/apps/documentation/src/components/mdx-provider/mdx-title/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import MdxTitle, { h } from './mdx-title' - -export default MdxTitle - -export { h } diff --git a/apps/documentation/src/components/meta-tags/index.ts b/apps/documentation/src/components/meta-tags/index.ts deleted file mode 100644 index 490f1f87..00000000 --- a/apps/documentation/src/components/meta-tags/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import MetaTags from './meta-tags' - -export default MetaTags diff --git a/apps/documentation/src/components/navbar/index.ts b/apps/documentation/src/components/navbar/index.ts deleted file mode 100644 index 19eb850e..00000000 --- a/apps/documentation/src/components/navbar/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Navbar from './navbar' - -export default Navbar diff --git a/apps/documentation/src/components/navigation-buttons/index.ts b/apps/documentation/src/components/navigation-buttons/index.ts deleted file mode 100644 index 279d4366..00000000 --- a/apps/documentation/src/components/navigation-buttons/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import NavigationButtons from './navigation-buttons' - -export default NavigationButtons diff --git a/apps/documentation/src/components/sidebar/index.ts b/apps/documentation/src/components/sidebar/index.ts deleted file mode 100644 index 1c6b4eb3..00000000 --- a/apps/documentation/src/components/sidebar/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Sidebar from './sidebar' - -export default Sidebar diff --git a/apps/documentation/src/components/theme-btn/index.ts b/apps/documentation/src/components/theme-btn/index.ts deleted file mode 100644 index 20f54231..00000000 --- a/apps/documentation/src/components/theme-btn/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import ThemeBtn from './theme-btn' - -export default ThemeBtn diff --git a/apps/documentation/src/routes/__root.tsx b/apps/documentation/src/routes/__root.tsx index 8852d285..30552261 100644 --- a/apps/documentation/src/routes/__root.tsx +++ b/apps/documentation/src/routes/__root.tsx @@ -11,10 +11,10 @@ import type { CSSVariablesResolver } from '@mantine/core' import { useDisclosure } from '@mantine/hooks' import { Head } from 'tuono' -import EditPage from '@/components/edit-page' -import MdxProvider from '@/components/mdx-provider' -import Navbar from '@/components/navbar' -import Sidebar from '@/components/sidebar' +import EditPage from '@/components/EditPage' +import MdxProvider from '@/components/MdxProvider' +import Navbar from '@/components/Navbar' +import Sidebar from '@/components/Sidebar' import '@mantine/core/styles.css' import '@mantine/code-highlight/styles.css' diff --git a/apps/documentation/src/routes/documentation/application-state.mdx b/apps/documentation/src/routes/documentation/application-state.mdx index 80d2f515..3e2109ce 100644 --- a/apps/documentation/src/routes/documentation/application-state.mdx +++ b/apps/documentation/src/routes/documentation/application-state.mdx @@ -1,4 +1,4 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/cli.mdx b/apps/documentation/src/routes/documentation/cli.mdx index 82edaf32..1dc86854 100644 --- a/apps/documentation/src/routes/documentation/cli.mdx +++ b/apps/documentation/src/routes/documentation/cli.mdx @@ -1,4 +1,4 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/components/head.mdx b/apps/documentation/src/routes/documentation/components/head.mdx index 51d57d00..50554a58 100644 --- a/apps/documentation/src/routes/documentation/components/head.mdx +++ b/apps/documentation/src/routes/documentation/components/head.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/components/link.mdx b/apps/documentation/src/routes/documentation/components/link.mdx index 370ed7c7..2dc1736e 100644 --- a/apps/documentation/src/routes/documentation/components/link.mdx +++ b/apps/documentation/src/routes/documentation/components/link.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/configuration.mdx b/apps/documentation/src/routes/documentation/configuration.mdx index 21206645..1097732f 100644 --- a/apps/documentation/src/routes/documentation/configuration.mdx +++ b/apps/documentation/src/routes/documentation/configuration.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/contributing.mdx b/apps/documentation/src/routes/documentation/contributing.mdx index 242c9c93..35a75d35 100644 --- a/apps/documentation/src/routes/documentation/contributing.mdx +++ b/apps/documentation/src/routes/documentation/contributing.mdx @@ -1,4 +1,4 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/contributing/index.mdx b/apps/documentation/src/routes/documentation/contributing/index.mdx index 2aa0ca96..a22118c5 100644 --- a/apps/documentation/src/routes/documentation/contributing/index.mdx +++ b/apps/documentation/src/routes/documentation/contributing/index.mdx @@ -1,4 +1,4 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' @@ -46,7 +46,7 @@ Without taking into account specific cases, we can mostly split the domain requi - The documentation website needs just `React` & `Typescript` (or even less, since most of the code is markdown). -import NavigationButtons from '../../../components/navigation-buttons' +import NavigationButtons from '../../../components/NavigationButtons' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' On the documentation remember that `tuono` `npm` package is installed from the registry and > it is not linked to the repository. -import NavigationButtons from '../../../components/navigation-buttons' +import NavigationButtons from '../../../components/NavigationButtons' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/hooks/use-router.mdx b/apps/documentation/src/routes/documentation/hooks/use-router.mdx index 4d469403..bec0de8f 100644 --- a/apps/documentation/src/routes/documentation/hooks/use-router.mdx +++ b/apps/documentation/src/routes/documentation/hooks/use-router.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/how-is-tuono-different.mdx b/apps/documentation/src/routes/documentation/how-is-tuono-different.mdx index 30921b87..d2b16c84 100644 --- a/apps/documentation/src/routes/documentation/how-is-tuono-different.mdx +++ b/apps/documentation/src/routes/documentation/how-is-tuono-different.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/installation.mdx b/apps/documentation/src/routes/documentation/installation.mdx index 46548e59..4a17e6a1 100644 --- a/apps/documentation/src/routes/documentation/installation.mdx +++ b/apps/documentation/src/routes/documentation/installation.mdx @@ -1,6 +1,4 @@ -import Breadcrumbs, { Element } from '@/components/breadcrumbs' - -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' +import Breadcrumbs from '@/components/Breadcrumbs' + # Installation diff --git a/apps/documentation/src/routes/documentation/integrations/mdx.mdx b/apps/documentation/src/routes/documentation/integrations/mdx.mdx index e840e99f..3f51c549 100644 --- a/apps/documentation/src/routes/documentation/integrations/mdx.mdx +++ b/apps/documentation/src/routes/documentation/integrations/mdx.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/rendering/server-side-rendering.mdx b/apps/documentation/src/routes/documentation/rendering/server-side-rendering.mdx index b43e56b2..b14a39bf 100644 --- a/apps/documentation/src/routes/documentation/rendering/server-side-rendering.mdx +++ b/apps/documentation/src/routes/documentation/rendering/server-side-rendering.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/rendering/static-site-rendering.mdx b/apps/documentation/src/routes/documentation/rendering/static-site-rendering.mdx index 13d94d57..ccd3139a 100644 --- a/apps/documentation/src/routes/documentation/rendering/static-site-rendering.mdx +++ b/apps/documentation/src/routes/documentation/rendering/static-site-rendering.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/defining-routes.mdx b/apps/documentation/src/routes/documentation/routing/defining-routes.mdx index 7faafe2c..c79c68e9 100644 --- a/apps/documentation/src/routes/documentation/routing/defining-routes.mdx +++ b/apps/documentation/src/routes/documentation/routing/defining-routes.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/dynamic-routes.mdx b/apps/documentation/src/routes/documentation/routing/dynamic-routes.mdx index aa533a8a..a0cd0a3c 100644 --- a/apps/documentation/src/routes/documentation/routing/dynamic-routes.mdx +++ b/apps/documentation/src/routes/documentation/routing/dynamic-routes.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/index.mdx b/apps/documentation/src/routes/documentation/routing/index.mdx index 2ded1bda..367c38f6 100644 --- a/apps/documentation/src/routes/documentation/routing/index.mdx +++ b/apps/documentation/src/routes/documentation/routing/index.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/layouts.mdx b/apps/documentation/src/routes/documentation/routing/layouts.mdx index 2c4b7b4f..d4c4cbef 100644 --- a/apps/documentation/src/routes/documentation/routing/layouts.mdx +++ b/apps/documentation/src/routes/documentation/routing/layouts.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/link-and-navigation.mdx b/apps/documentation/src/routes/documentation/routing/link-and-navigation.mdx index 86c4a1e5..5fe1aad9 100644 --- a/apps/documentation/src/routes/documentation/routing/link-and-navigation.mdx +++ b/apps/documentation/src/routes/documentation/routing/link-and-navigation.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/loading-state.mdx b/apps/documentation/src/routes/documentation/routing/loading-state.mdx index dfad9651..0c30320f 100644 --- a/apps/documentation/src/routes/documentation/routing/loading-state.mdx +++ b/apps/documentation/src/routes/documentation/routing/loading-state.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/pages.mdx b/apps/documentation/src/routes/documentation/routing/pages.mdx index b3e81c2d..bf976d95 100644 --- a/apps/documentation/src/routes/documentation/routing/pages.mdx +++ b/apps/documentation/src/routes/documentation/routing/pages.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/routing/redirecting.mdx b/apps/documentation/src/routes/documentation/routing/redirecting.mdx index 0e1da4c5..c990ea2c 100644 --- a/apps/documentation/src/routes/documentation/routing/redirecting.mdx +++ b/apps/documentation/src/routes/documentation/routing/redirecting.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/styles/css-modules.mdx b/apps/documentation/src/routes/documentation/styles/css-modules.mdx index dc95633c..d5a468f2 100644 --- a/apps/documentation/src/routes/documentation/styles/css-modules.mdx +++ b/apps/documentation/src/routes/documentation/styles/css-modules.mdx @@ -1,11 +1,11 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' diff --git a/apps/documentation/src/routes/documentation/tutorial/api-fetching.mdx b/apps/documentation/src/routes/documentation/tutorial/api-fetching.mdx index f4e8be86..e931b288 100644 --- a/apps/documentation/src/routes/documentation/tutorial/api-fetching.mdx +++ b/apps/documentation/src/routes/documentation/tutorial/api-fetching.mdx @@ -1,4 +1,4 @@ -import MetaTags from '@/components/meta-tags' +import MetaTags from '@/components/MetaTags' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' Response { If you now try to load a not-existing Pokémon (`http://localhost:3000/pokemons/tuono-pokemon`) you will correctly receive a 404 status code in the console. -import NavigationButtons from '../../../components/navigation-buttons' +import NavigationButtons from '../../../components/NavigationButtons' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' @@ -27,7 +27,7 @@ $ tuono new tutorial --template tuono-tutorial > I'd love to hear your thoughts about the framework and the tutorial - feel free to reach me at [valerioageno@yahoo.it](mailto:valerioageno@ahoo.it) > or on Twitter (X) DM [@valerioageno](https://twitter.com/valerioageno) -import NavigationButtons from '../../../components/navigation-buttons' +import NavigationButtons from '../../../components/NavigationButtons' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' Note: The `out` directory is not standalone. You can't rely just on it to run the production server. -import NavigationButtons from '../../../components/navigation-buttons' +import NavigationButtons from '../../../components/NavigationButtons' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs, { Element } from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs' -import Breadcrumbs from '@/components/breadcrumbs' +import Breadcrumbs from '@/components/Breadcrumbs'