OpenXE/resources/js/vue.js

25 lines
649 B
JavaScript
Raw Normal View History

2023-03-30 10:54:18 +02:00
// SPDX-FileCopyrightText: 2023 Andreas Palm
//
// SPDX-License-Identifier: LicenseRef-EGPL-3.1
import '@res/css/vue.css';
import {createApp} from "vue";
import PrimeVue from "primevue/config";
2024-10-04 22:49:08 +02:00
import Aura from '@primevue/themes/aura';
import {definePreset} from "@primevue/themes";
const OpenXePreset = definePreset(Aura, {
});
2023-03-30 10:54:18 +02:00
export function createVueApp(rootComponent, rootProps) {
2024-10-04 22:49:08 +02:00
return createApp(rootComponent, rootProps)
.use(PrimeVue, {
theme: {
preset: OpenXePreset,
options: {
darkModeSelector: '.openXeDarkMode'
}
}
});
2023-03-30 10:54:18 +02:00
}