refactor(web): consolidate inline JavaScript to TypeScript modules

Migrated app.js and components.js to TypeScript. Extracted inline scripts from base.html to cardHover.ts and cardImages.ts modules for better maintainability and code reuse.
This commit is contained in:
matt 2025-10-29 10:44:29 -07:00
parent ed381dfdce
commit 9379732eec
8 changed files with 1050 additions and 634 deletions

View file

@ -242,7 +242,7 @@
id="filter-cmc-min"
min="0"
max="16"
value="{{ cmc_min if cmc_min is defined else '' }}"
value="{{ cmc_min if cmc_min is not none and cmc_min != '' else '' }}"
placeholder="Min"
style="width:70px;"
onchange="applyFilter()"
@ -253,7 +253,7 @@
id="filter-cmc-max"
min="0"
max="16"
value="{{ cmc_max if cmc_max is defined else '' }}"
value="{{ cmc_max if cmc_max is not none and cmc_max != '' else '' }}"
placeholder="Max"
style="width:70px;"
onchange="applyFilter()"
@ -268,7 +268,7 @@
id="filter-power-min"
min="0"
max="99"
value="{{ power_min if power_min is defined else '' }}"
value="{{ power_min if power_min is not none and power_min != '' else '' }}"
placeholder="Min"
style="width:70px;"
onchange="applyFilter()"
@ -279,7 +279,7 @@
id="filter-power-max"
min="0"
max="99"
value="{{ power_max if power_max is defined else '' }}"
value="{{ power_max if power_max is not none and power_max != '' else '' }}"
placeholder="Max"
style="width:70px;"
onchange="applyFilter()"
@ -294,7 +294,7 @@
id="filter-tough-min"
min="0"
max="99"
value="{{ tough_min if tough_min is defined else '' }}"
value="{{ tough_min if tough_min is not none and tough_min != '' else '' }}"
placeholder="Min"
style="width:70px;"
onchange="applyFilter()"
@ -305,7 +305,7 @@
id="filter-tough-max"
min="0"
max="99"
value="{{ tough_max if tough_max is defined else '' }}"
value="{{ tough_max if tough_max is not none and tough_max != '' else '' }}"
placeholder="Max"
style="width:70px;"
onchange="applyFilter()"