diff options
author | 2021-11-01 23:23:32 +0100 | |
---|---|---|
committer | 2021-11-02 03:53:32 +0530 | |
commit | ef8e9edc0d843e5935d5e56998df002b13956f37 (patch) | |
tree | 40ecbb0ac1fecde1af77e19e4def10eea0539861 /recipes | |
parent | chore: remove empty 'service.css' from recipes. Remove 'README.md' from the c... (diff) | |
download | ferdium-recipes-ef8e9edc0d843e5935d5e56998df002b13956f37.tar.gz ferdium-recipes-ef8e9edc0d843e5935d5e56998df002b13956f37.tar.zst ferdium-recipes-ef8e9edc0d843e5935d5e56998df002b13956f37.zip |
Add Confluence recipe (#758)
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/confluence/icon.svg | 16 | ||||
-rw-r--r-- | recipes/confluence/index.js | 1 | ||||
-rw-r--r-- | recipes/confluence/package.json | 9 | ||||
-rw-r--r-- | recipes/confluence/webview.js | 8 |
4 files changed, 34 insertions, 0 deletions
diff --git a/recipes/confluence/icon.svg b/recipes/confluence/icon.svg new file mode 100644 index 0000000..fc6f5bd --- /dev/null +++ b/recipes/confluence/icon.svg | |||
@@ -0,0 +1,16 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||
3 | <svg width="100%" height="100%" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> | ||
4 | <g> | ||
5 | <g transform="matrix(15.3216,0,0,15.3216,31.6609,-3.58388)"> | ||
6 | <path d="M2.23,49.53C1.58,50.59 0.85,51.82 0.23,52.8C-0.321,53.732 -0.021,54.951 0.9,55.52L13.9,63.52C14.216,63.715 14.58,63.818 14.951,63.818C15.655,63.818 16.31,63.446 16.67,62.84C17.19,61.97 17.86,60.84 18.59,59.63C23.74,51.13 28.92,52.17 38.26,56.63L51.15,62.76C51.419,62.888 51.712,62.954 52.01,62.954C52.801,62.954 53.521,62.484 53.84,61.76L60.03,47.76C60.465,46.767 60.016,45.591 59.03,45.14C56.31,43.86 50.9,41.31 46.03,38.96C28.51,30.45 13.62,31 2.23,49.53Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/> | ||
7 | </g> | ||
8 | <g transform="matrix(15.3216,0,0,15.3216,31.6609,-3.58388)"> | ||
9 | <path d="M60.52,17.76C61.17,16.7 61.9,15.47 62.52,14.49C63.071,13.558 62.771,12.339 61.85,11.77L48.85,3.77C48.52,3.548 48.131,3.429 47.733,3.429C47.019,3.429 46.357,3.811 46,4.43C45.48,5.3 44.81,6.43 44.08,7.64C38.93,16.14 33.75,15.1 24.41,10.64L11.56,4.54C11.291,4.412 10.998,4.346 10.7,4.346C9.909,4.346 9.189,4.816 8.87,5.54L2.68,19.54C2.245,20.533 2.694,21.709 3.68,22.16C6.4,23.44 11.81,25.99 16.68,28.34C34.24,36.84 49.13,36.27 60.52,17.76Z" style="fill:url(#_Linear2);fill-rule:nonzero;"/> | ||
10 | </g> | ||
11 | </g> | ||
12 | <defs> | ||
13 | <linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-39.33,-22.6,22.6,-39.33,59.68,67.65)"><stop offset="0" style="stop-color:rgb(0,82,204);stop-opacity:1"/><stop offset="0.18" style="stop-color:rgb(0,82,204);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(38,132,255);stop-opacity:1"/></linearGradient> | ||
14 | <linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(39.34,22.61,-22.61,39.34,3.07,-0.37)"><stop offset="0" style="stop-color:rgb(0,82,204);stop-opacity:1"/><stop offset="0.18" style="stop-color:rgb(0,82,204);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(38,132,255);stop-opacity:1"/></linearGradient> | ||
15 | </defs> | ||
16 | </svg> | ||
diff --git a/recipes/confluence/index.js b/recipes/confluence/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/confluence/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdi => Ferdi; | |||
diff --git a/recipes/confluence/package.json b/recipes/confluence/package.json new file mode 100644 index 0000000..42873ee --- /dev/null +++ b/recipes/confluence/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "confluence", | ||
3 | "name": "Confluence", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "hasCustomUrl": true | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/confluence/webview.js b/recipes/confluence/webview.js new file mode 100644 index 0000000..25126e7 --- /dev/null +++ b/recipes/confluence/webview.js | |||
@@ -0,0 +1,8 @@ | |||
1 | module.exports = Ferdi => { | ||
2 | const getMessages = () => { | ||
3 | const unreadMessageCountElement = document.querySelector('#notifications-anchor .badge'); | ||
4 | const unreadMessagesCount = Ferdi.safeParseInt(unreadMessageCountElement.textContent); | ||
5 | Ferdi.setBadge(unreadMessagesCount, 0); | ||
6 | }; | ||
7 | Ferdi.loop(getMessages); | ||
8 | }; | ||