diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-10 01:31:42 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-10 01:31:42 +0000 |
| commit | 71e4ad2c71efea471923ea47f01bfda841387f81 (patch) | |
| tree | f08293fdc56b4eb2e3d0e520b79b4d8aad78924c /components/Editor/EditorSidebar.vue | |
| parent | 4495c02c41b95ce6df0c34dbf6ac62f7addae7a3 (diff) | |
Use nuxt auto import magic
Diffstat (limited to 'components/Editor/EditorSidebar.vue')
| -rw-r--r-- | components/Editor/EditorSidebar.vue | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/components/Editor/EditorSidebar.vue b/components/Editor/EditorSidebar.vue deleted file mode 100644 index c9539fa..0000000 --- a/components/Editor/EditorSidebar.vue +++ /dev/null @@ -1,28 +0,0 @@ -<script setup lang="ts"> -import { useSessionStore } from '@/stores/session'; -import { storeToRefs } from 'pinia'; -import EditorSidebarCategory from '@/components/Editor/EditorSidebarCategory.vue'; -import EditorSidebarQuest from '@/components/Editor/EditorSidebarQuest.vue'; - -const sessionStore = useSessionStore(); - -const { session } = storeToRefs(sessionStore); -</script> - -<template> - <div id="sidebar-container"> - <EditorSidebarCategory v-for="category in session.categories" :key="category.id" :category="category" /> - <EditorSidebarQuest v-for="quest in session.quests.filter((q) => (!session.categories.some((c) => c.id === q.options.category)))" :key="quest.id" :quest="quest" /> - </div> -</template> - -<style scoped> -#sidebar-container { - width: 20rem; - border-right: 1px solid var(--color-border); - height: calc(100vh - 73px); - max-height: calc(100vh - 73px); - background-color: var(--color-background); - user-select: none; -} -</style>
\ No newline at end of file |
