diff options
Diffstat (limited to 'recipes/nextcloud-news')
-rw-r--r-- | recipes/nextcloud-news/README.md | 10 | ||||
-rw-r--r-- | recipes/nextcloud-news/index.js | 2 | ||||
-rw-r--r-- | recipes/nextcloud-news/package.json | 2 | ||||
-rw-r--r-- | recipes/nextcloud-news/webview.js | 10 |
4 files changed, 12 insertions, 12 deletions
diff --git a/recipes/nextcloud-news/README.md b/recipes/nextcloud-news/README.md index 417ceb9..d8c9792 100644 --- a/recipes/nextcloud-news/README.md +++ b/recipes/nextcloud-news/README.md | |||
@@ -1,8 +1,8 @@ | |||
1 | # Ferdi recipe for Nextcloud News | 1 | # Ferdium recipe for Nextcloud News |
2 | 2 | ||
3 | Nextcloud News is a RSS news reading app for Nextcloud. | 3 | Nextcloud News is a RSS news reading app for Nextcloud. |
4 | 4 | ||
5 | To add Nextcloud News service to Ferdi, Nextcloud server address should be provided in the field "Custom server". | 5 | To add Nextcloud News service to Ferdium, Nextcloud server address should be provided in the field "Custom server". |
6 | 6 | ||
7 | ## Credits | 7 | ## Credits |
8 | 8 | ||
@@ -12,10 +12,10 @@ Icons were sourced from <https://github.com/nextcloud/tasks/news/master/img> (`f | |||
12 | 12 | ||
13 | ## Links | 13 | ## Links |
14 | 14 | ||
15 | Ferdi: | 15 | Ferdium: |
16 | 16 | ||
17 | - [Ferdi](https://ferdium.org/) | 17 | - [Ferdium](https://ferdium.org/) |
18 | - [Ferdi recipes](https://github.com/ferdium/ferdium-recipes) | 18 | - [Ferdium recipes](https://github.com/ferdium/ferdium-recipes) |
19 | 19 | ||
20 | Nextcloud: | 20 | Nextcloud: |
21 | 21 | ||
diff --git a/recipes/nextcloud-news/index.js b/recipes/nextcloud-news/index.js index abe7b52..dd41f72 100644 --- a/recipes/nextcloud-news/index.js +++ b/recipes/nextcloud-news/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => class NextcloudNews extends Ferdi {}; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/nextcloud-news/package.json b/recipes/nextcloud-news/package.json index f145a86..8ea85de 100644 --- a/recipes/nextcloud-news/package.json +++ b/recipes/nextcloud-news/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "nextcloud-news", | 2 | "id": "nextcloud-news", |
3 | "name": "Nextcloud News", | 3 | "name": "Nextcloud News", |
4 | "version": "1.1.0", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/csolisr/recipes/tree/master/recipes/nextcloud-news/", | 6 | "repository": "https://github.com/csolisr/recipes/tree/master/recipes/nextcloud-news/", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/nextcloud-news/webview.js b/recipes/nextcloud-news/webview.js index 7c1c65c..c5e295e 100644 --- a/recipes/nextcloud-news/webview.js +++ b/recipes/nextcloud-news/webview.js | |||
@@ -4,17 +4,17 @@ function _interopRequireDefault(obj) { | |||
4 | return obj && obj.__esModule ? obj : { default: obj }; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 5 | } |
6 | 6 | ||
7 | module.exports = Ferdi => { | 7 | module.exports = Ferdium => { |
8 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | const selector = document.querySelector( | 9 | const selector = document.querySelector( |
10 | '.subscriptions-feed .app-navigation-entry-utils-counter', | 10 | '.subscriptions-feed .app-navigation-entry-utils-counter', |
11 | ); | 11 | ); |
12 | const direct = selector ? Ferdi.safeParseInt(selector.textContent) : 0; | 12 | const direct = selector ? Ferdium.safeParseInt(selector.textContent) : 0; |
13 | 13 | ||
14 | Ferdi.setBadge(direct); | 14 | Ferdium.setBadge(direct); |
15 | }; | 15 | }; |
16 | 16 | ||
17 | Ferdi.loop(getMessages); | 17 | Ferdium.loop(getMessages); |
18 | 18 | ||
19 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 19 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
20 | }; | 20 | }; |