From 6c6bd17871e8ac4bffe8a1c60e99e3fecda6097d Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Fri, 3 Apr 2020 16:43:30 +0200 Subject: [PATCH] Allow to toggle sidebar and always show the toggle Signed-off-by: Marco Ambrosini --- package-lock.json | 12 +- package.json | 1 + src/components/AppContent/AppContent.vue | 64 ++++---- .../AppNavigation/AppNavigation.vue | 142 ++++++++++++++---- .../AppNavigationToggle.vue | 41 +++-- 5 files changed, 177 insertions(+), 83 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8ea82c17f6..52e82a3095 100644 --- a/package-lock.json +++ b/package-lock.json @@ -520,7 +520,7 @@ "dependencies": { "@babel/code-frame": { "version": "7.8.3", - "resolved": false, + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", "requires": { "@babel/highlight": "^7.8.3" @@ -635,7 +635,7 @@ "dependencies": { "@babel/code-frame": { "version": "7.8.3", - "resolved": false, + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", "requires": { "@babel/highlight": "^7.8.3" @@ -3313,9 +3313,9 @@ } }, "@nextcloud/event-bus": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@nextcloud/event-bus/-/event-bus-1.1.3.tgz", - "integrity": "sha512-/f3OMh9Tu3bn17sCc1Sb5AaC/fjegP9bjFmlsPDFNcCAHrKKM5B2X+2eUDF2osLirYaBjVqypBmD87zyiE0WjQ==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@nextcloud/event-bus/-/event-bus-1.1.4.tgz", + "integrity": "sha512-It27KzmUaSQ7w22nHFwOn8XgeVG0HYYOSNG9gs4UkP5VqcZ16m4ydt3GkMpWcyFec4OUjJc+yf7omRc3pNxsSw==", "requires": { "@types/semver": "^6.2.1", "core-js": "^3.6.2", @@ -4476,7 +4476,7 @@ }, "@babel/highlight": { "version": "7.9.0", - "resolved": false, + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", "dev": true, "requires": { diff --git a/package.json b/package.json index 3b35021ee7..ff7f565777 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ ], "dependencies": { "@nextcloud/axios": "^1.1.0", + "@nextcloud/event-bus": "^1.1.4", "@nextcloud/l10n": "^1.1.0", "@nextcloud/router": "^1.0.0", "core-js": "^3.4.4", diff --git a/src/components/AppContent/AppContent.vue b/src/components/AppContent/AppContent.vue index 05c9da67de..51f6dc9a12 100644 --- a/src/components/AppContent/AppContent.vue +++ b/src/components/AppContent/AppContent.vue @@ -2,6 +2,8 @@ - @copyright Copyright (c) 2019 Christoph Wurst - - @author Christoph Wurst + - @author Marco Ambrosini + - @author John Molakvoæ - - @license GNU AGPL version 3 or any later version - @@ -21,10 +23,7 @@ -->