Skip to content

Commit

Permalink
Merge pull request #62 from Geode-solutions/fix/clean_pages
Browse files Browse the repository at this point in the history
fix(pages): clean unused pages in app
  • Loading branch information
JulienChampagnol authored Oct 30, 2024
2 parents 440e260 + 521bcc3 commit 4a6afe1
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 250 deletions.
52 changes: 52 additions & 0 deletions components/NewProject.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<template>
<v-dialog
v-model="props.show_dialog"
@click:outside="emit('close')"
max-width="800px"
radius="20px"
class="text-center"
>
<v-sheet border="md">
<v-card color="#3c9983">
<v-card-title>
<h3 class="mt-4">New Project</h3>
</v-card-title>
<v-card-text>
<v-container>
<v-row>
<v-col>
<v-text-field label="Project Name" required></v-text-field>
</v-col>
</v-row>
</v-container>
</v-card-text>
<v-card-actions justify-center>
<v-btn
variant="outlined"
color="white"
text
@click="emit('close')"
class="ml-8 mb-4"
>Close</v-btn
>
<v-btn
variant="outlined"
class="mb-4"
color="white"
text
@click="emit('close')"
>Create</v-btn
>
</v-card-actions>
</v-card>
</v-sheet>
</v-dialog>
</template>

<script setup>
const emit = defineEmits(["close"]);
const props = defineProps({
show_dialog: { type: Boolean, required: true },
});
</script>
51 changes: 51 additions & 0 deletions components/OpenProject.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<template>
<v-dialog
v-model="props.show_dialog"
@click:outside="emit('close')"
max-width="800px"
class="text-center"
>
<v-sheet border="md">
<v-card color="#3c9983">
<v-card-title>
<h3 class="mt-4">Open Project</h3>
</v-card-title>
<v-card-text>
<v-container>
<v-row>
<v-col>
<v-file-input label="Open Project" required></v-file-input>
</v-col>
</v-row>
</v-container>
</v-card-text>
<v-card-actions justify-center>
<v-btn
variant="outlined"
color="white"
text
@click="emit('close')"
class="ml-8 mb-4"
>Close</v-btn
>
<v-btn
variant="outlined"
class="mb-4"
color="white"
text
@click="emit('close')"
>Load</v-btn
>
</v-card-actions>
</v-card>
</v-sheet>
</v-dialog>
</template>

<script setup>
const emit = defineEmits(["close"]);
const props = defineProps({
show_dialog: { type: Boolean, required: true },
});
</script>
95 changes: 2 additions & 93 deletions components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,91 +37,15 @@
</template>
</v-tooltip>

<v-dialog
v-model="newproject"
max-width="800px"
radius="20px"
class="text-center"
>
<v-sheet border="md">
<v-card color="#3c9983">
<v-card-title>
<h3 class="mt-4">New Project</h3>
</v-card-title>
<v-card-text>
<v-container>
<v-row>
<v-col>
<v-text-field label="Project Name" required></v-text-field>
</v-col>
</v-row>
</v-container>
</v-card-text>
<v-card-actions justify-center>
<v-btn
variant="outlined"
color="white"
text
@click="newproject = false"
class="ml-8 mb-4"
>Close</v-btn
>
<v-btn
variant="outlined"
class="mb-4"
color="white"
text
@click="newproject = false"
>Create</v-btn
>
</v-card-actions>
</v-card>
</v-sheet>
</v-dialog>
<v-dialog v-model="openproject" max-width="800px" class="text-center">
<v-sheet border="md">
<v-card color="#3c9983">
<v-card-title>
<h3 class="mt-4">Open Project</h3>
</v-card-title>
<v-card-text>
<v-container>
<v-row>
<v-col>
<v-file-input label="Open Project" required></v-file-input>
</v-col>
</v-row>
</v-container>
</v-card-text>
<v-card-actions justify-center>
<v-btn
variant="outlined"
color="white"
text
@click="openproject = false"
class="ml-8 mb-4"
>Close</v-btn
>
<v-btn
variant="outlined"
class="mb-4"
color="white"
text
@click="openproject = false"
>Load</v-btn
>
</v-card-actions>
</v-card>
</v-sheet>
</v-dialog>
<NewProject :show_dialog="newproject" @close="newproject = false" />
<OpenProject :show_dialog="openproject" @close="openproject = false" />
</v-navigation-drawer>
</template>

<script setup>
const drawer = ref(true);
const newproject = ref(false);
const openproject = ref(false);
const router = useRouter();
const items = ref([
{
Expand All @@ -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;
Expand Down
27 changes: 0 additions & 27 deletions pages/TreeObject.vue

This file was deleted.

1 change: 0 additions & 1 deletion pages/download.vue

This file was deleted.

1 change: 0 additions & 1 deletion pages/extensions.vue

This file was deleted.

1 change: 0 additions & 1 deletion pages/new-project.vue

This file was deleted.

1 change: 0 additions & 1 deletion pages/settings.vue

This file was deleted.

126 changes: 0 additions & 126 deletions pages/supperposition.vue

This file was deleted.

0 comments on commit 4a6afe1

Please sign in to comment.