cm-admin 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/cm_admin/shared_scaffolds.js +27 -0
- data/app/javascript/packs/cm_admin/scaffolds.js +3 -36
- data/lib/cm_admin/version.rb +1 -1
- metadata +2 -3
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1090a3a388d95d97dd96bd211bcb03731e42fa5ebee07b0a6f276e5b9160d952
|
4
|
+
data.tar.gz: 8a4417d459df6f2380890a9a89bf538fc7803c5d2ed5ff1c07858966c097e66a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d123a4ceacfe88f2d4e734fe5ed216333936dc5796da00f3f7c5e3cd2b57d5e83a941fef80266c3d318bafaa31ccba35182f8c6c49c2bfdfb5e9308c03aa40f4
|
7
|
+
data.tar.gz: 2ee1bb8c761def45e410be1a064a48d298068618b041daa20da1a9eb3c56f4d628587ac6a0241fc4e8e1635327a0d6b6b60928b1c79f15d06d927e20ca9fbac5
|
data/Gemfile.lock
CHANGED
@@ -147,4 +147,31 @@ var replaceAccordionTitle = function (element) {
|
|
147
147
|
.attr("data-bs-target", "#" + accordion_id);
|
148
148
|
$(this).find(".accordion-collapse").attr("id", accordion_id);
|
149
149
|
});
|
150
|
+
initializeComponents();
|
150
151
|
};
|
152
|
+
|
153
|
+
export function initializeComponents() {
|
154
|
+
$('.select-2').select2({
|
155
|
+
theme: "bootstrap-5",
|
156
|
+
});
|
157
|
+
flatpickr("[data-behaviour='date-only']", {
|
158
|
+
dateFormat: "d-m-Y"
|
159
|
+
})
|
160
|
+
flatpickr("[data-behaviour='date-time']", {
|
161
|
+
enableTime: true
|
162
|
+
})
|
163
|
+
flatpickr("[data-behaviour='filter'][data-filter-type='date']", {
|
164
|
+
mode: 'range'
|
165
|
+
})
|
166
|
+
var el = document.getElementsByClassName('columns-list')
|
167
|
+
if(el[0]) {
|
168
|
+
Sortable.create(el[0],{
|
169
|
+
handle: '.dragger',
|
170
|
+
animation: 150
|
171
|
+
});
|
172
|
+
}
|
173
|
+
|
174
|
+
var headerElemHeight = $('.page-top-bar').height() + 64
|
175
|
+
var calculatedHeight = "calc(100vh - " + headerElemHeight+"px"+")"
|
176
|
+
$('.table-wrapper').css("maxHeight", calculatedHeight);
|
177
|
+
}
|
@@ -1,38 +1,5 @@
|
|
1
|
-
|
2
|
-
$('.select-2').select2({
|
3
|
-
theme: "bootstrap-5",
|
4
|
-
});
|
5
|
-
flatpickr("[data-behaviour='date-only']", {
|
6
|
-
dateFormat: "d-m-Y"
|
7
|
-
})
|
8
|
-
flatpickr("[data-behaviour='date-time']", {
|
9
|
-
enableTime: true
|
10
|
-
})
|
11
|
-
flatpickr("[data-behaviour='filter'][data-filter-type='date']", {
|
12
|
-
mode: 'range'
|
13
|
-
})
|
14
|
-
var el = document.getElementsByClassName('columns-list')
|
15
|
-
if(el[0]) {
|
16
|
-
Sortable.create(el[0],{
|
17
|
-
handle: '.dragger',
|
18
|
-
animation: 150
|
19
|
-
});
|
20
|
-
}
|
21
|
-
|
22
|
-
// var array = $('#searchKeywords').val().split(",");
|
23
|
-
// $.each(array,function(i){
|
24
|
-
// alert(array[i]);
|
25
|
-
// });
|
26
|
-
|
27
|
-
// var el = document.getElementsByClassName('kanban-list')
|
28
|
-
// if(el[0]) {
|
29
|
-
// Sortable.create(el,{
|
30
|
-
// handle: '.kanban-item',
|
31
|
-
// animation: 150
|
32
|
-
// });
|
33
|
-
// }
|
1
|
+
import { initializeComponents } from "../../../assets/javascripts/cm_admin/shared_scaffolds";
|
34
2
|
|
35
|
-
|
36
|
-
|
37
|
-
$('.table-wrapper').css("maxHeight", calculatedHeight);
|
3
|
+
$(document).on('turbolinks:load', function () {
|
4
|
+
initializeComponents();
|
38
5
|
});
|
data/lib/cm_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cm-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: exe
|
16
16
|
cert_chain: []
|
17
|
-
date: 2024-10-
|
17
|
+
date: 2024-10-08 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: caxlsx_rails
|
@@ -184,7 +184,6 @@ files:
|
|
184
184
|
- ".rubocop-https---raw-githubusercontent-com-commutatus-cm-linters-main-rubocop-yml"
|
185
185
|
- ".rubocop.yml"
|
186
186
|
- ".stylelintrc.json"
|
187
|
-
- ".travis.yml"
|
188
187
|
- ".vscode/settings.json"
|
189
188
|
- ".yardopts"
|
190
189
|
- CNAME
|