feat: add support for files and math for messages (#5)

This commit is contained in:
Divlo
2022-01-07 21:21:38 +01:00
committed by GitHub
parent fdc2a2d1de
commit 5c03a9b944
57 changed files with 3403 additions and 2992 deletions

View File

@ -1,4 +1,5 @@
import { NextPage } from 'next'
import useTranslation from 'next-translate/useTranslation'
import { Head } from 'components/Head'
import { Application } from 'components/Application'
@ -9,7 +10,6 @@ import {
} from 'tools/authentication'
import { CreateGuild } from 'components/Application/CreateGuild'
import { GuildsProvider } from 'contexts/Guilds'
import useTranslation from 'next-translate/useTranslation'
const CreateGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
const { t } = useTranslation()

View File

@ -1,9 +1,9 @@
import { NextPage } from 'next'
import Link from 'next/link'
import { AuthenticationForm } from 'components/Authentication'
import useTranslation from 'next-translate/useTranslation'
import axios from 'axios'
import { AuthenticationForm } from 'components/Authentication'
import { Head } from 'components/Head'
import { Header } from 'components/Header'
import { Main } from 'components/design/Main'

View File

@ -13,9 +13,9 @@ import { FormState } from 'components/design/FormState'
import { authenticationFromServerSide } from 'tools/authentication'
import { AuthenticationForm } from 'components/Authentication'
import { ScrollableBody } from 'components/ScrollableBody/ScrollableBody'
import { api } from 'tools/api'
import { userSchema } from '../../models/User'
import { HandleSubmitCallback, useForm } from 'hooks/useForm'
import { api } from 'tools/api'
import { userSchema } from 'models/User'
const ResetPassword: NextPage<FooterProps> = (props) => {
const { t } = useTranslation()

View File

@ -1,7 +1,6 @@
import { GetStaticProps, NextPage } from 'next'
import Link from 'next/link'
import Image from 'next/image'
import Translation from 'next-translate/Trans'
import useTranslation from 'next-translate/useTranslation'
@ -9,8 +8,8 @@ import { Head } from 'components/Head'
import { Header } from 'components/Header'
import { Main } from 'components/design/Main'
import { Footer, FooterProps } from 'components/Footer'
import { SocialMediaButton } from 'components/design/SocialMediaButton'
import { Button } from 'components/design/Button'
import { SocialMediaLink } from 'components/design/SocialMediaButton'
import { ButtonLink } from 'components/design/Button'
import { ScrollableBody } from 'components/ScrollableBody'
const Home: NextPage<FooterProps> = (props) => {
@ -22,8 +21,8 @@ const Home: NextPage<FooterProps> = (props) => {
<Head />
<Header />
<Main>
<section className='flex flex-col items-center w-4/5'>
<section className='max-w-xs'>
<div className='flex flex-col items-center w-4/5'>
<div className='max-w-xs'>
<Link href='/authentication/signup'>
<a>
<Image
@ -34,8 +33,8 @@ const Home: NextPage<FooterProps> = (props) => {
/>
</a>
</Link>
</section>
<section className='text-center'>
</div>
<div className='text-center'>
<h1 className='my-4 text-3xl font-medium font-headline text-green-800 dark:text-green-400'>
Thream
</h1>
@ -54,21 +53,21 @@ const Home: NextPage<FooterProps> = (props) => {
/>
</div>
<div className='flex justify-center items-center text-center mt-8 space-x-4'>
<Link href='/authentication/signup'>
<a data-cy='get-started'>
<Button>{t('home:get-started')}</Button>
</a>
<Link href='/authentication/signup' passHref>
<ButtonLink data-cy='get-started'>
{t('home:get-started')}
</ButtonLink>
</Link>
<a
<SocialMediaLink
socialMedia='GitHub'
href='https://github.com/Thream'
target='_blank'
rel='noopener noreferrer'
>
<SocialMediaButton socialMedia='GitHub' />
</a>
/>
</div>
</section>
</section>
</div>
</div>
</Main>
<Footer version={version} />
</ScrollableBody>