2
0

♻️ Normalize data

This commit is contained in:
Baptiste Arnaud
2022-01-06 09:40:56 +01:00
parent 6c1e0fd345
commit 9fa4c7dffa
114 changed files with 1545 additions and 1632 deletions

View File

@ -1,4 +1,5 @@
import { Answer, PublicTypebot, TypebotViewer } from 'bot-engine'
import { TypebotViewer } from 'bot-engine'
import { Answer, PublicTypebot } from 'models'
import React, { useEffect, useState } from 'react'
import { upsertAnswer } from 'services/answer'
import { SEO } from '../components/Seo'

View File

@ -1,6 +0,0 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withTM = require('next-transpile-modules')(['utils'])
module.exports = withTM({
reactStrictMode: true,
})

View File

@ -11,6 +11,7 @@
"dependencies": {
"bot-engine": "*",
"db": "*",
"models": "*",
"next": "^12.0.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
@ -19,7 +20,7 @@
"devDependencies": {
"@types/node": "^17.0.4",
"@types/react": "^17.0.38",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"eslint": "<8.0.0",
"eslint-config-next": "12.0.7",
"eslint-config-prettier": "^8.3.0",

View File

@ -1,4 +1,4 @@
import { PublicTypebot } from 'bot-engine'
import { PublicTypebot } from 'models'
import { GetServerSideProps, GetServerSidePropsContext } from 'next'
import { TypebotPage, TypebotPageProps } from '../layouts/TypebotPage'
import prisma from '../libs/prisma'

View File

@ -1,4 +1,4 @@
import { PublicTypebot } from 'bot-engine'
import { PublicTypebot } from 'models'
import { GetServerSideProps, GetServerSidePropsContext } from 'next'
import { TypebotPage, TypebotPageProps } from '../layouts/TypebotPage'
import prisma from '../libs/prisma'

View File

@ -1,4 +1,4 @@
import { Answer } from 'bot-engine'
import { Answer } from 'models'
import { sendRequest } from 'utils'
export const upsertAnswer = async (answer: Answer & { resultId: string }) => {