mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
22 lines
496 B
JavaScript
22 lines
496 B
JavaScript
import "controllers";
|
|
import "channels";
|
|
import "../js/turbo";
|
|
import "../js/hotkeys";
|
|
import "../js/mrujs";
|
|
import "../js/matomo";
|
|
import "../js/moment";
|
|
|
|
import bigDecimal from "js-big-decimal";
|
|
window.bigDecimal = bigDecimal;
|
|
|
|
import Trix from "trix";
|
|
|
|
document.addEventListener("trix-before-initialize", (event) => {
|
|
// Set Trix translations
|
|
Object.assign(Trix.config.lang, I18n.t("js.trix"));
|
|
});
|
|
|
|
document.addEventListener("trix-file-accept", (event) => {
|
|
event.preventDefault();
|
|
});
|