aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud-cospend
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/nextcloud-cospend
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/nextcloud-cospend')
-rw-r--r--recipes/nextcloud-cospend/index.js2
-rw-r--r--recipes/nextcloud-cospend/webview.js10
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes/nextcloud-cospend/index.js b/recipes/nextcloud-cospend/index.js
index 8547bce..e1f6354 100644
--- a/recipes/nextcloud-cospend/index.js
+++ b/recipes/nextcloud-cospend/index.js
@@ -1,5 +1,3 @@
1"use strict";
2
3module.exports = Franz => class NextcloudCarnet extends Franz { 1module.exports = Franz => class NextcloudCarnet extends Franz {
4 buildUrl(url) { 2 buildUrl(url) {
5 return `${url}/apps/cospend/`; 3 return `${url}/apps/cospend/`;
diff --git a/recipes/nextcloud-cospend/webview.js b/recipes/nextcloud-cospend/webview.js
index 53496fe..ab6d5f9 100644
--- a/recipes/nextcloud-cospend/webview.js
+++ b/recipes/nextcloud-cospend/webview.js
@@ -1,18 +1,16 @@
1"use strict"; 1const _path = _interopRequireDefault(require('path'));
2
3var _path = _interopRequireDefault(require("path"));
4 2
5function _interopRequireDefault(obj) { 3function _interopRequireDefault(obj) {
6 return obj && obj.__esModule ? obj : {default: obj}; 4 return obj && obj.__esModule ? obj : { default: obj };
7} 5}
8 6
9module.exports = Franz => { 7module.exports = Franz => {
10 const getMessages = function getMessages() { 8 const getMessages = function getMessages() {
11 const direct = document.querySelectorAll( 9 const direct = document.querySelectorAll(
12 '.app-navigation-entry-utils-counter.highlighted' 10 '.app-navigation-entry-utils-counter.highlighted',
13 ).length; 11 ).length;
14 const indirect = document.querySelectorAll( 12 const indirect = document.querySelectorAll(
15 '.app-navigation-entry-utils-counter:not(.highlighted)' 13 '.app-navigation-entry-utils-counter:not(.highlighted)',
16 ).length; 14 ).length;
17 15
18 Franz.setBadge(direct, indirect); 16 Franz.setBadge(direct, indirect);