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

25 lines
903 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 10:10:50 +03:00
import { registerCheckout, registerWishlist } 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 10:10:50 +03:00
// 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.
2026-09-04 19:39:37 +03:00
registerCheckout(application);
2026-09-28 10:10:50 +03:00
registerWishlist(application);