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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e42e9b9dc9b550386fa213a199184d24274ff133e0b0a14e690eb29c92474749
4
- data.tar.gz: 189dbd6e4b5c140c329a50c3def2b7e7206c9f9a255fa799704673270ade5b45
3
+ metadata.gz: 1090a3a388d95d97dd96bd211bcb03731e42fa5ebee07b0a6f276e5b9160d952
4
+ data.tar.gz: 8a4417d459df6f2380890a9a89bf538fc7803c5d2ed5ff1c07858966c097e66a
5
5
  SHA512:
6
- metadata.gz: 618be634d246ba8f11011e3942e8dd3198ce2aedc152ec26e1f70765407b8395988900b2846fedbb41322643f92924c65db7f6b57011adc6c2fe39e8c281003c
7
- data.tar.gz: 75160181e254c266c6b9ecdd04206ef0b502d08f7cd5456e13cddb4762fe3b8b698932441ce46abb372f54579e7531525c6fa675c311b1afeeb6cca18e1fab2f
6
+ metadata.gz: d123a4ceacfe88f2d4e734fe5ed216333936dc5796da00f3f7c5e3cd2b57d5e83a941fef80266c3d318bafaa31ccba35182f8c6c49c2bfdfb5e9308c03aa40f4
7
+ data.tar.gz: 2ee1bb8c761def45e410be1a064a48d298068618b041daa20da1a9eb3c56f4d628587ac6a0241fc4e8e1635327a0d6b6b60928b1c79f15d06d927e20ca9fbac5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (2.3.1)
4
+ cm-admin (2.3.2)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -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
- $(document).on('turbolinks:load', function () {
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
- var headerElemHeight = $('.page-top-bar').height() + 64
36
- var calculatedHeight = "calc(100vh - " + headerElemHeight+"px"+")"
37
- $('.table-wrapper').css("maxHeight", calculatedHeight);
3
+ $(document).on('turbolinks:load', function () {
4
+ initializeComponents();
38
5
  });
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  end
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.1
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-04 00:00:00.000000000 Z
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
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.2
6
- before_install: gem install bundler -v 2.1.4