Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/homebridge-camera-ui/interface/ drwxr-xr-x | |
| Viewing file: Select action/file-type: importScripts("/precache-manifest.65c959f070e9a3a952765cc05d0c8f7c.js", "https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
/* eslint-disable no-undef */
workbox.core.setCacheNameDetails({ prefix: 'camera.ui' });
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
let click_open_url;
self.addEventListener('push', function (event) {
if (!(self.Notification && self.Notification.permission === 'granted')) return;
const data = event.data.json();
const title = `${data.camera} (${data.room})`;
click_open_url = self.location.origin + (data.recordStoring ? '/files/' + data.fileName : '/notifications');
const options = {
type: 'image',
dir: 'auto',
body: `${data.camera} - ${data.time}`,
tag: 'camera.ui',
persistent: true,
badge: 'img/web/logo.png',
icon: 'img/web/logo.png',
iconUrl: 'img/web/logo.png',
image: data.recordStoring
? `files/${data.name}${data.recordType === 'Video' ? '@2.jpeg' : '.jpeg'}`
: 'img/web/no_recordings.png',
imageUrl: data.recordStoring
? `files/${data.name}${data.recordType === 'Video' ? '@2.jpeg' : '.jpeg'}`
: 'img/web/no_recordings.png',
vibrate: [100, 50, 100],
eventTime: Date.now(),
timestamp: Date.now(),
data: {
options: {
action: 'open-only',
close: true,
url: click_open_url,
},
},
actions: [
{
action: 'open',
title: 'Open',
},
],
};
event.waitUntil(self.registration.showNotification(title, options));
});
self.addEventListener('notificationclick', function (event) {
const clickedNotification = event.notification;
clickedNotification.close();
if (click_open_url) {
const promiseChain = clients.openWindow(click_open_url);
event.waitUntil(promiseChain);
}
});
self.addEventListener(
'pushsubscriptionchange',
(event) => {
event.waitUntil(
swRegistration.pushManager.subscribe(event.oldSubscription.options).then((subscription) => {
console.log(subscription);
fetch('/api/subscribe', {
method: 'POST',
body: JSON.stringify(subscription),
headers: {
'Content-Type': 'application/json',
},
});
})
);
},
false
);
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |