2
0

♻️ 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

@@ -11,8 +11,8 @@ import {
Textarea,
} from '@chakra-ui/react'
import React, { useEffect, useState } from 'react'
import { PublicTypebot } from 'models'
import { sendRequest } from 'utils'
import { PublicTypebot } from '@typebot.io/schemas'
import { sendRequest } from '@typebot.io/lib'
import { DontIcon } from 'assets/icons/DontIcon'
import { DoIcon } from 'assets/icons/DoIcon'
import { HandDrawnArrow } from 'assets/illustrations/HandDrawnArrow'

View File

@@ -2,10 +2,10 @@ import { Flex, Stack, Heading, Text, Button, VStack } from '@chakra-ui/react'
import { Standard } from '@typebot.io/react'
import { ArrowRight } from 'assets/icons/ArrowRight'
import { HandDrawnArrow } from 'assets/illustrations/HandDrawnArrow'
import { PublicTypebot, Typebot } from 'models'
import { PublicTypebot, Typebot } from '@typebot.io/schemas'
import Link from 'next/link'
import React, { useEffect, useRef, useState } from 'react'
import { sendRequest } from 'utils'
import { sendRequest } from '@typebot.io/lib'
const nameBlockId = 'shuUtMDMw9P4iAHbz7B5SqJ'
const messageBlockId = 'sqvXpT1YXE3Htp6BCPvVGv3'

View File

@@ -17,10 +17,10 @@ import {
} from '@chakra-ui/react'
import { CheckIcon } from 'assets/icons/CheckIcon'
import { HelpCircleIcon } from 'assets/icons/HelpCircleIcon'
import { Plan } from 'db'
import { Plan } from '@typebot.io/prisma'
import Link from 'next/link'
import React, { useEffect, useState } from 'react'
import { chatsLimit, formatPrice, storageLimit } from 'utils/pricing'
import { chatsLimit, formatPrice, storageLimit } from '@typebot.io/lib/pricing'
type Props = {
starterPrice: string

View File

@@ -10,7 +10,7 @@ import {
} from '@chakra-ui/react'
import * as React from 'react'
import { useEffect, useState } from 'react'
import { formatPrice } from 'utils/pricing'
import { formatPrice } from '@typebot.io/lib/pricing'
import { CheckCircleIcon } from '../../../assets/icons/CheckCircleIcon'
import { Card, CardProps } from './Card'

View File

@@ -11,11 +11,11 @@ import {
} from '@chakra-ui/react'
import { ChevronDownIcon } from 'assets/icons/ChevronDownIcon'
import { HelpCircleIcon } from 'assets/icons/HelpCircleIcon'
import { Plan } from 'db'
import { Plan } from '@typebot.io/prisma'
import Link from 'next/link'
import React, { useEffect, useState } from 'react'
import { parseNumberWithCommas } from 'utils'
import { chatsLimit, computePrice, storageLimit } from 'utils/pricing'
import { parseNumberWithCommas } from '@typebot.io/lib'
import { chatsLimit, computePrice, storageLimit } from '@typebot.io/lib/pricing'
import { PricingCard } from './PricingCard'
export const ProPlanCard = () => {

View File

@@ -11,11 +11,11 @@ import {
} from '@chakra-ui/react'
import { ChevronDownIcon } from 'assets/icons/ChevronDownIcon'
import { HelpCircleIcon } from 'assets/icons/HelpCircleIcon'
import { Plan } from 'db'
import { Plan } from '@typebot.io/prisma'
import Link from 'next/link'
import React, { useEffect, useState } from 'react'
import { parseNumberWithCommas } from 'utils'
import { chatsLimit, computePrice, storageLimit } from 'utils/pricing'
import { parseNumberWithCommas } from '@typebot.io/lib'
import { chatsLimit, computePrice, storageLimit } from '@typebot.io/lib/pricing'
import { PricingCard } from './PricingCard'
export const StarterPlanCard = () => {

View File

@@ -2,10 +2,10 @@
"name": "landing-page",
"version": "1.0.0",
"scripts": {
"dev": "cross-env ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3002",
"dev": "cross-env ENVSH_ENV=.env.local bash ../../scripts/env.sh next dev -p 3002",
"start": "next start",
"build": "next build",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/landing-page/.env.docker ENVSH_OUTPUT=./apps/landing-page/public/__env.js bash env.sh",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/landing-page/.env.docker ENVSH_OUTPUT=./apps/landing-page/public/__env.js bash scripts/env.sh",
"lint": "next lint",
"analyze": "cross-env ANALYZE=true next build"
},
@@ -18,14 +18,14 @@
"@typebot.io/react": "workspace:*",
"@typebot.io/js": "workspace:*",
"aos": "2.3.4",
"db": "workspace:*",
"@typebot.io/prisma": "workspace:*",
"focus-visible": "5.2.0",
"framer-motion": "10.3.0",
"models": "workspace:*",
"@typebot.io/schemas": "workspace:*",
"next": "13.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"utils": "workspace:*"
"@typebot.io/lib": "workspace:*"
},
"devDependencies": {
"@babel/core": "7.21.0",
@@ -41,7 +41,7 @@
"next-transpile-modules": "10.0.0",
"postcss": "8.4.21",
"prettier": "2.8.4",
"tsconfig": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"typescript": "4.9.5"
}
}

View File

@@ -19,7 +19,7 @@ import { SocialMetaTags } from 'components/common/SocialMetaTags'
import { BackgroundPolygons } from 'components/Homepage/Hero/BackgroundPolygons'
import { PlanComparisonTables } from 'components/PricingPage/PlanComparisonTables'
import { useEffect, useState } from 'react'
import { formatPrice, prices } from 'utils/pricing'
import { formatPrice, prices } from '@typebot.io/lib/pricing'
import { StripeClimateLogo } from 'assets/logos/StripeClimateLogo'
import { FreePlanCard } from 'components/PricingPage/FreePlanCard'
import { StarterPlanCard } from 'components/PricingPage/StarterPlanCard'

View File

@@ -1,5 +1,5 @@
{
"extends": "tsconfig/nextjs.json",
"extends": "@typebot.io/tsconfig/nextjs.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {