kanaui 4.0.4 → 4.0.5
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 +4 -4
- data/app/assets/javascripts/kanaui/dashboard.js +10 -10
- data/app/assets/javascripts/kanaui/kiddo/axes.js +48 -41
- data/app/assets/javascripts/kanaui/kiddo/charts/line_chart.js +113 -29
- data/app/assets/javascripts/kanaui/kiddo/charts/pie_chart.js +54 -21
- data/app/assets/javascripts/kanaui/kiddo/charts/utils/mouse_over.js +74 -53
- data/app/assets/javascripts/kanaui/kiddo/helper.js +12 -8
- data/app/assets/javascripts/kanaui/kiddo/kiddo_initialize.js +22 -18
- data/app/assets/javascripts/kanaui/kiddo/renderer.js +27 -19
- data/app/assets/javascripts/kanaui/kiddo/settings.js +10 -7
- data/app/assets/javascripts/kanaui/reports.dataTables.js +133 -107
- data/app/assets/stylesheets/kanaui/kanaui.css +767 -0
- data/app/assets/stylesheets/kanaui/reports.css +17 -3
- data/app/controllers/kanaui/dashboard_controller.rb +16 -0
- data/app/views/kanaui/dashboard/index.html.erb +301 -178
- data/app/views/kanaui/reports/_form.html.erb +73 -60
- data/app/views/kanaui/reports/_reports_table.html.erb +38 -11
- data/app/views/kanaui/reports/edit.html.erb +15 -8
- data/app/views/kanaui/reports/index.html.erb +32 -16
- data/app/views/kanaui/reports/new.html.erb +15 -9
- data/app/views/kanaui/settings/index.html.erb +39 -18
- data/lib/kanaui/version.rb +1 -1
- metadata +2 -2
|
@@ -1,63 +1,76 @@
|
|
|
1
1
|
<%= form_tag @report[:reportName].blank? ? url_for(:controller => :reports, :action => :create) : report_path(@report[:reportName]), :method => (@report[:reportName].blank? ? :post : :put), :class => 'form-horizontal' do %>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="form-group">
|
|
9
|
-
<%= label_tag :report_pretty_name, 'Pretty name', :class => 'col-sm-3 control-label' %>
|
|
10
|
-
<div class="col-sm-9">
|
|
11
|
-
<%= text_field_tag :report_pretty_name, @report[:reportPrettyName], :class => 'form-control' %>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="form-group">
|
|
15
|
-
<%= label_tag :report_type, 'Type', :class => 'col-sm-3 control-label' %>
|
|
16
|
-
<div class="col-sm-9">
|
|
17
|
-
<%= select_tag :report_type, options_for_select(%w(TIMELINE COUNTERS TABLE), @report[:reportType] || 'TABLE'), :class => 'form-control' %>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="form-group">
|
|
21
|
-
<%= label_tag :source_table_name, 'Source', :class => 'col-sm-3 control-label' %>
|
|
22
|
-
<div class="col-sm-9">
|
|
23
|
-
<%= text_field_tag :source_table_name, @report[:sourceTableName], :class => 'form-control' %>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="form-group">
|
|
27
|
-
<%= label_tag :source_name, 'Source name', :class => 'col-sm-3 control-label' %>
|
|
28
|
-
<div class="col-sm-9">
|
|
29
|
-
<%= text_field_tag :source_name, @report[:sourceName], :class => 'form-control' %>
|
|
30
|
-
<span>Must match a database configuration entry in the Analytics plugin</span>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="form-group">
|
|
34
|
-
<%= label_tag :source_query, 'SQL query', :class => 'col-sm-3 control-label' %>
|
|
35
|
-
<div class="col-sm-9">
|
|
36
|
-
<%= text_area_tag :source_query, @report[:sourceQuery], rows: 10, cols: 25, :class => 'form-control' %>
|
|
37
|
-
<span>Don't add a trailing ;</span>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="form-group">
|
|
41
|
-
<%= label_tag :refresh_procedure_name, 'Refresh procedure', :class => 'col-sm-3 control-label' %>
|
|
42
|
-
<div class="col-sm-9">
|
|
43
|
-
<%= text_field_tag :refresh_procedure_name, @report[:refreshProcedureName], :class => 'form-control' %>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="form-group">
|
|
47
|
-
<%= label_tag :refresh_frequency, 'Refresh frequency', :class => 'col-sm-3 control-label' %>
|
|
48
|
-
<div class="col-sm-9">
|
|
49
|
-
<%= select_tag :refresh_frequency, options_for_select(%w(HOURLY DAILY), @report[:refreshFrequency]), :class => 'form-control', :include_blank => true %>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="form-group">
|
|
53
|
-
<%= label_tag :refresh_hour_of_day_gmt, 'Refresh hour (GMT)', :class => 'col-sm-3 control-label' %>
|
|
54
|
-
<div class="col-sm-9">
|
|
55
|
-
<%= number_field_tag :refresh_hour_of_day_gmt, @report[:refreshHourOfDayGmt], {:min => 1, :max => 23, :class => 'form-control'} %>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="form-group">
|
|
59
|
-
<div class="col-sm-offset-3 col-sm-9">
|
|
60
|
-
<%= submit_tag 'Save', :class => 'btn btn-default' %>
|
|
61
|
-
</div>
|
|
2
|
+
<div class="form-group d-flex pb-3">
|
|
3
|
+
<%= label_tag :report_name, 'Report name', :class => 'col-sm-3 control-label' %>
|
|
4
|
+
<div class="col-sm-9">
|
|
5
|
+
<%= text_field_tag :report_name, @report[:reportName], :class => 'form-control', :disabled => !@report[:reportName].blank?, :read_only => !@report[:reportName].blank? %>
|
|
62
6
|
</div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="form-group d-flex pb-3">
|
|
9
|
+
<%= label_tag :report_pretty_name, 'Pretty name', :class => 'col-sm-3 control-label' %>
|
|
10
|
+
<div class="col-sm-9">
|
|
11
|
+
<%= text_field_tag :report_pretty_name, @report[:reportPrettyName], :class => 'form-control' %>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="form-group d-flex pb-3">
|
|
15
|
+
<%= label_tag :report_type, 'Type', :class => 'col-sm-3 control-label' %>
|
|
16
|
+
<div class="col-sm-9">
|
|
17
|
+
<%= select_tag :report_type, options_for_select(%w(TIMELINE COUNTERS TABLE), @report[:reportType] || 'TABLE'), :class => 'form-control' %>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="form-group d-flex pb-3">
|
|
21
|
+
<%= label_tag :source_table_name, 'Source', :class => 'col-sm-3 control-label' %>
|
|
22
|
+
<div class="col-sm-9">
|
|
23
|
+
<%= text_field_tag :source_table_name, @report[:sourceTableName], :class => 'form-control' %>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="form-group d-flex pb-3">
|
|
27
|
+
<%= label_tag :source_name, 'Source name', :class => 'col-sm-3 control-label' %>
|
|
28
|
+
<div class="col-sm-9">
|
|
29
|
+
<%= text_field_tag :source_name, @report[:sourceName], :class => 'form-control' %>
|
|
30
|
+
<span>Must match a database configuration entry in the Analytics plugin</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="form-group d-flex pb-3">
|
|
34
|
+
<%= label_tag :source_query, 'SQL query', :class => 'col-sm-3 control-label' %>
|
|
35
|
+
<div class="col-sm-9">
|
|
36
|
+
<%= text_area_tag :source_query, @report[:sourceQuery], rows: 10, cols: 25, :class => 'form-control' %>
|
|
37
|
+
<span>Don't add a trailing ;</span>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="form-group d-flex pb-3">
|
|
41
|
+
<%= label_tag :refresh_procedure_name, 'Refresh procedure', :class => 'col-sm-3 control-label' %>
|
|
42
|
+
<div class="col-sm-9">
|
|
43
|
+
<%= text_field_tag :refresh_procedure_name, @report[:refreshProcedureName], :class => 'form-control' %>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="form-group d-flex pb-3">
|
|
47
|
+
<%= label_tag :refresh_frequency, 'Refresh frequency', :class => 'col-sm-3 control-label' %>
|
|
48
|
+
<div class="col-sm-9">
|
|
49
|
+
<%= select_tag :refresh_frequency, options_for_select(%w(HOURLY DAILY), @report[:refreshFrequency]), :class => 'form-control', :include_blank => true %>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="form-group d-flex pb-3">
|
|
53
|
+
<%= label_tag :refresh_hour_of_day_gmt, 'Refresh hour (GMT)', :class => 'col-sm-3 control-label' %>
|
|
54
|
+
<div class="col-sm-9">
|
|
55
|
+
<%= number_field_tag :refresh_hour_of_day_gmt, @report[:refreshHourOfDayGmt], {:min => 1, :max => 23, :class => 'form-control'} %>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div class="form-group d-flex justify-content-end border-top pt-3 pb-3">
|
|
60
|
+
<%= render "kaui/components/button/button", {
|
|
61
|
+
label: 'Close',
|
|
62
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
63
|
+
type: "button",
|
|
64
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
65
|
+
html_options: {
|
|
66
|
+
onclick: "window.history.back();"
|
|
67
|
+
}
|
|
68
|
+
} %>
|
|
69
|
+
<%= render "kaui/components/button/button", {
|
|
70
|
+
label: 'Save',
|
|
71
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
72
|
+
type: "submit",
|
|
73
|
+
html_class: "kaui-dropdown custom-hover"
|
|
74
|
+
} %>
|
|
75
|
+
</div>
|
|
63
76
|
<% end %>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<table id="reports-table"
|
|
1
|
+
<table id="reports-table">
|
|
2
2
|
<thead>
|
|
3
3
|
<tr>
|
|
4
4
|
<th>Name</th>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</tr>
|
|
16
16
|
</thead>
|
|
17
17
|
<tbody>
|
|
18
|
-
|
|
18
|
+
<% reports.each do |report| %>
|
|
19
19
|
<tr>
|
|
20
20
|
<td><%= report[:reportName] %></td>
|
|
21
21
|
<td><%= report[:reportPrettyName] %></td>
|
|
@@ -24,18 +24,45 @@
|
|
|
24
24
|
<td><%= report[:sourceName] %></td>
|
|
25
25
|
<td>
|
|
26
26
|
<% unless report[:sourceQuery].blank? %>
|
|
27
|
-
<a href="" data-toggle="modal" data-target="#<%= report[:reportName] %>-query-modal">
|
|
27
|
+
<a href="" data-bs-toggle="modal" data-bs-target="#<%= report[:reportName] %>-query-modal">
|
|
28
28
|
Show SQL
|
|
29
29
|
</a>
|
|
30
|
+
|
|
30
31
|
<div class="modal fade" id="<%= report[:reportName] %>-query-modal" tabindex="-1" role="dialog">
|
|
31
32
|
<div class="modal-dialog" role="document">
|
|
32
|
-
<div class="modal-content
|
|
33
|
+
<div class="modal-content">
|
|
34
|
+
<div class="modal-header">
|
|
35
|
+
<h5 class="modal-title d-flex align-items-center gap-3" id="advanceSearchModalLabel">
|
|
36
|
+
<span class="icon-container">
|
|
37
|
+
<%= image_tag("kaui/modal/search.svg", width: 20, height: 20) %>
|
|
38
|
+
</span>
|
|
39
|
+
Source Query
|
|
40
|
+
</h5>
|
|
41
|
+
<button type="button" class="close close-button custom-hover" data-bs-dismiss="modal" aria-label="Close">
|
|
42
|
+
<span aria-hidden="true">
|
|
43
|
+
<%= image_tag("kaui/modal/close.svg", width: 20, height: 20) %>
|
|
44
|
+
</span>
|
|
45
|
+
</button>
|
|
46
|
+
</div>
|
|
33
47
|
<div class="modal-body">
|
|
34
48
|
<p><pre class="sql-query"><code><%= report[:sourceQuery] %></code></pre></p>
|
|
35
49
|
</div>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
<div class="modal-footer">
|
|
51
|
+
<%= render "kaui/components/button/button", {
|
|
52
|
+
label: 'Close',
|
|
53
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
54
|
+
type: "button",
|
|
55
|
+
html_class: "kaui-button custom-hover",
|
|
56
|
+
html_options: {
|
|
57
|
+
data: {
|
|
58
|
+
bs_dismiss: "modal"
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
} %>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
39
66
|
<% end %>
|
|
40
67
|
</td>
|
|
41
68
|
<td><%= report[:refreshProcedureName] %></td>
|
|
@@ -49,12 +76,12 @@
|
|
|
49
76
|
</ul>
|
|
50
77
|
</td>
|
|
51
78
|
<td>
|
|
52
|
-
<%= link_to '
|
|
53
|
-
<%= link_to '
|
|
54
|
-
<%= link_to '
|
|
79
|
+
<%= link_to 'Delete', report_path(report[:reportName]), :method => :delete, :class => 'delete-button table-button' %>
|
|
80
|
+
<%= link_to 'Refresh', refresh_report_path(report[:reportName]), :method => :put, :class => 'refresh-button table-button' %>
|
|
81
|
+
<%= link_to 'Edit', edit_report_path(report[:reportName]), :class => 'edit-button table-button' %>
|
|
55
82
|
</td>
|
|
56
83
|
</tr>
|
|
57
|
-
|
|
84
|
+
<% end %>
|
|
58
85
|
</tbody>
|
|
59
86
|
</table>
|
|
60
87
|
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="col-md-8 col-md-offset-2">
|
|
3
1
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<div class="register kanaui-reports-edit">
|
|
3
|
+
<div class="">
|
|
4
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
5
|
+
<h5 class="new-report-title pb-3 mb-3 border-bottom">
|
|
6
|
+
<span class="icon-container">
|
|
7
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M12.9166 10.0007C12.9166 11.6115 11.6108 12.9173 9.99998 12.9173C8.38915 12.9173 7.08331 11.6115 7.08331 10.0007C7.08331 8.38982 8.38915 7.08398 9.99998 7.08398C11.6108 7.08398 12.9166 8.38982 12.9166 10.0007Z" stroke="#414651" stroke-width="1.5"/>
|
|
9
|
+
<path d="M8.14341 2.23582L7.50001 4.16602L6.20014 4.98815L4.07331 4.4619C3.71675 4.37368 3.34448 4.52931 3.15681 4.84505L2.01998 6.75762C1.81512 7.10229 1.88473 7.54398 2.18568 7.80891L3.67746 9.12218V10.8765L2.18615 12.1898C1.88527 12.4547 1.81569 12.8963 2.02053 13.2409L3.15741 15.1536C3.34508 15.4694 3.71736 15.625 4.07391 15.5368L6.20075 15.0105L7.43216 15.7011L8.01996 17.7311C8.12313 18.0874 8.44943 18.3327 8.82043 18.3327H11.1803C11.5512 18.3327 11.8775 18.0874 11.9807 17.7311L12.5685 15.7011L13.7993 15.0105L15.9261 15.5368C16.2827 15.625 16.6549 15.4694 16.8426 15.1536L18.0009 13.2048C18.196 12.8767 18.1431 12.4578 17.8726 12.1885L16.3674 10.6899L16.368 9.30877L17.8732 7.81017C18.1438 7.5408 18.1967 7.12202 18.0016 6.79384L16.8432 4.84505C16.6555 4.52931 16.2833 4.37368 15.9267 4.4619L13.7998 4.98815L12.5 4.16602L11.8566 2.23582C11.7432 1.89554 11.4248 1.66602 11.066 1.66602H8.93401C8.57526 1.66602 8.25683 1.89554 8.14341 2.23582Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
</svg>
|
|
11
|
+
</span>
|
|
12
|
+
Update report
|
|
13
|
+
</h5>
|
|
14
|
+
<%= render 'form' %>
|
|
15
|
+
</div>
|
|
7
16
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
17
|
+
</div>
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<div class="kaui-container kanaui-reports-index">
|
|
2
|
+
<div class="d-flex " style="gap: 4rem;">
|
|
3
|
+
<div class="configured-reports">
|
|
4
|
+
<div class="d-flex flex-column ">
|
|
5
|
+
<div class="configured-reports-header mb-4">
|
|
6
|
+
<div class="d-flex align-items-center">
|
|
7
|
+
<h2>Configured reports</h2>
|
|
8
|
+
</div>
|
|
9
|
+
<span>
|
|
10
|
+
<%= link_to dashboard_index_path, class: 'text-decoration-none' do %>
|
|
11
|
+
<%= render "kaui/components/button/button", {
|
|
12
|
+
label: "Dashboard",
|
|
13
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
14
|
+
type: "button",
|
|
15
|
+
html_class: "btn btn-xs kaui-button custom-hover py-2 px-3"
|
|
16
|
+
} %>
|
|
17
|
+
<% end %>
|
|
18
|
+
<%= link_to new_report_path, class: 'text-decoration-none' do %>
|
|
19
|
+
<%= render "kaui/components/button/button", {
|
|
20
|
+
label: "New Report",
|
|
21
|
+
icon: "kaui/plus.svg",
|
|
22
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
23
|
+
type: "button",
|
|
24
|
+
html_class: "btn btn-xs kaui-dropdown custom-hover py-2 px-3"
|
|
25
|
+
} %>
|
|
26
|
+
<% end %>
|
|
27
|
+
</span>
|
|
28
|
+
</div>
|
|
29
|
+
<%= render :partial => 'kanaui/reports/reports_table', :locals => {:reports => @reports} %>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
11
32
|
</div>
|
|
12
|
-
|
|
13
|
-
<hr/>
|
|
14
|
-
|
|
15
|
-
<h1><%= link_to 'Dashboard', dashboard_index_path %></h1>
|
|
16
|
-
|
|
17
|
-
</div>
|
|
33
|
+
</div>
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<div class="register kanaui-reports-new">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
4
|
+
<h5 class="new-report-title pb-3 mb-3 border-bottom">
|
|
5
|
+
<span class="icon-container">
|
|
6
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path d="M12.9166 10.0007C12.9166 11.6115 11.6108 12.9173 9.99998 12.9173C8.38915 12.9173 7.08331 11.6115 7.08331 10.0007C7.08331 8.38982 8.38915 7.08398 9.99998 7.08398C11.6108 7.08398 12.9166 8.38982 12.9166 10.0007Z" stroke="#414651" stroke-width="1.5"/>
|
|
8
|
+
<path d="M8.14341 2.23582L7.50001 4.16602L6.20014 4.98815L4.07331 4.4619C3.71675 4.37368 3.34448 4.52931 3.15681 4.84505L2.01998 6.75762C1.81512 7.10229 1.88473 7.54398 2.18568 7.80891L3.67746 9.12218V10.8765L2.18615 12.1898C1.88527 12.4547 1.81569 12.8963 2.02053 13.2409L3.15741 15.1536C3.34508 15.4694 3.71736 15.625 4.07391 15.5368L6.20075 15.0105L7.43216 15.7011L8.01996 17.7311C8.12313 18.0874 8.44943 18.3327 8.82043 18.3327H11.1803C11.5512 18.3327 11.8775 18.0874 11.9807 17.7311L12.5685 15.7011L13.7993 15.0105L15.9261 15.5368C16.2827 15.625 16.6549 15.4694 16.8426 15.1536L18.0009 13.2048C18.196 12.8767 18.1431 12.4578 17.8726 12.1885L16.3674 10.6899L16.368 9.30877L17.8732 7.81017C18.1438 7.5408 18.1967 7.12202 18.0016 6.79384L16.8432 4.84505C16.6555 4.52931 16.2833 4.37368 15.9267 4.4619L13.7998 4.98815L12.5 4.16602L11.8566 2.23582C11.7432 1.89554 11.4248 1.66602 11.066 1.66602H8.93401C8.57526 1.66602 8.25683 1.89554 8.14341 2.23582Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
</svg>
|
|
10
|
+
</span>
|
|
11
|
+
Add new report
|
|
12
|
+
</h5>
|
|
13
|
+
<%= render 'form' %>
|
|
14
|
+
</div>
|
|
7
15
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
16
|
+
</div>
|
|
@@ -1,19 +1,40 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<div class="register kanaui-settings-index">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
4
|
+
<h5 class="analytics-settings-title pb-3 mb-3 border-bottom">
|
|
5
|
+
<span class="icon-container">
|
|
6
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path d="M12.9166 10.0007C12.9166 11.6115 11.6108 12.9173 9.99998 12.9173C8.38915 12.9173 7.08331 11.6115 7.08331 10.0007C7.08331 8.38982 8.38915 7.08398 9.99998 7.08398C11.6108 7.08398 12.9166 8.38982 12.9166 10.0007Z" stroke="#414651" stroke-width="1.5"/>
|
|
8
|
+
<path d="M8.14341 2.23582L7.50001 4.16602L6.20014 4.98815L4.07331 4.4619C3.71675 4.37368 3.34448 4.52931 3.15681 4.84505L2.01998 6.75762C1.81512 7.10229 1.88473 7.54398 2.18568 7.80891L3.67746 9.12218V10.8765L2.18615 12.1898C1.88527 12.4547 1.81569 12.8963 2.02053 13.2409L3.15741 15.1536C3.34508 15.4694 3.71736 15.625 4.07391 15.5368L6.20075 15.0105L7.43216 15.7011L8.01996 17.7311C8.12313 18.0874 8.44943 18.3327 8.82043 18.3327H11.1803C11.5512 18.3327 11.8775 18.0874 11.9807 17.7311L12.5685 15.7011L13.7993 15.0105L15.9261 15.5368C16.2827 15.625 16.6549 15.4694 16.8426 15.1536L18.0009 13.2048C18.196 12.8767 18.1431 12.4578 17.8726 12.1885L16.3674 10.6899L16.368 9.30877L17.8732 7.81017C18.1438 7.5408 18.1967 7.12202 18.0016 6.79384L16.8432 4.84505C16.6555 4.52931 16.2833 4.37368 15.9267 4.4619L13.7998 4.98815L12.5 4.16602L11.8566 2.23582C11.7432 1.89554 11.4248 1.66602 11.066 1.66602H8.93401C8.57526 1.66602 8.25683 1.89554 8.14341 2.23582Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
</svg>
|
|
10
|
+
</span>
|
|
11
|
+
Analytics settings
|
|
12
|
+
</h5>
|
|
13
|
+
<%= form_tag kanaui_engine.settings_path, :method => :post, :class => 'form-horizontal' do %>
|
|
14
|
+
<div class='form-group d-flex pb-3 border-bottom mb-3'>
|
|
15
|
+
<%= label_tag :account_id, 'Account id', :class => 'col-sm-3 control-label' %>
|
|
16
|
+
<div class="col-sm-9">
|
|
17
|
+
<%= text_field_tag :account_id, nil, :class => 'form-control' %>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="form-group d-flex justify-content-end">
|
|
21
|
+
<%= render "kaui/components/button/button", {
|
|
22
|
+
label: 'Close',
|
|
23
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
24
|
+
type: "button",
|
|
25
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
26
|
+
html_options: {
|
|
27
|
+
onclick: "window.history.back();"
|
|
28
|
+
}
|
|
29
|
+
} %>
|
|
30
|
+
<%= render "kaui/components/button/button", {
|
|
31
|
+
label: 'Refresh',
|
|
32
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
33
|
+
type: "submit",
|
|
34
|
+
html_class: "kaui-dropdown custom-hover"
|
|
35
|
+
} %>
|
|
36
|
+
</div>
|
|
37
|
+
<% end %>
|
|
10
38
|
</div>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<div class="col-sm-offset-2 col-sm-10">
|
|
14
|
-
<%= submit_tag 'Refresh', :class => 'btn btn-default' %>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
<% end %>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
data/lib/kanaui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kanaui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kill Bill core team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bootstrap-datepicker-rails
|