From 02f898fa075168c53e919157ce22e0b745a943d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 11 Mar 2020 14:19:38 +0100 Subject: [PATCH] Use jquery-ui to only embed button components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/src/install.js | 4 ++++ package-lock.json | 5 +++++ package.json | 1 + 3 files changed, 10 insertions(+) diff --git a/core/src/install.js b/core/src/install.js index 2e69c3e3c9..43957acb9b 100644 --- a/core/src/install.js +++ b/core/src/install.js @@ -3,6 +3,10 @@ import { translate as t } from '@nextcloud/l10n' import { getToken } from './OC/requesttoken' import getURLParameter from './Util/get-url-parameter' +import 'jquery-ui/ui/widgets/button' +import 'jquery-ui/themes/base/theme.css' +import 'jquery-ui/themes/base/button.css' + import 'strengthify' import 'strengthify/strengthify.css' diff --git a/package-lock.json b/package-lock.json index 79af96b4a7..8d2d2dee70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6651,6 +6651,11 @@ "resolved": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz", "integrity": "sha1-hRUvPsmalWJfT30Lz2LpuGOPWnY=" }, + "jquery-ui": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.12.1.tgz", + "integrity": "sha1-vLQEXI3QU5wTS8FIjN0+dop6nlE=" + }, "jquery-ui-dist": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/jquery-ui-dist/-/jquery-ui-dist-1.12.1.tgz", diff --git a/package.json b/package.json index 5a1711a518..91124475ab 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "jcrop": "git+https://github.com/ChristophWurst/Jcrop.git#v0.9.12-npm3", "jquery": "2.1.4", "jquery-migrate": "^1.4.1", + "jquery-ui": "^1.12.1", "jquery-ui-dist": "^1.12.1", "jstimezonedetect": "^1.0.7", "lodash": "^4.17.15",