diff options
author | Serene <33189705+Serene-Arc@users.noreply.github.com> | 2023-12-03 05:00:30 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-02 12:00:30 -0700 |
commit | 0ece08fb0d996d7276ead40ad83ba3a3f962622c (patch) | |
tree | d4555e311a015ef2c641a44f35a2afefa8ae7488 /recipes/wakapi | |
parent | Fix selectors for Nextcloud Talk (#473) (diff) | |
download | ferdium-recipes-0ece08fb0d996d7276ead40ad83ba3a3f962622c.tar.gz ferdium-recipes-0ece08fb0d996d7276ead40ad83ba3a3f962622c.tar.zst ferdium-recipes-0ece08fb0d996d7276ead40ad83ba3a3f962622c.zip |
Add Wakapi recipe (#474)
Diffstat (limited to 'recipes/wakapi')
-rw-r--r-- | recipes/wakapi/icon.svg | 99 | ||||
-rw-r--r-- | recipes/wakapi/index.js | 1 | ||||
-rw-r--r-- | recipes/wakapi/package.json | 11 | ||||
-rw-r--r-- | recipes/wakapi/webview.js | 16 |
4 files changed, 127 insertions, 0 deletions
diff --git a/recipes/wakapi/icon.svg b/recipes/wakapi/icon.svg new file mode 100644 index 0000000..8d5f247 --- /dev/null +++ b/recipes/wakapi/icon.svg | |||
@@ -0,0 +1,99 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <svg | ||
3 | width="108mm" | ||
4 | height="108mm" | ||
5 | viewBox="0 0 108 108" | ||
6 | version="1.1" | ||
7 | id="svg1621" | ||
8 | xmlns="http://www.w3.org/2000/svg" | ||
9 | xmlns:svg="http://www.w3.org/2000/svg" | ||
10 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
11 | xmlns:cc="http://creativecommons.org/ns#" | ||
12 | xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
13 | <defs | ||
14 | id="defs1615"> | ||
15 | <clipPath | ||
16 | clipPathUnits="userSpaceOnUse" | ||
17 | id="clipPath20"> | ||
18 | <path | ||
19 | d="M 0,700 H 1100 V 0 H 0 Z" | ||
20 | id="path18" /> | ||
21 | </clipPath> | ||
22 | </defs> | ||
23 | <metadata | ||
24 | id="metadata1618"> | ||
25 | <rdf:RDF> | ||
26 | <cc:Work | ||
27 | rdf:about=""> | ||
28 | <dc:format>image/svg+xml</dc:format> | ||
29 | <dc:type | ||
30 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
31 | <dc:title /> | ||
32 | </cc:Work> | ||
33 | </rdf:RDF> | ||
34 | </metadata> | ||
35 | <g | ||
36 | id="layer1" | ||
37 | transform="translate(-178.77315,11.952824)"> | ||
38 | <g | ||
39 | id="g14" | ||
40 | transform="matrix(0.35200974,0,0,-0.35587382,105.17185,167.04522)"> | ||
41 | <g | ||
42 | id="g16" | ||
43 | clip-path="url(#clipPath20)"> | ||
44 | <g | ||
45 | id="g22" | ||
46 | transform="translate(600.9092,345.958)" /> | ||
47 | <g | ||
48 | id="g26" | ||
49 | transform="translate(706.707,299.5566)" /> | ||
50 | <g | ||
51 | id="g30" | ||
52 | transform="translate(810.2764,345.958)" /> | ||
53 | <g | ||
54 | id="g34" | ||
55 | transform="translate(930.5527,345.958)" /> | ||
56 | <g | ||
57 | id="g40" | ||
58 | transform="translate(503.8398,367.5195)"> | ||
59 | <path | ||
60 | d="m 8.7266003,-16.286056 c 0,-3.170064 -0.10674,-6.340128 -0.32021,-9.492657 -0.85541,-13.857403 -3.56194,-27.197135 -7.89009005,-39.789715 C -18.95161,-122.31318 -71.13644,-163.86557 -133.5283,-167.69511 c -3.13424,-0.23101 -6.30506,-0.32097 -9.49342,-0.32097 -3.1876,0 -6.33937,0.09 -9.4919,0.32097 -76.24773,4.68419 -137.23296,65.6679 -141.91639,141.916397 -0.23101,3.152529 -0.32098,6.322593 -0.32098,9.492657 0,3.188361 0.09,6.358425 0.32098,9.493419 4.68343,76.22944 65.66866,137.249737 141.91639,141.933927 3.15253,0.21348 6.3043,0.32098 9.4919,0.32098 3.18836,0 6.35918,-0.1075 9.49342,-0.32098 V 94.354359 h -18.98532 V 110.75818 C -215.22645,106.14489 -265.43361,55.901133 -270.06444,-6.792637 h 14.65793 v -18.986076 h -14.65793 c 4.63083,-62.712067 54.83799,-112.920757 117.55082,-117.551577 v 16.72479 h 18.98532 v -16.72479 c 46.32654,3.42013 85.86619,31.73876 105.20907,71.59937 6.83873,14.070117 11.14859,29.584217 12.34251,45.952207 h -0.0358 l 8.8697703,18.986076 h 15.54917 c 0.21347,-3.134994 0.32021,-6.305058 0.32021,-9.493419" | ||
61 | style="fill:#2f855a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.762401" | ||
62 | id="path42" /> | ||
63 | </g> | ||
64 | <g | ||
65 | id="g44" | ||
66 | transform="translate(504.2754,431.2373)"> | ||
67 | <path | ||
68 | d="m 11.6231,-31.425333 -17.1029497,8.252992 -4.6666503,-9.703842 -9.61922,-20.006168 -37.98968,-78.855149 -0.0572,-0.0854 h -37.47886 l -0.0282,0.0572 0.0282,0.0854 14.77,30.64853 3.78456,7.85425 0.19898,0.42618 19.2087,39.869009 7.37013,15.25336 2.27653,4.752808 11.72497,24.386926 -5.77672,2.761416 -9.59024,4.638449 49.9708203,23.249422 z" | ||
69 | style="fill:#2f855a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.762401" | ||
70 | id="path46" /> | ||
71 | </g> | ||
72 | <g | ||
73 | id="g48" | ||
74 | transform="translate(258.5654,361.2139)"> | ||
75 | <path | ||
76 | d="m 65.50352,-19.287853 v -0.0183 L 46.73396,-58.308305 12.56848,12.654468 2.9523203,32.646912 H 40.49066 l 9.63446,-19.992444 z" | ||
77 | style="fill:#2f855a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.762401" | ||
78 | id="path50" /> | ||
79 | </g> | ||
80 | <g | ||
81 | id="g52" | ||
82 | transform="translate(320.9248,367.3867)"> | ||
83 | <path | ||
84 | d="M 52.18699,-16.254503 27.28545,-67.966647 v -0.01906 h -37.57494 v 0.01906 l 18.7870903,39.002155 19.2506297,39.94677 5.65168,11.764611 5.66921,-11.764611 9.2647,-19.232331 z" | ||
85 | style="fill:#2f855a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.762401" | ||
86 | id="path54" /> | ||
87 | </g> | ||
88 | <g | ||
89 | id="g56" | ||
90 | transform="translate(383.7656,359.833)"> | ||
91 | <path | ||
92 | d="m 38.75609,-18.959752 -3.78456,-7.854257 -14.7982,-30.591345 -0.0282,-0.08539 -25.2979997,52.560696 -9.1358503,18.95253 -9.61769,20.005406 h 37.10759 z" | ||
93 | style="fill:#2f855a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.762401" | ||
94 | id="path58" /> | ||
95 | </g> | ||
96 | </g> | ||
97 | </g> | ||
98 | </g> | ||
99 | </svg> | ||
diff --git a/recipes/wakapi/index.js b/recipes/wakapi/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/wakapi/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/wakapi/package.json b/recipes/wakapi/package.json new file mode 100644 index 0000000..a6401cd --- /dev/null +++ b/recipes/wakapi/package.json | |||
@@ -0,0 +1,11 @@ | |||
1 | { | ||
2 | "id": "wakapi", | ||
3 | "name": "Wakapi", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://wakapi.dev", | ||
8 | "hasHostedOption": true, | ||
9 | "hasCustomUrl": true | ||
10 | } | ||
11 | } | ||
diff --git a/recipes/wakapi/webview.js b/recipes/wakapi/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/wakapi/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges | ||
9 | // const getMessages = () => { | ||
10 | // // TODO: Insert your notification-finding code here | ||
11 | // Ferdium.setBadge(0, 0); | ||
12 | // }; | ||
13 | // Ferdium.loop(getMessages); | ||
14 | |||
15 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
16 | }; | ||