26 lines
628 B
TypeScript
26 lines
628 B
TypeScript
// * Packages
|
|
import axios from "axios";
|
|
import Chart from "chart.js/auto";
|
|
// * Other
|
|
import "../../sass/front/app.scss";
|
|
|
|
// COOKIES
|
|
import CookieNotice from "@ldc-web/cookie-notice";
|
|
|
|
// LOCAL IMPORTS
|
|
import "./base/common";
|
|
|
|
// * ASSETS
|
|
import.meta.glob("../../assets/images/**/*", { eager: true });
|
|
|
|
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;
|