debianize-mobilizon/js/src/histoire.setup.ts
Thomas Citharel 754e44f0a5
Various improvements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-12 16:46:44 +02:00

18 lines
630 B
TypeScript

import { defineSetupVue3 } from "@histoire/plugin-vue";
import { orugaConfig } from "./oruga-config";
import { i18n } from "./utils/i18n";
import Oruga from "@oruga-ui/oruga-next";
import "@oruga-ui/oruga-next/dist/oruga-full-vars.css";
import "./assets/tailwind.css";
import "./assets/oruga-tailwindcss.css";
import locale from "date-fns/locale/en-US";
import MaterialIcon from "./components/core/MaterialIcon.vue";
export const setupVue3 = defineSetupVue3(({ app }) => {
// Vue plugin
app.use(i18n);
app.use(Oruga, orugaConfig);
app.component("material-icon", MaterialIcon);
app.provide("dateFnsLocale", locale);
});