generated from boboko/starter
25 lines
903 B
JavaScript
25 lines
903 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, registerWishlist } from "@boboko/core";
|
|
|
|
const application = Application.start();
|
|
application.debug = false;
|
|
|
|
registerControllers(application);
|
|
|
|
// Portable cart + checkout + wishlist modules, installed as a real npm
|
|
// dependency (see package.json). Each owns its own Stimulus controllers;
|
|
// these are the only wiring lines they need here.
|
|
registerCheckout(application);
|
|
registerWishlist(application);
|