aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm250
1 files changed, 224 insertions, 26 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index a70dccd..e4bf803 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -373,6 +373,107 @@ Javascript library, adding sorting, paging and filtering abilities to plain HTML
tables with minimal effort.")
(license license:expat)))
+
+(define-public javascript-datatables-2.2.2
+ (package
+ (name "javascript-datatables-2.2.2")
+ (version "2.2.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/DataTables/Dist-DataTables.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1pzpkpybcf9p81j8afyhrmq11l9lskzxhikdv7h7sb55vx98xn9s"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/DataTables"))
+ (source (assoc-ref %build-inputs "source")))
+ (copy-recursively source targetdir)))))
+ (propagated-inputs (list javascript-jquery-1))
+ (home-page "https://www.datatables.net/")
+ (synopsis "Tables plug-in for jQuery")
+ (description "DataTables is a table enhancing plug-in for the jQuery
+Javascript library, adding sorting, paging and filtering abilities to plain HTML
+tables with minimal effort.")
+ (license license:expat)))
+
+(define-public javascript-datatables-2.2 javascript-datatables-2.2.2)
+
+(define-public javascript-datatables-2 javascript-datatables-2.2)
+
+(define-public javascript-datatables-bootstrap5
+ (package
+ (name "javascript-datatables-bootstrap5")
+ (version "2.2.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/DataTables/Dist-DataTables-Bootstrap5.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0hx4m0fs0qkb73f1h3z4436dq8agrm67nib2lzac7pn8hfl09lll"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/DataTables"))
+ (source (assoc-ref %build-inputs "source")))
+ (copy-recursively source targetdir)))))
+ (propagated-inputs (list javascript-jquery-1))
+ (home-page "https://www.datatables.net/")
+ (synopsis "Tables plug-in for jQuery")
+ (description "DataTables is a table enhancing plug-in for the jQuery
+Javascript library, adding sorting, paging and filtering abilities to plain HTML
+tables with minimal effort. This package comes with Bootstrap5 integration
+ files for styling.")
+ (license license:expat)))
+
+(define-public javascript-datatables-select
+ (package
+ (name "javascript-datatables-select")
+ (version "3.0.0") ; November 12, 2024
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/DataTables/Dist-DataTables-Select.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15czp4fhvijwc9jl961nmn8ad6ms30p3c8dgpda7l542aadca45x"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/DataTablesExtensions/select/"))
+ (source (assoc-ref %build-inputs "source")))
+ (copy-recursively source targetdir)))))
+ (propagated-inputs (list javascript-datatables-2))
+ (home-page "https://datatables.net/extensions/select/")
+ (synopsis "Select adds item selection capabilities to a DataTable.")
+ (description "Select adds item selection capabilities to a DataTable. Items
+ can be rows, columns or cells, which can be selected independently, or together.
+ Item selection can be particularly useful in interactive tables where users
+ can perform some action on the table, such as editing rows or marking items to
+ perform an action on.")
+ (license license:expat)))
+
(define-public javascript-datatables-scroller-style
(package
(name "javascript-datatables-scroller-style")
@@ -402,6 +503,32 @@ tables with minimal effort.")
(description "Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on screen very quickly. Virtual rendering means is that only the visible portion of the table is drawn, while the scrolling container gives the visual impression that the whole table is visible, allowing excellent browser performance.")
(license license:expat)))
+
+(define-public javascript-datatables-scroller-style-2.4.3
+ (package
+ (inherit javascript-datatables-scroller-style)
+ (name "javascript-datatables-scroller-style-2.4.3")
+ (version "2.4.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/DataTables/Dist-DataTables-Scroller-DataTables.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1b7m8xwbr05hglfy00kzv1vmqvvp9y8n1kyb3ka95gf7sllihhf9"))))
+ (propagated-inputs
+ (modify-inputs
+ (package-propagated-inputs javascript-datatables-scroller-style)
+ (delete "javascript-datatables")))))
+
+(define-public javascript-datatables-scroller-style-2.4
+ javascript-datatables-scroller-style-2.4.3)
+
+(define-public javascript-datatables-scroller-style-2
+ javascript-datatables-scroller-style-2.4)
+
(define-public javascript-datatables-scroller
(package
(name "javascript-datatables-scroller")
@@ -434,10 +561,37 @@ tables with minimal effort.")
(license license:expat)))
+(define-public javascript-datatables-scroller-2.4.3
+ (package
+ (inherit javascript-datatables-scroller)
+ (name "javascript-datatables-scroller-2.4.3")
+ (version "2.4.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/DataTables/Dist-DataTables-Scroller.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ziwnwc0xbf8rsm6ibikc3a49hyq18l8ya0wmrwyba24pixhajxn"))))
+ (propagated-inputs
+ (modify-inputs
+ (package-propagated-inputs javascript-datatables-scroller-style)
+ (delete "javascript-datatables")
+ (delete "javascript-datatables-scroller-style")))))
+
+(define-public javascript-datatables-scroller-2.4
+ javascript-datatables-scroller-2.4.3)
+
+(define-public javascript-datatables-scroller-2
+ javascript-datatables-scroller-2.4)
+
+
(define-public javascript-xterm
(package
(name "javascript-xterm")
- (version "4.9.0") ; Jan 08 2021
+ (version "5.3.0") ; Feb 18 2024
(source
(origin
(method url-fetch)
@@ -445,23 +599,24 @@ tables with minimal effort.")
"/lib/xterm.min.js"))
(file-name (string-append "xterm.min" version ".js"))
(sha256
- (base32
- "1ipk8l837pinl9151qcb39hfrjy5d7zzyf19nsfhv4wgavy8fcar"))))
+ (base32 "0pb5f3rjbpg7zz1zkd72vkwsma3pnj07mq46jj95yghy48dx67gw"))))
(build-system trivial-build-system)
(arguments
`(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let* ((out (assoc-ref %outputs "out"))
- (targetdir
- (string-append out "/share/genenetwork2/javascript/xterm"))
- (source (assoc-ref %build-inputs "source")))
- (mkdir-p targetdir)
- (copy-file source (string-append targetdir "/xterm.min.js"))))))
- (propagated-inputs `(("source" ,source)))
+ #:builder (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append
+ out
+ "/share/genenetwork2/javascript/xterm"))
+ (source (assoc-ref %build-inputs "source")))
+ (mkdir-p targetdir)
+ (copy-file source
+ (string-append targetdir "/xterm.min.js"))))))
+ (native-inputs `(("source" ,source)))
(home-page "https://xtermjs.org/")
- (synopsis "Javascript library that allows apps to bring fully-featured terminals in browsers.")
+ (synopsis
+ "Javascript library that allows apps to bring fully-featured terminals in browsers.")
(description
"Xterm.js is a front-end component written in TypeScript that lets applications bring fully-featured terminals to their users in the browser. It's used by popular projects such as VS Code, Hyper and Theia.")
(license license:expat)))
@@ -470,7 +625,7 @@ tables with minimal effort.")
(package
(inherit javascript-xterm)
(name "javascript-xterm-style")
- (version "4.9.0") ; Jan 08 2021
+ (version "5.3.0") ; Feb 18 2024
(source
(origin
(method url-fetch)
@@ -478,19 +633,19 @@ tables with minimal effort.")
"/css/xterm.min.css"))
(file-name (string-append "xterm.min" version ".css"))
(sha256
- (base32
- "0nc7ysmfngzy1q1x4sasgnd5x91pqc00lgkajynz2gdan1rwsfk3"))))
+ (base32 "0qhfll6g9vfamicw6kccmdgzrz6m7jz97whydwbzj10qsyv8npr7"))))
(arguments
`(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let* ((out (assoc-ref %outputs "out"))
- (targetdir
- (string-append out "/share/genenetwork2/javascript/xterm"))
- (source (assoc-ref %build-inputs "source")))
- (mkdir-p targetdir)
- (copy-file source (string-append targetdir "/xterm.min.css"))))))
+ #:builder (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append
+ out
+ "/share/genenetwork2/javascript/xterm"))
+ (source (assoc-ref %build-inputs "source")))
+ (mkdir-p targetdir)
+ (copy-file source
+ (string-append targetdir "/xterm.min.css"))))))
(native-inputs `(("source" ,source)))
(synopsis "Style sheets for xtermjs")
(description "Style sheets for xtermjs")
@@ -555,6 +710,30 @@ tables with minimal effort.")
(description "The Buttons extension for DataTables provides a common set of options, API methods and styling to display buttons on a page that will interact with a DataTable. It also provides plug-ins for file export (HTML5 and Flash), print view and column visibility. Other libraries, such as Editor and Select also provide buttons specific to their use cases.")
(license license:expat)))
+(define-public javascript-datatables-buttons-3.2.2
+ (package
+ (inherit javascript-datatables-buttons)
+ (name "javascript-datatables-buttons-3.2.2")
+ (version "3.2.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/DataTables/Dist-DataTables-Buttons.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1186xxj6yhjqh0p13nczj25pc3c15n1f5nirl6fy649rhp4q26xc"))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs javascript-datatables-buttons)
+ (delete "javascript-datatables")))))
+
+(define-public javascript-datatables-buttons-3.2
+ javascript-datatables-buttons-3.2.2)
+
+(define-public javascript-datatables-buttons-3
+ javascript-datatables-buttons-3.2)
+
(define-public javascript-datatables-buttons-styles
(package
(name "javascript-datatables-buttons-styles")
@@ -867,6 +1046,25 @@ visualization components and a data-driven approach to DOM manipulation.")
(dist (string-append source "/dist")))
(copy-recursively dist targetdir)))))))
+(define-public javascript-jquery-1.12.4
+ (package
+ (inherit javascript-jquery)
+ (name "javascript-jquery-1.12.4")
+ (version "1.12.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jquery/jquery.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02qgvwsyvvr6liijj1xyypq02svbwjlk8m9yr9dgd4hzfs50rlhq"))))))
+
+(define-public javascript-jquery-1.12 javascript-jquery-1.12.4)
+
+(define-public javascript-jquery-1 javascript-jquery-1.12)
+
(define-public javascript-d3js-4
(package
(inherit javascript-d3js)