build(deps): update latest
This commit is contained in:
parent
5d350e8db9
commit
ccaf5234ed
4
.gitignore
vendored
4
.gitignore
vendored
@ -50,3 +50,7 @@ npm-debug.log*
|
|||||||
.lighthouseci
|
.lighthouseci
|
||||||
.vercel
|
.vercel
|
||||||
*.hbs
|
*.hbs
|
||||||
|
|
||||||
|
# typescript
|
||||||
|
*.tsbuildinfo
|
||||||
|
next-env.d.ts
|
||||||
|
@ -23,12 +23,12 @@ export const CreateGuild: React.FC = () => {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const { handleUseForm, fetchState, message, errors } = useForm(schema as any)
|
const { handleUseForm, fetchState, message, errors } = useForm(schema)
|
||||||
const { getFirstErrorTranslation } = useFormTranslation()
|
const { getFirstErrorTranslation } = useFormTranslation()
|
||||||
|
|
||||||
const { authentication } = useAuthentication()
|
const { authentication } = useAuthentication()
|
||||||
|
|
||||||
const onSubmit: HandleUseFormCallback<any> = async (formData) => {
|
const onSubmit: HandleUseFormCallback<typeof schema> = async (formData) => {
|
||||||
try {
|
try {
|
||||||
const { data } = await authentication.api.post<
|
const { data } = await authentication.api.post<
|
||||||
any,
|
any,
|
||||||
|
@ -47,10 +47,10 @@ export const GuildSettings: React.FC = () => {
|
|||||||
errors,
|
errors,
|
||||||
setFetchState,
|
setFetchState,
|
||||||
setMessage
|
setMessage
|
||||||
} = useForm(schema as any)
|
} = useForm(schema)
|
||||||
const { getFirstErrorTranslation } = useFormTranslation()
|
const { getFirstErrorTranslation } = useFormTranslation()
|
||||||
|
|
||||||
const onSubmit: HandleUseFormCallback<any> = async (formData) => {
|
const onSubmit: HandleUseFormCallback<typeof schema> = async (formData) => {
|
||||||
try {
|
try {
|
||||||
await authentication.api.put(`/guilds/${guild.id}`, formData)
|
await authentication.api.put(`/guilds/${guild.id}`, formData)
|
||||||
setInputValues(formData as unknown as any)
|
setInputValues(formData as unknown as any)
|
||||||
@ -206,7 +206,7 @@ export const GuildSettings: React.FC = () => {
|
|||||||
message={
|
message={
|
||||||
message != null
|
message != null
|
||||||
? t(message)
|
? t(message)
|
||||||
: getFirstErrorTranslation(errors.email)
|
: getFirstErrorTranslation(errors.name)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
5
next-env.d.ts
vendored
5
next-env.d.ts
vendored
@ -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
2478
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
@ -35,20 +35,20 @@
|
|||||||
"@fontsource/montserrat": "4.5.12",
|
"@fontsource/montserrat": "4.5.12",
|
||||||
"@fontsource/roboto": "4.5.8",
|
"@fontsource/roboto": "4.5.8",
|
||||||
"@heroicons/react": "1.0.6",
|
"@heroicons/react": "1.0.6",
|
||||||
"@sinclair/typebox": "0.24.34",
|
"@sinclair/typebox": "0.24.42",
|
||||||
"axios": "0.26.1",
|
"axios": "0.26.1",
|
||||||
"clsx": "1.2.1",
|
"clsx": "1.2.1",
|
||||||
"date-and-time": "2.4.1",
|
"date-and-time": "2.4.1",
|
||||||
"emoji-mart": "3.0.1",
|
"emoji-mart": "3.0.1",
|
||||||
"framer-motion": "7.2.1",
|
"framer-motion": "7.3.6",
|
||||||
"katex": "0.16.2",
|
"katex": "0.16.2",
|
||||||
"next": "12.2.5",
|
"next": "12.3.1",
|
||||||
"next-pwa": "5.6.0",
|
"next-pwa": "5.6.0",
|
||||||
"next-themes": "0.2.0",
|
"next-themes": "0.2.1",
|
||||||
"next-translate": "1.5.0",
|
"next-translate": "1.6.0",
|
||||||
"pretty-bytes": "6.0.0",
|
"pretty-bytes": "6.0.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-component-form": "3.1.0",
|
"react-component-form": "3.1.1",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-infinite-scroll-component": "6.1.0",
|
"react-infinite-scroll-component": "6.1.0",
|
||||||
"react-markdown": "8.0.3",
|
"react-markdown": "8.0.3",
|
||||||
@ -61,8 +61,8 @@
|
|||||||
"remark-breaks": "3.0.2",
|
"remark-breaks": "3.0.2",
|
||||||
"remark-gfm": "3.0.1",
|
"remark-gfm": "3.0.1",
|
||||||
"remark-math": "5.1.1",
|
"remark-math": "5.1.1",
|
||||||
"sharp": "0.30.7",
|
"sharp": "0.31.0",
|
||||||
"socket.io-client": "4.5.1",
|
"socket.io-client": "4.5.2",
|
||||||
"unified": "10.1.2",
|
"unified": "10.1.2",
|
||||||
"unist-util-visit": "4.1.1",
|
"unist-util-visit": "4.1.1",
|
||||||
"universal-cookie": "4.0.4"
|
"universal-cookie": "4.0.4"
|
||||||
@ -76,19 +76,19 @@
|
|||||||
"@types/emoji-mart": "3.0.9",
|
"@types/emoji-mart": "3.0.9",
|
||||||
"@types/hast": "2.3.4",
|
"@types/hast": "2.3.4",
|
||||||
"@types/katex": "0.14.0",
|
"@types/katex": "0.14.0",
|
||||||
"@types/node": "18.7.14",
|
"@types/node": "18.7.18",
|
||||||
"@types/react": "18.0.18",
|
"@types/react": "18.0.20",
|
||||||
"@types/react-responsive": "8.0.5",
|
"@types/react-responsive": "8.0.5",
|
||||||
"@types/react-syntax-highlighter": "15.5.5",
|
"@types/react-syntax-highlighter": "15.5.5",
|
||||||
"@types/unist": "2.0.6",
|
"@types/unist": "2.0.6",
|
||||||
"@typescript-eslint/eslint-plugin": "5.36.1",
|
"@typescript-eslint/eslint-plugin": "5.38.0",
|
||||||
"@typescript-eslint/parser": "5.36.1",
|
"@typescript-eslint/parser": "5.38.0",
|
||||||
"autoprefixer": "10.4.8",
|
"autoprefixer": "10.4.12",
|
||||||
"cypress": "10.7.0",
|
"cypress": "10.8.0",
|
||||||
"editorconfig-checker": "4.0.2",
|
"editorconfig-checker": "4.0.2",
|
||||||
"eslint": "8.23.0",
|
"eslint": "8.23.1",
|
||||||
"eslint-config-conventions": "4.0.0",
|
"eslint-config-conventions": "4.0.1",
|
||||||
"eslint-config-next": "12.2.5",
|
"eslint-config-next": "12.3.1",
|
||||||
"eslint-config-prettier": "8.5.0",
|
"eslint-config-prettier": "8.5.0",
|
||||||
"eslint-plugin-import": "2.26.0",
|
"eslint-plugin-import": "2.26.0",
|
||||||
"eslint-plugin-prettier": "4.2.1",
|
"eslint-plugin-prettier": "4.2.1",
|
||||||
@ -107,7 +107,7 @@
|
|||||||
"serve": "14.0.1",
|
"serve": "14.0.1",
|
||||||
"start-server-and-test": "1.14.0",
|
"start-server-and-test": "1.14.0",
|
||||||
"tailwindcss": "3.1.8",
|
"tailwindcss": "3.1.8",
|
||||||
"typescript": "4.8.2",
|
"typescript": "4.8.3",
|
||||||
"vercel": "28.2.0"
|
"vercel": "28.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import type { AppProps } from 'next/app'
|
import type { AppType } from 'next/app'
|
||||||
import { ThemeProvider } from 'next-themes'
|
import { ThemeProvider } from 'next-themes'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ import '@fontsource/roboto/700.css'
|
|||||||
|
|
||||||
import { cookies } from '../tools/cookies'
|
import { cookies } from '../tools/cookies'
|
||||||
|
|
||||||
const Application = ({ Component, pageProps }: AppProps): JSX.Element => {
|
const Application: AppType = ({ Component, pageProps }) => {
|
||||||
const { lang } = useTranslation()
|
const { lang } = useTranslation()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Reference in New Issue
Block a user