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

24 lines
839 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-28 08:46:14 +03:00
import { registerCheckout } from "@boboko/core";
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
2026-09-28 08:46:14 +03:00
// Portable cart + checkout module, installed as a real npm dependency (see
// package.json). Owns its own bbk-* Stimulus controllers; this is the only
// wiring line it needs here.
2026-09-04 19:39:37 +03:00
registerCheckout(application);