aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/templates
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-03 16:55:23 -0400
committerhistoria <[not public]>2026-07-03 16:55:23 -0400
commit034187d1c434b6bee32aeb539ea543f6ec537376 (patch)
treef238a9c6a657af20edf0c53e9d0980bc58c1133a /internal/admin/templates
parent778157981cccb8cb4856e3ab5a72085830c59120 (diff)
downloadthehouseoficarus-034187d1c434b6bee32aeb539ea543f6ec537376.tar.gz
feat: card ui added to drops, hazards, techs, and mods in admin gui
Diffstat (limited to 'internal/admin/templates')
-rw-r--r--internal/admin/templates/drops.html6
-rw-r--r--internal/admin/templates/hazards.html6
-rw-r--r--internal/admin/templates/modules.html6
-rw-r--r--internal/admin/templates/techs.html6
4 files changed, 18 insertions, 6 deletions
diff --git a/internal/admin/templates/drops.html b/internal/admin/templates/drops.html
index c040ef2..fb67c86 100644
--- a/internal/admin/templates/drops.html
+++ b/internal/admin/templates/drops.html
@@ -10,9 +10,9 @@
</div>
</div>
<script src="/static/editor.js"></script>
+<script src="/static/cardeditor.js"></script>
+<script src="/static/dropeditor.js"></script>
<script>
-initEditor('drops', [
- {key:'drops',label:'Drops (JSON array)',type:'textarea',parser:function(v){try{return JSON.parse(v)}catch(e){return []}}}
-]);
+initDropEditor();
</script>
{{end}}
diff --git a/internal/admin/templates/hazards.html b/internal/admin/templates/hazards.html
index 0d60df6..d7d4548 100644
--- a/internal/admin/templates/hazards.html
+++ b/internal/admin/templates/hazards.html
@@ -10,5 +10,9 @@
</div>
</div>
<script src="/static/editor.js"></script>
-<script>initEditor('hazards', [{key:'name',label:'Name',type:'text'},{key:'damage',label:'Damage',type:'number'},{key:'speed',label:'Speed',type:'number'},{key:'required_item',label:'Required Item',type:'text'},{key:'message',label:'Message',type:'text'},{key:'lethal',label:'Lethal',type:'checkbox'}]);</script>
+<script src="/static/cardeditor.js"></script>
+<script src="/static/hazardeditor.js"></script>
+<script>
+initHazardEditor();
+</script>
{{end}}
diff --git a/internal/admin/templates/modules.html b/internal/admin/templates/modules.html
index 0f8ca7c..e46af1b 100644
--- a/internal/admin/templates/modules.html
+++ b/internal/admin/templates/modules.html
@@ -10,5 +10,9 @@
</div>
</div>
<script src="/static/editor.js"></script>
-<script>initEditor('modules', [{key:'name',label:'Name',type:'text'},{key:'type',label:'Type',type:'text'},{key:'effect',label:'Effect',type:'text'},{key:'description',label:'Description',type:'textarea'}]);</script>
+<script src="/static/cardeditor.js"></script>
+<script src="/static/moduleeditor.js"></script>
+<script>
+initModuleEditor();
+</script>
{{end}}
diff --git a/internal/admin/templates/techs.html b/internal/admin/templates/techs.html
index 084d564..813d57b 100644
--- a/internal/admin/templates/techs.html
+++ b/internal/admin/templates/techs.html
@@ -10,5 +10,9 @@
</div>
</div>
<script src="/static/editor.js"></script>
-<script>initEditor('techs', [{key:'name',label:'Name',type:'text'},{key:'category',label:'Category',type:'text'},{key:'tier',label:'Tier',type:'number'},{key:'drain',label:'Drain Rate',type:'number'},{key:'bonus',label:'Bonus',type:'number'},{key:'description',label:'Description',type:'textarea'}]);</script>
+<script src="/static/cardeditor.js"></script>
+<script src="/static/techeditor.js"></script>
+<script>
+initTechEditor();
+</script>
{{end}}