five-two-nw-olivander 0.1.2.52 → 0.1.2.53
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 632378da94b2fa416a7e6108084b417e89d0c3cf80ed6977c952296e808102de
|
|
4
|
+
data.tar.gz: d6b59b0877cc908bbb0da4ddb0ffe4acac4ef0195e7c3a5659cdf167760b1dd5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4342053f522cb69b4853def238a22cecf0d70927384fd6ddc12c8794d546c054b5594a5000aae0186f512438bb4e0b822f89b2abaf1bda5f9f9d057e213a635
|
|
7
|
+
data.tar.gz: 1452432fe2d9c5e3469f4878a7f3984ed99e19d54cdfd645eb549f8f04770b760865b0e444731c7cc261456f5904e4b29c91586fe000fb8279b4770712af4174
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Controller } from "@hotwired/stimulus"
|
|
2
|
+
|
|
3
|
+
// Connects to data-controller="datatable-index-charts"
|
|
4
|
+
export default class extends Controller {
|
|
5
|
+
connect() {
|
|
6
|
+
var self = this
|
|
7
|
+
|
|
8
|
+
$(".effective-datatable").on("draw.dt", function(e, dt, type, indexes) {
|
|
9
|
+
var jsonCharts = dt.json.charts
|
|
10
|
+
for (var chart in jsonCharts) {
|
|
11
|
+
var chartkickChart = Chartkick.charts[chart]
|
|
12
|
+
chartkickChart.redraw()
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
data/config/importmap.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pin_all_from "..app/javascript/controllers", under: "controllers"
|
data/lib/olivander/engine.rb
CHANGED
|
@@ -3,7 +3,7 @@ module Olivander
|
|
|
3
3
|
isolate_namespace Olivander
|
|
4
4
|
|
|
5
5
|
initializer "olivander.assets.precompile" do |app|
|
|
6
|
-
app.config.assets.precompile += %w[adminlte.js adminlte.css avatar0.png avatar1.png avatar2.png avatar3.png avatar4.png]
|
|
6
|
+
app.config.assets.precompile += %w[adminlte.js datatable_index_charts_controller.js adminlte.css avatar0.png avatar1.png avatar2.png avatar3.png avatar4.png]
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
initializer "olivander.action_controller" do |app|
|
|
@@ -11,5 +11,9 @@ module Olivander
|
|
|
11
11
|
helper Olivander::ApplicationHelper
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
|
+
|
|
15
|
+
initializer "olivander.importmap", before: "importmap" do |app|
|
|
16
|
+
app.config.importmap.paths << Engine.root.join('config/importmap.rb')
|
|
17
|
+
end
|
|
14
18
|
end
|
|
15
19
|
end
|
data/lib/olivander/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: five-two-nw-olivander
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.2.
|
|
4
|
+
version: 0.1.2.53
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Dennis
|
|
@@ -204,6 +204,7 @@ files:
|
|
|
204
204
|
- app/assets/javascripts/adminlte/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css
|
|
205
205
|
- app/assets/javascripts/adminlte/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js
|
|
206
206
|
- app/assets/javascripts/adminlte/select2_defaults.coffee
|
|
207
|
+
- app/assets/javascripts/controllers/datatable_index_charts_controller.js
|
|
207
208
|
- app/assets/stylesheets/adminlte.css
|
|
208
209
|
- app/assets/stylesheets/fa-fix.scss
|
|
209
210
|
- app/assets/stylesheets/olivander/application.css
|
|
@@ -251,6 +252,7 @@ files:
|
|
|
251
252
|
- app/views/layouts/olivander/adminlte/login.html.haml
|
|
252
253
|
- app/views/layouts/olivander/adminlte/main.html.haml
|
|
253
254
|
- app/views/layouts/olivander/application.html.haml
|
|
255
|
+
- config/importmap.rb
|
|
254
256
|
- config/initializers/simple_form.rb
|
|
255
257
|
- config/locales/simple_form.en.yml
|
|
256
258
|
- config/routes.rb
|