♻️ Re-organize workspace folders
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user