aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-09-24 13:22:39 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-24 05:22:39 -0600
commit84613bab74600154cd39d7deead7ded27ac27d11 (patch)
tree52a9de9da099fd2d037eb26bced915811d601d79
parentfix: featured json pointing to wrong google calendar recipe id (#427) (diff)
downloadferdium-recipes-84613bab74600154cd39d7deead7ded27ac27d11.tar.gz
ferdium-recipes-84613bab74600154cd39d7deead7ded27ac27d11.tar.zst
ferdium-recipes-84613bab74600154cd39d7deead7ded27ac27d11.zip
chore: remove dead grape recipe (#428)
- remove recipes/grape folder
-rw-r--r--recipes/grape/icon.svg1
-rw-r--r--recipes/grape/index.js48
-rw-r--r--recipes/grape/package.json14
-rw-r--r--recipes/grape/webview.js18
4 files changed, 0 insertions, 81 deletions
diff --git a/recipes/grape/icon.svg b/recipes/grape/icon.svg
deleted file mode 100644
index 32abd6a..0000000
--- a/recipes/grape/icon.svg
+++ /dev/null
@@ -1 +0,0 @@
1<svg height="80" width="80" xmlns="http://www.w3.org/2000/svg"><linearGradient id="a" x1="50%" x2="50%" y1="0%" y2="78.332%"><stop offset="0" stop-color="#00c4ff"/><stop offset="1" stop-color="#007fff"/></linearGradient><path d="M38.391 20.31c-1.852.128-5.113-.267-9.102-3.388C23 12 23.678 6.945 23.823 6.122c.142-.804 6.024-1.983 12.152 2.533-.96 2.4-.975 4.62-.755 6.228.176-2.92 1.452-6.69 5.85-10.075 8.79-6.767 17.392-5.127 17.59-4s1.12 8.048-7.669 14.815c-5.5 4.234-10 4.832-12.6 4.687zm11.537 23.814a14.377 14.377 0 0 0 9.126 4.492 10.107 10.107 0 0 1 1.377 5.111c0 5.574-4.482 10.092-10.011 10.092s-10.01-4.518-10.01-10.092c0-1.935.54-3.743 1.476-5.279a14.285 14.285 0 0 0 4.334-1.543 14.517 14.517 0 0 0 3.708-2.781zm1.604-18.337c2.242-2.55 5.515-4.158 9.161-4.158 6.757 0 12.235 5.522 12.235 12.334S67.45 46.298 60.693 46.298c-3.646 0-6.92-1.608-9.16-4.158a14.575 14.575 0 0 0 1.578-3.08c1.52 2.651 4.353 4.435 7.599 4.435 3.873 0 7.16-2.54 8.325-6.063-2.012 2.352-4.983 3.84-8.298 3.84a10.858 10.858 0 0 1-7.391-2.898c.437-1.392.673-2.873.673-4.41 0-3.03-.917-5.845-2.487-8.177zM27.324 42.14c-2.241 2.55-5.515 4.158-9.16 4.158-6.758 0-12.236-5.522-12.236-12.335S11.406 21.63 18.163 21.63c3.646 0 6.92 1.608 9.161 4.158a14.592 14.592 0 0 0-2.487 8.176c0 1.56.243 3.064.694 4.473a10.856 10.856 0 0 1-7.323 2.837c-3.364 0-6.374-1.533-8.387-3.946 1.135 3.578 4.449 6.168 8.36 6.168 3.23 0 6.054-1.768 7.578-4.4a14.575 14.575 0 0 0 1.565 3.045zm9.384 6.308a10.105 10.105 0 0 1 1.477 5.28c0 5.573-4.482 10.091-10.01 10.091s-10.012-4.518-10.012-10.092c0-1.865.502-3.612 1.377-5.11a14.38 14.38 0 0 0 9.19-4.562 14.402 14.402 0 0 0 7.978 4.393zm12.18 17.838c.273.918.42 1.891.42 2.899 0 5.573-4.482 10.091-10.011 10.091s-10.01-4.518-10.01-10.091c0-1.008.146-1.981.419-2.9 4.272-.537 7.86-3.295 9.591-7.092 1.731 3.797 5.32 6.555 9.591 7.093zm-16.42 5.61c.907 2.928 3.558 5.046 6.686 5.046 3.098 0 5.728-2.077 6.66-4.96-1.609 1.925-3.986 3.142-6.638 3.142-2.69 0-5.099-1.253-6.709-3.228zM21.5 56.531c.908 2.927 3.56 5.045 6.688 5.045 3.098 0 5.727-2.077 6.66-4.96-1.61 1.925-3.987 3.142-6.639 3.142-2.69 0-5.098-1.253-6.709-3.227zm22.246 0c.908 2.927 3.559 5.045 6.687 5.045 3.099 0 5.728-2.077 6.66-4.96-1.609 1.925-3.986 3.142-6.638 3.142-2.69 0-5.099-1.253-6.709-3.227zm-4.449-10.233c6.757 0 12.235-5.522 12.235-12.335S46.054 21.63 39.297 21.63s-12.235 5.522-12.235 12.334 5.478 12.335 12.235 12.335zm-8.342-8.97c1.135 3.577 4.448 6.167 8.359 6.167 3.872 0 7.16-2.54 8.325-6.063-2.012 2.352-4.983 3.84-8.298 3.84-3.363 0-6.373-1.532-8.386-3.945z" fill="url(#a)" fill-rule="evenodd"/></svg> \ No newline at end of file
diff --git a/recipes/grape/index.js b/recipes/grape/index.js
deleted file mode 100644
index 1e2a187..0000000
--- a/recipes/grape/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
1function _asyncToGenerator(fn) {
2 return function () {
3 const gen = Reflect.apply(fn, this, arguments);
4 return new Promise((resolve, reject) => {
5 function step(key, arg) {
6 try {
7 var info = gen[key](arg);
8 var value = info.value;
9 } catch (error) {
10 reject(error);
11 return;
12 }
13 if (info.done) {
14 resolve(value);
15 } else {
16 // eslint-disable-next-line consistent-return
17 return Promise.resolve(value).then(
18 value => {
19 step('next', value);
20 },
21 error => {
22 step('throw', error);
23 },
24 );
25 }
26 }
27 return step('next');
28 });
29 };
30}
31
32module.exports = Ferdium =>
33 class Grape extends Ferdium {
34 validateUrl(url) {
35 return _asyncToGenerator(function* () {
36 try {
37 const resp = yield window.fetch(url, {
38 method: 'GET',
39 });
40 return resp.status === 200;
41 } catch (error) {
42 console.error(error);
43 }
44
45 return false;
46 })();
47 }
48 };
diff --git a/recipes/grape/package.json b/recipes/grape/package.json
deleted file mode 100644
index 6b09778..0000000
--- a/recipes/grape/package.json
+++ /dev/null
@@ -1,14 +0,0 @@
1{
2 "id": "grape",
3 "name": "Grape",
4 "version": "1.3.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://{teamId}.chatgrape.com/chat",
8 "hasNotificationSound": true,
9 "hasIndirectMessages": true,
10 "hasCustomUrl": true,
11 "hasTeamId": true,
12 "urlInputSuffix": ".chatgrape.com"
13 }
14}
diff --git a/recipes/grape/webview.js b/recipes/grape/webview.js
deleted file mode 100644
index 0115205..0000000
--- a/recipes/grape/webview.js
+++ /dev/null
@@ -1,18 +0,0 @@
1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
8 const getMessages = () => {
9 const directMessages = document.querySelectorAll('.c0120').length;
10 const indirectMessages = document.querySelectorAll('.c0121').length;
11
12 Ferdium.setBadge(directMessages, indirectMessages);
13 };
14
15 Ferdium.loop(getMessages);
16
17 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
18};