Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pages): clean unused pages in app #62

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.