mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 16:52:08 +00:00
26 lines
737 B
TypeScript
26 lines
737 B
TypeScript
import { createInertiaApp } from '@inertiajs/vue3';
|
|
import { initializeTheme } from '@/composables/useAppearance';
|
|
import { initializeFlashToast } from '@/lib/flashToast';
|
|
import PublicLayout from './layouts/PublicLayout.vue';
|
|
import 'material-icons/iconfont/material-icons.css';
|
|
|
|
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
|
|
|
|
createInertiaApp({
|
|
title: (title) => (title ? `${title} - ${appName}` : appName),
|
|
|
|
layout: (name) => {
|
|
return name.startsWith('embedded/') ? null : PublicLayout;
|
|
},
|
|
|
|
progress: {
|
|
color: '#4B5563',
|
|
},
|
|
});
|
|
|
|
// This will set light / dark mode on page load...
|
|
initializeTheme();
|
|
|
|
// This will listen for flash toast data from the server...
|
|
initializeFlashToast();
|