From 4d2f28ecead7514a957d343b9d4d139afaa48421 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop
Date: Sun, 10 Mar 2024 01:56:33 +0000
Subject: Fix broken fontawesome references
---
components/base/ItemStackModal.vue | 10 +++----
components/base/ItemStackPicker.vue | 43 +++++++++++++--------------
components/base/TrueFalseSwitch.vue | 11 ++++---
components/editor/SidebarCategory.vue | 2 +-
components/editor/SidebarQuest.vue | 2 +-
components/editor/quest/TasksOptionsPanel.vue | 3 +-
components/editor/quest/modal/Delete.vue | 4 +--
components/editor/quest/modal/Duplicate.vue | 4 +--
components/editor/quest/modal/Rename.vue | 4 +--
components/editor/task/Configuration.vue | 6 ++--
components/editor/task/modal/Change.vue | 4 +--
components/editor/task/modal/Create.vue | 4 +--
12 files changed, 46 insertions(+), 51 deletions(-)
(limited to 'components')
diff --git a/components/base/ItemStackModal.vue b/components/base/ItemStackModal.vue
index 9a1e2b5..7a8aae2 100644
--- a/components/base/ItemStackModal.vue
+++ b/components/base/ItemStackModal.vue
@@ -68,21 +68,21 @@ const confirm = () => {
-
+
Quest Item
Re-use a quest item.
-
+
ItemStack
Define a new item stack.
-
+
Material
Define a specific item type.
@@ -100,8 +100,8 @@ const confirm = () => {
-
-
+
+
diff --git a/components/base/ItemStackPicker.vue b/components/base/ItemStackPicker.vue
index d16090e..66b665f 100644
--- a/components/base/ItemStackPicker.vue
+++ b/components/base/ItemStackPicker.vue
@@ -14,9 +14,9 @@ const showItemStackModal = ref(false);
//TODO unshitify
const empty = computed(() => {
- return value.value === undefined
- || value.value === null
- || value.value === ''
+ return value.value === undefined
+ || value.value === null
+ || value.value === ''
|| (Array.isArray(value.value) && value.value.length === 0)
|| (typeof value.value === 'object' && Object.keys(value.value).length === 0);
});
@@ -28,12 +28,12 @@ const isItemStack = computed(() => {
return false;
}
- const key = 'item' in value.value
- ? 'item'
- : 'type' in value.value
- ? 'type'
+ const key = 'item' in value.value
+ ? 'item'
+ : 'type' in value.value
+ ? 'type'
: 'material'
-
+
return (!!value.value[key]);
});
const isMaterial = computed(() => {
@@ -50,17 +50,15 @@ const update = (newValue: any) => {
ItemStack...
- Quest Item
- ItemStack of '{{ value.type || value.item || value.material }}'
- {{ value }}
- Invalid ItemStack
+ Quest Item
+ ItemStack of '{{ value.type ||
+ value.item || value.material }}'
+ {{ value }}
+ Invalid ItemStack
-
-
+
+
\ No newline at end of file
diff --git a/components/base/TrueFalseSwitch.vue b/components/base/TrueFalseSwitch.vue
index a0a3392..152efa3 100644
--- a/components/base/TrueFalseSwitch.vue
+++ b/components/base/TrueFalseSwitch.vue
@@ -16,8 +16,8 @@ const invert = () => {
- True
- False
+ True
+ False
@@ -32,12 +32,12 @@ const invert = () => {
user-select: none;
transition: background-color 0.3s;
background-color: var(--color-background-soft);
-
+
span {
font-family: monospace;
font-size: 0.8rem;
}
-
+
.true {
color: var(--color-text-primary);
}
@@ -45,10 +45,9 @@ const invert = () => {
.false {
color: var(--color-false);
}
-
+
&:hover {
background-color: var(--color-hover);
}
}
-
\ No newline at end of file
diff --git a/components/editor/SidebarCategory.vue b/components/editor/SidebarCategory.vue
index 3e0db9b..9dedf33 100644
--- a/components/editor/SidebarCategory.vue
+++ b/components/editor/SidebarCategory.vue
@@ -35,7 +35,7 @@ const selected = computed(() => {
+ :icon="expanded ? ['fas', 'caret-down'] : ['fas', 'caret-up']" />
{{ stripColorCodes(category.display.name) }}
{{ category.id }}
diff --git a/components/editor/SidebarQuest.vue b/components/editor/SidebarQuest.vue
index a7b3e3f..422e8c6 100644
--- a/components/editor/SidebarQuest.vue
+++ b/components/editor/SidebarQuest.vue
@@ -23,7 +23,7 @@ const selected = computed(() => {
-
+
{{ stripColorCodes(quest.display.name) }}
{{ quest.id }}
diff --git a/components/editor/quest/TasksOptionsPanel.vue b/components/editor/quest/TasksOptionsPanel.vue
index 7742408..034089d 100644
--- a/components/editor/quest/TasksOptionsPanel.vue
+++ b/components/editor/quest/TasksOptionsPanel.vue
@@ -36,8 +36,7 @@ const addTask = (newId: string, newType: string) => {
:quest="quest" />
-
+
diff --git a/components/editor/quest/modal/Delete.vue b/components/editor/quest/modal/Delete.vue
index 47c6388..e81bcc7 100644
--- a/components/editor/quest/modal/Delete.vue
+++ b/components/editor/quest/modal/Delete.vue
@@ -15,8 +15,8 @@ defineProps({
Are you sure you want to delete this quest? The quests editor does not have undo functionality (yet)!
-
-
+
+
diff --git a/components/editor/quest/modal/Duplicate.vue b/components/editor/quest/modal/Duplicate.vue
index e089222..73a2fd0 100644
--- a/components/editor/quest/modal/Duplicate.vue
+++ b/components/editor/quest/modal/Duplicate.vue
@@ -35,8 +35,8 @@ const isDuplicate = computed(() => {
Name is not unique.
A Quest ID must be unique, alphanumeric, and not contain any spaces.
-
-
+
diff --git a/components/editor/quest/modal/Rename.vue b/components/editor/quest/modal/Rename.vue
index 7339219..3d846aa 100644
--- a/components/editor/quest/modal/Rename.vue
+++ b/components/editor/quest/modal/Rename.vue
@@ -35,8 +35,8 @@ const isDuplicate = computed(() => {
Name is not unique.
A Quest ID must be unique, alphanumeric, and not contain any spaces.
-
-
+
diff --git a/components/editor/task/Configuration.vue b/components/editor/task/Configuration.vue
index 9cb55d1..0355383 100644
--- a/components/editor/task/Configuration.vue
+++ b/components/editor/task/Configuration.vue
@@ -86,13 +86,13 @@ const deleteTaskType = (taskId: string) => {
-
-
+
+
-
+
Unable to edit task {{ props.taskId }}.
diff --git a/components/editor/task/modal/Change.vue b/components/editor/task/modal/Change.vue
index db7d96b..8ab5dbc 100644
--- a/components/editor/task/modal/Change.vue
+++ b/components/editor/task/modal/Change.vue
@@ -38,8 +38,8 @@ const newTypeDescription = computed(() => session.getTaskDefinitionByTaskType(ne
{{ newTypeDescription }}
Any configured options for this task will be overwritten.
-
-
+
diff --git a/components/editor/task/modal/Create.vue b/components/editor/task/modal/Create.vue
index d286759..e3867b6 100644
--- a/components/editor/task/modal/Create.vue
+++ b/components/editor/task/modal/Create.vue
@@ -51,8 +51,8 @@ const newTypeDescription = computed(() => session.getTaskDefinitionByTaskType(ne
{{ newTypeDescription }}
A task ID must be unique, alphanumeric, and not contain any spaces.
-
-
+
--
cgit v1.2.3-70-g09d2