From 2aca4247c5d0c7061a300517178dd31316b65fab Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Thu, 15 Feb 2024 14:01:30 +0000
Subject: Initial commit

---
 src/views/EditorView.vue | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 src/views/EditorView.vue

(limited to 'src/views/EditorView.vue')

diff --git a/src/views/EditorView.vue b/src/views/EditorView.vue
new file mode 100644
index 0000000..b94f998
--- /dev/null
+++ b/src/views/EditorView.vue
@@ -0,0 +1,37 @@
+<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();
+</script>
+
+<template>
+  <main>
+    <div id="editor-container">
+      <EditorSidebar />
+      
+      <EditorPane />
+    </div>
+  </main>
+</template>
+
+<style lang="scss" scoped>
+#editor-container {
+  display: flex;
+  background-color: var(--color-background-soft);
+  max-height: calc(100vh - 73px);
+  flex-direction: row;
+}
+</style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

