mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 23:20:28 +01:00
25 lines
649 B
JavaScript
25 lines
649 B
JavaScript
// 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";
|
|
import Aura from '@primevue/themes/aura';
|
|
import {definePreset} from "@primevue/themes";
|
|
|
|
const OpenXePreset = definePreset(Aura, {
|
|
|
|
});
|
|
|
|
export function createVueApp(rootComponent, rootProps) {
|
|
return createApp(rootComponent, rootProps)
|
|
.use(PrimeVue, {
|
|
theme: {
|
|
preset: OpenXePreset,
|
|
options: {
|
|
darkModeSelector: '.openXeDarkMode'
|
|
}
|
|
}
|
|
});
|
|
} |