aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Tania R. Zúñiga <25267490+TanZng@users.noreply.github.com>2021-10-13 18:39:13 -0500
committerLibravatar GitHub <noreply@github.com>2021-10-14 05:09:13 +0530
commitb5ee4c5549125c1fdc61ad3f0f19f759f6bb5647 (patch)
tree989751e86baa63803be18c4a574088fe4a150a30 /recipes
parentMerged 'drive' into 'googledrive' recipe. (fixes #2055) (diff)
downloadferdium-recipes-b5ee4c5549125c1fdc61ad3f0f19f759f6bb5647.tar.gz
ferdium-recipes-b5ee4c5549125c1fdc61ad3f0f19f759f6bb5647.tar.zst
ferdium-recipes-b5ee4c5549125c1fdc61ad3f0f19f759f6bb5647.zip
Add Dropbox recipe #369 (#739)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/dropbox/icon.svg8
-rw-r--r--recipes/dropbox/index.js1
-rw-r--r--recipes/dropbox/package.json10
-rw-r--r--recipes/dropbox/service.css1
-rw-r--r--recipes/dropbox/webview.js16
5 files changed, 36 insertions, 0 deletions
diff --git a/recipes/dropbox/icon.svg b/recipes/dropbox/icon.svg
new file mode 100644
index 0000000..1933e14
--- /dev/null
+++ b/recipes/dropbox/icon.svg
@@ -0,0 +1,8 @@
1<svg version="1.2" baseProfile="tiny-ps" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="1024" height="1024">
2 <title>Dropbox-svg</title>
3 <style>
4 tspan { white-space:pre }
5 .shp0 { fill: #0061ff }
6 </style>
7 <path id="Layer" class="shp0" d="M39.6 20L20.8 32L39.6 44L20.8 56L2 43.9L20.8 31.9L2 20L20.8 8L39.6 20ZM20.7 59.8L39.5 47.8L58.3 59.8L39.5 71.8L20.7 59.8ZM39.6 43.9L58.4 31.9L39.6 20L58.3 8L77.1 20L58.3 32L77.1 44L58.3 56L39.6 43.9Z" />
8</svg> \ No newline at end of file
diff --git a/recipes/dropbox/index.js b/recipes/dropbox/index.js
new file mode 100644
index 0000000..325d5ec
--- /dev/null
+++ b/recipes/dropbox/index.js
@@ -0,0 +1 @@
module.exports = (Ferdi) => class Dropbox extends Ferdi {};
diff --git a/recipes/dropbox/package.json b/recipes/dropbox/package.json
new file mode 100644
index 0000000..f8df28b
--- /dev/null
+++ b/recipes/dropbox/package.json
@@ -0,0 +1,10 @@
1{
2 "id": "dropbox",
3 "name": "Dropbox",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://www.dropbox.com/home",
8 "hasIndirectMessages": true
9 }
10}
diff --git a/recipes/dropbox/service.css b/recipes/dropbox/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/dropbox/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/dropbox/webview.js b/recipes/dropbox/webview.js
new file mode 100644
index 0000000..0cfbc7d
--- /dev/null
+++ b/recipes/dropbox/webview.js
@@ -0,0 +1,16 @@
1var _path = _interopRequireDefault(require("path"));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = (Ferdi) => {
8 const getMessages = () => {
9 const hasNotifications = document.querySelector(".dig-NotificationBadge");
10
11 Ferdi.setBadge(0, hasNotifications ? 1 : 0);
12 };
13 Ferdi.loop(getMessages);
14
15 Ferdi.injectCSS(_path.default.join(__dirname, "service.css"));
16};