From 79f915386bc50b8f1dfc8d47b0f0b312a74bb089 Mon Sep 17 00:00:00 2001 From: Huw Wilkins Date: Wed, 20 Nov 2024 11:40:35 +1100 Subject: [PATCH] refactor: move components into isolated directories --- ui/src/components/{ => CheckboxList}/CheckboxList.tsx | 0 ui/src/components/CheckboxList/index.ts | 1 + ui/src/components/{ => Loader}/Loader.tsx | 0 ui/src/components/Loader/index.ts | 1 + ui/src/components/{ => Logo}/Logo.tsx | 0 ui/src/components/Logo/index.ts | 1 + ui/src/components/{ => Navigation}/Navigation.tsx | 0 ui/src/components/Navigation/index.ts | 1 + ui/src/components/{ => NoMatch}/NoMatch.tsx | 0 ui/src/components/NoMatch/index.ts | 1 + ui/src/components/{ => Pagination}/Pagination.tsx | 0 ui/src/components/Pagination/index.ts | 1 + ui/src/components/{ => Panels}/Panels.tsx | 0 ui/src/components/Panels/index.ts | 1 + .../components/{ => ScrollableContainer}/ScrollableContainer.tsx | 0 ui/src/components/ScrollableContainer/index.ts | 1 + ui/src/components/{ => SidePanel}/SidePanel.tsx | 0 ui/src/components/SidePanel/index.ts | 1 + ui/src/pages/clients/{ => ClientCreate}/ClientCreate.tsx | 0 ui/src/pages/clients/ClientCreate/index.ts | 1 + ui/src/pages/clients/{ => ClientEdit}/ClientEdit.tsx | 0 ui/src/pages/clients/ClientEdit/index.ts | 1 + ui/src/pages/clients/{ => ClientForm}/ClientForm.tsx | 0 ui/src/pages/clients/ClientForm/index.ts | 1 + ui/src/pages/clients/{ => ClientList}/ClientList.tsx | 0 ui/src/pages/clients/ClientList/index.ts | 1 + ui/src/pages/clients/{ => DeleteClientBtn}/DeleteClientBtn.tsx | 0 ui/src/pages/clients/DeleteClientBtn/index.ts | 1 + ui/src/pages/clients/{ => EditClientBtn}/EditClientBtn.tsx | 0 ui/src/pages/clients/EditClientBtn/index.ts | 1 + .../identities/{ => DeleteIdentityBtn}/DeleteIdentityBtn.tsx | 0 ui/src/pages/identities/DeleteIdentityBtn/index.ts | 1 + ui/src/pages/identities/{ => IdentityCreate}/IdentityCreate.tsx | 0 ui/src/pages/identities/IdentityCreate/index.ts | 1 + ui/src/pages/identities/{ => IdentityForm}/IdentityForm.tsx | 0 ui/src/pages/identities/IdentityForm/index.ts | 1 + ui/src/pages/identities/{ => IdentityList}/IdentityList.tsx | 0 ui/src/pages/identities/IdentityList/index.ts | 1 + .../providers/{ => DeleteProviderBtn}/DeleteProviderBtn.tsx | 0 ui/src/pages/providers/DeleteProviderBtn/index.ts | 1 + ui/src/pages/providers/{ => EditProviderBtn}/EditProviderBtn.tsx | 0 ui/src/pages/providers/EditProviderBtn/index.ts | 1 + ui/src/pages/providers/{ => ProviderCreate}/ProviderCreate.tsx | 0 ui/src/pages/providers/ProviderCreate/index.ts | 1 + ui/src/pages/providers/{ => ProviderEdit}/ProviderEdit.tsx | 0 ui/src/pages/providers/ProviderEdit/index.ts | 1 + ui/src/pages/providers/{ => ProviderForm}/ProviderForm.tsx | 0 ui/src/pages/providers/ProviderForm/index.ts | 1 + ui/src/pages/providers/{ => ProviderList}/ProviderList.tsx | 0 ui/src/pages/providers/ProviderList/index.ts | 1 + ui/src/pages/schemas/{ => SchemaList}/SchemaList.tsx | 0 ui/src/pages/schemas/SchemaList/index.ts | 1 + 52 files changed, 26 insertions(+) rename ui/src/components/{ => CheckboxList}/CheckboxList.tsx (100%) create mode 100644 ui/src/components/CheckboxList/index.ts rename ui/src/components/{ => Loader}/Loader.tsx (100%) create mode 100644 ui/src/components/Loader/index.ts rename ui/src/components/{ => Logo}/Logo.tsx (100%) create mode 100644 ui/src/components/Logo/index.ts rename ui/src/components/{ => Navigation}/Navigation.tsx (100%) create mode 100644 ui/src/components/Navigation/index.ts rename ui/src/components/{ => NoMatch}/NoMatch.tsx (100%) create mode 100644 ui/src/components/NoMatch/index.ts rename ui/src/components/{ => Pagination}/Pagination.tsx (100%) create mode 100644 ui/src/components/Pagination/index.ts rename ui/src/components/{ => Panels}/Panels.tsx (100%) create mode 100644 ui/src/components/Panels/index.ts rename ui/src/components/{ => ScrollableContainer}/ScrollableContainer.tsx (100%) create mode 100644 ui/src/components/ScrollableContainer/index.ts rename ui/src/components/{ => SidePanel}/SidePanel.tsx (100%) create mode 100644 ui/src/components/SidePanel/index.ts rename ui/src/pages/clients/{ => ClientCreate}/ClientCreate.tsx (100%) create mode 100644 ui/src/pages/clients/ClientCreate/index.ts rename ui/src/pages/clients/{ => ClientEdit}/ClientEdit.tsx (100%) create mode 100644 ui/src/pages/clients/ClientEdit/index.ts rename ui/src/pages/clients/{ => ClientForm}/ClientForm.tsx (100%) create mode 100644 ui/src/pages/clients/ClientForm/index.ts rename ui/src/pages/clients/{ => ClientList}/ClientList.tsx (100%) create mode 100644 ui/src/pages/clients/ClientList/index.ts rename ui/src/pages/clients/{ => DeleteClientBtn}/DeleteClientBtn.tsx (100%) create mode 100644 ui/src/pages/clients/DeleteClientBtn/index.ts rename ui/src/pages/clients/{ => EditClientBtn}/EditClientBtn.tsx (100%) create mode 100644 ui/src/pages/clients/EditClientBtn/index.ts rename ui/src/pages/identities/{ => DeleteIdentityBtn}/DeleteIdentityBtn.tsx (100%) create mode 100644 ui/src/pages/identities/DeleteIdentityBtn/index.ts rename ui/src/pages/identities/{ => IdentityCreate}/IdentityCreate.tsx (100%) create mode 100644 ui/src/pages/identities/IdentityCreate/index.ts rename ui/src/pages/identities/{ => IdentityForm}/IdentityForm.tsx (100%) create mode 100644 ui/src/pages/identities/IdentityForm/index.ts rename ui/src/pages/identities/{ => IdentityList}/IdentityList.tsx (100%) create mode 100644 ui/src/pages/identities/IdentityList/index.ts rename ui/src/pages/providers/{ => DeleteProviderBtn}/DeleteProviderBtn.tsx (100%) create mode 100644 ui/src/pages/providers/DeleteProviderBtn/index.ts rename ui/src/pages/providers/{ => EditProviderBtn}/EditProviderBtn.tsx (100%) create mode 100644 ui/src/pages/providers/EditProviderBtn/index.ts rename ui/src/pages/providers/{ => ProviderCreate}/ProviderCreate.tsx (100%) create mode 100644 ui/src/pages/providers/ProviderCreate/index.ts rename ui/src/pages/providers/{ => ProviderEdit}/ProviderEdit.tsx (100%) create mode 100644 ui/src/pages/providers/ProviderEdit/index.ts rename ui/src/pages/providers/{ => ProviderForm}/ProviderForm.tsx (100%) create mode 100644 ui/src/pages/providers/ProviderForm/index.ts rename ui/src/pages/providers/{ => ProviderList}/ProviderList.tsx (100%) create mode 100644 ui/src/pages/providers/ProviderList/index.ts rename ui/src/pages/schemas/{ => SchemaList}/SchemaList.tsx (100%) create mode 100644 ui/src/pages/schemas/SchemaList/index.ts diff --git a/ui/src/components/CheckboxList.tsx b/ui/src/components/CheckboxList/CheckboxList.tsx similarity index 100% rename from ui/src/components/CheckboxList.tsx rename to ui/src/components/CheckboxList/CheckboxList.tsx diff --git a/ui/src/components/CheckboxList/index.ts b/ui/src/components/CheckboxList/index.ts new file mode 100644 index 000000000..d541a1832 --- /dev/null +++ b/ui/src/components/CheckboxList/index.ts @@ -0,0 +1 @@ +export { default } from "./CheckboxList"; diff --git a/ui/src/components/Loader.tsx b/ui/src/components/Loader/Loader.tsx similarity index 100% rename from ui/src/components/Loader.tsx rename to ui/src/components/Loader/Loader.tsx diff --git a/ui/src/components/Loader/index.ts b/ui/src/components/Loader/index.ts new file mode 100644 index 000000000..a9737ca27 --- /dev/null +++ b/ui/src/components/Loader/index.ts @@ -0,0 +1 @@ +export { default } from "./Loader"; diff --git a/ui/src/components/Logo.tsx b/ui/src/components/Logo/Logo.tsx similarity index 100% rename from ui/src/components/Logo.tsx rename to ui/src/components/Logo/Logo.tsx diff --git a/ui/src/components/Logo/index.ts b/ui/src/components/Logo/index.ts new file mode 100644 index 000000000..f252704a4 --- /dev/null +++ b/ui/src/components/Logo/index.ts @@ -0,0 +1 @@ +export { default } from "./Logo"; diff --git a/ui/src/components/Navigation.tsx b/ui/src/components/Navigation/Navigation.tsx similarity index 100% rename from ui/src/components/Navigation.tsx rename to ui/src/components/Navigation/Navigation.tsx diff --git a/ui/src/components/Navigation/index.ts b/ui/src/components/Navigation/index.ts new file mode 100644 index 000000000..f8785c3a6 --- /dev/null +++ b/ui/src/components/Navigation/index.ts @@ -0,0 +1 @@ +export { default } from "./Navigation"; diff --git a/ui/src/components/NoMatch.tsx b/ui/src/components/NoMatch/NoMatch.tsx similarity index 100% rename from ui/src/components/NoMatch.tsx rename to ui/src/components/NoMatch/NoMatch.tsx diff --git a/ui/src/components/NoMatch/index.ts b/ui/src/components/NoMatch/index.ts new file mode 100644 index 000000000..68474a8e0 --- /dev/null +++ b/ui/src/components/NoMatch/index.ts @@ -0,0 +1 @@ +export { default } from "./NoMatch"; diff --git a/ui/src/components/Pagination.tsx b/ui/src/components/Pagination/Pagination.tsx similarity index 100% rename from ui/src/components/Pagination.tsx rename to ui/src/components/Pagination/Pagination.tsx diff --git a/ui/src/components/Pagination/index.ts b/ui/src/components/Pagination/index.ts new file mode 100644 index 000000000..34fcdf47a --- /dev/null +++ b/ui/src/components/Pagination/index.ts @@ -0,0 +1 @@ +export { default } from "./Pagination"; diff --git a/ui/src/components/Panels.tsx b/ui/src/components/Panels/Panels.tsx similarity index 100% rename from ui/src/components/Panels.tsx rename to ui/src/components/Panels/Panels.tsx diff --git a/ui/src/components/Panels/index.ts b/ui/src/components/Panels/index.ts new file mode 100644 index 000000000..b03f978b1 --- /dev/null +++ b/ui/src/components/Panels/index.ts @@ -0,0 +1 @@ +export { default } from "./Panels"; diff --git a/ui/src/components/ScrollableContainer.tsx b/ui/src/components/ScrollableContainer/ScrollableContainer.tsx similarity index 100% rename from ui/src/components/ScrollableContainer.tsx rename to ui/src/components/ScrollableContainer/ScrollableContainer.tsx diff --git a/ui/src/components/ScrollableContainer/index.ts b/ui/src/components/ScrollableContainer/index.ts new file mode 100644 index 000000000..f33efd8e7 --- /dev/null +++ b/ui/src/components/ScrollableContainer/index.ts @@ -0,0 +1 @@ +export { default } from "./ScrollableContainer"; diff --git a/ui/src/components/SidePanel.tsx b/ui/src/components/SidePanel/SidePanel.tsx similarity index 100% rename from ui/src/components/SidePanel.tsx rename to ui/src/components/SidePanel/SidePanel.tsx diff --git a/ui/src/components/SidePanel/index.ts b/ui/src/components/SidePanel/index.ts new file mode 100644 index 000000000..7f93d31a6 --- /dev/null +++ b/ui/src/components/SidePanel/index.ts @@ -0,0 +1 @@ +export { default } from "./SidePanel"; diff --git a/ui/src/pages/clients/ClientCreate.tsx b/ui/src/pages/clients/ClientCreate/ClientCreate.tsx similarity index 100% rename from ui/src/pages/clients/ClientCreate.tsx rename to ui/src/pages/clients/ClientCreate/ClientCreate.tsx diff --git a/ui/src/pages/clients/ClientCreate/index.ts b/ui/src/pages/clients/ClientCreate/index.ts new file mode 100644 index 000000000..f079ce4b6 --- /dev/null +++ b/ui/src/pages/clients/ClientCreate/index.ts @@ -0,0 +1 @@ +export { default } from "./ClientCreate"; diff --git a/ui/src/pages/clients/ClientEdit.tsx b/ui/src/pages/clients/ClientEdit/ClientEdit.tsx similarity index 100% rename from ui/src/pages/clients/ClientEdit.tsx rename to ui/src/pages/clients/ClientEdit/ClientEdit.tsx diff --git a/ui/src/pages/clients/ClientEdit/index.ts b/ui/src/pages/clients/ClientEdit/index.ts new file mode 100644 index 000000000..ad93eac7d --- /dev/null +++ b/ui/src/pages/clients/ClientEdit/index.ts @@ -0,0 +1 @@ +export { default } from "./ClientEdit"; diff --git a/ui/src/pages/clients/ClientForm.tsx b/ui/src/pages/clients/ClientForm/ClientForm.tsx similarity index 100% rename from ui/src/pages/clients/ClientForm.tsx rename to ui/src/pages/clients/ClientForm/ClientForm.tsx diff --git a/ui/src/pages/clients/ClientForm/index.ts b/ui/src/pages/clients/ClientForm/index.ts new file mode 100644 index 000000000..6577cbeb8 --- /dev/null +++ b/ui/src/pages/clients/ClientForm/index.ts @@ -0,0 +1 @@ +export { default } from "./ClientForm"; diff --git a/ui/src/pages/clients/ClientList.tsx b/ui/src/pages/clients/ClientList/ClientList.tsx similarity index 100% rename from ui/src/pages/clients/ClientList.tsx rename to ui/src/pages/clients/ClientList/ClientList.tsx diff --git a/ui/src/pages/clients/ClientList/index.ts b/ui/src/pages/clients/ClientList/index.ts new file mode 100644 index 000000000..3a3f8580e --- /dev/null +++ b/ui/src/pages/clients/ClientList/index.ts @@ -0,0 +1 @@ +export { default } from "./ClientList"; diff --git a/ui/src/pages/clients/DeleteClientBtn.tsx b/ui/src/pages/clients/DeleteClientBtn/DeleteClientBtn.tsx similarity index 100% rename from ui/src/pages/clients/DeleteClientBtn.tsx rename to ui/src/pages/clients/DeleteClientBtn/DeleteClientBtn.tsx diff --git a/ui/src/pages/clients/DeleteClientBtn/index.ts b/ui/src/pages/clients/DeleteClientBtn/index.ts new file mode 100644 index 000000000..77ad6316b --- /dev/null +++ b/ui/src/pages/clients/DeleteClientBtn/index.ts @@ -0,0 +1 @@ +export { default } from "./DeleteClientBtn"; diff --git a/ui/src/pages/clients/EditClientBtn.tsx b/ui/src/pages/clients/EditClientBtn/EditClientBtn.tsx similarity index 100% rename from ui/src/pages/clients/EditClientBtn.tsx rename to ui/src/pages/clients/EditClientBtn/EditClientBtn.tsx diff --git a/ui/src/pages/clients/EditClientBtn/index.ts b/ui/src/pages/clients/EditClientBtn/index.ts new file mode 100644 index 000000000..ec4f60e74 --- /dev/null +++ b/ui/src/pages/clients/EditClientBtn/index.ts @@ -0,0 +1 @@ +export { default } from "./EditClientBtn"; diff --git a/ui/src/pages/identities/DeleteIdentityBtn.tsx b/ui/src/pages/identities/DeleteIdentityBtn/DeleteIdentityBtn.tsx similarity index 100% rename from ui/src/pages/identities/DeleteIdentityBtn.tsx rename to ui/src/pages/identities/DeleteIdentityBtn/DeleteIdentityBtn.tsx diff --git a/ui/src/pages/identities/DeleteIdentityBtn/index.ts b/ui/src/pages/identities/DeleteIdentityBtn/index.ts new file mode 100644 index 000000000..60c4ef263 --- /dev/null +++ b/ui/src/pages/identities/DeleteIdentityBtn/index.ts @@ -0,0 +1 @@ +export { default } from "./DeleteIdentityBtn"; diff --git a/ui/src/pages/identities/IdentityCreate.tsx b/ui/src/pages/identities/IdentityCreate/IdentityCreate.tsx similarity index 100% rename from ui/src/pages/identities/IdentityCreate.tsx rename to ui/src/pages/identities/IdentityCreate/IdentityCreate.tsx diff --git a/ui/src/pages/identities/IdentityCreate/index.ts b/ui/src/pages/identities/IdentityCreate/index.ts new file mode 100644 index 000000000..185713afc --- /dev/null +++ b/ui/src/pages/identities/IdentityCreate/index.ts @@ -0,0 +1 @@ +export { default } from "./IdentityCreate"; diff --git a/ui/src/pages/identities/IdentityForm.tsx b/ui/src/pages/identities/IdentityForm/IdentityForm.tsx similarity index 100% rename from ui/src/pages/identities/IdentityForm.tsx rename to ui/src/pages/identities/IdentityForm/IdentityForm.tsx diff --git a/ui/src/pages/identities/IdentityForm/index.ts b/ui/src/pages/identities/IdentityForm/index.ts new file mode 100644 index 000000000..2abd75d45 --- /dev/null +++ b/ui/src/pages/identities/IdentityForm/index.ts @@ -0,0 +1 @@ +export { default, type IdentityFormTypes } from "./IdentityForm"; diff --git a/ui/src/pages/identities/IdentityList.tsx b/ui/src/pages/identities/IdentityList/IdentityList.tsx similarity index 100% rename from ui/src/pages/identities/IdentityList.tsx rename to ui/src/pages/identities/IdentityList/IdentityList.tsx diff --git a/ui/src/pages/identities/IdentityList/index.ts b/ui/src/pages/identities/IdentityList/index.ts new file mode 100644 index 000000000..9e17c902b --- /dev/null +++ b/ui/src/pages/identities/IdentityList/index.ts @@ -0,0 +1 @@ +export { default } from "./IdentityList"; diff --git a/ui/src/pages/providers/DeleteProviderBtn.tsx b/ui/src/pages/providers/DeleteProviderBtn/DeleteProviderBtn.tsx similarity index 100% rename from ui/src/pages/providers/DeleteProviderBtn.tsx rename to ui/src/pages/providers/DeleteProviderBtn/DeleteProviderBtn.tsx diff --git a/ui/src/pages/providers/DeleteProviderBtn/index.ts b/ui/src/pages/providers/DeleteProviderBtn/index.ts new file mode 100644 index 000000000..576ed9214 --- /dev/null +++ b/ui/src/pages/providers/DeleteProviderBtn/index.ts @@ -0,0 +1 @@ +export { default } from "./DeleteProviderBtn"; diff --git a/ui/src/pages/providers/EditProviderBtn.tsx b/ui/src/pages/providers/EditProviderBtn/EditProviderBtn.tsx similarity index 100% rename from ui/src/pages/providers/EditProviderBtn.tsx rename to ui/src/pages/providers/EditProviderBtn/EditProviderBtn.tsx diff --git a/ui/src/pages/providers/EditProviderBtn/index.ts b/ui/src/pages/providers/EditProviderBtn/index.ts new file mode 100644 index 000000000..d51da9c1c --- /dev/null +++ b/ui/src/pages/providers/EditProviderBtn/index.ts @@ -0,0 +1 @@ +export { default } from "./EditProviderBtn"; diff --git a/ui/src/pages/providers/ProviderCreate.tsx b/ui/src/pages/providers/ProviderCreate/ProviderCreate.tsx similarity index 100% rename from ui/src/pages/providers/ProviderCreate.tsx rename to ui/src/pages/providers/ProviderCreate/ProviderCreate.tsx diff --git a/ui/src/pages/providers/ProviderCreate/index.ts b/ui/src/pages/providers/ProviderCreate/index.ts new file mode 100644 index 000000000..4fb48a19a --- /dev/null +++ b/ui/src/pages/providers/ProviderCreate/index.ts @@ -0,0 +1 @@ +export { default } from "./ProviderCreate"; diff --git a/ui/src/pages/providers/ProviderEdit.tsx b/ui/src/pages/providers/ProviderEdit/ProviderEdit.tsx similarity index 100% rename from ui/src/pages/providers/ProviderEdit.tsx rename to ui/src/pages/providers/ProviderEdit/ProviderEdit.tsx diff --git a/ui/src/pages/providers/ProviderEdit/index.ts b/ui/src/pages/providers/ProviderEdit/index.ts new file mode 100644 index 000000000..fac915bcb --- /dev/null +++ b/ui/src/pages/providers/ProviderEdit/index.ts @@ -0,0 +1 @@ +export { default } from "./ProviderEdit"; diff --git a/ui/src/pages/providers/ProviderForm.tsx b/ui/src/pages/providers/ProviderForm/ProviderForm.tsx similarity index 100% rename from ui/src/pages/providers/ProviderForm.tsx rename to ui/src/pages/providers/ProviderForm/ProviderForm.tsx diff --git a/ui/src/pages/providers/ProviderForm/index.ts b/ui/src/pages/providers/ProviderForm/index.ts new file mode 100644 index 000000000..2fe31befb --- /dev/null +++ b/ui/src/pages/providers/ProviderForm/index.ts @@ -0,0 +1 @@ +export { default, type ProviderFormTypes } from "./ProviderForm"; diff --git a/ui/src/pages/providers/ProviderList.tsx b/ui/src/pages/providers/ProviderList/ProviderList.tsx similarity index 100% rename from ui/src/pages/providers/ProviderList.tsx rename to ui/src/pages/providers/ProviderList/ProviderList.tsx diff --git a/ui/src/pages/providers/ProviderList/index.ts b/ui/src/pages/providers/ProviderList/index.ts new file mode 100644 index 000000000..62d981f68 --- /dev/null +++ b/ui/src/pages/providers/ProviderList/index.ts @@ -0,0 +1 @@ +export { default } from "./ProviderList"; diff --git a/ui/src/pages/schemas/SchemaList.tsx b/ui/src/pages/schemas/SchemaList/SchemaList.tsx similarity index 100% rename from ui/src/pages/schemas/SchemaList.tsx rename to ui/src/pages/schemas/SchemaList/SchemaList.tsx diff --git a/ui/src/pages/schemas/SchemaList/index.ts b/ui/src/pages/schemas/SchemaList/index.ts new file mode 100644 index 000000000..db3d76372 --- /dev/null +++ b/ui/src/pages/schemas/SchemaList/index.ts @@ -0,0 +1 @@ +export { default } from "./SchemaList";