Добавлена страница штаба
Добавлены графики Добавлены события отчетов
This commit is contained in:
14
resources/js/bootstrap.js
vendored
14
resources/js/bootstrap.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user