Include Web Manifest (#273)
authorLucas Teixeira <ltx16@hotmail.com>
Thu, 8 Feb 2018 08:52:35 +0000 (06:52 -0200)
committerChocobozzz <me@florianbigard.com>
Thu, 8 Feb 2018 08:52:35 +0000 (09:52 +0100)
* Include Web Manifest

Now we need to fix the path, which shouldn't be hard.

* Delete unused icon

* Remove Thumbs.db

That file was automatically generated

* Fixed icon path

* Fixed typo

client/src/assets/images/icons/.gitignore [new file with mode: 0644]
client/src/assets/images/icons/hdpi.png [new file with mode: 0644]
client/src/assets/images/icons/ldpi.png [new file with mode: 0644]
client/src/assets/images/icons/mdpi.png [new file with mode: 0644]
client/src/assets/images/icons/xhdpi.png [new file with mode: 0644]
client/src/assets/images/icons/xxhdpi.png [new file with mode: 0644]
client/src/assets/images/icons/xxxhdpi.png [new file with mode: 0644]
client/src/index.html
client/src/manifest.json [new file with mode: 0644]

diff --git a/client/src/assets/images/icons/.gitignore b/client/src/assets/images/icons/.gitignore
new file mode 100644 (file)
index 0000000..aafa768
--- /dev/null
@@ -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 (file)
index 0000000..c1e7b9c
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 (file)
index 0000000..6ba0ac3
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 (file)
index 0000000..9524a6d
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 (file)
index 0000000..79b0b83
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 (file)
index 0000000..6568bb9
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 (file)
index 0000000..ee4c849
Binary files /dev/null and b/client/src/assets/images/icons/xxxhdpi.png differ
index 094d5245415bea08ea7857a39ac1fc0a66d011ff..79c3edea8d7ec650da7ed46faa70834a3e14ad0d 100644 (file)
@@ -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 (file)
index 0000000..3a0c58b
--- /dev/null
@@ -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