Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Inoreader to Franz #303

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added inoreader/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions inoreader/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions inoreader/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Franz => Franz;
23 changes: 23 additions & 0 deletions inoreader/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "inoreader",
"version": "1.0.0",
"description": "The content reader for power users who want to save time.",
"main": "index.js",
"author": "Edvaldo da Rosa <[email protected]>",
"license": "MIT",
"config": {
"serviceURL": "https://www.inoreader.com/login",
"serviceName": "Inoreader",
"message": "",
"popup": [],
"hasNotificationSound": true,
"hasIndirectMessages": false,
"hasTeamID": false,
"customURL": false,
"hostedOnly": false,
"webviewOptions": {
"disablewebsecurity": ""
},
"openDevTools": false
}
}
9 changes: 9 additions & 0 deletions inoreader/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = (Franz, options) => {
function getMessages() {
const count = document.querySelector('#unread_cnt_all_items').innerText || 0;

Franz.setBadge(count);
}

Franz.loop(getMessages);
}