madmin 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca659d30c381297068616d7a51c89b00e60df503a44a9bfe667ba3330ebddbe8
4
- data.tar.gz: f8d5bbfb4d9672e817a841eeda918501ad086e5184da6b188a7a7b4bd1dfbcb7
3
+ metadata.gz: be08056b4e98ff2b31be64068d8924dc33260b76647b843a17c905dc4198ec94
4
+ data.tar.gz: bdd1c308779acf8dc855ebf32d726079b672f02b4081fb8a5141ee60d9a8e19e
5
5
  SHA512:
6
- metadata.gz: 12c7205ca6197e20175bfe1789110825c2ed6adc0c5ed97c63a1a7b7609150d0dba54838d05f9ba870d5ade58938ff9900344e553f94a0e2944a7a7ae186de59
7
- data.tar.gz: e922436e1ad3116fbf932819b2b73d817e3ac3dafead25737d8ae3c58dd58e12215fb82170cf1e527438e2f3e569a0f207c45ab8b4579b27bdce6d838d99e13f
6
+ metadata.gz: 472e125873965dd582d35c4b589c60911149c8ed3fbabe8490c260df6a59e776086fa5c7b9fbebcc851505981ea8711318b36bda278d5aa219d08a37069fd0eb
7
+ data.tar.gz: 39acf214eb89d62137951e2ce7085f08eecd4c3aa805c76a18917d6b5408a9b8e0c8bbd38c3aaa35545bde046986cb318f74fa1b51d1b70140293c325bc99309
@@ -1,4 +1,3 @@
1
1
  import "@hotwired/turbo-rails"
2
- import "trix"
3
2
  import "@rails/actiontext"
4
3
  import "controllers"
@@ -1,5 +1,8 @@
1
1
  <%= javascript_importmap_tags "application", importmap: Madmin.importmap %>
2
2
 
3
+ <%= tag.script 'import "trix"'.html_safe, type: "module" if defined?(::Trix) %>
4
+ <%= tag.script 'import "lexxy"'.html_safe, type: "module" if defined?(::Lexxy) %>
5
+
3
6
  <%= stylesheet_link_tag *Madmin.stylesheets, "data-turbo-track": "reload" %>
4
7
  <%= stylesheet_link_tag "https://unpkg.com/flatpickr/dist/flatpickr.min.css", "data-turbo-track": "reload" %>
5
8
  <%= stylesheet_link_tag "https://unpkg.com/tom-select/dist/css/tom-select.min.css", "data-turbo-track": "reload" %>
data/config/importmap.rb CHANGED
@@ -2,9 +2,14 @@ pin "application", to: "madmin/application.js", preload: true
2
2
  pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
3
3
  pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
4
4
  pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
5
- pin "trix"
6
5
  pin "@rails/actiontext", to: "actiontext.esm.js"
6
+ pin "@rails/activestorage", to: "activestorage.esm.js"
7
+
8
+ pin "trix" if defined?(::Trix)
9
+ pin "lexxy", to: "lexxy.js" if defined?(::Lexxy)
10
+
7
11
  pin_all_from Madmin::Engine.root.join("app/javascript/madmin/controllers"), under: "controllers", to: "madmin/controllers"
12
+ pin_all_from Rails.root.join("app/javascript/madmin/controllers"), under: "controllers", to: "madmin/controllers"
8
13
 
9
14
  pin "tom-select", to: "https://ga.jspm.io/npm:tom-select@2.4.1/dist/js/tom-select.complete.js"
10
15
  pin "tailwindcss-stimulus-components", to: "https://ga.jspm.io/npm:tailwindcss-stimulus-components@6.1.2/dist/tailwindcss-stimulus-components.module.js"
data/lib/madmin/engine.rb CHANGED
@@ -32,6 +32,8 @@ module Madmin
32
32
  else
33
33
  "madmin/application"
34
34
  end
35
+
36
+ Madmin.stylesheets << "lexxy" if defined?(::Lexxy)
35
37
  end
36
38
  end
37
39
 
@@ -1,3 +1,3 @@
1
1
  module Madmin
2
- VERSION = "2.2.1"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.7.2
260
+ rubygems_version: 4.0.2
261
261
  specification_version: 4
262
262
  summary: A modern admin for Ruby on Rails apps
263
263
  test_files: []