commit fc47b49cb30a82b66dd45ff08ec904982dc33329 Author: Kevin Py Date: Thu Aug 25 22:28:25 2022 +0200 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..f7d810b --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Black Screen +Just a black web page diff --git a/background.js b/background.js new file mode 100644 index 0000000..1709bbf --- /dev/null +++ b/background.js @@ -0,0 +1,3 @@ +if ('serviceWorker' in navigator) { + navigator.serviceWorker.register('/sw.js', { scope: '/' }); +} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..7e25304 Binary files /dev/null and b/favicon.ico differ diff --git a/images/icon-120x120.png b/images/icon-120x120.png new file mode 100644 index 0000000..b5646a2 Binary files /dev/null and b/images/icon-120x120.png differ diff --git a/images/icon-128x128.png b/images/icon-128x128.png new file mode 100644 index 0000000..ea21404 Binary files /dev/null and b/images/icon-128x128.png differ diff --git a/images/icon-144x144.png b/images/icon-144x144.png new file mode 100644 index 0000000..e4767bd Binary files /dev/null and b/images/icon-144x144.png differ diff --git a/images/icon-16x16.png b/images/icon-16x16.png new file mode 100644 index 0000000..b0902f4 Binary files /dev/null and b/images/icon-16x16.png differ diff --git a/images/icon-192x192.png b/images/icon-192x192.png new file mode 100644 index 0000000..3f889ad Binary files /dev/null and b/images/icon-192x192.png differ diff --git a/images/icon-32x32.png b/images/icon-32x32.png new file mode 100644 index 0000000..6485579 Binary files /dev/null and b/images/icon-32x32.png differ diff --git a/images/icon-48x48.png b/images/icon-48x48.png new file mode 100644 index 0000000..969dfdd Binary files /dev/null and b/images/icon-48x48.png differ diff --git a/images/icon-512x512.png b/images/icon-512x512.png new file mode 100644 index 0000000..cdeddfc Binary files /dev/null and b/images/icon-512x512.png differ diff --git a/images/icon-72x72.png b/images/icon-72x72.png new file mode 100644 index 0000000..db7d649 Binary files /dev/null and b/images/icon-72x72.png differ diff --git a/images/icon-96x96.png b/images/icon-96x96.png new file mode 100644 index 0000000..9ef18c4 Binary files /dev/null and b/images/icon-96x96.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..af625b8 --- /dev/null +++ b/index.html @@ -0,0 +1,38 @@ + + + + + Black Screen + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..d542460 --- /dev/null +++ b/manifest.json @@ -0,0 +1,31 @@ +{ + "manifest_version": 2, + "name": "Black Screen", + "version": "1.0", + "description": "Just a black web page", + "homepage_url": "https://blackscreen.app", + "chrome_url_overrides": { + "newtab": "index.html" + }, + "page_action": { + "default_title": "Black screen", + "default_popup": "index.html", + "default_icon": { + "16": "images/icon-16x16.png", + "32": "images/icon-32x32.png", + "48": "images/icon-48x48.png", + "128": "images/icon-128x128.png" + } + }, + "icons": { + "16": "images/icon-16x16.png", + "32": "images/icon-32x32.png", + "48": "images/icon-48x48.png", + "128": "images/icon-128x128.png" + }, + "background": { + "service_worker": "background.js", + "type": "module" + }, + "content_security_policy": "script-src 'self' https://myownstats.com; object-src 'self'" +} diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 0000000..3fa3ccb --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1,79 @@ +{ + "name": "Black screen", + "short_name": "Blackscreen", + "description": "Just a black web page", + "icons": [ + { + "src": "/images/icon-48x48.png", + "type": "image/png", + "sizes": "48x48" + }, + { + "src": "/images/icon-72x72.png", + "type": "image/png", + "sizes": "72x72" + }, + { + "src": "/images/icon-96x96.png", + "type": "image/png", + "sizes": "96x96" + }, + { + "src": "/images/icon-144x144.png", + "type": "image/png", + "sizes": "144x144" + }, + { + "src": "/images/icon-192x192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "/images/icon-512x512.png", + "type": "image/png", + "sizes": "512x512" + }, + + { + "src": "/images/icon-48x48.png", + "type": "image/png", + "sizes": "48x48", + "purpose": "maskable" + }, + { + "src": "/images/icon-72x72.png", + "type": "image/png", + "sizes": "72x72", + "purpose": "maskable" + }, + { + "src": "/images/icon-96x96.png", + "type": "image/png", + "sizes": "96x96", + "purpose": "maskable" + }, + { + "src": "/images/icon-144x144.png", + "type": "image/png", + "sizes": "144x144", + "purpose": "maskable" + }, + { + "src": "/images/icon-192x192.png", + "type": "image/png", + "sizes": "192x192", + "purpose": "maskable" + }, + { + "src": "/images/icon-512x512.png", + "type": "image/png", + "sizes": "512x512", + "purpose": "maskable" + } + ], + "start_url": "/", + "scope": "/", + "display": "standalone", + "background_color": "#000000", + "theme_color": "#000000" +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..916c12a --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "@pyxeldev/blackscreen", + "version": "1.0.0", + "description": "Just a black web page", + "author": "Kevin Py", + "license": "MIT", + "keywords": ["black", "screen", "app"] +} diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..52fa3eb --- /dev/null +++ b/robots.txt @@ -0,0 +1,5 @@ +# www.robotstxt.org/ + +# Allow crawling of all content +User-agent: * +Disallow: \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..8442b2a --- /dev/null +++ b/style.css @@ -0,0 +1,3 @@ +html { + background-color: #000000; +} \ No newline at end of file diff --git a/sw.js b/sw.js new file mode 100644 index 0000000..7f6ee3a --- /dev/null +++ b/sw.js @@ -0,0 +1,28 @@ +const version = '1.0.0'; +const cacheName = `blackscreen-${version}`; + +self.addEventListener('install', e => { + e.waitUntil( + caches.open(cacheName).then(cache => { + return cache.addAll([ + `/`, + `/index.html` + ]) + .then(() => self.skipWaiting()); + }) + ); +}); + +self.addEventListener('activate', event => { + event.waitUntil(self.clients.claim()); +}); + +self.addEventListener('fetch', event => { + event.respondWith( + caches.open(cacheName) + .then(cache => cache.match(event.request, { ignoreSearch: true })) + .then(response => { + return response || fetch(event.request); + }) + ); +});