diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-10 01:01:22 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-10 01:01:22 +0000 |
| commit | 4495c02c41b95ce6df0c34dbf6ac62f7addae7a3 (patch) | |
| tree | 39ebbc0e3f850bc602d3e90a1ab7bbbe9a6552c3 /pages/index.vue | |
| parent | 9a11e0f4a38297006b89cc7bb2a60734111582e0 (diff) | |
Move selected state out of store and into route
Diffstat (limited to 'pages/index.vue')
| -rw-r--r-- | pages/index.vue | 36 |
1 files changed, 8 insertions, 28 deletions
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 |
