initialize Electron desktop app and remove unused files
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 213 KiB |
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "hermes-ui",
|
||||
"short_name": "hermes-ui",
|
||||
"description": "Self-hosted web dashboard for Hermes Agent",
|
||||
"start_url": "/#/hermes/chat",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#f7f7f4",
|
||||
"theme_color": "#f7f7f4",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/logo.png",
|
||||
"sizes": "1254x1254",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
self.addEventListener('notificationclick', (event) => {
|
||||
event.notification.close()
|
||||
event.waitUntil((async () => {
|
||||
const windows = await clients.matchAll({ type: 'window', includeUncontrolled: true })
|
||||
for (const client of windows) {
|
||||
if ('focus' in client) return client.focus()
|
||||
}
|
||||
if (clients.openWindow) return clients.openWindow('/')
|
||||
})())
|
||||
})
|
||||
Reference in New Issue
Block a user