diff options
author | 2019-09-28 12:10:25 +0200 | |
---|---|---|
committer | 2019-09-28 12:10:25 +0200 | |
commit | 728d339739b63e9bb59e457e4a84fe9a65b93fc9 (patch) | |
tree | a0fc6180ea26fa9ef397458e8eb6491031d6437d /uncompressed/workplace | |
parent | Add list of recipes (diff) | |
download | ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.gz ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.zst ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.zip |
Add uncompressed recipes
Diffstat (limited to 'uncompressed/workplace')
-rw-r--r-- | uncompressed/workplace/LICENSE | 19 | ||||
-rw-r--r-- | uncompressed/workplace/README.md | 4 | ||||
-rw-r--r-- | uncompressed/workplace/icon.svg | 10 | ||||
-rw-r--r-- | uncompressed/workplace/index.js | 4 | ||||
-rw-r--r-- | uncompressed/workplace/package.json | 16 | ||||
-rw-r--r-- | uncompressed/workplace/webview.js | 16 | ||||
-rw-r--r-- | uncompressed/workplace/workplace.css | 4 |
7 files changed, 73 insertions, 0 deletions
diff --git a/uncompressed/workplace/LICENSE b/uncompressed/workplace/LICENSE new file mode 100644 index 0000000..4608c00 --- /dev/null +++ b/uncompressed/workplace/LICENSE | |||
@@ -0,0 +1,19 @@ | |||
1 | Copyright 2017 Rico Herwig | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining | ||
4 | a copy of this software and associated documentation files (the "Software"), | ||
5 | to deal in the Software without restriction, including without limitation the | ||
6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
7 | copies of the Software, and to permit persons to whom the Software is furnished | ||
8 | to do so, subject to the following conditions: | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included | ||
11 | in all copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
14 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
17 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | ||
19 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
diff --git a/uncompressed/workplace/README.md b/uncompressed/workplace/README.md new file mode 100644 index 0000000..75791ac --- /dev/null +++ b/uncompressed/workplace/README.md | |||
@@ -0,0 +1,4 @@ | |||
1 | # Franz 5 Recipe: Workplace by facebook | ||
2 | This recipe integrates the Workplace Chat by facebook into Franz. | ||
3 | |||
4 | You can get the latest version of Franz [here](https://meetfranz.com/). \ No newline at end of file | ||
diff --git a/uncompressed/workplace/icon.svg b/uncompressed/workplace/icon.svg new file mode 100644 index 0000000..52bef1d --- /dev/null +++ b/uncompressed/workplace/icon.svg | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
3 | <!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch --> | ||
4 | <title>Combined Shape</title> | ||
5 | <desc>Created with Sketch.</desc> | ||
6 | <defs></defs> | ||
7 | <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | ||
8 | <path d="M512,1024 C794.769792,1024 1024,794.769792 1024,512 C1024,229.230208 794.769792,0 512,0 C229.230208,0 0,229.230208 0,512 C0,794.769792 229.230208,1024 512,1024 Z M588.371906,145.551839 C653.099666,158.908361 705.498328,187.676254 755.499666,237.335117 C805.843478,287.67893 833.926421,339.392642 847.625418,407.202676 C856.187291,449.669565 853.447492,517.822074 841.118395,558.919064 C826.391973,608.235452 793.171906,667.141137 771.253512,683.579933 C745.567893,702.416054 716.457525,707.210702 692.826756,696.251505 C669.195987,684.949833 661.319064,670.223411 612.002676,546.589967 C605.495652,529.808696 600.701003,521.589298 598.988629,524.329097 C597.618729,526.726421 584.947157,557.891639 570.563211,593.166555 C540.425418,668.168562 537.685619,673.648161 526.726421,683.237458 C497.273579,710.292977 445.559866,706.868227 423.298997,676.38796 C415.422074,665.771237 304.802676,398.983278 304.802676,390.76388 C304.802676,387.33913 316.104348,390.07893 355.146488,390.76388 L405.832776,391.791304 L430.49097,451.724415 C444.532441,484.602007 460.286288,523.644147 466.450836,538.370569 C472.27291,553.09699 478.094983,563.713712 479.807358,562.343813 C481.177258,560.973913 494.876254,528.438796 509.945151,490.081605 C525.356522,451.724415 540.425418,416.449498 543.507692,411.997324 C546.589967,407.202676 556.179264,399.325753 564.741137,394.188629 C587.002007,381.174582 615.08495,381.174582 637.688294,394.531104 C656.86689,405.490301 662.688963,416.449498 702.416054,515.767224 C716.11505,550.357191 728.444147,578.440134 729.814047,578.440134 C731.183946,578.440134 735.978595,568.850836 740.773244,556.864214 C793.514381,424.668896 718.512375,278.089632 578.782609,240.759866 C547.274916,232.197993 489.73913,233.225418 453.779264,242.472241 C357.886288,267.47291 282.541806,339.735117 252.746488,434.600669 C245.89699,456.861538 240.662207,474.35786 239.494983,513.667559 C240.662207,546.589967 245.89699,569.878261 252.746488,592.13913 C281.171906,681.525084 344.529766,748.307692 429.80602,777.760535 C481.519732,795.569231 523.644147,797.62408 591.796656,785.294983 L602.755853,783.240134 L602.755853,831.186622 L602.755853,879.475585 L590.084281,882.215385 C582.892308,883.585284 564.741137,888.379933 532.548495,888.379933 C494.153846,888.379933 457.546488,883.927759 426.723746,875.365886 C260.623411,829.131773 147.264214,682.210033 147.264214,513.3699 C147.264214,345.214716 263.020736,194.525753 425.011371,152.401338 C468.163211,141.099666 488.792642,140.414716 518.164548,140.414716 C546.591801,140.414716 571.248161,142.12709 588.371906,145.551839 Z" id="Combined-Shape" fill="#4B66A3"></path> | ||
9 | </g> | ||
10 | </svg> \ No newline at end of file | ||
diff --git a/uncompressed/workplace/index.js b/uncompressed/workplace/index.js new file mode 100644 index 0000000..c638730 --- /dev/null +++ b/uncompressed/workplace/index.js | |||
@@ -0,0 +1,4 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | ||
4 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndvcmtwbGFjZS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6IndvcmtwbGFjZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= \ No newline at end of file | ||
diff --git a/uncompressed/workplace/package.json b/uncompressed/workplace/package.json new file mode 100644 index 0000000..596daea --- /dev/null +++ b/uncompressed/workplace/package.json | |||
@@ -0,0 +1,16 @@ | |||
1 | { | ||
2 | "id": "workplace", | ||
3 | "name": "Workplace", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Workplace by facebook", | ||
6 | "main": "index.js", | ||
7 | "author": "Rico Herwig <rherwig4711@gmail.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://{teamId}.facebook.com/chat", | ||
11 | "hasNotificationSound": true, | ||
12 | "hasDirectMessages": true, | ||
13 | "hasTeamId": true, | ||
14 | "urlInputSuffix": ".facebook.com" | ||
15 | } | ||
16 | } \ No newline at end of file | ||
diff --git a/uncompressed/workplace/webview.js b/uncompressed/workplace/webview.js new file mode 100644 index 0000000..c1df892 --- /dev/null +++ b/uncompressed/workplace/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | const path = require('path'); | ||
4 | |||
5 | module.exports = Franz => { | ||
6 | const getMessages = () => { | ||
7 | const $messages = document.querySelector('.uiScrollableAreaContent'); | ||
8 | const $unreadMessages = $messages.querySelectorAll('._1ht3 ._1ht6'); | ||
9 | |||
10 | Franz.setBadge($unreadMessages.length); | ||
11 | }; | ||
12 | |||
13 | Franz.injectCSS(path.join(__dirname, 'workplace.css')); | ||
14 | Franz.loop(getMessages); | ||
15 | }; | ||
16 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndvcmtwbGFjZS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbInBhdGgiLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCIkbWVzc2FnZXMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3IiLCIkdW5yZWFkTWVzc2FnZXMiLCJxdWVyeVNlbGVjdG9yQWxsIiwic2V0QmFkZ2UiLCJsZW5ndGgiLCJpbmplY3RDU1MiLCJqb2luIiwiX19kaXJuYW1lIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNQSxPQUFPQyxRQUFRLE1BQVIsQ0FBYjs7QUFFQUMsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsTUFBTTtBQUN4QixVQUFNQyxZQUFZQyxTQUFTQyxhQUFULENBQXVCLDBCQUF2QixDQUFsQjtBQUNBLFVBQU1DLGtCQUFrQkgsVUFBVUksZ0JBQVYsQ0FBMkIsZUFBM0IsQ0FBeEI7O0FBRUFOLFVBQU1PLFFBQU4sQ0FBZUYsZ0JBQWdCRyxNQUEvQjtBQUNELEdBTEQ7O0FBT0FSLFFBQU1TLFNBQU4sQ0FBZ0JiLEtBQUtjLElBQUwsQ0FBVUMsU0FBVixFQUFxQixlQUFyQixDQUFoQjtBQUNBWCxRQUFNWSxJQUFOLENBQVdYLFdBQVg7QUFDRCxDQVZEIiwiZmlsZSI6IndvcmtwbGFjZS93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsiY29uc3QgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxubW9kdWxlLmV4cG9ydHMgPSAoRnJhbnopID0+IHtcbiAgY29uc3QgZ2V0TWVzc2FnZXMgPSAoKSA9PiB7XG4gICAgY29uc3QgJG1lc3NhZ2VzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignLnVpU2Nyb2xsYWJsZUFyZWFDb250ZW50Jyk7XG4gICAgY29uc3QgJHVucmVhZE1lc3NhZ2VzID0gJG1lc3NhZ2VzLnF1ZXJ5U2VsZWN0b3JBbGwoJy5fMWh0MyAuXzFodDYnKTtcblxuICAgIEZyYW56LnNldEJhZGdlKCR1bnJlYWRNZXNzYWdlcy5sZW5ndGgpO1xuICB9O1xuXG4gIEZyYW56LmluamVjdENTUyhwYXRoLmpvaW4oX19kaXJuYW1lLCAnd29ya3BsYWNlLmNzcycpKTtcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 \ No newline at end of file | ||
diff --git a/uncompressed/workplace/workplace.css b/uncompressed/workplace/workplace.css new file mode 100644 index 0000000..4830348 --- /dev/null +++ b/uncompressed/workplace/workplace.css | |||
@@ -0,0 +1,4 @@ | |||
1 | #pagelet_bluebar, | ||
2 | #pageFooter { | ||
3 | display: none; | ||
4 | } | ||