ldc-groupe/resources/ts/front/app.ts
2026-02-11 09:15:45 +01:00

23 lines
552 B
TypeScript

// * Packages
import Chart from "chart.js/auto";
import axios from "axios";
// * Other
import "../../sass/front/app.scss";
// COOKIES
import CookieNotice from "@ldc-web/cookie-notice";
// LOCAL IMPORTS
import "./base/common";
axios.defaults.headers.common = {
Accept: "application/json, text/plain, */*",
"X-Requested-With": "XMLHttpRequest",
"X-CSRF-TOKEN": document
.querySelector('meta[name="csrf-token"]')!
.getAttribute("content"),
};
window.axios = axios;
window.CookieNotice = CookieNotice;
window.Chart = Chart;