dist files for v1.3.1 built
This commit is contained in:
@@ -284,4 +284,5 @@ git add -A
|
|||||||
git commit -m "dist files for $VERSION built" --allow-empty
|
git commit -m "dist files for $VERSION built" --allow-empty
|
||||||
git push
|
git push
|
||||||
git push origin --force tag "$VERSION"
|
git push origin --force tag "$VERSION"
|
||||||
|
git push github --force tag "$VERSION"
|
||||||
echo "✅ Pushed commit + tag $VERSION"
|
echo "✅ Pushed commit + tag $VERSION"
|
||||||
|
|||||||
2
dist/bookmarklet-payload.js
vendored
2
dist/bookmarklet-payload.js
vendored
File diff suppressed because one or more lines are too long
2
dist/bookmarklet.txt
vendored
2
dist/bookmarklet.txt
vendored
File diff suppressed because one or more lines are too long
2
dist/install.html
vendored
2
dist/install.html
vendored
File diff suppressed because one or more lines are too long
9
dist/kantine-standalone.html
vendored
9
dist/kantine-standalone.html
vendored
@@ -2516,10 +2516,12 @@ body {
|
|||||||
try {
|
try {
|
||||||
const cached = localStorage.getItem(CACHE_KEY);
|
const cached = localStorage.getItem(CACHE_KEY);
|
||||||
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
||||||
|
console.log(`[Cache] localStorage: key=${!!cached} (${cached ? cached.length : 0} chars), ts=${cachedTs}`);
|
||||||
if (cached) {
|
if (cached) {
|
||||||
allWeeks = JSON.parse(cached);
|
allWeeks = JSON.parse(cached);
|
||||||
currentWeekNumber = getISOWeek(new Date());
|
currentWeekNumber = getISOWeek(new Date());
|
||||||
currentYear = new Date().getFullYear();
|
currentYear = new Date().getFullYear();
|
||||||
|
console.log(`[Cache] Parsed ${allWeeks.length} weeks:`, allWeeks.map(w => `KW${w.weekNumber}/${w.year} (${(w.days || []).length} days)`));
|
||||||
renderVisibleWeeks();
|
renderVisibleWeeks();
|
||||||
updateNextWeekBadge();
|
updateNextWeekBadge();
|
||||||
if (cachedTs) updateLastUpdatedTime(cachedTs);
|
if (cachedTs) updateLastUpdatedTime(cachedTs);
|
||||||
@@ -2535,7 +2537,10 @@ body {
|
|||||||
// FR-024: Check if cache is fresh enough to skip API refresh
|
// FR-024: Check if cache is fresh enough to skip API refresh
|
||||||
function isCacheFresh() {
|
function isCacheFresh() {
|
||||||
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
||||||
if (!cachedTs) return false;
|
if (!cachedTs) {
|
||||||
|
console.log('[Cache] No timestamp found');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Condition 1: Cache < 1 hour old
|
// Condition 1: Cache < 1 hour old
|
||||||
const ageMs = Date.now() - new Date(cachedTs).getTime();
|
const ageMs = Date.now() - new Date(cachedTs).getTime();
|
||||||
@@ -2550,7 +2555,7 @@ body {
|
|||||||
const thisYear = getWeekYear(new Date());
|
const thisYear = getWeekYear(new Date());
|
||||||
const hasCurrentWeek = allWeeks.some(w => w.weekNumber === thisWeek && w.year === thisYear && w.days && w.days.length > 0);
|
const hasCurrentWeek = allWeeks.some(w => w.weekNumber === thisWeek && w.year === thisYear && w.days && w.days.length > 0);
|
||||||
|
|
||||||
console.log(`[Cache] Age: ${ageMin}min, KW${thisWeek}: ${hasCurrentWeek ? 'vorhanden' : 'fehlt'}`);
|
console.log(`[Cache] Age: ${ageMin}min, looking for KW${thisWeek}/${thisYear}, found: ${hasCurrentWeek}`);
|
||||||
return hasCurrentWeek;
|
return hasCurrentWeek;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -780,10 +780,12 @@
|
|||||||
try {
|
try {
|
||||||
const cached = localStorage.getItem(CACHE_KEY);
|
const cached = localStorage.getItem(CACHE_KEY);
|
||||||
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
||||||
|
console.log(`[Cache] localStorage: key=${!!cached} (${cached ? cached.length : 0} chars), ts=${cachedTs}`);
|
||||||
if (cached) {
|
if (cached) {
|
||||||
allWeeks = JSON.parse(cached);
|
allWeeks = JSON.parse(cached);
|
||||||
currentWeekNumber = getISOWeek(new Date());
|
currentWeekNumber = getISOWeek(new Date());
|
||||||
currentYear = new Date().getFullYear();
|
currentYear = new Date().getFullYear();
|
||||||
|
console.log(`[Cache] Parsed ${allWeeks.length} weeks:`, allWeeks.map(w => `KW${w.weekNumber}/${w.year} (${(w.days || []).length} days)`));
|
||||||
renderVisibleWeeks();
|
renderVisibleWeeks();
|
||||||
updateNextWeekBadge();
|
updateNextWeekBadge();
|
||||||
if (cachedTs) updateLastUpdatedTime(cachedTs);
|
if (cachedTs) updateLastUpdatedTime(cachedTs);
|
||||||
@@ -799,7 +801,10 @@
|
|||||||
// FR-024: Check if cache is fresh enough to skip API refresh
|
// FR-024: Check if cache is fresh enough to skip API refresh
|
||||||
function isCacheFresh() {
|
function isCacheFresh() {
|
||||||
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
const cachedTs = localStorage.getItem(CACHE_TS_KEY);
|
||||||
if (!cachedTs) return false;
|
if (!cachedTs) {
|
||||||
|
console.log('[Cache] No timestamp found');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Condition 1: Cache < 1 hour old
|
// Condition 1: Cache < 1 hour old
|
||||||
const ageMs = Date.now() - new Date(cachedTs).getTime();
|
const ageMs = Date.now() - new Date(cachedTs).getTime();
|
||||||
@@ -814,7 +819,7 @@
|
|||||||
const thisYear = getWeekYear(new Date());
|
const thisYear = getWeekYear(new Date());
|
||||||
const hasCurrentWeek = allWeeks.some(w => w.weekNumber === thisWeek && w.year === thisYear && w.days && w.days.length > 0);
|
const hasCurrentWeek = allWeeks.some(w => w.weekNumber === thisWeek && w.year === thisYear && w.days && w.days.length > 0);
|
||||||
|
|
||||||
console.log(`[Cache] Age: ${ageMin}min, KW${thisWeek}: ${hasCurrentWeek ? 'vorhanden' : 'fehlt'}`);
|
console.log(`[Cache] Age: ${ageMin}min, looking for KW${thisWeek}/${thisYear}, found: ${hasCurrentWeek}`);
|
||||||
return hasCurrentWeek;
|
return hasCurrentWeek;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user