From f9b755bcfeba8b339862d43328db61980b7f9b65 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 10 Jun 2019 16:09:08 -0400 Subject: [PATCH] LP#1832897: add Glide as a Javascript dependency for the public catalog Glide (https://glidejs.com) is an MIT-licensed library for rendering carousels. Similar to how jQuery is installed for the catalog, the additional dependency is specified in the AngularJS client's package.json and webpack.config.js. Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- Open-ILS/web/js/ui/default/staff/package.json | 1 + Open-ILS/web/js/ui/default/staff/webpack.config.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/package.json b/Open-ILS/web/js/ui/default/staff/package.json index 499e3945e9..83e9aff063 100644 --- a/Open-ILS/web/js/ui/default/staff/package.json +++ b/Open-ILS/web/js/ui/default/staff/package.json @@ -28,6 +28,7 @@ "build-prod": "webpack --env.prod" }, "dependencies": { + "@glidejs/glide": "^3.3.0", "angular": "~1.6.7", "angular-animate": "~1.6.7", "angular-cookies": "~1.6.7", diff --git a/Open-ILS/web/js/ui/default/staff/webpack.config.js b/Open-ILS/web/js/ui/default/staff/webpack.config.js index da66461b4a..f57c80fa79 100644 --- a/Open-ILS/web/js/ui/default/staff/webpack.config.js +++ b/Open-ILS/web/js/ui/default/staff/webpack.config.js @@ -56,7 +56,11 @@ const directCopyFiles = [ // jquery is copied to the common build location, up one directory. {from: './node_modules/jquery/dist/jquery.min.js', - to: __dirname + '/../common/build/js'} + to: __dirname + '/../common/build/js'}, + + // and likewise for glide + {from: './node_modules/@glidejs/glide/dist', + to: __dirname + '/../common/build/js/glide'} ]; CSS_FILES.forEach(file => directCopyFiles.push({from: file, to: './css'})); -- 2.43.2