Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/classify.picotech.app/public_html/vendor/livewire/livewire/js/component/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import store from '@/Store'
export default function () {
store.registerHook('component.initialized', component => {
if (Array.isArray(component.listeners)) {
component.listeners.forEach(event => {
if (event.startsWith('echo')) {
if (typeof Echo === 'undefined') {
console.warn('Laravel Echo cannot be found')
return
}
let event_parts = event.split(/(echo:|echo-)|:|,/)
if (event_parts[1] == 'echo:') {
event_parts.splice(2, 0, 'channel', undefined)
}
if (event_parts[2] == 'notification') {
event_parts.push(undefined, undefined)
}
let [
s1,
signature,
channel_type,
s2,
channel,
s3,
event_name,
] = event_parts
if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {
Echo[channel_type](channel).listen(event_name, e => {
store.emit(event, e)
})
} else if (channel_type == 'presence') {
if (['here', 'joining', 'leaving'].includes(event_name)) {
Echo.join(channel)[event_name](e => {
store.emit(event, e)
})
}else{
Echo.join(channel).listen(event_name, e => {
store.emit(event, e)
})
}
} else if (channel_type == 'notification') {
Echo.private(channel).notification(notification => {
store.emit(event, notification)
})
} else {
console.warn('Echo channel type not yet supported')
}
}
})
}
})
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]-- |