Compare commits
2 Commits
93e110639c
...
35e59a15a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 35e59a15a0 | |||
| 57d9e2e2b2 |
@@ -8,9 +8,8 @@ Ein intelligentes Bookmarklet für die Mitarbeiter-Kantine der Bessa App. Dieses
|
|||||||
* **Bestellstatus:** Farbige Indikatoren für bestellte Menüs.
|
* **Bestellstatus:** Farbige Indikatoren für bestellte Menüs.
|
||||||
* **Kostenkontrolle:** Summiert automatisch den Gesamtpreis der Woche.
|
* **Kostenkontrolle:** Summiert automatisch den Gesamtpreis der Woche.
|
||||||
* **Session Reuse:** Nutzt automatisch eine bestehende Login-Session (Loggt dich automatisch ein).
|
* **Session Reuse:** Nutzt automatisch eine bestehende Login-Session (Loggt dich automatisch ein).
|
||||||
* **Bestellhistorie:** Zeigt zuverlässig alle aktiven und abgeschlossenen Bestellungen an (über `/user/orders/`).
|
* **API Fallback:** Prüft die Verbindung und bietet bei Fehlern einen Direktlink zur Originalseite.
|
||||||
* **Lokaler Cache:** Lädt Menüdaten blitzschnell aus dem Browser-Speicher.
|
* **Menu Badges:** Zeigt Menü-Codes (M1, M2+) direkt im Header.
|
||||||
* **Scroll-Fix:** Garantiert Scrollbarkeit auch auf restriktiven Seiten.
|
|
||||||
|
|
||||||
## 📦 Installation
|
## 📦 Installation
|
||||||
|
|
||||||
|
|||||||
@@ -88,13 +88,90 @@ cat > "$DIST_DIR/install.html" << 'INSTALLEOF'
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Kantine Wrapper Installer</title>
|
<title>Kantine Wrapper Installer</title>
|
||||||
<style>
|
<style>
|
||||||
body { font-family: 'Inter', sans-serif; max-width: 600px; margin: 40px auto; padding: 20px; background: #1a1a2e; color: #eee; }
|
:root {
|
||||||
h1 { color: #e94560; }
|
--knapp-blue: #029AA8;
|
||||||
.instructions { background: #16213e; padding: 20px; border-radius: 12px; margin: 20px 0; }
|
--knapp-teal: #006269;
|
||||||
.instructions ol li { margin: 10px 0; }
|
--knapp-yellow: #FFED00;
|
||||||
a.bookmarklet { display: inline-block; background: #e94560; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 18px; cursor: grab; }
|
--text-main: #333333;
|
||||||
a.bookmarklet:hover { background: #c73652; }
|
--bg-body: #f4f6f8;
|
||||||
code { background: #0f3460; padding: 2px 6px; border-radius: 4px; }
|
--bg-card: #ffffff;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
||||||
|
max-width: 700px;
|
||||||
|
margin: 40px auto;
|
||||||
|
padding: 20px;
|
||||||
|
background: var(--bg-body);
|
||||||
|
color: var(--text-main);
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
color: var(--knapp-teal);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
border-bottom: 2px solid var(--knapp-blue);
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
h2 { color: var(--knapp-blue); font-size: 1.25em; margin-top: 0; }
|
||||||
|
.instructions {
|
||||||
|
background: var(--bg-card);
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
.instructions ol { padding-left: 20px; }
|
||||||
|
.instructions ol li { margin-bottom: 10px; }
|
||||||
|
a { color: var(--knapp-blue); text-decoration: none; font-weight: 500; }
|
||||||
|
a:hover { text-decoration: underline; }
|
||||||
|
|
||||||
|
a.bookmarklet {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: var(--knapp-teal);
|
||||||
|
color: white;
|
||||||
|
padding: 15px 30px;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 18px;
|
||||||
|
cursor: grab;
|
||||||
|
box-shadow: 0 4px 6px rgba(0,98,105,0.2);
|
||||||
|
transition: all 0.2s;
|
||||||
|
border-bottom: 3px solid rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
a.bookmarklet:hover {
|
||||||
|
background: var(--knapp-blue);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 12px rgba(2,154,168,0.25);
|
||||||
|
}
|
||||||
|
a.bookmarklet:active {
|
||||||
|
cursor: grabbing;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #eef2f5;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: var(--knapp-teal);
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid #dae1e7;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul { padding-left: 20px; color: #555; }
|
||||||
|
ul li { margin-bottom: 8px; }
|
||||||
|
|
||||||
|
.disclaimer {
|
||||||
|
margin-top: 30px;
|
||||||
|
padding: 15px;
|
||||||
|
background: #fffde7; /* Light yellow */
|
||||||
|
border-left: 4px solid var(--knapp-yellow);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -106,6 +183,20 @@ cat > "$DIST_DIR/install.html" << 'INSTALLEOF'
|
|||||||
<li>Navigiere zu <a href="https://web.bessa.app/knapp-kantine" style="color:#e94560">web.bessa.app/knapp-kantine</a></li>
|
<li>Navigiere zu <a href="https://web.bessa.app/knapp-kantine" style="color:#e94560">web.bessa.app/knapp-kantine</a></li>
|
||||||
<li>Klicke auf das Lesezeichen <code>Kantine Wrapper</code></li>
|
<li>Klicke auf das Lesezeichen <code>Kantine Wrapper</code></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
<h2>✨ Features</h2>
|
||||||
|
<ul>
|
||||||
|
<li>📅 <strong>Wochenübersicht:</strong> Die ganze Woche auf einen Blick.</li>
|
||||||
|
<li>💰 <strong>Kostenkontrolle:</strong> Automatische Berechnung der Wochensumme.</li>
|
||||||
|
<li>🔑 <strong>Auto-Login:</strong> Nutzt deine bestehende Session.</li>
|
||||||
|
<li>🏷️ <strong>Badges & Status:</strong> Menü-Codes (M1, M2) und Bestellstatus direkt sichtbar.</li>
|
||||||
|
<li>🛡️ <strong>Offline-Support:</strong> Speichert Menüdaten lokal.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="disclaimer">
|
||||||
|
<strong>⚠️ Haftungsausschluss:</strong><br>
|
||||||
|
Die Verwendung dieses Bookmarklets erfolgt auf eigene Verantwortung. Der Entwickler übernimmt keine Haftung für Schäden, Datenverlust oder ungewollte Bestellungen, die durch die Nutzung dieser Software entstehen.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>👇 Diesen Button in die Lesezeichen-Leiste ziehen:</p>
|
<p>👇 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="#">⏳ Wird generiert...</a></p>
|
||||||
|
|||||||
105
dist/install.html
vendored
105
dist/install.html
vendored
@@ -4,13 +4,90 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Kantine Wrapper Installer</title>
|
<title>Kantine Wrapper Installer</title>
|
||||||
<style>
|
<style>
|
||||||
body { font-family: 'Inter', sans-serif; max-width: 600px; margin: 40px auto; padding: 20px; background: #1a1a2e; color: #eee; }
|
:root {
|
||||||
h1 { color: #e94560; }
|
--knapp-blue: #029AA8;
|
||||||
.instructions { background: #16213e; padding: 20px; border-radius: 12px; margin: 20px 0; }
|
--knapp-teal: #006269;
|
||||||
.instructions ol li { margin: 10px 0; }
|
--knapp-yellow: #FFED00;
|
||||||
a.bookmarklet { display: inline-block; background: #e94560; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 18px; cursor: grab; }
|
--text-main: #333333;
|
||||||
a.bookmarklet:hover { background: #c73652; }
|
--bg-body: #f4f6f8;
|
||||||
code { background: #0f3460; padding: 2px 6px; border-radius: 4px; }
|
--bg-card: #ffffff;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
||||||
|
max-width: 700px;
|
||||||
|
margin: 40px auto;
|
||||||
|
padding: 20px;
|
||||||
|
background: var(--bg-body);
|
||||||
|
color: var(--text-main);
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
color: var(--knapp-teal);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
border-bottom: 2px solid var(--knapp-blue);
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
h2 { color: var(--knapp-blue); font-size: 1.25em; margin-top: 0; }
|
||||||
|
.instructions {
|
||||||
|
background: var(--bg-card);
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
.instructions ol { padding-left: 20px; }
|
||||||
|
.instructions ol li { margin-bottom: 10px; }
|
||||||
|
a { color: var(--knapp-blue); text-decoration: none; font-weight: 500; }
|
||||||
|
a:hover { text-decoration: underline; }
|
||||||
|
|
||||||
|
a.bookmarklet {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: var(--knapp-teal);
|
||||||
|
color: white;
|
||||||
|
padding: 15px 30px;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 18px;
|
||||||
|
cursor: grab;
|
||||||
|
box-shadow: 0 4px 6px rgba(0,98,105,0.2);
|
||||||
|
transition: all 0.2s;
|
||||||
|
border-bottom: 3px solid rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
a.bookmarklet:hover {
|
||||||
|
background: var(--knapp-blue);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 12px rgba(2,154,168,0.25);
|
||||||
|
}
|
||||||
|
a.bookmarklet:active {
|
||||||
|
cursor: grabbing;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #eef2f5;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: var(--knapp-teal);
|
||||||
|
font-family: monospace;
|
||||||
|
border: 1px solid #dae1e7;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul { padding-left: 20px; color: #555; }
|
||||||
|
ul li { margin-bottom: 8px; }
|
||||||
|
|
||||||
|
.disclaimer {
|
||||||
|
margin-top: 30px;
|
||||||
|
padding: 15px;
|
||||||
|
background: #fffde7; /* Light yellow */
|
||||||
|
border-left: 4px solid var(--knapp-yellow);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -22,6 +99,20 @@
|
|||||||
<li>Navigiere zu <a href="https://web.bessa.app/knapp-kantine" style="color:#e94560">web.bessa.app/knapp-kantine</a></li>
|
<li>Navigiere zu <a href="https://web.bessa.app/knapp-kantine" style="color:#e94560">web.bessa.app/knapp-kantine</a></li>
|
||||||
<li>Klicke auf das Lesezeichen <code>Kantine Wrapper</code></li>
|
<li>Klicke auf das Lesezeichen <code>Kantine Wrapper</code></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
<h2>✨ Features</h2>
|
||||||
|
<ul>
|
||||||
|
<li>📅 <strong>Wochenübersicht:</strong> Die ganze Woche auf einen Blick.</li>
|
||||||
|
<li>💰 <strong>Kostenkontrolle:</strong> Automatische Berechnung der Wochensumme.</li>
|
||||||
|
<li>🔑 <strong>Auto-Login:</strong> Nutzt deine bestehende Session.</li>
|
||||||
|
<li>🏷️ <strong>Badges & Status:</strong> Menü-Codes (M1, M2) und Bestellstatus direkt sichtbar.</li>
|
||||||
|
<li>🛡️ <strong>Offline-Support:</strong> Speichert Menüdaten lokal.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="disclaimer">
|
||||||
|
<strong>⚠️ Haftungsausschluss:</strong><br>
|
||||||
|
Die Verwendung dieses Bookmarklets erfolgt auf eigene Verantwortung. Der Entwickler übernimmt keine Haftung für Schäden, Datenverlust oder ungewollte Bestellungen, die durch die Nutzung dieser Software entstehen.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>👇 Diesen Button in die Lesezeichen-Leiste ziehen:</p>
|
<p>👇 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="#">⏳ Wird generiert...</a></p>
|
||||||
|
|||||||
Reference in New Issue
Block a user