aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar RoiArthurB <contact@arthurbrugiere.fr>2020-04-15 20:06:58 +0700
committerLibravatar RoiArthurB <contact@arthurbrugiere.fr>2020-04-15 20:06:58 +0700
commit82ec0881877157aeb1a071e3b6f201ad72dd23ef (patch)
treeadaedcc7b782d2cc1a1a5340b377e5389acd9d16
parent#93 Update Zulip (diff)
downloadferdium-recipes-82ec0881877157aeb1a071e3b6f201ad72dd23ef.tar.gz
ferdium-recipes-82ec0881877157aeb1a071e3b6f201ad72dd23ef.tar.zst
ferdium-recipes-82ec0881877157aeb1a071e3b6f201ad72dd23ef.zip
Add new Zalo recipe
-rw-r--r--all.json11
-rw-r--r--archives/zalo.tar.gzbin0 -> 122393 bytes
-rw-r--r--uncompressed/zalo/LICENSE21
-rw-r--r--uncompressed/zalo/README.md5
-rw-r--r--uncompressed/zalo/icon.pngbin0 -> 131572 bytes
-rw-r--r--uncompressed/zalo/icon.svg78
-rw-r--r--uncompressed/zalo/index.js3
-rw-r--r--uncompressed/zalo/package.json18
-rw-r--r--uncompressed/zalo/webview.js14
9 files changed, 150 insertions, 0 deletions
diff --git a/all.json b/all.json
index 80ffa66..6458f1b 100644
--- a/all.json
+++ b/all.json
@@ -1023,6 +1023,17 @@
1023 } 1023 }
1024 }, 1024 },
1025 { 1025 {
1026 "author": "RoiArthurB <arthurbrugiere01@gmail.com>",
1027 "featured": false,
1028 "id": "zalo",
1029 "name": "Zalo",
1030 "version": "1.0.0",
1031 "icons": {
1032 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zalo/icon.png",
1033 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zalo/icon.svg"
1034 }
1035 },
1036 {
1026 "author": "Stefan Malzner <stefan@adlk.io>", 1037 "author": "Stefan Malzner <stefan@adlk.io>",
1027 "featured": false, 1038 "featured": false,
1028 "id": "zendesk", 1039 "id": "zendesk",
diff --git a/archives/zalo.tar.gz b/archives/zalo.tar.gz
new file mode 100644
index 0000000..99890b5
--- /dev/null
+++ b/archives/zalo.tar.gz
Binary files differ
diff --git a/uncompressed/zalo/LICENSE b/uncompressed/zalo/LICENSE
new file mode 100644
index 0000000..ef601f9
--- /dev/null
+++ b/uncompressed/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/uncompressed/zalo/README.md b/uncompressed/zalo/README.md
new file mode 100644
index 0000000..c53df0a
--- /dev/null
+++ b/uncompressed/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/uncompressed/zalo/icon.png b/uncompressed/zalo/icon.png
new file mode 100644
index 0000000..9633272
--- /dev/null
+++ b/uncompressed/zalo/icon.png
Binary files differ
diff --git a/uncompressed/zalo/icon.svg b/uncompressed/zalo/icon.svg
new file mode 100644
index 0000000..02c62b4
--- /dev/null
+++ b/uncompressed/zalo/icon.svg
@@ -0,0 +1,78 @@
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 viewBox="0 0 460.1 436.6"
12 width="2500"
13 height="2372"
14 version="1.1"
15 sodipodi:docname="zalo-seeklogo.com.svg"
16 inkscape:version="0.92.4 5da689c313, 2019-01-14">
17 <metadata
18 id="metadata25">
19 <rdf:RDF>
20 <cc:Work
21 rdf:about="">
22 <dc:format>image/svg+xml</dc:format>
23 <dc:type
24 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25 </cc:Work>
26 </rdf:RDF>
27 </metadata>
28 <defs
29 id="defs23" />
30 <sodipodi:namedview
31 pagecolor="#ffffff"
32 bordercolor="#666666"
33 borderopacity="1"
34 objecttolerance="10"
35 gridtolerance="10"
36 guidetolerance="10"
37 inkscape:pageopacity="0"
38 inkscape:pageshadow="2"
39 inkscape:window-width="1920"
40 inkscape:window-height="1080"
41 id="namedview21"
42 showgrid="false"
43 inkscape:zoom="0.39797639"
44 inkscape:cx="1372.1763"
45 inkscape:cy="1562.8254"
46 inkscape:window-x="0"
47 inkscape:window-y="0"
48 inkscape:window-maximized="0"
49 inkscape:current-layer="Layer_1" />
50 <style
51 id="style2">.st0{fill:none}.st1{fill:#0180c7}.st2{fill:#0172b1}.st3{fill:none;stroke:#0180c7;stroke-width:2;stroke-miterlimit:10}</style>
52 <title
53 id="title4">logo-zalo-vector</title>
54 <path
55 class="st0"
56 d="M82.6 380.9c-1.8-.8-3.1-1.7-1-3.5 1.3-1 2.7-1.9 4.1-2.8 13.1-8.5 25.4-17.8 33.5-31.5 6.8-11.4 5.7-18.1-2.8-26.5C69 269.2 48.2 212.5 58.6 145.5 64.5 107.7 81.8 75 107 46.6c15.2-17.2 33.3-31.1 53.1-42.7 1.2-.7 2.9-.9 3.1-2.7-.4-1-1.1-.7-1.7-.7-33.7 0-67.4-.7-101 .2C28.3 1.7.5 26.6.6 62.3c.2 104.3 0 208.6 0 313 0 32.4 24.7 59.5 57 60.7 27.3 1.1 54.6.2 82 .1 2 .1 4 .2 6 .2H290c36 0 72 .2 108 0 33.4 0 60.5-27 60.5-60.3v-.6-58.5c0-1.4.5-2.9-.4-4.4-1.8.1-2.5 1.6-3.5 2.6-19.4 19.5-42.3 35.2-67.4 46.3-61.5 27.1-124.1 29-187.6 7.2-5.5-2-11.5-2.2-17.2-.8-8.4 2.1-16.7 4.6-25 7.1-24.4 7.6-49.3 11-74.8 6zm72.5-168.5c1.7-2.2 2.6-3.5 3.6-4.8 13.1-16.6 26.2-33.2 39.3-49.9 3.8-4.8 7.6-9.7 10-15.5 2.8-6.6-.2-12.8-7-15.2-3-.9-6.2-1.3-9.4-1.1-17.8-.1-35.7-.1-53.5 0-2.5 0-5 .3-7.4.9-5.6 1.4-9 7.1-7.6 12.8 1 3.8 4 6.8 7.8 7.7 2.4.6 4.9.9 7.4.8 10.8.1 21.7 0 32.5.1 1.2 0 2.7-.8 3.6 1-.9 1.2-1.8 2.4-2.7 3.5-15.5 19.6-30.9 39.3-46.4 58.9-3.8 4.9-5.8 10.3-3 16.3s8.5 7.1 14.3 7.5c4.6.3 9.3.1 14 .1 16.2 0 32.3.1 48.5-.1 8.6-.1 13.2-5.3 12.3-13.3-.7-6.3-5-9.6-13-9.7-14.1-.1-28.2 0-43.3 0zm116-52.6c-12.5-10.9-26.3-11.6-39.8-3.6-16.4 9.6-22.4 25.3-20.4 43.5 1.9 17 9.3 30.9 27.1 36.6 11.1 3.6 21.4 2.3 30.5-5.1 2.4-1.9 3.1-1.5 4.8.6 3.3 4.2 9 5.8 14 3.9 5-1.5 8.3-6.1 8.3-11.3.1-20 .2-40 0-60-.1-8-7.6-13.1-15.4-11.5-4.3.9-6.7 3.8-9.1 6.9zm69.3 37.1c-.4 25 20.3 43.9 46.3 41.3 23.9-2.4 39.4-20.3 38.6-45.6-.8-25-19.4-42.1-44.9-41.3-23.9.7-40.8 19.9-40 45.6zm-8.8-19.9c0-15.7.1-31.3 0-47 0-8-5.1-13-12.7-12.9-7.4.1-12.3 5.1-12.4 12.8-.1 4.7 0 9.3 0 14v79.5c0 6.2 3.8 11.6 8.8 12.9 6.9 1.9 14-2.2 15.8-9.1.3-1.2.5-2.4.4-3.7.2-15.5.1-31 .1-46.5z"
57 id="path6" />
58 <path
59 class="st1"
60 d="M139.5 436.2c-27.3 0-54.7.9-82-.1-32.3-1.3-57-28.4-57-60.7 0-104.3.2-208.6 0-313C.5 26.7 28.4 1.8 60.5.9c33.6-.9 67.3-.2 101-.2.6 0 1.4-.3 1.7.7-.2 1.8-2 2-3.1 2.7-19.8 11.6-37.9 25.5-53.1 42.7-25.1 28.4-42.5 61-48.4 98.9-10.4 66.9 10.5 123.7 57.8 171.1 8.4 8.5 9.5 15.1 2.8 26.5-8.1 13.7-20.4 23-33.5 31.5-1.4.8-2.8 1.8-4.2 2.7-2.1 1.8-.8 2.7 1 3.5.4.9.9 1.7 1.5 2.5 11.5 10.2 22.4 21.1 33.7 31.5 5.3 4.9 10.6 10 15.7 15.1 2.1 1.9 5.6 2.5 6.1 6.1z"
61 id="path8" />
62 <path
63 class="st2"
64 d="M139.5 436.2c-.5-3.5-4-4.1-6.1-6.2-5.1-5.2-10.4-10.2-15.7-15.1-11.3-10.4-22.2-21.3-33.7-31.5-.6-.8-1.1-1.6-1.5-2.5 25.5 5 50.4 1.6 74.9-5.9 8.3-2.5 16.6-5 25-7.1 5.7-1.5 11.7-1.2 17.2.8 63.4 21.8 126 19.8 187.6-7.2 25.1-11.1 48-26.7 67.4-46.2 1-1 1.7-2.5 3.5-2.6.9 1.4.4 2.9.4 4.4v58.5c.2 33.4-26.6 60.6-60 60.9h-.5c-36 .2-72 0-108 0H145.5c-2-.2-4-.3-6-.3z"
65 id="path10" />
66 <path
67 class="st1"
68 d="M155.1 212.4c15.1 0 29.3-.1 43.4 0 7.9.1 12.2 3.4 13 9.7.9 7.9-3.7 13.2-12.3 13.3-16.2.2-32.3.1-48.5.1-4.7 0-9.3.2-14-.1-5.8-.3-11.5-1.5-14.3-7.5s-.8-11.4 3-16.3c15.4-19.6 30.9-39.3 46.4-58.9.9-1.2 1.8-2.4 2.7-3.5-1-1.7-2.4-.9-3.6-1-10.8-.1-21.7 0-32.5-.1-2.5 0-5-.3-7.4-.8-5.7-1.3-9.2-7-7.9-12.6.9-3.8 3.9-6.9 7.7-7.8 2.4-.6 4.9-.9 7.4-.9 17.8-.1 35.7-.1 53.5 0 3.2-.1 6.3.3 9.4 1.1 6.8 2.3 9.7 8.6 7 15.2-2.4 5.7-6.2 10.6-10 15.5-13.1 16.7-26.2 33.3-39.3 49.8-1.1 1.3-2.1 2.6-3.7 4.8z"
69 id="path12" />
70 <path
71 class="st1"
72 d="M271.1 159.8c2.4-3.1 4.9-6 9-6.8 7.9-1.6 15.3 3.5 15.4 11.5.3 20 .2 40 0 60 0 5.2-3.4 9.8-8.3 11.3-5 1.9-10.7.4-14-3.9-1.7-2.1-2.4-2.5-4.8-.6-9.1 7.4-19.4 8.7-30.5 5.1-17.8-5.8-25.1-19.7-27.1-36.6-2.1-18.3 4-33.9 20.4-43.5 13.6-8.1 27.4-7.4 39.9 3.5zm-35.4 36.5c.2 4.4 1.6 8.6 4.2 12.1 5.4 7.2 15.7 8.7 23 3.3 1.2-.9 2.3-2 3.3-3.3 5.6-7.6 5.6-20.1 0-27.7-2.8-3.9-7.2-6.2-11.9-6.3-11-.7-18.7 7.8-18.6 21.9zM340.4 196.9c-.8-25.7 16.1-44.9 40.1-45.6 25.5-.8 44.1 16.3 44.9 41.3.8 25.3-14.7 43.2-38.6 45.6-26.1 2.6-46.8-16.3-46.4-41.3zm25.1-2.4c-.2 5 1.3 9.9 4.3 14 5.5 7.2 15.8 8.6 23 3 1.1-.8 2-1.8 2.9-2.8 5.8-7.6 5.8-20.4.1-28-2.8-3.8-7.2-6.2-11.9-6.3-10.8-.6-18.4 7.6-18.4 20.1zM331.6 177c0 15.5.1 31 0 46.5.1 7.1-5.5 13-12.6 13.2-1.2 0-2.5-.1-3.7-.4-5-1.3-8.8-6.6-8.8-12.9v-79.5c0-4.7-.1-9.3 0-14 .1-7.7 5-12.7 12.4-12.7 7.6-.1 12.7 4.9 12.7 12.9.1 15.6 0 31.3 0 46.9z"
73 id="path14" />
74 <path
75 class="st3"
76 d="M66 1h328.1c35.9 0 65 29.1 65 65v303c0 35.9-29.1 65-65 65H66c-35.9 0-65-29.1-65-65V66C1 30.1 30.1 1 66 1z"
77 id="path18" />
78</svg>
diff --git a/uncompressed/zalo/index.js b/uncompressed/zalo/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/uncompressed/zalo/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/uncompressed/zalo/package.json b/uncompressed/zalo/package.json
new file mode 100644
index 0000000..8e2417c
--- /dev/null
+++ b/uncompressed/zalo/package.json
@@ -0,0 +1,18 @@
1{
2 "id": "zalo",
3 "name": "Zalo",
4 "version": "1.0.0",
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/uncompressed/zalo/webview.js b/uncompressed/zalo/webview.js
new file mode 100644
index 0000000..e20c6b5
--- /dev/null
+++ b/uncompressed/zalo/webview.js
@@ -0,0 +1,14 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('notification-badge')[0]
7 if (notificationBadge != undefined) {
8 unread = notificationBadge.innerText;
9 }
10 Franz.setBadge(parseInt(unread, 10));
11 };
12
13 Franz.loop(getMessages);
14}; \ No newline at end of file