���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix
/
vendor
/
masmerise
/
livewire-toaster
/
resources
/
js
/
Viewing: hub.js
import { Config } from './config'; import { Toast } from './toast'; export function Hub(Alpine) { Alpine.data('toasterHub', (initialToasts, config) => { config = Config.fromJson(config); return { _toasts: [], get toasts() { const toasts = this._toasts.filter(t => ! t.trashed); if (this._toasts.length && ! toasts.length) { this.$nextTick(() => { this._toasts = []; }); } return toasts; }, init() { document.addEventListener('toaster:received', event => { const toast = Toast.fromJson({ duration: config.duration, ...event.detail }); if (config.replace) { this.toasts.filter(t => t.equals(toast)).forEach(t => t.dispose()); } else if (config.suppress && this.toasts.some(t => t.equals(toast))) { return; } this.show(toast); }); initialToasts.map(Toast.fromJson).forEach(toast => this.show(toast)); }, show(toast) { toast = Alpine.reactive(toast); toast.runAfterDuration(toast => toast.dispose()); if (config.alignment.isTop()) { this._toasts.unshift(toast); } else { this._toasts.push(toast); } }, } }); }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa