♻️ Re-organize workspace folders

This commit is contained in:
Baptiste Arnaud
2023-03-15 08:35:16 +01:00
parent 25c367901f
commit cbc8194f19
987 changed files with 2716 additions and 2770 deletions

View File

@@ -17,7 +17,7 @@ import {
} from '@chakra-ui/react'
import { useToast } from '@/hooks/useToast'
import { useEffect, useRef, useState } from 'react'
import { env, getViewerUrl } from 'utils'
import { env, getViewerUrl } from '@typebot.io/lib'
import { createCustomDomainQuery } from '../queries/createCustomDomainQuery'
const hostnameRegex =

View File

@@ -1,9 +1,9 @@
import test, { expect } from '@playwright/test'
import { InputBlockType, defaultTextInputOptions } from 'models'
import { InputBlockType, defaultTextInputOptions } from '@typebot.io/schemas'
import { createId } from '@paralleldrive/cuid2'
import { createTypebots } from 'utils/playwright/databaseActions'
import { parseDefaultGroupWithBlock } from 'utils/playwright/databaseHelpers'
import { starterWorkspaceId } from 'utils/playwright/databaseSetup'
import { createTypebots } from '@typebot.io/lib/playwright/databaseActions'
import { parseDefaultGroupWithBlock } from '@typebot.io/lib/playwright/databaseHelpers'
import { starterWorkspaceId } from '@typebot.io/lib/playwright/databaseSetup'
test('should be able to connect custom domain', async ({ page }) => {
const typebotId = createId()

View File

@@ -1,4 +1,4 @@
import { CustomDomain } from 'db'
import { CustomDomain } from '@typebot.io/prisma'
import { stringify } from 'qs'
import { fetcher } from '@/utils/helpers'
import useSWR from 'swr'

View File

@@ -1,6 +1,6 @@
import { CustomDomain, Credentials } from 'db'
import { CustomDomain, Credentials } from '@typebot.io/prisma'
import { stringify } from 'qs'
import { sendRequest } from 'utils'
import { sendRequest } from '@typebot.io/lib'
export const createCustomDomainQuery = async (
workspaceId: string,

View File

@@ -1,6 +1,6 @@
import { Credentials } from 'db'
import { Credentials } from '@typebot.io/prisma'
import { stringify } from 'qs'
import { sendRequest } from 'utils'
import { sendRequest } from '@typebot.io/lib'
export const deleteCustomDomainQuery = async (
workspaceId: string,