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. --- recipes/nextcloud-cospend/index.js | 2 +- recipes/nextcloud-cospend/package.json | 2 +- recipes/nextcloud-cospend/webview.js | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) (limited to 'recipes/nextcloud-cospend') 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')); }; -- cgit v1.2.3-54-g00ecf