From 4495c02c41b95ce6df0c34dbf6ac62f7addae7a3 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Sun, 10 Mar 2024 01:01:22 +0000
Subject: Move selected state out of store and into route

---
 pages/index.vue | 36 ++++++++----------------------------
 1 file changed, 8 insertions(+), 28 deletions(-)

(limited to 'pages/index.vue')

diff --git a/pages/index.vue b/pages/index.vue
index b94f998..dd46b31 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,37 +1,17 @@
 <script setup lang="ts">
-import { useSessionStore } from '@/stores/session';
-import { loadQuestsFromJson, loadCategoriesFromJson } from '@/lib/questsLoader';
-import EditorSidebar from '@/components/Editor/EditorSidebar.vue';
-import testData from '@/data/testData.json';
-import taskDefinitions from '@/data/taskDefinitions.json';
-import EditorPane from '@/components/Editor/EditorPane.vue';
-
-const sessionStore = useSessionStore();
-
-const quests = loadQuestsFromJson(testData.quests);
-const categories = loadCategoriesFromJson(testData.categories);
-
-sessionStore.setQuests(quests);
-sessionStore.setCategories(categories);
-sessionStore.setTaskDefinitions(taskDefinitions.taskTypes);
-// sessionStore.updateEditorCategories();
+definePageMeta({
+  layout: 'editor'
+})
 </script>
 
 <template>
-  <main>
-    <div id="editor-container">
-      <EditorSidebar />
-      
-      <EditorPane />
-    </div>
-  </main>
+  <div id="title">
+    <h1>Select a quest or category to continue</h1>
+  </div>
 </template>
 
 <style lang="scss" scoped>
-#editor-container {
-  display: flex;
-  background-color: var(--color-background-soft);
-  max-height: calc(100vh - 73px);
-  flex-direction: row;
+#title {
+  text-align: center;
 }
 </style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

