aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zalo
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/zalo
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/zalo')
-rw-r--r--recipes/zalo/LICENSE21
-rw-r--r--recipes/zalo/README.md5
-rw-r--r--recipes/zalo/icon.pngbin0 -> 47801 bytes
-rw-r--r--recipes/zalo/icon.svg91
-rw-r--r--recipes/zalo/index.js3
-rw-r--r--recipes/zalo/package.json18
-rw-r--r--recipes/zalo/webview.js11
7 files changed, 149 insertions, 0 deletions
diff --git a/recipes/zalo/LICENSE b/recipes/zalo/LICENSE
new file mode 100644
index 0000000..ef601f9
--- /dev/null
+++ b/recipes/zalo/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2020 Arthur Brugiere
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/zalo/README.md b/recipes/zalo/README.md
new file mode 100644
index 0000000..c53df0a
--- /dev/null
+++ b/recipes/zalo/README.md
@@ -0,0 +1,5 @@
1# Zalo for Ferdi
2This is a Ferdi recipe for Zalo
3
4### How to create your own Ferdi recipes:
5* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md)
diff --git a/recipes/zalo/icon.png b/recipes/zalo/icon.png
new file mode 100644
index 0000000..2bbefab
--- /dev/null
+++ b/recipes/zalo/icon.png
Binary files differ
diff --git a/recipes/zalo/icon.svg b/recipes/zalo/icon.svg
new file mode 100644
index 0000000..ff1ab66
--- /dev/null
+++ b/recipes/zalo/icon.svg
@@ -0,0 +1,91 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 xmlns:dc="http://purl.org/dc/elements/1.1/"
4 xmlns:cc="http://creativecommons.org/ns#"
5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6 xmlns:svg="http://www.w3.org/2000/svg"
7 xmlns="http://www.w3.org/2000/svg"
8 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 id="Layer_1"
11 width="1024"
12 height="1024"
13 version="1.1"
14 viewBox="0 0 188.45696 188.48162"
15 sodipodi:docname="icon.svg"
16 inkscape:version="0.92.4 5da689c313, 2019-01-14">
17 <defs
18 id="defs14" />
19 <sodipodi:namedview
20 pagecolor="#ffffff"
21 bordercolor="#666666"
22 borderopacity="1"
23 objecttolerance="10"
24 gridtolerance="10"
25 guidetolerance="10"
26 inkscape:pageopacity="0"
27 inkscape:pageshadow="2"
28 inkscape:window-width="1920"
29 inkscape:window-height="1080"
30 id="namedview12"
31 showgrid="false"
32 inkscape:zoom="256"
33 inkscape:cx="1023.2126"
34 inkscape:cy="1023.2381"
35 inkscape:window-x="0"
36 inkscape:window-y="0"
37 inkscape:window-maximized="0"
38 inkscape:current-layer="Layer_1" />
39 <metadata
40 id="metadata25">
41 <rdf:RDF>
42 <cc:Work
43 rdf:about="">
44 <dc:format>image/svg+xml</dc:format>
45 <dc:type
46 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
47 <dc:title>logo-zalo-vector</dc:title>
48 </cc:Work>
49 </rdf:RDF>
50 </metadata>
51 <style
52 id="style2">.st0{fill:none}.st1{fill:#0180c7}.st2{fill:#0172b1}.st3{fill:none;stroke:#0180c7;stroke-width:2;stroke-miterlimit:10}</style>
53 <title
54 id="title4">logo-zalo-vector</title>
55 <path
56 id="path6"
57 d="m 33.832279,164.4446 c -0.737291,-0.34541 -1.269781,-0.734 -0.409607,-1.51115 0.532488,-0.43175 1.105938,-0.82033 1.679386,-1.2089 5.365846,-3.66995 10.404008,-7.68527 13.721819,-13.60031 2.785323,-4.92202 2.334758,-7.81478 -1.1469,-11.44154 C 28.26163,116.21748 19.741816,91.736931 24.001723,62.8093 26.418401,46.488932 33.504594,32.370521 43.826678,20.108659 50.052697,12.682459 57.466574,6.6810552 65.576784,1.6726883 66.068311,1.3704597 66.764642,1.2841081 66.846563,0.50694778 66.682719,0.07519248 66.395997,0.2047192 66.150233,0.2047192 c -13.803741,0 -27.607479,-0.30222856 -41.370256,0.0863555 C 11.590646,0.72282997 0.20358585,11.473548 0.24454646,26.887228 c 0.0819214,45.03212 0,90.064252 0,135.139532 0,13.98889 10.11728154,25.68948 23.34757054,26.20758 11.182257,0.47493 22.364514,0.0864 33.587734,0.0431 0.819212,0.0431 1.638424,0.0863 2.457638,0.0863 h 59.147181 c 14.74583,0 29.49167,0.0864 44.2375,0 13.68085,0 24.78119,-11.65739 24.78119,-26.03486 v -0.25899 -25.25772 c 0,-0.60444 0.2048,-1.25207 -0.16384,-1.89971 -0.73729,0.0431 -1.02401,0.6908 -1.43363,1.12255 -7.94636,8.41925 -17.32636,15.19782 -27.60746,19.9903 -25.1908,11.70058 -50.83218,12.5209 -76.84219,3.10865 -2.252838,-0.8635 -4.710476,-0.94987 -7.045233,-0.34541 -3.440694,0.90669 -6.840427,1.98607 -10.240161,3.06547 -9.9944,3.28134 -20.193601,4.74931 -30.638567,2.59053 z M 63.52875,91.69376 c 0.696332,-0.949859 1.064977,-1.51115 1.474584,-2.072428 5.365844,-7.16714 10.731691,-14.334294 16.097535,-21.544611 1.556505,-2.072427 3.113009,-4.188031 4.096066,-6.692214 1.146897,-2.849589 -0.08193,-5.526473 -2.867247,-6.562688 -1.228819,-0.38858 -2.539559,-0.561283 -3.850302,-0.474932 -7.290995,-0.04317 -14.62295,-0.04317 -21.913946,0 -1.024015,0 -2.048031,0.129528 -3.031088,0.388581 -2.293798,0.604459 -3.686458,3.065467 -3.11301,5.526474 0.409608,1.640671 1.638426,2.935938 3.194932,3.324518 0.983054,0.259054 2.007071,0.388581 3.031086,0.345405 4.423752,0.04317 8.888462,0 13.312213,0.04317 0.491529,0 1.105937,-0.345404 1.474582,0.431754 -0.368645,0.51811 -0.73729,1.036217 -1.105936,1.511146 -6.3489,8.462415 -12.656841,16.968007 -19.005742,25.430415 -1.556506,2.115611 -2.375719,4.447093 -1.22882,7.037626 1.146897,2.590534 3.481656,3.065464 5.857374,3.238174 1.884187,0.12952 3.80934,0.0431 5.73449,0.0431 6.635624,0 13.230291,0.0432 19.865914,-0.0431 3.522617,-0.0431 5.406806,-2.288316 5.038161,-5.742366 -0.286725,-2.72006 -2.048034,-4.144855 -5.324884,-4.188026 -5.77545,-0.04313 -11.550904,0 -17.735962,10e-7 z m 47.51436,-22.710353 c -5.1201,-4.706137 -10.77266,-5.008366 -16.302346,-1.55432 -6.717546,4.144855 -9.175184,10.923421 -8.355971,18.78138 0.778252,7.339838 3.809339,13.341252 11.10034,15.802253 4.546637,1.55432 8.765577,0.99304 12.492997,-2.201949 0.98305,-0.820343 1.26977,-0.647632 1.96611,0.259049 1.35169,1.81338 3.68646,2.50418 5.73449,1.68385 2.04804,-0.64763 3.39973,-2.633716 3.39973,-4.878842 0.041,-8.635118 0.0819,-17.270224 0,-25.905344 -0.041,-3.454046 -3.11302,-5.656001 -6.30794,-4.96519 -1.7613,0.388579 -2.74436,1.64067 -3.72741,2.979113 z m 28.38574,16.018135 c -0.16386,10.793903 8.31499,18.954088 18.96475,17.831518 9.78961,-1.03621 16.13852,-8.764647 15.81084,-19.688064 -0.32771,-10.793893 -7.94639,-18.176916 -18.39135,-17.831513 -9.78959,0.30223 -16.71195,8.591945 -16.38424,19.688059 z m -3.60455,-8.591935 c 0,-6.778566 0.0409,-13.513955 0,-20.292519 0,-3.454047 -2.089,-5.612827 -5.202,-5.56965 -3.0311,0.04317 -5.03816,2.201955 -5.07913,5.526472 -0.0409,2.029254 0,4.015329 0,6.04458 v 34.324588 c 0,2.676876 1.55651,5.008362 3.60454,5.569642 2.82628,0.82034 5.73449,-0.94987 6.47179,-3.928979 0.12288,-0.518108 0.2048,-1.036214 0.16383,-1.597493 0.082,-6.692219 0.0409,-13.384423 0.0409,-20.076641 z"
58 class="st0"
59 inkscape:connector-curvature="0"
60 style="fill:none;stroke-width:0.42053533" />
61 <path
62 id="path8"
63 d="m 57.138888,188.32069 c -11.182257,0 -22.405475,0.38858 -33.587732,-0.0431 -13.230289,-0.56128 -23.34757015,-12.26187 -23.34757015,-26.20758 0,-45.03211 0.0819214,-90.064244 0,-135.139542 0,-15.413679 11.42802215,-26.16439703 24.57639115,-26.55297718 13.762777,-0.38858015 27.566515,-0.0863555 41.370256,-0.0863555 0.245764,0 0.573448,-0.1295267 0.69633,0.30222859 C 66.764637,1.3704934 66.027351,1.456845 65.576784,1.7590735 57.466574,6.7674405 50.052697,12.768845 43.826678,20.195042 33.545554,32.456905 26.418401,46.532142 24.001723,62.895686 c -4.259907,28.884469 4.300868,53.408194 23.675254,73.873404 3.440696,3.66992 3.891263,6.51953 1.1469,11.44155 -3.317811,5.91505 -8.355973,9.93037 -13.721819,13.60028 -0.573448,0.34541 -1.146898,0.77717 -1.720346,1.16575 -0.860173,0.77715 -0.327684,1.16574 0.409606,1.51114 0.163842,0.38858 0.368645,0.734 0.614411,1.07939 4.710473,4.40389 9.175186,9.11006 13.803738,13.60031 2.170915,2.1156 4.341829,4.31756 6.430823,6.5195 0.860172,0.82035 2.293797,1.0794 2.498598,2.63372 z"
64 class="st1"
65 inkscape:connector-curvature="0"
66 style="fill:#0180c7;stroke-width:0.42053533" />
67 <path
68 id="path10"
69 d="m 57.138888,188.32069 c -0.204801,-1.51114 -1.638426,-1.77019 -2.498598,-2.67688 -2.088994,-2.24513 -4.259908,-4.40392 -6.430823,-6.5195 -4.628552,-4.49027 -9.093265,-9.19642 -13.803738,-13.60033 -0.245766,-0.3454 -0.450569,-0.69079 -0.614411,-1.07938 10.444967,2.15878 20.644167,0.69081 30.679528,-2.54736 3.399734,-1.07938 6.799467,-2.15878 10.240161,-3.06547 2.334757,-0.64763 4.792395,-0.5181 7.045233,0.34541 25.96904,9.41228 51.6104,8.54876 76.84219,-3.10863 10.2811,-4.7925 19.6611,-11.5279 27.60746,-19.94713 0.40962,-0.43174 0.69634,-1.07937 1.43363,-1.12257 0.36864,0.60446 0.16384,1.25211 0.16384,1.89974 v 25.2577 c 0.082,14.42065 -10.89553,26.1644 -24.57639,26.29393 h -0.2048 c -14.74583,0.0864 -29.49167,0 -44.2375,0 H 59.596528 c -0.819212,-0.0864 -1.638425,-0.12953 -2.45764,-0.12953 z"
70 class="st2"
71 inkscape:connector-curvature="0"
72 style="fill:#0172b1;stroke-width:0.42053533" />
73 <path
74 id="path12"
75 d="m 63.52875,91.69376 c 6.185058,0 12.001471,-0.04313 17.776922,0 3.23589,0.04313 4.997199,1.467966 5.324884,4.188026 0.368645,3.41088 -1.515543,5.699174 -5.038161,5.742364 -6.635624,0.0864 -13.230287,0.0431 -19.865914,0.0431 -1.925148,0 -3.80934,0.0864 -5.734491,-0.0431 -2.375716,-0.12953 -4.710472,-0.64764 -5.857371,-3.238172 -1.146899,-2.590533 -0.327685,-4.922015 1.228817,-7.037626 6.307942,-8.462408 12.656842,-16.968 19.005742,-25.43041 0.368647,-0.518108 0.737293,-1.036214 1.105939,-1.511147 -0.409607,-0.733983 -0.983057,-0.388579 -1.474583,-0.431754 -4.42375,-0.04317 -8.88846,0 -13.31221,-0.04317 -1.024018,0 -2.048034,-0.129527 -3.031091,-0.345405 -2.334756,-0.561282 -3.768378,-3.022289 -3.235891,-5.440122 0.368645,-1.640674 1.597467,-2.979114 3.153971,-3.367694 0.983055,-0.259055 2.007071,-0.388581 3.031088,-0.388581 7.290994,-0.04317 14.622952,-0.04317 21.913946,0 1.310741,-0.04317 2.580522,0.129526 3.850302,0.474933 2.785323,0.993036 3.973183,3.713097 2.867245,6.562686 -0.983054,2.461008 -2.53956,4.57661 -4.096064,6.692213 -5.365846,7.21031 -10.731692,14.377464 -16.097535,21.501433 -0.450568,0.561278 -0.860173,1.122556 -1.515545,2.072429 z"
76 class="st1"
77 inkscape:connector-curvature="0"
78 style="fill:#0180c7;stroke-width:0.42053533" />
79 <path
80 id="path14"
81 d="m 111.04311,68.983407 c 0.98305,-1.338443 2.00706,-2.590534 3.68646,-2.93594 3.23587,-0.690808 6.26697,1.511146 6.30792,4.965192 0.12289,8.635116 0.082,17.270234 0,25.905342 0,2.245138 -1.39265,4.231209 -3.39972,4.878849 -2.04803,0.82032 -4.38279,0.17269 -5.73448,-1.68385 -0.69634,-0.90669 -0.98307,-1.079388 -1.96612,-0.259057 -3.72742,3.194997 -7.94637,3.756267 -12.493002,2.201957 -7.290996,-2.504181 -10.281123,-8.505595 -11.100336,-15.802262 -0.860175,-7.90113 1.638426,-14.636521 8.355971,-18.781377 5.570647,-3.49722 11.223207,-3.194991 16.343307,1.511146 z M 96.543033,84.742489 c 0.08189,1.89973 0.655374,3.713104 1.720349,5.224253 2.211868,3.108641 6.430818,3.756274 9.420938,1.424794 0.49154,-0.38858 0.9421,-0.863516 1.35171,-1.424794 2.29379,-3.281353 2.29379,-8.67829 0,-11.959644 -1.14689,-1.683846 -2.94917,-2.676876 -4.87432,-2.72006 -4.505667,-0.302226 -7.659632,3.367695 -7.618677,9.455451 z m 42.885817,0.259053 c -0.32771,-11.096114 6.59465,-19.385829 16.42521,-19.688059 10.44495,-0.345403 18.06364,7.03762 18.39133,17.831513 0.32769,10.923417 -6.02123,18.651854 -15.81081,19.688064 -10.69074,1.12257 -19.16959,-7.037615 -19.00573,-17.831518 z m 10.2811,-1.036214 c -0.082,2.158784 0.53249,4.274382 1.76132,6.044585 2.25282,3.10864 6.47177,3.713103 9.42093,1.295267 0.45059,-0.345409 0.81923,-0.77716 1.18788,-1.208913 2.37571,-3.281351 2.37571,-8.807815 0.0409,-12.089169 -1.14688,-1.640663 -2.94916,-2.676876 -4.87431,-2.72006 -4.42374,-0.259053 -7.53677,3.28135 -7.53677,8.67829 z M 135.8243,76.409607 c 0,6.692218 0.0409,13.384422 0,20.076641 0.0409,3.065471 -2.25284,5.612822 -5.16104,5.699182 -0.49154,0 -1.02402,-0.0431 -1.51555,-0.17271 -2.04803,-0.56128 -3.60454,-2.849581 -3.60454,-5.569642 V 62.11849 c 0,-2.029251 -0.0409,-4.015326 0,-6.04458 0.0409,-3.324517 2.04803,-5.483296 5.07913,-5.483296 3.113,-0.04317 5.202,2.115601 5.202,5.569649 0.0409,6.735389 0,13.513952 0,20.249344 z"
82 class="st1"
83 inkscape:connector-curvature="0"
84 style="fill:#0180c7;stroke-width:0.42053533" />
85 <path
86 id="path18"
87 d="M 27.032811,0.4205975 H 161.42471 c 14.70487,0 26.6244,12.5640915 26.6244,28.0641215 V 159.30671 c 0,15.50004 -11.91953,28.06413 -26.6244,28.06413 H 27.032811 c -14.704873,0 -26.6244219,-12.56409 -26.6244219,-28.06413 V 28.484719 c 0,-15.50003 11.9195489,-28.0641215 26.6244219,-28.0641215 z"
88 class="st3"
89 inkscape:connector-curvature="0"
90 style="fill:none;stroke:#0180c7;stroke-width:0.84107065;stroke-miterlimit:10" />
91</svg>
diff --git a/recipes/zalo/index.js b/recipes/zalo/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/recipes/zalo/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/zalo/package.json b/recipes/zalo/package.json
new file mode 100644
index 0000000..183fc20
--- /dev/null
+++ b/recipes/zalo/package.json
@@ -0,0 +1,18 @@
1{
2 "id": "zalo",
3 "name": "Zalo",
4 "version": "1.1.1",
5 "description": "Zalo",
6 "main": "index.js",
7 "author": "RoiArthurB <arthurbrugiere01@gmail.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://chat.zalo.me/",
11 "hasNotificationSound": true,
12 "hasDirectMessages": true,
13 "hasIndirectMessages": false,
14 "hasTeamID": false,
15 "hasPredefinedUrl": true,
16 "hasCustomUrl": false
17 }
18}
diff --git a/recipes/zalo/webview.js b/recipes/zalo/webview.js
new file mode 100644
index 0000000..0f360c3
--- /dev/null
+++ b/recipes/zalo/webview.js
@@ -0,0 +1,11 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('tab-red-dot').length;
7 Franz.setBadge(notificationBadge);
8 };
9
10 Franz.loop(getMessages);
11};