From 2ab28995295f96626c586dc5357c40b3862c725b Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 26 Apr 2022 03:09:16 +0300 Subject: [PATCH] frontend: improve directory structure --- frontend/src/components/App.svelte | 2 +- .../src/components/{pages/main => }/ChannelTopBar.svelte | 0 frontend/src/components/{pages/main => }/ChannelView.svelte | 0 frontend/src/components/{pages/main => }/Main.svelte | 4 ++-- frontend/src/components/{pages/main => }/Message.svelte | 0 .../src/components/{pages/main => }/MessageInput.svelte | 6 +++--- frontend/src/components/{pages/main => }/Messages.svelte | 2 +- frontend/src/components/{pages/main => }/Sidebar.svelte | 2 +- frontend/src/components/{pages/main => }/UserTopBar.svelte | 2 +- .../components/{modals => overlays}/CreateChannel.svelte | 0 .../src/components/{modals => overlays}/EditChannel.svelte | 0 .../{pages/main => overlays}/OverlayProvider.svelte | 6 +++--- 12 files changed, 12 insertions(+), 12 deletions(-) rename frontend/src/components/{pages/main => }/ChannelTopBar.svelte (100%) rename frontend/src/components/{pages/main => }/ChannelView.svelte (100%) rename frontend/src/components/{pages/main => }/Main.svelte (85%) rename frontend/src/components/{pages/main => }/Message.svelte (100%) rename frontend/src/components/{pages/main => }/MessageInput.svelte (91%) rename frontend/src/components/{pages/main => }/Messages.svelte (97%) rename frontend/src/components/{pages/main => }/Sidebar.svelte (99%) rename frontend/src/components/{pages/main => }/UserTopBar.svelte (78%) rename frontend/src/components/{modals => overlays}/CreateChannel.svelte (100%) rename frontend/src/components/{modals => overlays}/EditChannel.svelte (100%) rename frontend/src/components/{pages/main => overlays}/OverlayProvider.svelte (53%) diff --git a/frontend/src/components/App.svelte b/frontend/src/components/App.svelte index c8fd8dc..8992b7e 100644 --- a/frontend/src/components/App.svelte +++ b/frontend/src/components/App.svelte @@ -1,5 +1,5 @@
diff --git a/frontend/src/components/pages/main/ChannelTopBar.svelte b/frontend/src/components/ChannelTopBar.svelte similarity index 100% rename from frontend/src/components/pages/main/ChannelTopBar.svelte rename to frontend/src/components/ChannelTopBar.svelte diff --git a/frontend/src/components/pages/main/ChannelView.svelte b/frontend/src/components/ChannelView.svelte similarity index 100% rename from frontend/src/components/pages/main/ChannelView.svelte rename to frontend/src/components/ChannelView.svelte diff --git a/frontend/src/components/pages/main/Main.svelte b/frontend/src/components/Main.svelte similarity index 85% rename from frontend/src/components/pages/main/Main.svelte rename to frontend/src/components/Main.svelte index 0e810bf..309d564 100644 --- a/frontend/src/components/pages/main/Main.svelte +++ b/frontend/src/components/Main.svelte @@ -1,8 +1,8 @@ diff --git a/frontend/src/components/pages/main/Message.svelte b/frontend/src/components/Message.svelte similarity index 100% rename from frontend/src/components/pages/main/Message.svelte rename to frontend/src/components/Message.svelte diff --git a/frontend/src/components/pages/main/MessageInput.svelte b/frontend/src/components/MessageInput.svelte similarity index 91% rename from frontend/src/components/pages/main/MessageInput.svelte rename to frontend/src/components/MessageInput.svelte index bad452f..2dfb09b 100644 --- a/frontend/src/components/pages/main/MessageInput.svelte +++ b/frontend/src/components/MessageInput.svelte @@ -1,7 +1,7 @@ diff --git a/frontend/src/components/pages/main/UserTopBar.svelte b/frontend/src/components/UserTopBar.svelte similarity index 78% rename from frontend/src/components/pages/main/UserTopBar.svelte rename to frontend/src/components/UserTopBar.svelte index 380c444..52881ca 100644 --- a/frontend/src/components/pages/main/UserTopBar.svelte +++ b/frontend/src/components/UserTopBar.svelte @@ -1,6 +1,6 @@
diff --git a/frontend/src/components/modals/CreateChannel.svelte b/frontend/src/components/overlays/CreateChannel.svelte similarity index 100% rename from frontend/src/components/modals/CreateChannel.svelte rename to frontend/src/components/overlays/CreateChannel.svelte diff --git a/frontend/src/components/modals/EditChannel.svelte b/frontend/src/components/overlays/EditChannel.svelte similarity index 100% rename from frontend/src/components/modals/EditChannel.svelte rename to frontend/src/components/overlays/EditChannel.svelte diff --git a/frontend/src/components/pages/main/OverlayProvider.svelte b/frontend/src/components/overlays/OverlayProvider.svelte similarity index 53% rename from frontend/src/components/pages/main/OverlayProvider.svelte rename to frontend/src/components/overlays/OverlayProvider.svelte index 732ba7c..a08b5a6 100644 --- a/frontend/src/components/pages/main/OverlayProvider.svelte +++ b/frontend/src/components/overlays/OverlayProvider.svelte @@ -1,7 +1,7 @@ {#if $overlayStore.createChannel}