Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/site/app/[locale]/[...path]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
*/

import { notFound } from 'next/navigation';
import type { FC } from 'react';

import { ENABLE_STATIC_EXPORT } from '#site/next.constants.mjs';
import { ENABLE_STATIC_EXPORT_LOCALE } from '#site/next.constants.mjs';
import { dynamicRouter } from '#site/next.dynamic.mjs';
import * as basePage from '#site/next.dynamic.page.mjs';
import { availableLocaleCodes, defaultLocale } from '#site/next.locales.mjs';

import type { DynamicParams } from '#site/types';
import type { FC } from 'react';

type PageParams = DynamicParams<{ path: Array<string> }>;

Expand Down
3 changes: 2 additions & 1 deletion apps/site/app/[locale]/blog/[...path]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { notFound } from 'next/navigation';
import type { FC } from 'react';

import { ENABLE_STATIC_EXPORT } from '#site/next.constants.mjs';
import { BLOG_DYNAMIC_ROUTES } from '#site/next.dynamic.constants.mjs';
import * as basePage from '#site/next.dynamic.page.mjs';
import { defaultLocale } from '#site/next.locales.mjs';

import type { DynamicParams } from '#site/types';
import type { FC } from 'react';

type PageParams = DynamicParams<{ path: Array<string> }>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { notFound, redirect } from 'next/navigation';
import type { FC } from 'react';

import provideReleaseData from '#site/next-data/providers/releaseData';
import provideReleaseVersions from '#site/next-data/providers/releaseVersions';
import { ENABLE_STATIC_EXPORT } from '#site/next.constants.mjs';
import * as basePage from '#site/next.dynamic.page.mjs';
import { defaultLocale } from '#site/next.locales.mjs';

import type { DynamicParams } from '#site/types';
import type { FC } from 'react';

type PageParams = DynamicParams<{ version: string }>;

Expand Down
3 changes: 2 additions & 1 deletion apps/site/app/[locale]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';

import Button from '#site/components/Common/Button';
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';

import type { FC } from 'react';

const ErrorPage: FC<{ error: Error }> = () => {
const t = useTranslations();

Expand Down
3 changes: 2 additions & 1 deletion apps/site/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import { Analytics } from '@vercel/analytics/react';
import { SpeedInsights } from '@vercel/speed-insights/next';
import classNames from 'classnames';
import { NextIntlClientProvider } from 'next-intl';
import type { FC, PropsWithChildren } from 'react';

import BaseLayout from '#site/layouts/Base';
import { VERCEL_ENV } from '#site/next.constants.mjs';
import { IBM_PLEX_MONO, OPEN_SANS } from '#site/next.fonts';
import { availableLocalesMap, defaultLocale } from '#site/next.locales.mjs';
import { ThemeProvider } from '#site/providers/themeProvider';

import type { FC, PropsWithChildren } from 'react';

import '#site/styles/index.css';

const fontClasses = classNames(IBM_PLEX_MONO.variable, OPEN_SANS.variable);
Expand Down
3 changes: 2 additions & 1 deletion apps/site/app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { getTranslations } from 'next-intl/server';
import type { FC } from 'react';

import Button from '#site/components/Common/Button';
import Turtle from '#site/components/Common/Turtle';
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';

import type { FC } from 'react';

const NotFoundPage: FC = async () => {
const t = await getTranslations();

Expand Down
3 changes: 2 additions & 1 deletion apps/site/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { notFound } from 'next/navigation';
import type { FC } from 'react';

import { ENABLE_STATIC_EXPORT } from '#site/next.constants.mjs';
import { ENABLE_STATIC_EXPORT_LOCALE } from '#site/next.constants.mjs';
import * as basePage from '#site/next.dynamic.page.mjs';
import { availableLocaleCodes } from '#site/next.locales.mjs';
import { defaultLocale } from '#site/next.locales.mjs';

import type { DynamicParams } from '#site/types';
import type { FC } from 'react';

type PageParams = DynamicParams<{ path: Array<string> }>;

Expand Down
3 changes: 2 additions & 1 deletion apps/site/app/global-error.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
'use client';

import { ArrowRightIcon } from '@heroicons/react/24/solid';
import type { FC } from 'react';

import Button from '#site/components/Common/Button';
import BaseLayout from '#site/layouts/Base';
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';

import type { FC } from 'react';

const GlobalErrorPage: FC<{ error: Error }> = () => (
<html>
<body>
Expand Down
4 changes: 2 additions & 2 deletions apps/site/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { MetadataRoute } from 'next';

import { BASE_PATH } from '#site/next.constants.mjs';
import { BASE_URL } from '#site/next.constants.mjs';
import { EXTERNAL_LINKS_SITEMAP } from '#site/next.constants.mjs';
import { BLOG_DYNAMIC_ROUTES } from '#site/next.dynamic.constants.mjs';
import { dynamicRouter } from '#site/next.dynamic.mjs';
import { availableLocaleCodes, defaultLocale } from '#site/next.locales.mjs';

import type { MetadataRoute } from 'next';

// This is the combination of the Application Base URL and Base PATH
const baseUrlAndPath = `${BASE_URL}${BASE_PATH}`;

Expand Down
3 changes: 2 additions & 1 deletion apps/site/client-context.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { cache } from 'react';

import type { ClientSharedServerContext } from '#site/types';
import { assignClientContext } from '#site/util/context';

import type { ClientSharedServerContext } from '#site/types';

// This allows us to have Server-Side Context's of the shared "contextual" data
// which includes the frontmatter, the current pathname from the dynamic segments
// and the current headings of the current markdown context
Expand Down
3 changes: 2 additions & 1 deletion apps/site/components/Blog/BlogHeader/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { RssIcon } from '@heroicons/react/24/solid';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';

import Link from '#site/components/Link';
import { siteConfig } from '#site/next.json.mjs';

import type { FC } from 'react';

import styles from './index.module.css';

type BlogHeaderProps = { category: string };
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Blog/BlogPostCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import Preview from '@node-core/ui-components/Common/Preview';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';

import FormattedTime from '#site/components/Common/FormattedTime';
import Link from '#site/components/Link';
import WithAvatarGroup from '#site/components/withAvatarGroup';
import type { BlogCategory } from '#site/types';
import { mapBlogCategoryToPreviewType } from '#site/util/blog';

import type { BlogCategory } from '#site/types';
import type { FC } from 'react';

import styles from './index.module.css';

type BlogPostCardProps = {
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import BaseButton from '@node-core/ui-components/Common/BaseButton';
import type { ButtonProps } from '@node-core/ui-components/Common/BaseButton';
import type { FC } from 'react';

import Link from '#site/components/Link';

import type { ButtonProps } from '@node-core/ui-components/Common/BaseButton';
import type { FC } from 'react';

const Button: FC<ButtonProps> = props => <BaseButton as={Link} {...props} />;

export default Button;
3 changes: 2 additions & 1 deletion apps/site/components/Common/CodeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import BaseCodeBox from '@node-core/ui-components/Common/BaseCodeBox';
import styles from '@node-core/ui-components/Common/BaseCodeBox/index.module.css';
import { useNotification } from '@node-core/ui-components/Providers/NotificationProvider';
import { useTranslations } from 'next-intl';
import type { FC, PropsWithChildren } from 'react';

import Link from '#site/components/Link';
import { useCopyToClipboard } from '#site/hooks';

import type { FC, PropsWithChildren } from 'react';

type CodeBoxProps = {
language: string;
className?: string;
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/CrossLink.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import BaseCrossLink from '@node-core/ui-components/Common/BaseCrossLink';
import type { CrossLinkProps } from '@node-core/ui-components/Common/BaseCrossLink';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';

import Link from '#site/components/Link';

import type { CrossLinkProps } from '@node-core/ui-components/Common/BaseCrossLink';
import type { FC } from 'react';

const CrossLink: FC<Omit<CrossLinkProps, 'as' | 'label'>> = props => {
const t = useTranslations();
return (
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/FormattedTime.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { DateTimeFormatOptions } from 'next-intl';
import { useFormatter } from 'next-intl';
import type { FC } from 'react';

import { DEFAULT_DATE_FORMAT } from '#site/next.calendar.constants.mjs';

import type { DateTimeFormatOptions } from 'next-intl';
import type { FC } from 'react';

type FormattedTimeProps = {
date: string | Date;
format?: DateTimeFormatOptions;
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/LinkTabs.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import BaseLinkTabs from '@node-core/ui-components/Common/BaseLinkTabs';
import type { LinkTabsProps } from '@node-core/ui-components/Common/BaseLinkTabs';
import type { FC } from 'react';

import Link from '#site/components/Link';

import type { LinkTabsProps } from '@node-core/ui-components/Common/BaseLinkTabs';
import type { FC } from 'react';

const LinkTabs: FC<Omit<LinkTabsProps, 'as'>> = props => {
return <BaseLinkTabs as={Link} {...props} />;
};
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/LinkWithArrow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { ArrowUpRightIcon } from '@heroicons/react/24/solid';
import classNames from 'classnames';

import Link from '#site/components/Link';

import type {
ButtonHTMLAttributes,
ComponentProps,
FC,
PropsWithChildren,
} from 'react';

import Link from '#site/components/Link';

import styles from './index.module.css';

type LinkWithArrowProps =
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import BasePagination from '@node-core/ui-components/Common/BasePagination';
import type { PaginationProps } from '@node-core/ui-components/Common/BasePagination';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';

import Link from '#site/components/Link';

import type { PaginationProps } from '@node-core/ui-components/Common/BasePagination';
import type { FC } from 'react';

const Pagination: FC<
Omit<PaginationProps, 'as' | 'labels' | 'getPageLabel'>
> = props => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import Skeleton from '@node-core/ui-components/Common/Skeleton';
import Tooltip from '@node-core/ui-components/Common/Tooltip';
import type { ComponentProps, FC } from 'react';
import { cloneElement } from 'react';

import Button from '#site/components/Common/Button';

import type { Partners } from '#site/types';
import type { ComponentProps, FC } from 'react';

import style from './index.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Skeleton from '@node-core/ui-components/Common/Skeleton';
import type { ComponentProps, FC } from 'react';
import { cloneElement } from 'react';

import Button from '#site/components/Common/Button';

import type { Partners } from '#site/types';
import type { ComponentProps, FC } from 'react';

import style from './index.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client';

import type { FC } from 'react';

import usePartnersList from '#site/hooks/react-client/usePartnersList';
import { ICON_PARTNERS } from '#site/next.partners.constants';

import type { PartnerCategory } from '#site/types';
import type { FC } from 'react';

import PartnerIcon from '../PartnerIcon';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client';

import type { FC } from 'react';

import usePartnersList from '#site/hooks/react-client/usePartnersList';
import { LOGO_PARTNERS } from '#site/next.partners.constants';

import type { PartnerCategory } from '#site/types';
import type { FC } from 'react';

import PartnerLogo from '../PartnerLogo';

Expand Down
3 changes: 2 additions & 1 deletion apps/site/components/Common/Partners/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { RandomPartnerListConfig, Partners } from '#site/types';
import { shuffle } from '#site/util/array';

import type { RandomPartnerListConfig, Partners } from '#site/types';

async function randomPartnerList(
partners: Array<Partners>,
config: RandomPartnerListConfig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use client';

import { ArrowDownIcon } from '@heroicons/react/24/solid';
import type { Interaction } from '@orama/core';
import { ChatInteractions } from '@orama/ui/components';
import { useScrollableContainer } from '@orama/ui/hooks/useScrollableContainer';
import { useTranslations } from 'next-intl';

import type { Interaction } from '@orama/core';

import { ChatMessage } from '../ChatMessage';

import styles from './index.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ChatActions from '@node-core/ui-components/Common/Search/Chat/Actions';
import type { Interaction } from '@orama/core';
import { ChatInteractions } from '@orama/ui/components';

import type { Interaction } from '@orama/core';
import type { FC } from 'react';

import ChatSources from '../ChatSources';
Expand Down
5 changes: 3 additions & 2 deletions apps/site/components/Common/Searchbox/ChatSources/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { Interaction, AnyObject } from '@orama/core';
import { ChatInteractions } from '@orama/ui/components';
import type { FC } from 'react';

import type { Document } from '../DocumentLink';
import type { Interaction, AnyObject } from '@orama/core';
import type { FC } from 'react';

import { DocumentLink } from '../DocumentLink';

import styles from './index.module.css';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import Link from 'next/link';
import { useLocale } from 'next-intl';

import type { FC } from 'react';

import styles from './index.module.css';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import { DocumentTextIcon } from '@heroicons/react/24/outline';
import { SearchResults } from '@orama/ui/components';

import type { Document } from '../DocumentLink';
import type { FC } from 'react';

import { DocumentLink } from '../DocumentLink';
import type { Document } from '../DocumentLink';
import { getFormattedPath } from './utils';

import styles from './index.module.css';
Expand Down
Loading
Loading