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

24 lines
839 B
JavaScript

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;
import { Application } from "@hotwired/stimulus";
import { registerControllers } from "./stimulus/index";
import { registerCheckout } from "@boboko/core";
const application = Application.start();
application.debug = false;
registerControllers(application);
// 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.
registerCheckout(application);