From 521bcc316fe4d34575b8ab834336e616c6838ec4 Mon Sep 17 00:00:00 2001 From: JulienChampagnol Date: Fri, 25 Oct 2024 14:53:16 +0200 Subject: [PATCH] fix(pages): clean unused pages in app & refactor project components --- components/NewProject.vue | 52 +++++++++++++++ components/OpenProject.vue | 51 +++++++++++++++ components/SideBar.vue | 95 +--------------------------- pages/TreeObject.vue | 27 -------- pages/download.vue | 1 - pages/extensions.vue | 1 - pages/new-project.vue | 1 - pages/settings.vue | 1 - pages/supperposition.vue | 126 ------------------------------------- 9 files changed, 105 insertions(+), 250 deletions(-) create mode 100644 components/NewProject.vue create mode 100644 components/OpenProject.vue delete mode 100644 pages/TreeObject.vue delete mode 100644 pages/download.vue delete mode 100644 pages/extensions.vue delete mode 100644 pages/new-project.vue delete mode 100644 pages/settings.vue delete mode 100644 pages/supperposition.vue diff --git a/components/NewProject.vue b/components/NewProject.vue new file mode 100644 index 0000000..8b6d8a4 --- /dev/null +++ b/components/NewProject.vue @@ -0,0 +1,52 @@ + + + diff --git a/components/OpenProject.vue b/components/OpenProject.vue new file mode 100644 index 0000000..0a00764 --- /dev/null +++ b/components/OpenProject.vue @@ -0,0 +1,51 @@ + + + diff --git a/components/SideBar.vue b/components/SideBar.vue index 8225dc4..6ad267d 100644 --- a/components/SideBar.vue +++ b/components/SideBar.vue @@ -37,83 +37,8 @@ - - - - -

New Project

-
- - - - - - - - - - - Close - Create - -
-
-
- - - - -

Open Project

-
- - - - - - - - - - - Close - Load - -
-
-
+ + @@ -121,7 +46,6 @@ const drawer = ref(true); const newproject = ref(false); const openproject = ref(false); -const router = useRouter(); const items = ref([ { @@ -139,21 +63,6 @@ const items = ref([ icon: "mdi-folder-outline", click: () => (openproject.value = true), }, - { - title: "Supperposition", - icon: "mdi-layers", - click: () => navigateTo("/supperposition"), - }, - { - title: "Download", - icon: "mdi-upload", - click: () => navigateTo("/download"), - }, - { - title: "Settings", - icon: "mdi-cog", - click: () => navigateTo("/settings"), - }, ]); let draggedItem = null; diff --git a/pages/TreeObject.vue b/pages/TreeObject.vue deleted file mode 100644 index 2d4acef..0000000 --- a/pages/TreeObject.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/pages/download.vue b/pages/download.vue deleted file mode 100644 index cc340bc..0000000 --- a/pages/download.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pages/extensions.vue b/pages/extensions.vue deleted file mode 100644 index cc340bc..0000000 --- a/pages/extensions.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pages/new-project.vue b/pages/new-project.vue deleted file mode 100644 index cc340bc..0000000 --- a/pages/new-project.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pages/settings.vue b/pages/settings.vue deleted file mode 100644 index cc340bc..0000000 --- a/pages/settings.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pages/supperposition.vue b/pages/supperposition.vue deleted file mode 100644 index de35a77..0000000 --- a/pages/supperposition.vue +++ /dev/null @@ -1,126 +0,0 @@ - - -