From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: chore: normalized all recipes to ensure compatibility with es6 (#639) - Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm. --- all.json | 347 +++++++++++++++--------------- recipes/NewsBlur/index.js | 3 +- recipes/NewsBlur/package.json | 2 +- recipes/NewsBlur/webview.js | 11 +- recipes/air-droid/index.js | 2 +- recipes/air-droid/package.json | 2 +- recipes/air-droid/webview.js | 14 +- recipes/airtable/index.js | 2 +- recipes/airtable/package.json | 2 +- recipes/android-messages/index.js | 2 +- recipes/android-messages/package.json | 2 +- recipes/android-messages/webview.js | 8 +- recipes/anonaddy/package.json | 2 +- recipes/anonaddy/webview.js | 6 - recipes/anydo/index.js | 3 +- recipes/anydo/package.json | 2 +- recipes/anydo/webview.js | 6 +- recipes/asana/index.js | 3 +- recipes/asana/package.json | 2 +- recipes/asana/webview.js | 21 +- recipes/aws-workmail/index.js | 2 +- recipes/aws-workmail/package.json | 2 +- recipes/aws-workmail/webview.js | 6 +- recipes/azure-devops/package.json | 5 +- recipes/basecamp/index.js | 3 +- recipes/basecamp/package.json | 2 +- recipes/basecamp/webview.js | 27 +-- recipes/bigbluebutton/index.js | 2 +- recipes/bigbluebutton/package.json | 2 +- recipes/bip/package.json | 2 +- recipes/bip/webview.js | 5 +- recipes/bitbucket/package.json | 2 +- recipes/bitbucket/webview.js | 6 - recipes/box/index.js | 2 +- recipes/box/package.json | 2 +- recipes/box/webview.js | 3 +- recipes/buffer/index.js | 3 +- recipes/buffer/package.json | 2 +- recipes/buffer/webview.js | 9 +- recipes/campuswire/index.js | 2 +- recipes/campuswire/package.json | 2 +- recipes/campuswire/webview.js | 11 +- recipes/chatra/index.js | 3 +- recipes/chatra/package.json | 2 +- recipes/chatra/webview.js | 11 +- recipes/chatwork/index.js | 2 +- recipes/chatwork/package.json | 2 +- recipes/chatwork/webview.js | 6 +- recipes/ciscospark/index.js | 3 +- recipes/ciscospark/package.json | 2 +- recipes/ciscospark/webview.js | 14 +- recipes/clickup/index.js | 2 +- recipes/clickup/package.json | 2 +- recipes/clickup/webview.js | 6 +- recipes/cliq/index.js | 2 +- recipes/cliq/package.json | 2 +- recipes/cliq/webview.js | 6 +- recipes/clockify/index.js | 2 +- recipes/clockify/package.json | 2 +- recipes/clockify/webview.js | 6 +- recipes/clubhouse/package.json | 2 +- recipes/clubhouse/webview.js | 4 +- recipes/discord/index.js | 4 +- recipes/discord/package.json | 2 +- recipes/discord/webview.js | 19 +- recipes/disqus/package.json | 2 +- recipes/disqus/webview.js | 4 - recipes/easy-redmine/index.js | 2 +- recipes/easy-redmine/package.json | 2 +- recipes/easy-redmine/webview.js | 3 +- recipes/element/index.js | 2 +- recipes/element/package.json | 2 +- recipes/element/webview.js | 9 +- recipes/enterprise-owa/index.js | 2 +- recipes/enterprise-owa/package.json | 2 +- recipes/enterprise-owa/webview.js | 7 +- recipes/epicgames/package.json | 2 +- recipes/epicgames/webview.js | 6 - recipes/erepublik/package.json | 2 +- recipes/erepublik/webview.js | 5 +- recipes/evernote/index.js | 3 +- recipes/evernote/package.json | 2 +- recipes/evernote/webview.js | 17 +- recipes/facebook/index.js | 3 +- recipes/facebook/package.json | 2 +- recipes/facebook/webview.js | 7 +- recipes/facebookpages/index.js | 2 +- recipes/facebookpages/package.json | 2 +- recipes/facebookpages/webview.js | 7 +- recipes/fastmail/index.js | 3 +- recipes/fastmail/package.json | 2 +- recipes/fastmail/webview.js | 13 +- recipes/feedbin/index.js | 2 +- recipes/feedbin/package.json | 2 +- recipes/feedbin/webview.js | 6 +- recipes/feedly/index.js | 2 +- recipes/feedly/package.json | 2 +- recipes/feedly/webview.js | 6 +- recipes/fleep/package.json | 2 +- recipes/fleep/webview.js | 1 + recipes/flowdock/index.js | 3 +- recipes/flowdock/package.json | 2 +- recipes/flowdock/webview.js | 9 +- recipes/franz-custom-website/index.js | 2 +- recipes/franz-custom-website/package.json | 2 +- recipes/franz-custom-website/webview.js | 8 +- recipes/gadugadu/index.js | 3 +- recipes/gadugadu/package.json | 2 +- recipes/gadugadu/webview.js | 14 +- recipes/github/index.js | 3 +- recipes/github/package.json | 2 +- recipes/github/webview.js | 7 +- recipes/github_entreprise/index.js | 2 +- recipes/github_entreprise/package.json | 2 +- recipes/gitlab/package.json | 2 +- recipes/gitlab/webview.js | 6 - recipes/gitter/index.js | 5 +- recipes/gitter/package.json | 2 +- recipes/gitter/webview.js | 21 +- recipes/glowing-bear/index.js | 3 +- recipes/glowing-bear/package.json | 2 +- recipes/glowing-bear/webview.js | 8 +- recipes/gmail/index.js | 4 +- recipes/gmail/package.json | 2 +- recipes/gmail/webview.js | 16 +- recipes/google-voice/index.js | 2 +- recipes/google-voice/package.json | 2 +- recipes/google-voice/webview.js | 6 +- recipes/googlecalendar/index.js | 2 +- recipes/googlecalendar/package.json | 2 +- recipes/googlecalendar/webview-unsafe.js | 14 +- recipes/googlecalendar/webview.js | 10 +- recipes/googleclassroom/index.js | 2 +- recipes/googleclassroom/package.json | 2 +- recipes/googleclassroom/webview.js | 6 +- recipes/googlecontacts/index.js | 2 +- recipes/googlecontacts/package.json | 2 +- recipes/googledrive/index.js | 4 +- recipes/googledrive/package.json | 2 +- recipes/googledrive/webview.js | 8 +- recipes/googlekeep/index.js | 2 +- recipes/googlekeep/package.json | 2 +- recipes/googlekeep/webview.js | 1 - recipes/googlemeet/index.js | 2 +- recipes/googlemeet/package.json | 2 +- recipes/googlemeet/webview.js | 21 +- recipes/googlenews/index.js | 2 +- recipes/googlenews/package.json | 2 +- recipes/googlepodcasts/index.js | 2 +- recipes/googlepodcasts/package.json | 2 +- recipes/gotomeeting/index.js | 4 +- recipes/gotomeeting/package.json | 2 +- recipes/gotomeeting/webview.js | 9 +- recipes/grape/index.js | 3 +- recipes/grape/package.json | 2 +- recipes/grape/webview.js | 7 +- recipes/groupme/index.js | 3 +- recipes/groupme/package.json | 2 +- recipes/groupme/webview.js | 9 +- recipes/guilded/index.js | 2 +- recipes/guilded/package.json | 2 +- recipes/guilded/webview.js | 6 +- recipes/habitica/index.js | 2 +- recipes/habitica/package.json | 2 +- recipes/habitica/webview.js | 6 +- recipes/hackmd/index.js | 3 +- recipes/hackmd/package.json | 2 +- recipes/hackmd/webview.js | 15 +- recipes/hangouts/index.js | 2 +- recipes/hangouts/package.json | 2 +- recipes/hangouts/webview.js | 10 +- recipes/hangoutschat/index.js | 5 +- recipes/hangoutschat/package.json | 2 +- recipes/hangoutschat/webview.js | 11 +- recipes/harvest/index.js | 2 +- recipes/harvest/package.json | 2 +- recipes/hipchat/index.js | 3 +- recipes/hipchat/package.json | 2 +- recipes/hipchat/webview.js | 10 +- recipes/iCloud/index.js | 2 +- recipes/iCloud/package.json | 2 +- recipes/iCloud/webview.js | 2 +- recipes/icq/index.js | 3 +- recipes/icq/package.json | 2 +- recipes/icq/webview.js | 7 +- recipes/idobata/index.js | 3 +- recipes/idobata/package.json | 2 +- recipes/idobata/webview.js | 7 +- recipes/infomaniak-mail/package.json | 2 +- recipes/infomaniak-mail/webview.js | 1 + recipes/inoreader/index.js | 2 +- recipes/inoreader/package.json | 2 +- recipes/inoreader/webview.js | 6 +- recipes/instagram/index.js | 7 +- recipes/instagram/package.json | 2 +- recipes/instagram/webview.js | 15 +- recipes/intercom/package.json | 2 +- recipes/intercom/webview.js | 6 +- recipes/irccloud/index.js | 3 +- recipes/irccloud/package.json | 2 +- recipes/irccloud/webview.js | 9 +- recipes/jira/index.js | 7 +- recipes/jira/package.json | 2 +- recipes/jira/webview.js | 8 +- recipes/jitsi/index.js | 2 +- recipes/jitsi/package.json | 2 +- recipes/jollor/index.js | 3 +- recipes/jollor/package.json | 2 +- recipes/jollor/webview.js | 14 +- recipes/kaizala/index.js | 7 +- recipes/kaizala/package.json | 2 +- recipes/kaizala/webview.js | 6 +- recipes/keybase.io/index.js | 2 +- recipes/keybase.io/package.json | 2 +- recipes/keybase.io/webview.js | 2 +- recipes/kimai-cloud/index.js | 3 +- recipes/kimai-cloud/package.json | 2 +- recipes/kimai-cloud/webview.js | 9 +- recipes/lark/index.js | 2 +- recipes/lark/package.json | 2 +- recipes/lark/webview.js | 15 +- recipes/lastpass/index.js | 4 +- recipes/lastpass/package.json | 2 +- recipes/lastpass/webview.js | 23 +- recipes/line.me/index.js | 2 +- recipes/line.me/package.json | 2 +- recipes/line.me/webview.js | 2 +- recipes/linkedin/index.js | 3 +- recipes/linkedin/package.json | 2 +- recipes/linkedin/webview.js | 9 +- recipes/mailbox.org/index.js | 3 +- recipes/mailbox.org/package.json | 2 +- recipes/mailbox.org/webview.js | 7 +- recipes/mastodon/index.js | 4 +- recipes/mastodon/package.json | 2 +- recipes/mastodon/webview.js | 6 +- recipes/mattermost/index.js | 2 +- recipes/mattermost/package.json | 2 +- recipes/mattermost/webview.js | 6 +- recipes/messenger/index.js | 7 +- recipes/messenger/package.json | 2 +- recipes/messenger/webview.js | 11 +- recipes/monday/index.js | 2 +- recipes/monday/package.json | 2 +- recipes/monday/webview.js | 9 +- recipes/monicahq/index.js | 3 +- recipes/monicahq/package.json | 2 +- recipes/msteams/index.js | 4 +- recipes/msteams/package.json | 2 +- recipes/msteams/webview.js | 15 +- recipes/mstodo/package.json | 2 +- recipes/mstodo/webview.js | 1 + recipes/mysms/index.js | 3 +- recipes/mysms/package.json | 2 +- recipes/mysms/webview.js | 7 +- recipes/netatmo-energy/index.js | 5 +- recipes/netatmo-energy/package.json | 2 +- recipes/netatmo-energy/webview.js | 3 +- recipes/nextcloud-calendar/index.js | 2 +- recipes/nextcloud-calendar/package.json | 2 +- recipes/nextcloud-calendar/webview.js | 5 +- recipes/nextcloud-carnet/index.js | 2 +- recipes/nextcloud-carnet/package.json | 2 +- recipes/nextcloud-carnet/webview.js | 13 +- recipes/nextcloud-cospend/index.js | 2 +- recipes/nextcloud-cospend/package.json | 2 +- recipes/nextcloud-cospend/webview.js | 13 +- recipes/nextcloud-talk/index.js | 2 +- recipes/nextcloud-talk/package.json | 2 +- recipes/nextcloud-talk/webview.js | 5 +- recipes/nextcloud-tasks/index.js | 2 +- recipes/nextcloud-tasks/package.json | 2 +- recipes/nextcloud-tasks/webview.js | 13 +- recipes/nextcloud/index.js | 2 +- recipes/nextcloud/package.json | 2 +- recipes/nextcloud/webview.js | 12 +- recipes/nextdoor/index.js | 2 +- recipes/nextdoor/package.json | 2 +- recipes/nextdoor/webview.js | 6 +- recipes/nomadlist/index.js | 3 +- recipes/nomadlist/package.json | 2 +- recipes/nomadlist/webview.js | 20 +- recipes/notion/index.js | 2 +- recipes/notion/package.json | 2 +- recipes/notion/webview.js | 6 +- recipes/office365-owa/index.js | 2 - recipes/office365-owa/package.json | 2 +- recipes/office365-owa/webview.js | 1 + recipes/onenote/package.json | 2 +- recipes/onenote/webview.js | 6 - recipes/outlook/index.js | 2 - recipes/outlook/package.json | 2 +- recipes/outlook/webview.js | 1 + recipes/paymoapp/index.js | 2 +- recipes/paymoapp/package.json | 2 +- recipes/paymoapp/webview.js | 3 +- recipes/pivotal-tracker/index.js | 2 +- recipes/pivotal-tracker/package.json | 2 +- recipes/pivotal-tracker/webview.js | 8 +- recipes/plan/index.js | 3 +- recipes/plan/package.json | 2 +- recipes/plan/webview.js | 3 +- recipes/plurk/index.js | 3 +- recipes/plurk/package.json | 2 +- recipes/plurk/webview.js | 7 +- recipes/pocket/index.js | 3 +- recipes/pocket/package.json | 2 +- recipes/pocket/webview.js | 1 - recipes/podio/index.js | 3 +- recipes/podio/package.json | 2 +- recipes/podio/webview.js | 22 +- recipes/pomodoro-tracker/package.json | 2 +- recipes/pomodoro-tracker/webview.js | 5 - recipes/proton-mail/index.js | 2 +- recipes/proton-mail/package.json | 2 +- recipes/proton-mail/webview.js | 6 +- recipes/protoncalendar/package.json | 2 +- recipes/protoncalendar/webview.js | 10 +- recipes/protonet/index.js | 2 +- recipes/protonet/package.json | 2 +- recipes/protonet/webview.js | 6 +- recipes/pulsesms/index.js | 2 +- recipes/pulsesms/package.json | 2 +- recipes/pulsesms/webview.js | 7 +- recipes/pushbullet/index.js | 3 +- recipes/pushbullet/package.json | 2 +- recipes/pushbullet/webview.js | 1 - recipes/rainloop/index.js | 3 +- recipes/rainloop/package.json | 2 +- recipes/rainloop/webview.js | 8 +- recipes/reddit/index.js | 2 +- recipes/reddit/package.json | 2 +- recipes/reddit/webview.js | 10 +- recipes/redditchat/index.js | 3 +- recipes/redditchat/package.json | 2 +- recipes/redditchat/webview.js | 6 +- recipes/riseup/package.json | 2 +- recipes/riseup/webview.js | 4 - recipes/rocketchat/index.js | 2 +- recipes/rocketchat/package.json | 2 +- recipes/roundcube/index.js | 3 +- recipes/roundcube/package.json | 2 +- recipes/roundcube/webview.js | 8 +- recipes/sendtask/index.js | 4 +- recipes/sendtask/package.json | 2 +- recipes/sendtask/webview.js | 18 +- recipes/simplenote/package.json | 2 +- recipes/simplenote/webview.js | 4 - recipes/skype/index.js | 7 +- recipes/skype/package.json | 2 +- recipes/skype/webview.js | 17 +- recipes/slack/index.js | 2 +- recipes/slack/package.json | 2 +- recipes/slack/webview.js | 10 +- recipes/snapdrop/index.js | 3 +- recipes/snapdrop/package.json | 2 +- recipes/snapdrop/webview.js | 2 +- recipes/stackexchange/package.json | 2 +- recipes/stackexchange/webview.js | 6 - recipes/standardnotes/index.js | 3 +- recipes/standardnotes/package.json | 2 +- recipes/standardnotes/webview.js | 1 - recipes/steamchat/index.js | 8 +- recipes/steamchat/package.json | 2 +- recipes/steamchat/webview.js | 7 +- recipes/stride/index.js | 3 +- recipes/stride/package.json | 2 +- recipes/stride/webview.js | 18 +- recipes/superhuman-email/index.js | 17 +- recipes/superhuman-email/package.json | 2 +- recipes/superhuman-email/webview.js | 11 +- recipes/sync/package.json | 2 +- recipes/sync/webview.js | 6 - recipes/tawk/index.js | 5 +- recipes/tawk/package.json | 2 +- recipes/tawk/webview.js | 4 +- recipes/teamleader/index.js | 2 +- recipes/teamleader/package.json | 2 +- recipes/teamleader/webview.js | 13 +- recipes/teamwork-projects/index.js | 3 +- recipes/teamwork-projects/package.json | 2 +- recipes/teamwork-projects/webview.js | 8 +- recipes/telegram-react/index.js | 3 +- recipes/telegram-react/package.json | 2 +- recipes/telegram-react/webview.js | 7 +- recipes/telegram/index.js | 3 +- recipes/telegram/package.json | 2 +- recipes/telegram/webview.js | 13 +- recipes/thelounge/index.js | 3 +- recipes/thelounge/package.json | 2 +- recipes/thelounge/webview.js | 8 +- recipes/threema/index.js | 3 +- recipes/threema/package.json | 2 +- recipes/threema/webview.js | 17 +- recipes/ticktick/index.js | 2 +- recipes/ticktick/package.json | 2 +- recipes/ticktick/webview.js | 7 +- recipes/todoist/index.js | 2 +- recipes/todoist/package.json | 2 +- recipes/todoist/webview.js | 6 +- recipes/toggl/index.js | 3 +- recipes/toggl/package.json | 2 +- recipes/toggl/webview.js | 4 +- recipes/trello/index.js | 3 +- recipes/trello/package.json | 2 +- recipes/trello/webview.js | 8 +- recipes/tutanota/package.json | 2 +- recipes/tutanota/webview.js | 6 - recipes/tweetdeck/index.js | 3 +- recipes/tweetdeck/package.json | 2 +- recipes/tweetdeck/webview.js | 8 +- recipes/twist/index.js | 2 +- recipes/twist/package.json | 2 +- recipes/twist/webview.js | 6 +- recipes/twitch/index.js | 4 +- recipes/twitch/package.json | 2 +- recipes/twitch/webview.js | 11 +- recipes/twitter-dm/index.js | 3 +- recipes/twitter-dm/package.json | 2 +- recipes/twitter-dm/webview.js | 7 +- recipes/twitter/index.js | 2 +- recipes/twitter/package.json | 2 +- recipes/twitter/webview.js | 6 +- recipes/unraid/index.js | 5 +- recipes/unraid/package.json | 2 +- recipes/unraid/webview.js | 6 +- recipes/vk/index.js | 3 +- recipes/vk/package.json | 2 +- recipes/vk/webview.js | 7 +- recipes/voxer/index.js | 3 +- recipes/voxer/package.json | 2 +- recipes/voxer/webview.js | 17 +- recipes/webex-teams/package.json | 2 +- recipes/webex-teams/webview.js | 7 +- recipes/wechat/index.js | 5 +- recipes/wechat/package.json | 2 +- recipes/wechat/webview.js | 13 +- recipes/whatsapp/index.js | 6 +- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 22 +- recipes/withspectrum/index.js | 3 +- recipes/withspectrum/package.json | 2 +- recipes/withspectrum/webview.js | 7 +- recipes/workplace/index.js | 2 +- recipes/workplace/package.json | 2 +- recipes/workplace/webview.js | 18 +- recipes/wrike/index.js | 3 +- recipes/wrike/package.json | 2 +- recipes/wrike/webview.js | 6 +- recipes/xing/index.js | 3 +- recipes/xing/package.json | 2 +- recipes/xing/webview.js | 7 +- recipes/yahoo-mail/index.js | 3 +- recipes/yahoo-mail/package.json | 2 +- recipes/yahoo-mail/webview.js | 7 +- recipes/yammer/index.js | 2 +- recipes/yammer/package.json | 2 +- recipes/yammer/webview.js | 6 +- recipes/youtrack/package.json | 2 +- recipes/youtrack/webview.js | 4 - recipes/youtubemusic/index.js | 2 +- recipes/youtubemusic/package.json | 2 +- recipes/zalo/index.js | 2 +- recipes/zalo/package.json | 2 +- recipes/zalo/webview.js | 6 +- recipes/zendesk/index.js | 2 +- recipes/zendesk/package.json | 2 +- recipes/zendesk/webview.js | 9 +- recipes/zenhub/index.js | 2 +- recipes/zenhub/package.json | 2 +- recipes/zeplin/index.js | 2 +- recipes/zeplin/package.json | 2 +- recipes/zeplin/webview.js | 12 +- recipes/zimbra/index.js | 2 +- recipes/zimbra/package.json | 2 +- recipes/zimbra/webview.js | 13 +- recipes/zoho/index.js | 3 +- recipes/zoho/package.json | 2 +- recipes/zoho/webview.js | 8 +- recipes/zulip/index.js | 2 +- recipes/zulip/package.json | 2 +- recipes/zulip/webview.js | 7 +- 482 files changed, 1117 insertions(+), 1393 deletions(-) diff --git a/all.json b/all.json index d0d56c8..4e17af5 100644 --- a/all.json +++ b/all.json @@ -3,7 +3,7 @@ "featured": false, "id": "air-droid", "name": "air-droid", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/air-droid/icon.svg" } @@ -12,7 +12,7 @@ "featured": false, "id": "airtable", "name": "Airtable", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/airtable/icon.svg" } @@ -21,7 +21,7 @@ "featured": false, "id": "amazon-work-mail", "name": "Amazon WorkMail", - "version": "1.0.5", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/amazon-work-mail/icon.svg" } @@ -30,7 +30,7 @@ "featured": false, "id": "android-messages", "name": "Android Messages", - "version": "2.0.3", + "version": "2.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/android-messages/icon.svg" } @@ -39,7 +39,7 @@ "featured": false, "id": "anonaddy", "name": "AnonAddy", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/anonaddy/icon.svg" } @@ -48,7 +48,7 @@ "featured": false, "id": "anydo", "name": "Any.do", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/anydo/icon.svg" } @@ -57,7 +57,7 @@ "featured": false, "id": "asana", "name": "Asana", - "version": "1.0.1", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/asana/icon.svg" } @@ -66,7 +66,10 @@ "featured": false, "id": "azure-devops", "name": "Azure DevOps", - "version": "1.0.2", + "version": "1.1.0", + "aliases": [ + "azdo" + ], "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/azure-devops/icon.svg" } @@ -75,7 +78,7 @@ "featured": false, "id": "basecamp", "name": "basecamp", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/basecamp/icon.svg" } @@ -84,7 +87,7 @@ "featured": false, "id": "bigbluebutton", "name": "BigBlueButton", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/bigbluebutton/icon.svg" } @@ -93,7 +96,7 @@ "featured": false, "id": "bip", "name": "BiP", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/bip/icon.svg" } @@ -102,7 +105,7 @@ "featured": false, "id": "bitbucket", "name": "BitBucket", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/bitbucket/icon.svg" } @@ -111,7 +114,7 @@ "featured": false, "id": "box", "name": "box", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/box/icon.svg" } @@ -120,7 +123,7 @@ "featured": false, "id": "buffer", "name": "buffer", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/buffer/icon.svg" } @@ -129,7 +132,7 @@ "featured": false, "id": "campuswire", "name": "Campuswire", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/campuswire/icon.svg" } @@ -147,7 +150,7 @@ "featured": false, "id": "chatra", "name": "chatra", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/chatra/icon.svg" } @@ -156,7 +159,7 @@ "featured": false, "id": "chatwork", "name": "ChatWork", - "version": "1.0.5", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/chatwork/icon.svg" } @@ -165,7 +168,7 @@ "featured": false, "id": "ciscospark", "name": "Cisco Spark", - "version": "1.0.1", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/ciscospark/icon.svg" } @@ -174,7 +177,7 @@ "featured": false, "id": "clickup", "name": "ClickUp", - "version": "2.1.2", + "version": "2.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/clickup/icon.svg" } @@ -183,7 +186,7 @@ "featured": false, "id": "cliq", "name": "Cliq", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/cliq/icon.svg" } @@ -192,7 +195,7 @@ "featured": false, "id": "clockify", "name": "Clockify", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/clockify/icon.svg" } @@ -201,7 +204,7 @@ "featured": false, "id": "clubhouse", "name": "Clubhouse", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/clubhouse/icon.svg" } @@ -219,7 +222,7 @@ "featured": true, "id": "discord", "name": "Discord", - "version": "1.2.0", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/discord/icon.svg" } @@ -228,7 +231,7 @@ "featured": false, "id": "disqus", "name": "Disqus", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/disqus/icon.svg" } @@ -237,7 +240,7 @@ "featured": false, "id": "easy-redmine", "name": "easy-redmine", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/easy-redmine/icon.svg" } @@ -246,7 +249,7 @@ "featured": false, "id": "element", "name": "Element", - "version": "1.0.6", + "version": "1.1.0", "aliases": [ "Riot.im", "Matrix" @@ -259,7 +262,7 @@ "featured": false, "id": "enterprise-owa", "name": "Enterprise Outlook Web App", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/enterprise-owa/icon.svg" } @@ -268,7 +271,7 @@ "featured": false, "id": "epicgames", "name": "Epic Games Store", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/epicgames/icon.svg" } @@ -277,7 +280,7 @@ "featured": false, "id": "erepublik", "name": "eRepublik", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/erepublik/icon.svg" } @@ -286,7 +289,7 @@ "featured": false, "id": "evernote", "name": "Evernote", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/evernote/icon.svg" } @@ -295,7 +298,7 @@ "featured": false, "id": "facebook", "name": "Facebook", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/facebook/icon.svg" } @@ -304,7 +307,7 @@ "featured": false, "id": "facebookpages", "name": "Facebook Pages", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/facebookpages/icon.svg" } @@ -313,7 +316,7 @@ "featured": false, "id": "fastmail", "name": "FastMail", - "version": "2.0.2", + "version": "2.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/fastmail/icon.svg" } @@ -322,7 +325,7 @@ "featured": false, "id": "feedbin", "name": "feedbin", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/feedbin/icon.svg" } @@ -331,7 +334,7 @@ "featured": false, "id": "feedly", "name": "Feedly", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/feedly/icon.svg" } @@ -349,7 +352,7 @@ "featured": false, "id": "fleep", "name": "Fleep", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/fleep/icon.svg" } @@ -358,7 +361,7 @@ "featured": false, "id": "flowdock", "name": "Flowdock", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/flowdock/icon.svg" } @@ -367,7 +370,7 @@ "featured": false, "id": "franz-custom-website", "name": "Custom Website", - "version": "1.0.5", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/franz-custom-website/icon.svg" } @@ -376,7 +379,7 @@ "featured": false, "id": "gadugadu", "name": "Gadu-Gadu", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/gadugadu/icon.svg" } @@ -385,7 +388,7 @@ "featured": false, "id": "github", "name": "GitHub", - "version": "2.0.2", + "version": "2.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/github/icon.svg" } @@ -394,7 +397,7 @@ "featured": false, "id": "github_entreprise", "name": "GitHub Enterprise", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/github_entreprise/icon.svg" } @@ -403,7 +406,7 @@ "featured": false, "id": "gitlab", "name": "GitLab", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/gitlab/icon.svg" } @@ -412,7 +415,7 @@ "featured": true, "id": "gitter", "name": "Gitter", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/gitter/icon.svg" } @@ -421,7 +424,7 @@ "featured": false, "id": "glowing-bear", "name": "glowing-bear", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/glowing-bear/icon.svg" } @@ -430,7 +433,7 @@ "featured": true, "id": "gmail", "name": "Gmail", - "version": "1.3.11", + "version": "1.4.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/gmail/icon.svg" } @@ -439,7 +442,7 @@ "featured": false, "id": "google-contacts", "name": "Google Contacts", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/google-contacts/icon.svg" } @@ -448,7 +451,7 @@ "featured": false, "id": "google-news", "name": "Google News", - "version": "1.0.0", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/google-news/icon.svg" } @@ -457,7 +460,7 @@ "featured": false, "id": "google-voice", "name": "google-voice", - "version": "0.3.5", + "version": "0.4.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/google-voice/icon.svg" } @@ -466,7 +469,7 @@ "featured": false, "id": "googlecalendar", "name": "Google Calendar", - "version": "2.1.1", + "version": "2.2.0", "aliases": [ "google-calendar", "gCalendar" @@ -479,7 +482,7 @@ "featured": false, "id": "googleclassroom", "name": "Google Classroom", - "version": "1.0.5", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googleclassroom/icon.svg" } @@ -488,7 +491,7 @@ "featured": false, "id": "googledrive", "name": "Google Drive", - "version": "2.0.1", + "version": "2.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googledrive/icon.svg" } @@ -497,7 +500,7 @@ "featured": false, "id": "googlekeep", "name": "Google Keep", - "version": "1.0.6", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlekeep/icon.svg" } @@ -506,7 +509,7 @@ "featured": false, "id": "googlemeet", "name": "Google Meet", - "version": "2.0.3", + "version": "2.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlemeet/icon.svg" } @@ -515,7 +518,7 @@ "featured": false, "id": "googlepodcasts", "name": "Google Podcasts", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlepodcasts/icon.svg" } @@ -524,7 +527,7 @@ "featured": false, "id": "gotomeeting", "name": "Go To Meeting", - "version": "0.2.3", + "version": "0.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/gotomeeting/icon.svg" } @@ -533,7 +536,7 @@ "featured": false, "id": "grape", "name": "Grape", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/grape/icon.svg" } @@ -542,7 +545,7 @@ "featured": false, "id": "groupme", "name": "GroupMe", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/groupme/icon.svg" } @@ -551,7 +554,7 @@ "featured": false, "id": "guilded", "name": "Guilded", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/guilded/icon.svg" } @@ -560,7 +563,7 @@ "featured": false, "id": "habitica", "name": "Habitica", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/habitica/icon.svg" } @@ -569,7 +572,7 @@ "featured": false, "id": "hackmd", "name": "HackMd", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/hackmd/icon.svg" } @@ -578,7 +581,7 @@ "featured": true, "id": "hangouts", "name": "Hangouts", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/hangouts/icon.svg" } @@ -587,7 +590,7 @@ "featured": false, "id": "hangoutschat", "name": "Hangouts Chat", - "version": "1.4.6", + "version": "1.5.0", "aliases": [ "google-chat", "gChat" @@ -600,7 +603,7 @@ "featured": false, "id": "harvest", "name": "Harvest", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/harvest/icon.svg" } @@ -609,7 +612,7 @@ "featured": false, "id": "hipchat", "name": "HipChat", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/hipchat/icon.svg" } @@ -618,7 +621,7 @@ "featured": false, "id": "iCloud", "name": "iCloud", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/iCloud/icon.svg" } @@ -636,7 +639,7 @@ "featured": false, "id": "icq", "name": "ICQ", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/icq/icon.svg" } @@ -645,7 +648,7 @@ "featured": false, "id": "idobata", "name": "Idobata", - "version": "0.1.2", + "version": "0.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/idobata/icon.svg" } @@ -654,7 +657,7 @@ "featured": false, "id": "infomaniak-mail", "name": "Infomaniak Mail", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/infomaniak-mail/icon.svg" } @@ -663,7 +666,7 @@ "featured": false, "id": "inoreader", "name": "Inoreader", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/inoreader/icon.svg" } @@ -672,7 +675,7 @@ "featured": false, "id": "instagram", "name": "Instagram", - "version": "2.1.0", + "version": "2.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/instagram/icon.svg" } @@ -681,7 +684,7 @@ "featured": false, "id": "intercom", "name": "Intercom", - "version": "1.0.1", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/intercom/icon.svg" } @@ -690,7 +693,7 @@ "featured": false, "id": "irccloud", "name": "IRCCloud", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/irccloud/icon.svg" } @@ -699,7 +702,7 @@ "featured": false, "id": "jira", "name": "Jira", - "version": "1.2.3", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/jira/icon.svg" } @@ -708,7 +711,7 @@ "featured": false, "id": "jitsi", "name": "Jitsi Meet", - "version": "1.0.6", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/jitsi/icon.svg" } @@ -717,7 +720,7 @@ "featured": false, "id": "jollor", "name": "jollor", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/jollor/icon.svg" } @@ -726,7 +729,7 @@ "featured": false, "id": "kaizala", "name": "Microsoft Kaizala", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/kaizala/icon.svg" } @@ -735,7 +738,7 @@ "featured": false, "id": "keybase.io", "name": "Keybase", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/keybase.io/icon.svg" } @@ -744,7 +747,7 @@ "featured": false, "id": "kimaicloud", "name": "Kimai Cloud", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/kimaicloud/icon.svg" } @@ -753,7 +756,7 @@ "featured": false, "id": "lark", "name": "Lark", - "version": "0.0.4", + "version": "0.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/lark/icon.svg" } @@ -762,7 +765,7 @@ "featured": false, "id": "lastpass", "name": "LastPass", - "version": "2.0.2", + "version": "2.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/lastpass/icon.svg" } @@ -771,7 +774,7 @@ "featured": false, "id": "line-me", "name": "Line.me", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/line-me/icon.svg" } @@ -780,7 +783,7 @@ "featured": false, "id": "linkedin", "name": "LinkedIn", - "version": "1.1.0", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/linkedin/icon.svg" } @@ -789,7 +792,7 @@ "featured": false, "id": "mailbox.org", "name": "mailbox.org", - "version": "1.2.4", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/mailbox.org/icon.svg" } @@ -798,7 +801,7 @@ "featured": false, "id": "mastodon", "name": "Mastodon", - "version": "1.1.4", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/mastodon/icon.svg" } @@ -807,7 +810,7 @@ "featured": true, "id": "mattermost", "name": "Mattermost", - "version": "1.2.5", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/mattermost/icon.svg" } @@ -816,7 +819,7 @@ "featured": true, "id": "messenger", "name": "Messenger", - "version": "1.2.0", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/messenger/icon.svg" } @@ -825,7 +828,7 @@ "featured": false, "id": "monday", "name": "Monday", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/monday/icon.svg" } @@ -834,7 +837,7 @@ "featured": false, "id": "monicahq", "name": "Monica HQ", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/monicahq/icon.svg" } @@ -843,7 +846,7 @@ "featured": false, "id": "msteams", "name": "Microsoft Teams", - "version": "3.0.2", + "version": "3.1.0", "aliases": [ "teamsChat" ], @@ -855,7 +858,7 @@ "featured": false, "id": "mstodo", "name": "Microsoft To Do", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/mstodo/icon.svg" } @@ -864,7 +867,7 @@ "featured": false, "id": "mysms", "name": "MySMS", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/mysms/icon.svg" } @@ -873,7 +876,7 @@ "featured": false, "id": "netatmo-energy", "name": "Netatmo Energy", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/netatmo-energy/icon.svg" } @@ -882,7 +885,7 @@ "featured": false, "id": "NewsBlur", "name": "NewsBlur", - "version": "1.0.1", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/NewsBlur/icon.svg" } @@ -891,7 +894,7 @@ "featured": false, "id": "nextcloud", "name": "Nextcloud", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud/icon.svg" } @@ -900,7 +903,7 @@ "featured": false, "id": "nextcloud-calendar", "name": "Nextcloud Calendar", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-calendar/icon.svg" } @@ -909,7 +912,7 @@ "featured": false, "id": "nextcloud-carnet", "name": "Carnet (Nextcloud)", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-carnet/icon.svg" } @@ -918,7 +921,7 @@ "featured": false, "id": "nextcloud-cospend", "name": "Nextcloud Cospend", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-cospend/icon.svg" } @@ -927,7 +930,7 @@ "featured": false, "id": "nextcloud-talk", "name": "Nextcloud Talk", - "version": "1.0.6", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-talk/icon.svg" } @@ -936,7 +939,7 @@ "featured": false, "id": "nextcloud-tasks", "name": "Nextcloud Tasks", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-tasks/icon.svg" } @@ -945,7 +948,7 @@ "featured": false, "id": "nextdoor", "name": "Nextdoor", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextdoor/icon.svg" } @@ -963,7 +966,7 @@ "featured": false, "id": "nomadlist", "name": "nomadlist", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nomadlist/icon.svg" } @@ -972,7 +975,7 @@ "featured": false, "id": "notion", "name": "Notion", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/notion/icon.svg" } @@ -981,7 +984,7 @@ "featured": false, "id": "office365-owa", "name": "Office 365 Outlook Web App", - "version": "1.2.2", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/office365-owa/icon.svg" } @@ -990,7 +993,7 @@ "featured": false, "id": "onenote", "name": "OneNote", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/onenote/icon.svg" } @@ -999,7 +1002,7 @@ "featured": false, "id": "outlook", "name": "Outlook Web App", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/outlook/icon.svg" } @@ -1008,7 +1011,7 @@ "featured": false, "id": "paymo", "name": "paymo", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/paymo/icon.svg" } @@ -1026,7 +1029,7 @@ "featured": false, "id": "pivotal-tracker", "name": "pivotal-tracker", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pivotal-tracker/icon.svg" } @@ -1035,7 +1038,7 @@ "featured": false, "id": "plan", "name": "plan", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/plan/icon.svg" } @@ -1053,7 +1056,7 @@ "featured": false, "id": "plurk", "name": "Plurk", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/plurk/icon.svg" } @@ -1062,7 +1065,7 @@ "featured": false, "id": "pocket", "name": "Pocket", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pocket/icon.svg" } @@ -1071,7 +1074,7 @@ "featured": false, "id": "podio", "name": "podio", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/podio/icon.svg" } @@ -1080,7 +1083,7 @@ "featured": false, "id": "pomodoro-tracker", "name": "Pomodoro Tracker", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pomodoro-tracker/icon.svg" } @@ -1089,7 +1092,7 @@ "featured": false, "id": "proton-mail", "name": "ProtonMail", - "version": "1.2.4", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/proton-mail/icon.svg" } @@ -1098,7 +1101,7 @@ "featured": false, "id": "protoncalendar", "name": "ProtonCalendar", - "version": "1.0.1", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/protoncalendar/icon.svg" } @@ -1107,7 +1110,7 @@ "featured": false, "id": "protonet", "name": "protonet", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/protonet/icon.svg" } @@ -1116,7 +1119,7 @@ "featured": false, "id": "pulsesms", "name": "PulseSMS", - "version": "1.1.4", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pulsesms/icon.svg" } @@ -1125,7 +1128,7 @@ "featured": false, "id": "pushbullet", "name": "Pushbullet", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pushbullet/icon.svg" } @@ -1134,7 +1137,7 @@ "featured": false, "id": "rainloop", "name": "RainLoop", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/rainloop/icon.svg" } @@ -1143,7 +1146,7 @@ "featured": false, "id": "reddit", "name": "Reddit", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/reddit/icon.svg" } @@ -1152,7 +1155,7 @@ "featured": false, "id": "redditchat", "name": "Reddit Chat", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/redditchat/icon.svg" } @@ -1161,7 +1164,7 @@ "featured": false, "id": "riseup", "name": "Riseup.net", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/riseup/icon.svg" } @@ -1170,7 +1173,7 @@ "featured": false, "id": "rocketchat", "name": "Rocket.Chat", - "version": "1.0.11", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/rocketchat/icon.svg" } @@ -1179,7 +1182,7 @@ "featured": false, "id": "roundcube", "name": "Roundcube", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/roundcube/icon.svg" } @@ -1188,7 +1191,7 @@ "featured": false, "id": "sendtask", "name": "Sendtask", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/sendtask/icon.svg" } @@ -1197,7 +1200,7 @@ "featured": false, "id": "simplenote", "name": "Simplenote", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/simplenote/icon.svg" } @@ -1206,7 +1209,7 @@ "featured": false, "id": "skype", "name": "Skype", - "version": "3.0.1", + "version": "3.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/skype/icon.svg" } @@ -1215,7 +1218,7 @@ "featured": true, "id": "slack", "name": "Slack", - "version": "1.1.0", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/slack/icon.svg" } @@ -1233,7 +1236,7 @@ "featured": false, "id": "snapdrop", "name": "Snapdrop", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/snapdrop/icon.svg" } @@ -1242,7 +1245,7 @@ "featured": false, "id": "stackexchange", "name": "StackExchange", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/stackexchange/icon.svg" } @@ -1251,7 +1254,7 @@ "featured": false, "id": "standardnotes", "name": "StandardNotes", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/standardnotes/icon.svg" } @@ -1260,7 +1263,7 @@ "featured": false, "id": "steamchat", "name": "SteamChat", - "version": "1.1.5", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/steamchat/icon.svg" } @@ -1269,7 +1272,7 @@ "featured": false, "id": "stride", "name": "Stride", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/stride/icon.svg" } @@ -1278,7 +1281,7 @@ "featured": false, "id": "superhuman", "name": "superhuman", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/superhuman/icon.svg" } @@ -1287,7 +1290,7 @@ "featured": false, "id": "sync", "name": "sync", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/sync/icon.svg" } @@ -1296,7 +1299,7 @@ "featured": false, "id": "tawk", "name": "Tawk.to", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/tawk/icon.svg" } @@ -1305,7 +1308,7 @@ "featured": false, "id": "teamleader", "name": "teamleader", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/teamleader/icon.svg" } @@ -1314,7 +1317,7 @@ "featured": false, "id": "teamwork-projects", "name": "Teamwork Projects", - "version": "0.1.2", + "version": "0.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/teamwork-projects/icon.svg" } @@ -1323,7 +1326,7 @@ "featured": true, "id": "telegram", "name": "Telegram", - "version": "3.1.1", + "version": "3.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/telegram/icon.svg" } @@ -1332,7 +1335,7 @@ "featured": false, "id": "telegram-react", "name": "Telegram React", - "version": "1.1.3", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/telegram-react/icon.svg" } @@ -1341,7 +1344,7 @@ "featured": false, "id": "thelounge", "name": "The Lounge", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/thelounge/icon.svg" } @@ -1350,7 +1353,7 @@ "featured": false, "id": "threema", "name": "Threema", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/threema/icon.svg" } @@ -1359,7 +1362,7 @@ "featured": false, "id": "TickTick", "name": "TickTick", - "version": "1.1.3", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/TickTick/icon.svg" } @@ -1368,7 +1371,7 @@ "featured": false, "id": "todoist", "name": "Todoist", - "version": "1.2.2", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/todoist/icon.svg" } @@ -1377,7 +1380,7 @@ "featured": false, "id": "toggl", "name": "toggl", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/toggl/icon.svg" } @@ -1386,7 +1389,7 @@ "featured": false, "id": "trello", "name": "Trello", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/trello/icon.svg" } @@ -1395,7 +1398,7 @@ "featured": false, "id": "tutanota", "name": "Tutanota", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/tutanota/icon.svg" } @@ -1404,7 +1407,7 @@ "featured": true, "id": "tweetdeck", "name": "Tweetdeck", - "version": "1.0.5", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/tweetdeck/icon.svg" } @@ -1413,7 +1416,7 @@ "featured": false, "id": "twist", "name": "twist", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/twist/icon.svg" } @@ -1422,7 +1425,7 @@ "featured": false, "id": "twitch", "name": "Twitch", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/twitch/icon.svg" } @@ -1431,7 +1434,7 @@ "featured": false, "id": "twitter", "name": "Twitter", - "version": "1.1.3", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/twitter/icon.svg" } @@ -1440,7 +1443,7 @@ "featured": false, "id": "twitter-dm", "name": "Twitter DM", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/twitter-dm/icon.svg" } @@ -1449,7 +1452,7 @@ "featured": false, "id": "unraid", "name": "Unraid", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/unraid/icon.svg" } @@ -1458,7 +1461,7 @@ "featured": false, "id": "vk", "name": "VK", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/vk/icon.svg" } @@ -1467,7 +1470,7 @@ "featured": false, "id": "voxer", "name": "Voxer", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/voxer/icon.svg" } @@ -1476,7 +1479,7 @@ "featured": false, "id": "webex-teams", "name": "Webex Teams", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/webex-teams/icon.svg" } @@ -1485,7 +1488,7 @@ "featured": false, "id": "wechat", "name": "WeChat", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/wechat/icon.svg" } @@ -1494,7 +1497,7 @@ "featured": true, "id": "whatsapp", "name": "WhatsApp", - "version": "3.1.2", + "version": "3.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/whatsapp/icon.svg" } @@ -1512,7 +1515,7 @@ "featured": false, "id": "withspectrum", "name": "Spectrum", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/withspectrum/icon.svg" } @@ -1521,7 +1524,7 @@ "featured": false, "id": "workplace", "name": "Workplace", - "version": "1.2.0", + "version": "1.3.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/workplace/icon.svg" } @@ -1530,7 +1533,7 @@ "featured": false, "id": "wrike", "name": "Wrike", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/wrike/icon.svg" } @@ -1539,7 +1542,7 @@ "featured": false, "id": "xing", "name": "XING", - "version": "1.1.2", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/xing/icon.svg" } @@ -1548,7 +1551,7 @@ "featured": true, "id": "yahoo-mail", "name": "Yahoo Mail", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/yahoo-mail/icon.svg" } @@ -1557,7 +1560,7 @@ "featured": false, "id": "yammer", "name": "Yammer", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/yammer/icon.svg" } @@ -1566,7 +1569,7 @@ "featured": false, "id": "youtrack", "name": "YouTrack", - "version": "1.0.3", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/youtrack/icon.svg" } @@ -1575,7 +1578,7 @@ "featured": false, "id": "youtubemusic", "name": "YouTube Music", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/youtubemusic/icon.svg" } @@ -1584,7 +1587,7 @@ "featured": false, "id": "zalo", "name": "Zalo", - "version": "1.1.3", + "version": "1.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zalo/icon.svg" } @@ -1593,7 +1596,7 @@ "featured": false, "id": "zendesk", "name": "zendesk", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zendesk/icon.svg" } @@ -1602,7 +1605,7 @@ "featured": false, "id": "zenhub", "name": "ZenHub", - "version": "0.1.2", + "version": "0.2.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zenhub/icon.svg" } @@ -1611,7 +1614,7 @@ "featured": false, "id": "zeplin", "name": "Zeplin", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zeplin/icon.svg" } @@ -1620,7 +1623,7 @@ "featured": false, "id": "zimbra", "name": "Zimbra", - "version": "1.0.2", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zimbra/icon.svg" } @@ -1629,7 +1632,7 @@ "featured": false, "id": "zoho", "name": "Zoho Mail", - "version": "1.0.4", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zoho/icon.svg" } @@ -1638,7 +1641,7 @@ "featured": false, "id": "zulip", "name": "Zulip", - "version": "1.0.5", + "version": "1.1.0", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/zulip/icon.svg" } diff --git a/recipes/NewsBlur/index.js b/recipes/NewsBlur/index.js index 46f936f..23607bd 100644 --- a/recipes/NewsBlur/index.js +++ b/recipes/NewsBlur/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/NewsBlur/package.json b/recipes/NewsBlur/package.json index 1e72c87..ce75b0a 100644 --- a/recipes/NewsBlur/package.json +++ b/recipes/NewsBlur/package.json @@ -1,7 +1,7 @@ { "id": "NewsBlur", "name": "NewsBlur", - "version": "1.0.1", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://newsblur.com", diff --git a/recipes/NewsBlur/webview.js b/recipes/NewsBlur/webview.js index 67e7bbb..7e19dff 100644 --- a/recipes/NewsBlur/webview.js +++ b/recipes/NewsBlur/webview.js @@ -1,11 +1,2 @@ -const path = require('path'); - -module.exports = (Franz, options) => { - const getMessages = () => { - const unreadCount = 0; - - Franz.setBadge(unreadCount); - }; - - Franz.loop(getMessages); +module.exports = Ferdi => { }; diff --git a/recipes/air-droid/index.js b/recipes/air-droid/index.js index 258da41..23607bd 100644 --- a/recipes/air-droid/index.js +++ b/recipes/air-droid/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/air-droid/package.json b/recipes/air-droid/package.json index 9041ace..a307c31 100644 --- a/recipes/air-droid/package.json +++ b/recipes/air-droid/package.json @@ -1,7 +1,7 @@ { "id": "air-droid", "name": "air-droid", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "http://web.airdroid.com/", diff --git a/recipes/air-droid/webview.js b/recipes/air-droid/webview.js index eb3d0c2..160a9f3 100644 --- a/recipes/air-droid/webview.js +++ b/recipes/air-droid/webview.js @@ -1,14 +1,14 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getMessages() { const count = {}; - const FranzData = document.querySelector('#FranzMessages').dataset; - if (FranzData) { - count.count = FranzData.direct; - count.count_indirect = FranzData.indirect; + const data = document.querySelector('#FranzMessages').dataset; + if (data) { + count.count = data.direct; + count.count_indirect = data.indirect; } - Franz.setBadge(count); + Ferdi.setBadge(count); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/airtable/index.js b/recipes/airtable/index.js index 258da41..23607bd 100644 --- a/recipes/airtable/index.js +++ b/recipes/airtable/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/airtable/package.json b/recipes/airtable/package.json index f33a693..c520978 100644 --- a/recipes/airtable/package.json +++ b/recipes/airtable/package.json @@ -1,7 +1,7 @@ { "id": "airtable", "name": "Airtable", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/transnat/recipe-airtable", "config": { diff --git a/recipes/android-messages/index.js b/recipes/android-messages/index.js index 258da41..23607bd 100644 --- a/recipes/android-messages/index.js +++ b/recipes/android-messages/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/android-messages/package.json b/recipes/android-messages/package.json index cb0003a..4903955 100644 --- a/recipes/android-messages/package.json +++ b/recipes/android-messages/package.json @@ -1,7 +1,7 @@ { "id": "android-messages", "name": "Android Messages", - "version": "2.0.3", + "version": "2.1.0", "license": "MIT", "config": { "serviceURL": "https://messages.google.com/web", diff --git a/recipes/android-messages/webview.js b/recipes/android-messages/webview.js index 9f658c9..efaa5cf 100644 --- a/recipes/android-messages/webview.js +++ b/recipes/android-messages/webview.js @@ -29,17 +29,17 @@ window.addEventListener('beforeunload', async () => { } }); -module.exports = (Franz, settings) => { +module.exports = (Ferdi, settings) => { function getMessages() { const messages = document.querySelectorAll('.text-content.unread').length; - Franz.setBadge(messages); + Ferdi.setBadge(messages); } + Ferdi.loop(getMessages); + if (settings.isDarkModeEnabled) { localStorage.setItem('dark_mode_enabled', 'true'); } else { localStorage.setItem('dark_mode_enabled', 'false'); } - - Franz.loop(getMessages); }; diff --git a/recipes/anonaddy/package.json b/recipes/anonaddy/package.json index 8296157..aa529d1 100644 --- a/recipes/anonaddy/package.json +++ b/recipes/anonaddy/package.json @@ -1,7 +1,7 @@ { "id": "anonaddy", "name": "AnonAddy", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.anonaddy.com/" diff --git a/recipes/anonaddy/webview.js b/recipes/anonaddy/webview.js index 3ad4701..10157e9 100644 --- a/recipes/anonaddy/webview.js +++ b/recipes/anonaddy/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/anydo/index.js b/recipes/anydo/index.js index 46f936f..23607bd 100644 --- a/recipes/anydo/index.js +++ b/recipes/anydo/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/anydo/package.json b/recipes/anydo/package.json index 81c5527..e015aee 100644 --- a/recipes/anydo/package.json +++ b/recipes/anydo/package.json @@ -1,7 +1,7 @@ { "id": "anydo", "name": "Any.do", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/chappy84/recipe-anydo", "config": { diff --git a/recipes/anydo/webview.js b/recipes/anydo/webview.js index e35bfb5..cdb7e4f 100644 --- a/recipes/anydo/webview.js +++ b/recipes/anydo/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { function getTasks() { let incompleteCount = 0; @@ -10,8 +10,8 @@ module.exports = (Franz) => { }); } - Franz.setBadge(incompleteCount); + Ferdi.setBadge(incompleteCount); } - Franz.loop(getTasks); + Ferdi.loop(getTasks); }; diff --git a/recipes/asana/index.js b/recipes/asana/index.js index abbbeed..23607bd 100644 --- a/recipes/asana/index.js +++ b/recipes/asana/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndoYXRzYXBwL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoid2hhdHNhcHAvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/asana/package.json b/recipes/asana/package.json index f442812..5963557 100644 --- a/recipes/asana/package.json +++ b/recipes/asana/package.json @@ -1,7 +1,7 @@ { "id": "asana", "name": "Asana", - "version": "1.0.1", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.asana.com", diff --git a/recipes/asana/webview.js b/recipes/asana/webview.js index 2be4994..2f544db 100644 --- a/recipes/asana/webview.js +++ b/recipes/asana/webview.js @@ -1,21 +1,14 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = function getMessages() { const hasNotification = document.querySelectorAll('.SidebarTopNavLinks-notificationsButton--hasNewNotifications'); - let count = 0; - if (hasNotification.length > 0) { - count += 1; - } - - // set Franz badge - Franz.setBadge(count); + Ferdi.setBadge(hasNotification.length > 0 ? 1 : 0); }; - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndoYXRzYXBwL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImVsZW1lbnRzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwiY291bnQiLCJpIiwibGVuZ3RoIiwic2V0QmFkZ2UiLCJpbmplY3RDU1MiLCJqb2luIiwiX19kaXJuYW1lIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNQSxPQUFPQyxRQUFRLE1BQVIsQ0FBYjs7QUFFQUMsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxVQUFNQyxXQUFXQyxTQUFTQyxnQkFBVCxDQUEwQixTQUExQixDQUFqQjtBQUNBLFFBQUlDLFFBQVEsQ0FBWjs7QUFFQSxTQUFLLElBQUlDLElBQUksQ0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qZWN0IGZyYW56LmNzcyBzdHlsZXNoZWV0XG4gIEZyYW56LmluamVjdENTUyhwYXRoLmpvaW4oX19kaXJuYW1lLCAnc2VydmljZS5jc3MnKSk7XG5cbiAgLy8gY2hlY2sgZm9yIG5ldyBtZXNzYWdlcyBldmVyeSBzZWNvbmQgYW5kIHVwZGF0ZSBGcmFueiBiYWRnZVxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn07XG4iXX0= diff --git a/recipes/aws-workmail/index.js b/recipes/aws-workmail/index.js index 258da41..23607bd 100644 --- a/recipes/aws-workmail/index.js +++ b/recipes/aws-workmail/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/aws-workmail/package.json b/recipes/aws-workmail/package.json index b916c29..5641f43 100644 --- a/recipes/aws-workmail/package.json +++ b/recipes/aws-workmail/package.json @@ -1,7 +1,7 @@ { "id": "amazon-work-mail", "name": "Amazon WorkMail", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamID}.awsapps.com/mail", diff --git a/recipes/aws-workmail/webview.js b/recipes/aws-workmail/webview.js index c374b55..5c77d79 100644 --- a/recipes/aws-workmail/webview.js +++ b/recipes/aws-workmail/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const reload = (EventType) => new Promise((resolve, reject) => { const btn = document.getElementsByClassName('giraffe-hierarchy-node-refresh')[0]; const EventObject = document.createEvent('Events'); @@ -20,11 +20,11 @@ module.exports = (Franz, options) => { counter += (node > 0) ? node : 0; } - Franz.setBadge(counter); + Ferdi.setBadge(counter); }; if (!window.location.pathname.includes('auth')) { - Franz.loop(getUnread); + Ferdi.loop(getUnread); window.setInterval(() => { reload('click'); diff --git a/recipes/azure-devops/package.json b/recipes/azure-devops/package.json index 91668c6..23c33cd 100644 --- a/recipes/azure-devops/package.json +++ b/recipes/azure-devops/package.json @@ -1,8 +1,11 @@ { "id": "azure-devops", "name": "Azure DevOps", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", + "aliases": [ + "azdo" + ], "config": { "serviceURL": "https://dev.azure.com/" } diff --git a/recipes/basecamp/index.js b/recipes/basecamp/index.js index 46f936f..23607bd 100644 --- a/recipes/basecamp/index.js +++ b/recipes/basecamp/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/basecamp/package.json b/recipes/basecamp/package.json index 8a22226..d6b3275 100644 --- a/recipes/basecamp/package.json +++ b/recipes/basecamp/package.json @@ -1,7 +1,7 @@ { "id": "basecamp", "name": "basecamp", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://launchpad.37signals.com/" diff --git a/recipes/basecamp/webview.js b/recipes/basecamp/webview.js index 85f78ee..e7b7dde 100644 --- a/recipes/basecamp/webview.js +++ b/recipes/basecamp/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { let updates = 0; const modal = document.createElement('div'); @@ -23,7 +25,7 @@ module.exports = (Franz, options) => { updates -= 1; } - // Replace window.alert to hide alerts in Franz + // Replace window.alert to hide alerts in Ferdi const oldAlert = window.alert; window.alert = function () { // when Google Calendar displays an alert notify the user @@ -38,19 +40,6 @@ module.exports = (Franz, options) => { element.style.display = 'none'; } - const getMessages = () => { - // get unread messages - // const updates = document.getElementById('franz').getAttribute('data-unread'); - - // get conversations in 'My Inbox' - // const inbox = document.getElementById('franz').getAttribute('data-inbox'); - - // set Franz badge - // updates => passive unread count - // inbox => active unread count - Franz.setBadge(0, updates); - }; - modal.id = 'franz-modal'; modal.innerHTML = ''; modal.querySelector('.close').addEventListener('click', hideModal); @@ -58,9 +47,5 @@ module.exports = (Franz, options) => { document.addEventListener('keydown', (e) => { if (e.keyCode === 27) { hideModal(); } }); - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'css', 'modal.css')); - - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'modal.css')); }; diff --git a/recipes/bigbluebutton/index.js b/recipes/bigbluebutton/index.js index 258da41..23607bd 100644 --- a/recipes/bigbluebutton/index.js +++ b/recipes/bigbluebutton/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/bigbluebutton/package.json b/recipes/bigbluebutton/package.json index cce9da9..42f1982 100644 --- a/recipes/bigbluebutton/package.json +++ b/recipes/bigbluebutton/package.json @@ -1,7 +1,7 @@ { "id": "bigbluebutton", "name": "BigBlueButton", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://bigbluebutton.mycompany.com/", diff --git a/recipes/bip/package.json b/recipes/bip/package.json index 4b9a627..8898d1d 100644 --- a/recipes/bip/package.json +++ b/recipes/bip/package.json @@ -1,7 +1,7 @@ { "id": "bip", "name": "BiP", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://web.bip.com/", diff --git a/recipes/bip/webview.js b/recipes/bip/webview.js index e9e956b..87a7c0a 100644 --- a/recipes/bip/webview.js +++ b/recipes/bip/webview.js @@ -1,8 +1,6 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { const getMessages = function getMessages() { @@ -16,5 +14,6 @@ module.exports = Ferdi => { }; Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/bitbucket/package.json b/recipes/bitbucket/package.json index f0002e0..8937440 100644 --- a/recipes/bitbucket/package.json +++ b/recipes/bitbucket/package.json @@ -1,7 +1,7 @@ { "id": "bitbucket", "name": "BitBucket", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://bitbucket.org/dashboard/overview" diff --git a/recipes/bitbucket/webview.js b/recipes/bitbucket/webview.js index 3ad4701..10157e9 100644 --- a/recipes/bitbucket/webview.js +++ b/recipes/bitbucket/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/box/index.js b/recipes/box/index.js index 258da41..23607bd 100644 --- a/recipes/box/index.js +++ b/recipes/box/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/box/package.json b/recipes/box/package.json index b360806..ec6177e 100644 --- a/recipes/box/package.json +++ b/recipes/box/package.json @@ -1,7 +1,7 @@ { "id": "box", "name": "box", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://account.box.com/login" diff --git a/recipes/box/webview.js b/recipes/box/webview.js index 11308dd..7e19dff 100644 --- a/recipes/box/webview.js +++ b/recipes/box/webview.js @@ -1,3 +1,2 @@ -module.exports = (Franz, options) => { - +module.exports = Ferdi => { }; diff --git a/recipes/buffer/index.js b/recipes/buffer/index.js index 46f936f..23607bd 100644 --- a/recipes/buffer/index.js +++ b/recipes/buffer/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/buffer/package.json b/recipes/buffer/package.json index 1d0c1f0..4753eb2 100644 --- a/recipes/buffer/package.json +++ b/recipes/buffer/package.json @@ -1,7 +1,7 @@ { "id": "buffer", "name": "buffer", - "version": "1.0.2", + "version": "1.1.0", "license": "GPL", "config": { "serviceURL": "https://buffer.com", diff --git a/recipes/buffer/webview.js b/recipes/buffer/webview.js index 080e809..035c69a 100644 --- a/recipes/buffer/webview.js +++ b/recipes/buffer/webview.js @@ -1,6 +1,7 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); }; diff --git a/recipes/campuswire/index.js b/recipes/campuswire/index.js index 258da41..23607bd 100644 --- a/recipes/campuswire/index.js +++ b/recipes/campuswire/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/campuswire/package.json b/recipes/campuswire/package.json index 1e6670c..e305ef1 100644 --- a/recipes/campuswire/package.json +++ b/recipes/campuswire/package.json @@ -1,7 +1,7 @@ { "id": "campuswire", "name": "Campuswire", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://campuswire.com/c", diff --git a/recipes/campuswire/webview.js b/recipes/campuswire/webview.js index b65f25a..5f43cbb 100644 --- a/recipes/campuswire/webview.js +++ b/recipes/campuswire/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = document.querySelectorAll('._5fx8:not(._569x),._1ht3:not(._569x)').length; const messageRequestsElement = document.querySelector('._5nxf'); @@ -7,17 +7,18 @@ module.exports = Franz => { count += parseInt(messageRequestsElement.innerHTML, 10); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); + localStorage.setItem('_cs_desktopNotifsEnabled', JSON.stringify({ __t: new Date().getTime(), __v: true, })); - if (typeof Franz.onNotify === 'function') { - Franz.onNotify(notification => { + if (typeof Ferdi.onNotify === 'function') { + Ferdi.onNotify(notification => { if (typeof notification.title !== 'string') { notification.title = ((notification.title.props || {}).content || [])[0] || 'Campuswire'; } diff --git a/recipes/chatra/index.js b/recipes/chatra/index.js index 46f936f..23607bd 100644 --- a/recipes/chatra/index.js +++ b/recipes/chatra/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/chatra/package.json b/recipes/chatra/package.json index 482765f..3cea500 100644 --- a/recipes/chatra/package.json +++ b/recipes/chatra/package.json @@ -1,7 +1,7 @@ { "id": "chatra", "name": "chatra", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.chatra.io/", diff --git a/recipes/chatra/webview.js b/recipes/chatra/webview.js index a8a611c..a82a78d 100644 --- a/recipes/chatra/webview.js +++ b/recipes/chatra/webview.js @@ -1,6 +1,4 @@ -const path = require('path'); - -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { // get new conversations in My Queue const myQueue = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:my"] .count').not('.count--gray').text(); @@ -8,12 +6,11 @@ module.exports = (Franz, options) => { // get all missed conversations const missed = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:missed"] .count').text(); - // set Franz badge + // set Ferdi badge // myQueue => New conversations in My Queue // missed => All missed conversations - Franz.setBadge(myQueue, missed); + Ferdi.setBadge(myQueue, missed); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/chatwork/index.js b/recipes/chatwork/index.js index 258da41..23607bd 100644 --- a/recipes/chatwork/index.js +++ b/recipes/chatwork/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/chatwork/package.json b/recipes/chatwork/package.json index 3947251..eb6eaf8 100644 --- a/recipes/chatwork/package.json +++ b/recipes/chatwork/package.json @@ -1,7 +1,7 @@ { "id": "chatwork", "name": "ChatWork", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/hideosasaki/recipe-chatwork", "config": { diff --git a/recipes/chatwork/webview.js b/recipes/chatwork/webview.js index c6465ec..e131093 100644 --- a/recipes/chatwork/webview.js +++ b/recipes/chatwork/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getMessages() { let groupCount = 0; let individualCount = 0; @@ -29,8 +29,8 @@ module.exports = (Franz, options) => { } } }); - Franz.setBadge(directCount, indirectCount); + Ferdi.setBadge(directCount, indirectCount); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/ciscospark/index.js b/recipes/ciscospark/index.js index 83aacd0..23607bd 100644 --- a/recipes/ciscospark/index.js +++ b/recipes/ciscospark/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNpc2Nvc3BhcmsvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJjaXNjb3NwYXJrL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/ciscospark/package.json b/recipes/ciscospark/package.json index e78dacc..ec9f3c8 100644 --- a/recipes/ciscospark/package.json +++ b/recipes/ciscospark/package.json @@ -1,7 +1,7 @@ { "id": "ciscospark", "name": "Cisco Spark", - "version": "1.0.1", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://web.ciscospark.com", diff --git a/recipes/ciscospark/webview.js b/recipes/ciscospark/webview.js index 7d7bae9..4de3fb1 100644 --- a/recipes/ciscospark/webview.js +++ b/recipes/ciscospark/webview.js @@ -1,10 +1,8 @@ -const _path = require('path'); - -const _path2 = _interopRequireDefault(_path); +const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const UNREAD_BADGE_SELECTOR = '.navigation-item--badgeCount'; const getMessages = function getMessages() { @@ -19,10 +17,10 @@ module.exports = Franz => { indirectCount = parseInt(elements[2].querySelector(UNREAD_BADGE_SELECTOR).textContent, 10); } - Franz.setBadge(directCount, indirectCount); + Ferdi.setBadge(directCount, indirectCount); }; - Franz.loop(getMessages); - Franz.injectCSS(_path2.default.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNpc2Nvc3Bhcmsvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJVTlJFQURfQkFER0VfU0VMRUNUT1IiLCJnZXRNZXNzYWdlcyIsImRpcmVjdENvdW50IiwiaW5kaXJlY3RDb3VudCIsImVsZW1lbnRzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwibGVuZ3RoIiwicXVlcnlTZWxlY3RvciIsInBhcnNlSW50IiwidGV4dENvbnRlbnQiLCJzZXRCYWRnZSIsImxvb3AiLCJpbmplY3RDU1MiLCJqb2luIiwiX19kaXJuYW1lIl0sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7QUFFQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLHdCQUF3Qiw4QkFBOUI7O0FBRUEsUUFBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQ3pDLFFBQUlDLGNBQWMsQ0FBbEI7QUFDQSxRQUFJQyxnQkFBZ0IsQ0FBcEI7O0FBRUEsVUFBTUMsV0FBV0MsU0FBU0MsZ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bmRpcmVjdENvdW50ID0gMDtcblxuICAgIGNvbnN0IGVsZW1lbnRzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLm5hdmlnYXRpb24tYmFyLWxpc3QgLmxpc3RJdGVtV3JhcHBlcicpO1xuICAgIGlmIChlbGVtZW50cy5sZW5ndGggPiAwICYmIGVsZW1lbnRzWzFdLnF1ZXJ5U2VsZWN0b3IoVU5SRUFEX0JBREdFX1NFTEVDVE9SKSkge1xuICAgICAgZGlyZWN0Q291bnQgPSBwYXJzZUludChlbGVtZW50c1sxXS5xdWVyeVNlbGVjdG9yKFVOUkVBRF9CQURHRV9TRUxFQ1RPUikudGV4dENvbnRlbnQsIDEwKTtcbiAgICB9XG4gICAgaWYgKGVsZW1lbnRzLmxlbmd0aCA+IDAgJiYgZWxlbWVudHNbMl0ucXVlcnlTZWxlY3RvcihVTlJFQURfQkFER0VfU0VMRUNUT1IpKSB7XG4gICAgICBpbmRpcmVjdENvdW50ID0gcGFyc2VJbnQoZWxlbWVudHNbMl0ucXVlcnlTZWxlY3RvcihVTlJFQURfQkFER0VfU0VMRUNUT1IpLnRleHRDb250ZW50LCAxMCk7XG4gICAgfVxuXG4gICAgRnJhbnouc2V0QmFkZ2UoZGlyZWN0Q291bnQsIGluZGlyZWN0Q291bnQpO1xuICB9O1xuXG4gIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xuICBGcmFuei5pbmplY3RDU1MocGF0aC5qb2luKF9fZGlybmFtZSwgJ3NlcnZpY2UuY3NzJykpO1xufTtcbiJdfQ== diff --git a/recipes/clickup/index.js b/recipes/clickup/index.js index 258da41..23607bd 100644 --- a/recipes/clickup/index.js +++ b/recipes/clickup/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/clickup/package.json b/recipes/clickup/package.json index 3438cd9..cebcd93 100644 --- a/recipes/clickup/package.json +++ b/recipes/clickup/package.json @@ -1,7 +1,7 @@ { "id": "clickup", "name": "ClickUp", - "version": "2.1.2", + "version": "2.2.0", "license": "MIT", "config": { "serviceURL": "https://app.clickup.com", diff --git a/recipes/clickup/webview.js b/recipes/clickup/webview.js index 64bae62..420ca5a 100644 --- a/recipes/clickup/webview.js +++ b/recipes/clickup/webview.js @@ -1,9 +1,9 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const elements = document.querySelectorAll('.unreadCount'); const unread = document.querySelector('.cu-notification-alert__dot'); - Franz.setBadge(unread ? 1 : 0); + Ferdi.setBadge(unread ? 1 : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/cliq/index.js b/recipes/cliq/index.js index 258da41..23607bd 100644 --- a/recipes/cliq/index.js +++ b/recipes/cliq/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/cliq/package.json b/recipes/cliq/package.json index efc0c3f..ecb01f5 100644 --- a/recipes/cliq/package.json +++ b/recipes/cliq/package.json @@ -1,7 +1,7 @@ { "id": "cliq", "name": "Cliq", - "version": "1.0.3", + "version": "1.1.0", "repository": "https://github.com/cliqgeek/recipe-cliq", "config": { "serviceURL": "https://www.zoho.com/cliq/login.html", diff --git a/recipes/cliq/webview.js b/recipes/cliq/webview.js index 095c1b0..067ea5b 100644 --- a/recipes/cliq/webview.js +++ b/recipes/cliq/webview.js @@ -1,7 +1,7 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { - Franz.setBadge(ConversationsList.getUnreadBadgeCount()); + Ferdi.setBadge(ConversationsList.getUnreadBadgeCount()); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/clockify/index.js b/recipes/clockify/index.js index 258da41..23607bd 100644 --- a/recipes/clockify/index.js +++ b/recipes/clockify/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/clockify/package.json b/recipes/clockify/package.json index eff6348..c48e32b 100644 --- a/recipes/clockify/package.json +++ b/recipes/clockify/package.json @@ -1,7 +1,7 @@ { "id": "clockify", "name": "Clockify", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://clockify.me/tracker", diff --git a/recipes/clockify/webview.js b/recipes/clockify/webview.js index 470b3ea..252b3e3 100644 --- a/recipes/clockify/webview.js +++ b/recipes/clockify/webview.js @@ -1,9 +1,9 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const notifications = document.querySelectorAll('.notification--number'); - Franz.setBadge(0, notifications.length >= 1 ? 1 : 0); + Ferdi.setBadge(0, notifications.length >= 1 ? 1 : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/clubhouse/package.json b/recipes/clubhouse/package.json index 847ffcc..1fe2000 100644 --- a/recipes/clubhouse/package.json +++ b/recipes/clubhouse/package.json @@ -1,7 +1,7 @@ { "id": "clubhouse", "name": "Clubhouse", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/dnlnrs/ferdi-recipe-clubhouse", "config": { diff --git a/recipes/clubhouse/webview.js b/recipes/clubhouse/webview.js index 9b2b782..be02ac0 100644 --- a/recipes/clubhouse/webview.js +++ b/recipes/clubhouse/webview.js @@ -1,9 +1,7 @@ module.exports = (Ferdi) => { function getMessages() { const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible'); - if (hasNotifications) { - Ferdi.setBadge(0, 1); - } + Ferdi.setBadge(0, hasNotifications ? 1 : 0); } Ferdi.loop(getMessages); diff --git a/recipes/discord/index.js b/recipes/discord/index.js index dd2bcf2..9efa7a3 100644 --- a/recipes/discord/index.js +++ b/recipes/discord/index.js @@ -1,8 +1,8 @@ -module.exports = Franz => class Discord extends Franz { +module.exports = Ferdi => class Discord extends Ferdi { overrideUserAgent() { const useragent = window.navigator.userAgent; const parts = useragent.split('(KHTML, like Gecko)'); - return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Franz', 'Discord'); + return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Ferdi', 'Discord'); } }; diff --git a/recipes/discord/package.json b/recipes/discord/package.json index d713dfb..85069d9 100644 --- a/recipes/discord/package.json +++ b/recipes/discord/package.json @@ -1,7 +1,7 @@ { "id": "discord", "name": "Discord", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://discordapp.com/login", diff --git a/recipes/discord/webview.js b/recipes/discord/webview.js index 8123ced..88a5c50 100644 --- a/recipes/discord/webview.js +++ b/recipes/discord/webview.js @@ -1,9 +1,10 @@ -"use strict"; - // TODO: Some/most of this is already present in https://github.com/getferdi/ferdi/blob/develop/src/webview/screenshare.js#L5 -const { desktopCapturer, remote: { BrowserWindow } } = require("electron"); -const path = require('path'); +const { desktopCapturer, remote: { BrowserWindow } } = require('electron'); + +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } window.navigator.mediaDevices.getDisplayMedia = () => { return new Promise(async (resolve, reject) => { @@ -61,7 +62,7 @@ window.navigator.mediaDevices.getDisplayMedia = () => { }) } -module.exports = (Franz, settings) => { +module.exports = (Ferdi, settings) => { const getMessages = function getMessages() { let count = 0; const container = document.querySelector('[role="tablist"] > [title="Chats"] > div'); @@ -79,11 +80,13 @@ module.exports = (Franz, settings) => { } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + document.addEventListener('click', event => { const link = event.target.closest('a[href^="http"]'); const button = event.target.closest('button[title^="http"]'); diff --git a/recipes/disqus/package.json b/recipes/disqus/package.json index 44af177..f9a48df 100644 --- a/recipes/disqus/package.json +++ b/recipes/disqus/package.json @@ -1,7 +1,7 @@ { "id": "disqus", "name": "Disqus", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://disqus.com/home/" diff --git a/recipes/disqus/webview.js b/recipes/disqus/webview.js index 6e10e29..c1e315c 100644 --- a/recipes/disqus/webview.js +++ b/recipes/disqus/webview.js @@ -1,7 +1,3 @@ -const _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - const getInnerInt = selector => { const element = document.querySelector(selector); return element && parseInt(element.innerText); diff --git a/recipes/easy-redmine/index.js b/recipes/easy-redmine/index.js index 258da41..23607bd 100644 --- a/recipes/easy-redmine/index.js +++ b/recipes/easy-redmine/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/easy-redmine/package.json b/recipes/easy-redmine/package.json index 6bf914e..ec51a49 100644 --- a/recipes/easy-redmine/package.json +++ b/recipes/easy-redmine/package.json @@ -1,7 +1,7 @@ { "id": "easy-redmine", "name": "easy-redmine", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamID}.easyredmine.com", diff --git a/recipes/easy-redmine/webview.js b/recipes/easy-redmine/webview.js index 11308dd..7e19dff 100644 --- a/recipes/easy-redmine/webview.js +++ b/recipes/easy-redmine/webview.js @@ -1,3 +1,2 @@ -module.exports = (Franz, options) => { - +module.exports = Ferdi => { }; diff --git a/recipes/element/index.js b/recipes/element/index.js index 258da41..23607bd 100644 --- a/recipes/element/index.js +++ b/recipes/element/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/element/package.json b/recipes/element/package.json index 5e155ae..528e167 100644 --- a/recipes/element/package.json +++ b/recipes/element/package.json @@ -1,7 +1,7 @@ { "id": "element", "name": "Element", - "version": "1.0.6", + "version": "1.1.0", "license": "MIT", "aliases": [ "Riot.im", diff --git a/recipes/element/webview.js b/recipes/element/webview.js index 22ff738..18bb7ad 100644 --- a/recipes/element/webview.js +++ b/recipes/element/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { function getMessages() { const badges = document.querySelectorAll('.mx_RoomSublist:not(.mx_RoomSublist_hidden) .mx_RoomSublist_badgeContainer'); @@ -14,10 +14,9 @@ module.exports = Franz => { indirect_count = parseInt(badges[1].textContent); } - // set Franz badge - Franz.setBadge(direct_count, indirect_count); + // set Ferdi badge + Ferdi.setBadge(direct_count, indirect_count); } - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/enterprise-owa/index.js b/recipes/enterprise-owa/index.js index 258da41..23607bd 100644 --- a/recipes/enterprise-owa/index.js +++ b/recipes/enterprise-owa/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/enterprise-owa/package.json b/recipes/enterprise-owa/package.json index ffe012c..2e0ac2c 100644 --- a/recipes/enterprise-owa/package.json +++ b/recipes/enterprise-owa/package.json @@ -1,7 +1,7 @@ { "id": "enterprise-owa", "name": "Enterprise Outlook Web App", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://owa.yourcompany.com/owa", diff --git a/recipes/enterprise-owa/webview.js b/recipes/enterprise-owa/webview.js index 1fa1a12..de007b3 100644 --- a/recipes/enterprise-owa/webview.js +++ b/recipes/enterprise-owa/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let unreadMail = 0; @@ -25,7 +25,8 @@ module.exports = Franz => { }, 0); } - Franz.setBadge(unreadMail); + Ferdi.setBadge(unreadMail); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; diff --git a/recipes/epicgames/package.json b/recipes/epicgames/package.json index 00f6950..c6aafa1 100644 --- a/recipes/epicgames/package.json +++ b/recipes/epicgames/package.json @@ -1,7 +1,7 @@ { "id": "epicgames", "name": "Epic Games Store", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.epicgames.com/id/login?lang=en_US&redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fstore%2Fen-US%2F&noHostRedirect=true" diff --git a/recipes/epicgames/webview.js b/recipes/epicgames/webview.js index 3ad4701..10157e9 100644 --- a/recipes/epicgames/webview.js +++ b/recipes/epicgames/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/erepublik/package.json b/recipes/erepublik/package.json index 7038cd4..77781ee 100644 --- a/recipes/erepublik/package.json +++ b/recipes/erepublik/package.json @@ -1,7 +1,7 @@ { "id": "erepublik", "name": "eRepublik", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://erepublik.com" diff --git a/recipes/erepublik/webview.js b/recipes/erepublik/webview.js index ebd3743..3056d1b 100644 --- a/recipes/erepublik/webview.js +++ b/recipes/erepublik/webview.js @@ -1,8 +1,6 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { const getMessages = function getMessages() { @@ -32,6 +30,7 @@ module.exports = Ferdi => { }; Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); Ferdi.injectCSS(_path.default.join(__dirname, 'crpk-resources/fonts.css')); }; diff --git a/recipes/evernote/index.js b/recipes/evernote/index.js index 46f936f..23607bd 100644 --- a/recipes/evernote/index.js +++ b/recipes/evernote/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/evernote/package.json b/recipes/evernote/package.json index fbc610a..6ade667 100644 --- a/recipes/evernote/package.json +++ b/recipes/evernote/package.json @@ -1,7 +1,7 @@ { "id": "evernote", "name": "Evernote", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.evernote.com/Login.action" diff --git a/recipes/evernote/webview.js b/recipes/evernote/webview.js index 60742ca..b877798 100644 --- a/recipes/evernote/webview.js +++ b/recipes/evernote/webview.js @@ -1,18 +1,15 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = () => { const inbox = document.querySelector('.topbar-notificationsButton.has-newNotifications'); const passiveCount = inbox === null ? 0 : 1; - // set Franz badge - // updates => active unread count - // inbox => passive unread count - Franz.setBadge(0, passiveCount); + Ferdi.setBadge(0, passiveCount); }; - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); + Ferdi.loop(getMessages); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); }; diff --git a/recipes/facebook/index.js b/recipes/facebook/index.js index 46f936f..23607bd 100755 --- a/recipes/facebook/index.js +++ b/recipes/facebook/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/facebook/package.json b/recipes/facebook/package.json index 518da53..3bd9eb2 100755 --- a/recipes/facebook/package.json +++ b/recipes/facebook/package.json @@ -1,7 +1,7 @@ { "id": "facebook", "name": "Facebook", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.facebook.com/login" diff --git a/recipes/facebook/webview.js b/recipes/facebook/webview.js index 17ab011..f1e24f9 100755 --- a/recipes/facebook/webview.js +++ b/recipes/facebook/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getNotifications = function getNotifications() { let count = 0; @@ -15,9 +15,8 @@ module.exports = (Franz) => { } }); - Franz.setBadge(count); + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getNotifications); + Ferdi.loop(getNotifications); }; diff --git a/recipes/facebookpages/index.js b/recipes/facebookpages/index.js index 258da41..23607bd 100644 --- a/recipes/facebookpages/index.js +++ b/recipes/facebookpages/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/facebookpages/package.json b/recipes/facebookpages/package.json index 617e4e2..74acfeb 100644 --- a/recipes/facebookpages/package.json +++ b/recipes/facebookpages/package.json @@ -1,7 +1,7 @@ { "id": "facebookpages", "name": "Facebook Pages", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://facebook.com/{teamId}/inbox", diff --git a/recipes/facebookpages/webview.js b/recipes/facebookpages/webview.js index 0c646a9..539b227 100644 --- a/recipes/facebookpages/webview.js +++ b/recipes/facebookpages/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi, options) => { const getMessages = function getMessages() { let messages = 0; const element = document.querySelector('[data-testid="message_count"] span'); @@ -7,10 +7,11 @@ module.exports = (Franz, options) => { messages = parseInt(element.textContent, 10); } - Franz.setBadge(messages); + Ferdi.setBadge(messages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); + setTimeout(() => { if (document.body && !document.body.classList.contains('UIPage_LoggedOut')) { if (localStorage.getItem('franz-needsRedirect')) { diff --git a/recipes/fastmail/index.js b/recipes/fastmail/index.js index 2d94af4..23607bd 100644 --- a/recipes/fastmail/index.js +++ b/recipes/fastmail/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhc3RtYWlsL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZmFzdG1haWwvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/fastmail/package.json b/recipes/fastmail/package.json index b0ded8f..7a73acb 100644 --- a/recipes/fastmail/package.json +++ b/recipes/fastmail/package.json @@ -1,7 +1,7 @@ { "id": "fastmail", "name": "FastMail", - "version": "2.0.2", + "version": "2.1.0", "license": "MIT", "config": { "serviceURL": "https://www.fastmail.com/mail/", diff --git a/recipes/fastmail/webview.js b/recipes/fastmail/webview.js index 5355dbe..46bad0d 100644 --- a/recipes/fastmail/webview.js +++ b/recipes/fastmail/webview.js @@ -1,15 +1,18 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = () => { const inbox = document.querySelector('.v-MailboxSource--inbox .v-MailboxSource-badge'); if (!inbox) { return; } const messages = Number(inbox.innerText); - Franz.setBadge(messages); + Ferdi.setBadge(messages); }; - Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; diff --git a/recipes/feedbin/index.js b/recipes/feedbin/index.js index 258da41..23607bd 100644 --- a/recipes/feedbin/index.js +++ b/recipes/feedbin/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/feedbin/package.json b/recipes/feedbin/package.json index 40491c5..7a38ad3 100644 --- a/recipes/feedbin/package.json +++ b/recipes/feedbin/package.json @@ -1,7 +1,7 @@ { "id": "feedbin", "name": "feedbin", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://feedbin.com/login", diff --git a/recipes/feedbin/webview.js b/recipes/feedbin/webview.js index 56ffd3c..a5c9b7b 100644 --- a/recipes/feedbin/webview.js +++ b/recipes/feedbin/webview.js @@ -1,8 +1,8 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getMessages() { const count = feedbin.count_data.unread_entries.length || 0; - Franz.setBadge(count); + Ferdi.setBadge(count); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/feedly/index.js b/recipes/feedly/index.js index 258da41..23607bd 100644 --- a/recipes/feedly/index.js +++ b/recipes/feedly/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/feedly/package.json b/recipes/feedly/package.json index c40fbc1..4bb6d10 100644 --- a/recipes/feedly/package.json +++ b/recipes/feedly/package.json @@ -1,7 +1,7 @@ { "id": "feedly", "name": "Feedly", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://feedly.com" diff --git a/recipes/feedly/webview.js b/recipes/feedly/webview.js index b5ac7dd..4e5a5c8 100644 --- a/recipes/feedly/webview.js +++ b/recipes/feedly/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { getMessages = () => { const newsDOM = document.querySelectorAll("div[title='All'] > .LeftnavListRow__count")[0].innerHTML; let counter = parseInt(newsDOM); @@ -7,8 +7,8 @@ module.exports = Franz => { counter = `${newsDOM.substring(0, newsDOM.indexOf('K'))}000`; } - Franz.setBadge(counter); + Ferdi.setBadge(counter); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/fleep/package.json b/recipes/fleep/package.json index 30b118b..3510738 100644 --- a/recipes/fleep/package.json +++ b/recipes/fleep/package.json @@ -1,7 +1,7 @@ { "id": "fleep", "name": "Fleep", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://fleep.io/chat" diff --git a/recipes/fleep/webview.js b/recipes/fleep/webview.js index 46fe2c5..e760af8 100644 --- a/recipes/fleep/webview.js +++ b/recipes/fleep/webview.js @@ -10,5 +10,6 @@ module.exports = Ferdi => { }; Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/flowdock/index.js b/recipes/flowdock/index.js index 582ee6e..23607bd 100644 --- a/recipes/flowdock/index.js +++ b/recipes/flowdock/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZsb3dkb2NrL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZmxvd2RvY2svaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/flowdock/package.json b/recipes/flowdock/package.json index 4daa17d..8fd8966 100644 --- a/recipes/flowdock/package.json +++ b/recipes/flowdock/package.json @@ -1,7 +1,7 @@ { "id": "flowdock", "name": "Flowdock", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.flowdock.com/app/", diff --git a/recipes/flowdock/webview.js b/recipes/flowdock/webview.js index 704dc95..86db60f 100644 --- a/recipes/flowdock/webview.js +++ b/recipes/flowdock/webview.js @@ -1,12 +1,11 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directMessages = document.querySelectorAll('.activity-indicator-mentions').length; const indirectMessages = document.querySelectorAll('.activity-indicator-chat').length; - // set Franz badge - Franz.setBadge(directMessages, indirectMessages); + // set Ferdi badge + Ferdi.setBadge(directMessages, indirectMessages); }; - Franz.loop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5U2VsZWN0b3JBbGwoJy5hY3Rpdml0eS1pbmRpY2F0b3ItY2hhdCcpLmxlbmd0aDtcblxuICAgIC8vIHNldCBGcmFueiBiYWRnZVxuICAgIEZyYW56LnNldEJhZGdlKGRpcmVjdE1lc3NhZ2VzLCBpbmRpcmVjdE1lc3NhZ2VzKTtcbiAgfTtcblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn07XG4iXX0= diff --git a/recipes/franz-custom-website/index.js b/recipes/franz-custom-website/index.js index db3da5e..c0f91cb 100644 --- a/recipes/franz-custom-website/index.js +++ b/recipes/franz-custom-website/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class CustomWebsite extends Franz { +module.exports = Ferdi => class CustomWebsite extends Ferdi { async validateUrl(url) { return true; } diff --git a/recipes/franz-custom-website/package.json b/recipes/franz-custom-website/package.json index d56cff7..dc84b6c 100644 --- a/recipes/franz-custom-website/package.json +++ b/recipes/franz-custom-website/package.json @@ -1,7 +1,7 @@ { "id": "franz-custom-website", "name": "Custom Website", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-custom-website", "config": { diff --git a/recipes/franz-custom-website/webview.js b/recipes/franz-custom-website/webview.js index 6df0aaa..ca6a9f7 100644 --- a/recipes/franz-custom-website/webview.js +++ b/recipes/franz-custom-website/webview.js @@ -1,5 +1,7 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { - Franz.injectCSS(path.join(__dirname, 'style.css')); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + Ferdi.injectCSS(_path.default.join(__dirname, 'style.css')); }; diff --git a/recipes/gadugadu/index.js b/recipes/gadugadu/index.js index b9faf46..23607bd 100644 --- a/recipes/gadugadu/index.js +++ b/recipes/gadugadu/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdhZHVnYWR1L2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZ2FkdWdhZHUvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/gadugadu/package.json b/recipes/gadugadu/package.json index 11d2bfe..5579a41 100644 --- a/recipes/gadugadu/package.json +++ b/recipes/gadugadu/package.json @@ -1,7 +1,7 @@ { "id": "gadugadu", "name": "Gadu-Gadu", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.gg.pl", diff --git a/recipes/gadugadu/webview.js b/recipes/gadugadu/webview.js index 50b5c02..e1c7a2a 100644 --- a/recipes/gadugadu/webview.js +++ b/recipes/gadugadu/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = () => { const updates = parseInt(document.querySelector('i#sr-last-counter').textContent, 10); let messages = 0; @@ -14,10 +16,10 @@ module.exports = Franz => { } } - Franz.setBadge(messages, updates); + Ferdi.setBadge(messages, updates); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdhZHVnYWR1L3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJ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Z0IsSUFBTixDQUFXZixXQUFYO0FBQ0QsQ0FuQkQiLCJmaWxlIjoiZ2FkdWdhZHUvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IHBhdGggPSByZXF1aXJlKCdwYXRoJyk7XG5cbm1vZHVsZS5leHBvcnRzID0gKEZyYW56KSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gKCkgPT4ge1xuICAgIGNvbnN0IHVwZGF0ZXMgPSBwYXJzZUludChkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCdpI3NyLWxhc3QtY291bnRlcicpLnRleHRDb250ZW50LCAxMCk7XG4gICAgbGV0IG1lc3NhZ2VzID0gMDtcblxuICAgIGNvbnN0IGNvbnZlcnNhdGlvbnMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuY2hhdC1jb3VudGVyOm5vdCguZC1ub25lKScpLmxlbmd0aDtcbiAgICBpZiAoY29udmVyc2F0aW9ucyA9PT0gMCkge1xuICAgICAgbWVzc2FnZXMgPSAwO1xuICAgIH0gZWxzZSB7XG4gICAgICBmb3IgKGxldCBpID0gMDsgaSA8IGNvbnZlcnNhdGlvbnM7IGkgKyAxKSB7XG4gICAgICAgIG1lc3NhZ2VzICs9IHBhcnNlSW50KGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoJy5jaGF0LWNvdW50ZXI6bm90KC5kLW5vbmUpJylbaV0udGV4dENvbnRlbnQsIDEwKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICBGcmFuei5zZXRCYWRnZShtZXNzYWdlcywgdXBkYXRlcyk7XG4gIH07XG5cbiAgRnJhbnouaW5qZWN0Q1NTKHBhdGguam9pbihfX2Rpcm5hbWUsICdzZXJ2aWNlLmNzcycpKTtcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/github/index.js b/recipes/github/index.js index 6889e69..23607bd 100644 --- a/recipes/github/index.js +++ b/recipes/github/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdpdGh1Yi9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6ImdpdGh1Yi9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/github/package.json b/recipes/github/package.json index 49d18d8..4454c97 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,7 +1,7 @@ { "id": "github", "name": "GitHub", - "version": "2.0.2", + "version": "2.1.0", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", diff --git a/recipes/github/webview.js b/recipes/github/webview.js index 3b5a286..9f35b5e 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directCountElement = document.querySelector('.filter-list .count'); const indirectCountElement = document.querySelector('[class*="mail-status unread"]'); @@ -9,9 +9,8 @@ module.exports = Franz => { } else if (indirectCountElement) { indirectCount = 1; } - Franz.setBadge(directCount, indirectCount); + Ferdi.setBadge(directCount, indirectCount); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnaXRodWIvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= diff --git a/recipes/github_entreprise/index.js b/recipes/github_entreprise/index.js index 2ffc5ee..f45d240 100644 --- a/recipes/github_entreprise/index.js +++ b/recipes/github_entreprise/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class GitHubEnterprise extends Franz { +module.exports = Ferdi => class GitHubEnterprise extends Ferdi { async validateUrl(url) { try { const resp = await window.fetch(`${url}/api/v3`, { diff --git a/recipes/github_entreprise/package.json b/recipes/github_entreprise/package.json index bc06465..e40d6d3 100644 --- a/recipes/github_entreprise/package.json +++ b/recipes/github_entreprise/package.json @@ -1,7 +1,7 @@ { "id": "github_entreprise", "name": "GitHub Enterprise", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://github.mycompany.com/", diff --git a/recipes/gitlab/package.json b/recipes/gitlab/package.json index 9819b0f..3ed3464 100644 --- a/recipes/gitlab/package.json +++ b/recipes/gitlab/package.json @@ -1,7 +1,7 @@ { "id": "gitlab", "name": "GitLab", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://gitlab.com/users/sign_in", diff --git a/recipes/gitlab/webview.js b/recipes/gitlab/webview.js index 3ad4701..10157e9 100644 --- a/recipes/gitlab/webview.js +++ b/recipes/gitlab/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/gitter/index.js b/recipes/gitter/index.js index 8644398..23607bd 100644 --- a/recipes/gitter/index.js +++ b/recipes/gitter/index.js @@ -1,4 +1 @@ -// just pass through Franz - -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRpc2NvcmQvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBOztBQUNBLE9BQU8sQUFBUCxVQUFpQixTQUFTLEFBQTFCIiwiZmlsZSI6ImRpc2NvcmQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBqdXN0IHBhc3MgdGhyb3VnaCBGcmFuelxubW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/gitter/package.json b/recipes/gitter/package.json index c4ce0a3..0713c24 100644 --- a/recipes/gitter/package.json +++ b/recipes/gitter/package.json @@ -1,7 +1,7 @@ { "id": "gitter", "name": "Gitter", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://gitter.im", diff --git a/recipes/gitter/webview.js b/recipes/gitter/webview.js index 395ce00..402f01a 100644 --- a/recipes/gitter/webview.js +++ b/recipes/gitter/webview.js @@ -1,12 +1,8 @@ -const _path = require('path'); +const _path = _interopRequireDefault(require('path')); -const _path2 = _interopRequireDefault(_path); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} - -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { // get unread messages let count = 0; @@ -14,15 +10,12 @@ module.exports = Franz => { count += Number(node.innerText); }); - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); // Hide download message - Franz.injectCSS(_path2.default.join(__dirname, 'service.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRpc2NvcmQvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImNvdW50Ii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 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb3dpbmdiZWFyL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZ2xvd2luZ2JlYXIvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/glowing-bear/package.json b/recipes/glowing-bear/package.json index 2d21dc7..250cb57 100644 --- a/recipes/glowing-bear/package.json +++ b/recipes/glowing-bear/package.json @@ -1,7 +1,7 @@ { "id": "glowing-bear", "name": "glowing-bear", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.glowing-bear.org", diff --git a/recipes/glowing-bear/webview.js b/recipes/glowing-bear/webview.js index 2af70dc..d974836 100644 --- a/recipes/glowing-bear/webview.js +++ b/recipes/glowing-bear/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const indirectElements = document.querySelectorAll('.badge:not(.danger)'); const direct = document.querySelectorAll('.badge.danger').length - 1; @@ -6,8 +6,8 @@ module.exports = Franz => { for (let i = 0; i < indirectElements.length; i += 1) { if (indirectElements[i].innerHTML.length > 0) indirect++; } - Franz.setBadge(Math.max(direct, 0), Math.max(indirect, 0)); + Ferdi.setBadge(Math.max(direct, 0), Math.max(indirect, 0)); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb3dpbmdiZWFyL3dlYnZpZXcuanMiXSwibmFtZXMiOls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nN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG5cdFx0bGV0IGluZGlyZWN0RWxlbWVudHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuYmFkZ2U6bm90KC5kYW5nZXIpJyk7XG5cdFx0bGV0IGRpcmVjdCA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoJy5iYWRnZS5kYW5nZXInKS5sZW5ndGggLSAxO1xuXHRcdGxldCBpbmRpcmVjdCA9IC0xO1xuXHRcdGZvciAobGV0IGkgPSAwOyBpIDwgaW5kaXJlY3RFbGVtZW50cy5sZW5ndGg7IGkgKz0gMSkge1xuXHRcdFx0aWYgKGluZGlyZWN0RWxlbWVudHNbaV0uaW5uZXJIVE1MLmxlbmd0aCA+IDApIGluZGlyZWN0Kys7XG5cdFx0fVxuXHRcdEZyYW56LnNldEJhZGdlKE1hdGgubWF4KGRpcmVjdCwgMCksIE1hdGgubWF4KGluZGlyZWN0LCAwKSk7XG5cdH07XG5cdEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== diff --git a/recipes/gmail/index.js b/recipes/gmail/index.js index e1896e4..8aae88f 100644 --- a/recipes/gmail/index.js +++ b/recipes/gmail/index.js @@ -1,4 +1,2 @@ -const os = require('os'); - -module.exports = Franz => class Gmail extends Franz { +module.exports = Ferdi => class Gmail extends Ferdi { }; diff --git a/recipes/gmail/package.json b/recipes/gmail/package.json index 502faff..49fc89f 100644 --- a/recipes/gmail/package.json +++ b/recipes/gmail/package.json @@ -1,7 +1,7 @@ { "id": "gmail", "name": "Gmail", - "version": "1.3.11", + "version": "1.4.0", "license": "MIT", "config": { "serviceURL": "https://mail.google.com" diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index a26c7cb..9a09c87 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { // if the user is on gmail's landing page, go to the login page. if (location.hostname == 'www.google.com' && location.href.includes('gmail/about/')) { location.href = 'https://accounts.google.com/AccountChooser?service=mail&continue=https://mail.google.com/mail/'; @@ -18,11 +20,11 @@ module.exports = (Franz) => { } } - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/google-voice/index.js b/recipes/google-voice/index.js index 258da41..23607bd 100644 --- a/recipes/google-voice/index.js +++ b/recipes/google-voice/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/google-voice/package.json b/recipes/google-voice/package.json index e93e067..84eac14 100644 --- a/recipes/google-voice/package.json +++ b/recipes/google-voice/package.json @@ -1,7 +1,7 @@ { "id": "google-voice", "name": "google-voice", - "version": "0.3.5", + "version": "0.4.0", "license": "MIT", "repository": "https://github.com/BehindTheMath/franz-recipe-google-voice", "config": { diff --git a/recipes/google-voice/webview.js b/recipes/google-voice/webview.js index aed66af..7d9602c 100644 --- a/recipes/google-voice/webview.js +++ b/recipes/google-voice/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { function parseQuery(query) { const el = document.querySelector(query); return el && parseInt(el.innerHTML) || 0; @@ -17,8 +17,8 @@ module.exports = Franz => { count = count_messages + count_calls + count_voicemails; } - Franz.setBadge(count); + Ferdi.setBadge(count); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/googlecalendar/index.js b/recipes/googlecalendar/index.js index f18361f..553d5ef 100644 --- a/recipes/googlecalendar/index.js +++ b/recipes/googlecalendar/index.js @@ -1,2 +1,2 @@ -module.exports = Franz => class GoogleCalendar extends Franz { +module.exports = Ferdi => class GoogleCalendar extends Ferdi { }; diff --git a/recipes/googlecalendar/package.json b/recipes/googlecalendar/package.json index 6d097bb..58f78ed 100644 --- a/recipes/googlecalendar/package.json +++ b/recipes/googlecalendar/package.json @@ -1,7 +1,7 @@ { "id": "googlecalendar", "name": "Google Calendar", - "version": "2.1.1", + "version": "2.2.0", "license": "MIT", "aliases": [ "google-calendar", diff --git a/recipes/googlecalendar/webview-unsafe.js b/recipes/googlecalendar/webview-unsafe.js index 68145ad..c47f572 100644 --- a/recipes/googlecalendar/webview-unsafe.js +++ b/recipes/googlecalendar/webview-unsafe.js @@ -12,24 +12,24 @@ const waitFor = (condition, callback) => { const showModal = text => { modal.querySelector('p').innerHTML = text; updates += 1; - window.franz.setBadge(updates); + window.ferdi.setBadge(updates); modal.classList.add('open'); }; const hideModal = () => { modal.querySelector('p').innerHTML = ''; updates -= 1; - window.franz.setBadge(updates); + window.ferdi.setBadge(updates); modal.classList.remove('open'); }; const createModal = () => { - const franzModal = document.createElement('div'); - franzModal.setAttribute('id', 'franz-modal'); - franzModal.innerHTML = ''; - franzModal.querySelector('.close').addEventListener('click', hideModal); + const modalDialog = document.createElement('div'); + modalDialog.setAttribute('id', 'franz-modal'); + modalDialog.innerHTML = ''; + modalDialog.querySelector('.close').addEventListener('click', hideModal); - return franzModal; + return modalDialog; }; window.alert = showModal; diff --git a/recipes/googlecalendar/webview.js b/recipes/googlecalendar/webview.js index 2e34c8b..7a55b0a 100644 --- a/recipes/googlecalendar/webview.js +++ b/recipes/googlecalendar/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { - Franz.injectCSS(path.join(__dirname, 'calendar.css')); - Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + Ferdi.injectCSS(_path.default.join(__dirname, 'calendar.css')); + Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; diff --git a/recipes/googleclassroom/index.js b/recipes/googleclassroom/index.js index 193bd51..9ccb30b 100644 --- a/recipes/googleclassroom/index.js +++ b/recipes/googleclassroom/index.js @@ -1,2 +1,2 @@ -module.exports = Franz => class GoogleClassroom extends Franz { +module.exports = Ferdi => class GoogleClassroom extends Ferdi { }; diff --git a/recipes/googleclassroom/package.json b/recipes/googleclassroom/package.json index 0309651..de9c318 100644 --- a/recipes/googleclassroom/package.json +++ b/recipes/googleclassroom/package.json @@ -1,7 +1,7 @@ { "id": "googleclassroom", "name": "Google Classroom", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/TanZng/ferdi-googleclassroom", "config": { diff --git a/recipes/googleclassroom/webview.js b/recipes/googleclassroom/webview.js index 0421f21..6431df8 100644 --- a/recipes/googleclassroom/webview.js +++ b/recipes/googleclassroom/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let homework = 0; const upcomingAssignment = document.getElementsByClassName('hrUpcomingAssignmentGroup'); @@ -8,8 +8,8 @@ module.exports = Franz => { homework += upcomingAssignment[i].childElementCount; } } - Franz.setBadge(parseInt(homework, 10)); + Ferdi.setBadge(parseInt(homework, 10)); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/googlecontacts/index.js b/recipes/googlecontacts/index.js index 258da41..23607bd 100644 --- a/recipes/googlecontacts/index.js +++ b/recipes/googlecontacts/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/googlecontacts/package.json b/recipes/googlecontacts/package.json index 2563a20..4f91692 100644 --- a/recipes/googlecontacts/package.json +++ b/recipes/googlecontacts/package.json @@ -1,7 +1,7 @@ { "id": "google-contacts", "name": "Google Contacts", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://contacts.google.com/" diff --git a/recipes/googledrive/index.js b/recipes/googledrive/index.js index a882324..c3580bd 100644 --- a/recipes/googledrive/index.js +++ b/recipes/googledrive/index.js @@ -1,4 +1,2 @@ -const os = require('os'); - -module.exports = Franz => class googledrive extends Franz { +module.exports = Ferdi => class googledrive extends Ferdi { }; diff --git a/recipes/googledrive/package.json b/recipes/googledrive/package.json index aee3ee9..7ee22ae 100644 --- a/recipes/googledrive/package.json +++ b/recipes/googledrive/package.json @@ -1,7 +1,7 @@ { "id": "googledrive", "name": "Google Drive", - "version": "2.0.1", + "version": "2.1.0", "repository": "https://github.com/BrianGilbert/franz-recipe-tawk", "license": "MIT", "config": { diff --git a/recipes/googledrive/webview.js b/recipes/googledrive/webview.js index 7f8f7ad..ae1e755 100644 --- a/recipes/googledrive/webview.js +++ b/recipes/googledrive/webview.js @@ -1,5 +1,7 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { - Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { + Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; diff --git a/recipes/googlekeep/index.js b/recipes/googlekeep/index.js index 63a0505..e311079 100644 --- a/recipes/googlekeep/index.js +++ b/recipes/googlekeep/index.js @@ -1,2 +1,2 @@ -module.exports = Franz => class GoogleKeep extends Franz { +module.exports = Ferdi => class GoogleKeep extends Ferdi { }; diff --git a/recipes/googlekeep/package.json b/recipes/googlekeep/package.json index dc93908..cec5a1a 100644 --- a/recipes/googlekeep/package.json +++ b/recipes/googlekeep/package.json @@ -1,7 +1,7 @@ { "id": "googlekeep", "name": "Google Keep", - "version": "1.0.6", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://keep.google.com/" diff --git a/recipes/googlekeep/webview.js b/recipes/googlekeep/webview.js index bdbf506..e69de29 100644 --- a/recipes/googlekeep/webview.js +++ b/recipes/googlekeep/webview.js @@ -1 +0,0 @@ -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnb29nbGVrZWVwL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6W119 diff --git a/recipes/googlemeet/index.js b/recipes/googlemeet/index.js index fe2ba1f..58aff86 100644 --- a/recipes/googlemeet/index.js +++ b/recipes/googlemeet/index.js @@ -1,2 +1,2 @@ -module.exports = Franz => class GoogleMeet extends Franz { +module.exports = Ferdi => class GoogleMeet extends Ferdi { }; diff --git a/recipes/googlemeet/package.json b/recipes/googlemeet/package.json index 8eca832..fe63660 100644 --- a/recipes/googlemeet/package.json +++ b/recipes/googlemeet/package.json @@ -1,7 +1,7 @@ { "id": "googlemeet", "name": "Google Meet", - "version": "2.0.3", + "version": "2.1.0", "license": "MIT", "config": { "serviceURL": "https://meet.google.com", diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index eb6f7f3..3a20b0c 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js @@ -1,13 +1,11 @@ -const { - remote, -} = require('electron'); +const _path = _interopRequireDefault(require('path')); -const path = require('path'); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const { remote } = require('electron'); const webContents = remote.getCurrentWebContents(); -const { - session, -} = webContents; +const { session } = webContents; window.onload = () => { const title = document.querySelector('.window-title').innerHTML; @@ -17,7 +15,7 @@ window.onload = () => { } }; -module.exports = Franz => { +module.exports = Ferdi => { session.flushStorageData(); session.clearStorageData({ storages: ['serviceworkers'], @@ -33,9 +31,10 @@ module.exports = Franz => { } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/googlenews/index.js b/recipes/googlenews/index.js index 258da41..23607bd 100644 --- a/recipes/googlenews/index.js +++ b/recipes/googlenews/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/googlenews/package.json b/recipes/googlenews/package.json index c0d02ab..36bbca9 100644 --- a/recipes/googlenews/package.json +++ b/recipes/googlenews/package.json @@ -1,7 +1,7 @@ { "id": "google-news", "name": "Google News", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://news.google.com/" diff --git a/recipes/googlepodcasts/index.js b/recipes/googlepodcasts/index.js index 258da41..23607bd 100644 --- a/recipes/googlepodcasts/index.js +++ b/recipes/googlepodcasts/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/googlepodcasts/package.json b/recipes/googlepodcasts/package.json index c27c4f0..b529b2b 100644 --- a/recipes/googlepodcasts/package.json +++ b/recipes/googlepodcasts/package.json @@ -1,7 +1,7 @@ { "id": "googlepodcasts", "name": "Google Podcasts", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://podcasts.google.com/" diff --git a/recipes/gotomeeting/index.js b/recipes/gotomeeting/index.js index d779159..bde0ae0 100644 --- a/recipes/gotomeeting/index.js +++ b/recipes/gotomeeting/index.js @@ -1,5 +1,5 @@ -module.exports = Franz => class Gotomeeting extends Franz { +module.exports = Ferdi => class Gotomeeting extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, ''); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, ''); } }; diff --git a/recipes/gotomeeting/package.json b/recipes/gotomeeting/package.json index f64732c..b4e4ae0 100644 --- a/recipes/gotomeeting/package.json +++ b/recipes/gotomeeting/package.json @@ -1,7 +1,7 @@ { "id": "gotomeeting", "name": "Go To Meeting", - "version": "0.2.3", + "version": "0.3.0", "repository": "https://github.com/tristanplouz/ferdi-recipe-gotomeeting.git", "license": "MIT", "config": { diff --git a/recipes/gotomeeting/webview.js b/recipes/gotomeeting/webview.js index 6e0b370..097df0d 100644 --- a/recipes/gotomeeting/webview.js +++ b/recipes/gotomeeting/webview.js @@ -1,8 +1,11 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - Ferdi.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + if (document.location.href.match('after')) { - document.location.href = 'https://app.gotomeeting.com/home.html'; + document.location.href = 'https://app.gotomeeting.com/home.html'; } }; diff --git a/recipes/grape/index.js b/recipes/grape/index.js index 3232b47..356b57a 100644 --- a/recipes/grape/index.js +++ b/recipes/grape/index.js @@ -1,6 +1,6 @@ function _asyncToGenerator(fn) { return function () { const gen = fn.apply(this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (err) => { step('throw', err); }); } } return step('next'); }); }; } -module.exports = Franz => class Grape extends Franz { +module.exports = Ferdi => class Grape extends Ferdi { validateUrl(url) { return _asyncToGenerator(function* () { try { @@ -16,4 +16,3 @@ module.exports = Franz => class Grape extends Franz { })(); } }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdyYXBlL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsIkdyYXBlIiwidmFsaWRhdGVVcmwiLCJ1cmwiLCJyZXNwIiwid2luZG93IiwiZmV0Y2giLCJtZXRob2QiLCJzdGF0dXMiLCJlcnIiLCJjb25zb2xlIiwiZXJyb3IiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUyxNQUFNQyxLQUFOLFNBQW9CRCxLQUFwQixDQUEwQjtBQUM1Q0UsYUFBTixDQUFrQkMsR0FBbEIsRUFBdUI7QUFBQTtBQUNyQixVQUFJO0FBQ0YsY0FBTUMsT0FBTyxNQUFNQyxPQUFPQyxLQUFQLENBQWFILEdBQWIsRUFBa0I7QUFDbkNJLGtCQUFRO0FBRDJCLFNBQWxCLENBQW5CO0FBR0EsZUFBT0gsS0FBS0ksTUFBTCxLQUFnQixHQUF2QjtBQUNELE9BTEQsQ0FLRSxPQUFPQyxHQUFQLEVBQVk7QUFDWkMsZ0JBQVFDLEtBQVIsQ0FBY0YsR0FBZDtBQUNEOztBQUVELGFBQU8sS0FBUDtBQVZxQjtBQVd0QjtBQVppRCxDQUFwRCIsImZpbGUiOiJncmFwZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gY2xhc3MgR3JhcGUgZXh0ZW5kcyBGcmFueiB7XG4gIGFzeW5jIHZhbGlkYXRlVXJsKHVybCkge1xuICAgIHRyeSB7XG4gICAgICBjb25zdCByZXNwID0gYXdhaXQgd2luZG93LmZldGNoKHVybCwge1xuICAgICAgICBtZXRob2Q6ICdHRVQnLFxuICAgICAgfSk7XG4gICAgICByZXR1cm4gcmVzcC5zdGF0dXMgPT09IDIwMDtcbiAgICB9IGNhdGNoIChlcnIpIHtcbiAgICAgIGNvbnNvbGUuZXJyb3IoZXJyKTtcbiAgICB9XG5cbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn07XG4iXX0= diff --git a/recipes/grape/package.json b/recipes/grape/package.json index 75e55c4..75cc43d 100644 --- a/recipes/grape/package.json +++ b/recipes/grape/package.json @@ -1,7 +1,7 @@ { "id": "grape", "name": "Grape", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.chatgrape.com/chat", diff --git a/recipes/grape/webview.js b/recipes/grape/webview.js index e497c01..349846c 100644 --- a/recipes/grape/webview.js +++ b/recipes/grape/webview.js @@ -1,11 +1,10 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directMessages = document.querySelectorAll('.c0120').length; const indirectMessages = document.querySelectorAll('.c0121').length; - Franz.setBadge(directMessages, indirectMessages); + Ferdi.setBadge(directMessages, indirectMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdyYXBlL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJkaXJlY3RNZXNzYWdlcyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImxlbmd0aCIsImluZGlyZWN0TWVzc2FnZXMiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixRQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDekMsVUFBTUMsaUJBQWlCQyxTQUFTQyxnQkFBVCxDQUEwQixRQUExQixFQUFvQ0MsTUFBM0Q7QUFDQSxVQUFNQyxtQkFBbUJILFNBQVNDLGdCQUFULENBQTBCLFFBQTFCLEVBQW9DQyxNQUE3RDs7QUFFQUwsVUFBTU8sUUFBTixDQUFlTCxjQUFmLEVBQStCSSxnQkFBL0I7QUFDRCxHQUxEOztBQU9BTixRQUFNUSxJQUFOLENBQVdQLFdBQVg7QUFDRCxDQVREIiwiZmlsZSI6ImdyYXBlL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IChGcmFueikgPT4ge1xuICBjb25zdCBnZXRNZXNzYWdlcyA9IGZ1bmN0aW9uIGdldE1lc3NhZ2VzKCkge1xuICAgIGNvbnN0IGRpcmVjdE1lc3NhZ2VzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmMwMTIwJykubGVuZ3RoO1xuICAgIGNvbnN0IGluZGlyZWN0TWVzc2FnZXMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuYzAxMjEnKS5sZW5ndGg7XG5cbiAgICBGcmFuei5zZXRCYWRnZShkaXJlY3RNZXNzYWdlcywgaW5kaXJlY3RNZXNzYWdlcyk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/groupme/index.js b/recipes/groupme/index.js index e16d21f..23607bd 100644 --- a/recipes/groupme/index.js +++ b/recipes/groupme/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdyb3VwbWUvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJncm91cG1lL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/groupme/package.json b/recipes/groupme/package.json index dc906f1..5f5d836 100644 --- a/recipes/groupme/package.json +++ b/recipes/groupme/package.json @@ -1,7 +1,7 @@ { "id": "groupme", "name": "GroupMe", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://web.groupme.com", diff --git a/recipes/groupme/webview.js b/recipes/groupme/webview.js index 5ad4c9d..4f225b3 100644 --- a/recipes/groupme/webview.js +++ b/recipes/groupme/webview.js @@ -1,11 +1,10 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directMessages = document.querySelectorAll('.badge-count:not(.ng-hide)').length; - // set Franz badge - Franz.setBadge(directMessages); + // set Ferdi badge + Ferdi.setBadge(directMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdyb3VwbWUvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImRpcmVjdE1lc3NhZ2VzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwibGVuZ3RoIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWtCQyxLQUFELElBQVc7QUFDMUIsUUFBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQ3pDLFVBQU1DLGlCQUFpQkMsU0FBU0MsZ0JBQVQsQ0FBMEIsNEJBQTFCLEVBQXdEQyxNQUEvRTs7QUFFQTtBQUNBTCxVQUFNTSxRQUFOLENBQWVKLGNBQWY7QUFDRCxHQUxEOztBQU9BRixRQUFNTyxJQUFOLENBQVdOLFdBQVg7QUFDRCxDQVREIiwiZmlsZSI6Imdyb3VwbWUvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56KSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgY29uc3QgZGlyZWN0TWVzc2FnZXMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuYmFkZ2UtY291bnQ6bm90KC5uZy1oaWRlKScpLmxlbmd0aDtcblxuICAgIC8vIHNldCBGcmFueiBiYWRnZVxuICAgIEZyYW56LnNldEJhZGdlKGRpcmVjdE1lc3NhZ2VzKTtcbiAgfTtcblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn07XG4iXX0= diff --git a/recipes/guilded/index.js b/recipes/guilded/index.js index 258da41..23607bd 100644 --- a/recipes/guilded/index.js +++ b/recipes/guilded/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/guilded/package.json b/recipes/guilded/package.json index 385798f..7366a6e 100644 --- a/recipes/guilded/package.json +++ b/recipes/guilded/package.json @@ -1,7 +1,7 @@ { "id": "guilded", "name": "Guilded", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.guilded.gg/", diff --git a/recipes/guilded/webview.js b/recipes/guilded/webview.js index 72a49b4..ccace71 100644 --- a/recipes/guilded/webview.js +++ b/recipes/guilded/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let unread = 0; const notificationBadge = document.getElementsByClassName('NavSelectorItem-unread-badge')[0]; @@ -6,8 +6,8 @@ module.exports = Franz => { const innerBadge = notificationBadge.getElementsByClassName('BadgeV2-count')[0]; unread = innerBadge.innerText; } - Franz.setBadge(parseInt(unread, 10)); + Ferdi.setBadge(parseInt(unread, 10)); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/habitica/index.js b/recipes/habitica/index.js index 258da41..23607bd 100755 --- a/recipes/habitica/index.js +++ b/recipes/habitica/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/habitica/package.json b/recipes/habitica/package.json index 86539a4..574a5d8 100755 --- a/recipes/habitica/package.json +++ b/recipes/habitica/package.json @@ -1,7 +1,7 @@ { "id": "habitica", "name": "Habitica", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/lmnet/franz-recipe-notion", "config": { diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js index 5eb1c1c..3b443c5 100755 --- a/recipes/habitica/webview.js +++ b/recipes/habitica/webview.js @@ -1,12 +1,12 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = () => { let count = 0; const element = document.querySelector('.message-count'); if (element) { count = Number(element.innerText); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/hackmd/index.js b/recipes/hackmd/index.js index 46335da..c3d5c52 100644 --- a/recipes/hackmd/index.js +++ b/recipes/hackmd/index.js @@ -1,4 +1,3 @@ -// just pass through Franz // todo allow custom url -module.exports = Franz => class HackMd extends Franz { +module.exports = Ferdi => class HackMd extends Ferdi { }; diff --git a/recipes/hackmd/package.json b/recipes/hackmd/package.json index 6da2d32..708da11 100644 --- a/recipes/hackmd/package.json +++ b/recipes/hackmd/package.json @@ -1,7 +1,7 @@ { "id": "hackmd", "name": "HackMd", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://hackmd.io", diff --git a/recipes/hackmd/webview.js b/recipes/hackmd/webview.js index 45cec03..82ce58d 100644 --- a/recipes/hackmd/webview.js +++ b/recipes/hackmd/webview.js @@ -1,17 +1,18 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = function getMessages() { // get unread messages const count = document.querySelectorAll('.guilds-wrapper .badge').length; - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); // Hide download message - Franz.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/hangouts/index.js b/recipes/hangouts/index.js index 4132ba2..0a1336f 100644 --- a/recipes/hangouts/index.js +++ b/recipes/hangouts/index.js @@ -1,2 +1,2 @@ -module.exports = (Franz) => class Hangouts extends Franz { +module.exports = (Ferdi) => class Hangouts extends Ferdi { }; diff --git a/recipes/hangouts/package.json b/recipes/hangouts/package.json index 0830635..cad4216 100644 --- a/recipes/hangouts/package.json +++ b/recipes/hangouts/package.json @@ -1,7 +1,7 @@ { "id": "hangouts", "name": "Hangouts", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://hangouts.google.com", diff --git a/recipes/hangouts/webview.js b/recipes/hangouts/webview.js index 8d588e9..41fced1 100644 --- a/recipes/hangouts/webview.js +++ b/recipes/hangouts/webview.js @@ -1,13 +1,11 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { // get unread messages const count = document.querySelector('#hangout-landing-chat iframe').contentWindow.document.querySelectorAll('.ee').length; - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhhbmdvdXRzL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJjb3VudCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsImNvbnRlbnRXaW5kb3ciLCJxdWVyeVNlbGVjdG9yQWxsIiwibGVuZ3RoIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7QUFFQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QztBQUNBLFVBQU1DLFFBQVFDLFNBQVNDLGFBQVQsQ0FBdUIsOEJBQXZCLEVBQ1hDLGFBRFcsQ0FDR0YsUUFESCxDQUNZRyxnQkFEWixDQUM2QixLQUQ3QixFQUVYQyxNQUZIOztBQUlBO0FBQ0FQLFVBQU1RLFFBQU4sQ0FBZU4sS0FBZjtBQUNELEdBUkQ7O0FBVUE7QUFDQUYsUUFBTVMsSUFBTixDQUFXUixXQUFYO0FBQ0QsQ0FiRCIsImZpbGUiOiJoYW5nb3V0cy93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHBhdGggZnJvbSAncGF0aCc7XG5cbm1vZHVsZS5leHBvcnRzID0gKEZyYW56KSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgLy8gZ2V0IHVucmVhZCBtZXNzYWdlc1xuICAgIGNvbnN0IGNvdW50ID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignI2hhbmdvdXQtbGFuZGluZy1jaGF0IGlmcmFtZScpXG4gICAgICAuY29udGVudFdpbmRvdy5kb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuZWUnKVxuICAgICAgLmxlbmd0aDtcblxuICAgIC8vIHNldCBGcmFueiBiYWRnZVxuICAgIEZyYW56LnNldEJhZGdlKGNvdW50KTtcbiAgfTtcblxuICAvLyBjaGVjayBmb3IgbmV3IG1lc3NhZ2VzIGV2ZXJ5IHNlY29uZCBhbmQgdXBkYXRlIEZyYW56IGJhZGdlXG4gIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== diff --git a/recipes/hangoutschat/index.js b/recipes/hangoutschat/index.js index c6173fa..6bed9d7 100644 --- a/recipes/hangoutschat/index.js +++ b/recipes/hangoutschat/index.js @@ -1,5 +1,2 @@ -const os = require('os'); - -// just pass through Franz -module.exports = Franz => class HangoutsChat extends Franz { +module.exports = Ferdi => class HangoutsChat extends Ferdi { }; diff --git a/recipes/hangoutschat/package.json b/recipes/hangoutschat/package.json index a6d8ffe..6bbfba4 100644 --- a/recipes/hangoutschat/package.json +++ b/recipes/hangoutschat/package.json @@ -1,7 +1,7 @@ { "id": "hangoutschat", "name": "Hangouts Chat", - "version": "1.4.6", + "version": "1.5.0", "license": "MIT", "aliases": [ "google-chat", diff --git a/recipes/hangoutschat/webview.js b/recipes/hangoutschat/webview.js index 0f17116..0244d33 100644 --- a/recipes/hangoutschat/webview.js +++ b/recipes/hangoutschat/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { // class corresponding to the red badge that is visible for direct messages const directMessageSelector = 'div.V6.CL.su.ahD.X9.Y2 span.akt span.XU'; @@ -12,10 +12,12 @@ module.exports = (Franz) => { // get unread indirect messages const indirectCount = Number(document.querySelector(indirectMessageSelector).innerText); - // set Franz badge - Franz.setBadge(directCount, indirectCount); + // set Ferdi badge + Ferdi.setBadge(directCount, indirectCount); }; + Ferdi.loop(getMessages); + document.addEventListener('click', (e) => { const { tagName, target, href } = e.target; @@ -25,7 +27,4 @@ module.exports = (Franz) => { window.open(href); } }); - - // check for new messages every second and update Franz badge - Franz.loop(getMessages); }; diff --git a/recipes/harvest/index.js b/recipes/harvest/index.js index 258da41..23607bd 100644 --- a/recipes/harvest/index.js +++ b/recipes/harvest/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/harvest/package.json b/recipes/harvest/package.json index 38200bb..76cf70a 100644 --- a/recipes/harvest/package.json +++ b/recipes/harvest/package.json @@ -1,7 +1,7 @@ { "id": "harvest", "name": "Harvest", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.harvestapp.com", diff --git a/recipes/hipchat/index.js b/recipes/hipchat/index.js index f39569a..5c550d8 100644 --- a/recipes/hipchat/index.js +++ b/recipes/hipchat/index.js @@ -1,6 +1,6 @@ function _asyncToGenerator(fn) { return function () { const gen = fn.apply(this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (err) => { step('throw', err); }); } } return step('next'); }); }; } -module.exports = Franz => class HipChat extends Franz { +module.exports = Ferdi => class HipChat extends Ferdi { validateUrl(url) { return _asyncToGenerator(function* () { try { @@ -25,4 +25,3 @@ module.exports = Franz => class HipChat extends Franz { return `${url}/chat`; } }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhpcGNoYXQvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiSGlwQ2hhdCIsInZhbGlkYXRlVXJsIiwidXJsIiwicmVzcCIsIndpbmRvdyIsImZldGNoIiwibWV0aG9kIiwiaGVhZGVycyIsImRhdGEiLCJqc29uIiwiT2JqZWN0IiwiaGFzT3duUHJvcGVydHkiLCJjYWxsIiwiZXJyIiwiY29uc29sZSIsImVycm9yIiwiYnVpbGRVcmwiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUyxNQUFNQyxPQUFOLFNBQXNCRCxLQUF0QixDQUE0QjtBQUM5Q0UsYUFBTixDQUFrQkMsR0FBbEIsRUFBdUI7QUFBQTtBQUNyQixVQUFJO0FBQ0YsY0FBTUMsT0FBTyxNQUFNQyxPQUFPQyxLQUFQLENBQWMsR0FBRUgsR0FBSSxlQUFwQixFQUFvQztBQUNyREksa0JBQVEsS0FENkM7QUFFckRDLG1CQUFTO0FBQ1AsNEJBQWdCO0FBRFQ7QUFGNEMsU0FBcEMsQ0FBbkI7QUFNQSxjQUFNQyxPQUFPLE1BQU1MLEtBQUtNLElBQUwsRUFBbkI7O0FBRUEsZUFBT0MsT0FBT0MsY0FBUCxDQUFzQkMsSUFBdEIsQ0FBMkJKLElBQTNCLEVBQWlDLFVBQWpDLENBQVA7QUFDRCxPQVZELENBVUUsT0FBT0ssR0FBUCxFQUFZO0FBQ1pDLGdCQUFRQyxLQUFSLENBQWNGLEdBQWQ7QUFDRDs7QUFFRCxhQUFPLEtBQVA7QUFmcUI7QUFnQnRCOztBQUVERyxXQUFTZCxHQUFULEVBQWM7QUFDWixXQUFRLEdBQUVBLEdBQUksT0FBZDtBQUNEO0FBckJtRCxDQUF0RCIsImZpbGUiOiJoaXBjaGF0L2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBjbGFzcyBIaXBDaGF0IGV4dGVuZHMgRnJhbnoge1xuICBhc3luYyB2YWxpZGF0ZVVybCh1cmwpIHtcbiAgICB0cnkge1xuICAgICAgY29uc3QgcmVzcCA9IGF3YWl0IHdpbmRvdy5mZXRjaChgJHt1cmx9L2FwaS9mZWF0dXJlc2AsIHtcbiAgICAgICAgbWV0aG9kOiAnR0VUJyxcbiAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICAgIGNvbnN0IGRhdGEgPSBhd2FpdCByZXNwLmpzb24oKTtcblxuICAgICAgcmV0dXJuIE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKGRhdGEsICdmZWF0dXJlcycpO1xuICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgY29uc29sZS5lcnJvcihlcnIpO1xuICAgIH1cblxuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIGJ1aWxkVXJsKHVybCkge1xuICAgIHJldHVybiBgJHt1cmx9L2NoYXRgO1xuICB9XG59O1xuIl19 diff --git a/recipes/hipchat/package.json b/recipes/hipchat/package.json index d001af4..dbcc059 100644 --- a/recipes/hipchat/package.json +++ b/recipes/hipchat/package.json @@ -1,7 +1,7 @@ { "id": "hipchat", "name": "HipChat", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.hipchat.com/chat", diff --git a/recipes/hipchat/webview.js b/recipes/hipchat/webview.js index b888e30..c201f00 100644 --- a/recipes/hipchat/webview.js +++ b/recipes/hipchat/webview.js @@ -1,11 +1,11 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directMessages = document.querySelectorAll('.hc-mention').length; const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; - // set Franz badge - Franz.setBadge(directMessages, allMessages); + // set Ferdi badge + Ferdi.setBadge(directMessages, allMessages); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhpcGNoYXQvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImRpcmVjdE1lc3NhZ2VzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwibGVuZ3RoIiwiYWxsTWVzc2FnZXMiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixRQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDekMsVUFBTUMsaUJBQWlCQyxTQUFTQyxnQkFBVCxDQUEwQixhQUExQixFQUF5Q0MsTUFBaEU7QUFDQSxVQUFNQyxjQUFjSCxTQUFTQyxnQkFBVCxDQUEwQiw2QkFBMUIsRUFBeURDLE1BQXpELEdBQWtFSCxjQUF0Rjs7QUFFQTtBQUNBRixVQUFNTyxRQUFOLENBQWVMLGNBQWYsRUFBK0JJLFdBQS9CO0FBQ0QsR0FORDtBQU9BTixRQUFNUSxJQUFOLENBQVdQLFdBQVg7QUFDRCxDQVREIiwiZmlsZSI6ImhpcGNoYXQvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56KSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgY29uc3QgZGlyZWN0TWVzc2FnZXMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuaGMtbWVudGlvbicpLmxlbmd0aDtcbiAgICBjb25zdCBhbGxNZXNzYWdlcyA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoJy5hdWktYmFkZ2U6bm90KC5oYy1tZW50aW9uKScpLmxlbmd0aCAtIGRpcmVjdE1lc3NhZ2VzO1xuXG4gICAgLy8gc2V0IEZyYW56IGJhZGdlXG4gICAgRnJhbnouc2V0QmFkZ2UoZGlyZWN0TWVzc2FnZXMsIGFsbE1lc3NhZ2VzKTtcbiAgfTtcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/iCloud/index.js b/recipes/iCloud/index.js index 258da41..23607bd 100644 --- a/recipes/iCloud/index.js +++ b/recipes/iCloud/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/iCloud/package.json b/recipes/iCloud/package.json index fcf3f3c..b9fb85a 100644 --- a/recipes/iCloud/package.json +++ b/recipes/iCloud/package.json @@ -1,7 +1,7 @@ { "id": "iCloud", "name": "iCloud", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.icloud.com/" diff --git a/recipes/iCloud/webview.js b/recipes/iCloud/webview.js index a71c1c5..7e19dff 100644 --- a/recipes/iCloud/webview.js +++ b/recipes/iCloud/webview.js @@ -1,2 +1,2 @@ -module.exports = (Franz, options) => { +module.exports = Ferdi => { }; diff --git a/recipes/icq/index.js b/recipes/icq/index.js index 6b679ef..23607bd 100644 --- a/recipes/icq/index.js +++ b/recipes/icq/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImljcS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6ImljcS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/icq/package.json b/recipes/icq/package.json index 13d0f5e..1ce61eb 100644 --- a/recipes/icq/package.json +++ b/recipes/icq/package.json @@ -1,7 +1,7 @@ { "id": "icq", "name": "ICQ", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-icq", "config": { diff --git a/recipes/icq/webview.js b/recipes/icq/webview.js index 9114d24..24271d8 100644 --- a/recipes/icq/webview.js +++ b/recipes/icq/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let directs = 0; @@ -13,9 +13,8 @@ module.exports = Franz => { } } - Franz.setBadge(directs); + Ferdi.setBadge(directs); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImljcS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZGlyZWN0cyIsImRvY3VtZW50IiwiZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSIsImxlbmd0aCIsImVsZW1lbnRzIiwiaSIsImNvdW50TGluZSIsInBhcnNlSW50IiwiaW5uZXJUZXh0IiwicmVwbGFjZSIsImlzTmFOIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQU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DbGFzc05hbWUoJ253YS1tc2ctY291bnRlciBpY3EtcmVjZW50X3N0YXRlLXJlYWQnKS5sZW5ndGggPiAwKSB7XG4gICAgICBjb25zdCBlbGVtZW50cyA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlDbGFzc05hbWUoJ253YS1tc2ctY291bnRlciBpY3EtcmVjZW50X3N0YXRlLXJlYWQnKTtcbiAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgZWxlbWVudHMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgY29uc3QgY291bnRMaW5lID0gcGFyc2VJbnQoZWxlbWVudHNbaV0uaW5uZXJUZXh0LnJlcGxhY2UoL1teMC05Ll0vZywgJycpLCAxMCk7XG4gICAgICAgIGlmICghaXNOYU4oZGlyZWN0cykgJiYgKGNvdW50TGluZSA+IDApKSB7XG4gICAgICAgICAgLy8gZGlyZWN0cyArPSBjb3VudF9saW5lOyAvLyBjb3VudCBldmVyeSBtZXNzYWdlXG4gICAgICAgICAgZGlyZWN0cyArPSAxOyAvLyBjb3VudCAxIHBlciBjaGFubmVsIHdpdGggbWVzc2FnZXNcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIGlmIChpc05hTihkaXJlY3RzKSkge1xuICAgICAgZGlyZWN0cyA9IDA7XG4gICAgfVxuXG4gICAgRnJhbnouc2V0QmFkZ2UoZGlyZWN0cyk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/idobata/index.js b/recipes/idobata/index.js index 65d849e..23607bd 100644 --- a/recipes/idobata/index.js +++ b/recipes/idobata/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlkb2JhdGEvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJpZG9iYXRhL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/idobata/package.json b/recipes/idobata/package.json index 3048ecc..f2b8768 100644 --- a/recipes/idobata/package.json +++ b/recipes/idobata/package.json @@ -1,7 +1,7 @@ { "id": "idobata", "name": "Idobata", - "version": "0.1.2", + "version": "0.2.0", "license": "MIT", "config": { "serviceURL": "https://idobata.io", diff --git a/recipes/idobata/webview.js b/recipes/idobata/webview.js index 7d5c521..dde264e 100644 --- a/recipes/idobata/webview.js +++ b/recipes/idobata/webview.js @@ -1,11 +1,10 @@ -module.exports = Franz => { +module.exports = Ferdi => { function getMessages() { const title = document.querySelector('title').innerHTML.match(/\d+/); const count = title !== null ? title[0] : 0; - Franz.setBadge(count); + Ferdi.setBadge(count); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlkb2JhdGEvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsInRpdGxlIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yIiwiaW5uZXJIVE1MIiwibWF0Y2giLCJjb3VudCIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFdBQVNDLFdBQVQsR0FBdUI7QUFDckIsVUFBTUMsUUFBUUMsU0FBU0MsYUFBVCxDQUF1QixPQUF2QixFQUFnQ0MsU0FBaEMsQ0FBMENDLEtBQTFDLENBQWdELEtBQWhELENBQWQ7QUFDQSxVQUFNQyxRQUFRTCxVQUFVLElBQVYsR0FBaUJBLE1BQU0sQ0FBTixDQUFqQixHQUE0QixDQUExQzs7QUFFQUYsVUFBTVEsUUFBTixDQUFlRCxLQUFmO0FBQ0Q7O0FBRURQLFFBQU1TLElBQU4sQ0FBV1IsV0FBWDtBQUNELENBVEQiLCJmaWxlIjoiaWRvYmF0YS93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSAoRnJhbnopID0+IHtcbiAgZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgY29uc3QgdGl0bGUgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCd0aXRsZScpLmlubmVySFRNTC5tYXRjaCgvXFxkKy8pO1xuICAgIGNvbnN0IGNvdW50ID0gdGl0bGUgIT09IG51bGwgPyB0aXRsZVswXSA6IDA7XG5cbiAgICBGcmFuei5zZXRCYWRnZShjb3VudCk7XG4gIH1cblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn07XG4iXX0= diff --git a/recipes/infomaniak-mail/package.json b/recipes/infomaniak-mail/package.json index f821a69..b991467 100644 --- a/recipes/infomaniak-mail/package.json +++ b/recipes/infomaniak-mail/package.json @@ -1,7 +1,7 @@ { "id": "infomaniak-mail", "name": "Infomaniak Mail", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://mail.infomaniak.com/" diff --git a/recipes/infomaniak-mail/webview.js b/recipes/infomaniak-mail/webview.js index 235a14d..0022949 100644 --- a/recipes/infomaniak-mail/webview.js +++ b/recipes/infomaniak-mail/webview.js @@ -3,5 +3,6 @@ module.exports = Ferdi => { const count = document.querySelector('.ws-tree-node-badge').innerText; Ferdi.setBadge(count ? Number(count.substring(1, count.length - 1)) : 0); } + Ferdi.loop(getMessages); }; diff --git a/recipes/inoreader/index.js b/recipes/inoreader/index.js index 258da41..23607bd 100644 --- a/recipes/inoreader/index.js +++ b/recipes/inoreader/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/inoreader/package.json b/recipes/inoreader/package.json index 2d0e0ed..bc8afb1 100644 --- a/recipes/inoreader/package.json +++ b/recipes/inoreader/package.json @@ -1,7 +1,7 @@ { "id": "inoreader", "name": "Inoreader", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/annagrram/recipe-inoreader", "config": { diff --git a/recipes/inoreader/webview.js b/recipes/inoreader/webview.js index fddee5c..e4733ab 100644 --- a/recipes/inoreader/webview.js +++ b/recipes/inoreader/webview.js @@ -1,11 +1,11 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = () => { const all_articles = document.querySelector('#unread_cnt_all_items'); if (!all_articles) return; const unread_articles_cnt = Number(all_articles.textContent.split('+')[0]); - Franz.setBadge(unread_articles_cnt); + Ferdi.setBadge(unread_articles_cnt); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/instagram/index.js b/recipes/instagram/index.js index 2c7de64..928d5b1 100644 --- a/recipes/instagram/index.js +++ b/recipes/instagram/index.js @@ -1,8 +1,5 @@ -module.exports = Franz => class Instagram extends Franz { +module.exports = Ferdi => class Instagram extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace( - /(Ferdi|Electron)\/\S+ \([^)]+\)/g, - '', - ); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/instagram/package.json b/recipes/instagram/package.json index a3180d3..80391bc 100644 --- a/recipes/instagram/package.json +++ b/recipes/instagram/package.json @@ -1,7 +1,7 @@ { "id": "instagram", "name": "Instagram", - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "config": { "serviceURL": "https://instagram.com/direct/inbox", diff --git a/recipes/instagram/webview.js b/recipes/instagram/webview.js index be54317..b6d9aa3 100644 --- a/recipes/instagram/webview.js +++ b/recipes/instagram/webview.js @@ -1,15 +1,14 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = function getMessages() { const element = document.querySelector('a[href^="/direct/inbox"]'); - - if (element) { - Franz.setBadge(parseInt(element.innerText, 10)); - } + Ferdi.setBadge(element ? parseInt(element.innerText, 10) : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); - Franz.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/intercom/package.json b/recipes/intercom/package.json index f909dbf..fbe3871 100644 --- a/recipes/intercom/package.json +++ b/recipes/intercom/package.json @@ -1,7 +1,7 @@ { "id": "intercom", "name": "Intercom", - "version": "1.0.1", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.intercom.io/", diff --git a/recipes/intercom/webview.js b/recipes/intercom/webview.js index 7882904..18445d8 100644 --- a/recipes/intercom/webview.js +++ b/recipes/intercom/webview.js @@ -1,11 +1,7 @@ module.exports = (Ferdi) => { function getMessages() { const numMessages = parseInt(document.querySelector('.left-nav [data-content="Inbox"] .unread__container .unread').innerHTML.trim()); - if (numMessages >= 0) { - Ferdi.setBadge(numMessages, 0); - } else { - Ferdi.setBadge(0, 0); - } + Ferdi.setBadge(numMessages >= 0 ? numMessages : 0, 0); } Ferdi.loop(getMessages); diff --git a/recipes/irccloud/index.js b/recipes/irccloud/index.js index 45d4144..23607bd 100644 --- a/recipes/irccloud/index.js +++ b/recipes/irccloud/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlyY2Nsb3VkL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiaXJjY2xvdWQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/irccloud/package.json b/recipes/irccloud/package.json index 2744885..89292b0 100644 --- a/recipes/irccloud/package.json +++ b/recipes/irccloud/package.json @@ -1,7 +1,7 @@ { "id": "irccloud", "name": "IRCCloud", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/albertomurillo/recipe-irccloud", "config": { diff --git a/recipes/irccloud/webview.js b/recipes/irccloud/webview.js index 1e98d4f..8ae318d 100644 --- a/recipes/irccloud/webview.js +++ b/recipes/irccloud/webview.js @@ -1,13 +1,10 @@ -const path = require('path'); - -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directMessages = document.getElementsByClassName('buffer conversation active unread activeBadge').length; const indirectMessages = document.getElementsByClassName('buffer channel active unread').length; - Franz.setBadge(directMessages, indirectMessages); + Ferdi.setBadge(directMessages, indirectMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlyY2Nsb3VkL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImRpcmVjdE1lc3NhZ2VzIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50c0J5Q2xhc3NOYW1lIiwibGVuZ3RoIiwiaW5kaXJlY3RNZXNzYWdlcyIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNQSxPQUFPQyxRQUFRLE1BQVIsQ0FBYjs7QUFFQUMsT0FBT0MsT0FBUCxHQUFrQk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@@ -1,8 +1,5 @@ -module.exports = (Franz) => class Jira extends Franz { +module.exports = (Ferdi) => class Jira extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace( - /(Ferdi|Electron)\/\S+ \([^)]+\)/g, - '', - ); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/jira/package.json b/recipes/jira/package.json index 4a4ded5..09ace99 100644 --- a/recipes/jira/package.json +++ b/recipes/jira/package.json @@ -1,7 +1,7 @@ { "id": "jira", "name": "Jira", - "version": "1.2.3", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.atlassian.net", diff --git a/recipes/jira/webview.js b/recipes/jira/webview.js index aca65be..f52235d 100644 --- a/recipes/jira/webview.js +++ b/recipes/jira/webview.js @@ -1,14 +1,12 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { // get unread messages const element = document.querySelector('#atlassian-navigation-notification-count span'); let count = element ? element.innerText : 0; count = parseInt(count, 10); - // set Franz badge - Franz.setBadge(count); + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/jitsi/index.js b/recipes/jitsi/index.js index 8de4268..84925be 100644 --- a/recipes/jitsi/index.js +++ b/recipes/jitsi/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Jitsi extends Franz { +module.exports = Ferdi => class Jitsi extends Ferdi { overrideUserAgent() { return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } diff --git a/recipes/jitsi/package.json b/recipes/jitsi/package.json index 2a84fde..7fffd0e 100644 --- a/recipes/jitsi/package.json +++ b/recipes/jitsi/package.json @@ -1,7 +1,7 @@ { "id": "jitsi", "name": "Jitsi Meet", - "version": "1.0.6", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/sampathBlam/ferdi-jitsi", "config": { diff --git a/recipes/jollor/index.js b/recipes/jollor/index.js index 46f936f..23607bd 100644 --- a/recipes/jollor/index.js +++ b/recipes/jollor/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/jollor/package.json b/recipes/jollor/package.json index a988d10..40c32b5 100644 --- a/recipes/jollor/package.json +++ b/recipes/jollor/package.json @@ -1,7 +1,7 @@ { "id": "jollor", "name": "jollor", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://jollor.com", diff --git a/recipes/jollor/webview.js b/recipes/jollor/webview.js index a575eab..5982ece 100644 --- a/recipes/jollor/webview.js +++ b/recipes/jollor/webview.js @@ -1,12 +1,14 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { function getMessages() { const count = document.querySelector('.user-menu-message-item-count').innerHTML; - - Franz.setBadge(count); + Ferdi.setBadge(count); } - Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); }; diff --git a/recipes/kaizala/index.js b/recipes/kaizala/index.js index f122bf4..7ea3060 100644 --- a/recipes/kaizala/index.js +++ b/recipes/kaizala/index.js @@ -1,8 +1,5 @@ -module.exports = (Franz) => class Messenger extends Franz { +module.exports = (Ferdi) => class Messenger extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace( - /(Ferdi|Electron)\/\S+ \([^)]+\)/g, - '', - ); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/kaizala/package.json b/recipes/kaizala/package.json index 2095d5d..fc18119 100644 --- a/recipes/kaizala/package.json +++ b/recipes/kaizala/package.json @@ -1,7 +1,7 @@ { "id": "kaizala", "name": "Microsoft Kaizala", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-microsoft-kaizala", "config": { diff --git a/recipes/kaizala/webview.js b/recipes/kaizala/webview.js index f370ff1..17ead54 100644 --- a/recipes/kaizala/webview.js +++ b/recipes/kaizala/webview.js @@ -1,8 +1,8 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const count = document.querySelectorAll('.unseen-msg-count').length; - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/keybase.io/index.js b/recipes/keybase.io/index.js index 73ed231..3ffa657 100644 --- a/recipes/keybase.io/index.js +++ b/recipes/keybase.io/index.js @@ -1,2 +1,2 @@ -module.exports = (Franz) => class LineMe extends Franz { +module.exports = (Ferdi) => class LineMe extends Ferdi { }; diff --git a/recipes/keybase.io/package.json b/recipes/keybase.io/package.json index 4772a6f..2818c04 100644 --- a/recipes/keybase.io/package.json +++ b/recipes/keybase.io/package.json @@ -1,7 +1,7 @@ { "id": "keybase.io", "name": "Keybase", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://keybase.io/login", diff --git a/recipes/keybase.io/webview.js b/recipes/keybase.io/webview.js index 8025966..7e19dff 100644 --- a/recipes/keybase.io/webview.js +++ b/recipes/keybase.io/webview.js @@ -1,2 +1,2 @@ -module.exports = (Franz) => { +module.exports = Ferdi => { }; diff --git a/recipes/kimai-cloud/index.js b/recipes/kimai-cloud/index.js index 46f936f..23607bd 100644 --- a/recipes/kimai-cloud/index.js +++ b/recipes/kimai-cloud/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/kimai-cloud/package.json b/recipes/kimai-cloud/package.json index 550d0ef..f4c1dcf 100644 --- a/recipes/kimai-cloud/package.json +++ b/recipes/kimai-cloud/package.json @@ -1,7 +1,7 @@ { "id": "kimaicloud", "name": "Kimai Cloud", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", "config": { diff --git a/recipes/kimai-cloud/webview.js b/recipes/kimai-cloud/webview.js index fd12ce8..f4e2e9f 100644 --- a/recipes/kimai-cloud/webview.js +++ b/recipes/kimai-cloud/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { let count = 0; @@ -8,8 +8,8 @@ module.exports = (Franz) => { count = label.textContent; } - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; document.addEventListener('click', (e) => { @@ -22,6 +22,5 @@ module.exports = (Franz) => { } }); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/lark/index.js b/recipes/lark/index.js index 258da41..23607bd 100644 --- a/recipes/lark/index.js +++ b/recipes/lark/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/lark/package.json b/recipes/lark/package.json index 6f64a10..81c2a37 100644 --- a/recipes/lark/package.json +++ b/recipes/lark/package.json @@ -1,7 +1,7 @@ { "id": "lark", "name": "Lark", - "version": "0.0.4", + "version": "0.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.larksuite.com/messenger/", diff --git a/recipes/lark/webview.js b/recipes/lark/webview.js index d4e88e1..5e32219 100644 --- a/recipes/lark/webview.js +++ b/recipes/lark/webview.js @@ -1,16 +1,19 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = function getMessages() { const ele = document.querySelectorAll('.larkc-badge-count.navbarMenu-badge'); if (!ele.length) { - Franz.setBadge(0); + Ferdi.setBadge(0); return; } const messages = parseInt(ele[0].innerHTML, 10); - Franz.setBadge(messages); + Ferdi.setBadge(messages); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/lastpass/index.js b/recipes/lastpass/index.js index 16c9047..e0daab9 100644 --- a/recipes/lastpass/index.js +++ b/recipes/lastpass/index.js @@ -1,5 +1,5 @@ -module.exports = Franz => class Messenger extends Franz { +module.exports = Ferdi => class Messenger extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, ''); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/lastpass/package.json b/recipes/lastpass/package.json index b54e92a..d45cb4b 100644 --- a/recipes/lastpass/package.json +++ b/recipes/lastpass/package.json @@ -1,7 +1,7 @@ { "id": "lastpass", "name": "LastPass", - "version": "2.0.2", + "version": "2.1.0", "license": "MIT", "config": { "serviceURL": "https://lastpass.com/?ac=1&lpnorefresh=1", diff --git a/recipes/lastpass/webview.js b/recipes/lastpass/webview.js index bed9a32..d4090b3 100644 --- a/recipes/lastpass/webview.js +++ b/recipes/lastpass/webview.js @@ -1,13 +1,13 @@ -const { - remote, -} = require('electron'); +const _path = _interopRequireDefault(require('path')); -const path = require('path'); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const { remote } = require('electron'); const webContents = remote.getCurrentWebContents(); -const { - session, -} = webContents; + +const { session } = webContents; + setTimeout(() => { if (document.querySelector('body').innerHTML.includes('Google Chrome 36+')) { window.location.reload(); @@ -29,7 +29,7 @@ window.addEventListener('beforeunload', async () => { } }); -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const elements = document.querySelectorAll('.CxUIE, .unread'); let count = 0; @@ -40,9 +40,10 @@ module.exports = Franz => { } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/line.me/index.js b/recipes/line.me/index.js index 73ed231..3ffa657 100644 --- a/recipes/line.me/index.js +++ b/recipes/line.me/index.js @@ -1,2 +1,2 @@ -module.exports = (Franz) => class LineMe extends Franz { +module.exports = (Ferdi) => class LineMe extends Ferdi { }; diff --git a/recipes/line.me/package.json b/recipes/line.me/package.json index 050ea10..6db3351 100644 --- a/recipes/line.me/package.json +++ b/recipes/line.me/package.json @@ -1,7 +1,7 @@ { "id": "line-me", "name": "Line.me", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://line.me/en", diff --git a/recipes/line.me/webview.js b/recipes/line.me/webview.js index 8025966..7e19dff 100644 --- a/recipes/line.me/webview.js +++ b/recipes/line.me/webview.js @@ -1,2 +1,2 @@ -module.exports = (Franz) => { +module.exports = Ferdi => { }; diff --git a/recipes/linkedin/index.js b/recipes/linkedin/index.js index 4686493..23607bd 100644 --- a/recipes/linkedin/index.js +++ b/recipes/linkedin/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpbmtlZGluL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoibGlua2VkaW4vaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/linkedin/package.json b/recipes/linkedin/package.json index dce9858..e595182 100644 --- a/recipes/linkedin/package.json +++ b/recipes/linkedin/package.json @@ -1,7 +1,7 @@ { "id": "linkedin", "name": "LinkedIn", - "version": "1.1.0", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://www.linkedin.com/messaging" diff --git a/recipes/linkedin/webview.js b/recipes/linkedin/webview.js index 6aa851a..f109b0d 100644 --- a/recipes/linkedin/webview.js +++ b/recipes/linkedin/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; @@ -12,11 +12,8 @@ module.exports = Franz => { } } - // set Franz badge - Franz.setBadge(count); + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpbmtlZGluL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJjb3VudCIsIndpbmRvdyIsImxvY2F0aW9uIiwicGF0aG5hbWUiLCJpbmNsdWRlcyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImxlbmd0aCIsImVsZW1lbnQiLCJxdWVyeVNlbGVjdG9yIiwicGFyc2VJbnQiLCJpbm5lckhUTUwiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixRQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDekMsUUFBSUMsUUFBUSxDQUFaOztBQUVBLFFBQUlDLE9BQU9DLFFBQVAsQ0FBZ0JDLFFBQWhCLENBQXlCQyxRQUF6QixDQUFrQyxXQUFsQyxDQUFKLEVBQW9EO0FBQ2xESixjQUFRSyxTQUFTQyxnQkFBVCxDQUEwQixzQ0FBMUIsRUFBa0VDLE1BQTFFO0FBQ0QsS0FGRCxNQUVPO0FBQ0wsWUFBTUMsVUFBVUgsU0FBU0ksYUFBVCxDQUF1Qiw2Q0FBdkIsQ0FBaEI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zYWdlcyk7XG59O1xuIl19 diff --git a/recipes/mailbox.org/index.js b/recipes/mailbox.org/index.js index 5c9f5a4..23607bd 100644 --- a/recipes/mailbox.org/index.js +++ b/recipes/mailbox.org/index.js @@ -1,2 +1 @@ -// default integration (e.g messenger.com, ...) -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/mailbox.org/package.json b/recipes/mailbox.org/package.json index 4d7d76b..c99d244 100644 --- a/recipes/mailbox.org/package.json +++ b/recipes/mailbox.org/package.json @@ -1,7 +1,7 @@ { "id": "mailbox.org", "name": "mailbox.org", - "version": "1.2.4", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://office.mailbox.org/appsuite/#!!&app=io.ox/portal" diff --git a/recipes/mailbox.org/webview.js b/recipes/mailbox.org/webview.js index c195089..489dc94 100644 --- a/recipes/mailbox.org/webview.js +++ b/recipes/mailbox.org/webview.js @@ -1,8 +1,9 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { const count = document.querySelectorAll('.new-item').length; - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; diff --git a/recipes/mastodon/index.js b/recipes/mastodon/index.js index 14a7917..1dd93cc 100644 --- a/recipes/mastodon/index.js +++ b/recipes/mastodon/index.js @@ -1,5 +1,5 @@ -module.exports = (Franz) => { - class Mastodon extends Franz { +module.exports = (Ferdi) => { + class Mastodon extends Ferdi { validateServer(URL) { const api = `${URL}`; return new Promise((resolve, reject) => { diff --git a/recipes/mastodon/package.json b/recipes/mastodon/package.json index edcc561..825fbc5 100644 --- a/recipes/mastodon/package.json +++ b/recipes/mastodon/package.json @@ -1,7 +1,7 @@ { "name": "Mastodon", "id": "mastodon", - "version": "1.1.4", + "version": "1.2.0", "license": "MIT", "config": { "hasNotificationSound": true, diff --git a/recipes/mastodon/webview.js b/recipes/mastodon/webview.js index 1abe7b4..b349220 100644 --- a/recipes/mastodon/webview.js +++ b/recipes/mastodon/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { let latestStatement = $('.status time').attr('datetime'); let latestNotify = $($('.notification__message span').get(0)).text(); @@ -21,8 +21,8 @@ module.exports = (Franz, options) => { unread = 1; } - Franz.setBadge(reply, unread); + Ferdi.setBadge(reply, unread); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/mattermost/index.js b/recipes/mattermost/index.js index 8ae5c17..290cdbc 100644 --- a/recipes/mattermost/index.js +++ b/recipes/mattermost/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Mattermost extends Franz { +module.exports = Ferdi => class Mattermost extends Ferdi { async validateUrl(url) { try { const resp = await window.fetch(url, { diff --git a/recipes/mattermost/package.json b/recipes/mattermost/package.json index d6666ef..befe718 100644 --- a/recipes/mattermost/package.json +++ b/recipes/mattermost/package.json @@ -1,7 +1,7 @@ { "id": "mattermost", "name": "Mattermost", - "version": "1.2.5", + "version": "1.3.0", "license": "MIT", "config": { "hasNotificationSound": true, diff --git a/recipes/mattermost/webview.js b/recipes/mattermost/webview.js index 1d2a39c..88d1b80 100644 --- a/recipes/mattermost/webview.js +++ b/recipes/mattermost/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const DIRECT_MESSAGES_INDIVIDUAL = '#sidebar-left .unread-title .DirectChannel__profile-picture'; const DIRECT_MESSAGES_GROUP = '#sidebar-left .unread-title .status--group'; const DIRECT_MESSAGES_LEGACY = '.sidebar--left .has-badge .badge'; @@ -15,8 +15,8 @@ module.exports = Franz => { const teamDirectMessages = document.querySelectorAll('.team-wrapper .team-container .badge').length; const teamMessages = document.querySelectorAll('.team-wrapper .unread').length - teamDirectMessages; - Franz.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); + Ferdi.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/messenger/index.js b/recipes/messenger/index.js index f122bf4..7ea3060 100644 --- a/recipes/messenger/index.js +++ b/recipes/messenger/index.js @@ -1,8 +1,5 @@ -module.exports = (Franz) => class Messenger extends Franz { +module.exports = (Ferdi) => class Messenger extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace( - /(Ferdi|Electron)\/\S+ \([^)]+\)/g, - '', - ); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/messenger/package.json b/recipes/messenger/package.json index 8fd27c3..ba84ed5 100644 --- a/recipes/messenger/package.json +++ b/recipes/messenger/package.json @@ -1,7 +1,7 @@ { "id": "messenger", "name": "Messenger", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://messenger.com", diff --git a/recipes/messenger/webview.js b/recipes/messenger/webview.js index b146261..098c6f5 100644 --- a/recipes/messenger/webview.js +++ b/recipes/messenger/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; @@ -31,17 +31,18 @@ module.exports = Franz => { count += parseInt(messageRequestsElement.innerHTML, 10); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); + localStorage.setItem('_cs_desktopNotifsEnabled', JSON.stringify({ __t: new Date().getTime(), __v: true, })); - if (typeof Franz.onNotify === 'function') { - Franz.onNotify(notification => { + if (typeof Ferdi.onNotify === 'function') { + Ferdi.onNotify(notification => { if (typeof notification.title !== 'string') { notification.title = ((notification.title.props || {}).content || [])[0] || 'Messenger'; } diff --git a/recipes/monday/index.js b/recipes/monday/index.js index 258da41..23607bd 100644 --- a/recipes/monday/index.js +++ b/recipes/monday/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/monday/package.json b/recipes/monday/package.json index 30436b6..35556a8 100644 --- a/recipes/monday/package.json +++ b/recipes/monday/package.json @@ -1,7 +1,7 @@ { "id": "monday", "name": "Monday", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.monday.com", diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js index e07e784..bdd73ca 100755 --- a/recipes/monday/webview.js +++ b/recipes/monday/webview.js @@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; @@ -12,9 +12,10 @@ module.exports = Franz => { count += parseInt(counters[i].textContent); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/monicahq/index.js b/recipes/monicahq/index.js index 46f936f..23607bd 100755 --- a/recipes/monicahq/index.js +++ b/recipes/monicahq/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/monicahq/package.json b/recipes/monicahq/package.json index ade505e..e3413bf 100755 --- a/recipes/monicahq/package.json +++ b/recipes/monicahq/package.json @@ -1,7 +1,7 @@ { "id": "monicahq", "name": "Monica HQ", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/jkbecker/recipe-monica", "config": { diff --git a/recipes/msteams/index.js b/recipes/msteams/index.js index 9d4c279..d1bd721 100644 --- a/recipes/msteams/index.js +++ b/recipes/msteams/index.js @@ -1,5 +1,5 @@ -module.exports = Franz => class MicrosoftTeams extends Franz { +module.exports = Ferdi => class MicrosoftTeams extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, ''); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/msteams/package.json b/recipes/msteams/package.json index 7ddfcaa..9ccc53a 100644 --- a/recipes/msteams/package.json +++ b/recipes/msteams/package.json @@ -1,7 +1,7 @@ { "id": "msteams", "name": "Microsoft Teams", - "version": "3.0.2", + "version": "3.1.0", "license": "MIT", "aliases": [ "teamsChat" diff --git a/recipes/msteams/webview.js b/recipes/msteams/webview.js index 26147dc..8e971ec 100644 --- a/recipes/msteams/webview.js +++ b/recipes/msteams/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = () => { let messages = 0; const badge = document.querySelector('.activity-badge.dot-activity-badge .activity-badge'); @@ -13,10 +15,11 @@ module.exports = Franz => { const indirectMessages = document.querySelectorAll('[class*=channel-anchor][class*=ts-unread-channel]').length; - Franz.setBadge(messages, indirectMessages); + Ferdi.setBadge(messages, indirectMessages); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; diff --git a/recipes/mstodo/package.json b/recipes/mstodo/package.json index 3378111..c4fae20 100644 --- a/recipes/mstodo/package.json +++ b/recipes/mstodo/package.json @@ -1,7 +1,7 @@ { "id": "mstodo", "name": "Microsoft To Do", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://to-do.live.com/tasks/", diff --git a/recipes/mstodo/webview.js b/recipes/mstodo/webview.js index 303e816..1fd8795 100644 --- a/recipes/mstodo/webview.js +++ b/recipes/mstodo/webview.js @@ -18,5 +18,6 @@ module.exports = Ferdi => { }; Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/mysms/index.js b/recipes/mysms/index.js index 07ce5be..23607bd 100644 --- a/recipes/mysms/index.js +++ b/recipes/mysms/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm15c21zL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoibXlzbXMvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/mysms/package.json b/recipes/mysms/package.json index 9cd4f61..29cff0b 100644 --- a/recipes/mysms/package.json +++ b/recipes/mysms/package.json @@ -1,7 +1,7 @@ { "id": "mysms", "name": "MySMS", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.mysms.com" diff --git a/recipes/mysms/webview.js b/recipes/mysms/webview.js index c069cb9..f8660ee 100644 --- a/recipes/mysms/webview.js +++ b/recipes/mysms/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const elements = document.getElementsByClassName('unread'); @@ -10,9 +10,8 @@ module.exports = Franz => { } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm15c21zL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJlbGVtZW50cyIsImRvY3VtZW50IiwiZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSIsImNvdW50Ii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XHRsZXQgY291bnRfbGluZSA9IHBhcnNlSW50KGVsZW1lbnRzW2ldLmlubmVyVGV4dC5yZXBsYWNlKC9bXjAtOS5dL2csIFwiXCIpKTtcbiAgXHRcdGlmIChjb3VudF9saW5lID4gMCkge1xuICBcdFx0XHRjb3VudCsrOyAvLyBjb3VudCAxIHBlciBjaGFubmVsIHdpdGggbWVzc2FnZXNcbiAgXHRcdH1cbiAgXHR9XG5cbiAgICBGcmFuei5zZXRCYWRnZShjb3VudCk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/netatmo-energy/index.js b/recipes/netatmo-energy/index.js index 0b926e1..23607bd 100644 --- a/recipes/netatmo-energy/index.js +++ b/recipes/netatmo-energy/index.js @@ -1,4 +1 @@ -// just pass through Franz -module.exports = function (Franz) { - return Franz; -}; +module.exports = Ferdi => Ferdi; diff --git a/recipes/netatmo-energy/package.json b/recipes/netatmo-energy/package.json index e30cfe4..b429e7d 100644 --- a/recipes/netatmo-energy/package.json +++ b/recipes/netatmo-energy/package.json @@ -1,7 +1,7 @@ { "id": "netatmo-energy", "name": "Netatmo Energy", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/rctneil/franz-recipe-netatmo-energy", "config": { diff --git a/recipes/netatmo-energy/webview.js b/recipes/netatmo-energy/webview.js index 4fed51b..7e19dff 100644 --- a/recipes/netatmo-energy/webview.js +++ b/recipes/netatmo-energy/webview.js @@ -1,3 +1,2 @@ -module.exports = (Franz) => { - +module.exports = Ferdi => { }; diff --git a/recipes/nextcloud-calendar/index.js b/recipes/nextcloud-calendar/index.js index ba017dc..972816c 100644 --- a/recipes/nextcloud-calendar/index.js +++ b/recipes/nextcloud-calendar/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class NextcloudCarnet extends Franz { +module.exports = Ferdi => class NextcloudCarnet extends Ferdi { buildUrl(url) { return `${url}/apps/calendar/`; } diff --git a/recipes/nextcloud-calendar/package.json b/recipes/nextcloud-calendar/package.json index 75157cc..02218d9 100644 --- a/recipes/nextcloud-calendar/package.json +++ b/recipes/nextcloud-calendar/package.json @@ -1,7 +1,7 @@ { "id": "nextcloud-calendar", "name": "Nextcloud Calendar", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud-calendar", "config": { diff --git a/recipes/nextcloud-calendar/webview.js b/recipes/nextcloud-calendar/webview.js index 2affdbf..34efa7c 100644 --- a/recipes/nextcloud-calendar/webview.js +++ b/recipes/nextcloud-calendar/webview.js @@ -1,8 +1,6 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { const getMessages = function getMessages() { @@ -14,5 +12,6 @@ module.exports = Ferdi => { }; Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/nextcloud-carnet/index.js b/recipes/nextcloud-carnet/index.js index 24dd528..d983e26 100644 --- a/recipes/nextcloud-carnet/index.js +++ b/recipes/nextcloud-carnet/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class NextcloudCarnet extends Franz { +module.exports = Ferdi => class NextcloudCarnet extends Ferdi { buildUrl(url) { return `${url}/apps/carnet/`; } diff --git a/recipes/nextcloud-carnet/package.json b/recipes/nextcloud-carnet/package.json index ab7e828..264cbd9 100644 --- a/recipes/nextcloud-carnet/package.json +++ b/recipes/nextcloud-carnet/package.json @@ -1,7 +1,7 @@ { "id": "nextcloud-carnet", "name": "Carnet (Nextcloud)", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud-carnet", "config": { diff --git a/recipes/nextcloud-carnet/webview.js b/recipes/nextcloud-carnet/webview.js index ab6d5f9..8152a24 100644 --- a/recipes/nextcloud-carnet/webview.js +++ b/recipes/nextcloud-carnet/webview.js @@ -1,10 +1,8 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const direct = document.querySelectorAll( '.app-navigation-entry-utils-counter.highlighted', @@ -13,9 +11,10 @@ module.exports = Franz => { '.app-navigation-entry-utils-counter:not(.highlighted)', ).length; - Franz.setBadge(direct, indirect); + Ferdi.setBadge(direct, indirect); }; - Franz.loop(getMessages); - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/nextcloud-cospend/index.js b/recipes/nextcloud-cospend/index.js index e1f6354..633774b 100644 --- a/recipes/nextcloud-cospend/index.js +++ b/recipes/nextcloud-cospend/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class NextcloudCarnet extends Franz { +module.exports = Ferdi => class NextcloudCarnet extends Ferdi { buildUrl(url) { return `${url}/apps/cospend/`; } diff --git a/recipes/nextcloud-cospend/package.json b/recipes/nextcloud-cospend/package.json index cb3191f..58d9782 100644 --- a/recipes/nextcloud-cospend/package.json +++ b/recipes/nextcloud-cospend/package.json @@ -1,7 +1,7 @@ { "id": "nextcloud-cospend", "name": "Nextcloud Cospend", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud-cospend", "config": { diff --git a/recipes/nextcloud-cospend/webview.js b/recipes/nextcloud-cospend/webview.js index ab6d5f9..8152a24 100644 --- a/recipes/nextcloud-cospend/webview.js +++ b/recipes/nextcloud-cospend/webview.js @@ -1,10 +1,8 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const direct = document.querySelectorAll( '.app-navigation-entry-utils-counter.highlighted', @@ -13,9 +11,10 @@ module.exports = Franz => { '.app-navigation-entry-utils-counter:not(.highlighted)', ).length; - Franz.setBadge(direct, indirect); + Ferdi.setBadge(direct, indirect); }; - Franz.loop(getMessages); - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/nextcloud-talk/index.js b/recipes/nextcloud-talk/index.js index ad8f01f..5cd6acb 100644 --- a/recipes/nextcloud-talk/index.js +++ b/recipes/nextcloud-talk/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Nextcloud extends Franz { +module.exports = Ferdi => class Nextcloud extends Ferdi { buildUrl(url) { return `${url}/apps/spreed/`; } diff --git a/recipes/nextcloud-talk/package.json b/recipes/nextcloud-talk/package.json index e816f0f..553376c 100644 --- a/recipes/nextcloud-talk/package.json +++ b/recipes/nextcloud-talk/package.json @@ -1,7 +1,7 @@ { "id": "nextcloud-talk", "name": "Nextcloud Talk", - "version": "1.0.6", + "version": "1.1.0", "license": "MIT", "config": { "hasNotificationSound": true, diff --git a/recipes/nextcloud-talk/webview.js b/recipes/nextcloud-talk/webview.js index 12c2230..b368d7c 100644 --- a/recipes/nextcloud-talk/webview.js +++ b/recipes/nextcloud-talk/webview.js @@ -1,8 +1,6 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { const getMessages = function getMessages() { @@ -28,5 +26,6 @@ module.exports = Ferdi => { }; Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/nextcloud-tasks/index.js b/recipes/nextcloud-tasks/index.js index caaecd3..e62f4b0 100644 --- a/recipes/nextcloud-tasks/index.js +++ b/recipes/nextcloud-tasks/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class NextcloudCarnet extends Franz { +module.exports = Ferdi => class NextcloudCarnet extends Ferdi { buildUrl(url) { return `${url}/apps/tasks/`; } diff --git a/recipes/nextcloud-tasks/package.json b/recipes/nextcloud-tasks/package.json index 52f67ca..89a9b95 100644 --- a/recipes/nextcloud-tasks/package.json +++ b/recipes/nextcloud-tasks/package.json @@ -1,7 +1,7 @@ { "id": "nextcloud-tasks", "name": "Nextcloud Tasks", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud-tasks", "config": { diff --git a/recipes/nextcloud-tasks/webview.js b/recipes/nextcloud-tasks/webview.js index ab6d5f9..8152a24 100644 --- a/recipes/nextcloud-tasks/webview.js +++ b/recipes/nextcloud-tasks/webview.js @@ -1,10 +1,8 @@ const _path = _interopRequireDefault(require('path')); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const direct = document.querySelectorAll( '.app-navigation-entry-utils-counter.highlighted', @@ -13,9 +11,10 @@ module.exports = Franz => { '.app-navigation-entry-utils-counter:not(.highlighted)', ).length; - Franz.setBadge(direct, indirect); + Ferdi.setBadge(direct, indirect); }; - Franz.loop(getMessages); - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/nextcloud/index.js b/recipes/nextcloud/index.js index 798a4d7..66d3347 100644 --- a/recipes/nextcloud/index.js +++ b/recipes/nextcloud/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Nextcloud extends Franz { +module.exports = Ferdi => class Nextcloud extends Ferdi { buildUrl(url) { return `${url}/`; } diff --git a/recipes/nextcloud/package.json b/recipes/nextcloud/package.json index f607117..f4e6a52 100644 --- a/recipes/nextcloud/package.json +++ b/recipes/nextcloud/package.json @@ -1,7 +1,7 @@ { "id": "nextcloud", "name": "Nextcloud", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud", "config": { diff --git a/recipes/nextcloud/webview.js b/recipes/nextcloud/webview.js index 4a90bb1..9779a40 100644 --- a/recipes/nextcloud/webview.js +++ b/recipes/nextcloud/webview.js @@ -1,17 +1,11 @@ -const _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} - -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const direct = document.querySelectorAll( '.notifications .notification-container .notification-wrapper li .notification', ).length; - Franz.setBadge(direct); + Ferdi.setBadge(direct); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/nextdoor/index.js b/recipes/nextdoor/index.js index 258da41..23607bd 100644 --- a/recipes/nextdoor/index.js +++ b/recipes/nextdoor/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/nextdoor/package.json b/recipes/nextdoor/package.json index 86561c0..1e5c75a 100644 --- a/recipes/nextdoor/package.json +++ b/recipes/nextdoor/package.json @@ -1,7 +1,7 @@ { "id": "nextdoor", "name": "Nextdoor", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://nextdoor.co.uk/inbox/" diff --git a/recipes/nextdoor/webview.js b/recipes/nextdoor/webview.js index 280d6a5..0ea8f57 100644 --- a/recipes/nextdoor/webview.js +++ b/recipes/nextdoor/webview.js @@ -1,12 +1,12 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let unread = 0; const notificationBadge = document.getElementsByClassName('notification-badge')[0]; if (notificationBadge != undefined) { unread = notificationBadge.innerText; } - Franz.setBadge(parseInt(unread, 10)); + Ferdi.setBadge(parseInt(unread, 10)); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/nomadlist/index.js b/recipes/nomadlist/index.js index 46f936f..23607bd 100644 --- a/recipes/nomadlist/index.js +++ b/recipes/nomadlist/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/nomadlist/package.json b/recipes/nomadlist/package.json index e9189a1..67aff78 100644 --- a/recipes/nomadlist/package.json +++ b/recipes/nomadlist/package.json @@ -1,7 +1,7 @@ { "id": "nomadlist", "name": "nomadlist", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://nomadlist.com/chat", diff --git a/recipes/nomadlist/webview.js b/recipes/nomadlist/webview.js index be1040c..1afaa1c 100644 --- a/recipes/nomadlist/webview.js +++ b/recipes/nomadlist/webview.js @@ -1,21 +1,7 @@ -const path = require('path'); - -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { - // get unread messages - // const updates = document.getElementById('franz').getAttribute('data-unread'); - const count = $('.unread').length; - Franz.setBadge(count); - - // get conversations in 'My Inbox' - // const inbox = document.getElementById('franz').getAttribute('data-inbox'); - - // set Franz badge - // updates => active unread count - // inbox => passive unread count - // Franz.setBadge(updates, inbox); + Ferdi.setBadge($('.unread').length); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/notion/index.js b/recipes/notion/index.js index 258da41..23607bd 100644 --- a/recipes/notion/index.js +++ b/recipes/notion/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/notion/package.json b/recipes/notion/package.json index 974142c..d5d504c 100644 --- a/recipes/notion/package.json +++ b/recipes/notion/package.json @@ -1,7 +1,7 @@ { "id": "notion", "name": "Notion", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/TanZng/ferdi-notion", "config": { diff --git a/recipes/notion/webview.js b/recipes/notion/webview.js index f87907e..8ef9ff2 100644 --- a/recipes/notion/webview.js +++ b/recipes/notion/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { function getMessages() { let direct = 0; const indirect = 0; @@ -7,8 +7,8 @@ module.exports = (Franz) => { direct = parseInt(badgeDiv.innerText); } - Franz.setBadge(direct, indirect); + Ferdi.setBadge(direct, indirect); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/office365-owa/index.js b/recipes/office365-owa/index.js index 5c59e64..89568a6 100644 --- a/recipes/office365-owa/index.js +++ b/recipes/office365-owa/index.js @@ -1,5 +1,3 @@ -const os = require('os'); - module.exports = Ferdi => class Outlook extends Ferdi { overrideUserAgent() { return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); diff --git a/recipes/office365-owa/package.json b/recipes/office365-owa/package.json index 3de926b..63e4a32 100644 --- a/recipes/office365-owa/package.json +++ b/recipes/office365-owa/package.json @@ -1,7 +1,7 @@ { "id": "office365-owa", "name": "Office 365 Outlook Web App", - "version": "1.2.2", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://outlook.office365.com/mail/", diff --git a/recipes/office365-owa/webview.js b/recipes/office365-owa/webview.js index cb63219..123158e 100644 --- a/recipes/office365-owa/webview.js +++ b/recipes/office365-owa/webview.js @@ -28,5 +28,6 @@ module.exports = Ferdi => { Ferdi.setBadge(unreadMail); } + Ferdi.loop(getMessages); }; diff --git a/recipes/onenote/package.json b/recipes/onenote/package.json index ca643b3..66a79a3 100644 --- a/recipes/onenote/package.json +++ b/recipes/onenote/package.json @@ -1,7 +1,7 @@ { "id": "onenote", "name": "OneNote", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://onenote.com" diff --git a/recipes/onenote/webview.js b/recipes/onenote/webview.js index 3ad4701..10157e9 100644 --- a/recipes/onenote/webview.js +++ b/recipes/onenote/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/outlook/index.js b/recipes/outlook/index.js index 5c59e64..89568a6 100644 --- a/recipes/outlook/index.js +++ b/recipes/outlook/index.js @@ -1,5 +1,3 @@ -const os = require('os'); - module.exports = Ferdi => class Outlook extends Ferdi { overrideUserAgent() { return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); diff --git a/recipes/outlook/package.json b/recipes/outlook/package.json index f2224a0..103325b 100644 --- a/recipes/outlook/package.json +++ b/recipes/outlook/package.json @@ -1,7 +1,7 @@ { "id": "outlook", "name": "Outlook Web App", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://outlook.live.com/mail/", diff --git a/recipes/outlook/webview.js b/recipes/outlook/webview.js index cb63219..123158e 100644 --- a/recipes/outlook/webview.js +++ b/recipes/outlook/webview.js @@ -28,5 +28,6 @@ module.exports = Ferdi => { Ferdi.setBadge(unreadMail); } + Ferdi.loop(getMessages); }; diff --git a/recipes/paymoapp/index.js b/recipes/paymoapp/index.js index 258da41..23607bd 100644 --- a/recipes/paymoapp/index.js +++ b/recipes/paymoapp/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/paymoapp/package.json b/recipes/paymoapp/package.json index 20305c2..905f8da 100644 --- a/recipes/paymoapp/package.json +++ b/recipes/paymoapp/package.json @@ -1,7 +1,7 @@ { "id": "paymo", "name": "paymo", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.paymoapp.com/auth/login" diff --git a/recipes/paymoapp/webview.js b/recipes/paymoapp/webview.js index 2cf7146..7e19dff 100644 --- a/recipes/paymoapp/webview.js +++ b/recipes/paymoapp/webview.js @@ -1 +1,2 @@ -module.exports = (Franz, options) => {}; +module.exports = Ferdi => { +}; diff --git a/recipes/pivotal-tracker/index.js b/recipes/pivotal-tracker/index.js index 258da41..23607bd 100644 --- a/recipes/pivotal-tracker/index.js +++ b/recipes/pivotal-tracker/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/pivotal-tracker/package.json b/recipes/pivotal-tracker/package.json index 7c9fb1b..0cc6134 100644 --- a/recipes/pivotal-tracker/package.json +++ b/recipes/pivotal-tracker/package.json @@ -1,7 +1,7 @@ { "id": "pivotal-tracker", "name": "pivotal-tracker", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.pivotaltracker.com/signin", diff --git a/recipes/pivotal-tracker/webview.js b/recipes/pivotal-tracker/webview.js index 1908a36..ef1c8f1 100644 --- a/recipes/pivotal-tracker/webview.js +++ b/recipes/pivotal-tracker/webview.js @@ -1,11 +1,9 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getMessages() { const bell = document.querySelectorAll('#view65 > span')[0]; - counter = parseInt(bell.innerText); - - Franz.setBadge(counter); + Ferdi.setBadge(counter); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/plan/index.js b/recipes/plan/index.js index 46f936f..23607bd 100644 --- a/recipes/plan/index.js +++ b/recipes/plan/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/plan/package.json b/recipes/plan/package.json index a6f8a7a..29e0198 100644 --- a/recipes/plan/package.json +++ b/recipes/plan/package.json @@ -1,7 +1,7 @@ { "id": "plan", "name": "plan", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://getplan.co/", diff --git a/recipes/plan/webview.js b/recipes/plan/webview.js index 11308dd..7e19dff 100644 --- a/recipes/plan/webview.js +++ b/recipes/plan/webview.js @@ -1,3 +1,2 @@ -module.exports = (Franz, options) => { - +module.exports = Ferdi => { }; diff --git a/recipes/plurk/index.js b/recipes/plurk/index.js index 36d6490..23607bd 100644 --- a/recipes/plurk/index.js +++ b/recipes/plurk/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsdXJrL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoicGx1cmsvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/plurk/package.json b/recipes/plurk/package.json index 7cb659e..717c64e 100644 --- a/recipes/plurk/package.json +++ b/recipes/plurk/package.json @@ -1,7 +1,7 @@ { "id": "plurk", "name": "Plurk", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.plurk.com" diff --git a/recipes/plurk/webview.js b/recipes/plurk/webview.js index fa4e0e3..6f20458 100644 --- a/recipes/plurk/webview.js +++ b/recipes/plurk/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { function getMessages() { let direct = 0; @@ -9,9 +9,8 @@ module.exports = Franz => { direct = parseInt(np.innerHTML) + parseInt(re.innerHTML); } - Franz.setBadge(direct); + Ferdi.setBadge(direct); } - Franz.loop(getMessages, 10000); + Ferdi.loop(getMessages, 10000); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBsdXJrL3dlYnZpZXcuanMiXSwibmFtZXMiOlsib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lSW50IChyZS5pbm5lckhUTUwpO1xuICAgIH1cblxuICAgIEZyYW56LnNldEJhZGdlIChkaXJlY3QpO1xuXG4gIH1cblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzLCAxMDAwMCk7XG59XG4iXX0= diff --git a/recipes/pocket/index.js b/recipes/pocket/index.js index c080e24..23607bd 100644 --- a/recipes/pocket/index.js +++ b/recipes/pocket/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvY2tldC9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InBvY2tldC9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/pocket/package.json b/recipes/pocket/package.json index 1f9a746..cb35334 100644 --- a/recipes/pocket/package.json +++ b/recipes/pocket/package.json @@ -1,7 +1,7 @@ { "id": "pocket", "name": "Pocket", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://getpocket.com/a/queue/list/" diff --git a/recipes/pocket/webview.js b/recipes/pocket/webview.js index 7031b55..e69de29 100644 --- a/recipes/pocket/webview.js +++ b/recipes/pocket/webview.js @@ -1 +0,0 @@ -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJwb2NrZXQvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= diff --git a/recipes/podio/index.js b/recipes/podio/index.js index 46f936f..23607bd 100644 --- a/recipes/podio/index.js +++ b/recipes/podio/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/podio/package.json b/recipes/podio/package.json index 59fc0b4..3985a1a 100644 --- a/recipes/podio/package.json +++ b/recipes/podio/package.json @@ -1,7 +1,7 @@ { "id": "podio", "name": "podio", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://podio.com", diff --git a/recipes/podio/webview.js b/recipes/podio/webview.js index 2b1ed2a..1bfa60d 100644 --- a/recipes/podio/webview.js +++ b/recipes/podio/webview.js @@ -1,22 +1,14 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = () => { - // get unread messages const updates = document.getElementsByClassName('counter')[0].innerHTML; - - // get conversations in 'My Inbox' - // const inbox = document.getElementById('franz').getAttribute('data-inbox'); - - // set Franz badge - // updates => active unread count - // inbox => passive unread count - Franz.setBadge(updates, 0); + Ferdi.setBadge(updates, 0); }; - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); + Ferdi.loop(getMessages); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); }; diff --git a/recipes/pomodoro-tracker/package.json b/recipes/pomodoro-tracker/package.json index dd20956..750d907 100644 --- a/recipes/pomodoro-tracker/package.json +++ b/recipes/pomodoro-tracker/package.json @@ -1,7 +1,7 @@ { "id": "pomodoro-tracker", "name": "Pomodoro Tracker", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://pomodoro-tracker.com", diff --git a/recipes/pomodoro-tracker/webview.js b/recipes/pomodoro-tracker/webview.js index 30fa4bb..10157e9 100644 --- a/recipes/pomodoro-tracker/webview.js +++ b/recipes/pomodoro-tracker/webview.js @@ -3,10 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/proton-mail/index.js b/recipes/proton-mail/index.js index 258da41..23607bd 100644 --- a/recipes/proton-mail/index.js +++ b/recipes/proton-mail/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/proton-mail/package.json b/recipes/proton-mail/package.json index da08733..9cb0d99 100644 --- a/recipes/proton-mail/package.json +++ b/recipes/proton-mail/package.json @@ -1,7 +1,7 @@ { "id": "proton-mail", "name": "ProtonMail", - "version": "1.2.4", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://mail.protonmail.com/login" diff --git a/recipes/proton-mail/webview.js b/recipes/proton-mail/webview.js index 2417309..10319f2 100644 --- a/recipes/proton-mail/webview.js +++ b/recipes/proton-mail/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { function getMessages() { const element = document.querySelector('.navigationItem-counter'); if (!element) { @@ -6,8 +6,8 @@ module.exports = Franz => { } const text = element.innerText; const count = Number(text.substring(1, text.length - 1)); - Franz.setBadge(count); + Ferdi.setBadge(count); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/protoncalendar/package.json b/recipes/protoncalendar/package.json index c337398..9ddd612 100644 --- a/recipes/protoncalendar/package.json +++ b/recipes/protoncalendar/package.json @@ -1,7 +1,7 @@ { "id": "protoncalendar", "name": "ProtonCalendar", - "version": "1.0.1", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://calendar.protonmail.com/" diff --git a/recipes/protoncalendar/webview.js b/recipes/protoncalendar/webview.js index ddd0b40..10157e9 100644 --- a/recipes/protoncalendar/webview.js +++ b/recipes/protoncalendar/webview.js @@ -1,15 +1,7 @@ -"use strict"; - -var _path = _interopRequireDefault(require("path")); +const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/protonet/index.js b/recipes/protonet/index.js index 258da41..23607bd 100755 --- a/recipes/protonet/index.js +++ b/recipes/protonet/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/protonet/package.json b/recipes/protonet/package.json index 75d2175..bc4554d 100755 --- a/recipes/protonet/package.json +++ b/recipes/protonet/package.json @@ -1,7 +1,7 @@ { "id": "protonet", "name": "protonet", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamID}.protonet.info", diff --git a/recipes/protonet/webview.js b/recipes/protonet/webview.js index 1d81e99..9ada45a 100755 --- a/recipes/protonet/webview.js +++ b/recipes/protonet/webview.js @@ -1,10 +1,10 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { const unreadPrivateMessages = parseInt($('.messages .unread-meeps').text()); const unreadGroupMessages = parseInt($('.today .unread-meeps').text()); - Franz.setBadge(unreadPrivateMessages + unreadGroupMessages); + Ferdi.setBadge(unreadPrivateMessages + unreadGroupMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/pulsesms/index.js b/recipes/pulsesms/index.js index 258da41..23607bd 100644 --- a/recipes/pulsesms/index.js +++ b/recipes/pulsesms/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/pulsesms/package.json b/recipes/pulsesms/package.json index 2539d12..a939717 100644 --- a/recipes/pulsesms/package.json +++ b/recipes/pulsesms/package.json @@ -1,7 +1,7 @@ { "id": "pulsesms", "name": "PulseSMS", - "version": "1.1.4", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://pulsesms.app", diff --git a/recipes/pulsesms/webview.js b/recipes/pulsesms/webview.js index 2e6b46d..6904fbc 100644 --- a/recipes/pulsesms/webview.js +++ b/recipes/pulsesms/webview.js @@ -1,8 +1,7 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { function getMessages() { - Franz.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); + Ferdi.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); } - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/pushbullet/index.js b/recipes/pushbullet/index.js index 59205d5..556cab6 100644 --- a/recipes/pushbullet/index.js +++ b/recipes/pushbullet/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class PushBullet extends Franz { +module.exports = Ferdi => class PushBullet extends Ferdi { constructor(...args) { let _temp; @@ -14,4 +14,3 @@ module.exports = Franz => class PushBullet extends Franz { } } }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3ZWV0ZGVjay9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJUd2VldGRlY2siLCJldmVudHMiLCJfcmVkaXJlY3RGaXgiLCJldmVudCIsIm5ld1VSTCIsInVuZGVmaW5lZCIsIm9sZFVSTCIsImlzTWFpbkZyYW1lIiwic2V0VGltZW91dCIsInNlbmQiLCJwcmV2ZW50RGVmYXVsdCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkM7QUFBQSxTQUFTLE1BQU1DLFNBQU4sU0FBd0JELEtBQXhCLENBQThCO0FBQUE7QUFBQTs7QUFBQSwwQ0FDdERFLE1BRHNELEdBQzdDO0FBQ1Asb0NBQTRCO0FBRHJCLE9BRDZDO0FBQUE7O0FBS3REQyxpQkFBYUMsS0FBYixFQUFvQjtBQUNsQixVQUFJQSxNQUFNQyxNQUFOLEtBQWlCQyxTQUFqQixJQUE4QkYsTUFBTUcsTUFBTixLQUFpQkQsU0FBL0MsSUFBNERGLE1BQU1JLFdBQXRFLEVBQW1GO0FBQ2pGLFlBQUlKLE1BQU1JLFdBQVYsRUFBdUI7QUFDckJDLHFCQUFXLE1BQU0sS0FBS0MsSUFBTCxDQUFVLGNBQVYsRUFBMEJOLE1BQU1DLE1BQWhDLENBQWpCLEVBQTBELEdBQTFEO0FBQ0FELGdCQUFNTyxjQUFOO0FBQ0Q7QUFDRjtBQUNGO0FBWnFELEdBQXZDO0FBQUEsQ0FBakIiLCJmaWxlIjoidHdlZXRkZWNrL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBjbGFzcyBUd2VldGRlY2sgZXh0ZW5kcyBGcmFueiB7XG4gIGV2ZW50cyA9IHtcbiAgICAnZGlkLWdldC1yZWRpcmVjdC1yZXF1ZXN0JzogJ19yZWRpcmVjdEZpeCcsXG4gIH1cblxuICBfcmVkaXJlY3RGaXgoZXZlbnQpIHtcbiAgICBpZiAoZXZlbnQubmV3VVJMICE9PSB1bmRlZmluZWQgJiYgZXZlbnQub2xkVVJMICE9PSB1bmRlZmluZWQgJiYgZXZlbnQuaXNNYWluRnJhbWUpIHtcbiAgICAgIGlmIChldmVudC5pc01haW5GcmFtZSkge1xuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMuc2VuZCgncmVkaXJlY3QtdXJsJywgZXZlbnQubmV3VVJMKSwgMTAwKTtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn07XG4iXX0= diff --git a/recipes/pushbullet/package.json b/recipes/pushbullet/package.json index f32eaeb..da4972c 100644 --- a/recipes/pushbullet/package.json +++ b/recipes/pushbullet/package.json @@ -1,7 +1,7 @@ { "id": "pushbullet", "name": "Pushbullet", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.pushbullet.com/" diff --git a/recipes/pushbullet/webview.js b/recipes/pushbullet/webview.js index 39762d8..e69de29 100644 --- a/recipes/pushbullet/webview.js +++ b/recipes/pushbullet/webview.js @@ -1 +0,0 @@ -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJwdXNoYnVsbGV0L3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6W119 diff --git a/recipes/rainloop/index.js b/recipes/rainloop/index.js index c81c740..23607bd 100644 --- a/recipes/rainloop/index.js +++ b/recipes/rainloop/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhaW5sb29wL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoicmFpbmxvb3AvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/rainloop/package.json b/recipes/rainloop/package.json index 05a1059..fad246a 100644 --- a/recipes/rainloop/package.json +++ b/recipes/rainloop/package.json @@ -1,7 +1,7 @@ { "id": "rainloop", "name": "RainLoop", - "version": "1.0.2", + "version": "1.1.0", "repository": "https://github.com/promarcel/franz-recipe-rainloop", "license": "MIT", "config": { diff --git a/recipes/rainloop/webview.js b/recipes/rainloop/webview.js index 1440d97..e5052b8 100644 --- a/recipes/rainloop/webview.js +++ b/recipes/rainloop/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { let updates = 0; let inbox = 0; @@ -18,8 +18,8 @@ module.exports = Franz => { }); full = inbox + updates; - Franz.setBadge(full); + Ferdi.setBadge(full); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhaW5sb29wL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJ1cGRhdGVzIiwiaW5ib3giLCJmdWxsIiwiJCIsImVhY2giLCJpIiwib2JqIiwiY291bnRUZXh0IiwiZmluZCIsImZpcnN0IiwiaHRtbCIsImhhc0NsYXNzIiwicGFyc2VJbnQiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVM7QUFDdEIsVUFBTUMsY0FBYyxNQUFNO0FBQ3RCLFlBQUlDLFVBQVUsQ0FBZDtBQUNBLFlBQUlDLFFBQVEsQ0FBWjtBQUNOLFlBQUlDLE9BQU8sQ0FBWDs7QUFFTUMsVUFBRSwrQkFBRixFQUFtQ0MsSUFBbkMsQ0FBd0MsQ0FBQ0MsQ0FBRCxFQUFJQyxHQUFKLEtBQVk7QUFDaEQsa0JBQU1DLFlBQVlKLEVBQUVHLEdBQUYsRUFBT0UsSUFBUCxDQUFZLFFBQVosRUFBc0JDLEtBQXRCLEdBQThCQyxJQUE5QixFQUFsQjtBQUNBLGdCQUFJLE9BQU9ILFNBQVAsS0FBcUIsUUFBckIsSUFBaUNBLGNBQWMsRUFBbkQsRUFBdUQ7QUFDbkQsb0JBQUlKLEVBQUVHLEdBQUYsRUFBT0ssUUFBUCxDQUFnQixRQUFoQixDQUFKLEVBQStCO0FBQzNCLHdCQUFJU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AgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdXBkYXRlcyArPSBwYXJzZUludChjb3VudFRleHQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cblx0XHRmdWxsID0gaW5ib3ggKyB1cGRhdGVzO1xuICAgICAgICBGcmFuei5zZXRCYWRnZShmdWxsKTtcbiAgICB9O1xuICAgIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== diff --git a/recipes/reddit/index.js b/recipes/reddit/index.js index 258da41..23607bd 100644 --- a/recipes/reddit/index.js +++ b/recipes/reddit/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/reddit/package.json b/recipes/reddit/package.json index 4c12bb3..7dd62e2 100644 --- a/recipes/reddit/package.json +++ b/recipes/reddit/package.json @@ -1,7 +1,7 @@ { "id": "reddit", "name": "Reddit", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/getferdi/recipes", "config": { diff --git a/recipes/reddit/webview.js b/recipes/reddit/webview.js index 9d49f47..dc83d3d 100644 --- a/recipes/reddit/webview.js +++ b/recipes/reddit/webview.js @@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { const elements = document.querySelectorAll('#HeaderUserActions--Messages > a > span'); let count = 0; @@ -12,7 +12,7 @@ module.exports = (Franz) => { } console.log(count); - Franz.setBadge(count); + Ferdi.setBadge(count); }; if (document.querySelectorAll('.promotedlink').length > 0) { @@ -21,12 +21,12 @@ module.exports = (Franz) => { }); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); // Use CSS to hide Google Ads - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); - Franz.handleDarkMode((isEnabled, config) => { + Ferdi.handleDarkMode((isEnabled, config) => { // Open dropdown menu if not already open const menu = document.querySelector('#USER_DROPDOWN_ID'); if (menu.getAttribute('aria-expanded') === 'false') { diff --git a/recipes/redditchat/index.js b/recipes/redditchat/index.js index 46f936f..23607bd 100644 --- a/recipes/redditchat/index.js +++ b/recipes/redditchat/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/redditchat/package.json b/recipes/redditchat/package.json index f8f4fc0..3d95f18 100644 --- a/recipes/redditchat/package.json +++ b/recipes/redditchat/package.json @@ -1,7 +1,7 @@ { "id": "redditchat", "name": "Reddit Chat", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.reddit.com/chat/" diff --git a/recipes/redditchat/webview.js b/recipes/redditchat/webview.js index 8b29861..7000e53 100644 --- a/recipes/redditchat/webview.js +++ b/recipes/redditchat/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { // Regular expression for (*) or (1), will extract the asterisk or the number const titleRegEx = /^\(([\*\d])\)/; const getMessages = function unreadCount() { @@ -14,8 +14,8 @@ module.exports = Franz => { } } - Franz.setBadge(directCount, indirectCount); + Ferdi.setBadge(directCount, indirectCount); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/riseup/package.json b/recipes/riseup/package.json index dd8a858..73f3234 100644 --- a/recipes/riseup/package.json +++ b/recipes/riseup/package.json @@ -1,7 +1,7 @@ { "id": "riseup", "name": "Riseup.net", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://mail.riseup.net" diff --git a/recipes/riseup/webview.js b/recipes/riseup/webview.js index 79b4a7b..2a5f91f 100644 --- a/recipes/riseup/webview.js +++ b/recipes/riseup/webview.js @@ -1,7 +1,3 @@ -const _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - module.exports = Ferdi => { const getMessages = function getMessages() { let unread = 0; diff --git a/recipes/rocketchat/index.js b/recipes/rocketchat/index.js index 499053a..062b5ec 100644 --- a/recipes/rocketchat/index.js +++ b/recipes/rocketchat/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class RocketChat extends Franz { +module.exports = Ferdi => class RocketChat extends Ferdi { async validateUrl(url) { try { const resp = await window.fetch(url, { diff --git a/recipes/rocketchat/package.json b/recipes/rocketchat/package.json index 5b10c93..f4dedcf 100644 --- a/recipes/rocketchat/package.json +++ b/recipes/rocketchat/package.json @@ -1,7 +1,7 @@ { "id": "rocketchat", "name": "Rocket.Chat", - "version": "1.0.11", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.rocket.chat", diff --git a/recipes/roundcube/index.js b/recipes/roundcube/index.js index c09e015..23607bd 100644 --- a/recipes/roundcube/index.js +++ b/recipes/roundcube/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvdW5kY3ViZS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InJvdW5kY3ViZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7Il19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/roundcube/package.json b/recipes/roundcube/package.json index 2c15ae1..2bd8dba 100644 --- a/recipes/roundcube/package.json +++ b/recipes/roundcube/package.json @@ -1,7 +1,7 @@ { "id": "roundcube", "name": "Roundcube", - "version": "1.0.3", + "version": "1.1.0", "repository": "https://github.com/jonathanjuursema/franz-roundcube", "license": "MIT", "config": { diff --git a/recipes/roundcube/webview.js b/recipes/roundcube/webview.js index 1165f32..8a2ffef 100644 --- a/recipes/roundcube/webview.js +++ b/recipes/roundcube/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const directElements = document.querySelectorAll('.unreadcount'); let direct = 0; @@ -6,8 +6,8 @@ module.exports = Franz => { const n = parseInt(directElements[i].innerHTML); direct += isNaN(n) ? 0 : n; } - Franz.setBadge(direct); + Ferdi.setBadge(direct); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvdW5kY3ViZS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZGlyZWN0RWxlbWVudHMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJkaXJlY3QiLCJpIiwibGVuZ3RoIiwibiIsInBhcnNlSW50IiwiaW5uZXJIVE1MIiwiaXNOYU4iLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVM7QUFDekIsT0FBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQzFDLE1BQUlDLGlCQUFpQkMsU0FBU0MsZ0JBQVQsQ0FBMEIsY0FBMUIsQ0FBckI7QUFDQSxNQUFJQyxTQUFTLENBQWI7QUFDQSxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosZUFBZUssTUFBbkMsRUFBMkNELEtBQUssQ0FBaEQsRUFBbUQ7QUFDbERFLE9BQUlDLFNBQVNQLGVBQWVJLENBQWYsRUFBa0JJLFNBQTNCLENBQUo7QUFDQUwsYUFBV00sTUFBTUgsQ0FBTixJQUFXLENBQVgsR0FBZUEsQ0FBMUI7QUFDQTtBQUNEUixRQUFNWSxRQUFOLENBQWVQLE1BQWY7QUFDQSxFQVJEO0FBU0FMLE9BQU1hLElBQU4sQ0FBV1osV0FBWDtBQUNBLENBWEQiLCJmaWxlIjoicm91bmRjdWJlL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IHtcblx0Y29uc3QgZ2V0TWVzc2FnZXMgPSBmdW5jdGlvbiBnZXRNZXNzYWdlcygpIHtcblx0XHRsZXQgZGlyZWN0RWxlbWVudHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcudW5yZWFkY291bnQnKTtcblx0XHRsZXQgZGlyZWN0ID0gMDtcblx0XHRmb3IgKGxldCBpID0gMDsgaSA8IGRpcmVjdEVsZW1lbnRzLmxlbmd0aDsgaSArPSAxKSB7XG5cdFx0XHRuID0gcGFyc2VJbnQoZGlyZWN0RWxlbWVudHNbaV0uaW5uZXJIVE1MKTtcblx0XHRcdGRpcmVjdCArPSAoaXNOYU4obikgPyAwIDogbik7XG5cdFx0fVxuXHRcdEZyYW56LnNldEJhZGdlKGRpcmVjdCk7XG5cdH07XG5cdEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== diff --git a/recipes/sendtask/index.js b/recipes/sendtask/index.js index 4cc66d5..23607bd 100644 --- a/recipes/sendtask/index.js +++ b/recipes/sendtask/index.js @@ -1,3 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbmR0YXNrL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQTtBQUNBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJzZW5kdGFzay9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGp1c3QgcGFzcyB0aHJvdWdoIEZyYW56XG5tb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/sendtask/package.json b/recipes/sendtask/package.json index bbdc024..db8a627 100644 --- a/recipes/sendtask/package.json +++ b/recipes/sendtask/package.json @@ -1,7 +1,7 @@ { "id": "sendtask", "name": "Sendtask", - "version": "1.0.4", + "version": "1.1.0", "repository": "https://github.com/patrickdaniel/sendtask-franz", "license": "MIT", "config": { diff --git a/recipes/sendtask/webview.js b/recipes/sendtask/webview.js index 655c63e..0da4de6 100644 --- a/recipes/sendtask/webview.js +++ b/recipes/sendtask/webview.js @@ -1,19 +1,15 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = () => { const inbox = document.querySelector('.topbar-notificationsButton.has-newNotifications'); const passiveCount = inbox === null ? 0 : 1; - // set Franz badge - // updates => active unread count - // inbox => passive unread count - Franz.setBadge(0, passiveCount); + Ferdi.setBadge(0, passiveCount); }; - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'franz.css')); + Ferdi.loop(getMessages); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'franz.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbmR0YXNrL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImluYm94IiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yIiwicGFzc2l2ZUNvdW50Iiwic2V0QmFkZ2UiLCJpbmplY3RDU1MiLCJqb2luIiwiX19kaXJuYW1lIiwibG9vcCJ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b3VudCk7XG4gIH07XG5cbiAgLy8gaW5qZWN0IGZyYW56LmNzcyBzdHlsZXNoZWV0XG4gIEZyYW56LmluamVjdENTUyhwYXRoLmpvaW4oX19kaXJuYW1lLCAnZnJhbnouY3NzJykpO1xuXG4gIC8vIGNoZWNrIGZvciBuZXcgbWVzc2FnZXMgZXZlcnkgc2Vjb25kIGFuZCB1cGRhdGUgRnJhbnogYmFkZ2VcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/simplenote/package.json b/recipes/simplenote/package.json index 9466cee..cb07e51 100644 --- a/recipes/simplenote/package.json +++ b/recipes/simplenote/package.json @@ -1,7 +1,7 @@ { "id": "simplenote", "name": "Simplenote", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.simplenote.com/" diff --git a/recipes/simplenote/webview.js b/recipes/simplenote/webview.js index cf28183..f109b0d 100644 --- a/recipes/simplenote/webview.js +++ b/recipes/simplenote/webview.js @@ -1,7 +1,3 @@ -const _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; diff --git a/recipes/skype/index.js b/recipes/skype/index.js index f122bf4..7ea3060 100644 --- a/recipes/skype/index.js +++ b/recipes/skype/index.js @@ -1,8 +1,5 @@ -module.exports = (Franz) => class Messenger extends Franz { +module.exports = (Ferdi) => class Messenger extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace( - /(Ferdi|Electron)\/\S+ \([^)]+\)/g, - '', - ); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/skype/package.json b/recipes/skype/package.json index 7f401bf..57f4d87 100644 --- a/recipes/skype/package.json +++ b/recipes/skype/package.json @@ -1,7 +1,7 @@ { "id": "skype", "name": "Skype", - "version": "3.0.1", + "version": "3.1.0", "license": "MIT", "config": { "serviceURL": "https://web.skype.com/", diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js index c20726c..9af7c2b 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js @@ -1,7 +1,10 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + const { remote: { BrowserWindow } } = require('electron'); -const path = require('path'); -module.exports = (Franz, settings) => { +module.exports = (Ferdi, settings) => { const getMessages = function getMessages() { let count = 0; const container = document.querySelector('[role="tablist"] > [title="Chats"] > div'); @@ -19,12 +22,14 @@ module.exports = (Franz, settings) => { } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); + document.addEventListener('click', event => { const link = event.target.closest('a[href^="http"]'); const button = event.target.closest('button[title^="http"]'); diff --git a/recipes/slack/index.js b/recipes/slack/index.js index 258da41..23607bd 100644 --- a/recipes/slack/index.js +++ b/recipes/slack/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/slack/package.json b/recipes/slack/package.json index 1a4e1ad..1c5de53 100644 --- a/recipes/slack/package.json +++ b/recipes/slack/package.json @@ -1,7 +1,7 @@ { "id": "slack", "name": "Slack", - "version": "1.1.0", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.slack.com", diff --git a/recipes/slack/webview.js b/recipes/slack/webview.js index f0eb265..b8e3817 100644 --- a/recipes/slack/webview.js +++ b/recipes/slack/webview.js @@ -37,16 +37,18 @@ const getTeamIcon = function getTeamIcon(count = 0) { const SELECTOR_CHANNELS_UNREAD = '.p-channel_sidebar__channel--unread:not(.p-channel_sidebar__channel--muted)'; -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"]):not([data-sidebar-link-id="Pdms"])`).length; const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - directMessages; - Franz.setBadge(directMessages, allMessages); + Ferdi.setBadge(directMessages, allMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); + setTimeout(() => { getTeamIcon(); }, 4000); - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/snapdrop/index.js b/recipes/snapdrop/index.js index 28dbd49..9481442 100644 --- a/recipes/snapdrop/index.js +++ b/recipes/snapdrop/index.js @@ -1,8 +1,9 @@ -module.exports = (Franz) => class Snapdrop extends Franz { +module.exports = (Ferdi) => class Snapdrop extends Ferdi { modifyRequestHeaders() { return [ { headers: { + // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdi 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', }, requestFilters: { diff --git a/recipes/snapdrop/package.json b/recipes/snapdrop/package.json index 18d80b7..3bb7772 100644 --- a/recipes/snapdrop/package.json +++ b/recipes/snapdrop/package.json @@ -1,7 +1,7 @@ { "id": "snapdrop", "name": "Snapdrop", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "http://snapdrop.net/", diff --git a/recipes/snapdrop/webview.js b/recipes/snapdrop/webview.js index 2d19daa..22ca24c 100644 --- a/recipes/snapdrop/webview.js +++ b/recipes/snapdrop/webview.js @@ -1 +1 @@ -module.exports = (Franz) => {}; +module.exports = (Ferdi) => {}; diff --git a/recipes/stackexchange/package.json b/recipes/stackexchange/package.json index cb4442b..d3bba01 100644 --- a/recipes/stackexchange/package.json +++ b/recipes/stackexchange/package.json @@ -1,7 +1,7 @@ { "id": "stackexchange", "name": "StackExchange", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://stackexchange.com/" diff --git a/recipes/stackexchange/webview.js b/recipes/stackexchange/webview.js index 3ad4701..10157e9 100644 --- a/recipes/stackexchange/webview.js +++ b/recipes/stackexchange/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/standardnotes/index.js b/recipes/standardnotes/index.js index 134752b..23607bd 100755 --- a/recipes/standardnotes/index.js +++ b/recipes/standardnotes/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdvb2dsZWtlZXAvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJnb29nbGVrZWVwL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejsiXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/standardnotes/package.json b/recipes/standardnotes/package.json index bdc8103..b3d913b 100755 --- a/recipes/standardnotes/package.json +++ b/recipes/standardnotes/package.json @@ -1,7 +1,7 @@ { "id": "standardnotes", "name": "StandardNotes", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/vantezzen/franz-recipe-standardnotes", "config": { diff --git a/recipes/standardnotes/webview.js b/recipes/standardnotes/webview.js index bdbf506..e69de29 100755 --- a/recipes/standardnotes/webview.js +++ b/recipes/standardnotes/webview.js @@ -1 +0,0 @@ -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnb29nbGVrZWVwL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6W119 diff --git a/recipes/steamchat/index.js b/recipes/steamchat/index.js index 749ddde..9598981 100644 --- a/recipes/steamchat/index.js +++ b/recipes/steamchat/index.js @@ -1,9 +1,5 @@ -module.exports = (Franz) => class SteamChat extends Franz { +module.exports = (Ferdi) => class SteamChat extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace( - /(Ferdi|Electron)\/\S+ \([^)]+\)/g, - '', - ); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZWFtY2hhdC9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJTdGVhbUNoYXQiLCJvdmVycmlkZVVzZXJBZ2VudCIsIndpbmRvdyIsIm5hdmlnYXRvciIsInVzZXJBZ2VudCIsInJlcGxhY2UiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVMsTUFBTUMsU0FBTixTQUF3QkQsS0FBeEIsQ0FBOEI7QUFDdERFLHNCQUFvQjtBQUNsQixXQUFPQyxPQUFPQyxTQUFQLENBQWlCQyxTQUFqQixDQUEyQkMsT0FBM0IsQ0FBbUMsNkJBQW5DLEVBQWtFLEVBQWxFLENBQVA7QUFDRDtBQUhxRCxDQUF4RCIsImZpbGUiOiJzdGVhbWNoYXQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IGNsYXNzIFN0ZWFtQ2hhdCBleHRlbmRzIEZyYW56IHtcbiAgb3ZlcnJpZGVVc2VyQWdlbnQoKSB7XG4gICAgcmV0dXJuIHdpbmRvdy5uYXZpZ2F0b3IudXNlckFnZW50LnJlcGxhY2UoLyhGcmFuenxFbGVjdHJvbikoW15cXHNdK1xccykvZywgJycpO1xuICB9XG59O1xuIl19 diff --git a/recipes/steamchat/package.json b/recipes/steamchat/package.json index aa10825..5899cc8 100644 --- a/recipes/steamchat/package.json +++ b/recipes/steamchat/package.json @@ -1,7 +1,7 @@ { "id": "steamchat", "name": "SteamChat", - "version": "1.1.5", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://steamcommunity.com/chat", diff --git a/recipes/steamchat/webview.js b/recipes/steamchat/webview.js index eeb0fe5..b35cc6b 100644 --- a/recipes/steamchat/webview.js +++ b/recipes/steamchat/webview.js @@ -1,6 +1,6 @@ const { ipcRenderer } = require('electron'); -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { // get new msg count let count = 0; @@ -12,7 +12,7 @@ module.exports = Franz => { }); const indirectMessages = document.querySelectorAll('[class*=ChatUnreadMessageIndicator]').length; - Franz.setBadge(count, indirectMessages); + Ferdi.setBadge(count, indirectMessages); // force scroll to bottom of chat window const chatBoxes = document.querySelectorAll('.chat_dialog'); @@ -25,7 +25,7 @@ module.exports = Franz => { } }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); document.addEventListener('click', event => { const link = event.target.closest('a[href^="http"]'); @@ -38,4 +38,3 @@ module.exports = Franz => { } }, true); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZWFtY2hhdC93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1l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iAgICBbXS5maWx0ZXIuY2FsbChjb3VudGVycywgKGNvdW50VmFsdWVzKSA9PiB7XG4gICAgICBpZiAoY291bnRWYWx1ZXMpIHtcbiAgICAgICAgY29uc3QgY291bnRWYWx1ZSA9IGNvdW50VmFsdWVzLnF1ZXJ5U2VsZWN0b3IoJy51bnJlYWRfbWVzc2FnZV9jb3VudF92YWx1ZScpO1xuICAgICAgICBpZiAoY291bnRWYWx1ZS5pbm5lckhUTUwubGVuZ3RoID4gMCkge1xuICAgICAgICAgIGNvdW50ICs9IHBhcnNlSW50KGNvdW50VmFsdWUuaW5uZXJIVE1MKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0pO1xuICAgIEZyYW56LnNldEJhZGdlKGNvdW50KTtcblxuICAgIC8vIGZvcmNlIHNjcm9sbCB0byBib3R0b20gb2YgY2hhdCB3aW5kb3dcbiAgICBjb25zdCBjaGF0Qm94ZXMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuY2hhdF9kaWFsb2cnKTtcbiAgICBpZiAoY2hhdEJveGVzKSB7XG4gICAgICBjb25zdCBjaGF0Qm94ID0gW10uZmlsdGVyLmNhbGwoY2hhdEJveGVzLCAoY2hhdCkgPT4ge1xuICAgICAgICByZXR1cm4gY2hhdC5zdHlsZS5kaXNwbGF5ICE9PSAnbm9uZSc7XG4gICAgICB9KTtcbiAgICAgIGlmIChjaGF0Qm94WzBdKSB7XG4gICAgICAgIGNvbnN0IGNoYXRXaW5kb3cgPSBjaGF0Qm94WzBdLnF1ZXJ5U2VsZWN0b3IoJy5jaGF0X2RpYWxvZ19zY3JvbGwnKTtcbiAgICAgICAgY2hhdFdpbmRvdy5zY3JvbGxUb3AgPSBjaGF0V2luZG93LnNjcm9sbEhlaWdodDtcbiAgICAgIH1cbiAgICB9XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/stride/index.js b/recipes/stride/index.js index 6db60e1..23607bd 100644 --- a/recipes/stride/index.js +++ b/recipes/stride/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0cmlkZS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InN0cmlkZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/stride/package.json b/recipes/stride/package.json index 7cd4c06..fa0d367 100644 --- a/recipes/stride/package.json +++ b/recipes/stride/package.json @@ -1,7 +1,7 @@ { "id": "stride", "name": "Stride", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://app.stride.com", diff --git a/recipes/stride/webview.js b/recipes/stride/webview.js index e72da2a..6b1300f 100644 --- a/recipes/stride/webview.js +++ b/recipes/stride/webview.js @@ -1,10 +1,8 @@ -const _path = require('path'); - -const _path2 = _interopRequireDefault(_path); +const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { // get all message badges const allBadges = document.querySelectorAll('.activity-indicator'); @@ -22,13 +20,11 @@ module.exports = Franz => { } }); - // set Franz badge - Franz.setBadge(directCount, indirectCount); + // set Ferdi badge + Ferdi.setBadge(directCount, indirectCount); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); - // inject franz.css stylesheet - Franz.injectCSS(_path2.default.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset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ZXQgRnJhbnogYmFkZ2VcbiAgICBGcmFuei5zZXRCYWRnZShkaXJlY3RDb3VudCwgaW5kaXJlY3RDb3VudCk7XG4gIH07XG5cdC8vIGNoZWNrIGZvciBuZXcgbWVzc2FnZXMgZXZlcnkgc2Vjb25kIGFuZCB1cGRhdGUgRnJhbnogYmFkZ2VcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG5cblx0Ly8gaW5qZWN0IGZyYW56LmNzcyBzdHlsZXNoZWV0XG4gIEZyYW56LmluamVjdENTUyhwYXRoLmpvaW4oX19kaXJuYW1lLCAnc2VydmljZS5jc3MnKSk7XG59O1xuIl19 diff --git a/recipes/superhuman-email/index.js b/recipes/superhuman-email/index.js index 7277aa7..44bc55d 100644 --- a/recipes/superhuman-email/index.js +++ b/recipes/superhuman-email/index.js @@ -1,11 +1,6 @@ -// just pass through Franz - Superhuman tab appears, says needs Chrome -// module.exports = Franz => Franz; - -// tried the whole string from the issue example - Superhuman tab appears, says needs Chrome -// module.exports = Franz => class useragent extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } }; - -// updated class name to superhuman - Superhuman tab appears, says needs Chrome -module.exports = Franz => class superhuman extends Franz { overrideUserAgent() { return 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'; } }; - -// Tried shortening to just Chrome lol - Superhuman tab appears, says needs Chrome -// module.exports = Franz => class superhuman extends Franz { overrideUserAgent() {return "Chrome"; } }; +module.exports = Ferdi => class SuperHuman extends Ferdi { + overrideUserAgent() { + // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdi + return 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'; + } +}; diff --git a/recipes/superhuman-email/package.json b/recipes/superhuman-email/package.json index 06eccfd..53509cb 100644 --- a/recipes/superhuman-email/package.json +++ b/recipes/superhuman-email/package.json @@ -1,7 +1,7 @@ { "id": "superhuman", "name": "superhuman", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/CrystalLarsh/franz-superhuman-recipe", "config": { diff --git a/recipes/superhuman-email/webview.js b/recipes/superhuman-email/webview.js index 8a6ba8e..697efa6 100644 --- a/recipes/superhuman-email/webview.js +++ b/recipes/superhuman-email/webview.js @@ -1,11 +1,8 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { - // Get the number of mentions const mentions = document.querySelectorAll('.chat-line .mentioned').length; - - Franz.setBadge(mentions, 0); + Ferdi.setBadge(mentions, 0); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3aXRjaC93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsIm9wdGlvbnMiLCJnZXRNZXNzYWdlcyIsIm1lbnRpb25zIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwibGVuZ3RoIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCLENBQUNDLEtBQUQsRUFBUUMsT0FBUixLQUFvQjtBQUNuQyxRQUFNQyxjQUFjLE1BQU07QUFDeEI7QUFDQSxVQUFNQyxXQUFXQyxTQUFTQyxnQkFBVCxDQUEwQix1QkFBMUIsRUFBbURDLE1BQXBFOztBQUVBTixVQUFNTyxRQUFOLENBQWVKLFFBQWYsRUFBeUIsQ0FBekI7QUFDRCxHQUxEO0FBTUE7QUFDQUgsUUFBTVEsSUFBTixDQUFXTixXQUFYO0FBQ0QsQ0FURCIsImZpbGUiOiJ0d2l0Y2gvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56LCBvcHRpb25zKSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gKCkgPT4ge1xuICAgIC8vIEdldCB0aGUgbnVtYmVyIG9mIG1lbnRpb25zXG4gICAgY29uc3QgbWVudGlvbnMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuY2hhdC1saW5lIC5tZW50aW9uZWQnKS5sZW5ndGg7XG5cbiAgICBGcmFuei5zZXRCYWRnZShtZW50aW9ucywgMCk7XG4gIH07XG4gIC8vIGNoZWNrIGZvciBuZXcgbWVzc2FnZXMgZXZlcnkgc2Vjb25kIGFuZCB1cGRhdGUgRnJhbnogYmFkZ2VcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/sync/package.json b/recipes/sync/package.json index 03dc462..f436ae9 100644 --- a/recipes/sync/package.json +++ b/recipes/sync/package.json @@ -1,7 +1,7 @@ { "id": "sync", "name": "sync", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://cp.sync.com/files/" diff --git a/recipes/sync/webview.js b/recipes/sync/webview.js index 137d2d0..10157e9 100644 --- a/recipes/sync/webview.js +++ b/recipes/sync/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // Sync.com does not provide notifications at this time. - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/tawk/index.js b/recipes/tawk/index.js index 8644398..23607bd 100644 --- a/recipes/tawk/index.js +++ b/recipes/tawk/index.js @@ -1,4 +1 @@ -// just pass through Franz - -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRpc2NvcmQvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBOztBQUNBLE9BQU8sQUFBUCxVQUFpQixTQUFTLEFBQTFCIiwiZmlsZSI6ImRpc2NvcmQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBqdXN0IHBhc3MgdGhyb3VnaCBGcmFuelxubW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/tawk/package.json b/recipes/tawk/package.json index 56f61bc..eb842d9 100644 --- a/recipes/tawk/package.json +++ b/recipes/tawk/package.json @@ -1,7 +1,7 @@ { "id": "tawk", "name": "Tawk.to", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://dashboard.tawk.to/", diff --git a/recipes/tawk/webview.js b/recipes/tawk/webview.js index 48410ae..7e19dff 100644 --- a/recipes/tawk/webview.js +++ b/recipes/tawk/webview.js @@ -1,2 +1,2 @@ -module.exports = (Franz, options) => {}; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRhd2svd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJvcHRpb25zIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCLENBQUNDLEtBQUQsRUFBUUMsT0FBUixLQUFvQixDQUFFLENBQXZDIiwiZmlsZSI6InRhd2svd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56LCBvcHRpb25zKSA9PiB7fVxuIl19 +module.exports = Ferdi => { +}; diff --git a/recipes/teamleader/index.js b/recipes/teamleader/index.js index 258da41..23607bd 100644 --- a/recipes/teamleader/index.js +++ b/recipes/teamleader/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/teamleader/package.json b/recipes/teamleader/package.json index 08b7e2a..332f28f 100644 --- a/recipes/teamleader/package.json +++ b/recipes/teamleader/package.json @@ -1,7 +1,7 @@ { "id": "teamleader", "name": "teamleader", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.teamleader.eu/?gotologin", diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 2de8e1c..3041463 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js @@ -1,13 +1,14 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = () => { const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); - - Franz.setBadge(unreadNotifications); + Ferdi.setBadge(unreadNotifications); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); - Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); + Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); }; diff --git a/recipes/teamwork-projects/index.js b/recipes/teamwork-projects/index.js index ea5dbea..23607bd 100644 --- a/recipes/teamwork-projects/index.js +++ b/recipes/teamwork-projects/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlYW13b3JrLXByb2plY3RzL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGVhbXdvcmstcHJvamVjdHMvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/teamwork-projects/package.json b/recipes/teamwork-projects/package.json index c18024f..573de82 100644 --- a/recipes/teamwork-projects/package.json +++ b/recipes/teamwork-projects/package.json @@ -1,7 +1,7 @@ { "id": "teamwork-projects", "name": "Teamwork Projects", - "version": "0.1.2", + "version": "0.2.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.teamwork.com/", diff --git a/recipes/teamwork-projects/webview.js b/recipes/teamwork-projects/webview.js index c52abc5..94e8dd0 100644 --- a/recipes/teamwork-projects/webview.js +++ b/recipes/teamwork-projects/webview.js @@ -1,6 +1,5 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getMessages() { - const count = 0; let indirectCount = 0; const badge = document.getElementById('numNotifs2'); @@ -8,9 +7,8 @@ module.exports = (Franz, options) => { indirectCount = parseInt(badge.innerText); } - Franz.setBadge(count, indirectCount); + Ferdi.setBadge(0, indirectCount); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlYW13b3JrLXByb2plY3RzL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Iiwib3B0aW9ucyIsImdldE1lc3NhZ2VzIiwiY291bnQiLCJpbmRpcmVjdENvdW50IiwiYmFkZ2UiLCJkb2N1bWVudCIsImdldEVsZW1lbnRCeUlkIiwiaW5uZXJUZXh0IiwicGFyc2VJbnQiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUIsQ0FBQ0MsS0FBRCxFQUFRQyxPQUFSLEtBQW9CO0FBQ25DLFdBQVNDLFdBQVQsR0FBdUI7QUFDckIsUUFBSUMsUUFBUSxDQUFaO0FBQ0EsUUFBSUMsZ0JBQWdCLENBQXBCO0FBQ0EsUUFBSUMsUUFBUUMsU0FBU0MsY0FBVCxDQUF3QixZQUF4QixDQUFaOztBQUVBLFFBQUlGLFNBQVNBLE1BQU1HLFNBQW5CLEVBQThCO0FBQzFCSixzQkFBZ0JLLFNBQVNKLE1BQU1HLFNBQWYsQ0FBaEI7QUFDSDs7QUFFRFIsVUFBTVUsUUFBTixDQUFlUCxLQUFmLEVBQXNCQyxhQUF0QjtBQUNEOztBQUVESixRQUFNVyxJQUFOLENBQVdULFdBQVg7QUFDRCxDQWREIiwiZmlsZSI6InRlYW13b3JrLXByb2plY3RzL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IChGcmFueiwgb3B0aW9ucykgPT4ge1xuICBmdW5jdGlvbiBnZXRNZXNzYWdlcygpIHtcbiAgICBsZXQgY291bnQgPSAwO1xuICAgIGxldCBpbmRpcmVjdENvdW50ID0gMDtcbiAgICBsZXQgYmFkZ2UgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnbnVtTm90aWZzMicpO1xuXG4gICAgaWYgKGJhZGdlICYmIGJhZGdlLmlubmVyVGV4dCkge1xuICAgICAgICBpbmRpcmVjdENvdW50ID0gcGFyc2VJbnQoYmFkZ2UuaW5uZXJUZXh0KTtcbiAgICB9XG5cbiAgICBGcmFuei5zZXRCYWRnZShjb3VudCwgaW5kaXJlY3RDb3VudCk7XG4gIH1cblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn1cbiJdfQ== diff --git a/recipes/telegram-react/index.js b/recipes/telegram-react/index.js index ac3e6f0..23607bd 100644 --- a/recipes/telegram-react/index.js +++ b/recipes/telegram-react/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlbGVncmFtL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGVsZWdyYW0vaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/telegram-react/package.json b/recipes/telegram-react/package.json index cc2243f..ae8e451 100644 --- a/recipes/telegram-react/package.json +++ b/recipes/telegram-react/package.json @@ -1,7 +1,7 @@ { "id": "telegram-react", "name": "Telegram React", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://webk.telegram.org", diff --git a/recipes/telegram-react/webview.js b/recipes/telegram-react/webview.js index 030040b..b6240ff 100644 --- a/recipes/telegram-react/webview.js +++ b/recipes/telegram-react/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; const elements = document.querySelectorAll('.chatlist > li:not(.is-muted)'); @@ -9,7 +9,8 @@ module.exports = Franz => { } } } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; diff --git a/recipes/telegram/index.js b/recipes/telegram/index.js index ac3e6f0..23607bd 100644 --- a/recipes/telegram/index.js +++ b/recipes/telegram/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlbGVncmFtL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGVsZWdyYW0vaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/telegram/package.json b/recipes/telegram/package.json index ee90470..47e53f0 100644 --- a/recipes/telegram/package.json +++ b/recipes/telegram/package.json @@ -1,7 +1,7 @@ { "id": "telegram", "name": "Telegram", - "version": "3.1.1", + "version": "3.2.0", "license": "MIT", "config": { "serviceURL": "https://web.telegram.org", diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js index db8c8d7..bf9ffec 100644 --- a/recipes/telegram/webview.js +++ b/recipes/telegram/webview.js @@ -1,8 +1,10 @@ // Code copied from: https://gitlab.com/gortega4/ferdi_recipes -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; let count_sec = 0; @@ -21,9 +23,10 @@ module.exports = Franz => { } } - Franz.setBadge(count, count_sec); + Ferdi.setBadge(count, count_sec); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/thelounge/index.js b/recipes/thelounge/index.js index 7566b86..23607bd 100644 --- a/recipes/thelounge/index.js +++ b/recipes/thelounge/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRoZWxvdW5nZS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InRoZWxvdW5nZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7Il19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/thelounge/package.json b/recipes/thelounge/package.json index a472f84..816a4b1 100644 --- a/recipes/thelounge/package.json +++ b/recipes/thelounge/package.json @@ -1,7 +1,7 @@ { "id": "thelounge", "name": "The Lounge", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "hasCustomUrl": true, diff --git a/recipes/thelounge/webview.js b/recipes/thelounge/webview.js index 7e174c6..e993264 100644 --- a/recipes/thelounge/webview.js +++ b/recipes/thelounge/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const indirectElements = document.querySelectorAll('.badge:not(.highlight)'); const direct = document.querySelectorAll('.badge.highlight').length; @@ -7,8 +7,8 @@ module.exports = Franz => { if (indirectElements[i].innerHTML.length > 0) indirect++; } console.log(direct, indirect); - Franz.setBadge(direct, indirect); + Ferdi.setBadge(direct, indirect); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRoZWxvdW5nZS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiaW5kaXJlY3RFbGVtZW50cyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImRpcmVjdCIsImxlbmd0aCIsImluZGlyZWN0IiwiaSIsImlubmVySFRNTCIsImNvbnNvbGUiLCJsb2ciLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVM7QUFDekIsT0FBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQzFDLE1BQUlDLG1CQUFtQkMsU0FBU0MsZ0JBQVQsQ0FBMEIs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RpcmVjdCsrO1xuXHRcdH1cblx0XHRjb25zb2xlLmxvZyhkaXJlY3QsIGluZGlyZWN0KTtcblx0XHRGcmFuei5zZXRCYWRnZShkaXJlY3QsIGluZGlyZWN0KTtcblx0fTtcblx0RnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/threema/index.js b/recipes/threema/index.js index caa0632..23607bd 100644 --- a/recipes/threema/index.js +++ b/recipes/threema/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocmVlbWEvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiQUFBQTs7QUFFQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGhyZWVtYS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5tb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/threema/package.json b/recipes/threema/package.json index fa5dbe6..00f3343 100644 --- a/recipes/threema/package.json +++ b/recipes/threema/package.json @@ -1,7 +1,7 @@ { "id": "threema", "name": "Threema", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/Arany/franz-recipe-threema", "config": { diff --git a/recipes/threema/webview.js b/recipes/threema/webview.js index cd3bebd..8c7c137 100644 --- a/recipes/threema/webview.js +++ b/recipes/threema/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = function getMessages() { const elements = document.querySelectorAll('.badge.unread-count:not(.ng-hide)'); let count = 0; @@ -13,14 +15,11 @@ module.exports = Franz => { } } - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocmVlbWEvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJwYXRoIiwicmVxdWlyZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZWxlbWVudHMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJjb3VudCIsImkiLCJsZW5ndGgiLCJwYXJzZUludCIsImlubmVySFRNTCIsInRyaW0iLCJlIiwiY29uc29sZSIsImVycm9yIiwic2V0QmFkZ2UiLCJpbmplY3RDU1MiLCJqb2luIiwiX19kaXJuYW1lIiwibG9vcCJdLCJtYXBwaW5ncyI6IkFBQUE7O0FBRUEsTUFBTUEsT0FBT0MsUUFBUSxNQUFSLENBQWI7O0FBRUFDLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVM7QUFDdEIsVUFBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQ3ZDLGNBQU1DLFdBQVdDLFNBQVNDLGdCQUFULENBQTBCLG1DQUExQixDQUFqQjtBQUNBLFlBQUlDLFFBQVEsQ0FBWjs7QUFFQSxhQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosU0FBU0ssTUFBN0IsRUFBcUNELEtBQUssQ0FBMUMsRUFBNkM7QUFDekMsZ0JBQUk7QUFDQUQseUJBQVNHLFNBQVNOLFNBQVNJLENBQVQsRUFBWUcsU0FBWixDQUFzQkMsSUFBdEIsRUFBVCxFQUF1QyxFQUF2QyxDQUFUO0FBQ0gsY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IGluamVjdCBmcmFuei5jc3Mgc3R5bGVzaGVldFxuICAgIEZyYW56LmluamVjdENTUyhwYXRoLmpvaW4oX19kaXJuYW1lLCAnc2VydmljZS5jc3MnKSk7XG5cbiAgICAvLyBjaGVjayBmb3IgbmV3IG1lc3NhZ2VzIGV2ZXJ5IHNlY29uZCBhbmQgdXBkYXRlIEZyYW56IGJhZGdlXG4gICAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/ticktick/index.js b/recipes/ticktick/index.js index 5c9f5a4..223ef7e 100644 --- a/recipes/ticktick/index.js +++ b/recipes/ticktick/index.js @@ -1,2 +1,2 @@ // default integration (e.g messenger.com, ...) -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/ticktick/package.json b/recipes/ticktick/package.json index 455b1c9..c7d3b58 100644 --- a/recipes/ticktick/package.json +++ b/recipes/ticktick/package.json @@ -1,7 +1,7 @@ { "id": "TickTick", "name": "TickTick", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://www.ticktick.com/#p/inbox/tasks" diff --git a/recipes/ticktick/webview.js b/recipes/ticktick/webview.js index 98049e5..927bb08 100644 --- a/recipes/ticktick/webview.js +++ b/recipes/ticktick/webview.js @@ -1,9 +1,10 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { // all overdue items are being counted const count = document.querySelectorAll('.duedate-overdue').length; - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; diff --git a/recipes/todoist/index.js b/recipes/todoist/index.js index 258da41..23607bd 100644 --- a/recipes/todoist/index.js +++ b/recipes/todoist/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/todoist/package.json b/recipes/todoist/package.json index 5d17d08..ddcf188 100644 --- a/recipes/todoist/package.json +++ b/recipes/todoist/package.json @@ -1,7 +1,7 @@ { "id": "todoist", "name": "Todoist", - "version": "1.2.2", + "version": "1.3.0", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-todoist", "config": { diff --git a/recipes/todoist/webview.js b/recipes/todoist/webview.js index 70bd71c..a65be91 100644 --- a/recipes/todoist/webview.js +++ b/recipes/todoist/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getTasks() { let todayCount = 0; let inboxCount = 0; @@ -13,8 +13,8 @@ module.exports = (Franz, options) => { inboxCount = parseInt(inboxElement.innerHTML, 10); } - Franz.setBadge(inboxCount, todayCount); + Ferdi.setBadge(inboxCount, todayCount); } - Franz.loop(getTasks); + Ferdi.loop(getTasks); }; diff --git a/recipes/toggl/index.js b/recipes/toggl/index.js index 6fadb1f..23607bd 100644 --- a/recipes/toggl/index.js +++ b/recipes/toggl/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRvZ2dsL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidG9nZ2wvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/toggl/package.json b/recipes/toggl/package.json index deb6832..f40b35e 100644 --- a/recipes/toggl/package.json +++ b/recipes/toggl/package.json @@ -1,7 +1,7 @@ { "id": "toggl", "name": "toggl", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.toggl.com/app/timer", diff --git a/recipes/toggl/webview.js b/recipes/toggl/webview.js index 5437fd4..7e19dff 100644 --- a/recipes/toggl/webview.js +++ b/recipes/toggl/webview.js @@ -1,2 +1,2 @@ -module.exports = (Franz, options) => {}; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRvZ2dsL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Iiwib3B0aW9ucyJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQixDQUFDQyxLQUFELEVBQVFDLE9BQVIsS0FBb0IsQ0FBRSxDQUF2QyIsImZpbGUiOiJ0b2dnbC93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSAoRnJhbnosIG9wdGlvbnMpID0+IHt9XG4iXX0= +module.exports = Ferdi => { +}; diff --git a/recipes/trello/index.js b/recipes/trello/index.js index 3d98a33..23607bd 100644 --- a/recipes/trello/index.js +++ b/recipes/trello/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyZWxsby9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InRyZWxsby9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/trello/package.json b/recipes/trello/package.json index be4b891..ceefe8f 100644 --- a/recipes/trello/package.json +++ b/recipes/trello/package.json @@ -1,7 +1,7 @@ { "id": "trello", "name": "Trello", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://trello.com/" diff --git a/recipes/trello/webview.js b/recipes/trello/webview.js index 0c4c227..a6c107d 100644 --- a/recipes/trello/webview.js +++ b/recipes/trello/webview.js @@ -1,10 +1,8 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const notifications = document.querySelectorAll('[class*=_3W-zkl4-bnVKzJ]'); - - Franz.setBadge(0, notifications.length >= 1 ? 1 : 0); + Ferdi.setBadge(0, notifications.length >= 1 ? 1 : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyZWxsby93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwibm90aWZpY2F0aW9ucyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsInNldEJhZGdlIiwibGVuZ3RoIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxVQUFNQyxnQkFBZ0JDLFNBQVNDLGdCQUFULENBQTBCLG9CQUExQixDQUF0Qjs7QUFFQUosVUFBTUssUUFBTixDQUFlLENBQWYsRUFBbUJILGNBQWNJLE1BQWQsSUFBd0IsQ0FBekIsR0FBOEIsQ0FBOUIsR0FBa0MsQ0FBcEQ7QUFDRCxHQUpEOztBQU1BTixRQUFNTyxJQUFOLENBQVdOLFdBQVg7QUFDRCxDQVJEIiwiZmlsZSI6InRyZWxsby93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSAoRnJhbnopID0+IHtcbiAgY29uc3QgZ2V0TWVzc2FnZXMgPSBmdW5jdGlvbiBnZXRNZXNzYWdlcygpIHtcbiAgICBjb25zdCBub3RpZmljYXRpb25zID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLm5ldy1ub3RpZmljYXRpb25zJyk7XG5cbiAgICBGcmFuei5zZXRCYWRnZSgwLCAobm90aWZpY2F0aW9ucy5sZW5ndGggPj0gMSkgPyAxIDogMCk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/tutanota/package.json b/recipes/tutanota/package.json index 6b4fdd4..ba7dfa0 100644 --- a/recipes/tutanota/package.json +++ b/recipes/tutanota/package.json @@ -1,7 +1,7 @@ { "id": "tutanota", "name": "Tutanota", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://mail.tutanota.com/" diff --git a/recipes/tutanota/webview.js b/recipes/tutanota/webview.js index 3ad4701..10157e9 100644 --- a/recipes/tutanota/webview.js +++ b/recipes/tutanota/webview.js @@ -3,11 +3,5 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; - - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/tweetdeck/index.js b/recipes/tweetdeck/index.js index 1326a29..3dc2463 100644 --- a/recipes/tweetdeck/index.js +++ b/recipes/tweetdeck/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Tweetdeck extends Franz { +module.exports = Ferdi => class Tweetdeck extends Ferdi { constructor(...args) { let _temp; @@ -14,4 +14,3 @@ module.exports = Franz => class Tweetdeck extends Franz { } } }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3ZWV0ZGVjay9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJUd2VldGRlY2siLCJldmVudHMiLCJfcmVkaXJlY3RGa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WluRnJhbWUpIHtcbiAgICAgIGlmIChldmVudC5pc01haW5GcmFtZSkge1xuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMuc2VuZCgncmVkaXJlY3QtdXJsJywgZXZlbnQubmV3VVJMKSwgMTAwKTtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn07XG4iXX0= diff --git a/recipes/tweetdeck/package.json b/recipes/tweetdeck/package.json index 77492b3..d564962 100644 --- a/recipes/tweetdeck/package.json +++ b/recipes/tweetdeck/package.json @@ -1,7 +1,7 @@ { "id": "tweetdeck", "name": "Tweetdeck", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://tweetdeck.twitter.com/", diff --git a/recipes/tweetdeck/webview.js b/recipes/tweetdeck/webview.js index 75c7948..158f767 100644 --- a/recipes/tweetdeck/webview.js +++ b/recipes/tweetdeck/webview.js @@ -5,7 +5,7 @@ ipcRenderer.on('redirect-url', (event, url) => { window.location.assign(url); }); -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const elements = document.querySelectorAll('.msg-unread-count'); let count = 0; @@ -13,8 +13,8 @@ module.exports = Franz => { count = parseInt(elements[0].innerHTML, 10); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3ZWV0ZGVjay93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbImlwY1JlbmRlcmVyIiwicmVxdWlyZSIsIm9uIiwiZXZlbnQiLCJ1cmwiLCJ3aW5kb3ciLCJsb2NhdGlvbiIsImFzc2lnbiIsIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZWxlbWVudHMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJ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Z2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgY29uc3QgZWxlbWVudHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcubXNnLXVucmVhZC1jb3VudCcpO1xuICAgIGxldCBjb3VudCA9IDA7XG4gICAgaWYgKGVsZW1lbnRzWzBdKSB7XG4gICAgICBjb3VudCA9IHBhcnNlSW50KGVsZW1lbnRzWzBdLmlubmVySFRNTCwgMTApO1xuICAgIH1cblxuICAgIEZyYW56LnNldEJhZGdlKGNvdW50KTtcbiAgfTtcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/twist/index.js b/recipes/twist/index.js index 258da41..23607bd 100644 --- a/recipes/twist/index.js +++ b/recipes/twist/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/twist/package.json b/recipes/twist/package.json index 73fbb35..45f411b 100644 --- a/recipes/twist/package.json +++ b/recipes/twist/package.json @@ -1,7 +1,7 @@ { "id": "twist", "name": "twist", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://twistapp.com/login", diff --git a/recipes/twist/webview.js b/recipes/twist/webview.js index 596e627..c877d29 100644 --- a/recipes/twist/webview.js +++ b/recipes/twist/webview.js @@ -1,8 +1,8 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const count = document.querySelectorAll('.switch_pane>.unread').length; - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/twitch/index.js b/recipes/twitch/index.js index 7d05620..23607bd 100644 --- a/recipes/twitch/index.js +++ b/recipes/twitch/index.js @@ -1,3 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3aXRjaC9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUE7QUFDQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidHdpdGNoL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8ganVzdCBwYXNzIHRocm91Z2ggRnJhbnpcbm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/twitch/package.json b/recipes/twitch/package.json index efb0312..7192484 100644 --- a/recipes/twitch/package.json +++ b/recipes/twitch/package.json @@ -1,7 +1,7 @@ { "id": "twitch", "name": "Twitch", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.twitch.tv/{teamId}/chat", diff --git a/recipes/twitch/webview.js b/recipes/twitch/webview.js index 8a6ba8e..697efa6 100644 --- a/recipes/twitch/webview.js +++ b/recipes/twitch/webview.js @@ -1,11 +1,8 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { - // Get the number of mentions const mentions = document.querySelectorAll('.chat-line .mentioned').length; - - Franz.setBadge(mentions, 0); + Ferdi.setBadge(mentions, 0); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3aXRjaC93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsIm9wdGlvbnMiLCJnZXRNZXNzYWdlcyIsIm1lbnRpb25zIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwibGVuZ3RoIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCLENBQUNDLEtBQUQsRUFBUUMsT0FBUixLQUFvQjtBQUNuQyxRQUFNQyxjQUFjLE1BQU07QUFDeEI7QUFDQSxVQUFNQyxXQUFXQyxTQUFTQyxnQkFBVCxDQUEwQix1QkFBMUIsRUFBbURDLE1BQXBFOztBQUVBTixVQUFNTyxRQUFOLENBQWVKLFFBQWYsRUFBeUIsQ0FBekI7QUFDRCxHQUxEO0FBTUE7QUFDQUgsUUFBTVEsSUFBTixDQUFXTixXQUFYO0FBQ0QsQ0FURCIsImZpbGUiOiJ0d2l0Y2gvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56LCBvcHRpb25zKSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gKCkgPT4ge1xuICAgIC8vIEdldCB0aGUgbnVtYmVyIG9mIG1lbnRpb25zXG4gICAgY29uc3QgbWVudGlvbnMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuY2hhdC1saW5lIC5tZW50aW9uZWQnKS5sZW5ndGg7XG5cbiAgICBGcmFuei5zZXRCYWRnZShtZW50aW9ucywgMCk7XG4gIH07XG4gIC8vIGNoZWNrIGZvciBuZXcgbWVzc2FnZXMgZXZlcnkgc2Vjb25kIGFuZCB1cGRhdGUgRnJhbnogYmFkZ2VcbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 diff --git a/recipes/twitter-dm/index.js b/recipes/twitter-dm/index.js index 2b9dcc3..23607bd 100644 --- a/recipes/twitter-dm/index.js +++ b/recipes/twitter-dm/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3aXR0ZXItZG0vaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJ0d2l0dGVyLWRtL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/twitter-dm/package.json b/recipes/twitter-dm/package.json index 4ec523a..34b7aa2 100644 --- a/recipes/twitter-dm/package.json +++ b/recipes/twitter-dm/package.json @@ -1,7 +1,7 @@ { "id": "twitter-dm", "name": "Twitter DM", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://mobile.twitter.com/messages", diff --git a/recipes/twitter-dm/webview.js b/recipes/twitter-dm/webview.js index 3a37451..25f9baa 100644 --- a/recipes/twitter-dm/webview.js +++ b/recipes/twitter-dm/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; const elem = document.querySelector('a[href="/messages"] div div'); @@ -7,9 +7,8 @@ module.exports = Franz => { count = parseInt(elem.innerText, 10); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3aXR0ZXItZG0vd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImNvdW50IiwiZWxlbSIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsInBhcnNlSW50IiwiaW5uZXJUZXh0Iiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWtCQyxLQUFELElBQVc7QUFDMUIsUUFBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQ3pDLFFBQUlDLFFBQVEsQ0FBWjtBQUNBLFVBQU1DLE9BQU9DLFNBQVNDLGFBQVQsQ0FBdUIsNkJBQXZCLENBQWI7O0FBRUEsUUFBSUYsSUFBSixFQUFVO0FBQ1JELGNBQVFJLFNBQVNILEtBQUtJLFNBQWQsRUFBeUIsRUFBekIsQ0FBUjtBQUNEOztBQUVEUCxVQUFNUSxRQUFOLENBQWVOLEtBQWY7QUFDRCxHQVREOztBQVdBRixRQUFNUyxJQUFOLENBQVdSLFdBQVg7QUFDRCxDQWJEIiwiZmlsZSI6InR3aXR0ZXItZG0vd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56KSA9PiB7XG4gIGNvbnN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG4gICAgbGV0IGNvdW50ID0gMDtcbiAgICBjb25zdCBlbGVtID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignYVtocmVmPVwiL21lc3NhZ2VzXCJdIGRpdiBkaXYnKTtcblxuICAgIGlmIChlbGVtKSB7XG4gICAgICBjb3VudCA9IHBhcnNlSW50KGVsZW0uaW5uZXJUZXh0LCAxMCk7XG4gICAgfVxuXG4gICAgRnJhbnouc2V0QmFkZ2UoY291bnQpO1xuICB9O1xuXG4gIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== diff --git a/recipes/twitter/index.js b/recipes/twitter/index.js index 258da41..23607bd 100644 --- a/recipes/twitter/index.js +++ b/recipes/twitter/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/twitter/package.json b/recipes/twitter/package.json index 6820f7f..cb840a5 100644 --- a/recipes/twitter/package.json +++ b/recipes/twitter/package.json @@ -1,7 +1,7 @@ { "id": "twitter", "name": "Twitter", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "repository": "https://github.com/getferdi/recipes", "config": { diff --git a/recipes/twitter/webview.js b/recipes/twitter/webview.js index 03b2b2d..39a704e 100644 --- a/recipes/twitter/webview.js +++ b/recipes/twitter/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { let direct = 0; @@ -13,8 +13,8 @@ module.exports = Franz => { direct += DMElement.innerHTML; } - Franz.setBadge(direct); + Ferdi.setBadge(direct); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/unraid/index.js b/recipes/unraid/index.js index 0b926e1..23607bd 100644 --- a/recipes/unraid/index.js +++ b/recipes/unraid/index.js @@ -1,4 +1 @@ -// just pass through Franz -module.exports = function (Franz) { - return Franz; -}; +module.exports = Ferdi => Ferdi; diff --git a/recipes/unraid/package.json b/recipes/unraid/package.json index b8f9eca..61ee6df 100644 --- a/recipes/unraid/package.json +++ b/recipes/unraid/package.json @@ -1,7 +1,7 @@ { "id": "unraid", "name": "Unraid", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/rctneil/franz-recipe-unraid", "config": { diff --git a/recipes/unraid/webview.js b/recipes/unraid/webview.js index 416c722..4d194c4 100644 --- a/recipes/unraid/webview.js +++ b/recipes/unraid/webview.js @@ -1,9 +1,9 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = () => { const messages = $('#jGrowl .jGrowl-notify').length; - Franz.setBadge(messages - 1); + Ferdi.setBadge(messages - 1); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/vk/index.js b/recipes/vk/index.js index 658df32..23607bd 100644 --- a/recipes/vk/index.js +++ b/recipes/vk/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZrL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidmsvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/vk/package.json b/recipes/vk/package.json index 25e7bb8..19b4225 100644 --- a/recipes/vk/package.json +++ b/recipes/vk/package.json @@ -1,7 +1,7 @@ { "id": "vk", "name": "VK", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-vk", "config": { diff --git a/recipes/vk/webview.js b/recipes/vk/webview.js index ab6c619..e48866f 100644 --- a/recipes/vk/webview.js +++ b/recipes/vk/webview.js @@ -1,13 +1,12 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let directs = 0; if (document.getElementsByClassName('left_count').length > 0) { directs = parseInt(document.getElementsByClassName('left_count')[0].innerText, 10); } - Franz.setBadge(directs); + Ferdi.setBadge(directs); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZrL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJkaXJlY3RzIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50c0J5Q2xhc3NOYW1lIiwibGVuZ3RoIiwicGFyc2VJbnQiLCJpbm5lclRleHQiLCJpc05hTiIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxRQUFJQyxVQUFVLENBQWQ7QUFDQSxRQUFJQyxTQUFTQyxzQkFBVCxDQUFnQyxZQUFoQyxFQUE4Q0MsTUFBOUMsR0FBdUQsQ0FBM0QsRUFBOEQ7QUFDNURILGdCQUFVSSxTQUFTSCxTQUFTQyxzQkFBVCxDQUFnQyxZQUFoQyxFQUE4QyxDQUE5QyxFQUFpREcsU0FBMUQsRUFBcUUsRUFBckUsQ0FBVjtBQUNEOztBQUVELFFBQUlDLE1BQU1OLE9BQU4sQ0FBSixFQUFvQjtBQUNsQkEsZ0JBQVUsQ0FBVjtBQUNEOztBQUVERixVQUFNUyxRQUFOLENBQWVQLE9BQWY7QUFDRCxHQVhEOztBQWFBRixRQUFNVSxJQUFOLENBQVdULFdBQVg7QUFDRCxDQWZEIiwiZmlsZSI6InZrL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IChGcmFueikgPT4ge1xuICBjb25zdCBnZXRNZXNzYWdlcyA9IGZ1bmN0aW9uIGdldE1lc3NhZ2VzKCkge1xuICAgIGxldCBkaXJlY3RzID0gMDtcbiAgICBpZiAoZG9jdW1lbnQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSgnbGVmdF9jb3VudCcpLmxlbmd0aCA+IDApIHtcbiAgICAgIGRpcmVjdHMgPSBwYXJzZUludChkb2N1bWVudC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lKCdsZWZ0X2NvdW50JylbMF0uaW5uZXJUZXh0LCAxMCk7XG4gICAgfVxuXG4gICAgaWYgKGlzTmFOKGRpcmVjdHMpKSB7XG4gICAgICBkaXJlY3RzID0gMDtcbiAgICB9XG5cbiAgICBGcmFuei5zZXRCYWRnZShkaXJlY3RzKTtcbiAgfTtcblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn07XG4iXX0= diff --git a/recipes/voxer/index.js b/recipes/voxer/index.js index ecde34b..23607bd 100644 --- a/recipes/voxer/index.js +++ b/recipes/voxer/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZveGVyL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidm94ZXIvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/voxer/package.json b/recipes/voxer/package.json index e077642..b755c5c 100644 --- a/recipes/voxer/package.json +++ b/recipes/voxer/package.json @@ -1,7 +1,7 @@ { "id": "voxer", "name": "Voxer", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://web.voxer.com", diff --git a/recipes/voxer/webview.js b/recipes/voxer/webview.js index 91a4317..23910e0 100644 --- a/recipes/voxer/webview.js +++ b/recipes/voxer/webview.js @@ -1,17 +1,16 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = function getMessages() { const count = document.querySelectorAll('.unconsumed-badge').length; - // set Franz badge - Franz.setBadge(count); + // set Ferdi badge + Ferdi.setBadge(count); }; - // inject franz.css stylesheet - Franz.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZveGVyL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImNvdW50IiwiZG9jdW1lb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yBjaGVjayBmb3IgbmV3IG1lc3NhZ2VzIGV2ZXJ5IHNlY29uZCBhbmQgdXBkYXRlIEZyYW56IGJhZGdlXG4gIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== diff --git a/recipes/webex-teams/package.json b/recipes/webex-teams/package.json index a7a67a6..0b8c3ee 100644 --- a/recipes/webex-teams/package.json +++ b/recipes/webex-teams/package.json @@ -1,7 +1,7 @@ { "id": "webex-teams", "name": "Webex Teams", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://web.webex.com", diff --git a/recipes/webex-teams/webview.js b/recipes/webex-teams/webview.js index 24a36fd..3880fd2 100644 --- a/recipes/webex-teams/webview.js +++ b/recipes/webex-teams/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { let count = 0; @@ -16,7 +16,8 @@ module.exports = (Franz) => { count = 0; } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; diff --git a/recipes/wechat/index.js b/recipes/wechat/index.js index c1e3e1b..23607bd 100644 --- a/recipes/wechat/index.js +++ b/recipes/wechat/index.js @@ -1,4 +1 @@ -// just pass through Franz - -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlY2hhdC9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBOztBQUNBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJ3ZWNoYXQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7XG5cbi8vIGp1c3QgcGFzcyB0aHJvdWdoIEZyYW56XG5tb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/wechat/package.json b/recipes/wechat/package.json index 2587d03..ec29d19 100644 --- a/recipes/wechat/package.json +++ b/recipes/wechat/package.json @@ -1,7 +1,7 @@ { "id": "wechat", "name": "WeChat", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/koma-private/recipe-wechat", "config": { diff --git a/recipes/wechat/webview.js b/recipes/wechat/webview.js index 70433dc..874ab55 100644 --- a/recipes/wechat/webview.js +++ b/recipes/wechat/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz, options) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { function getMessages() { let directCount = 0; let indirectCount = 0; @@ -22,11 +24,10 @@ module.exports = (Franz, options) => { } }); - Franz.setBadge(directCount, indirectCount); + Ferdi.setBadge(directCount, indirectCount); } - Franz.injectCSS(path.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); - Franz.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlY2hhdC93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbInBhdGgiLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Iiwib3B0aW9ucyIsImdldE1lc3NhZ2VzIiwiZGlyZWN0Q291bnQiLCJpbmRpcmVjdENvdW50IiwiY2hhdF9pdGVtIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwiQXJyYXkiLCJwcm90b3R5cGUiLCJmb3JFYWNoIiwiY2FsbCIsIml0ZW0iLCJjb3VudCIsInJlZGRvdCIsInF1ZXJ5U2VsZWN0b3IiLCJhdmF0YXJJbWFnZSIsImlubmVyVGV4dCIsInBhcnNlSW50IiwiZ2V0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Q291bnQgKz0gY291bnQ7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBpbmRpcmVjdENvdW50ICs9IGNvdW50O1xuICAgICAgfVxuICAgIH0pO1xuXG4gICAgRnJhbnouc2V0QmFkZ2UoZGlyZWN0Q291bnQsIGluZGlyZWN0Q291bnQpO1xuICB9XG5cbiAgRnJhbnouaW5qZWN0Q1NTKHBhdGguam9pbihfX2Rpcm5hbWUsICdzZXJ2aWNlLmNzcycpKTtcblxuICBGcmFuei5sb29wKGdldE1lc3NhZ2VzKTtcbn1cbiJdfQ== diff --git a/recipes/whatsapp/index.js b/recipes/whatsapp/index.js index 96c95a3..4caf116 100644 --- a/recipes/whatsapp/index.js +++ b/recipes/whatsapp/index.js @@ -1,13 +1,13 @@ -module.exports = (Franz) => class Messenger extends Franz { +module.exports = (Ferdi) => class Messenger extends Ferdi { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+( \([^)]+\))?/g, '').trim(); + return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); } modifyRequestHeaders() { return [ { headers: { - 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+( \([^)]+\))?/g, '').trim(), + 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), }, requestFilters: { urls: ['*://*/*'], diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 58f440e..360cc47 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.1.2", + "version": "3.2.0", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 143c066..773caa8 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -1,13 +1,12 @@ -const { - remote, -} = require('electron'); +const { remote } = require('electron'); -const path = require('path'); +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const webContents = remote.getCurrentWebContents(); -const { - session, -} = webContents; +const { session } = webContents; + window.addEventListener('beforeunload', async () => { try { session.flushStorageData(); @@ -24,7 +23,7 @@ window.addEventListener('beforeunload', async () => { } }); -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let count = 0; let indirectCount = 0; @@ -46,9 +45,10 @@ module.exports = Franz => { } } - Franz.setBadge(count, indirectCount); + Ferdi.setBadge(count, indirectCount); }; - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/withspectrum/index.js b/recipes/withspectrum/index.js index 71c0924..23607bd 100644 --- a/recipes/withspectrum/index.js +++ b/recipes/withspectrum/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGhzcGVjdHJ1bS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6IndpdGhzcGVjdHJ1bS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbnpcbiJdfQ== +module.exports = Ferdi => Ferdi; diff --git a/recipes/withspectrum/package.json b/recipes/withspectrum/package.json index fa5611b..ae1025c 100644 --- a/recipes/withspectrum/package.json +++ b/recipes/withspectrum/package.json @@ -1,7 +1,7 @@ { "id": "withspectrum", "name": "Spectrum", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://spectrum.chat" diff --git a/recipes/withspectrum/webview.js b/recipes/withspectrum/webview.js index e50634c..0a3d9f3 100644 --- a/recipes/withspectrum/webview.js +++ b/recipes/withspectrum/webview.js @@ -1,12 +1,11 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { const element = document.querySelector('[href="/notifications"] > div'); const content = window.getComputedStyle(element, ':after').getPropertyValue('content').match(/\d+/); const notifications = Number(content); - Franz.setBadge(notifications); + Ferdi.setBadge(notifications); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGhzcGVjdHJ1bS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZWxlbWVudCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsImNvbnRlbnQiLCJ3aW5kb3ciLCJnZXRDb21wdXRlZFN0eWxlIiwiZ2V0UHJvcGVydHlWYWx1ZSIsIm1hdGNoIiwibm90aWZpY2F0aW9ucyIsIk51bWJlciIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUztBQUN4QixRQUFNQyxjQUFjLE1BQU07QUFDeEIsVUFBTUMsVUFBVUMsU0FBU0MsYUFBVCxDQUF1QiwrQkFBdkIsQ0FBaEI7QUFDQSxVQUFNQyxVQUFVQyxPQUNiQyxnQkFEYSxDQUNJTCxPQURKLEVBQ2EsUUFEYixFQUViTSxnQkFGYSxDQUVJLFNBRkosRUFHYkMsS0FIYSxDQUdQLEtBSE8sQ0FBaEI7QUFJQSxVQUFNQyxnQkFBZ0JDLE9BQU9OLE9BQVAsQ0FBdEI7O0FBRUFMLFVBQU1ZLFFBQU4sQ0FBZUYsYUFBZjtBQUNELEdBVEQ7O0FBV0FWLFFBQU1hLElBQU4sQ0FBV1osV0FBWDtBQUNELENBYkQiLCJmaWxlIjoid2l0aHNwZWN0cnVtL3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IHtcbiAgY29uc3QgZ2V0TWVzc2FnZXMgPSAoKSA9PiB7XG4gICAgY29uc3QgZWxlbWVudCA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ1tocmVmPVwiL25vdGlmaWNhdGlvbnNcIl0gPiBkaXYnKVxuICAgIGNvbnN0IGNvbnRlbnQgPSB3aW5kb3dcbiAgICAgIC5nZXRDb21wdXRlZFN0eWxlKGVsZW1lbnQsICc6YWZ0ZXInKVxuICAgICAgLmdldFByb3BlcnR5VmFsdWUoJ2NvbnRlbnQnKVxuICAgICAgLm1hdGNoKC9cXGQrLylcbiAgICBjb25zdCBub3RpZmljYXRpb25zID0gTnVtYmVyKGNvbnRlbnQpXG5cbiAgICBGcmFuei5zZXRCYWRnZShub3RpZmljYXRpb25zKVxuICB9XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcylcbn1cbiJdfQ== diff --git a/recipes/workplace/index.js b/recipes/workplace/index.js index 258da41..23607bd 100644 --- a/recipes/workplace/index.js +++ b/recipes/workplace/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/workplace/package.json b/recipes/workplace/package.json index 5be0095..61e317c 100644 --- a/recipes/workplace/package.json +++ b/recipes/workplace/package.json @@ -1,7 +1,7 @@ { "id": "workplace", "name": "Workplace", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.workplace.com/chat", diff --git a/recipes/workplace/webview.js b/recipes/workplace/webview.js index af2af89..e10c449 100644 --- a/recipes/workplace/webview.js +++ b/recipes/workplace/webview.js @@ -1,6 +1,8 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { const getMessages = () => { let direct = 0; let indirect = 0; @@ -23,18 +25,20 @@ module.exports = Franz => { } } - Franz.setBadge(direct, indirect); + Ferdi.setBadge(direct, indirect); }; - Franz.injectCSS(path.join(__dirname, 'workplace.css')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'workplace.css')); + localStorage._cs_desktopNotifsEnabled = JSON.stringify({ __t: new Date().getTime(), __v: true, }); - if (typeof Franz.onNotify === 'function') { - Franz.onNotify(notification => { + if (typeof Ferdi.onNotify === 'function') { + Ferdi.onNotify(notification => { if (typeof notification.title !== 'string') { notification.title = ((notification.title.props || {}).content || [])[0] || 'Work Chat'; } diff --git a/recipes/wrike/index.js b/recipes/wrike/index.js index 46f936f..23607bd 100644 --- a/recipes/wrike/index.js +++ b/recipes/wrike/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/wrike/package.json b/recipes/wrike/package.json index 0e93c58..3d151a3 100644 --- a/recipes/wrike/package.json +++ b/recipes/wrike/package.json @@ -1,7 +1,7 @@ { "id": "wrike", "name": "Wrike", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/koma-private/recipe-wrike", "config": { diff --git a/recipes/wrike/webview.js b/recipes/wrike/webview.js index 359d93a..be80318 100644 --- a/recipes/wrike/webview.js +++ b/recipes/wrike/webview.js @@ -1,4 +1,4 @@ -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { function getMessages() { let directCount = 0; const element = document.querySelector('.ws-navigation-button__indicator.ws-navigation-button-indicator'); @@ -7,8 +7,8 @@ module.exports = (Franz, options) => { directCount = parseInt(element.innerText); } - Franz.setBadge(directCount); + Ferdi.setBadge(directCount); } - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/xing/index.js b/recipes/xing/index.js index 1425e8b..23607bd 100644 --- a/recipes/xing/index.js +++ b/recipes/xing/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInhpbmcvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJ4aW5nL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejsiXX0= +module.exports = Ferdi => Ferdi; diff --git a/recipes/xing/package.json b/recipes/xing/package.json index 983b906..0e3637d 100644 --- a/recipes/xing/package.json +++ b/recipes/xing/package.json @@ -1,7 +1,7 @@ { "id": "xing", "name": "XING", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://www.xing.com/messenger/global" diff --git a/recipes/xing/webview.js b/recipes/xing/webview.js index 1cdf7cb..97daed2 100644 --- a/recipes/xing/webview.js +++ b/recipes/xing/webview.js @@ -1,11 +1,10 @@ -module.exports = Franz => { +module.exports = Ferdi => { function getUnreadConversations() { let unreadConversations = 0; unreadConversations = parseInt(document.querySelector('#unread-conversations').innerHTML, 10); - Franz.setBadge(unreadConversations); + Ferdi.setBadge(unreadConversations); } - Franz.loop(getUnreadConversations); + Ferdi.loop(getUnreadConversations); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInhpbmcvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRVbnJlYWRDb252ZXJzYXRpb25zIiwidW5yZWFkQ29udmVyc2F0aW9ucyIsInBhcnNlSW50IiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yIiwiaW5uZXJIVE1MIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWtCQyxLQUFELElBQVc7QUFDMUIsV0FBU0Msc0JBQVQsR0FBa0M7QUFDaEMsUUFBSUMsc0JBQXNCLENBQTFCO0FBQ0FBLDBCQUFzQkMsU0FBU0MsU0FBU0MsYUFBVCxDQUF1Qix1QkFBdkIsRUFBZ0RDLFNBQXpELEVBQW9FLEVBQXBFLENBQXRCOztBQUVBTixVQUFNTyxRQUFOLENBQWVMLG1CQUFmO0FBQ0Q7O0FBRURGLFFBQU1RLElBQU4sQ0FBV1Asc0JBQVg7QUFDRCxDQVREIiwiZmlsZSI6Inhpbmcvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKEZyYW56KSA9PiB7XG4gIGZ1bmN0aW9uIGdldFVucmVhZENvbnZlcnNhdGlvbnMoKSB7XG4gICAgbGV0IHVucmVhZENvbnZlcnNhdGlvbnMgPSAwO1xuICAgIHVucmVhZENvbnZlcnNhdGlvbnMgPSBwYXJzZUludChkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCcjdW5yZWFkLWNvbnZlcnNhdGlvbnMnKS5pbm5lckhUTUwsIDEwKTtcblxuICAgIEZyYW56LnNldEJhZGdlKHVucmVhZENvbnZlcnNhdGlvbnMpO1xuICB9XG5cbiAgRnJhbnoubG9vcChnZXRVbnJlYWRDb252ZXJzYXRpb25zKTtcbn1cbjsiXX0= diff --git a/recipes/yahoo-mail/index.js b/recipes/yahoo-mail/index.js index b52af44..b47bdb4 100644 --- a/recipes/yahoo-mail/index.js +++ b/recipes/yahoo-mail/index.js @@ -1,8 +1,9 @@ -module.exports = (Franz) => class YahooMail extends Franz { +module.exports = (Ferdi) => class YahooMail extends Ferdi { modifyRequestHeaders() { return [ { headers: { + // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdi 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', }, requestFilters: { diff --git a/recipes/yahoo-mail/package.json b/recipes/yahoo-mail/package.json index 29f6f66..4bb2901 100644 --- a/recipes/yahoo-mail/package.json +++ b/recipes/yahoo-mail/package.json @@ -1,7 +1,7 @@ { "id": "yahoo-mail", "name": "Yahoo Mail", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://mail.yahoo.com", diff --git a/recipes/yahoo-mail/webview.js b/recipes/yahoo-mail/webview.js index fd5add1..fc47f26 100644 --- a/recipes/yahoo-mail/webview.js +++ b/recipes/yahoo-mail/webview.js @@ -1,9 +1,8 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { const count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count'); - Franz.setBadge(count); + Ferdi.setBadge(count); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/yammer/index.js b/recipes/yammer/index.js index 258da41..23607bd 100644 --- a/recipes/yammer/index.js +++ b/recipes/yammer/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/yammer/package.json b/recipes/yammer/package.json index 7dc54f1..86b5bc6 100644 --- a/recipes/yammer/package.json +++ b/recipes/yammer/package.json @@ -1,7 +1,7 @@ { "id": "yammer", "name": "Yammer", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.yammer.com/login", diff --git a/recipes/yammer/webview.js b/recipes/yammer/webview.js index 8ec7a11..91daba6 100644 --- a/recipes/yammer/webview.js +++ b/recipes/yammer/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { let directMessages = 0; let indirectMessages = 0; @@ -13,8 +13,8 @@ module.exports = Franz => { indirectMessages = parseInt(newMessagesElement.innerHTML.match(/\d+/)[0], 10); } - Franz.setBadge(directMessages, indirectMessages); + Ferdi.setBadge(directMessages, indirectMessages); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/youtrack/package.json b/recipes/youtrack/package.json index 754df18..53ea807 100644 --- a/recipes/youtrack/package.json +++ b/recipes/youtrack/package.json @@ -1,7 +1,7 @@ { "id": "youtrack", "name": "YouTrack", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.myjetbrains.com/youtrack/", diff --git a/recipes/youtrack/webview.js b/recipes/youtrack/webview.js index ef799ae..071b300 100644 --- a/recipes/youtrack/webview.js +++ b/recipes/youtrack/webview.js @@ -1,7 +1,3 @@ -const _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - module.exports = Ferdi => { const getMessages = function getMessages() { const unread = document.querySelectorAll('.header__bell-wrapper_unread'); diff --git a/recipes/youtubemusic/index.js b/recipes/youtubemusic/index.js index 258da41..23607bd 100644 --- a/recipes/youtubemusic/index.js +++ b/recipes/youtubemusic/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/youtubemusic/package.json b/recipes/youtubemusic/package.json index 76a1355..373ec2b 100644 --- a/recipes/youtubemusic/package.json +++ b/recipes/youtubemusic/package.json @@ -1,7 +1,7 @@ { "id": "youtubemusic", "name": "YouTube Music", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://music.youtube.com/" diff --git a/recipes/zalo/index.js b/recipes/zalo/index.js index 258da41..23607bd 100644 --- a/recipes/zalo/index.js +++ b/recipes/zalo/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/zalo/package.json b/recipes/zalo/package.json index 1815891..ddbbbcd 100644 --- a/recipes/zalo/package.json +++ b/recipes/zalo/package.json @@ -1,7 +1,7 @@ { "id": "zalo", "name": "Zalo", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://chat.zalo.me/", diff --git a/recipes/zalo/webview.js b/recipes/zalo/webview.js index a89f0d3..2966ca1 100644 --- a/recipes/zalo/webview.js +++ b/recipes/zalo/webview.js @@ -1,9 +1,9 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const unread = 0; const notificationBadge = document.getElementsByClassName('tab-red-dot').length; - Franz.setBadge(notificationBadge); + Ferdi.setBadge(notificationBadge); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/zendesk/index.js b/recipes/zendesk/index.js index 258da41..23607bd 100644 --- a/recipes/zendesk/index.js +++ b/recipes/zendesk/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/zendesk/package.json b/recipes/zendesk/package.json index 8cbdbe9..922195b 100644 --- a/recipes/zendesk/package.json +++ b/recipes/zendesk/package.json @@ -1,7 +1,7 @@ { "id": "zendesk", "name": "zendesk", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.zendesk.com/agent", diff --git a/recipes/zendesk/webview.js b/recipes/zendesk/webview.js index e080b07..8bc58ac 100644 --- a/recipes/zendesk/webview.js +++ b/recipes/zendesk/webview.js @@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { let count = 0; const el = document.querySelector('.dashboard-top-panel .indicators .stats-group .cell-value'); @@ -11,9 +11,10 @@ module.exports = Franz => { count = parseInt(el.innerHTML, 10); } - Franz.setBadge(count); + Ferdi.setBadge(count); }; - Franz.loop(getMessages); - Franz.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; diff --git a/recipes/zenhub/index.js b/recipes/zenhub/index.js index 258da41..23607bd 100644 --- a/recipes/zenhub/index.js +++ b/recipes/zenhub/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/zenhub/package.json b/recipes/zenhub/package.json index 50e10db..ca3d0e6 100644 --- a/recipes/zenhub/package.json +++ b/recipes/zenhub/package.json @@ -1,7 +1,7 @@ { "id": "zenhub", "name": "ZenHub", - "version": "0.1.2", + "version": "0.2.0", "license": "MIT", "repository": "https://github.com/mordaroso/recipe-franz-zenhub", "config": { diff --git a/recipes/zeplin/index.js b/recipes/zeplin/index.js index 258da41..23607bd 100644 --- a/recipes/zeplin/index.js +++ b/recipes/zeplin/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/zeplin/package.json b/recipes/zeplin/package.json index a6b2a05..bddbc57 100644 --- a/recipes/zeplin/package.json +++ b/recipes/zeplin/package.json @@ -1,7 +1,7 @@ { "id": "zeplin", "name": "Zeplin", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://app.zeplin.io/login" diff --git a/recipes/zeplin/webview.js b/recipes/zeplin/webview.js index 00030b0..445eebe 100644 --- a/recipes/zeplin/webview.js +++ b/recipes/zeplin/webview.js @@ -1,15 +1,9 @@ -const path = require('path'); - -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { const totalNotifications = document.querySelectorAll('#notificationList > .notification').length; const hasUnread = document.querySelectorAll('#notificationsButton.hasUnread').length > 0; - - // set Franz badge - if (hasUnread) { - Franz.setBadge(totalNotifications); - } + Ferdi.setBadge(hasUnread ? totalNotifications : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/zimbra/index.js b/recipes/zimbra/index.js index 94357a3..1b0a47f 100644 --- a/recipes/zimbra/index.js +++ b/recipes/zimbra/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Zimbra extends Franz { +module.exports = Ferdi => class Zimbra extends Ferdi { async validateUrl(url) { return true; } diff --git a/recipes/zimbra/package.json b/recipes/zimbra/package.json index 9d9ae67..0fc0fc4 100644 --- a/recipes/zimbra/package.json +++ b/recipes/zimbra/package.json @@ -1,7 +1,7 @@ { "id": "zimbra", "name": "Zimbra", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "hasNotificationSound": true, diff --git a/recipes/zimbra/webview.js b/recipes/zimbra/webview.js index f56f09d..e2cf890 100644 --- a/recipes/zimbra/webview.js +++ b/recipes/zimbra/webview.js @@ -1,16 +1,9 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = function getMessages() { const { title } = document; const regex = /\d+/; - - if (regex.test(title)) { - Franz.setBadge( - Number(regex.exec(title)[0]), - ); - } else { - Franz.setBadge(0); - } + Ferdi.setBadge(regex.test(title) ? Number(regex.exec(title)[0]) : 0); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/zoho/index.js b/recipes/zoho/index.js index 46f936f..23607bd 100644 --- a/recipes/zoho/index.js +++ b/recipes/zoho/index.js @@ -1,2 +1 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/zoho/package.json b/recipes/zoho/package.json index c2b9f15..0ad72c0 100644 --- a/recipes/zoho/package.json +++ b/recipes/zoho/package.json @@ -1,7 +1,7 @@ { "id": "zoho", "name": "Zoho Mail", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.zoho.com/mail/login.html", diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js index 60fd052..177ea4c 100644 --- a/recipes/zoho/webview.js +++ b/recipes/zoho/webview.js @@ -1,12 +1,10 @@ -const path = require('path'); - -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { const unreadMailInCurrentFolder = $('.zmList.zmLUrd').length; const unreadMailAnyware = $('#zmlTree .zmTreeNDWra .zmBold').length; - Franz.setBadge(unreadMailInCurrentFolder, unreadMailAnyware); + Ferdi.setBadge(unreadMailInCurrentFolder, unreadMailAnyware); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; diff --git a/recipes/zulip/index.js b/recipes/zulip/index.js index cd8ffea..5854600 100644 --- a/recipes/zulip/index.js +++ b/recipes/zulip/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class Zulip extends Franz { +module.exports = Ferdi => class Zulip extends Ferdi { async validateUrl(url) { const baseUrl = new window.URL(url); const apiVersion = 'api/v1'; diff --git a/recipes/zulip/package.json b/recipes/zulip/package.json index e5ee86e..21b2d44 100644 --- a/recipes/zulip/package.json +++ b/recipes/zulip/package.json @@ -1,7 +1,7 @@ { "id": "zulip", "name": "Zulip", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "config": { "hasNotificationSound": true, diff --git a/recipes/zulip/webview.js b/recipes/zulip/webview.js index 7a71886..09e999d 100644 --- a/recipes/zulip/webview.js +++ b/recipes/zulip/webview.js @@ -1,7 +1,8 @@ -module.exports = (Franz) => { +module.exports = (Ferdi) => { const getMessages = function getMessages() { const allMessages = Math.round(document.querySelectorAll('#global_filters .top_left_all_messages .count .value')[0].innerText); - Franz.setBadge(allMessages); + Ferdi.setBadge(allMessages); }; - Franz.loop(getMessages); + + Ferdi.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf