From 5fdf9381efcc699b2ac923981428bc7d9bc07499 Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Thu, 21 Aug 2025 11:42:27 -0700 Subject: [PATCH 01/18] Update local bootstrap/popper assets, update libraries --- galactus.libraries.yml | 8 +- js/clf/ubc-clf.min.js | 80 +- js/lib/bootstrap/alert.js | 94 - js/lib/bootstrap/bootstrap.js | 4497 +++++++++++++++++++++++++++++ js/lib/bootstrap/bootstrap.min.js | 7 + js/lib/popper/popper.min.js | 6 + 6 files changed, 4579 insertions(+), 113 deletions(-) delete mode 100644 js/lib/bootstrap/alert.js create mode 100644 js/lib/bootstrap/bootstrap.js create mode 100644 js/lib/bootstrap/bootstrap.min.js create mode 100644 js/lib/popper/popper.min.js diff --git a/galactus.libraries.yml b/galactus.libraries.yml index 4b89612..3f53806 100644 --- a/galactus.libraries.yml +++ b/galactus.libraries.yml @@ -70,8 +70,6 @@ global: css: theme: css/clf.drupal.css: {} - js: - js/lib/bootstrap/alert.js: {} dependencies: - core/jquery @@ -220,9 +218,9 @@ clf-local: theme: css/clf.social-icons.css: {} js: - js/clf/ubc-clf.min.js: { - minified: true - } + js/lib/popper/popper.min.js: {} + js/lib/bootstrap/bootstrap.min.js: {} + js/clf/ubc-clf.min.js: {} dependencies: - core/jquery diff --git a/js/clf/ubc-clf.min.js b/js/clf/ubc-clf.min.js index fbf922b..be98ba6 100644 --- a/js/clf/ubc-clf.min.js +++ b/js/clf/ubc-clf.min.js @@ -1,10 +1,3 @@ -/** -* Bootstrap.js by @fat & @mdo -* plugins: bootstrap-transition.js, bootstrap-dropdown.js, bootstrap-tab.js, bootstrap-collapse.js, bootstrap-carousel.js -* Copyright 2012 Twitter, Inc. -* http://www.apache.org/licenses/LICENSE-2.0.txt -*/ -!function(a){a(function(){a.support.transition=function(){var a=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c;for(c in b)if(a.style[c]!==undefined)return b[c]}();return a&&{end:a}}()})}(window.jQuery),!function(a){function d(){a(".dropdown-backdrop").remove(),a(b).each(function(){e(a(this)).removeClass("open")})}function e(b){var c=b.attr("data-target"),d;c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,"")),d=c&&a(c);if(!d||!d.length)d=b.parent();return d}var b="[data-toggle=dropdown]",c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),f,g;if(c.is(".disabled, :disabled"))return;return f=e(c),g=f.hasClass("open"),d(),g||("ontouchstart"in document.documentElement&&a('
- +
@@ -132,7 +132,7 @@