mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
remove layouts barrel file
This commit is contained in:
1 parent
22d34bd15a
commit
d7ae2c7a4e
104 files changed
+136
-156
No files matched your search
@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'
|
||||
|
||||
import { ProductMenu } from 'components/ui/ProductMenu'
|
||||
import { useSelectedProject, withAuth } from 'hooks'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { generateAdvisorsMenu } from './AdvisorsMenu.utils'
|
||||
|
||||
export interface AdvisorsLayoutProps {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useAuthConfigPrefetch } from 'data/auth/auth-config-query'
|
||||
import { withAuth } from 'hooks'
|
||||
import Link from 'next/link'
|
||||
import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { generateAuthMenu } from './AuthLayout.utils'
|
||||
|
||||
export interface AuthLayoutProps {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Link from 'next/link'
|
||||
import type { PropsWithChildren } from 'react'
|
||||
|
||||
import { ProjectLayout } from 'components/layouts'
|
||||
import ProjectLayout from 'components/layouts/ProjectLayout/ProjectLayout'
|
||||
import { useSelectedOrganization, useSelectedProject, withAuth } from 'hooks'
|
||||
import { IconX } from 'ui'
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'
|
||||
import { useSelectedProject, withAuth } from 'hooks'
|
||||
import Link from 'next/link'
|
||||
import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_ } from 'ui'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { generateDatabaseMenu } from './DatabaseMenu.utils'
|
||||
|
||||
export interface DatabaseLayoutProps {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ProductMenu } from 'components/ui/ProductMenu'
|
||||
import { useOpenAPISpecQuery } from 'data/open-api/api-spec-query'
|
||||
import { useIsFeatureEnabled, useSelectedProject, withAuth } from 'hooks'
|
||||
import { PROJECT_STATUS } from 'lib/constants'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { generateDocsMenu } from './DocsLayout.utils'
|
||||
|
||||
function DocsLayout({ title, children }: { title: string; children: ReactElement }) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import { useEdgeFunctionsQuery } from 'data/edge-functions/edge-functions-query'
|
||||
import { useCheckPermissions, withAuth } from 'hooks'
|
||||
import { Button, IconCode, IconExternalLink } from 'ui'
|
||||
import FunctionsNav from '../interfaces/Functions/FunctionsNav'
|
||||
import { ProjectLayout } from './'
|
||||
import ProjectLayout from './ProjectLayout/ProjectLayout'
|
||||
|
||||
interface FunctionsLayoutProps {
|
||||
title?: string
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
useSelectedProject,
|
||||
withAuth,
|
||||
} from 'hooks'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { generateLogsMenu } from './LogsMenu.utils'
|
||||
import { Badge, Menu } from 'ui'
|
||||
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
||||
|
||||
@@ -3,13 +3,13 @@ import type { PropsWithChildren } from 'react'
|
||||
|
||||
import { useParams } from 'common'
|
||||
import { useFlag, useIsFeatureEnabled, useSelectedOrganization } from 'hooks'
|
||||
import { useCurrentPath } from 'hooks/misc/useCurrentPath'
|
||||
import Link from 'next/link'
|
||||
import { NavMenu, NavMenuItem } from 'ui'
|
||||
import { AccountLayout } from './'
|
||||
import { useOrgSubscriptionQuery } from '../../data/subscriptions/org-subscription-query'
|
||||
import AccountLayout from './AccountLayout/AccountLayout'
|
||||
import { ScaffoldContainer, ScaffoldDivider, ScaffoldHeader, ScaffoldTitle } from './Scaffold'
|
||||
import SettingsLayout from './SettingsLayout/SettingsLayout'
|
||||
import Link from 'next/link'
|
||||
import { useOrgSubscriptionQuery } from '../../data/subscriptions/org-subscription-query'
|
||||
import { useCurrentPath } from 'hooks/misc/useCurrentPath'
|
||||
|
||||
const OrganizationLayout = ({ children }: PropsWithChildren<{}>) => {
|
||||
const selectedOrganization = useSelectedOrganization()
|
||||
|
||||
@@ -5,8 +5,8 @@ import { generateSettingsMenu } from './SettingsMenu.utils'
|
||||
|
||||
import { useParams } from 'common'
|
||||
import { ProductMenu } from 'components/ui/ProductMenu'
|
||||
import { ProjectLayout } from '..'
|
||||
import { IS_PLATFORM } from 'lib/constants'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
|
||||
interface SettingsLayoutProps {
|
||||
title?: string
|
||||
|
||||
@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'
|
||||
|
||||
import { ProductMenu } from 'components/ui/ProductMenu'
|
||||
import { useFlag, useSelectedProject, withAuth } from 'hooks'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { generateRealtimeMenu } from './RealtimeMenu.utils'
|
||||
|
||||
export interface RealtimeLayoutProps {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PropsWithChildren } from 'react'
|
||||
import { withAuth } from 'hooks'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import ReportsMenu from './ReportsMenu'
|
||||
|
||||
interface ReportsLayoutProps {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { withAuth } from 'hooks'
|
||||
import { ReactNode, useMemo, useState } from 'react'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import { SQLEditorMenu } from './SQLEditorMenu'
|
||||
import { OngoingQueriesPanel } from 'components/interfaces/SQLEditor/OngoingQueriesPanel'
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { AutoApiService, useProjectApiQuery } from 'data/config/project-api-quer
|
||||
import { useSelectedProject, withAuth } from 'hooks'
|
||||
import { PROJECT_STATUS } from 'lib/constants'
|
||||
import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'
|
||||
import { ProjectLayout } from '../'
|
||||
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
||||
import StorageMenu from './StorageMenu'
|
||||
|
||||
export interface StorageLayoutProps {
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
export { default as AccountLayout } from './AccountLayout/AccountLayout'
|
||||
export { default as AuthLayout } from './AuthLayout/AuthLayout'
|
||||
export { default as BillingLayout } from './BillingLayout'
|
||||
export { default as DatabaseLayout } from './DatabaseLayout/DatabaseLayout'
|
||||
export { default as DocsLayout } from './DocsLayout/DocsLayout'
|
||||
export { default as LogsLayout } from './LogsLayout/LogsLayout'
|
||||
export { default as OrganizationLayout } from './OrganizationLayout'
|
||||
export { default as ProjectLayout } from './ProjectLayout/ProjectLayout'
|
||||
export { default as SettingsLayout } from './ProjectSettingsLayout/SettingsLayout'
|
||||
export { default as ReportsLayout } from './ReportsLayout/ReportsLayout'
|
||||
export { default as SQLEditorLayout } from './SQLEditorLayout/SQLEditorLayout'
|
||||
export { default as ForgotPasswordLayout } from './SignInLayout/ForgotPasswordLayout'
|
||||
export { default as SignInLayout } from './SignInLayout/SignInLayout'
|
||||
export { default as StorageLayout } from './StorageLayout/StorageLayout'
|
||||
export { default as TableEditorLayout } from './TableEditorLayout/TableEditorLayout'
|
||||
export { default as VercelIntegrationLayout } from './VercelIntegrationLayout'
|
||||
export { default as WizardLayout } from './WizardLayout'
|
||||
@@ -1 +1,5 @@
|
||||
export function setUser() {}
|
||||
|
||||
export function captureMessage() {}
|
||||
|
||||
export function captureException() {}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { AuditLogs } from 'components/interfaces/Account'
|
||||
import { AccountLayout } from 'components/layouts'
|
||||
import AccountLayout from 'components/layouts/AccountLayout/AccountLayout'
|
||||
import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from 'components/interfaces/Account/Preferences'
|
||||
import { AccountDeletion } from 'components/interfaces/Account/Preferences/AccountDeletion'
|
||||
import { ProfileInformation } from 'components/interfaces/Account/Preferences/ProfileInformation'
|
||||
import { AccountLayout } from 'components/layouts'
|
||||
import AccountLayout from 'components/layouts/AccountLayout/AccountLayout'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
import Panel from 'components/ui/Panel'
|
||||
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { NextPageWithLayout } from 'types'
|
||||
import { Badge, cn, Collapsible, IconSmartphone } from 'ui'
|
||||
|
||||
import { TOTPFactors } from 'components/interfaces/Account'
|
||||
import { AccountLayout } from 'components/layouts'
|
||||
import AccountLayout from 'components/layouts/AccountLayout/AccountLayout'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import { useMfaListFactorsQuery } from 'data/profile/mfa-list-factors-query'
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { useState } from 'react'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import { AccountLayout } from 'components/layouts'
|
||||
import {
|
||||
AccessTokenList,
|
||||
NewTokenBanner,
|
||||
NewAccessTokenButton,
|
||||
NewTokenBanner,
|
||||
} from 'components/interfaces/Account'
|
||||
import AccountLayout from 'components/layouts/AccountLayout/AccountLayout'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import { NewAccessToken } from 'data/access-tokens/access-tokens-create-mutation'
|
||||
import { useState } from 'react'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
import Link from 'next/link'
|
||||
import { Alert, Button, IconExternalLink } from 'ui'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import ForgotPasswordForm from 'components/interfaces/SignIn/ForgotPasswordForm'
|
||||
import { ForgotPasswordLayout } from 'components/layouts'
|
||||
import ForgotPasswordLayout from 'components/layouts/SignInLayout/ForgotPasswordLayout'
|
||||
import Link from 'next/link'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useTheme } from 'next-themes'
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
|
||||
import { NewOrgForm } from 'components/interfaces/Organization'
|
||||
import { WizardLayout } from 'components/layouts'
|
||||
import WizardLayout from 'components/layouts/WizardLayout'
|
||||
import { useSetupIntent } from 'data/stripe/setup-intent-mutation'
|
||||
import { STRIPE_PUBLIC_KEY } from 'lib/constants'
|
||||
import { useIsHCaptchaLoaded } from 'stores/hcaptcha-loaded-store'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { OAuthApps } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { AuditLogs } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useParams } from 'common'
|
||||
import { BillingSettings } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import { Documents } from 'components/interfaces/Organization'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const OrgDocuments: NextPageWithLayout = () => {
|
||||
return <Documents />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GeneralSettings as GeneralSettingsLegacy } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import { IntegrationSettings } from 'components/interfaces/Organization'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const OrgIntegrationSettings: NextPageWithLayout = () => {
|
||||
return <IntegrationSettings />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { InvoicesSettings } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TeamSettings } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Usage } from 'components/interfaces/Organization'
|
||||
import { OrganizationLayout } from 'components/layouts'
|
||||
import OrganizationLayout from 'components/layouts/OrganizationLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePermissionsQuery } from 'data/permissions/permissions-query'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
|
||||
@@ -7,7 +7,7 @@ import toast from 'react-hot-toast'
|
||||
import { useParams } from 'common'
|
||||
import ExtensionCard from 'components/interfaces/Database/Extensions/ExtensionCard'
|
||||
import GraphiQL from 'components/interfaces/GraphQL/GraphiQL'
|
||||
import { DocsLayout } from 'components/layouts'
|
||||
import DocsLayout from 'components/layouts/DocsLayout/DocsLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { useSessionAccessTokenQuery } from 'data/auth/session-access-token-query'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState } from 'react'
|
||||
|
||||
import { GeneralContent, ResourceContent, RpcContent } from 'components/interfaces/Docs'
|
||||
import LangSelector from 'components/interfaces/Docs/LangSelector'
|
||||
import { DocsLayout } from 'components/layouts'
|
||||
import DocsLayout from 'components/layouts/DocsLayout/DocsLayout'
|
||||
import { useProjectApiQuery } from 'data/config/project-api-query'
|
||||
import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'
|
||||
import { useProjectJsonSchemaQuery } from 'data/docs/project-json-schema-query'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { HooksListing } from 'components/interfaces/Auth/Hooks/HooksListing'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import { FormsContainer } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const Authentication: NextPageWithLayout = () => {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useState } from 'react'
|
||||
import { useIsRLSAIAssistantEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'
|
||||
import { Policies } from 'components/interfaces/Auth/Policies'
|
||||
import { AIPolicyEditorPanel } from 'components/interfaces/Auth/Policies/AIPolicyEditorPanel'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { AuthProvidersForm } from 'components/interfaces/Auth'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import { FormsContainer } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import RateLimits from 'components/interfaces/Auth/RateLimits/RateLimits'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import { FormsContainer } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { EmailTemplates } from 'components/interfaces/Auth'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import { FormsContainer } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import RedirectUrls from 'components/interfaces/Auth/RedirectUrls/RedirectUrls'
|
||||
import SiteUrl from 'components/interfaces/Auth/SiteUrl/SiteUrl'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import { FormsContainer } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Users } from 'components/interfaces/Auth/Users'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import AuthLayout from 'components/layouts/AuthLayout/AuthLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const UsersPage: NextPageWithLayout = () => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav'
|
||||
import { PITRNotice, PITRSelection } from 'components/interfaces/Database/Backups/PITR'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { BackupsList } from 'components/interfaces/Database'
|
||||
import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
import PrivilegesHead from 'components/interfaces/Database/Privileges/PrivilegesHead'
|
||||
import PrivilegesTable from 'components/interfaces/Database/Privileges/PrivilegesTable'
|
||||
import ProtectedSchemaWarning from 'components/interfaces/Database/ProtectedSchemaWarning'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { Extensions } from 'components/interfaces/Database'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState } from 'react'
|
||||
|
||||
import { CreateFunction, DeleteFunction } from 'components/interfaces/Database'
|
||||
import FunctionsList from 'components/interfaces/Database/Functions/FunctionsList/FunctionsList'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
|
||||
@@ -6,16 +6,16 @@ import { useParams } from 'common'
|
||||
import DeleteHookModal from 'components/interfaces/Database/Hooks/DeleteHookModal'
|
||||
import EditHookPanel from 'components/interfaces/Database/Hooks/EditHookPanel'
|
||||
import HooksList from 'components/interfaces/Database/Hooks/HooksList/HooksList'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useHooksEnableMutation } from 'data/database/hooks-enable-mutation'
|
||||
import { useSchemasQuery } from 'data/database/schemas-query'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
|
||||
const HooksPage: NextPageWithLayout = () => {
|
||||
const { project } = useProjectContext()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const Database: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ExternalLink } from 'lucide-react'
|
||||
|
||||
import Indexes from 'components/interfaces/Database/Indexes/Indexes'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldSection,
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import { ExternalLink } from 'lucide-react'
|
||||
|
||||
import Migrations from 'components/interfaces/Database/Migrations/Migrations'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldSection,
|
||||
ScaffoldSectionContent,
|
||||
ScaffoldSectionDetail,
|
||||
} from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { Button } from 'ui'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
|
||||
const MigrationsPage: NextPageWithLayout = () => {
|
||||
return (
|
||||
|
||||
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { PublicationsList, PublicationsTables } from 'components/interfaces/Database'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
|
||||
@@ -10,11 +10,11 @@ import {
|
||||
} from 'components/interfaces/Reports/Reports.queries'
|
||||
import { Presets } from 'components/interfaces/Reports/Reports.types'
|
||||
import { queriesFactory } from 'components/interfaces/Reports/Reports.utils'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import DatabaseSelector from 'components/ui/DatabaseSelector'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
|
||||
const PRESET_MAP = {
|
||||
[QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING]: 'mostTimeConsuming',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { RolesList } from 'components/interfaces/Database'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { partition } from 'lodash'
|
||||
import { useState } from 'react'
|
||||
|
||||
import SchemaGraph from 'components/interfaces/Database/Schemas/SchemaGraph'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
import SchemaSelector from 'components/ui/SchemaSelector'
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useParams } from 'common'
|
||||
import { ColumnList } from 'components/interfaces/Database'
|
||||
import { SidePanelEditor } from 'components/interfaces/TableGridEditor'
|
||||
import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import useTable from 'hooks/misc/useTable'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState } from 'react'
|
||||
import { TableList } from 'components/interfaces/Database'
|
||||
import { SidePanelEditor } from 'components/interfaces/TableGridEditor'
|
||||
import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import type { Table } from 'data/tables/table-query'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState } from 'react'
|
||||
|
||||
import { CreateTrigger, DeleteTrigger } from 'components/interfaces/Database'
|
||||
import TriggersList from 'components/interfaces/Database/Triggers/TriggersList/TriggersList'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ExternalLink } from 'lucide-react'
|
||||
|
||||
import { EnumeratedTypes } from 'components/interfaces/Database'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldSection,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { EditWrapper } from 'components/interfaces/Database'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ExternalLink } from 'lucide-react'
|
||||
|
||||
import { Wrappers } from 'components/interfaces/Database'
|
||||
import WrappersDropdown from 'components/interfaces/Database/Wrappers/WrappersDropdown'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import { CreateWrapper } from 'components/interfaces/Database'
|
||||
import { DatabaseLayout } from 'components/layouts'
|
||||
import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useTheme } from 'next-themes'
|
||||
import { useParams } from 'common/hooks'
|
||||
import { TableGridEditor } from 'components/interfaces/TableGridEditor'
|
||||
import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs'
|
||||
import { TableEditorLayout } from 'components/layouts'
|
||||
import { ProjectContextFromParamsProvider } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import TableEditorLayout from 'components/layouts/TableEditorLayout/TableEditorLayout'
|
||||
import useTable from 'hooks/misc/useTable'
|
||||
import { useTheme } from 'next-themes'
|
||||
import { useRouter } from 'next/router'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import { useRouter } from 'next/router'
|
||||
|
||||
import { useParams } from 'common'
|
||||
import { EmptyState, SidePanelEditor } from 'components/interfaces/TableGridEditor'
|
||||
import { TableEditorLayout } from 'components/layouts'
|
||||
import { ProjectContextFromParamsProvider } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import TableEditorLayout from 'components/layouts/TableEditorLayout/TableEditorLayout'
|
||||
import type { Table } from 'data/tables/table-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { useCheckPermissions } from 'hooks'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { WarehouseCollectionDetail } from 'components/interfaces/DataWarehouse/WarehouseCollectionDetail'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import { NextPageWithLayout } from 'types'
|
||||
|
||||
const PageLayout: NextPageWithLayout = () => <WarehouseCollectionDetail />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import WarehouseAccessTokens from 'components/interfaces/DataWarehouse/WarehouseAccessTokens'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import { NextPageWithLayout } from 'types'
|
||||
|
||||
const PageLayout: NextPageWithLayout = () => <WarehouseAccessTokens />
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { LogsTableName } from 'components/interfaces/Settings/Logs'
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
export const LogPage: NextPageWithLayout = () => {
|
||||
const router = useRouter()
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
useEditorHints,
|
||||
} from 'components/interfaces/Settings/Logs'
|
||||
import UpgradePrompt from 'components/interfaces/Settings/Logs/UpgradePrompt'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import { CodeEditor } from 'components/ui/CodeEditor'
|
||||
import LoadingOpacity from 'components/ui/LoadingOpacity'
|
||||
import ShimmerLine from 'components/ui/ShimmerLine'
|
||||
|
||||
@@ -3,7 +3,7 @@ import Link from 'next/link'
|
||||
import { IconSave, Loading } from 'ui'
|
||||
|
||||
import { LogsSavedQueriesItem } from 'components/interfaces/Settings/Logs'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import Table from 'components/to-be-cleaned/Table'
|
||||
import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader'
|
||||
import { useContentQuery } from 'data/content/content-query'
|
||||
|
||||
@@ -2,10 +2,10 @@ import { useParams } from 'common'
|
||||
|
||||
import { LogsTableName } from 'components/interfaces/Settings/Logs'
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { usePoolingConfigurationQuery } from 'data/database/pooling-configuration-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
|
||||
export const LogPage: NextPageWithLayout = () => {
|
||||
const { ref } = useParams()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
export const LogPage: NextPageWithLayout = () => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
|
||||
|
||||
import { LogsTableName } from 'components/interfaces/Settings/Logs'
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
export const LogPage: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
export const LogPage: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
|
||||
import { LogsLayout } from 'components/layouts'
|
||||
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
export const LogPage: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Reports from 'components/interfaces/Reports/Reports'
|
||||
import { ReportsLayout } from 'components/layouts'
|
||||
import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const PageLayout: NextPageWithLayout = () => (
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
TotalRequestsChartRenderer,
|
||||
} from 'components/interfaces/Reports/renderers/ApiRenderers'
|
||||
import { DatePickerToFrom } from 'components/interfaces/Settings/Logs'
|
||||
import { ReportsLayout } from 'components/layouts'
|
||||
import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'
|
||||
import ShimmerLine from 'components/ui/ShimmerLine'
|
||||
import { useApiReport } from 'data/reports/api-report-query'
|
||||
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
|
||||
|
||||
@@ -8,8 +8,8 @@ import { useParams } from 'common'
|
||||
import ReportHeader from 'components/interfaces/Reports/ReportHeader'
|
||||
import ReportPadding from 'components/interfaces/Reports/ReportPadding'
|
||||
import ReportWidget from 'components/interfaces/Reports/ReportWidget'
|
||||
import { ReportsLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'
|
||||
import ChartHandler from 'components/to-be-cleaned/Charts/ChartHandler'
|
||||
import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'
|
||||
import Table from 'components/to-be-cleaned/Table'
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useState } from 'react'
|
||||
|
||||
import { useParams } from 'common'
|
||||
import { CreateReportModal } from 'components/interfaces/Reports/Reports.CreateReportModal'
|
||||
import { ReportsLayout } from 'components/layouts'
|
||||
import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'
|
||||
import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { useContentQuery } from 'data/content/content-query'
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
} from 'components/interfaces/Reports/renderers/StorageRenderers'
|
||||
import { DatePickerToFrom } from 'components/interfaces/Settings/Logs'
|
||||
import DatePickers from 'components/interfaces/Settings/Logs/Logs.DatePickers'
|
||||
import { ReportsLayout } from 'components/layouts'
|
||||
import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout'
|
||||
import ShimmerLine from 'components/ui/ShimmerLine'
|
||||
import { useStorageReport } from 'data/reports/storage-report-query'
|
||||
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Addons from 'components/interfaces/Settings/Addons/Addons'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import ServiceList from 'components/interfaces/Settings/API/ServiceList'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import { ScaffoldContainer, ScaffoldHeader, ScaffoldTitle } from 'components/layouts/Scaffold'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import { PermissionAction } from '@supabase/shared-types/out/constants'
|
||||
|
||||
import {
|
||||
SmtpForm,
|
||||
BasicAuthSettingsForm,
|
||||
AdvancedAuthSettingsForm,
|
||||
BasicAuthSettingsForm,
|
||||
SmtpForm,
|
||||
} from 'components/interfaces/Auth'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
ScaffoldHeader,
|
||||
ScaffoldTitle,
|
||||
} from 'components/layouts/Scaffold'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
|
||||
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { useParams } from 'common'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useEffect } from 'react'
|
||||
import { useSelectedOrganization } from 'hooks'
|
||||
import { useParams } from 'common'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const ProjectBillingUsage: NextPageWithLayout = () => {
|
||||
// This component is only used for redirects, as nextjs cant redirect based on hash
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
DatabaseSettings,
|
||||
NetworkRestrictions,
|
||||
} from 'components/interfaces/Settings/Database'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
import BannedIPs from 'components/interfaces/Settings/Database/BannedIPs'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import EdgeFunctionSecrets from 'components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
General,
|
||||
TransferProjectPanel,
|
||||
} from 'components/interfaces/Settings/General'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import { ScaffoldContainer, ScaffoldHeader, ScaffoldTitle } from 'components/layouts/Scaffold'
|
||||
import { useIsFeatureEnabled } from 'hooks'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const Settings: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import InfrastructureActivity from 'components/interfaces/Settings/Infrastructure/InfrastructureActivity'
|
||||
import InfrastructureInfo from 'components/interfaces/Settings/Infrastructure/InfrastructureInfo'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import IntegrationSettings from 'components/interfaces/Settings/Integrations/IntegrationsSettings'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDivider,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
|
||||
@@ -1,23 +1,18 @@
|
||||
import { useParams } from 'common'
|
||||
import { useRouter } from 'next/router'
|
||||
import { Tabs, TabsContent_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn_, Tabs_Shadcn_ } from 'ui'
|
||||
|
||||
import { EncryptionKeysManagement, VaultToggle } from 'components/interfaces/Settings/Vault'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
||||
import Link from 'next/link'
|
||||
import VaultNavTabs from 'components/interfaces/Settings/Vault/VaultNavTabs'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldColumn,
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
ScaffoldHeader,
|
||||
ScaffoldTitle,
|
||||
} from 'components/layouts/Scaffold'
|
||||
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
||||
import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const VaultSettingsSecrets: NextPageWithLayout = () => {
|
||||
const { ref } = useParams()
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
import { useRouter } from 'next/router'
|
||||
import { useParams } from 'common/hooks'
|
||||
import { SecretsManagement, VaultToggle } from 'components/interfaces/Settings/Vault'
|
||||
import { SettingsLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import { FormHeader } from 'components/ui/Forms'
|
||||
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
||||
import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import VaultNavTabs from 'components/interfaces/Settings/Vault/VaultNavTabs'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import {
|
||||
ScaffoldContainer,
|
||||
ScaffoldDescription,
|
||||
ScaffoldHeader,
|
||||
ScaffoldTitle,
|
||||
} from 'components/layouts/Scaffold'
|
||||
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
||||
import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'
|
||||
import { useRouter } from 'next/router'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const VaultSettingsSecrets: NextPageWithLayout = () => {
|
||||
const router = useRouter()
|
||||
|
||||
@@ -11,8 +11,8 @@ import { useFormatQueryMutation } from 'data/sql/format-sql-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
import SQLEditor from 'components/interfaces/SQLEditor/SQLEditor'
|
||||
import { SQLEditorLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import SQLEditorLayout from 'components/layouts/SQLEditorLayout/SQLEditorLayout'
|
||||
import getPgsqlCompletionProvider from 'components/ui/CodeEditor/Providers/PgSQLCompletionProvider'
|
||||
import getPgsqlSignatureHelpProvider from 'components/ui/CodeEditor/Providers/PgSQLSignatureHelpProvider'
|
||||
import { useLocalStorageQuery } from 'hooks'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import SQLQuickstarts from 'components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts'
|
||||
import { SQLEditorLayout } from 'components/layouts'
|
||||
import SQLEditorLayout from 'components/layouts/SQLEditorLayout/SQLEditorLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const SqlEditorWelcome: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import SQLTemplates from 'components/interfaces/SQLEditor/SQLTemplates/SQLTemplates'
|
||||
import { SQLEditorLayout } from 'components/layouts'
|
||||
import SQLEditorLayout from 'components/layouts/SQLEditorLayout/SQLEditorLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const SqlEditorWelcome: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useParams } from 'common'
|
||||
import { find } from 'lodash'
|
||||
|
||||
import { StorageLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import StorageBucketsError from 'components/layouts/StorageLayout/StorageBucketsError'
|
||||
import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'
|
||||
import { StorageExplorer } from 'components/to-be-cleaned/Storage'
|
||||
import { useBucketsQuery } from 'data/storage/buckets-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { useParams } from 'common'
|
||||
|
||||
import { StorageLayout } from 'components/layouts'
|
||||
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
|
||||
import StorageBucketsError from 'components/layouts/StorageLayout/StorageBucketsError'
|
||||
import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'
|
||||
import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'
|
||||
import { useBucketsQuery } from 'data/storage/buckets-query'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StorageLayout } from 'components/layouts'
|
||||
import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
const Storage: NextPageWithLayout = () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StorageLayout } from 'components/layouts'
|
||||
import StorageLayout from 'components/layouts/StorageLayout/StorageLayout'
|
||||
import { StoragePolicies } from 'components/to-be-cleaned/Storage'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react'
|
||||
|
||||
import { ProjectList } from 'components/interfaces/Home/ProjectList'
|
||||
import HomePageActions from 'components/interfaces/HomePageActions'
|
||||
import { AccountLayout } from 'components/layouts'
|
||||
import AccountLayout from 'components/layouts/AccountLayout/AccountLayout'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
import { Loading } from 'components/ui/Loading'
|
||||
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Link from 'next/link'
|
||||
|
||||
import ResetPasswordForm from 'components/interfaces/SignIn/ResetPasswordForm'
|
||||
import { ForgotPasswordLayout } from 'components/layouts'
|
||||
import ForgotPasswordLayout from 'components/layouts/SignInLayout/ForgotPasswordLayout'
|
||||
import { withAuth } from 'hooks'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
|
||||
|
||||
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user