Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Include Web Manifest (#273)

Lucas Teixeira9ccf111912ca
diff --git a/client/src/assets/images/icons/.gitignore b/client/src/assets/images/icons/.gitignore
new file mode 100644
index 0000000000..aafa768314
--- /dev/null
+++ b/client/src/assets/images/icons/.gitignore
@@ -0,0 +1 @@
+Thumbs.db
\ No newline at end of file
diff --git a/client/src/assets/images/icons/hdpi.png b/client/src/assets/images/icons/hdpi.png
new file mode 100644
index 0000000000..c1e7b9c296
Binary files /dev/null and b/client/src/assets/images/icons/hdpi.png differ
diff --git a/client/src/assets/images/icons/ldpi.png b/client/src/assets/images/icons/ldpi.png
new file mode 100644
index 0000000000..6ba0ac3193
Binary files /dev/null and b/client/src/assets/images/icons/ldpi.png differ
diff --git a/client/src/assets/images/icons/mdpi.png b/client/src/assets/images/icons/mdpi.png
new file mode 100644
index 0000000000..9524a6d4f5
Binary files /dev/null and b/client/src/assets/images/icons/mdpi.png differ
diff --git a/client/src/assets/images/icons/xhdpi.png b/client/src/assets/images/icons/xhdpi.png
new file mode 100644
index 0000000000..79b0b83407
Binary files /dev/null and b/client/src/assets/images/icons/xhdpi.png differ
diff --git a/client/src/assets/images/icons/xxhdpi.png b/client/src/assets/images/icons/xxhdpi.png
new file mode 100644
index 0000000000..6568bb9add
Binary files /dev/null and b/client/src/assets/images/icons/xxhdpi.png differ
diff --git a/client/src/assets/images/icons/xxxhdpi.png b/client/src/assets/images/icons/xxxhdpi.png
new file mode 100644
index 0000000000..ee4c849d7a
Binary files /dev/null and b/client/src/assets/images/icons/xxxhdpi.png differ
diff --git a/client/src/index.html b/client/src/index.html
index 094d524541..79c3edea8d 100644
--- a/client/src/index.html
+++ b/client/src/index.html
@@ -7,6 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser" />
+ <!-- Web Manifest file -->
+ <link rel="manifest" href="manifest.json">
<!-- The following comment is used by the server to prerender OpenGraph and oEmbed tags -->
<!-- open graph and oembed tags -->
<!-- Do not remove it! -->
diff --git a/client/src/manifest.json b/client/src/manifest.json
new file mode 100644
index 0000000000..3a0c58b967
--- /dev/null
+++ b/client/src/manifest.json
@@ -0,0 +1,40 @@
+{
+ "background_color": "gray",
+ "description": "A federated decentralized video streaming platform",
+ "display": "fullscreen",
+ "icons": [
+ {
+ "src": "/client/assets/images/icons/hdpi.png",
+ "sizes": "72x72",
+ "type": "image/png"
+ },
+ {
+ "src": "/client/assets/images/icons/ldpi.png",
+ "sizes": "36x36",
+ "type": "image/png"
+ },
+ {
+ "src": "/client/assets/images/icons/mdpi.png",
+ "sizes": "48x48",
+ "type": "image/png"
+ },
+ {
+ "src": "/client/assets/images/icons/xhdpi.png",
+ "sizes": "96x96",
+ "type": "image/png"
+ },
+ {
+ "src": "/client/assets/images/icons/xxhdpi.png",
+ "sizes": "144x144",
+ "type": "image/png"
+ },
+ {
+ "src": "/client/assets/images/icons/xxxhdpi.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ }
+ ],
+ "name": "PeerTube",
+ "short_name": "PeerTube",
+ "start_url": "/videos/recently-added"
+}
\ No newline at end of file