Skip to content

Commit 75e1717

Browse files
authored
Remove barrel files part 02 (supabase#39956)
* Remove barrel files part 02 * Clean up
1 parent 391fdb8 commit 75e1717

File tree

67 files changed

+371
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+371
-416
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
} from 'ui'
3434
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
3535
import ShimmeringLoader from 'ui-patterns/ShimmeringLoader'
36-
import { NO_REQUIRED_CHARACTERS } from '../Auth.constants'
36+
import { NO_REQUIRED_CHARACTERS } from './Auth.constants'
3737

3838
const schema = object({
3939
DISABLE_SIGNUP: boolean().required(),

apps/studio/components/interfaces/Database/Backups/PITR/pitr-form.tsx renamed to apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import { ButtonTooltip } from 'components/ui/ButtonTooltip'
2-
import DatePicker from 'react-datepicker'
3-
import { FormPanel } from 'components/ui/Forms/FormPanel'
41
import { format } from 'date-fns'
5-
import InformationBox from 'components/ui/InformationBox'
62
import dayjs from 'dayjs'
73
import { ChevronLeft, ChevronRight, HelpCircle } from 'lucide-react'
4+
import { useMemo, useState } from 'react'
5+
import DatePicker from 'react-datepicker'
6+
7+
import { ButtonTooltip } from 'components/ui/ButtonTooltip'
8+
import { FormPanel } from 'components/ui/Forms/FormPanel'
9+
import InformationBox from 'components/ui/InformationBox'
10+
import { Timezone } from './PITR.types'
811
import {
912
constrainDateToRange,
1013
formatNumberToTwoDigits,
1114
getClientTimezone,
1215
getDatesBetweenRange,
1316
} from './PITR.utils'
14-
import { TimezoneSelection } from './TimezoneSelection'
1517
import TimeInput from './TimeInput'
16-
import { Timezone } from './PITR.types'
17-
import { useMemo, useState } from 'react'
18+
import { TimezoneSelection } from './TimezoneSelection'
1819

1920
type Props = {
2021
onSubmit: (data: {

apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { BackupsEmpty } from '../BackupsEmpty'
2121
import { BackupsStorageAlert } from '../BackupsStorageAlert'
2222
import type { Timezone } from './PITR.types'
2323
import { getClientTimezone } from './PITR.utils'
24+
import { PITRForm } from './PITRForm'
2425
import PITRStatus from './PITRStatus'
25-
import { PITRForm } from './pitr-form'
2626

2727
export const PITRSelection = () => {
2828
const router = useRouter()

apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Loader2 } from 'lucide-react'
33
import Link from 'next/link'
44
import { useState } from 'react'
55

6-
import { PITRForm } from 'components/interfaces/Database/Backups/PITR/pitr-form'
6+
import { PITRForm } from 'components/interfaces/Database/Backups/PITR/PITRForm'
77
import { BackupsList } from 'components/interfaces/Database/Backups/RestoreToNewProject/BackupsList'
88
import { ConfirmRestoreDialog } from 'components/interfaces/Database/Backups/RestoreToNewProject/ConfirmRestoreDialog'
99
import { CreateNewProjectDialog } from 'components/interfaces/Database/Backups/RestoreToNewProject/CreateNewProjectDialog'

apps/studio/components/interfaces/Docs/GeneralContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface GeneralContentProps {
1010
showApiKey: string
1111
}
1212

13-
const GeneralContent = ({ selectedLang, page, showApiKey }: GeneralContentProps) => {
13+
export const GeneralContent = ({ selectedLang, page, showApiKey }: GeneralContentProps) => {
1414
let selected = page?.toLowerCase()
1515
if (selected == 'intro' || selected == null) return <Introduction selectedLang={selectedLang} />
1616
if (selected == 'auth')
@@ -27,5 +27,3 @@ const GeneralContent = ({ selectedLang, page, showApiKey }: GeneralContentProps)
2727
</div>
2828
)
2929
}
30-
31-
export default GeneralContent

apps/studio/components/interfaces/Docs/LangSelector.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface LangSelectorProps {
2525
setSelectedApiKey: (showApiKey: showApiKey) => void
2626
}
2727

28-
const LangSelector = ({
28+
export const LangSelector = ({
2929
selectedLang,
3030
selectedApiKey,
3131
setSelectedLang,
@@ -165,5 +165,3 @@ const LangSelector = ({
165165
</div>
166166
)
167167
}
168-
169-
export default LangSelector

apps/studio/components/interfaces/Docs/ResourceContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface ResourceContentProps {
1919
refreshDocs: () => void
2020
}
2121

22-
const ResourceContent = ({
22+
export const ResourceContent = ({
2323
apiEndpoint,
2424
resourceId,
2525
resources,
@@ -327,5 +327,3 @@ const ResourceContent = ({
327327
</>
328328
)
329329
}
330-
331-
export default ResourceContent

apps/studio/components/interfaces/Docs/RpcContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface RpcContentProps {
1919
refreshDocs: () => void
2020
}
2121

22-
const RpcContent = ({
22+
export const RpcContent = ({
2323
rpcId,
2424
rpcs,
2525
paths,
@@ -100,5 +100,3 @@ const RpcContent = ({
100100
</>
101101
)
102102
}
103-
104-
export default RpcContent

apps/studio/components/interfaces/Docs/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)