Permalink
Browse files

Add Feedbin ingegration

  • Loading branch information...
1 parent 57eaac1 commit ecbd8290fed56bc2173ab659503a7bb6fc32bc6d @kan kan committed Sep 6, 2016
Showing with 34 additions and 0 deletions.
  1. BIN feedbin/icon.png
  2. +1 −0 feedbin/icon.svg
  3. +1 −0 feedbin/index.js
  4. +23 −0 feedbin/package.json
  5. +9 −0 feedbin/webview.js
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 13.1"><path d="M1 5.9C1 2.9 4-.5 7.7 0s7 2.7 7 5.7L1 5.9zM16 9.9H0v-3c2.1-.3 8.6.4 8.6.4s2.2 2.2 2.8 2.2c.6 0 2.2-2.2 2.2-2.2s2.2-.7 2.5-.4v3zM14.5 12.8c-2.6.3-10.9.4-13.5.1-.6-.1 0-2 0-2h14s.2 1.8-.5 1.9z"/></svg>
View
@@ -0,0 +1 @@
+module.exports = Franz => Franz;
View
@@ -0,0 +1,23 @@
+{
+ "name": "feedbin",
+ "version": "1.0.0",
+ "description": "feedbin",
+ "main": "index.js",
+ "author": "Kan Fushihara <kan.fushihara@gmail.com>",
+ "license": "MIT",
+ "config": {
+ "serviceURL": "https://feedbin.com/",
+ "serviceName": "Feedbin",
+ "message": "",
+ "popup": [],
+ "hasNotificationSound": true,
+ "hasIndirectMessages": false,
+ "hasTeamID": false,
+ "customURL": false,
+ "hostedOnly": false,
+ "webviewOptions": {
+ "disablewebsecurity": ""
+ },
+ "openDevTools": false
+ }
+}
View
@@ -0,0 +1,9 @@
+module.exports = (Franz, options) => {
+ function getMessages() {
+ const count = feedbin.count_data.unread_entries.length || 0;
+
+ Franz.setBadge(count);
+ }
+
+ Franz.loop(getMessages);
+}

0 comments on commit ecbd829

Please sign in to comment.