activeinsights 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/javascripts/active_insights/application.js +10 -2
- data/config/initializers/importmap.rb +4 -2
- data/lib/active_insights/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c6d359d683ccf4da16accfa45684989a4f57f9bc9713c0d15c9c0c72927c3e
|
4
|
+
data.tar.gz: e14e9c7becaf024f5a5890e04371994948e88c16bd8e1fd4b06aaec20a77162e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9842e1147eab99529d9f3ec92c5f8bc2ec0dec55658f27fa73c6157aa06ec6d4c4f416763c861aeea718c0de068212c1578265e160fbe88392d11bfa08759445
|
7
|
+
data.tar.gz: 91ecb70edb2a74ea793babfb6547496814807157d91ff5dcadb585477b5acf7311fdd51d8a5ab2a269fe07f297d2ede33d584e6cbefdacd9afce87b0e9c33fb3
|
data/README.md
CHANGED
@@ -45,13 +45,13 @@ You can supply a hash of connection options to `connects_to` set the connection
|
|
45
45
|
options for the `Request` model.
|
46
46
|
|
47
47
|
```ruby
|
48
|
-
|
48
|
+
config.active_insights.connects_to = { database: { writing: :requests, reading: :requests } }
|
49
49
|
```
|
50
50
|
|
51
51
|
You can supply an array of ignored endpoints
|
52
52
|
|
53
53
|
```ruby
|
54
|
-
|
54
|
+
config.active_insights.ignored_endpoints = ["Rails::HealthController#show"]
|
55
55
|
```
|
56
56
|
|
57
57
|
## Development
|
@@ -1,5 +1,13 @@
|
|
1
|
-
import "
|
2
|
-
|
1
|
+
import {Chart, registerables} from "chart.js"
|
2
|
+
|
3
|
+
Chart.register(...registerables)
|
4
|
+
|
5
|
+
import "chartjs-adapter-date-fns"
|
3
6
|
import zoomPlugin from 'chartjs-plugin-zoom'
|
7
|
+
import Chartkick from "chartkick"
|
8
|
+
|
9
|
+
window.Chartkick = Chartkick
|
10
|
+
window.Chart = Chart
|
4
11
|
|
12
|
+
Chartkick.use(Chart)
|
5
13
|
Chart.register(zoomPlugin)
|
@@ -5,8 +5,10 @@ require "active_insights"
|
|
5
5
|
ActiveInsights::Engine.importmap.draw do
|
6
6
|
pin "application", to: "active_insights/application.js"
|
7
7
|
|
8
|
-
pin "chartkick", to: "chartkick.js"
|
9
|
-
pin "
|
8
|
+
pin "chartkick", to: "https://ga.jspm.io/npm:chartkick@5.0.1/dist/chartkick.esm.js"
|
9
|
+
pin "chart.js", to: "https://ga.jspm.io/npm:chart.js@4.4.1/dist/chart.js"
|
10
|
+
pin "chartjs-adapter-date-fns", to: "https://ga.jspm.io/npm:chartjs-adapter-date-fns@3.0.0/dist/chartjs-adapter-date-fns.esm.js"
|
11
|
+
pin "date-fns", to: "https://ga.jspm.io/npm:date-fns@3.2.0/index.mjs"
|
10
12
|
|
11
13
|
pin "chartjs-plugin-zoom", to: "https://ga.jspm.io/npm:chartjs-plugin-zoom@2.0.1/dist/chartjs-plugin-zoom.esm.js"
|
12
14
|
pin "hammerjs", to: "https://ga.jspm.io/npm:hammerjs@2.0.8/hammer.js"
|