thecore_ui_commons 2.3.5 → 2.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/thecore_ui_commons/thecore.js +0 -5
- data/app/views/thecore_utils/_drag_drop_uploader.html.erb +1 -1
- data/config/initializers/charts_helper.rb +35 -32
- data/config/locales/en.ra_settings.yml +1 -1
- data/config/locales/it.ra_settings.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b1246d6a27d8df20cb6b1094c6a12f8d19558bbb1c0f8dec47881db20de6162
|
4
|
+
data.tar.gz: babd136cbc94fd323bde4e6819686c58118ed60ecf589daf6cb9fde560ebd3ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a71fa34e769725dd453ba3e63cd8722bb87b069e16c051b774eec203d756a8cacf741a35c8f0b32d7aea9483b9b626d3d433b74d427eeffd85427fde81a723
|
7
|
+
data.tar.gz: ef3836652aa8d6ca5fe5297d6cb02c96fe41757a46b241b8344371a155f699cde3b507a061f833d425a8282969f5aed66d3b31aff1d51c3b8d113d0cd0d4d929
|
@@ -1,44 +1,47 @@
|
|
1
1
|
require 'date'
|
2
2
|
module Helpers
|
3
3
|
module ChartsHelper
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
# Please override this in your gems to add charts, here some
|
5
|
+
# working, but commented out charts as example.
|
6
|
+
|
7
|
+
# def candlestick_data
|
8
|
+
# @acc = rand(6570..6650)
|
9
|
+
# 60.times.map {|i| [Date.today - 60 + i, ohlc] }.to_h
|
10
|
+
# end
|
8
11
|
|
9
|
-
def ohlc
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
12
|
+
# def ohlc
|
13
|
+
# open = @acc + rand(-20..20)
|
14
|
+
# high = open + rand(0..100)
|
15
|
+
# low = open - rand(0..100)
|
16
|
+
# @acc = close = open + rand(-((high-low)/3)..((high-low)/2))
|
17
|
+
# [open, high, low, close]
|
18
|
+
# end
|
16
19
|
|
17
|
-
### HIGH PRIORITY CHARTS
|
18
|
-
def charts_high_pie_demo
|
19
|
-
|
20
|
-
end
|
20
|
+
# ### HIGH PRIORITY CHARTS
|
21
|
+
# def charts_high_pie_demo
|
22
|
+
# pie_chart([{name: "Series A", data: 25},{name: "Series B", data: 100},{name: "Series C", data: 200},{name: "Series D", data: 125}], legend: "left")
|
23
|
+
# end
|
21
24
|
|
22
|
-
def charts_high_candlestick_demo
|
23
|
-
|
24
|
-
|
25
|
-
end
|
25
|
+
# def charts_high_candlestick_demo
|
26
|
+
# candlestick_options = {plot_options: {candlestick: {colors: {upward: '#3C90EB',downward: '#DF7D46'}}}}
|
27
|
+
# candlestick_chart(candlestick_data, candlestick_options)
|
28
|
+
# end
|
26
29
|
|
27
|
-
### MEDIUM PRIORITY CHARTS
|
28
|
-
def charts_medium_radar_demo
|
29
|
-
|
30
|
-
|
31
|
-
end
|
30
|
+
# ### MEDIUM PRIORITY CHARTS
|
31
|
+
# def charts_medium_radar_demo
|
32
|
+
# radar_series = [{name: "What it should be",data: { "Code review"=>10, "Issues"=>5, "Pull request"=>25, "Commits"=>60 }},{name: "What it really is",data: { "Code review"=>1, "Issues"=>3, "Pull request"=>7, "Commits"=>89 }}]
|
33
|
+
# radar_chart(radar_series,{title: "GitHub Radar", markers: {size: 4}, theme: 'palette4'})
|
34
|
+
# end
|
32
35
|
|
33
|
-
def charts_medium_bubble_demo
|
34
|
-
|
35
|
-
|
36
|
-
end
|
36
|
+
# def charts_medium_bubble_demo
|
37
|
+
# bubble_series = (1..4).map do |n|{name: "Bubble#{n}",data: 20.times.map{[rand(750),rand(10..60),rand(70)]}}end
|
38
|
+
# bubble_chart(bubble_series, data_labels: false, theme: 'palette6')
|
39
|
+
# end
|
37
40
|
|
38
|
-
def charts_medium_range_demo
|
39
|
-
|
40
|
-
|
41
|
-
end
|
41
|
+
# def charts_medium_range_demo
|
42
|
+
# range_bar_series = [{name: "Series A",data: {'A' => [1, 5],'B' => [4, 6],'C' => [5, 8],'D' => [3, 11]}}, {name: "Series B",data: {'A' => [2, 6],'B' => [1, 3],'C' => [7, 8],'D' => [5, 9]}}]
|
43
|
+
# range_bar_chart(range_bar_series, theme: 'palette3')
|
44
|
+
# end
|
42
45
|
end
|
43
46
|
end
|
44
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_background_jobs
|