mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-03 12:46:49 +02:00
Sidebar nav items (Archives, Queue, Stats, Profiles, Maintenance, Projects, Inventory, Files) were visible to all users regardless of role permissions — only Settings was gated. Now each item is hidden when the user lacks the corresponding read permission. Printers remains always visible as the home page. Also adds missing inventory:read|create|update|delete to the frontend Permission type (existed in backend but was absent from the frontend type definition).
66 lines
2.6 KiB
HTML
66 lines
2.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title>Bambuddy</title>
|
|
|
|
<!-- PWA Meta Tags -->
|
|
<meta name="description" content="Monitor and manage your Bambu Lab 3D printers" />
|
|
<meta name="theme-color" content="#00ae42" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
<meta name="apple-mobile-web-app-title" content="Bambuddy" />
|
|
|
|
<!-- Manifest -->
|
|
<link rel="manifest" href="/manifest.json" />
|
|
|
|
<!-- Favicons -->
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png" />
|
|
|
|
<!-- Splash screens for iOS -->
|
|
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
|
<<<<<<< HEAD
|
|
<<<<<<< HEAD
|
|
<<<<<<< HEAD
|
|
<<<<<<< HEAD
|
|
<script type="module" crossorigin src="/assets/index-CxFtC4Kb.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/assets/index-DJjXosw8.css">
|
|
=======
|
|
<script type="module" crossorigin src="/assets/index-tKUolDFn.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/assets/index-BKdrvUCu.css">
|
|
>>>>>>> 7eb7bf7 (Fix queue badge showing on printers without matching filament (#486))
|
|
=======
|
|
<script type="module" crossorigin src="/assets/index-BawYMb0M.js"></script>
|
|
=======
|
|
<script type="module" crossorigin src="/assets/index-BfXsQTz2.js"></script>
|
|
>>>>>>> 1eeeb37 ( Updated commit message (now includes the test fix):)
|
|
=======
|
|
<script type="module" crossorigin src="/assets/index-rCstaUXR.js"></script>
|
|
>>>>>>> 65c904b ( Fix sidebar navigation not respecting user permissions)
|
|
<link rel="stylesheet" crossorigin href="/assets/index-BW78djlt.css">
|
|
>>>>>>> ce97a47 ( Add H2C dual nozzle variant O1C2 model support (#489))
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
|
|
<!-- Service Worker Registration -->
|
|
<script>
|
|
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', () => {
|
|
navigator.serviceWorker.register('/sw.js')
|
|
.then((registration) => {
|
|
console.log('SW registered:', registration.scope);
|
|
})
|
|
.catch((error) => {
|
|
console.log('SW registration failed:', error);
|
|
});
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|