aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-12-03 13:16:42 +0100
committerLibravatar GitHub <noreply@github.com>2021-12-03 17:46:42 +0530
commit2efcbcac8d055cbf4630813761ee0cdde84645ea (patch)
tree8cee4844a21433d367fbc1286b0640d1b3c628ed /recipes
parentAdd recipe for Nextcloud News (#780) (diff)
downloadferdium-recipes-2efcbcac8d055cbf4630813761ee0cdde84645ea.tar.gz
ferdium-recipes-2efcbcac8d055cbf4630813761ee0cdde84645ea.tar.zst
ferdium-recipes-2efcbcac8d055cbf4630813761ee0cdde84645ea.zip
chore: upgrade dependencies to latest (#782)
* chore: upgrade dependencies to latest - upgrade all dependencies to latest - add --report-unused-disable-directives flag to lint script - remove unused files reported by unicorn/no-empty-file - minor cleanup of circuit recipe - remove webview.js check in package.js
Diffstat (limited to 'recipes')
-rw-r--r--recipes/airtable/webview.js0
-rw-r--r--recipes/bigbluebutton/webview.js0
-rw-r--r--recipes/circuit/index.js1
-rw-r--r--recipes/circuit/webview.js15
-rw-r--r--recipes/clockwise/webview.js0
-rw-r--r--recipes/google-contacts/webview.js0
-rw-r--r--recipes/google-news/webview.js0
-rw-r--r--recipes/googlekeep/webview.js0
-rw-r--r--recipes/googlepodcasts/webview.js0
-rw-r--r--recipes/harvest/webview.js0
-rw-r--r--recipes/nextcloud-news/service.css16
-rw-r--r--recipes/nextcloud-news/webview.js6
-rwxr-xr-xrecipes/noisli/webview.js0
-rw-r--r--recipes/pocket/webview.js0
-rw-r--r--recipes/pushbullet/webview.js0
-rwxr-xr-xrecipes/standardnotes/webview.js0
-rw-r--r--recipes/tixio/webview.js0
-rw-r--r--recipes/youtubemusic/webview.js0
-rw-r--r--recipes/zenhub/webview.js0
19 files changed, 26 insertions, 12 deletions
diff --git a/recipes/airtable/webview.js b/recipes/airtable/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/airtable/webview.js
+++ /dev/null
diff --git a/recipes/bigbluebutton/webview.js b/recipes/bigbluebutton/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/bigbluebutton/webview.js
+++ /dev/null
diff --git a/recipes/circuit/index.js b/recipes/circuit/index.js
index fbbcd9a..23607bd 100644
--- a/recipes/circuit/index.js
+++ b/recipes/circuit/index.js
@@ -1,2 +1 @@
1// just pass through Ferdi
2module.exports = Ferdi => Ferdi; module.exports = Ferdi => Ferdi;
diff --git a/recipes/circuit/webview.js b/recipes/circuit/webview.js
index 8cd2e2f..c04022d 100644
--- a/recipes/circuit/webview.js
+++ b/recipes/circuit/webview.js
@@ -1,11 +1,16 @@
1module.exports = Ferdi => { 1module.exports = Ferdi => {
2 const getMessages = function getMessages() { 2 const getMessages = () => {
3 // Get value of <title> tag where in case of new messages the number of messages appear 3 // Get value of <title> tag where in case of new messages the number of messages appear
4 const titleValue = document.querySelector('title').text; 4 const title = document.querySelector('title');
5 const match = titleValue.match(/\d+/); 5 if (title) {
6 const unread = match != null && match.length > 0 ? match[0] : 0; 6 const titleValue = title.text;
7 // Extract the number from the tag
8 const match = titleValue.match(/\d+/);
9 const unread = match != null && match.length > 0 ? match[0] : 0;
7 10
8 Ferdi.setBadge(Ferdi.safeParseInt(unread)); 11 // Set unread msgs badge
12 Ferdi.setBadge(Ferdi.safeParseInt(unread));
13 }
9 }; 14 };
10 15
11 Ferdi.loop(getMessages); 16 Ferdi.loop(getMessages);
diff --git a/recipes/clockwise/webview.js b/recipes/clockwise/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/clockwise/webview.js
+++ /dev/null
diff --git a/recipes/google-contacts/webview.js b/recipes/google-contacts/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/google-contacts/webview.js
+++ /dev/null
diff --git a/recipes/google-news/webview.js b/recipes/google-news/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/google-news/webview.js
+++ /dev/null
diff --git a/recipes/googlekeep/webview.js b/recipes/googlekeep/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/googlekeep/webview.js
+++ /dev/null
diff --git a/recipes/googlepodcasts/webview.js b/recipes/googlepodcasts/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/googlepodcasts/webview.js
+++ /dev/null
diff --git a/recipes/harvest/webview.js b/recipes/harvest/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/harvest/webview.js
+++ /dev/null
diff --git a/recipes/nextcloud-news/service.css b/recipes/nextcloud-news/service.css
index 4974300..ea90cc9 100644
--- a/recipes/nextcloud-news/service.css
+++ b/recipes/nextcloud-news/service.css
@@ -1,12 +1,20 @@
1/* Hide all app links and contacts menu link in the top menu except for 1/* Hide all app links and contacts menu link in the top menu except for
2News */ 2News */
3#appmenu li:not([data-id="news"]), #contactsmenu {display: none;} 3#appmenu li:not([data-id='news']),
4#contactsmenu {
5 display: none;
6}
4 7
5/* Change the cursor to the default for Nextcloud home, News and settings 8/* Change the cursor to the default for Nextcloud home, News and settings
6links in the top menu and disable them */ 9links in the top menu and disable them */
7#nextcloud, #appmenu li[data-id="news"] a, #settings { 10#nextcloud,
8 cursor: default; pointer-events: none; 11#appmenu li[data-id='news'] a,
12#settings {
13 cursor: default;
14 pointer-events: none;
9} 15}
10 16
11/* Hide "More" link in the top menu */ 17/* Hide "More" link in the top menu */
12#more-apps {display: none !important;} 18#more-apps {
19 display: none !important;
20}
diff --git a/recipes/nextcloud-news/webview.js b/recipes/nextcloud-news/webview.js
index 048ac7d..7c1c65c 100644
--- a/recipes/nextcloud-news/webview.js
+++ b/recipes/nextcloud-news/webview.js
@@ -1,13 +1,15 @@
1const _path = _interopRequireDefault(require('path')); 1const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
4 6
5module.exports = Ferdi => { 7module.exports = Ferdi => {
6 const getMessages = () => { 8 const getMessages = () => {
7 const selector = document.querySelector( 9 const selector = document.querySelector(
8 '.subscriptions-feed .app-navigation-entry-utils-counter', 10 '.subscriptions-feed .app-navigation-entry-utils-counter',
9 ); 11 );
10 const direct = selector ? Ferdi.safeParseInt(selector.innerText) : 0; 12 const direct = selector ? Ferdi.safeParseInt(selector.textContent) : 0;
11 13
12 Ferdi.setBadge(direct); 14 Ferdi.setBadge(direct);
13 }; 15 };
diff --git a/recipes/noisli/webview.js b/recipes/noisli/webview.js
deleted file mode 100755
index e69de29..0000000
--- a/recipes/noisli/webview.js
+++ /dev/null
diff --git a/recipes/pocket/webview.js b/recipes/pocket/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/pocket/webview.js
+++ /dev/null
diff --git a/recipes/pushbullet/webview.js b/recipes/pushbullet/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/pushbullet/webview.js
+++ /dev/null
diff --git a/recipes/standardnotes/webview.js b/recipes/standardnotes/webview.js
deleted file mode 100755
index e69de29..0000000
--- a/recipes/standardnotes/webview.js
+++ /dev/null
diff --git a/recipes/tixio/webview.js b/recipes/tixio/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/tixio/webview.js
+++ /dev/null
diff --git a/recipes/youtubemusic/webview.js b/recipes/youtubemusic/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/youtubemusic/webview.js
+++ /dev/null
diff --git a/recipes/zenhub/webview.js b/recipes/zenhub/webview.js
deleted file mode 100644
index e69de29..0000000
--- a/recipes/zenhub/webview.js
+++ /dev/null