From 282aabb7fa527032c287dc12f619e0eb23c82a87 Mon Sep 17 00:00:00 2001
From: Alexis <35.alexis.pele@gmail.com>
Date: Tue, 4 Mar 2025 19:02:27 +0100
Subject: [PATCH] Added state selector for world
---
components/global/input/ContentState.vue | 26 ++++++++++++++++++++++++
components/world/form/Edit.vue | 12 +++++++----
i18n.config.ts | 12 +++++++++++
models/CalendarConfig.ts | 4 ++--
models/Entity.ts | 2 ++
models/World.ts | 5 ++---
server/api/worlds/query.get.ts | 2 ++
7 files changed, 54 insertions(+), 9 deletions(-)
create mode 100644 components/global/input/ContentState.vue
create mode 100644 models/Entity.ts
diff --git a/components/global/input/ContentState.vue b/components/global/input/ContentState.vue
new file mode 100644
index 0000000..ef137d0
--- /dev/null
+++ b/components/global/input/ContentState.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+ {{ $t(`ui.contentState.${state}`) }}
+
+
+
+
+
diff --git a/components/world/form/Edit.vue b/components/world/form/Edit.vue
index b048a6d..c1c999f 100644
--- a/components/world/form/Edit.vue
+++ b/components/world/form/Edit.vue
@@ -83,10 +83,6 @@ function handleFormCancel() {
@input="handleNameChange"
>
-
-
-
-
+
+
+
+
+
+
+
+