diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2021-09-12 22:01:51 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-09-12 22:06:03 +0530 |
commit | 9db43e100a672b6d6932ac68c0fbe503c129138b (patch) | |
tree | 4f6a31d25a7345c5d92dbd8b80d30ce7d129944f /recipes/aws-workmail | |
parent | New recipe: 'stackoverflow' (#707) (diff) | |
download | ferdium-recipes-9db43e100a672b6d6932ac68c0fbe503c129138b.tar.gz ferdium-recipes-9db43e100a672b6d6932ac68c0fbe503c129138b.tar.zst ferdium-recipes-9db43e100a672b6d6932ac68c0fbe503c129138b.zip |
Added a check to verify that the folder name of the recipe matches the recipe id (#708)
Use the recipe-id as master to rename internal folder names
Diffstat (limited to 'recipes/aws-workmail')
-rw-r--r-- | recipes/aws-workmail/.gitignore | 2 | ||||
-rw-r--r-- | recipes/aws-workmail/LICENSE | 21 | ||||
-rwxr-xr-x | recipes/aws-workmail/icon.svg | 1 | ||||
-rw-r--r-- | recipes/aws-workmail/index.js | 1 | ||||
-rw-r--r-- | recipes/aws-workmail/package.json | 11 | ||||
-rw-r--r-- | recipes/aws-workmail/webview.js | 32 |
6 files changed, 0 insertions, 68 deletions
diff --git a/recipes/aws-workmail/.gitignore b/recipes/aws-workmail/.gitignore deleted file mode 100644 index 63137ec..0000000 --- a/recipes/aws-workmail/.gitignore +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # Linter | ||
2 | .jshintrc | ||
diff --git a/recipes/aws-workmail/LICENSE b/recipes/aws-workmail/LICENSE deleted file mode 100644 index 231d35b..0000000 --- a/recipes/aws-workmail/LICENSE +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2017 Yoav Maman | ||
4 | |||
5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | of this software and associated documentation files (the "Software"), to deal | ||
7 | in the Software without restriction, including without limitation the rights | ||
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | copies of the Software, and to permit persons to whom the Software is | ||
10 | furnished to do so, subject to the following conditions: | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in all | ||
13 | copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | SOFTWARE. | ||
diff --git a/recipes/aws-workmail/icon.svg b/recipes/aws-workmail/icon.svg deleted file mode 100755 index 72a9bfb..0000000 --- a/recipes/aws-workmail/icon.svg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><linearGradient id="a" x1="50" y1="-687.73" x2="50" y2="-603.9" gradientTransform="translate(0 696)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f58536"/><stop offset="1" stop-color="#d16929"/></linearGradient></defs><path fill="url(#a)" d="M13 28.9 50 7.8l37 21.1v42.2L50 92.2 13 71.1V28.9z"/><path d="M71.4 35.8v9l-22.1 9.8-22.1-9.8v-9h-3.9v33h51.9v-33zm0 29.2H27.3V49.2L49.4 59l22.1-9.8V65z" fill="#fff"/><path fill="#fff" d="M49.3 21.7 23.4 33.3v5.1h3.9v-2.5l22-9.9 22.1 9.9v2.5h3.9v-5.1l-26-11.6z"/><path fill="#fff" d="M35.1 48.4v-6.3h28.4v6.3l4-1.8v-8.5H31.2v8.5l3.9 1.8z"/></svg> \ No newline at end of file | ||
diff --git a/recipes/aws-workmail/index.js b/recipes/aws-workmail/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/aws-workmail/index.js +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | module.exports = Ferdi => Ferdi; | ||
diff --git a/recipes/aws-workmail/package.json b/recipes/aws-workmail/package.json deleted file mode 100644 index e407dd2..0000000 --- a/recipes/aws-workmail/package.json +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | { | ||
2 | "id": "amazon-work-mail", | ||
3 | "name": "Amazon WorkMail", | ||
4 | "version": "1.1.1", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://{teamID}.awsapps.com/mail", | ||
8 | "hasIndirectMessages": false, | ||
9 | "hasTeamId": true | ||
10 | } | ||
11 | } | ||
diff --git a/recipes/aws-workmail/webview.js b/recipes/aws-workmail/webview.js deleted file mode 100644 index 944a15c..0000000 --- a/recipes/aws-workmail/webview.js +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | module.exports = (Ferdi) => { | ||
2 | const reload = (EventType) => new Promise((resolve, reject) => { | ||
3 | const btn = document.getElementsByClassName('giraffe-hierarchy-node-refresh')[0]; | ||
4 | const EventObject = document.createEvent('Events'); | ||
5 | EventObject.initEvent(EventType, true, false); | ||
6 | |||
7 | if (btn.dispatchEvent(EventObject)) { | ||
8 | resolve(); | ||
9 | } else { | ||
10 | reject(); | ||
11 | } | ||
12 | }); | ||
13 | |||
14 | const getUnread = () => { | ||
15 | const nodes = document.getElementsByClassName('giraffe-hierarchy-node-counter'); | ||
16 | let counter = 0; | ||
17 | |||
18 | for (let i = 0; i < nodes.length; i++) { | ||
19 | counter += Ferdi.safeParseInt(nodes[i].innerText); | ||
20 | } | ||
21 | |||
22 | Ferdi.setBadge(counter); | ||
23 | }; | ||
24 | |||
25 | if (!window.location.pathname.includes('auth')) { | ||
26 | Ferdi.loop(getUnread); | ||
27 | |||
28 | window.setInterval(() => { | ||
29 | reload('click'); | ||
30 | }, 60000); | ||
31 | } | ||
32 | }; | ||