2
0

♻️ (builder) Remove barrel export and flatten folder arch

This commit is contained in:
Baptiste Arnaud
2023-03-15 11:51:30 +01:00
parent cbc8194f19
commit 44d7a0bcb8
498 changed files with 1542 additions and 1786 deletions

View File

@ -12,12 +12,12 @@ import {
ModalFooter,
Flex,
} from '@chakra-ui/react'
import { useWorkspace } from '@/features/workspace'
import { useWorkspace } from '@/features/workspace/WorkspaceProvider'
import Link from 'next/link'
import React from 'react'
import { AlertInfo } from '@/components/AlertInfo'
import { GoogleLogo } from '@/components/GoogleLogo'
import { getGoogleSheetsConsentScreenUrlQuery } from '../../queries/getGoogleSheetsConsentScreenUrlQuery'
import { getGoogleSheetsConsentScreenUrlQuery } from '../queries/getGoogleSheetsConsentScreenUrlQuery'
type Props = {
isOpen: boolean

View File

@ -1,6 +1,6 @@
import { Divider, Stack, Text, useDisclosure } from '@chakra-ui/react'
import { DropdownList } from '@/components/DropdownList'
import { useTypebot } from '@/features/editor'
import { useTypebot } from '@/features/editor/providers/TypebotProvider'
import {
Cell,
defaultGoogleSheetsGetOptions,
@ -21,12 +21,12 @@ import { CellWithValueStack } from './CellWithValueStack'
import { CellWithVariableIdStack } from './CellWithVariableIdStack'
import { GoogleSheetConnectModal } from './GoogleSheetsConnectModal'
import { TableListItemProps, TableList } from '@/components/TableList'
import { CredentialsDropdown } from '@/features/credentials'
import { useSheets } from '../../hooks/useSheets'
import { Sheet } from '../../types'
import { CredentialsDropdown } from '@/features/credentials/components/CredentialsDropdown'
import { RowsFilterTableList } from './RowsFilterTableList'
import { createId } from '@paralleldrive/cuid2'
import { useWorkspace } from '@/features/workspace'
import { useWorkspace } from '@/features/workspace/WorkspaceProvider'
import { useSheets } from '../hooks/useSheets'
import { Sheet } from '../types'
type Props = {
options: GoogleSheetsOptions
@ -34,7 +34,7 @@ type Props = {
blockId: string
}
export const GoogleSheetsSettingsBody = ({
export const GoogleSheetsSettings = ({
options,
onOptionsChange,
blockId,

View File

@ -1,2 +0,0 @@
export * from './RowsFilterComparisonItem'
export * from './RowsFilterTableList'

View File

@ -1 +0,0 @@
export { GoogleSheetsSettingsBody } from './GoogleSheetsSettingsBody'

View File

@ -1,7 +1,7 @@
import { MoreInfoTooltip } from '@/components/MoreInfoTooltip'
import { Select } from '@/components/inputs/Select'
import { HStack, Input } from '@chakra-ui/react'
import { Sheet } from '../../types'
import { Sheet } from '../types'
type Props = {
sheets: Sheet[]

View File

@ -1,6 +1,6 @@
import { Select } from '@/components/inputs/Select'
import { Input, Tooltip } from '@chakra-ui/react'
import { useSpreadsheets } from '../../hooks/useSpreadsheets'
import { useSpreadsheets } from '../hooks/useSpreadsheets'
type Props = {
credentialsId: string

View File

@ -1,5 +1,5 @@
import { stringify } from 'qs'
import { fetcher } from '@/utils/helpers'
import { fetcher } from '@/helpers/fetcher'
import useSWR from 'swr'
import { Sheet } from '../types'

View File

@ -1,5 +1,5 @@
import { stringify } from 'qs'
import { fetcher } from '@/utils/helpers'
import { fetcher } from '@/helpers/fetcher'
import useSWR from 'swr'
import { Spreadsheet } from '../types'

View File

@ -1,3 +0,0 @@
export { GoogleSheetsSettingsBody } from './components/GoogleSheetsSettingsBody'
export { GoogleSheetsNodeContent } from './components/GoogleSheetsNodeContent'
export { GoogleSheetsLogo } from './components/GoogleSheetsLogo'