Compare commits

2 Commits

Author SHA1 Message Date
8af2fc3f3b build: keep console.error/warn/info in production builds
All checks were successful
CI / update (push) Successful in 1m22s
Changed drop_console from true to ['log', 'debug'] to retain
error and warning logs for debugging while reducing bundle size.
2026-01-20 12:16:14 +01:00
180bdb4aaa fix: restore rosary counter functionality with Svelte 5 reactivity
The Ave Maria counter was not updating the visualization when clicked.
Fixed by wrapping decadeCounters in $state() for proper reactivity tracking
and correcting data-section attributes to use template literals instead of
string literals in the decade loop.
2026-01-20 12:03:23 +01:00
2 changed files with 5 additions and 5 deletions

View File

@@ -191,13 +191,13 @@ let sectionElements = {};
let svgContainer;
// Counter for tracking Ave Maria progress in each decade (0-10 for each)
let decadeCounters = {
let decadeCounters = $state({
secret1: 0,
secret2: 0,
secret3: 0,
secret4: 0,
secret5: 0
};
});
// Modal state for displaying Bible citations
let showModal = $state(false);
@@ -1388,7 +1388,7 @@ l536 389l-209 -629zM1671 934l-370 267l150 436l-378 -271l-371 271q8 -34 15 -68q10
<div
class="prayer-section decade"
bind:this={sectionElements[`secret${decadeNum}`]}
data-section="secret{decadeNum}"
data-section={`secret${decadeNum}`}
>
<h2>{decadeNum}. Gesätz: {currentMysteryTitles[decadeNum - 1]}</h2>
@@ -1421,7 +1421,7 @@ l536 389l-209 -629zM1671 934l-370 267l150 436l-378 -271l-371 271q8 -34 15 -68q10
<div
class="prayer-section"
bind:this={sectionElements[`secret${decadeNum}_transition`]}
data-section="secret{decadeNum}_transition"
data-section={`secret${decadeNum}_transition`}
>
<h3>Gloria Patri</h3>
<GloriaPatri />

View File

@@ -10,7 +10,7 @@ export default defineConfig({
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_console: ['log', 'debug'],
drop_debugger: true
}
},