Switch the base framework from Create React App to Next.JS

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Renovate Bot 2021-12-25 15:44:24 +00:00 committed by Tilman Vatteroth
parent a979b6ffdd
commit 77a60c6c48
361 changed files with 5130 additions and 9605 deletions

View file

@ -1,4 +1,4 @@
/*!
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only

View file

@ -9,7 +9,7 @@ import React, { useMemo } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import { ShowIf } from '../../common/show-if/show-if'
import { buildReactDomFromTocAst } from './build-react-dom-from-toc-ast'
import './table-of-contents.scss'
import styles from './table-of-contents.module.scss'
export interface TableOfContentsProps {
ast: TocAst
@ -26,7 +26,7 @@ export const TableOfContents: React.FC<TableOfContentsProps> = ({ ast, maxDepth
)
return (
<div className={`markdown-toc ${className ?? ''}`}>
<div className={`${styles['markdown-toc']} ${className ?? ''}`}>
<ShowIf condition={ast.c.length === 0}>
<Trans i18nKey={'editor.infoToc'} />
</ShowIf>