feat: Add Daggerheart actor item updater module for automatic and manual item synchronization with compendiums.
This commit is contained in:
commit
1c5f990d64
7 changed files with 594 additions and 0 deletions
51
templates/updater.hbs
Normal file
51
templates/updater.hbs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<form class="dh-actor-updater-content">
|
||||
<div class="dh-actor-updater-header">
|
||||
<p>The following items on your actors differ from the SRD Compendium versions.</p>
|
||||
</div>
|
||||
|
||||
{{#if summary}}
|
||||
<div class="dh-actor-updater-summary">
|
||||
<h3>Update Summary</h3>
|
||||
<ul>
|
||||
{{#each summaryLog}}
|
||||
<li>{{this}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{else}}
|
||||
<ul class="dh-actor-updater-list">
|
||||
{{#each updates}}
|
||||
{{#if this}}
|
||||
<li class="dh-actor-updater-item">
|
||||
<div class="dh-actor-updater-info">
|
||||
<div class="dh-actor-updater-name">{{itemName}}</div>
|
||||
<div class="dh-actor-updater-details">
|
||||
Actor: {{actorName}} | Changes: {{changes}} fields
|
||||
</div>
|
||||
</div>
|
||||
<div class="dh-actor-updater-controls">
|
||||
<button type="button" class="btn-update" data-index="{{id}}">
|
||||
<i class="fas fa-sync"></i> Update
|
||||
</button>
|
||||
<button type="button" class="btn-ignore" data-index="{{id}}">
|
||||
<i class="fas fa-ban"></i> Ignore
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<li class="dh-actor-updater-item">
|
||||
<div class="dh-actor-updater-info">
|
||||
No updates found.
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<div class="dh-actor-updater-footer">
|
||||
<button type="button" class="btn-update-all">
|
||||
<i class="fas fa-check-double"></i> Update All
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue