From 71e4ad2c71efea471923ea47f01bfda841387f81 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Sun, 10 Mar 2024 01:31:42 +0000
Subject: Use nuxt auto import magic

---
 components/editor/Sidebar.vue | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 components/editor/Sidebar.vue

(limited to 'components/editor/Sidebar.vue')

diff --git a/components/editor/Sidebar.vue b/components/editor/Sidebar.vue
new file mode 100644
index 0000000..a46cdbe
--- /dev/null
+++ b/components/editor/Sidebar.vue
@@ -0,0 +1,28 @@
+<script setup lang="ts">
+import { useSessionStore } from '@/stores/session';
+import { storeToRefs } from 'pinia';
+
+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
-- 
cgit v1.2.3-70-g09d2

