guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Ricardo Wurmus
Date: Tue, 26 Mar 2024 07:10:47 -0400 (EDT)

branch: main
commit d5cd458c249684ff49591b4f391dd37530eb7259
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Mar 26 12:04:06 2024 +0100

    Revert "Remove popper.js."
    
    This reverts commit 7c0d1eae3598cbae617593729f9ef9b054b5a9c9.
    
    Popper.js is required by bootstrap.min.js, which is currently used for all
    dropdown menus.
---
 Makefile.am                 | 3 ++-
 src/cuirass/http.scm        | 1 +
 src/cuirass/templates.scm   | 6 ++++++
 src/static/js/popper.min.js | 5 +++++
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index fc09039..c58bf58 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -134,7 +134,8 @@ dist_js_DATA =                                      \
   src/static/js/choices.min.js                  \
   src/static/js/d3.v6.min.js                   \
   src/static/js/list.min.js                     \
-  src/static/js/jquery-3.3.1.min.js
+  src/static/js/jquery-3.3.1.min.js             \
+  src/static/js/popper.min.js
 
 dist_systemdservice_DATA =                     \
   etc/cuirass-remote-worker.service
diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm
index 1c37015..a9abb23 100644
--- a/src/cuirass/http.scm
+++ b/src/cuirass/http.scm
@@ -92,6 +92,7 @@
     "js/d3.v6.min.js"
     "js/jquery-3.3.1.min.js"
     "js/list.min.js"
+    "js/popper.min.js"
     "js/bootstrap.min.js"
     "js/choices.min.js"))
 
diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index a266b2f..a09e7d7 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -145,6 +145,7 @@ system whose names start with " (code "guile-") ":" (br)
           ;; The empty strings are mandatory to force the SXML parser to
           ;; create end script tags.
           (script (@ (src "/static/js/jquery-3.3.1.min.js")) "")
+          (script (@ (src "/static/js/popper.min.js")) "")
           (script (@ (src "/static/js/bootstrap.min.js")) "")
           (script (@ (src "/static/js/list.min.js")) "")
           (script (@ (src "/static/js/d3.v6.min.js")) "")
@@ -2402,6 +2403,11 @@ 
https://www.gnu.org/software/librejs/free-your-javascript.html.";
              "Expat"))
       (td (a (@ (href 
"https://github.com/javve/list.js/blob/master/dist/list.js";))
              "list.js")))
+     (tr
+      (td (a (@ (href "/static/js/popper.min.js")) "popper.min.js"))
+      (td (a (@ (href 
"https://github.com/popperjs/popper-core/blob/master/LICENSE.md";))
+             "Expat"))
+      (td (a (@ (href "/static/js/popper.min.js")) "popper.js") ))
      (tr
       (td (a (@ (href "/static/js/d3.v6.min.js")) "d3.v6.min.js"))
       (td (a (@ (href "https://raw.githubusercontent.com/d3/d3/main/LICENSE";))
diff --git a/src/static/js/popper.min.js b/src/static/js/popper.min.js
new file mode 100644
index 0000000..9b7dbeb
--- /dev/null
+++ b/src/static/js/popper.min.js
@@ -0,0 +1,5 @@
+/*
+ Copyright (C) Federico Zivolo 2018
+ Distributed under the MIT License (license terms are at 
http://opensource.org/licenses/MIT).
+ */(function(e,t){'object'==typeof exports&&'undefined'!=typeof 
module?module.exports=t():'function'==typeof 
define&&define.amd?define(t):e.Popper=t()})(this,function(){'use 
strict';function e(e){return e&&'[object 
Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var 
o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return 
t?n[t]:n}function 
o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function 
n(e){if(!e)return document.body;switch(e.nodeName) [...]
+//# sourceMappingURL=popper.min.js.map



reply via email to

[Prev in Thread] Current Thread [Next in Thread]