camaleon_cms 2.8.0 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of camaleon_cms might be problematic. Click here for more details.

Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -7
  3. data/app/assets/javascripts/camaleon_cms/admin/lte/app.js +71 -57
  4. data/app/assets/stylesheets/camaleon_cms/admin/admin-manifest.css +2 -1
  5. data/app/assets/stylesheets/camaleon_cms/admin/{colorpicker.css.scss → colorpicker.css} +5 -5
  6. data/app/assets/stylesheets/camaleon_cms/admin/lte/_admin.css.scss +450 -69
  7. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-black-light.css +15 -18
  8. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-black.css +22 -18
  9. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-blue-light.css +0 -3
  10. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-blue.css +1 -4
  11. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-green-light.css +0 -3
  12. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-green.css +0 -3
  13. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-purple-light.css +0 -3
  14. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-purple.css +0 -4
  15. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-red-light.css +0 -3
  16. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-red.css +0 -3
  17. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-yellow-light.css +0 -3
  18. data/app/assets/stylesheets/camaleon_cms/admin/lte/skins/skin-yellow.css +0 -3
  19. data/app/assets/stylesheets/camaleon_cms/bootstrap.min.css.map +1 -0
  20. data/app/controllers/camaleon_cms/admin/media_controller.rb +12 -9
  21. data/app/helpers/camaleon_cms/html_helper.rb +1 -1
  22. data/app/helpers/camaleon_cms/uploader_helper.rb +50 -12
  23. data/app/models/camaleon_cms/custom_field_group.rb +1 -4
  24. data/app/models/camaleon_cms/term_taxonomy.rb +13 -2
  25. data/app/uploaders/camaleon_cms_aws_uploader.rb +3 -3
  26. data/app/uploaders/camaleon_cms_local_uploader.rb +10 -4
  27. data/app/uploaders/camaleon_cms_uploader.rb +8 -0
  28. data/app/views/camaleon_cms/admin/settings/custom_fields/_get_items.html.erb +1 -2
  29. data/app/views/camaleon_cms/admin/settings/custom_fields/_render.html.erb +2 -2
  30. data/config/initializers/sass.rb +12 -16
  31. data/lib/camaleon_cms/engine.rb +1 -1
  32. data/lib/camaleon_cms/version.rb +1 -1
  33. metadata +46 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b37bf38981929866b3502a12e452ed0289275c2809bf3f924bb19abc10fcc9f7
4
- data.tar.gz: 7f14b8b21e2d56e64f1325174158597c3487b055573516ec8189e0d68e85c415
3
+ metadata.gz: e4dd01f09f339a830605d7fa03643e5693b0f5e8216c14ecac711cc879bdab02
4
+ data.tar.gz: a104dedbd96df0848096426e2b8302eccf288d16c6220001f789c55ae1f19476
5
5
  SHA512:
6
- metadata.gz: 9511c75f6413994762b0adf8ad6a425bd1db659cf53d584415f9f7bcd8e805124a4841f604c477676e7a6c5f4785a6769e7eb5f26976e5e9cc35865150ecd40e
7
- data.tar.gz: 9d41f8a59f06d66f78e3a34342ef82124c49eee21d694b06d6c5f8086880ebc157518d88d99d38ae59f835120e2173ffe6c05f40c9d865e665de77cd1e02b6ff
6
+ metadata.gz: e3ba4796050214ec417a91d1b2784dd5bfc548e8f32b8d9e5147b5d9dbc942e7ce8eac9cfbd8f301372075989325f413d94d8be5647315891884e7f59a231f4a
7
+ data.tar.gz: c5a56b34b9b16f11eac68e682d17b90e4820097e4b439b4890f0454ecf6a71f9aba4cd2080c371ff0dbe2798335707dffbe9924977d7ae756a2be4e16a594386
data/README.md CHANGED
@@ -123,13 +123,6 @@ https://camaleon.website/store/plugins
123
123
  # OR
124
124
  # gem "camaleon_cms", github: 'owen2345/camaleon-cms' # latest development version
125
125
  ```
126
-
127
- * Add initializer `config/initializers/sprockets_fix.rb` to fix "Bug Segmentation fault" (Only Ruby 3+ - [sprokets issue](https://github.com/rails/sprockets/issues/633#issuecomment-774762509))
128
- ```ruby
129
- Rails.application.config.assets.configure do |env|
130
- env.export_concurrent = false
131
- end
132
- ```
133
126
 
134
127
 
135
128
  * Install required Gem and dependencies
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * @Author Almsaeed Studio
8
8
  * @Support <http://www.almsaeedstudio.com>
9
- * @Email <support@almsaeedstudio.com>
10
- * @version 2.3.1
9
+ * @Email <abdullah@almsaeedstudio.com>
10
+ * @version 2.3.11
11
11
  * @license MIT <http://opensource.org/licenses/MIT>
12
12
  */
13
13
 
@@ -48,21 +48,23 @@ $.AdminLTE.options = {
48
48
  //Activate sidebar push menu
49
49
  sidebarPushMenu: true,
50
50
  //Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin)
51
- sidebarSlimScroll: false,
51
+ sidebarSlimScroll: true,
52
52
  //Enable sidebar expand on hover effect for sidebar mini
53
53
  //This option is forced to true if both the fixed layout and sidebar mini
54
54
  //are used together
55
55
  sidebarExpandOnHover: false,
56
56
  //BoxRefresh Plugin
57
- enableBoxRefresh: false,
57
+ enableBoxRefresh: true,
58
58
  //Bootstrap.js tooltip
59
- enableBSToppltip: false,
59
+ enableBSToppltip: true,
60
60
  BSTooltipSelector: "[data-toggle='tooltip']",
61
61
  //Enable Fast Click. Fastclick.js creates a more
62
62
  //native touch experience with touch devices. If you
63
63
  //choose to enable the plugin, make sure you load the script
64
64
  //before AdminLTE's app.js
65
- enableFastclick: true,
65
+ enableFastclick: false,
66
+ //Control Sidebar Tree views
67
+ enableControlTreeView: true,
66
68
  //Control Sidebar Options
67
69
  enableControlSidebar: true,
68
70
  controlSidebarOptions: {
@@ -96,7 +98,7 @@ $.AdminLTE.options = {
96
98
  //Direct Chat plugin options
97
99
  directChat: {
98
100
  //Enable direct chat by default
99
- enable: false,
101
+ enable: true,
100
102
  //The button to open and close the chat contacts pane
101
103
  contactToggleSelector: '[data-widget="chat-pane-toggle"]'
102
104
  },
@@ -160,7 +162,9 @@ $(function () {
160
162
  $.AdminLTE.layout.activate();
161
163
 
162
164
  //Enable sidebar tree view controls
163
- $.AdminLTE.tree('.sidebar');
165
+ if (o.enableControlTreeView) {
166
+ $.AdminLTE.tree('.sidebar');
167
+ }
164
168
 
165
169
  //Enable control sidebar
166
170
  if (o.enableControlSidebar) {
@@ -184,7 +188,8 @@ $(function () {
184
188
  //Activate Bootstrap tooltip
185
189
  if (o.enableBSToppltip) {
186
190
  $('body').tooltip({
187
- selector: o.BSTooltipSelector
191
+ selector: o.BSTooltipSelector,
192
+ container: 'body'
188
193
  });
189
194
  }
190
195
 
@@ -242,20 +247,24 @@ function _init() {
242
247
  var _this = this;
243
248
  _this.fix();
244
249
  _this.fixSidebar();
250
+ $('body, html, .wrapper').css('height', 'auto');
245
251
  $(window, ".wrapper").resize(function () {
246
252
  _this.fix();
247
253
  _this.fixSidebar();
248
254
  });
249
255
  },
250
256
  fix: function () {
257
+ // Remove overflow from .wrapper if layout-boxed exists
258
+ $(".layout-boxed > .wrapper").css('overflow', 'hidden');
251
259
  //Get window height and the wrapper height
252
- var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
260
+ var footer_height = $('.main-footer').outerHeight() || 0;
261
+ var neg = $('.main-header').outerHeight() + footer_height;
253
262
  var window_height = $(window).height();
254
- var sidebar_height = $(".sidebar").height();
263
+ var sidebar_height = $(".sidebar").height() || 0;
255
264
  //Set the min-height of the content and sidebar based on the
256
265
  //the height of the document.
257
266
  if ($("body").hasClass("fixed")) {
258
- $(".content-wrapper, .right-side").css('min-height', window_height - $('.main-footer').outerHeight());
267
+ $(".content-wrapper, .right-side").css('min-height', window_height - footer_height);
259
268
  } else {
260
269
  var postSetWidth;
261
270
  if (window_height >= sidebar_height) {
@@ -291,7 +300,7 @@ function _init() {
291
300
  //Destroy if it exists
292
301
  $(".sidebar").slimScroll({destroy: true}).height("auto");
293
302
  //Add slimscroll
294
- $(".sidebar").slimscroll({
303
+ $(".sidebar").slimScroll({
295
304
  height: ($(window).height() - $(".main-header").height()) + "px",
296
305
  color: "rgba(0,0,0,0.2)",
297
306
  size: "3px"
@@ -345,7 +354,7 @@ function _init() {
345
354
  //Enable expand on hover for sidebar mini
346
355
  if ($.AdminLTE.options.sidebarExpandOnHover
347
356
  || ($('body').hasClass('fixed')
348
- && $('body').hasClass('sidebar-mini'))) {
357
+ && $('body').hasClass('sidebar-mini'))) {
349
358
  this.expandOnHover();
350
359
  }
351
360
  },
@@ -388,47 +397,48 @@ function _init() {
388
397
  $.AdminLTE.tree = function (menu) {
389
398
  var _this = this;
390
399
  var animationSpeed = $.AdminLTE.options.animationSpeed;
391
- $(document).on('click', menu + ' li a', function (e) {
392
- //Get the clicked link and the next element
393
- var $this = $(this);
394
- var checkElement = $this.next();
395
-
396
- //Check if the next element is a menu and is visible
397
- if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) {
398
- //Close the menu
399
- checkElement.slideUp(animationSpeed, function () {
400
- checkElement.removeClass('menu-open');
401
- //Fix the layout in case the sidebar stretches over the height of the window
402
- //_this.layout.fix();
403
- });
404
- checkElement.parent("li").removeClass("active");
405
- }
406
- //If the menu is not visible
407
- else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
408
- //Get the parent menu
409
- var parent = $this.parents('ul').first();
410
- //Close all open menus within the parent
411
- var ul = parent.find('ul:visible').slideUp(animationSpeed);
412
- //Remove the menu-open class from the parent
413
- ul.removeClass('menu-open');
414
- //Get the parent li
415
- var parent_li = $this.parent("li");
416
-
417
- //Open the target menu and add the menu-open class
418
- checkElement.slideDown(animationSpeed, function () {
419
- //Add the class active to the parent li
420
- checkElement.addClass('menu-open');
421
- parent.find('li.active').removeClass('active');
422
- parent_li.addClass('active');
423
- //Fix the layout in case the sidebar stretches over the height of the window
424
- _this.layout.fix();
400
+ $(document).off('click', menu + ' li a')
401
+ .on('click', menu + ' li a', function (e) {
402
+ //Get the clicked link and the next element
403
+ var $this = $(this);
404
+ var checkElement = $this.next();
405
+
406
+ //Check if the next element is a menu and is visible
407
+ if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) {
408
+ //Close the menu
409
+ checkElement.slideUp(animationSpeed, function () {
410
+ checkElement.removeClass('menu-open');
411
+ //Fix the layout in case the sidebar stretches over the height of the window
412
+ //_this.layout.fix();
413
+ });
414
+ checkElement.parent("li").removeClass("active");
415
+ }
416
+ //If the menu is not visible
417
+ else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
418
+ //Get the parent menu
419
+ var parent = $this.parents('ul').first();
420
+ //Close all open menus within the parent
421
+ var ul = parent.find('ul:visible').slideUp(animationSpeed);
422
+ //Remove the menu-open class from the parent
423
+ ul.removeClass('menu-open');
424
+ //Get the parent li
425
+ var parent_li = $this.parent("li");
426
+
427
+ //Open the target menu and add the menu-open class
428
+ checkElement.slideDown(animationSpeed, function () {
429
+ //Add the class active to the parent li
430
+ checkElement.addClass('menu-open');
431
+ parent.find('li.active').removeClass('active');
432
+ parent_li.addClass('active');
433
+ //Fix the layout in case the sidebar stretches over the height of the window
434
+ _this.layout.fix();
435
+ });
436
+ }
437
+ //if this isn't a link, prevent the page from being redirected
438
+ if (checkElement.is('.treeview-menu')) {
439
+ e.preventDefault();
440
+ }
425
441
  });
426
- }
427
- //if this isn't a link, prevent the page from being redirected
428
- if (checkElement.is('.treeview-menu')) {
429
- e.preventDefault();
430
- }
431
- });
432
442
  };
433
443
 
434
444
  /* ControlSidebar
@@ -501,9 +511,13 @@ function _init() {
501
511
  if ($("body").hasClass('layout-boxed')) {
502
512
  sidebar.css('position', 'absolute');
503
513
  sidebar.height($(".wrapper").height());
514
+ if (_this.hasBindedResize) {
515
+ return;
516
+ }
504
517
  $(window).resize(function () {
505
518
  _this._fix(sidebar);
506
519
  });
520
+ _this.hasBindedResize = true;
507
521
  } else {
508
522
  sidebar.css({
509
523
  'position': 'fixed',
@@ -672,7 +686,7 @@ function _init() {
672
686
 
673
687
  })(jQuery);
674
688
 
675
- /*
689
+ /*
676
690
  * EXPLICIT BOX CONTROLS
677
691
  * -----------------------
678
692
  * This is a custom plugin to use with the component BOX. It allows you to activate
@@ -691,12 +705,12 @@ function _init() {
691
705
  $.AdminLTE.boxWidget.activate(this);
692
706
  };
693
707
 
694
- $.fn.toggleBox = function(){
708
+ $.fn.toggleBox = function () {
695
709
  var button = $($.AdminLTE.boxWidget.selectors.collapse, this);
696
710
  $.AdminLTE.boxWidget.collapse(button);
697
711
  };
698
712
 
699
- $.fn.removeBox = function(){
713
+ $.fn.removeBox = function () {
700
714
  var button = $($.AdminLTE.boxWidget.selectors.remove, this);
701
715
  $.AdminLTE.boxWidget.remove(button);
702
716
  };
@@ -22,7 +22,8 @@
22
22
  *= require ./uploader/uploader_manifest
23
23
  *= require ./_bootstrap-select
24
24
 
25
+ *= require ./colorpicker
26
+
25
27
  // post
26
28
  *= require ./_jquery.tagsinput
27
29
  */
28
-
@@ -2,7 +2,7 @@
2
2
  .colorpicker-saturation {
3
3
  width: 100px;
4
4
  height: 100px;
5
- background-image: asset-url("camaleon_cms/admin/img/colorpicker/saturation.png");
5
+ background-image: url("camaleon_cms/admin/img/colorpicker/saturation.png");
6
6
  cursor: crosshair;
7
7
  float: left;
8
8
  }
@@ -47,10 +47,10 @@
47
47
  margin-top: -1px;
48
48
  }
49
49
  .colorpicker-hue {
50
- background-image: asset-url("camaleon_cms/admin/img/colorpicker/hue.png");
50
+ background-image: url("camaleon_cms/admin/img/colorpicker/hue.png");
51
51
  }
52
52
  .colorpicker-alpha {
53
- background-image: asset-url("camaleon_cms/admin/img/colorpicker/alpha.png");
53
+ background-image: url("camaleon_cms/admin/img/colorpicker/alpha.png");
54
54
  display: none;
55
55
  }
56
56
  .colorpicker {
@@ -80,7 +80,7 @@
80
80
  height: 10px;
81
81
  margin-top: 5px;
82
82
  clear: both;
83
- background-image: asset-url("camaleon_cms/admin/img/colorpicker/alpha.png");
83
+ background-image: url("camaleon_cms/admin/img/colorpicker/alpha.png");
84
84
  background-position: 0 100%;
85
85
  }
86
86
  .colorpicker-color div {
@@ -93,4 +93,4 @@
93
93
  height: 16px;
94
94
  vertical-align: text-bottom;
95
95
  }
96
- /* EOF BOOTSTRAP COLORPICKER */
96
+ /* EOF BOOTSTRAP COLORPICKER */