diff options
Diffstat (limited to 'uncompressed/asana')
-rw-r--r-- | uncompressed/asana/LICENSE | 7 | ||||
-rw-r--r-- | uncompressed/asana/README.md | 10 | ||||
-rw-r--r-- | uncompressed/asana/icon.png | bin | 0 -> 248629 bytes | |||
-rw-r--r-- | uncompressed/asana/icon.svg | 1 | ||||
-rw-r--r-- | uncompressed/asana/index.js | 4 | ||||
-rw-r--r-- | uncompressed/asana/package.json | 13 | ||||
-rw-r--r-- | uncompressed/asana/service.css | 5 | ||||
-rw-r--r-- | uncompressed/asana/webview.js | 23 |
8 files changed, 63 insertions, 0 deletions
diff --git a/uncompressed/asana/LICENSE b/uncompressed/asana/LICENSE new file mode 100644 index 0000000..41ea455 --- /dev/null +++ b/uncompressed/asana/LICENSE | |||
@@ -0,0 +1,7 @@ | |||
1 | Copyright 2017 Elnur Mammadov | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
4 | |||
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
6 | |||
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file | ||
diff --git a/uncompressed/asana/README.md b/uncompressed/asana/README.md new file mode 100644 index 0000000..2d06f2b --- /dev/null +++ b/uncompressed/asana/README.md | |||
@@ -0,0 +1,10 @@ | |||
1 | # Asana for Franz | ||
2 | Asana recipe for Franz 5 ! | ||
3 | |||
4 | # Installation | ||
5 | 1. Open the Franz Plugins folder on your machine (note that this dev directory may not exist yet, and you must create it): | ||
6 | - Mac: ~/Library/Application Support/Franz/recipes/dev/ | ||
7 | - Windows: %appdata%/Franz/recipes/dev/ | ||
8 | - Linux: ~/.config/Franz/recipes/dev | ||
9 | 2. Copy the franz-recipe-asana folder into the plugins directory | ||
10 | 3. Reload Franz | ||
diff --git a/uncompressed/asana/icon.png b/uncompressed/asana/icon.png new file mode 100644 index 0000000..7854f0b --- /dev/null +++ b/uncompressed/asana/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/asana/icon.svg b/uncompressed/asana/icon.svg new file mode 100644 index 0000000..3d3c7c7 --- /dev/null +++ b/uncompressed/asana/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" width="2500" height="2311" viewBox="781.361 0 944.893 873.377"><radialGradient id="a" cx="943.992" cy="1221.416" r=".663" gradientTransform="matrix(944.8934 0 0 -873.3772 -890717.875 1067234.75)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffb900"/><stop offset=".6" stop-color="#f95d8f"/><stop offset=".999" stop-color="#f95353"/></radialGradient><path fill="url(#a)" d="M1520.766 462.371c-113.508 0-205.508 92-205.508 205.488 0 113.499 92 205.518 205.508 205.518 113.489 0 205.488-92.019 205.488-205.518 0-113.488-91.999-205.488-205.488-205.488zm-533.907.01c-113.489.01-205.498 91.99-205.498 205.488 0 113.489 92.009 205.498 205.498 205.498 113.498 0 205.508-92.009 205.508-205.498 0-113.499-92.01-205.488-205.518-205.488h.01zm472.447-256.883c0 113.489-91.999 205.518-205.488 205.518-113.508 0-205.508-92.029-205.508-205.518S1140.31 0 1253.817 0c113.489 0 205.479 92.009 205.479 205.498h.01z"/></svg> \ No newline at end of file | |||
diff --git a/uncompressed/asana/index.js b/uncompressed/asana/index.js new file mode 100644 index 0000000..1a63b14 --- /dev/null +++ b/uncompressed/asana/index.js | |||
@@ -0,0 +1,4 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | ||
4 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndoYXRzYXBwL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoid2hhdHNhcHAvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 \ No newline at end of file | ||
diff --git a/uncompressed/asana/package.json b/uncompressed/asana/package.json new file mode 100644 index 0000000..dbf7ffe --- /dev/null +++ b/uncompressed/asana/package.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "id": "asana", | ||
3 | "name": "Asana", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Asana", | ||
6 | "main": "index.js", | ||
7 | "author": "Elnur Mammadov <baytbybayt@gmail.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://app.asana.com", | ||
11 | "hasNotificationSound": true | ||
12 | } | ||
13 | } | ||
diff --git a/uncompressed/asana/service.css b/uncompressed/asana/service.css new file mode 100644 index 0000000..b453fd4 --- /dev/null +++ b/uncompressed/asana/service.css | |||
@@ -0,0 +1,5 @@ | |||
1 | .app-wrapper-web .app { | ||
2 | width: 100% !important; | ||
3 | height: 100% !important; | ||
4 | top: 0 !important; | ||
5 | } | ||
diff --git a/uncompressed/asana/webview.js b/uncompressed/asana/webview.js new file mode 100644 index 0000000..e9b5810 --- /dev/null +++ b/uncompressed/asana/webview.js | |||
@@ -0,0 +1,23 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | const path = require('path'); | ||
4 | |||
5 | module.exports = Franz => { | ||
6 | const getMessages = function getMessages() { | ||
7 | const hasNotification = document.querySelectorAll(".SidebarTopNavLinks-notificationsButton--hasNewNotifications"); | ||
8 | let count = 0; | ||
9 | if (hasNotification.length > 0) { | ||
10 | count +=1; | ||
11 | } | ||
12 | |||
13 | // set Franz badge | ||
14 | Franz.setBadge(count); | ||
15 | }; | ||
16 | |||
17 | // inject franz.css stylesheet | ||
18 | Franz.injectCSS(path.join(__dirname, 'service.css')); | ||
19 | |||
20 | // check for new messages every second and update Franz badge | ||
21 | Franz.loop(getMessages); | ||
22 | }; | ||
23 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndoYXRzYXBwL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImVsZW1lbnRzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwiY291bnQiLCJpIiwibGVuZ3RoIiwic2V0QmFkZ2UiLCJpbmplY3RDU1MiLCJqb2luIiwiX19kaXJuYW1lIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNQSxPQUFPQyxRQUFRLE1BQVIsQ0FBYjs7QUFFQUMsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxVQUFNQyxXQUFXQyxTQUFTQyxnQkFBVCxDQUEwQixTQUExQixDQUFqQjtBQUNBLFFBQUlDLFFBQVEsQ0FBWjs7QUFFQSxTQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosU0FBU0ssTUFBN0IsRUFBcUNELEtBQUssQ0FBMUMsRUFBNkM7QUFDM0MsVUFBSUosU0FBU0ksQ0FB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