Add bootstrap to the main application bundle

This commit is contained in:
Eli Ribble 2026-03-21 05:47:39 +00:00
parent a2c3f52ab4
commit cee76ddd53
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -92,7 +92,6 @@
{{ template "content" . }}
</div>
<div id="flogo"></div>
<script src="/static/vendor/bootstrap-5.3.8/bootstrap.bundle.min.js"></script>
<script>
document.getElementById("sidebarToggle").addEventListener("click", () => {
const sidebar = document.getElementById("sidebar");

View file

@ -1,8 +1,12 @@
import Alpine from './vendor/alpinejs-3.15.8.js';
import bootstrap from '../static/vendor/bootstrap-5.3.8/bootstrap.bundle.min.js'
// Make Alpine available on window for inline Alpine
window.Alpine = Alpine;
// Make bootstrap available on window for various scripts
window.bootstrap = bootstrap;
// Wait for DOM to be ready, then initialize Alpine
document.addEventListener("DOMContentLoaded", () => {
Alpine.start();