aboutsummaryrefslogtreecommitdiffstats
path: root/components/Editor/Category
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-03-10 01:31:42 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-03-10 01:31:42 +0000
commit71e4ad2c71efea471923ea47f01bfda841387f81 (patch)
treef08293fdc56b4eb2e3d0e520b79b4d8aad78924c /components/Editor/Category
parent4495c02c41b95ce6df0c34dbf6ac62f7addae7a3 (diff)
Use nuxt auto import magic
Diffstat (limited to 'components/Editor/Category')
-rw-r--r--components/Editor/Category/CategoryChildrenOptionsPanel.vue53
-rw-r--r--components/Editor/Category/CategoryOptionsPanel.vue54
2 files changed, 0 insertions, 107 deletions
diff --git a/components/Editor/Category/CategoryChildrenOptionsPanel.vue b/components/Editor/Category/CategoryChildrenOptionsPanel.vue
deleted file mode 100644
index 6e96f64..0000000
--- a/components/Editor/Category/CategoryChildrenOptionsPanel.vue
+++ /dev/null
@@ -1,53 +0,0 @@
-<script setup lang="ts">
-import { useSessionStore, type EditorCategory } from '@/stores/session';
-import { computed } from 'vue';
-import EditorOptionsPanel from '../EditorOptionsPanel.vue';
-
-const props = defineProps<{
- categoryId: string;
-}>();
-
-const sessionStore = useSessionStore();
-
-const category = computed(() => {
- return sessionStore.getCategoryById(props.categoryId) as EditorCategory;
-});
-</script>
-
-<template>
- <EditorOptionsPanel v-if="category">
- <div id="options">
- <h2>Quests in this category</h2>
- <p>Drag to reorder.</p>
- <div class="option-group">
- </div>
- </div>
- </EditorOptionsPanel>
-</template>
-
-<style>
-#options {
- display: flex;
- flex-direction: column;
- gap: 1rem;
-}
-
-.option-group {
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
-}
-
-.description {
- font-size: 0.8em;
-}
-
-label {
- font-weight: 700;
-}
-
-h2 {
- border-bottom: 1px solid var(--color-border);
-}
-</style>
-
diff --git a/components/Editor/Category/CategoryOptionsPanel.vue b/components/Editor/Category/CategoryOptionsPanel.vue
deleted file mode 100644
index f7d548c..0000000
--- a/components/Editor/Category/CategoryOptionsPanel.vue
+++ /dev/null
@@ -1,54 +0,0 @@
-<script setup lang="ts">
-import { useSessionStore, type EditorCategory } from '@/stores/session';
-import { computed } from 'vue';
-import EditorOptionsPanel from '../EditorOptionsPanel.vue';
-import Checkbox from '@/components/Control/Checkbox.vue';
-
-const props = defineProps<{
- categoryId: string;
-}>();
-
-const sessionStore = useSessionStore();
-
-const category = computed(() => {
- return sessionStore.getCategoryById(props.categoryId) as EditorCategory;
-});
-</script>
-
-<template>
- <EditorOptionsPanel v-if="category">
- <div id="options">
- <div class="option-group">
- <Checkbox id="category-permissionrequired" label="Require permission for category"
- description="Players must have permission to open and start quests in this category." v-model="category.permissionRequired" />
- </div>
- </div>
- </EditorOptionsPanel>
-</template>
-
-<style>
-#options {
- display: flex;
- flex-direction: column;
- gap: 1rem;
-}
-
-.option-group {
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
-}
-
-.description {
- font-size: 0.8em;
-}
-
-label {
- font-weight: 700;
-}
-
-h2 {
- border-bottom: 1px solid var(--color-border);
-}
-</style>
-