Добавлена страница штаба

Добавлены графики
Добавлены события отчетов
This commit is contained in:
brusnitsyn
2026-05-31 21:57:21 +09:00
parent 51b0dcc864
commit 0a882b0cb2
21 changed files with 2779 additions and 386 deletions

View File

@@ -1,7 +1,21 @@
import axios from 'axios';
import Echo from 'laravel-echo';
import Pusher from 'pusher-js';
import {useAuthStore} from "./Stores/auth.js";
import {startGlobalLoading, stopGlobalLoading} from "./Composables/useGlobalLoading.js";
window.axios = axios;
window.Pusher = Pusher;
window.Echo = new Echo({
broadcaster: 'reverb',
key: import.meta.env.VITE_REVERB_APP_KEY,
wsHost: import.meta.env.VITE_REVERB_HOST,
wsPort: import.meta.env.VITE_REVERB_PORT ?? 8080,
wssPort: import.meta.env.VITE_REVERB_PORT ?? 8080,
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'http') === 'https',
enabledTransports: ['ws', 'wss'],
withCredentials: true,
});
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.axios.defaults.withCredentials = true