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: a1fe931815502b3bd3884c4df50f2bd6ee8c22bf1cccbabc6828545caba767d5
4
- data.tar.gz: 12bc1f502d25f2084805d567fff6bf24a967dc647eacca5deece6e6ecb83bc44
3
+ metadata.gz: 91306a7a0834a2b56defeb48549d678bc27af3e93064d53aeee3933a49663e06
4
+ data.tar.gz: 858dade8f745a4e2a2a984798b57f68cc5ebdcf5a8c1a225aaeda38c2b440bce
5
5
  SHA512:
6
- metadata.gz: d82e219ae9e3e63a6b898759e3854db59fa2dbcf3199d93ba4347fd8f52427b4cc770b2220d1828faeb4d2033f843e6f28de95da31c35c276d0719babde56d31
7
- data.tar.gz: 3e1077e269d86899a1f0c00d1fda522247607afa792821dfaf13f13725252505b0ec33b975b98c001d264e7444619eed1f15731237a89f7bb18e3ac980833c93
6
+ metadata.gz: fdb0099c73b138cf746e81a5deb57272faa28796402c8e4336ed0b2291e5cdd0e76be69dbe648abc9be17ed937e37944924dc50302b0632f0d433178f8c97a63
7
+ data.tar.gz: d1dce59c47dc9d01fa3e7478e5ce654d7ef382f8510024ad73b925e47b4f7cf3c5dce747d09111b063aa0f4ec7da56e3bc9c794ed5cd6ff4ef433155ca6449a3
@@ -1,8 +1,3 @@
1
- //= require jquery
2
- //= require jquery-ui
3
- //= require jquery-ui/widgets/dialog
4
- //= require jquery_ujs
5
- //= require bootstrap
6
1
  //= require ie
7
2
  //= require timer
8
3
  //= require apexcharts
@@ -1,44 +1,47 @@
1
1
  require 'date'
2
2
  module Helpers
3
3
  module ChartsHelper
4
- def candlestick_data
5
- @acc = rand(6570..6650)
6
- 60.times.map {|i| [Date.today - 60 + i, ohlc] }.to_h
7
- end
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
- open = @acc + rand(-20..20)
11
- high = open + rand(0..100)
12
- low = open - rand(0..100)
13
- @acc = close = open + rand(-((high-low)/3)..((high-low)/2))
14
- [open, high, low, close]
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
- pie_chart([{name: "Series A", data: 25},{name: "Series B", data: 100},{name: "Series C", data: 200},{name: "Series D", data: 125}], legend: "left")
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
- candlestick_options = {plot_options: {candlestick: {colors: {upward: '#3C90EB',downward: '#DF7D46'}}}}
24
- candlestick_chart(candlestick_data, candlestick_options)
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
- 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 }}]
30
- radar_chart(radar_series,{title: "GitHub Radar", markers: {size: 4}, theme: 'palette4'})
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
- bubble_series = (1..4).map do |n|{name: "Bubble#{n}",data: 20.times.map{[rand(750),rand(10..60),rand(70)]}}end
35
- bubble_chart(bubble_series, data_labels: false, theme: 'palette6')
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
- 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]}}]
40
- range_bar_chart(range_bar_series, theme: 'palette3')
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
@@ -1,4 +1,4 @@
1
1
  en:
2
2
  activerecord:
3
3
  models:
4
- rails_admin_settings/setting: Configurations
4
+ thecore_settings/setting: Configurations
@@ -1,4 +1,4 @@
1
1
  it:
2
2
  activerecord:
3
3
  models:
4
- rails_admin_settings/setting: Configurations
4
+ thecore_settings/setting: Configurations
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.6
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-04-16 00:00:00.000000000 Z
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