aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Guillaume Assier <18405490+Sykursen@users.noreply.github.com>2022-06-15 16:18:44 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-15 14:18:44 +0000
commit247b9c7588ab2b51c6eab41affb9696cf61110fd (patch)
tree50a1d9ac222c0ba637ff436e7c10b668583de0ad /recipes
parentFix broken faq url [skip ci] (diff)
downloadferdium-recipes-247b9c7588ab2b51c6eab41affb9696cf61110fd.tar.gz
ferdium-recipes-247b9c7588ab2b51c6eab41affb9696cf61110fd.tar.zst
ferdium-recipes-247b9c7588ab2b51c6eab41affb9696cf61110fd.zip
Adding Tchap service (#40)
Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/tchap/icon.svg9
-rw-r--r--recipes/tchap/index.js1
-rw-r--r--recipes/tchap/package.json10
-rw-r--r--recipes/tchap/webview.js8
4 files changed, 28 insertions, 0 deletions
diff --git a/recipes/tchap/icon.svg b/recipes/tchap/icon.svg
new file mode 100644
index 0000000..20a362a
--- /dev/null
+++ b/recipes/tchap/icon.svg
@@ -0,0 +1,9 @@
1<svg width="1024" height="1024" xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve">
2 <g>
3 <title>Layer 1</title>
4 <ellipse ry="500" rx="500" id="svg_4" cy="507.69231" cx="515.38462" stroke="#000" fill="#00007f"/>
5 <polygon id="XMLID_71_" class="st1" points="818.8846435546875,682.8923645019531 515.3846435546875,858.0923156738281 211.8846435546875,682.8923645019531 211.8846435546875,332.4923400878906 515.3846435546875,157.29232788085938 818.8846435546875,332.4923400878906 " fill="#FFFFFF"/>
6 <polygon class="st2" points="696.3846435546875,341.74232482910156 334.3846435546875,341.74232482910156 334.3846435546875,469.4423065185547 386.984619140625,469.4423065185547 386.984619140625,394.3423309326172 482.78460693359375,394.3423309326172 482.78460693359375,673.6423187255859 535.3846435546875,673.6423187255859 535.3846435546875,394.3423309326172 696.3846435546875,394.3423309326172 " fill="#E5434F" id="svg_1"/>
7 </g>
8
9</svg> \ No newline at end of file
diff --git a/recipes/tchap/index.js b/recipes/tchap/index.js
new file mode 100644
index 0000000..8244b1b
--- /dev/null
+++ b/recipes/tchap/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium; \ No newline at end of file
diff --git a/recipes/tchap/package.json b/recipes/tchap/package.json
new file mode 100644
index 0000000..a9425fc
--- /dev/null
+++ b/recipes/tchap/package.json
@@ -0,0 +1,10 @@
1{
2 "id": "tchap",
3 "name": "Tchap",
4 "version": "1.0.0",
5 "license": "MIT",
6 "repository": "https://github.com/Sykursen/recipe-tchap/",
7 "config": {
8 "serviceURL": "https://www.tchap.gouv.fr/"
9 }
10 } \ No newline at end of file
diff --git a/recipes/tchap/webview.js b/recipes/tchap/webview.js
new file mode 100644
index 0000000..bc24fe6
--- /dev/null
+++ b/recipes/tchap/webview.js
@@ -0,0 +1,8 @@
1module.exports = Ferdium => {
2 const getMessages = () => {
3 let count = document.querySelector('.mx_RoomSubList_badge').innerHTML
4 Ferdium.setBadge(count);
5 };
6
7 Ferdium.loop(getMessages);
8}; \ No newline at end of file