flamenco/web/app/src/setup-assistant.js
Sybren A. Stüvel 819767ea1a Webapp: tweak the .editorconfig and .prettierrc files + re-format
Try to get the `.editorconfig` and `.prettierrc` files as close as possible
to the formatting that was used in Flamenco. Because these files weren't
here during most of Flamenco's development so far, having them caused quite
a few changes in the webapp files.

No functional changes intended.
2023-09-11 17:22:18 +02:00

27 lines
795 B
JavaScript

import { createApp } from 'vue';
import { createPinia } from 'pinia';
import SetupAssistant from '@/SetupAssistant.vue';
import router from '@/router/setup-assistant';
// Ensure Tabulator can find `luxon`, which it needs for sorting by
// date/time/datetime.
import { DateTime } from 'luxon';
window.DateTime = DateTime;
// plain removes any Vue reactivity.
window.plain = (x) => JSON.parse(JSON.stringify(x));
// objectEmpty returns whether the object is empty or not.
window.objectEmpty = (o) => !o || Object.entries(o).length == 0;
const app = createApp(SetupAssistant);
const pinia = createPinia();
app.use(pinia);
app.use(router);
app.mount('#app');
// Automatically reload the window after a period of inactivity from the user.
import autoreload from '@/autoreloader';
autoreload();