From d003cb9d863070e364bf02f083ba80291ef04a4b Mon Sep 17 00:00:00 2001 From: vantezzen Date: Tue, 14 Jan 2020 20:47:35 +0100 Subject: Add habitica and mastodon --- uncompressed/habitica/LICENSE | 21 +++++++++++++ uncompressed/habitica/README.md | 5 +++ uncompressed/habitica/icon.png | Bin 0 -> 5283 bytes uncompressed/habitica/icon.svg | 34 +++++++++++++++++++++ uncompressed/habitica/index.js | 3 ++ uncompressed/habitica/package.json | 13 ++++++++ uncompressed/habitica/webview.js | 3 ++ uncompressed/mastodon/README.md | 5 +++ uncompressed/mastodon/icon.png | Bin 0 -> 14344 bytes uncompressed/mastodon/icon.svg | 22 +++++++++++++ uncompressed/mastodon/index.js | 14 +++++++++ uncompressed/mastodon/package.json | 24 +++++++++++++++ .../LICENSE | 21 +++++++++++++ .../README.md | 5 +++ .../icon.png | Bin 0 -> 5283 bytes .../icon.svg | 34 +++++++++++++++++++++ .../index.js | 3 ++ .../package.json | 13 ++++++++ .../webview.js | 3 ++ uncompressed/mastodon/webview.js | 28 +++++++++++++++++ 20 files changed, 251 insertions(+) create mode 100755 uncompressed/habitica/LICENSE create mode 100755 uncompressed/habitica/README.md create mode 100644 uncompressed/habitica/icon.png create mode 100755 uncompressed/habitica/icon.svg create mode 100755 uncompressed/habitica/index.js create mode 100755 uncompressed/habitica/package.json create mode 100755 uncompressed/habitica/webview.js create mode 100644 uncompressed/mastodon/README.md create mode 100644 uncompressed/mastodon/icon.png create mode 100644 uncompressed/mastodon/icon.svg create mode 100644 uncompressed/mastodon/index.js create mode 100644 uncompressed/mastodon/package.json create mode 100755 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/LICENSE create mode 100755 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/README.md create mode 100644 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.png create mode 100755 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.svg create mode 100755 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/index.js create mode 100755 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/package.json create mode 100755 uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/webview.js create mode 100644 uncompressed/mastodon/webview.js (limited to 'uncompressed') diff --git a/uncompressed/habitica/LICENSE b/uncompressed/habitica/LICENSE new file mode 100755 index 0000000..95f7444 --- /dev/null +++ b/uncompressed/habitica/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Yuriy Badalyantc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/uncompressed/habitica/README.md b/uncompressed/habitica/README.md new file mode 100755 index 0000000..36ba2d0 --- /dev/null +++ b/uncompressed/habitica/README.md @@ -0,0 +1,5 @@ +# Habitica for Franz +This is the Franz recipe for [Habitica](https://habitica.com) + +### How to create your own Franz recipes: +* [Read the documentation](https://github.com/meetfranz/plugins) diff --git a/uncompressed/habitica/icon.png b/uncompressed/habitica/icon.png new file mode 100644 index 0000000..094734b Binary files /dev/null and b/uncompressed/habitica/icon.png differ diff --git a/uncompressed/habitica/icon.svg b/uncompressed/habitica/icon.svg new file mode 100755 index 0000000..6cbda6a --- /dev/null +++ b/uncompressed/habitica/icon.svg @@ -0,0 +1,34 @@ + + + + +Created by potrace 1.15, written by Peter Selinger 2001-2017 + + + + + + diff --git a/uncompressed/habitica/index.js b/uncompressed/habitica/index.js new file mode 100755 index 0000000..17daa35 --- /dev/null +++ b/uncompressed/habitica/index.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; diff --git a/uncompressed/habitica/package.json b/uncompressed/habitica/package.json new file mode 100755 index 0000000..13f36bd --- /dev/null +++ b/uncompressed/habitica/package.json @@ -0,0 +1,13 @@ +{ + "id": "habitica", + "name": "Habitica", + "version": "1.0.0", + "description": "Habitica", + "main": "index.js", + "license": "MIT", + "author": "Yuriy Badalyantc ", + "repository": "https://github.com/lmnet/franz-recipe-notion", + "config": { + "serviceURL": "https://habitica.com" + } +} diff --git a/uncompressed/habitica/webview.js b/uncompressed/habitica/webview.js new file mode 100755 index 0000000..17daa35 --- /dev/null +++ b/uncompressed/habitica/webview.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; diff --git a/uncompressed/mastodon/README.md b/uncompressed/mastodon/README.md new file mode 100644 index 0000000..04fca53 --- /dev/null +++ b/uncompressed/mastodon/README.md @@ -0,0 +1,5 @@ +# franz-plugin-mastodon + +[franz](http://meetfranz.com/) integration for [Mastodon](https://github.com/tootsuite/mastodon). + +see http://qiita.com/kan/items/571b2f56c54e1e3b6516 diff --git a/uncompressed/mastodon/icon.png b/uncompressed/mastodon/icon.png new file mode 100644 index 0000000..3a475f6 Binary files /dev/null and b/uncompressed/mastodon/icon.png differ diff --git a/uncompressed/mastodon/icon.svg b/uncompressed/mastodon/icon.svg new file mode 100644 index 0000000..f44ec3f --- /dev/null +++ b/uncompressed/mastodon/icon.svg @@ -0,0 +1,22 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + diff --git a/uncompressed/mastodon/index.js b/uncompressed/mastodon/index.js new file mode 100644 index 0000000..561bb58 --- /dev/null +++ b/uncompressed/mastodon/index.js @@ -0,0 +1,14 @@ +module.exports = (Franz) => { + class Mastodon extends Franz { + validateServer(URL) { + const api = `${URL}`; + return new Promise((resolve, reject) => { + $.get(api, (resp) => { + resolve(); + }).fail(reject); + }); + } + } + + return Mastodon; +}; diff --git a/uncompressed/mastodon/package.json b/uncompressed/mastodon/package.json new file mode 100644 index 0000000..bd72fbd --- /dev/null +++ b/uncompressed/mastodon/package.json @@ -0,0 +1,24 @@ +{ + "name": "Mastodon", + "id": "mastodon", + "version": "1.1.0", + "description": "micro blog", + "main": "index.js", + "author": "The Ferdi Team and Kan Fushihara ", + "license": "MIT", + "config": { + "serviceURL": "", + "serviceName": "Mastodon", + "message": "", + "popup": [], + "hasNotificationSound": true, + "hasIndirectMessages": false, + "hasTeamID": true, + "customURL": true, + "hostedOnly": true, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/LICENSE b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/LICENSE new file mode 100755 index 0000000..95f7444 --- /dev/null +++ b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Yuriy Badalyantc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/README.md b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/README.md new file mode 100755 index 0000000..36ba2d0 --- /dev/null +++ b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/README.md @@ -0,0 +1,5 @@ +# Habitica for Franz +This is the Franz recipe for [Habitica](https://habitica.com) + +### How to create your own Franz recipes: +* [Read the documentation](https://github.com/meetfranz/plugins) diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.png b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.png new file mode 100644 index 0000000..094734b Binary files /dev/null and b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.png differ diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.svg b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.svg new file mode 100755 index 0000000..6cbda6a --- /dev/null +++ b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/icon.svg @@ -0,0 +1,34 @@ + + + + +Created by potrace 1.15, written by Peter Selinger 2001-2017 + + + + + + diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/index.js b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/index.js new file mode 100755 index 0000000..17daa35 --- /dev/null +++ b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/index.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/package.json b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/package.json new file mode 100755 index 0000000..13f36bd --- /dev/null +++ b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/package.json @@ -0,0 +1,13 @@ +{ + "id": "habitica", + "name": "Habitica", + "version": "1.0.0", + "description": "Habitica", + "main": "index.js", + "license": "MIT", + "author": "Yuriy Badalyantc ", + "repository": "https://github.com/lmnet/franz-recipe-notion", + "config": { + "serviceURL": "https://habitica.com" + } +} diff --git a/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/webview.js b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/webview.js new file mode 100755 index 0000000..17daa35 --- /dev/null +++ b/uncompressed/mastodon/rjbernaldo-franz-recipe-habitica-0eb648d/webview.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; diff --git a/uncompressed/mastodon/webview.js b/uncompressed/mastodon/webview.js new file mode 100644 index 0000000..d3644e8 --- /dev/null +++ b/uncompressed/mastodon/webview.js @@ -0,0 +1,28 @@ +module.exports = (Franz, options) => { + let latestStatement = $('.status time').attr('datetime'); + let latestNotify = $($('.notification__message span').get(0)).text(); + + $($('div.column div.scrollable').get(0)).on('scroll', (ev) => { + latestStatement = $('.status time').attr('datetime'); + }); + $($('div.column div.scrollable').get(1)).on('scroll', (ev) => { + latestNotify = $($('.notification__message span').get(0)).text(); + }); + + function getMessages() { + var reply = 0; + const ln = $($('.notification__message span').get(0)).text(); + if (ln != latestNotify) { + reply = 1; + } + var unread = 0; + const ls = $('.status time').attr('datetime'); + if (ls != latestStatement) { + unread = 1; + } + + Franz.setBadge(reply, unread); + } + + Franz.loop(getMessages); +} -- cgit v1.2.3-54-g00ecf