mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
first copies from portal
This commit is contained in:
@@ -1 +1,8 @@
|
||||
import './bootstrap';
|
||||
|
||||
// Light switcher
|
||||
document.querySelectorAll('.light-switch').forEach(lightSwitch => lightSwitch.checked = true);
|
||||
document.documentElement.classList.add('dark');
|
||||
document.querySelector('html').style.colorScheme = 'dark';
|
||||
localStorage.setItem('dark-mode', true);
|
||||
document.dispatchEvent(new CustomEvent('darkMode', { detail: { mode: 'on' } }));
|
||||
|
||||
17
resources/js/bootstrap.js
vendored
17
resources/js/bootstrap.js
vendored
@@ -1,4 +1,15 @@
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allow your team to quickly build robust real-time web applications.
|
||||
*/
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
import './echo';
|
||||
|
||||
import './../../vendor/power-components/livewire-powergrid/dist/powergrid'
|
||||
|
||||
import './../../vendor/power-components/livewire-powergrid/dist/tailwind.css'
|
||||
|
||||
import flatpickr from 'flatpickr';
|
||||
|
||||
import 'flatpickr/dist/flatpickr.min.css';
|
||||
|
||||
14
resources/js/echo.js
Normal file
14
resources/js/echo.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import Echo from 'laravel-echo';
|
||||
|
||||
import Pusher from 'pusher-js';
|
||||
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 ?? 80,
|
||||
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
|
||||
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
|
||||
enabledTransports: ['ws', 'wss'],
|
||||
});
|
||||
Reference in New Issue
Block a user