aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/github
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-09-22 20:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-22 19:56:48 +0100
commit6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch)
tree9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/github
parentUpdated logos for Outlook/OWA (diff)
downloadferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'recipes/github')
-rw-r--r--recipes/github/LICENSE21
-rw-r--r--recipes/github/README.md3
-rw-r--r--recipes/github/icon.pngbin0 -> 34936 bytes
-rw-r--r--recipes/github/icon.svg3
-rw-r--r--recipes/github/index.js4
-rw-r--r--recipes/github/package.json15
-rw-r--r--recipes/github/webview.js20
7 files changed, 66 insertions, 0 deletions
diff --git a/recipes/github/LICENSE b/recipes/github/LICENSE
new file mode 100644
index 0000000..33926c0
--- /dev/null
+++ b/recipes/github/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2017 Sudhir Ganesan
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
diff --git a/recipes/github/README.md b/recipes/github/README.md
new file mode 100644
index 0000000..ab6e10c
--- /dev/null
+++ b/recipes/github/README.md
@@ -0,0 +1,3 @@
1# GitHub Franz Plugin
2
3Follow instructions [here](https://github.com/meetfranz/plugins/blob/master/docs/integration.md) for installation of this plugin.
diff --git a/recipes/github/icon.png b/recipes/github/icon.png
new file mode 100644
index 0000000..2da6326
--- /dev/null
+++ b/recipes/github/icon.png
Binary files differ
diff --git a/recipes/github/icon.svg b/recipes/github/icon.svg
new file mode 100644
index 0000000..146f66f
--- /dev/null
+++ b/recipes/github/icon.svg
@@ -0,0 +1,3 @@
1<svg height="1024" width="1024" xmlns="http://www.w3.org/2000/svg">
2 <path d="M512 0C229.25 0 0 229.25 0 512c0 226.25 146.688 418.125 350.156 485.812 25.594 4.688 34.938-11.125 34.938-24.625 0-12.188-0.469-52.562-0.719-95.312C242 908.812 211.906 817.5 211.906 817.5c-23.312-59.125-56.844-74.875-56.844-74.875-46.531-31.75 3.53-31.125 3.53-31.125 51.406 3.562 78.47 52.75 78.47 52.75 45.688 78.25 119.875 55.625 149 42.5 4.654-33 17.904-55.625 32.5-68.375C304.906 725.438 185.344 681.5 185.344 485.312c0-55.938 19.969-101.562 52.656-137.406-5.219-13-22.844-65.094 5.062-135.562 0 0 42.938-13.75 140.812 52.5 40.812-11.406 84.594-17.031 128.125-17.219 43.5 0.188 87.312 5.875 128.188 17.281 97.688-66.312 140.688-52.5 140.688-52.5 28 70.531 10.375 122.562 5.125 135.5 32.812 35.844 52.625 81.469 52.625 137.406 0 196.688-119.75 240-233.812 252.688 18.438 15.875 34.75 47 34.75 94.75 0 68.438-0.688 123.625-0.688 140.5 0 13.625 9.312 29.562 35.25 24.562C877.438 930 1024 738.125 1024 512 1024 229.25 794.75 0 512 0z" />
3</svg>
diff --git a/recipes/github/index.js b/recipes/github/index.js
new file mode 100644
index 0000000..5c2d144
--- /dev/null
+++ b/recipes/github/index.js
@@ -0,0 +1,4 @@
1"use strict";
2
3module.exports = Franz => Franz;
4//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdpdGh1Yi9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6ImdpdGh1Yi9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= \ No newline at end of file
diff --git a/recipes/github/package.json b/recipes/github/package.json
new file mode 100644
index 0000000..535c1d9
--- /dev/null
+++ b/recipes/github/package.json
@@ -0,0 +1,15 @@
1{
2 "id": "github",
3 "name": "GitHub",
4 "version": "2.0.0",
5 "description": "GitHub",
6 "main": "index.js",
7 "author": "Amine Mouafik",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://github.com/notifications",
11 "hasNotificationSound": false,
12 "hasDirectMessages": true,
13 "hasIndirectMessages": true
14 }
15}
diff --git a/recipes/github/webview.js b/recipes/github/webview.js
new file mode 100644
index 0000000..c3e8729
--- /dev/null
+++ b/recipes/github/webview.js
@@ -0,0 +1,20 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 const directCountElement = document.querySelector('.filter-list .count');
6 const indirectCountElement = document.querySelector('[class*="mail-status unread"]')
7 let directCount, indirectCount
8 if (directCountElement) {
9 directCount = parseInt(directCountElement.innerHTML, 10);
10 } else {
11 if (indirectCountElement) {
12 indirectCount = 1;
13 }
14 }
15 Franz.setBadge(directCount, indirectCount);
16 };
17
18 Franz.loop(getMessages);
19}
20//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnaXRodWIvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= \ No newline at end of file