Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 13a0ae3a93 | |||
| 1f8ebff9fe | |||
| 8e299c82ca | |||
| 5ae43e92de |
@@ -128,7 +128,7 @@ cat > "$DIST_DIR/install.html" << INSTALLEOF
|
||||
<!-- 1. BUTTON (Top Priority) -->
|
||||
<div class="card" style="text-align: center; border: 2px solid #029AA8;">
|
||||
<p style="margin-bottom:15px; font-weight:bold;">👇 Diesen Button in die Lesezeichen-Leiste ziehen:</p>
|
||||
<p><a class="bookmarklet" id="bookmarklet-link" href="#">⏳ Wird generiert...</a></p>
|
||||
<p><a class="bookmarklet" id="bookmarklet-link" href="#" onclick="event.preventDefault(); return false;" title="Nicht klicken! Ziehe mich in deine Lesezeichen-Leiste.">⏳ Wird generiert...</a></p>
|
||||
</div>
|
||||
|
||||
<!-- 2. INSTRUCTIONS -->
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
## v1.2.8 (2026-02-16)
|
||||
- **Debug**: Weiteres Logging (Fetch-Status, Start-Log) zur Fehlersuche. 🔎
|
||||
|
||||
## v1.2.7 (2026-02-16)
|
||||
- **Debug**: Verbose Logging für Update-Check eingebaut. 🐞
|
||||
|
||||
## v1.2.6 (2026-02-16)
|
||||
- **Test**: Version Bump zum Testen der Live-Update-Erkennung. 🧪
|
||||
|
||||
## v1.2.5 (2026-02-16)
|
||||
- **Refactor**: Update-Erkennung komplett überarbeitet (stündlicher Check, diskretes 🆕 Icon im Header, kein Banner mehr). 🔄
|
||||
- **Cleanup**: Ungenutzter CSS-Code und Netzwerk-Traffic reduziert. 🧹
|
||||
|
||||
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
24
dist/install.html
vendored
24
dist/install.html
vendored
File diff suppressed because one or more lines are too long
18
dist/kantine-standalone.html
vendored
18
dist/kantine-standalone.html
vendored
@@ -1680,7 +1680,7 @@ body {
|
||||
<div class="brand">
|
||||
<span class="material-icons-round logo-icon">restaurant_menu</span>
|
||||
<div class="header-left">
|
||||
<h1>Kantinen Übersicht <small style="font-size: 0.6em; opacity: 0.7; font-weight: 400;">v1.2.5</small></h1>
|
||||
<h1>Kantinen Übersicht <small style="font-size: 0.6em; opacity: 0.7; font-weight: 400;">v1.2.8</small></h1>
|
||||
<div id="last-updated-subtitle" class="subtitle"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -3027,17 +3027,27 @@ body {
|
||||
|
||||
// === Version Check (periodic, every hour) ===
|
||||
async function checkForUpdates() {
|
||||
const currentVersion = 'v1.2.5';
|
||||
console.log('[Kantine] Starting update check...');
|
||||
const currentVersion = 'v1.2.8';
|
||||
const versionUrl = 'https://raw.githubusercontent.com/TauNeutrino/kantine-overview/main/version.txt';
|
||||
const installerUrl = 'https://htmlpreview.github.io/?https://github.com/TauNeutrino/kantine-overview/blob/main/dist/install.html';
|
||||
|
||||
try {
|
||||
console.log(`[Kantine] Fetching ${versionUrl}...`);
|
||||
const resp = await fetch(versionUrl, { cache: 'no-cache' });
|
||||
if (!resp.ok) return;
|
||||
console.log(`[Kantine] Fetch status: ${resp.status}`);
|
||||
|
||||
if (!resp.ok) {
|
||||
console.warn(`[Kantine] Version Check HTTP Error: ${resp.status}`);
|
||||
return;
|
||||
}
|
||||
const remoteVersion = (await resp.text()).trim();
|
||||
|
||||
console.log(`[Kantine] Version Check: Local [${currentVersion}] vs Remote [${remoteVersion}]`);
|
||||
|
||||
if (!remoteVersion || remoteVersion === currentVersion) return;
|
||||
|
||||
console.log(`[Kantine] Update verfügbar: ${remoteVersion} (aktuell: ${currentVersion})`);
|
||||
console.log(`[Kantine] Update verfügbar: ${remoteVersion}`);
|
||||
|
||||
// Show 🆕 icon in header (only once)
|
||||
const headerTitle = document.querySelector('.header-left h1');
|
||||
|
||||
14
kantine.js
14
kantine.js
@@ -1413,17 +1413,27 @@
|
||||
|
||||
// === Version Check (periodic, every hour) ===
|
||||
async function checkForUpdates() {
|
||||
console.log('[Kantine] Starting update check...');
|
||||
const currentVersion = '{{VERSION}}';
|
||||
const versionUrl = 'https://raw.githubusercontent.com/TauNeutrino/kantine-overview/main/version.txt';
|
||||
const installerUrl = 'https://htmlpreview.github.io/?https://github.com/TauNeutrino/kantine-overview/blob/main/dist/install.html';
|
||||
|
||||
try {
|
||||
console.log(`[Kantine] Fetching ${versionUrl}...`);
|
||||
const resp = await fetch(versionUrl, { cache: 'no-cache' });
|
||||
if (!resp.ok) return;
|
||||
console.log(`[Kantine] Fetch status: ${resp.status}`);
|
||||
|
||||
if (!resp.ok) {
|
||||
console.warn(`[Kantine] Version Check HTTP Error: ${resp.status}`);
|
||||
return;
|
||||
}
|
||||
const remoteVersion = (await resp.text()).trim();
|
||||
|
||||
console.log(`[Kantine] Version Check: Local [${currentVersion}] vs Remote [${remoteVersion}]`);
|
||||
|
||||
if (!remoteVersion || remoteVersion === currentVersion) return;
|
||||
|
||||
console.log(`[Kantine] Update verfügbar: ${remoteVersion} (aktuell: ${currentVersion})`);
|
||||
console.log(`[Kantine] Update verfügbar: ${remoteVersion}`);
|
||||
|
||||
// Show 🆕 icon in header (only once)
|
||||
const headerTitle = document.querySelector('.header-left h1');
|
||||
|
||||
@@ -1 +1 @@
|
||||
v1.2.5
|
||||
v1.2.8
|
||||
|
||||
Reference in New Issue
Block a user