thecore_ui_commons 2.3.6 → 2.3.10
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: 91306a7a0834a2b56defeb48549d678bc27af3e93064d53aeee3933a49663e06
|
4
|
+
data.tar.gz: 858dade8f745a4e2a2a984798b57f68cc5ebdcf5a8c1a225aaeda38c2b440bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdb0099c73b138cf746e81a5deb57272faa28796402c8e4336ed0b2291e5cdd0e76be69dbe648abc9be17ed937e37944924dc50302b0632f0d433178f8c97a63
|
7
|
+
data.tar.gz: d1dce59c47dc9d01fa3e7478e5ce654d7ef382f8510024ad73b925e47b4f7cf3c5dce747d09111b063aa0f4ec7da56e3bc9c794ed5cd6ff4ef433155ca6449a3
|
@@ -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
|
|
File without changes
|
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.10
|
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
|
@@ -169,6 +169,7 @@ files:
|
|
169
169
|
- app/views/layouts/thecore.html.erb
|
170
170
|
- app/views/thecore_utils/_drag_drop_uploader.html.erb
|
171
171
|
- config/initializers/charts_helper.rb
|
172
|
+
- config/initializers/thecore_assets_tweak.rb
|
172
173
|
- config/initializers/thecore_ui_commons_application_config.rb
|
173
174
|
- config/initializers/thecore_ui_commons_helper.rb
|
174
175
|
- config/locales/en.ra_settings.yml
|