From 7d53bd7f988e0c922a7e383096a81a1e5f937a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio?= Date: Wed, 9 Oct 2024 10:50:19 -0300 Subject: [PATCH] merge instruction and create model --- components/InstructionsCard.vue | 47 +++++++++++++++++++++++++++++++++ components/Navbar.vue | 9 +------ pages/createmodel.vue | 15 +++++++++-- pages/instructions.vue | 34 ------------------------ 4 files changed, 61 insertions(+), 44 deletions(-) create mode 100644 components/InstructionsCard.vue delete mode 100644 pages/instructions.vue diff --git a/components/InstructionsCard.vue b/components/InstructionsCard.vue new file mode 100644 index 0000000..46af313 --- /dev/null +++ b/components/InstructionsCard.vue @@ -0,0 +1,47 @@ + + + diff --git a/components/Navbar.vue b/components/Navbar.vue index b814a25..3b74336 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -44,13 +44,6 @@ const CREATEMODEL: Item = { command: () => router.push("/createmodel"), }; -const INSTRUCTIONS: Item = { - label: "Instructions", - icon: "pi pi-map", - to: "/instructions", - command: () => router.push("/instructions"), -}; - const PROFILE: Item = { label: "Profile", icon: "pi pi-user", @@ -74,7 +67,7 @@ const LOGOUT: Item = { const items = ref([HOME, LOGIN]); if (status.value === "authenticated") { - items.value = [HOME, INSTRUCTIONS, CREATEMODEL, CREATEIMAGES, PROFILE, LOGOUT]; + items.value = [HOME, CREATEMODEL, CREATEIMAGES, PROFILE, LOGOUT]; } const activeRoute = computed(() => router.currentRoute.value.path); diff --git a/pages/createmodel.vue b/pages/createmodel.vue index 4ec85d3..9db97a5 100644 --- a/pages/createmodel.vue +++ b/pages/createmodel.vue @@ -1,5 +1,16 @@ + + diff --git a/pages/instructions.vue b/pages/instructions.vue deleted file mode 100644 index 1c43ed3..0000000 --- a/pages/instructions.vue +++ /dev/null @@ -1,34 +0,0 @@ - - -