From 3acb0f0eed5784d25c0f8396362049942c2742fb Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 12 Oct 2021 05:17:05 +0530 Subject: Merged 'drive' into 'googledrive' recipe. (fixes #2055) --- recipes/drive/icon.svg | 1 - recipes/drive/index.js | 1 - recipes/drive/package.json | 11 ----------- recipes/drive/service.css | 5 ----- recipes/drive/webview.js | 20 -------------------- recipes/googledrive/icon.svg | 2 +- recipes/googledrive/index.js | 2 +- recipes/googledrive/package.json | 5 +++-- recipes/googledrive/service.css | 6 +++--- recipes/googledrive/webview.js | 1 + 10 files changed, 9 insertions(+), 45 deletions(-) delete mode 100644 recipes/drive/icon.svg delete mode 100644 recipes/drive/index.js delete mode 100644 recipes/drive/package.json delete mode 100644 recipes/drive/service.css delete mode 100644 recipes/drive/webview.js (limited to 'recipes') diff --git a/recipes/drive/icon.svg b/recipes/drive/icon.svg deleted file mode 100644 index f161e6d..0000000 --- a/recipes/drive/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/drive/index.js b/recipes/drive/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/drive/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = Ferdi => Ferdi; diff --git a/recipes/drive/package.json b/recipes/drive/package.json deleted file mode 100644 index 3bb9c85..0000000 --- a/recipes/drive/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "id": "drive", - "name": "Drive", - "version": "1.0.1", - "license": "MIT", - "repository": "https://github.com/gaspergrom/Franz-services", - "config": { - "serviceURL": "https://drive.google.com", - "hasNotificationSound": true - } -} diff --git a/recipes/drive/service.css b/recipes/drive/service.css deleted file mode 100644 index 2d8c1a6..0000000 --- a/recipes/drive/service.css +++ /dev/null @@ -1,5 +0,0 @@ -.app-wrapper-web .app { - width: 100% !important; - height: 100% !important; - top: 0 !important; -} diff --git a/recipes/drive/webview.js b/recipes/drive/webview.js deleted file mode 100644 index cc1ed84..0000000 --- a/recipes/drive/webview.js +++ /dev/null @@ -1,20 +0,0 @@ -const _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (Ferdi) => { - const getMessages = () => { - let direct = 0; - let indirect = 0; - const data = document.querySelector('#FranzMessages').dataset; - if (data) { - direct = data.direct; - indirect = data.indirect; - } - - Ferdi.setBadge(direct, indirect); - } - - Ferdi.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); -} diff --git a/recipes/googledrive/icon.svg b/recipes/googledrive/icon.svg index c5dca8f..c430a62 100644 --- a/recipes/googledrive/icon.svg +++ b/recipes/googledrive/icon.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/recipes/googledrive/index.js b/recipes/googledrive/index.js index 7b71e60..23607bd 100644 --- a/recipes/googledrive/index.js +++ b/recipes/googledrive/index.js @@ -1 +1 @@ -module.exports = Ferdi => class googledrive extends Ferdi {}; +module.exports = Ferdi => Ferdi; diff --git a/recipes/googledrive/package.json b/recipes/googledrive/package.json index 7ee22ae..97bc395 100644 --- a/recipes/googledrive/package.json +++ b/recipes/googledrive/package.json @@ -1,10 +1,11 @@ { "id": "googledrive", "name": "Google Drive", - "version": "2.1.0", + "version": "2.1.1", "repository": "https://github.com/BrianGilbert/franz-recipe-tawk", "license": "MIT", "config": { - "serviceURL": "https://drive.google.com/" + "serviceURL": "https://drive.google.com/", + "hasNotificationSound": true } } diff --git a/recipes/googledrive/service.css b/recipes/googledrive/service.css index b453fd4..2d8c1a6 100644 --- a/recipes/googledrive/service.css +++ b/recipes/googledrive/service.css @@ -1,5 +1,5 @@ .app-wrapper-web .app { - width: 100% !important; - height: 100% !important; - top: 0 !important; + width: 100% !important; + height: 100% !important; + top: 0 !important; } diff --git a/recipes/googledrive/webview.js b/recipes/googledrive/webview.js index ae1e755..c17f205 100644 --- a/recipes/googledrive/webview.js +++ b/recipes/googledrive/webview.js @@ -3,5 +3,6 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = (Ferdi) => { + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; -- cgit v1.2.3-54-g00ecf