feat(ui): light mode and new theming system (#1468)

This commit is contained in:
Alex
2026-05-26 01:07:33 -04:00
committed by GitHub
parent 3211d7818a
commit 22ff6d8e90
131 changed files with 2816 additions and 3391 deletions
@@ -11,10 +11,10 @@
</p>
</div>
<div class="warning-notice">
<i class="pi pi-exclamation-triangle"></i>
<div class="warning-notice border-l-red-700 dark:border-l-red-300">
<i class="pi pi-exclamation-triangle text-red-700 dark:text-red-300"></i>
<div>
<strong>{{ t('warning.title') }}</strong> {{ t('warning.text') }}
<strong class="text-red-700 dark:text-red-300">{{ t('warning.title') }}</strong> {{ t('warning.text') }}
</div>
</div>
@@ -55,7 +55,7 @@
<i class="pi pi-eye"></i>
{{ t('defaultPattern.preview') }}
</span>
<code class="preview-value">{{ generateDefaultPreview() }}</code>
<code class="preview-value text-emerald-700 dark:text-emerald-300">{{ generateDefaultPreview() }}</code>
</div>
</div>
</div>
@@ -120,7 +120,7 @@
<i class="pi pi-eye"></i>
{{ t('libraryOverrides.preview') }}
</span>
<code class="preview-value">{{ generateLibraryPreview(library) }}</code>
<code class="preview-value text-emerald-700 dark:text-emerald-300">{{ generateLibraryPreview(library) }}</code>
</div>
</div>
</div>
@@ -160,16 +160,16 @@
{{ t('placeholders.available') }}
</h4>
<div class="placeholder-list">
<div class="placeholder-item"><code>{{ '{title}' }}</code><span>{{ t('placeholders.title') }}</span></div>
<div class="placeholder-item"><code>{{ '{subtitle}' }}</code><span>{{ t('placeholders.subtitle') }}</span></div>
<div class="placeholder-item"><code>{{ '{authors}' }}</code><span>{{ t('placeholders.authors') }}</span></div>
<div class="placeholder-item"><code>{{ '{year}' }}</code><span>{{ t('placeholders.year') }}</span></div>
<div class="placeholder-item"><code>{{ '{series}' }}</code><span>{{ t('placeholders.series') }}</span></div>
<div class="placeholder-item"><code>{{ '{seriesIndex}' }}</code><span>{{ t('placeholders.seriesIndex') }}</span></div>
<div class="placeholder-item"><code>{{ '{language}' }}</code><span>{{ t('placeholders.language') }}</span></div>
<div class="placeholder-item"><code>{{ '{publisher}' }}</code><span>{{ t('placeholders.publisher') }}</span></div>
<div class="placeholder-item"><code>{{ '{isbn}' }}</code><span>{{ t('placeholders.isbn') }}</span></div>
<div class="placeholder-item"><code>{{ '{currentFilename}' }}</code><span>{{ t('placeholders.currentFilename') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title}' }}</code><span>{{ t('placeholders.title') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{subtitle}' }}</code><span>{{ t('placeholders.subtitle') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors}' }}</code><span>{{ t('placeholders.authors') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{year}' }}</code><span>{{ t('placeholders.year') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{series}' }}</code><span>{{ t('placeholders.series') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{seriesIndex}' }}</code><span>{{ t('placeholders.seriesIndex') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{language}' }}</code><span>{{ t('placeholders.language') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{publisher}' }}</code><span>{{ t('placeholders.publisher') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{isbn}' }}</code><span>{{ t('placeholders.isbn') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{currentFilename}' }}</code><span>{{ t('placeholders.currentFilename') }}</span></div>
</div>
</div>
@@ -183,14 +183,14 @@
<div class="example-block">
<div class="example-pattern">
<span class="pattern-prefix">{{ t('placeholders.pattern') }}</span>
<code>{{ '{<{seriesIndex} - >{title}' }}</code>
<code class="text-orange-700 dark:text-orange-300">{{ '{<{seriesIndex} - >{title}' }}</code>
</div>
<div class="example-results">
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withIndex') }}</span>
<code>01 - Dune</code>
</div>
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.without') }}</span>
<code>Dune</code>
</div>
@@ -208,14 +208,14 @@
<div class="example-block">
<div class="example-pattern">
<span class="pattern-prefix">{{ t('placeholders.pattern') }}</span>
<code>{{ '{<{series}|Standalone>/{title}' }}</code>
<code class="text-orange-700 dark:text-orange-300">{{ '{<{series}|Standalone>/{title}' }}</code>
</div>
<div class="example-results">
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withSeries') }}</span>
<code>The Kingkiller Chronicle/The Name of the Wind</code>
</div>
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withoutSeries') }}</span>
<code>Standalone/The Name of the Wind</code>
</div>
@@ -231,11 +231,11 @@
<p class="group-description" [innerHTML]="t('placeholders.modifiersDesc')">
</p>
<div class="placeholder-list">
<div class="placeholder-item"><code>{{ '{authors:first}' }}</code><span>{{ t('placeholders.modFirst') }}</span></div>
<div class="placeholder-item"><code>{{ '{authors:sort}' }}</code><span>{{ t('placeholders.modSort') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:initial}' }}</code><span>{{ t('placeholders.modInitial') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:upper}' }}</code><span>{{ t('placeholders.modUpper') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:lower}' }}</code><span>{{ t('placeholders.modLower') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors:first}' }}</code><span>{{ t('placeholders.modFirst') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors:sort}' }}</code><span>{{ t('placeholders.modSort') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:initial}' }}</code><span>{{ t('placeholders.modInitial') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:upper}' }}</code><span>{{ t('placeholders.modUpper') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:lower}' }}</code><span>{{ t('placeholders.modLower') }}</span></div>
</div>
</div>
</div>
@@ -256,9 +256,9 @@
<div class="section-body">
<div class="examples-container">
<div class="metadata-reference">
<div class="metadata-panel metadata-panel-full">
<div class="metadata-panel metadata-panel-full border-l-emerald-500 dark:border-l-emerald-300">
<div class="metadata-panel-header">
<i class="pi pi-check-circle metadata-icon-full"></i>
<i class="pi pi-check-circle metadata-icon-full text-emerald-700 dark:text-emerald-300"></i>
<span>{{ t('examples.fullMetadata') }}</span>
</div>
<div class="metadata-grid">
@@ -270,9 +270,9 @@
<span class="metadata-key">year</span><code class="metadata-val">2007</code>
</div>
</div>
<div class="metadata-panel metadata-panel-partial">
<div class="metadata-panel metadata-panel-partial border-l-orange-700 dark:border-l-orange-300">
<div class="metadata-panel-header">
<i class="pi pi-question-circle metadata-icon-partial"></i>
<i class="pi pi-question-circle metadata-icon-partial text-orange-700 dark:text-orange-300"></i>
<span>{{ t('examples.partialMetadata') }}</span>
</div>
<div class="metadata-grid">
@@ -294,33 +294,33 @@
<div class="example-grid">
<div class="example-row">
<span class="pattern-label">{{ t('examples.basicPattern') }}</span>
<span class="pattern-col"><code>{{ '{authors} - {title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss - The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors} - {title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss - The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.seriesInFolder') }}</span>
<span class="pattern-col"><code>{{ '{authors}/{series}/{seriesIndex} - {title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss/The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors}/{series}/{seriesIndex} - {title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss/The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.titleSubtitle') }}</span>
<span class="pattern-col"><code>{{ '{title}: {subtitle}' }}</code></span>
<span class="result-col"><code>The Name of the Wind: Special Edition.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}: {subtitle}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>The Name of the Wind: Special Edition.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.absolutePath') }}</span>
<span class="pattern-col"><code>{{ '/{authors}/{title}' }}</code></span>
<span class="result-col"><code>/Patrick Rothfuss/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '/{authors}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>/Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.folderOnly') }}</span>
<span class="pattern-col"><code>{{ '{title}/' }}</code></span>
<span class="result-col"><code>The Name of the Wind/name_of_the_wind_original.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}/' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>The Name of the Wind/name_of_the_wind_original.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.yearPrefix') }}</span>
<span class="pattern-col"><code>{{ '({year}) {title}' }}</code></span>
<span class="result-col"><code>(2007) The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '({year}) {title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>(2007) The Name of the Wind.epub</code></span>
</div>
</div>
</div>
@@ -335,50 +335,50 @@
<div class="example-grid">
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.optionalBlock') }}</span>
<span class="pattern-col"><code>{{ '<{seriesIndex}. >{title}' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{seriesIndex}. >{title}' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>01. The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>01. The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.subtitleConditional') }}</span>
<span class="pattern-col"><code>{{ '{title}<: {subtitle}>' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}<: {subtitle}>' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Name of the Wind: Special Edition.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Name of the Wind: Special Edition.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.multipleOptional') }}</span>
<span class="pattern-col"><code>{{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>Patrick Rothfuss/The Kingkiller Chronicle/01. The Name of the Wind (2007).epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Andy Weir/Project Hail Mary (2021).epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>Patrick Rothfuss/The Kingkiller Chronicle/01. The Name of the Wind (2007).epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Andy Weir/Project Hail Mary (2021).epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseClause') }}</span>
<span class="pattern-col"><code>{{ '<{series}|Standalone>/{title}' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}|Standalone>/{title}' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Standalone/Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Standalone/Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseClauseFallback') }}</span>
<span class="pattern-col"><code>{{ '<{series}/{seriesIndex} - {title}|{title}>' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}/{seriesIndex} - {title}|{title}>' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseWithModifier') }}</span>
<span class="pattern-col"><code>{{ '<{series}|{authors:sort}>/{title}' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}|{authors:sort}>/{title}' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Weir, Andy/Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Weir, Andy/Project Hail Mary.epub</code></span>
</div>
</div>
</div>
@@ -394,38 +394,38 @@
<div class="example-grid">
<div class="example-row">
<span class="pattern-label">{{ t('examples.modifierSort') }}</span>
<span class="pattern-col"><code>{{ '{authors:sort}/{title}' }}</code></span>
<span class="result-col"><code>Rothfuss, Patrick/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:sort}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Rothfuss, Patrick/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modifierInitial') }}</span>
<span class="pattern-col"><code>{{ '{authors:initial}/{authors:sort}/{title}' }}</code></span>
<span class="result-col"><code>R/Rothfuss, Patrick/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:initial}/{authors:sort}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>R/Rothfuss, Patrick/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modFirst') }}</span>
<span class="pattern-col"><code>{{ '{authors:first}/{title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:first}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modUpper') }}</span>
<span class="pattern-col"><code>{{ '{title:upper}' }}</code></span>
<span class="result-col"><code>THE NAME OF THE WIND.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:upper}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>THE NAME OF THE WIND.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modLower') }}</span>
<span class="pattern-col"><code>{{ '{title:lower}' }}</code></span>
<span class="result-col"><code>the name of the wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:lower}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>the name of the wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.letterFolder') }}</span>
<span class="pattern-col"><code>{{ '{title:initial}/{authors}/{title}' }}</code></span>
<span class="result-col"><code>T/Patrick Rothfuss/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:initial}/{authors}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>T/Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.combinedMods') }}</span>
<span class="pattern-col"><code>{{ '{authors:sort} - {title:lower}' }}</code></span>
<span class="result-col"><code>Rothfuss, Patrick - the name of the wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:sort} - {title:lower}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Rothfuss, Patrick - the name of the wind.epub</code></span>
</div>
</div>
</div>