From 0f2240c87a5c0a22e2db97e4d2b82a52401be668 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop
Date: Thu, 15 Feb 2024 17:23:22 +0000
Subject: Add modals
---
src/components/Editor/EditorPane.vue | 27 +++++++---
.../Editor/Quest/Modal/DeleteQuestModal.vue | 42 +++++++++++++++
.../Editor/Quest/Modal/RenameQuestModal.vue | 59 ++++++++++++++++++++++
src/components/Editor/Quest/QuestOptionsPanel.vue | 20 ++++----
.../Editor/Quest/Task/Modal/ChangeTaskModal.vue | 59 ++++++++++++++++++++++
.../Editor/Quest/Task/TaskConfiguration.vue | 18 ++++---
6 files changed, 200 insertions(+), 25 deletions(-)
create mode 100644 src/components/Editor/Quest/Modal/DeleteQuestModal.vue
create mode 100644 src/components/Editor/Quest/Modal/RenameQuestModal.vue
create mode 100644 src/components/Editor/Quest/Task/Modal/ChangeTaskModal.vue
(limited to 'src/components/Editor')
diff --git a/src/components/Editor/EditorPane.vue b/src/components/Editor/EditorPane.vue
index 6245e56..22458cb 100644
--- a/src/components/Editor/EditorPane.vue
+++ b/src/components/Editor/EditorPane.vue
@@ -1,12 +1,14 @@
@@ -55,7 +60,7 @@ const categoryFromSelectedQuest = computed(() => {
({{ selectedId }})
-
+
@@ -80,6 +87,17 @@ const categoryFromSelectedQuest = computed(() => {
+
+
+
\ No newline at end of file
diff --git a/src/components/Editor/Quest/Modal/RenameQuestModal.vue b/src/components/Editor/Quest/Modal/RenameQuestModal.vue
new file mode 100644
index 0000000..5b1e0ed
--- /dev/null
+++ b/src/components/Editor/Quest/Modal/RenameQuestModal.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+ Rename quest '{{ questId }}'
+
+
+
+
+
+
+
+
+
A Quest ID must be unique, alphanumeric, and not contain any spaces.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Editor/Quest/QuestOptionsPanel.vue b/src/components/Editor/Quest/QuestOptionsPanel.vue
index 3495d60..3c1e599 100644
--- a/src/components/Editor/Quest/QuestOptionsPanel.vue
+++ b/src/components/Editor/Quest/QuestOptionsPanel.vue
@@ -1,8 +1,9 @@
@@ -121,6 +124,11 @@ const knownQuests = computed(() => {
+
+
@@ -132,20 +140,10 @@ const knownQuests = computed(() => {
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);
}
diff --git a/src/components/Editor/Quest/Task/Modal/ChangeTaskModal.vue b/src/components/Editor/Quest/Task/Modal/ChangeTaskModal.vue
new file mode 100644
index 0000000..f8ffef7
--- /dev/null
+++ b/src/components/Editor/Quest/Task/Modal/ChangeTaskModal.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+ Change the task type of '{{ taskId }}'
+
+
+
+
+
+
+
+
+
Any configured options for this task will be overwritten.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Editor/Quest/Task/TaskConfiguration.vue b/src/components/Editor/Quest/Task/TaskConfiguration.vue
index c31a87d..7006f18 100644
--- a/src/components/Editor/Quest/Task/TaskConfiguration.vue
+++ b/src/components/Editor/Quest/Task/TaskConfiguration.vue
@@ -1,8 +1,9 @@
@@ -75,10 +78,11 @@ const deleteValue = (fieldName: string) => {
({{ taskType }})
-
+
+