Files
3dealer/resources/js/app.js
T

23 lines
806 B
JavaScript
Raw Normal View History

2026-07-31 17:41:55 +03:00
import "./bootstrap";
import "./utils/strip-accents";
import "./utils/refresh-scroll";
// Frames only — no site-wide Turbo Drive. <turbo-frame> navigations still work
// (that's how the category listing reloads); every other link and form on the
// site keeps its normal full-page browser behaviour.
import "@hotwired/turbo";
window.Turbo.session.drive = false;
2026-07-31 17:41:55 +03:00
import { Application } from "@hotwired/stimulus";
import { registerControllers } from "./stimulus/index";
2026-09-04 19:39:37 +03:00
import { registerCheckout } from "./checkout";
2026-07-31 17:41:55 +03:00
const application = Application.start();
application.debug = false;
registerControllers(application);
2026-09-04 19:39:37 +03:00
// Portable cart + checkout module (destined for boboko-core). Owns its own
// bbk-* Stimulus controllers; this is the only wiring line it needs here.
registerCheckout(application);