From db3cf507c082548a51487ee6ce117addc01687b3 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Wed, 8 Jan 2025 09:57:57 -0500 Subject: [PATCH] Update folder names to lowercase --- packages/keychain/.storybook/mock.ts | 2 +- packages/keychain/.storybook/provider.tsx | 2 +- packages/keychain/src/components/DeployController.tsx | 2 +- packages/keychain/src/components/ExecutionContainer.tsx | 4 ++-- .../connect/{Authenticate => authenticate}/FaceID.tsx | 0 .../connect/{Authenticate => authenticate}/Unsupported.tsx | 0 .../connect/{Authenticate => authenticate}/index.stories.tsx | 0 .../connect/{Authenticate => authenticate}/index.tsx | 0 packages/keychain/src/components/connect/index.tsx | 2 +- .../{Funding => funding}/AmountSelection.stories.tsx | 0 .../src/components/{Funding => funding}/AmountSelection.tsx | 0 .../keychain/src/components/{Funding => funding}/Balance.tsx | 0 .../components/{Funding => funding}/DepositEth.stories.tsx | 0 .../src/components/{Funding => funding}/DepositEth.tsx | 0 .../{Funding => funding}/PurchaseCredits.stories.tsx | 0 .../src/components/{Funding => funding}/PurchaseCredits.tsx | 0 .../src/components/{Funding => funding}/StripeCheckout.tsx | 0 .../src/components/{Funding => funding}/index.stories.tsx | 0 .../keychain/src/components/{Funding => funding}/index.tsx | 0 packages/keychain/src/components/home.tsx | 4 ++-- packages/keychain/src/components/layout/Content.tsx | 2 +- .../{Container/Header => container/header}/BackButton.tsx | 0 .../{Container/Header => container/header}/Banner.stories.tsx | 0 .../layout/{Container/Header => container/header}/Banner.tsx | 0 .../{Container/Header => container/header}/CloseButton.tsx | 0 .../{Container/Header => container/header}/SettingsButton.tsx | 0 .../layout/{Container/Header => container/header}/TopBar.tsx | 0 .../layout/{Container/Header => container/header}/index.tsx | 0 .../src/components/layout/{Container => container}/index.tsx | 0 .../src/components/layout/{Footer => footer}/index.tsx | 0 packages/keychain/src/components/layout/index.ts | 4 ++-- .../src/components/{Provider => provider}/connection.tsx | 0 .../keychain/src/components/{Provider => provider}/index.tsx | 0 .../keychain/src/components/{Provider => provider}/theme.tsx | 0 .../components/{Settings => settings}/Delegate.stories.tsx | 0 .../src/components/{Settings => settings}/Delegate.tsx | 0 .../components/{Settings => settings}/Recovery.stories.tsx | 0 .../src/components/{Settings => settings}/Recovery.tsx | 0 .../src/components/{Settings => settings}/index.stories.tsx | 0 .../keychain/src/components/{Settings => settings}/index.tsx | 0 packages/keychain/src/hooks/connection.ts | 2 +- 41 files changed, 12 insertions(+), 12 deletions(-) rename packages/keychain/src/components/connect/{Authenticate => authenticate}/FaceID.tsx (100%) rename packages/keychain/src/components/connect/{Authenticate => authenticate}/Unsupported.tsx (100%) rename packages/keychain/src/components/connect/{Authenticate => authenticate}/index.stories.tsx (100%) rename packages/keychain/src/components/connect/{Authenticate => authenticate}/index.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/AmountSelection.stories.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/AmountSelection.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/Balance.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/DepositEth.stories.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/DepositEth.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/PurchaseCredits.stories.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/PurchaseCredits.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/StripeCheckout.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/index.stories.tsx (100%) rename packages/keychain/src/components/{Funding => funding}/index.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/BackButton.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/Banner.stories.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/Banner.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/CloseButton.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/SettingsButton.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/TopBar.tsx (100%) rename packages/keychain/src/components/layout/{Container/Header => container/header}/index.tsx (100%) rename packages/keychain/src/components/layout/{Container => container}/index.tsx (100%) rename packages/keychain/src/components/layout/{Footer => footer}/index.tsx (100%) rename packages/keychain/src/components/{Provider => provider}/connection.tsx (100%) rename packages/keychain/src/components/{Provider => provider}/index.tsx (100%) rename packages/keychain/src/components/{Provider => provider}/theme.tsx (100%) rename packages/keychain/src/components/{Settings => settings}/Delegate.stories.tsx (100%) rename packages/keychain/src/components/{Settings => settings}/Delegate.tsx (100%) rename packages/keychain/src/components/{Settings => settings}/Recovery.stories.tsx (100%) rename packages/keychain/src/components/{Settings => settings}/Recovery.tsx (100%) rename packages/keychain/src/components/{Settings => settings}/index.stories.tsx (100%) rename packages/keychain/src/components/{Settings => settings}/index.tsx (100%) diff --git a/packages/keychain/.storybook/mock.ts b/packages/keychain/.storybook/mock.ts index 8ea3a4fd7..9ef03c461 100644 --- a/packages/keychain/.storybook/mock.ts +++ b/packages/keychain/.storybook/mock.ts @@ -3,7 +3,7 @@ import { getChainName } from "@cartridge/utils"; import Controller from "@cartridge/controller"; import { SessionPolicies } from "@cartridge/presets"; import { Parameters } from "@storybook/react"; -import { ConnectionContextValue } from "../src/components/Provider/connection"; +import { ConnectionContextValue } from "../src/components/provider/connection"; import { UpgradeInterface } from "../src/hooks/upgrade"; import { ConnectCtx, ConnectionCtx } from "../src/utils/connection/types"; import { defaultTheme } from "@cartridge/presets"; diff --git a/packages/keychain/.storybook/provider.tsx b/packages/keychain/.storybook/provider.tsx index a8716ee9b..132175f3d 100644 --- a/packages/keychain/.storybook/provider.tsx +++ b/packages/keychain/.storybook/provider.tsx @@ -7,7 +7,7 @@ import { useThemeEffect } from "@cartridge/ui-next"; import { ChakraProvider } from "@chakra-ui/react"; import { BrowserRouter } from "react-router-dom"; -import { ConnectionContext } from "../src/components/Provider/connection"; +import { ConnectionContext } from "../src/components/provider/connection"; import { StoryParameters, useMockedConnection } from "./mock"; import { ControllerThemeContext, diff --git a/packages/keychain/src/components/DeployController.tsx b/packages/keychain/src/components/DeployController.tsx index 9a6777110..687a29f53 100644 --- a/packages/keychain/src/components/DeployController.tsx +++ b/packages/keychain/src/components/DeployController.tsx @@ -12,7 +12,7 @@ import { WandIcon, Button, } from "@cartridge/ui-next"; -import { Funding } from "./Funding"; +import { Funding } from "./funding"; import { useConnection } from "@/hooks/connection"; import { ControllerErrorAlert, ErrorAlert } from "./ErrorAlert"; import { useDeploy } from "@/hooks/deploy"; diff --git a/packages/keychain/src/components/ExecutionContainer.tsx b/packages/keychain/src/components/ExecutionContainer.tsx index 70072f7d6..671f145fa 100644 --- a/packages/keychain/src/components/ExecutionContainer.tsx +++ b/packages/keychain/src/components/ExecutionContainer.tsx @@ -5,10 +5,10 @@ import { useConnection } from "@/hooks/connection"; import { ControllerError } from "@/utils/connection"; import { ControllerErrorAlert, ErrorAlert } from "@/components/ErrorAlert"; import { Fees } from "./Fees"; -import { Funding } from "./Funding"; +import { Funding } from "./funding"; import { DeployController } from "./DeployController"; import { ErrorCode } from "@cartridge/account-wasm/controller"; -import { BannerProps } from "./layout/Container/Header/Banner"; +import { BannerProps } from "./layout/container/header/Banner"; import { parseControllerError } from "@/utils/connection/execute"; interface ExecutionContainerProps { diff --git a/packages/keychain/src/components/connect/Authenticate/FaceID.tsx b/packages/keychain/src/components/connect/authenticate/FaceID.tsx similarity index 100% rename from packages/keychain/src/components/connect/Authenticate/FaceID.tsx rename to packages/keychain/src/components/connect/authenticate/FaceID.tsx diff --git a/packages/keychain/src/components/connect/Authenticate/Unsupported.tsx b/packages/keychain/src/components/connect/authenticate/Unsupported.tsx similarity index 100% rename from packages/keychain/src/components/connect/Authenticate/Unsupported.tsx rename to packages/keychain/src/components/connect/authenticate/Unsupported.tsx diff --git a/packages/keychain/src/components/connect/Authenticate/index.stories.tsx b/packages/keychain/src/components/connect/authenticate/index.stories.tsx similarity index 100% rename from packages/keychain/src/components/connect/Authenticate/index.stories.tsx rename to packages/keychain/src/components/connect/authenticate/index.stories.tsx diff --git a/packages/keychain/src/components/connect/Authenticate/index.tsx b/packages/keychain/src/components/connect/authenticate/index.tsx similarity index 100% rename from packages/keychain/src/components/connect/Authenticate/index.tsx rename to packages/keychain/src/components/connect/authenticate/index.tsx diff --git a/packages/keychain/src/components/connect/index.tsx b/packages/keychain/src/components/connect/index.tsx index 3792a1571..675ce0d35 100644 --- a/packages/keychain/src/components/connect/index.tsx +++ b/packages/keychain/src/components/connect/index.tsx @@ -1,4 +1,4 @@ -export * from "./Authenticate"; +export * from "./authenticate"; export * from "./create"; export * from "./CreateSession"; export * from "./RegisterSession"; diff --git a/packages/keychain/src/components/Funding/AmountSelection.stories.tsx b/packages/keychain/src/components/funding/AmountSelection.stories.tsx similarity index 100% rename from packages/keychain/src/components/Funding/AmountSelection.stories.tsx rename to packages/keychain/src/components/funding/AmountSelection.stories.tsx diff --git a/packages/keychain/src/components/Funding/AmountSelection.tsx b/packages/keychain/src/components/funding/AmountSelection.tsx similarity index 100% rename from packages/keychain/src/components/Funding/AmountSelection.tsx rename to packages/keychain/src/components/funding/AmountSelection.tsx diff --git a/packages/keychain/src/components/Funding/Balance.tsx b/packages/keychain/src/components/funding/Balance.tsx similarity index 100% rename from packages/keychain/src/components/Funding/Balance.tsx rename to packages/keychain/src/components/funding/Balance.tsx diff --git a/packages/keychain/src/components/Funding/DepositEth.stories.tsx b/packages/keychain/src/components/funding/DepositEth.stories.tsx similarity index 100% rename from packages/keychain/src/components/Funding/DepositEth.stories.tsx rename to packages/keychain/src/components/funding/DepositEth.stories.tsx diff --git a/packages/keychain/src/components/Funding/DepositEth.tsx b/packages/keychain/src/components/funding/DepositEth.tsx similarity index 100% rename from packages/keychain/src/components/Funding/DepositEth.tsx rename to packages/keychain/src/components/funding/DepositEth.tsx diff --git a/packages/keychain/src/components/Funding/PurchaseCredits.stories.tsx b/packages/keychain/src/components/funding/PurchaseCredits.stories.tsx similarity index 100% rename from packages/keychain/src/components/Funding/PurchaseCredits.stories.tsx rename to packages/keychain/src/components/funding/PurchaseCredits.stories.tsx diff --git a/packages/keychain/src/components/Funding/PurchaseCredits.tsx b/packages/keychain/src/components/funding/PurchaseCredits.tsx similarity index 100% rename from packages/keychain/src/components/Funding/PurchaseCredits.tsx rename to packages/keychain/src/components/funding/PurchaseCredits.tsx diff --git a/packages/keychain/src/components/Funding/StripeCheckout.tsx b/packages/keychain/src/components/funding/StripeCheckout.tsx similarity index 100% rename from packages/keychain/src/components/Funding/StripeCheckout.tsx rename to packages/keychain/src/components/funding/StripeCheckout.tsx diff --git a/packages/keychain/src/components/Funding/index.stories.tsx b/packages/keychain/src/components/funding/index.stories.tsx similarity index 100% rename from packages/keychain/src/components/Funding/index.stories.tsx rename to packages/keychain/src/components/funding/index.stories.tsx diff --git a/packages/keychain/src/components/Funding/index.tsx b/packages/keychain/src/components/funding/index.tsx similarity index 100% rename from packages/keychain/src/components/Funding/index.tsx rename to packages/keychain/src/components/funding/index.tsx diff --git a/packages/keychain/src/components/home.tsx b/packages/keychain/src/components/home.tsx index bf4a275f3..68cfeb197 100644 --- a/packages/keychain/src/components/home.tsx +++ b/packages/keychain/src/components/home.tsx @@ -9,8 +9,8 @@ import { CreateController, CreateSession, Logout, Upgrade } from "./connect"; import { LoginMode } from "./connect/types"; import { DeployController } from "./DeployController"; import { ErrorPage } from "./ErrorBoundary"; -import { PurchaseCredits } from "./Funding/PurchaseCredits"; -import { Settings } from "./Settings"; +import { PurchaseCredits } from "./funding/PurchaseCredits"; +import { Settings } from "./settings"; import { SignMessage } from "./SignMessage"; import { PageLoading } from "./Loading"; diff --git a/packages/keychain/src/components/layout/Content.tsx b/packages/keychain/src/components/layout/Content.tsx index ed68ed54c..341774876 100644 --- a/packages/keychain/src/components/layout/Content.tsx +++ b/packages/keychain/src/components/layout/Content.tsx @@ -1,5 +1,5 @@ import { StackProps, VStack } from "@chakra-ui/react"; -import { useLayout } from "./Container"; +import { useLayout } from "./container"; export function Content({ children, ...stackProps }: StackProps) { const { footer } = useLayout(); diff --git a/packages/keychain/src/components/layout/Container/Header/BackButton.tsx b/packages/keychain/src/components/layout/container/header/BackButton.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/BackButton.tsx rename to packages/keychain/src/components/layout/container/header/BackButton.tsx diff --git a/packages/keychain/src/components/layout/Container/Header/Banner.stories.tsx b/packages/keychain/src/components/layout/container/header/Banner.stories.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/Banner.stories.tsx rename to packages/keychain/src/components/layout/container/header/Banner.stories.tsx diff --git a/packages/keychain/src/components/layout/Container/Header/Banner.tsx b/packages/keychain/src/components/layout/container/header/Banner.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/Banner.tsx rename to packages/keychain/src/components/layout/container/header/Banner.tsx diff --git a/packages/keychain/src/components/layout/Container/Header/CloseButton.tsx b/packages/keychain/src/components/layout/container/header/CloseButton.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/CloseButton.tsx rename to packages/keychain/src/components/layout/container/header/CloseButton.tsx diff --git a/packages/keychain/src/components/layout/Container/Header/SettingsButton.tsx b/packages/keychain/src/components/layout/container/header/SettingsButton.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/SettingsButton.tsx rename to packages/keychain/src/components/layout/container/header/SettingsButton.tsx diff --git a/packages/keychain/src/components/layout/Container/Header/TopBar.tsx b/packages/keychain/src/components/layout/container/header/TopBar.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/TopBar.tsx rename to packages/keychain/src/components/layout/container/header/TopBar.tsx diff --git a/packages/keychain/src/components/layout/Container/Header/index.tsx b/packages/keychain/src/components/layout/container/header/index.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/Header/index.tsx rename to packages/keychain/src/components/layout/container/header/index.tsx diff --git a/packages/keychain/src/components/layout/Container/index.tsx b/packages/keychain/src/components/layout/container/index.tsx similarity index 100% rename from packages/keychain/src/components/layout/Container/index.tsx rename to packages/keychain/src/components/layout/container/index.tsx diff --git a/packages/keychain/src/components/layout/Footer/index.tsx b/packages/keychain/src/components/layout/footer/index.tsx similarity index 100% rename from packages/keychain/src/components/layout/Footer/index.tsx rename to packages/keychain/src/components/layout/footer/index.tsx diff --git a/packages/keychain/src/components/layout/index.ts b/packages/keychain/src/components/layout/index.ts index 500024b81..89e3f8b30 100644 --- a/packages/keychain/src/components/layout/index.ts +++ b/packages/keychain/src/components/layout/index.ts @@ -1,3 +1,3 @@ -export * from "./Container"; +export * from "./container"; export * from "./Content"; -export * from "./Footer"; +export * from "./footer"; diff --git a/packages/keychain/src/components/Provider/connection.tsx b/packages/keychain/src/components/provider/connection.tsx similarity index 100% rename from packages/keychain/src/components/Provider/connection.tsx rename to packages/keychain/src/components/provider/connection.tsx diff --git a/packages/keychain/src/components/Provider/index.tsx b/packages/keychain/src/components/provider/index.tsx similarity index 100% rename from packages/keychain/src/components/Provider/index.tsx rename to packages/keychain/src/components/provider/index.tsx diff --git a/packages/keychain/src/components/Provider/theme.tsx b/packages/keychain/src/components/provider/theme.tsx similarity index 100% rename from packages/keychain/src/components/Provider/theme.tsx rename to packages/keychain/src/components/provider/theme.tsx diff --git a/packages/keychain/src/components/Settings/Delegate.stories.tsx b/packages/keychain/src/components/settings/Delegate.stories.tsx similarity index 100% rename from packages/keychain/src/components/Settings/Delegate.stories.tsx rename to packages/keychain/src/components/settings/Delegate.stories.tsx diff --git a/packages/keychain/src/components/Settings/Delegate.tsx b/packages/keychain/src/components/settings/Delegate.tsx similarity index 100% rename from packages/keychain/src/components/Settings/Delegate.tsx rename to packages/keychain/src/components/settings/Delegate.tsx diff --git a/packages/keychain/src/components/Settings/Recovery.stories.tsx b/packages/keychain/src/components/settings/Recovery.stories.tsx similarity index 100% rename from packages/keychain/src/components/Settings/Recovery.stories.tsx rename to packages/keychain/src/components/settings/Recovery.stories.tsx diff --git a/packages/keychain/src/components/Settings/Recovery.tsx b/packages/keychain/src/components/settings/Recovery.tsx similarity index 100% rename from packages/keychain/src/components/Settings/Recovery.tsx rename to packages/keychain/src/components/settings/Recovery.tsx diff --git a/packages/keychain/src/components/Settings/index.stories.tsx b/packages/keychain/src/components/settings/index.stories.tsx similarity index 100% rename from packages/keychain/src/components/Settings/index.stories.tsx rename to packages/keychain/src/components/settings/index.stories.tsx diff --git a/packages/keychain/src/components/Settings/index.tsx b/packages/keychain/src/components/settings/index.tsx similarity index 100% rename from packages/keychain/src/components/Settings/index.tsx rename to packages/keychain/src/components/settings/index.tsx diff --git a/packages/keychain/src/hooks/connection.ts b/packages/keychain/src/hooks/connection.ts index d6c2c1d4c..af9f2f698 100644 --- a/packages/keychain/src/hooks/connection.ts +++ b/packages/keychain/src/hooks/connection.ts @@ -17,7 +17,7 @@ import { setIsSignedUp } from "@/utils/cookie"; import { ConnectionContext, ConnectionContextValue, -} from "@/components/Provider/connection"; +} from "@/components/provider/connection"; import { UpgradeInterface, useUpgrade } from "./upgrade"; import posthog from "posthog-js"; import { Policies } from "@cartridge/presets";