style: remove past ordered borders and swap header icon
This commit is contained in:
@@ -303,26 +303,30 @@ ls -la "$DIST_DIR/"
|
||||
# === 4. Run build-time tests ===
|
||||
echo ""
|
||||
echo "=== Running Logic Tests ==="
|
||||
node "$SCRIPT_DIR/test_logic.js"
|
||||
timeout 15s node "$SCRIPT_DIR/test_logic.js"
|
||||
LOGIC_EXIT=$?
|
||||
if [ $LOGIC_EXIT -ne 0 ]; then
|
||||
echo "❌ Logic tests FAILED! See above for details."
|
||||
echo "❌ Logic tests FAILED or TIMED OUT (Exit: $LOGIC_EXIT)! See above for details."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== Running DOM Interaction Tests ==="
|
||||
node "$SCRIPT_DIR/tests/test_dom.js"
|
||||
timeout 15s node "$SCRIPT_DIR/tests/test_dom.js"
|
||||
DOM_EXIT=$?
|
||||
if [ $DOM_EXIT -ne 0 ]; then
|
||||
echo "❌ DOM UI tests FAILED! Regressions detected."
|
||||
echo "❌ DOM UI tests FAILED or TIMED OUT (Exit: $DOM_EXIT)! Regressions detected."
|
||||
# Ensure playwright processes are killed if they leak
|
||||
pkill -f playwright || true
|
||||
pkill -f "node.*test_dom" || true
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "=== Running Build Tests ==="
|
||||
python3 "$SCRIPT_DIR/test_build.py"
|
||||
timeout 15s python3 "$SCRIPT_DIR/test_build.py"
|
||||
TEST_EXIT=$?
|
||||
if [ $TEST_EXIT -ne 0 ]; then
|
||||
echo "❌ Build tests FAILED! See above for details."
|
||||
echo "❌ Build tests FAILED or TIMED OUT (Exit: $TEST_EXIT)! See above for details."
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ All build tests passed."
|
||||
|
||||
4
dist/bookmarklet-payload.js
vendored
4
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
15
dist/kantine-standalone.html
vendored
15
dist/kantine-standalone.html
vendored
@@ -891,7 +891,6 @@ body {
|
||||
/* No opacity/filter here - fully visible */
|
||||
background: var(--bg-card);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
border: 1px solid #8b5cf6;
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
margin: 0 -1rem 1.5rem -1rem;
|
||||
@@ -901,27 +900,27 @@ body {
|
||||
|
||||
.menu-item.today-ordered {
|
||||
border: 2px solid #8b5cf6;
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
|
||||
box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
margin: 0 -1rem 1.5rem -1rem;
|
||||
background: var(--bg-card);
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
animation: pulse-glow 3s infinite;
|
||||
animation: pulse-glow-strong 3s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-glow {
|
||||
@keyframes pulse-glow-strong {
|
||||
0% {
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
|
||||
}
|
||||
|
||||
50% {
|
||||
box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
|
||||
box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2121,7 +2120,7 @@ body {
|
||||
<header class="app-header">
|
||||
<div class="header-content">
|
||||
<div class="brand">
|
||||
<span class="material-icons-round logo-icon">restaurant_menu</span>
|
||||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAKQUlEQVR4nKVXa3RVxRX+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sXFxS5mFsxsMLOrQ9mL272vrOaoNcu48+qXCq9GNZhZXt333wx51UYklL1YGlm+gmNWvhgeuGXDrcws9jKbe/fuNQcPHvzdn+IRG5fHdt2wKr/7qpKRV/u5aOmmNyatNgJA6stlw9JXL/v+dffimybRNlLr26Dtvv92fNs3rj5w2ugNtG2LDGbCjh0StbWMceNUm7UblxabTZskKisZRLqNHsA/AQoXyB/6HdQ3AAAAAElFTkSuQmCC" alt="Logo" class="logo-img" style="height: 1.2em; width: 1.2em; object-fit: contain;">
|
||||
<div class="header-left">
|
||||
<h1>Kantinen Übersicht <small class="version-tag" style="font-size: 0.6em; opacity: 0.7; font-weight: 400; cursor: pointer;" title="Klick für Versionsmenü">v1.6.4</small></h1>
|
||||
<div id="last-updated-subtitle" class="subtitle"></div>
|
||||
|
||||
29
favicon.svg
29
favicon.svg
@@ -1,29 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
||||
<!-- Fork (left, with gap to triangle) -->
|
||||
<g transform="translate(2, 10)">
|
||||
<!-- Tines -->
|
||||
<rect x="1" y="0" width="1.8" height="16" rx="0.9" fill="#333"/>
|
||||
<rect x="4.6" y="0" width="1.8" height="16" rx="0.9" fill="#333"/>
|
||||
<rect x="8.2" y="0" width="1.8" height="16" rx="0.9" fill="#333"/>
|
||||
<!-- Connector -->
|
||||
<rect x="1" y="14" width="9" height="3.5" rx="1.5" fill="#333"/>
|
||||
<!-- Handle -->
|
||||
<rect x="3.5" y="16.5" width="4" height="24" rx="2" fill="#333"/>
|
||||
</g>
|
||||
|
||||
<!-- Triangle (center, equilateral aspect ratio ~1:0.866) -->
|
||||
<!-- Equilateral: base=28, height=24.25 => keeps proper ratio -->
|
||||
<polygon points="32,8 47,48 17,48" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/>
|
||||
|
||||
<!-- Knife (right, with gap to triangle) -->
|
||||
<g transform="translate(50, 10)">
|
||||
<!-- Blade (slight curve) -->
|
||||
<path d="M3,0 C3,0 3,0 3,0 L3,17 L10,14 C10,6 7,0 3,0 Z" fill="#333"/>
|
||||
<!-- Spine -->
|
||||
<rect x="1.5" y="0" width="2" height="18" rx="1" fill="#333"/>
|
||||
<!-- Bolster -->
|
||||
<rect x="1.5" y="16.5" width="8.5" height="3.5" rx="1.2" fill="#333"/>
|
||||
<!-- Handle -->
|
||||
<rect x="3.5" y="19" width="4" height="22" rx="2" fill="#333"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -80,7 +80,7 @@
|
||||
<header class="app-header">
|
||||
<div class="header-content">
|
||||
<div class="brand">
|
||||
<span class="material-icons-round logo-icon">restaurant_menu</span>
|
||||
<img src="{{FAVICON_DATA_URI}}" alt="Logo" class="logo-img" style="height: 1.2em; width: 1.2em; object-fit: contain;">
|
||||
<div class="header-left">
|
||||
<h1>Kantinen Übersicht <small class="version-tag" style="font-size: 0.6em; opacity: 0.7; font-weight: 400; cursor: pointer;" title="Klick für Versionsmenü">{{VERSION}}</small></h1>
|
||||
<div id="last-updated-subtitle" class="subtitle"></div>
|
||||
|
||||
13
style.css
13
style.css
@@ -880,7 +880,6 @@ body {
|
||||
/* No opacity/filter here - fully visible */
|
||||
background: var(--bg-card);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
border: 1px solid #8b5cf6;
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
margin: 0 -1rem 1.5rem -1rem;
|
||||
@@ -890,27 +889,27 @@ body {
|
||||
|
||||
.menu-item.today-ordered {
|
||||
border: 2px solid #8b5cf6;
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
|
||||
box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
margin: 0 -1rem 1.5rem -1rem;
|
||||
background: var(--bg-card);
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
animation: pulse-glow 3s infinite;
|
||||
animation: pulse-glow-strong 3s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-glow {
|
||||
@keyframes pulse-glow-strong {
|
||||
0% {
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
|
||||
}
|
||||
|
||||
50% {
|
||||
box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
|
||||
box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,20 +41,32 @@ const sandbox = {
|
||||
fetch: async (url) => {
|
||||
// Mock Version Check
|
||||
if (url.includes('version.txt')) {
|
||||
return { ok: true, text: async () => 'v9.9.9' }; // Simulate new version
|
||||
return { ok: true, text: async () => 'v9.9.9', json: async () => ({}) };
|
||||
}
|
||||
// Mock Changelog
|
||||
if (url.includes('changelog.md')) {
|
||||
return { ok: true, text: async () => '## v9.9.9\n- Feature: Cool Stuff' };
|
||||
return { ok: true, text: async () => '## v9.9.9\n- Feature: Cool Stuff', json: async () => ({}) };
|
||||
}
|
||||
return { ok: false }; // Fail others to prevent huge cascades
|
||||
// Mock GitHub Tags API
|
||||
if (url.includes('api.github.com/') || url.includes('/tags')) {
|
||||
return { ok: true, json: async () => [{ name: 'v9.9.9' }] };
|
||||
}
|
||||
// Mock Menu API
|
||||
if (url.includes('/food-menu/menu/')) {
|
||||
return { ok: true, json: async () => ({ dates: [], menu: {} }) };
|
||||
}
|
||||
// Mock Orders API
|
||||
if (url.includes('/user/orders')) {
|
||||
return { ok: true, json: async () => ({ results: [], count: 0 }) };
|
||||
}
|
||||
return { ok: false, status: 404, text: async () => '', json: async () => ({}) };
|
||||
},
|
||||
document: {
|
||||
body: createMockElement('body'),
|
||||
head: createMockElement('head'),
|
||||
createElement: (tag) => createMockElement(tag),
|
||||
querySelector: (sel) => {
|
||||
if (sel === '.material-icons-round.logo-icon') {
|
||||
if (sel === '.logo-img' || sel === '.material-icons-round.logo-icon') {
|
||||
const el = createMockElement('last-updated-icon-mock');
|
||||
// Mock legacy prop for specific test check if needed,
|
||||
// but our generic mock handles replaceWith hook
|
||||
|
||||
Reference in New Issue
Block a user