build(deps): update latest

This commit is contained in:
Divlo 2022-09-21 10:09:36 +02:00
parent 5d350e8db9
commit ccaf5234ed
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
7 changed files with 1314 additions and 1225 deletions

4
.gitignore vendored
View File

@ -50,3 +50,7 @@ npm-debug.log*
.lighthouseci
.vercel
*.hbs
# typescript
*.tsbuildinfo
next-env.d.ts

View File

@ -23,12 +23,12 @@ export const CreateGuild: React.FC = () => {
const { t } = useTranslation()
const router = useRouter()
const { handleUseForm, fetchState, message, errors } = useForm(schema as any)
const { handleUseForm, fetchState, message, errors } = useForm(schema)
const { getFirstErrorTranslation } = useFormTranslation()
const { authentication } = useAuthentication()
const onSubmit: HandleUseFormCallback<any> = async (formData) => {
const onSubmit: HandleUseFormCallback<typeof schema> = async (formData) => {
try {
const { data } = await authentication.api.post<
any,

View File

@ -47,10 +47,10 @@ export const GuildSettings: React.FC = () => {
errors,
setFetchState,
setMessage
} = useForm(schema as any)
} = useForm(schema)
const { getFirstErrorTranslation } = useFormTranslation()
const onSubmit: HandleUseFormCallback<any> = async (formData) => {
const onSubmit: HandleUseFormCallback<typeof schema> = async (formData) => {
try {
await authentication.api.put(`/guilds/${guild.id}`, formData)
setInputValues(formData as unknown as any)
@ -206,7 +206,7 @@ export const GuildSettings: React.FC = () => {
message={
message != null
? t(message)
: getFirstErrorTranslation(errors.email)
: getFirstErrorTranslation(errors.name)
}
/>
</div>

5
next-env.d.ts vendored
View File

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

2478
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -35,20 +35,20 @@
"@fontsource/montserrat": "4.5.12",
"@fontsource/roboto": "4.5.8",
"@heroicons/react": "1.0.6",
"@sinclair/typebox": "0.24.34",
"@sinclair/typebox": "0.24.42",
"axios": "0.26.1",
"clsx": "1.2.1",
"date-and-time": "2.4.1",
"emoji-mart": "3.0.1",
"framer-motion": "7.2.1",
"framer-motion": "7.3.6",
"katex": "0.16.2",
"next": "12.2.5",
"next": "12.3.1",
"next-pwa": "5.6.0",
"next-themes": "0.2.0",
"next-translate": "1.5.0",
"next-themes": "0.2.1",
"next-translate": "1.6.0",
"pretty-bytes": "6.0.0",
"react": "18.2.0",
"react-component-form": "3.1.0",
"react-component-form": "3.1.1",
"react-dom": "18.2.0",
"react-infinite-scroll-component": "6.1.0",
"react-markdown": "8.0.3",
@ -61,8 +61,8 @@
"remark-breaks": "3.0.2",
"remark-gfm": "3.0.1",
"remark-math": "5.1.1",
"sharp": "0.30.7",
"socket.io-client": "4.5.1",
"sharp": "0.31.0",
"socket.io-client": "4.5.2",
"unified": "10.1.2",
"unist-util-visit": "4.1.1",
"universal-cookie": "4.0.4"
@ -76,19 +76,19 @@
"@types/emoji-mart": "3.0.9",
"@types/hast": "2.3.4",
"@types/katex": "0.14.0",
"@types/node": "18.7.14",
"@types/react": "18.0.18",
"@types/node": "18.7.18",
"@types/react": "18.0.20",
"@types/react-responsive": "8.0.5",
"@types/react-syntax-highlighter": "15.5.5",
"@types/unist": "2.0.6",
"@typescript-eslint/eslint-plugin": "5.36.1",
"@typescript-eslint/parser": "5.36.1",
"autoprefixer": "10.4.8",
"cypress": "10.7.0",
"@typescript-eslint/eslint-plugin": "5.38.0",
"@typescript-eslint/parser": "5.38.0",
"autoprefixer": "10.4.12",
"cypress": "10.8.0",
"editorconfig-checker": "4.0.2",
"eslint": "8.23.0",
"eslint-config-conventions": "4.0.0",
"eslint-config-next": "12.2.5",
"eslint": "8.23.1",
"eslint-config-conventions": "4.0.1",
"eslint-config-next": "12.3.1",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.2.1",
@ -107,7 +107,7 @@
"serve": "14.0.1",
"start-server-and-test": "1.14.0",
"tailwindcss": "3.1.8",
"typescript": "4.8.2",
"vercel": "28.2.0"
"typescript": "4.8.3",
"vercel": "28.3.0"
}
}

View File

@ -1,5 +1,5 @@
import { useEffect } from 'react'
import type { AppProps } from 'next/app'
import type { AppType } from 'next/app'
import { ThemeProvider } from 'next-themes'
import useTranslation from 'next-translate/useTranslation'
@ -15,7 +15,7 @@ import '@fontsource/roboto/700.css'
import { cookies } from '../tools/cookies'
const Application = ({ Component, pageProps }: AppProps): JSX.Element => {
const Application: AppType = ({ Component, pageProps }) => {
const { lang } = useTranslation()
useEffect(() => {