feat: Add Daggerheart actor item updater module for automatic and manual item synchronization with compendiums.

This commit is contained in:
CPTN Cosmo 2026-01-17 16:00:51 +01:00
commit 1c5f990d64
No known key found for this signature in database
7 changed files with 594 additions and 0 deletions

82
styles/updater.css Normal file
View file

@ -0,0 +1,82 @@
.dh-actor-updater-window .window-content {
padding: 0;
display: flex;
flex-direction: column;
height: 100%;
}
.dh-actor-updater-list {
flex: 1;
overflow-y: auto;
padding: 10px;
list-style: none; /* Remove default bullet points */
margin: 0;
}
.dh-actor-updater-item {
border: 1px solid var(--color-border-light-2);
background: rgba(0, 0, 0, 0.2);
margin-bottom: 5px;
padding: 8px;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
}
.dh-actor-updater-item.ignored {
opacity: 0.6;
background: rgba(50, 0, 0, 0.2);
}
.dh-actor-updater-info {
flex: 1;
}
.dh-actor-updater-name {
font-weight: bold;
font-size: 1.1em;
}
.dh-actor-updater-details {
font-size: 0.9em;
color: var(--color-text-light-2);
}
.dh-actor-updater-controls {
display: flex;
gap: 5px;
}
.dh-actor-updater-controls button {
width: auto;
padding: 2px 8px;
font-size: 0.9em;
}
.dh-actor-updater-diff {
margin-top: 5px;
font-family: monospace;
font-size: 0.85em;
background: rgba(0, 0, 0, 0.3);
padding: 5px;
border-radius: 3px;
white-space: pre-wrap;
}
.dh-actor-updater-diff .diff-add {
color: #aaffaa;
}
.dh-actor-updater-diff .diff-del {
color: #ffaaaa;
}
/* Footer buttons */
.dh-actor-updater-footer {
padding: 10px;
border-top: 1px solid var(--color-border-light-2);
display: flex;
justify-content: flex-end;
gap: 10px;
}