diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 80a1b01419..3051e4b7f4 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -39,11 +39,6 @@ jobs: with: mysql database: 'discordbots' mysql root password: 'test' - - name: Wait for MySQL - run: | - while ! mysqladmin ping --host=127.0.0.1 --password=test --silent; do - sleep 1 - done - name: Run Jest run: yarn test - name: Generate RSA Key Pair @@ -56,12 +51,14 @@ jobs: run: | mv .env.demo.local .env.production.local printf 'MARIADB_ROOT_PASSWORD=YOUSHALLNOTPASS\nCOMMIT_HASH=${{ github.sha }}' > .env - - name: Create needed files - run: echo '{"tester":"DEMO_KEY"}' > secret.json + printf 'defaults.url=https://sentry.io/\ndefaults.org=koreanbots\ndefaults.project=client' > sentry.properties - name: Build run: yarn build env: CI: true + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.SENTRY_DSN }} + SENTRY_DSN: ${{ secrets.SENTRY_DSN }} # docker: # needs: diff --git a/SECURITY.md b/SECURITY.md index e86632cc94..303199772b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,4 +6,4 @@ ## English -Please [mail](mailto:koreanbots.dev@gmail.com) us! +Please [mail](mailto:team@koreanbots.dev) us! diff --git a/api-docs b/api-docs index 3636d4a151..fcc3fb57a2 160000 --- a/api-docs +++ b/api-docs @@ -1 +1 @@ -Subproject commit 3636d4a1519f412ede7ab0b301dd8ca4bdd16a7b +Subproject commit fcc3fb57a2bce58703acb6a2e9be4cfe98929427 diff --git a/components/ReportTemplate.tsx b/components/ReportTemplate.tsx new file mode 100644 index 0000000000..646b2bb336 --- /dev/null +++ b/components/ReportTemplate.tsx @@ -0,0 +1,78 @@ +import { FC, useState } from 'react' +import dynamic from 'next/dynamic' +import { FormikErrors, FormikTouched } from 'formik' + +const Button = dynamic(() => import('@components/Button')) +const TextArea = dynamic(() => import('@components/Form/TextArea')) + +export const Check: FC<{ checked: boolean, text: string }> = ({ checked, text }) => <> + {checked && } + {text} + + +export const SubmitButton: FC = () =>
+ +
+ +export const TextField: FC = ({ values, errors, touched, setFieldValue }) => <> +