diff options
author | 2020-09-19 21:59:07 +0300 | |
---|---|---|
committer | 2020-09-19 19:59:07 +0100 | |
commit | 8baea0618cbcc2ebd1e559dda9124e3cb62e5b3b (patch) | |
tree | 3624bc032722a2d77cf19a2e41ece883fbdc4d9d /uncompressed/nextcloud-talk | |
parent | Add Pomodoro Tracker recipe (#252) (diff) | |
download | ferdium-recipes-8baea0618cbcc2ebd1e559dda9124e3cb62e5b3b.tar.gz ferdium-recipes-8baea0618cbcc2ebd1e559dda9124e3cb62e5b3b.tar.zst ferdium-recipes-8baea0618cbcc2ebd1e559dda9124e3cb62e5b3b.zip |
Update Nextcloud Talk to remove/disable unnecessary links (#270)
`service.css` was updated to remove or disable unnecessary links from the top
menu to remove the possibility to navigate away from the app:
- disable Nextcloud logo, Talk and settings link;
- remove "More" and contacts link.
`package.json` was updated to:
- increase version number to 1.0.2;
- add `serviceURL` to `config` to successfully package this recipe.
Co-authored-by: Edgars <Edgars@gaitenis.id.lv>
Diffstat (limited to 'uncompressed/nextcloud-talk')
-rw-r--r-- | uncompressed/nextcloud-talk/index.js | 3 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/package.json | 5 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/service.css | 20 | ||||
-rw-r--r-- | uncompressed/nextcloud-talk/webview.js | 6 |
4 files changed, 27 insertions, 7 deletions
diff --git a/uncompressed/nextcloud-talk/index.js b/uncompressed/nextcloud-talk/index.js index 29cab0e..3fa8c04 100644 --- a/uncompressed/nextcloud-talk/index.js +++ b/uncompressed/nextcloud-talk/index.js | |||
@@ -4,5 +4,4 @@ module.exports = Franz => class Nextcloud extends Franz { | |||
4 | buildUrl(url) { | 4 | buildUrl(url) { |
5 | return `${url}/apps/spreed/`; | 5 | return `${url}/apps/spreed/`; |
6 | } | 6 | } |
7 | 7 | }; | |
8 | }; \ No newline at end of file | ||
diff --git a/uncompressed/nextcloud-talk/package.json b/uncompressed/nextcloud-talk/package.json index c79a0d8..dcb5508 100644 --- a/uncompressed/nextcloud-talk/package.json +++ b/uncompressed/nextcloud-talk/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "nextcloud-talk", | 2 | "id": "nextcloud-talk", |
3 | "name": "Nextcloud Talk", | 3 | "name": "Nextcloud Talk", |
4 | "version": "1.0.1", | 4 | "version": "1.0.2", |
5 | "description": "Nextcloud Talk", | 5 | "description": "Nextcloud Talk", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
@@ -9,6 +9,7 @@ | |||
9 | "config": { | 9 | "config": { |
10 | "hasNotificationSound": true, | 10 | "hasNotificationSound": true, |
11 | "hasIndirectMessages": true, | 11 | "hasIndirectMessages": true, |
12 | "hasCustomUrl": true | 12 | "hasCustomUrl": true, |
13 | "serviceURL": "https://{nextcloud}/apps/spreed/" | ||
13 | } | 14 | } |
14 | } | 15 | } |
diff --git a/uncompressed/nextcloud-talk/service.css b/uncompressed/nextcloud-talk/service.css index 30d1d18..82dde75 100644 --- a/uncompressed/nextcloud-talk/service.css +++ b/uncompressed/nextcloud-talk/service.css | |||
@@ -1,3 +1,21 @@ | |||
1 | /* Hide all app links in the top menu except for Talk */ | ||
1 | #appmenu li:not([data-id="spreed"]) { | 2 | #appmenu li:not([data-id="spreed"]) { |
2 | display: none; | 3 | display: none; |
3 | } \ No newline at end of file | 4 | } |
5 | |||
6 | /* Change cursor to the default pointer for top menu Nextcloud home, Talk and | ||
7 | settings links and disable them */ | ||
8 | #nextcloud, #appmenu li[data-id="spreed"] a, #settings { | ||
9 | cursor: default; | ||
10 | pointer-events: none; | ||
11 | } | ||
12 | |||
13 | /* Hide "More" link in the top menu */ | ||
14 | #more-apps { | ||
15 | display: none !important; | ||
16 | } | ||
17 | |||
18 | /* Hide contacts in the top menu */ | ||
19 | #contactsmenu { | ||
20 | display: none; | ||
21 | } | ||
diff --git a/uncompressed/nextcloud-talk/webview.js b/uncompressed/nextcloud-talk/webview.js index ae055f0..c180d4d 100644 --- a/uncompressed/nextcloud-talk/webview.js +++ b/uncompressed/nextcloud-talk/webview.js | |||
@@ -2,7 +2,9 @@ | |||
2 | 2 | ||
3 | var _path = _interopRequireDefault(require("path")); | 3 | var _path = _interopRequireDefault(require("path")); |
4 | 4 | ||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 5 | function _interopRequireDefault(obj) { |
6 | return obj && obj.__esModule ? obj : { default: obj }; | ||
7 | } | ||
6 | 8 | ||
7 | module.exports = Franz => { | 9 | module.exports = Franz => { |
8 | const getMessages = function getMessages() { | 10 | const getMessages = function getMessages() { |
@@ -13,4 +15,4 @@ module.exports = Franz => { | |||
13 | 15 | ||
14 | Franz.loop(getMessages); | 16 | Franz.loop(getMessages); |
15 | Franz.injectCSS(_path.default.join(__dirname, 'service.css')); | 17 | Franz.injectCSS(_path.default.join(__dirname, 'service.css')); |
16 | }; \ No newline at end of file | 18 | }; |