Migration datamodels !

This commit is contained in:
2026-01-11 22:40:06 +01:00
parent 8d3fdbd009
commit fc7c51e369
238 changed files with 16947 additions and 2539 deletions

29
templates/convert-templates.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Templates simples (juste description)
simple_items=("don" "faiblesse" "blessure")
for item in "${simple_items[@]}"; do
cat > "item-${item}-sheet.hbs" << 'EOF'
<section class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-action="editImage" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Nom"/></h1>
</div>
</header>
<section class="sheet-body">
<div class="tab" data-group="primary">
<label class="generic-label">Description</label>
<div class="editor-content">
{{{enrichedDescription}}}
</div>
</div>
</section>
</section>
EOF
done
echo "Created simple item templates"
ls -1 item-*-sheet.hbs | wc -l