keppler 2.1.6 → 2.1.7

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.
Files changed (204) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/installer/core/app/views/admin/layouts/_sidebar.html.haml +2 -2
  4. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/application.js +0 -6
  5. data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/application.scss +2 -6
  6. data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/admin/views_controller.rb +4 -3
  7. data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/app/app_controller.rb +0 -8
  8. data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/services.rb +14 -0
  9. data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/view.rb +0 -1
  10. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/file_format.rb +29 -0
  11. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/resources.rb +70 -0
  12. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/resources_format.rb +63 -0
  13. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/utils/file_format.rb +44 -0
  14. data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/multimedia/index.html.haml +5 -5
  15. data/installer/core/rockets/keppler_frontend/app/views/layouts/keppler_frontend/app/layouts/_head.html.haml +0 -2
  16. data/installer/core/rockets/keppler_frontend/app/views/layouts/keppler_frontend/app/layouts/application.html.erb +2 -2
  17. data/installer/core/rockets/keppler_frontend/app/views/layouts/themes/keppler_default/application.html.erb +1 -1
  18. data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/editor_spec.rb +20 -0
  19. data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/live_editor_save_spec.rb +10 -10
  20. data/installer/core/spec/fixtures/keppler_frontend/editor/test.html +16 -0
  21. data/installer/core/spec/fixtures/keppler_frontend/editor/test.png +0 -0
  22. data/installer/core/spec/models/keppler_frontend/view/live_editor_spec.rb +54 -54
  23. data/installer/core/spec/routing/keppler_frontend/views_spec.rb +15 -7
  24. data/installer/core/spec/services/keppler_frontend/editor/file_format_spec.rb +35 -0
  25. data/installer/core/spec/services/keppler_frontend/editor/resources_format_spec.rb +45 -0
  26. data/installer/core/spec/services/keppler_frontend/editor/resources_spec.rb +44 -0
  27. data/installer/core/spec/services/keppler_frontend/utils/code_search_spec.rb +4 -5
  28. data/installer/core/spec/services/keppler_frontend/utils/file_format_spec.rb +52 -0
  29. data/installer/core/spec/services/keppler_frontend/utils/yml_handle_spec.rb +15 -12
  30. data/installer/core/spec/spec_helper.rb +2 -0
  31. data/installer/core/test/run.sh +1 -1
  32. data/lib/keppler/version.rb +1 -1
  33. metadata +14 -7400
  34. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-accordion.html +0 -56
  35. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-alert.html +0 -18
  36. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-button-group.html +0 -15
  37. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-button.html +0 -15
  38. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-checks.html +0 -23
  39. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-collapse.html +0 -23
  40. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-12.html +0 -59
  41. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-2.html +0 -29
  42. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-3.html +0 -32
  43. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-4.html +0 -35
  44. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-6.html +0 -41
  45. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-container.html +0 -15
  46. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-dropdown-btn.html +0 -22
  47. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-form.html +0 -33
  48. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-jumbotron.html +0 -25
  49. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-label.html +0 -13
  50. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-list-group.html +0 -22
  51. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-modal.html +0 -32
  52. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-navbar.html +0 -71
  53. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-pagination.html +0 -31
  54. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-panel-table.html +0 -48
  55. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-panel.html +0 -19
  56. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-progress-bar.html +0 -17
  57. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-radio.html +0 -23
  58. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-table.html +0 -42
  59. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-tabs.html +0 -34
  60. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-textarea.html +0 -13
  61. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-thumbnail.html +0 -23
  62. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-well.html +0 -13
  63. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/btsp-input.html +0 -13
  64. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-blur-parallax.html +0 -59
  65. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-blur.html +0 -58
  66. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-parallax.html +0 -49
  67. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-static.html +0 -48
  68. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-video.html +0 -54
  69. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-block.html +0 -15
  70. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h1.html +0 -13
  71. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h2.html +0 -13
  72. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h3.html +0 -13
  73. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h4.html +0 -13
  74. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-small.html +0 -13
  75. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/slick/slick-basic.html +0 -43
  76. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-custom-code.js +0 -3
  77. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-editor.js +0 -1174
  78. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-format.js +0 -498
  79. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-gradient.js +0 -2
  80. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes.js +0 -53138
  81. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapesjs-custom-code.min.js.map +0 -1
  82. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapick.js +0 -2
  83. data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/font-awesome.css +0 -4
  84. data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/grapes-custom.scss +0 -610
  85. data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/grapes.scss +0 -2
  86. data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/grapick.scss +0 -1
  87. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/components_handler.rb +0 -41
  88. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/css/convert.rb +0 -28
  89. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/css_handler.rb +0 -44
  90. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/editor.rb +0 -48
  91. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/html_handler.rb +0 -73
  92. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/html_save_utils.rb +0 -43
  93. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/images_handler.rb +0 -31
  94. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/no_edit_area.rb +0 -67
  95. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000020e7930>.yml +0 -1
  96. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000004f35968>.yml +0 -1
  97. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000005dff430>.yml +0 -1
  98. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000062d44b0>.yml +0 -1
  99. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006306690>.yml +0 -1
  100. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000064d22f8>.yml +0 -1
  101. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006501580>.yml +0 -1
  102. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000067c5d70>.yml +0 -1
  103. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000691b760>.yml +0 -1
  104. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006998918>.yml +0 -1
  105. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000069bf068>.yml +0 -1
  106. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006a4fd48>.yml +0 -1
  107. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006b36bd0>.yml +0 -1
  108. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006ba2bc8>.yml +0 -1
  109. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006d9e530>.yml +0 -1
  110. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006e43d50>.yml +0 -1
  111. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006e7e180>.yml +0 -1
  112. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006f765d8>.yml +0 -1
  113. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006fa5590>.yml +0 -1
  114. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006fa6e40>.yml +0 -1
  115. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006fca958>.yml +0 -1
  116. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007019788>.yml +0 -1
  117. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007071230>.yml +0 -1
  118. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000070bef58>.yml +0 -1
  119. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000718e730>.yml +0 -1
  120. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000728c4e8>.yml +0 -1
  121. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000072e1948>.yml +0 -1
  122. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000073fd200>.yml +0 -1
  123. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000074220f0>.yml +0 -1
  124. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000074762e0>.yml +0 -1
  125. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000750b548>.yml +0 -1
  126. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000750de10>.yml +0 -1
  127. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007553460>.yml +0 -1
  128. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000075a58a0>.yml +0 -1
  129. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000075e0400>.yml +0 -1
  130. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000075f3b18>.yml +0 -1
  131. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000767c828>.yml +0 -1
  132. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000076825e8>.yml +0 -1
  133. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000076c1310>.yml +0 -1
  134. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000077bc080>.yml +0 -1
  135. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000078595b0>.yml +0 -1
  136. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007a274a0>.yml +0 -1
  137. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007a3be78>.yml +0 -1
  138. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007acc4f0>.yml +0 -1
  139. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007b669d8>.yml +0 -1
  140. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007bcd1d8>.yml +0 -1
  141. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007cb0398>.yml +0 -1
  142. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007cea548>.yml +0 -1
  143. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007d60a68>.yml +0 -1
  144. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007d89490>.yml +0 -1
  145. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007e4bdb0>.yml +0 -1
  146. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007eb3c58>.yml +0 -1
  147. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007ef6198>.yml +0 -1
  148. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007f728b0>.yml +0 -1
  149. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007f7e228>.yml +0 -1
  150. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007f820d0>.yml +0 -1
  151. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007fca8f8>.yml +0 -1
  152. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000800b5d8>.yml +0 -1
  153. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008048730>.yml +0 -1
  154. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080a5bd8>.yml +0 -1
  155. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080bc360>.yml +0 -1
  156. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080c6c20>.yml +0 -1
  157. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080ece98>.yml +0 -1
  158. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008102090>.yml +0 -1
  159. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000811d1b0>.yml +0 -1
  160. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000081773e0>.yml +0 -1
  161. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008182a60>.yml +0 -1
  162. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000081bd7f0>.yml +0 -1
  163. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000082311a0>.yml +0 -1
  164. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000828de00>.yml +0 -1
  165. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008396e00>.yml +0 -1
  166. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008452a88>.yml +0 -1
  167. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000085ab218>.yml +0 -1
  168. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008628970>.yml +0 -1
  169. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000867d2e0>.yml +0 -1
  170. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008681430>.yml +0 -1
  171. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000086c38f8>.yml +0 -1
  172. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000878ed50>.yml +0 -1
  173. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000087d1150>.yml +0 -1
  174. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000880e000>.yml +0 -1
  175. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000881dca8>.yml +0 -1
  176. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008841d60>.yml +0 -1
  177. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008846450>.yml +0 -1
  178. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008894510>.yml +0 -1
  179. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000089c1a50>.yml +0 -1
  180. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008b38b18>.yml +0 -1
  181. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000090a0650>.yml +0 -1
  182. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000090e9418>.yml +0 -1
  183. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000091dae30>.yml +0 -1
  184. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000092907f8>.yml +0 -1
  185. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000092ba170>.yml +0 -1
  186. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000093bfd40>.yml +0 -1
  187. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000009449180>.yml +0 -1
  188. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000094656a0>.yml +0 -1
  189. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000009527f48>.yml +0 -1
  190. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000095d4e78>.yml +0 -1
  191. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000095e0b60>.yml +0 -1
  192. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000009661710>.yml +0 -1
  193. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000096c0350>.yml +0 -1
  194. data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000097c1f88>.yml +0 -1
  195. data/installer/core/rockets/keppler_frontend/config/views.yml +0 -18
  196. data/installer/core/spec/services/keppler_frontend/live_editor/components_output_spec.rb +0 -20
  197. data/installer/core/spec/services/keppler_frontend/live_editor/css/convert_spec.rb +0 -39
  198. data/installer/core/spec/services/keppler_frontend/live_editor/css_handler_spec.rb +0 -31
  199. data/installer/core/spec/services/keppler_frontend/live_editor/html_save_spec.rb +0 -75
  200. data/installer/core/spec/services/keppler_frontend/live_editor/html_save_utils_spec.rb +0 -49
  201. data/installer/core/spec/services/keppler_frontend/live_editor/image_output_spec.rb +0 -19
  202. data/installer/core/spec/services/keppler_frontend/live_editor/no_edit_area_spec.rb +0 -44
  203. data/installer/core/spec/services/keppler_frontend/live_editor/render_spec.rb +0 -47
  204. data/installer/core/spec/services/keppler_frontend/live_editor/save_spec.rb +0 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '054093cf1c6259be959ea4ebb3355f19b6f4f8dd6e80a62f0c5e9e71330731cc'
4
- data.tar.gz: 9ad976e0f014ad360de4b85bbee56c7158dd547efb04ffa6a2277b2d8941afcc
3
+ metadata.gz: f5bd3febf81c1bf18e52e37f4afd4239daaebba46717d7bcb0bdbdda0ca76e3d
4
+ data.tar.gz: d82d56a5169cc7ff6821a54c87477e653ca1177003b3fc7458c63b8252243b74
5
5
  SHA512:
6
- metadata.gz: 6e6ede488cad70a98d8a1be46f360ef8c917874390d0b913c6469d5400f7d8dca7b5898192c59ce5b4949611dea1ac90ef6a2812f94f15244d15682f80af9338
7
- data.tar.gz: a4d353ed6002b6f2ba96a9cba2f2249195461eb6a7dff3163d98cd5e218b8c66d9b071d5c9a804697d4380a97ea87f217209b0ee5542d26a322acaeb57a27ca1
6
+ metadata.gz: 89e402d7e6b30b2c6c5ccb3cbf8f17c2423640aa442301f56f205a045d7ad02b892b1a47d317d28a7805abb408295b443bfae99c81d61848a6deac093f6be52e
7
+ data.tar.gz: '095ad0f31459ea10c8b2eff088083886b120e74c53b16bf98d355ecbbbb4502e84690582697199a8a173da3ba5509116ff9da366d4809cd9cad8b7530a731253'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- keppler (2.1.6)
4
+ keppler (2.1.7)
5
5
  httparty
6
6
  thor
7
7
 
@@ -66,8 +66,8 @@
66
66
  ev.preventDefault();
67
67
  swal({
68
68
  html: '<h1 class="modal-h1">Keppler <span>Admin</span></h1><div class="modal-info">' +
69
- '<span> v 2.1.6 </span>' +
70
- "<span>#{t('keppler.release_date')}: 31/10/2018</span>" +
69
+ '<span> v 2.1.7 </span>' +
70
+ "<span>#{t('keppler.release_date')}: 25/10/2018</span>" +
71
71
  '<span>Ruby on Rails v 5.2.1</span>' +
72
72
  '<ul class= "modal-social">' +
73
73
  '<li><a href= "https://www.facebook.com/slicegroupxyz/" target= "_blank"><i class= "icon-social-facebook"></i></a></li>' +
@@ -12,11 +12,5 @@
12
12
  //= require jquery
13
13
  //= require jquery-ui
14
14
  //= require jquery_ujs
15
- //= require bootstrap-sprockets
16
- //= stub ./grapes/grapes-editor
17
- //= require ./grapes/grapes
18
- //= require ./grapes/grapick
19
- //= require ./grapes/grapes-gradient
20
- //= require ./grapes/grapes-custom-code
21
15
  //= require jquery.slick
22
16
  //= require_tree .
@@ -10,15 +10,11 @@
10
10
  * files in this directory. Styles in this file should be added after the last require_* statement.
11
11
  * It is generally better to create a new file per style scope.
12
12
  *
13
- *= require ./grapes/grapes
14
- *= require ./grapes/grapes-custom
15
- *= require ./grapes/grapick
16
- *= stub ./grapes/font-awesome
17
13
  *= require_self
18
14
  */
19
15
 
20
- @import 'font-awesome';
21
- @import 'bootstrap';
16
+ // @import 'font-awesome';
17
+ // @import 'bootstrap';
22
18
  @import 'slick';
23
19
  @import 'slick-theme';
24
20
  @import 'utils/*';
@@ -16,6 +16,8 @@ module KepplerFrontend
16
16
 
17
17
  skip_before_action :verify_authenticity_token, only: :live_editor_save
18
18
 
19
+ include KepplerFrontend::Concerns::Services
20
+
19
21
 
20
22
  # GET /views
21
23
  def index
@@ -123,9 +125,8 @@ module KepplerFrontend
123
125
 
124
126
  def editor
125
127
  @view = View.find(params[:view_id])
126
- filesystem = FileUploadSystem.new
127
- @files_list = filesystem.files_list
128
- @files_views = filesystem.files_list_custom('views')
128
+ @files_list = resources.list
129
+ @files_views = resources.custom_list('views')
129
130
  @partials = Partial.all
130
131
  @views = View.where.not(name: 'keppler').order(position: :asc)
131
132
  @functions = KepplerFrontend::Function.all
@@ -7,7 +7,6 @@ module KepplerFrontend
7
7
  before_action :set_locale
8
8
  before_action :set_metas
9
9
  before_action :set_analytics
10
- before_action :live_editor_info
11
10
 
12
11
  include KepplerCapsules::Concerns::Lib
13
12
  def set_metas
@@ -28,13 +27,6 @@ module KepplerFrontend
28
27
 
29
28
  private
30
29
 
31
- def live_editor_info
32
- if params[:editor] && controller_name.eql?('frontend') && !action_name.eql?('keppler')
33
- view = View.find(params[:view])
34
- gon.editor = view.live_editor_render
35
- end
36
- end
37
-
38
30
  def rocket(name, model)
39
31
  name = name.singularize.downcase.camelize
40
32
  model = model.singularize.downcase.camelize
@@ -0,0 +1,14 @@
1
+ module KepplerFrontend
2
+ module Concerns
3
+ # Concern con la configuracion de parametros de los formulario
4
+ module Services
5
+ extend ActiveSupport::Concern
6
+
7
+ private
8
+
9
+ def resources
10
+ KepplerFrontend::Editor::Resources.new
11
+ end
12
+ end
13
+ end
14
+ end
@@ -18,7 +18,6 @@ module KepplerFrontend
18
18
  before_validation :convert_to_downcase, :without_special_characters
19
19
  has_many :view_callbacks, dependent: :destroy, inverse_of: :view
20
20
  accepts_nested_attributes_for :view_callbacks, reject_if: :all_blank, allow_destroy: true
21
- delegate :live_editor_render, :live_editor_save, to: :live_editor
22
21
  delegate :install, :install_html, :install_remote_js, :install_only_action, to: :view_install_files
23
22
  delegate :uninstall, :uninstall_html, :uninstall_remote_js, :iunnstall_only_action, to: :view_uninstall_files
24
23
 
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module KepplerFrontend
4
+ module Editor
5
+ # CodeHandler
6
+ class FileFormat
7
+ def initialize; end
8
+
9
+ def validate(file)
10
+ content_type = File.extname(file)
11
+ result = false
12
+ utils_files.formats.each do |_key, value|
13
+ result = true if value.include?(content_type)
14
+ end
15
+ result
16
+ end
17
+
18
+ private
19
+
20
+ def utils_files
21
+ KepplerFrontend::Utils::FileFormat.new
22
+ end
23
+
24
+ def assets
25
+ KepplerFrontend::Urls::Assets.new
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module KepplerFrontend
4
+ module Editor
5
+ # Assets
6
+ class Resources
7
+ def initialize; end
8
+
9
+ def list
10
+ files_result = []
11
+ utils.folders.each do |folder|
12
+ result = only_files_validated(folder)
13
+ files_result += result
14
+ end
15
+ files_result = files_result.select { |f| f unless f.nil? }
16
+ sort(files_result)
17
+ rescue StandardError
18
+ false
19
+ end
20
+
21
+ def custom_list(custom)
22
+ custom = 'app/bootstrap' if custom.eql?('bootstrap')
23
+ files = only_files_custom_validated(custom)
24
+ files = files.map do |file|
25
+ render(file, 'views').output
26
+ end
27
+ sort(files)
28
+ rescue StandardError
29
+ false
30
+ end
31
+
32
+ private
33
+
34
+ def sort(files)
35
+ files.sort_by { |k| k[:name] }
36
+ end
37
+
38
+ def only_files_validated(folder)
39
+ result = Dir.entries(url.core_assets(folder, 'app'))
40
+ result = result.select { |f| f if files.validate(f) }
41
+ result.map do |f|
42
+ render(f, 'app').output
43
+ end
44
+ end
45
+
46
+ def only_files_custom_validated(custom)
47
+ fi = files
48
+ utl = utils
49
+ result = Dir.entries(url.core_assets('html', custom))
50
+ result.select { |f| f if fi.validate(f) && utl.folder(f).eql?('html') }
51
+ end
52
+
53
+ def url
54
+ KepplerFrontend::Urls::Assets.new
55
+ end
56
+
57
+ def files
58
+ KepplerFrontend::Editor::FileFormat.new
59
+ end
60
+
61
+ def utils
62
+ KepplerFrontend::Utils::FileFormat.new
63
+ end
64
+
65
+ def render(result, container)
66
+ KepplerFrontend::Editor::ResourcesFormat.new(result, container)
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ module KepplerFrontend
4
+ module Editor
5
+ # Assets
6
+ class ResourcesFormat
7
+ def initialize(input, container)
8
+ @file = input
9
+ @name = input.split('.').first
10
+ @extend = File.extname(input)
11
+ @folder = utils.folder(@file)
12
+ @size = File.size("#{url_core(@folder, container)}/#{@file}")
13
+ @cover = "/assets/keppler_frontend/views/#{@name}.png"
14
+ @cover_url = "#{url_core('html', container)}/#{@name}.png"
15
+ @container = container
16
+ end
17
+
18
+ def output
19
+ file_object.merge(html_attr)
20
+ end
21
+
22
+ private
23
+
24
+ def url
25
+ KepplerFrontend::Urls::Assets.new
26
+ end
27
+
28
+ def utils
29
+ KepplerFrontend::Utils::FileFormat.new
30
+ end
31
+
32
+ def url_core(folder, container)
33
+ url.core_assets(folder, container)
34
+ end
35
+
36
+ def code_custom
37
+ html = File.readlines("#{url_core('html', @container)}/#{@file}")
38
+ html.join
39
+ end
40
+
41
+ def file_object
42
+ {
43
+ id: SecureRandom.uuid,
44
+ name: @file,
45
+ url: "#{url_core(@folder, @container)}/#{@file}",
46
+ search: @name,
47
+ path: url.front_assets(@file),
48
+ folder: @folder,
49
+ size: utils.size(@size),
50
+ format: @extend.split('.').last
51
+ }
52
+ end
53
+
54
+ def html_attr
55
+ {
56
+ html: @folder.eql?('html') ? code_custom : '',
57
+ cover: File.file?(@cover_url) ? @cover : nil,
58
+ cover_url: File.file?(@cover_url) ? @cover_url : ''
59
+ }
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module KepplerFrontend
4
+ module Utils
5
+ # CodeHandler
6
+ class FileFormat
7
+ def initialize; end
8
+
9
+ def folders
10
+ %w[audios fonts images videos html javascripts stylesheets]
11
+ end
12
+
13
+ def formats
14
+ {
15
+ audios: ['.mp3'],
16
+ fonts: ['.eot', '.otf', '.ttf', '.woff', '.woff2'],
17
+ images: ['.jpg', '.jpeg', '.png', '.svg', '.gif', '.tiff', '.bmp'],
18
+ videos: ['.mp4', '.mpeg', '.webm', '.m4v'],
19
+ html: ['.html'],
20
+ javascripts: ['.js', '.coffee', '.json'],
21
+ stylesheets: ['.css', '.scss', '.sass']
22
+ }
23
+ end
24
+
25
+ def folder(file)
26
+ content_type = File.extname(file)
27
+ result = ''
28
+ formats.each do |key, value|
29
+ result = key.to_s if value.include?(content_type)
30
+ end
31
+ result
32
+ end
33
+
34
+ def size(size)
35
+ units = %w[B Kb Mb Gb Tb Pb Eb]
36
+ return '0.0 B' if size.zero?
37
+ exp = (Math.log(size) / Math.log(1024)).to_i
38
+ exp = 6 if exp > 6
39
+ result = (size.to_f / 1024 * exp).round(1)
40
+ format('%<result>s %<units>s', result: result, units: units[exp])
41
+ end
42
+ end
43
+ end
44
+ end
@@ -34,11 +34,11 @@
34
34
  %i.fa.fa-text-height
35
35
  %span.hidden-xs
36
36
  Fonts
37
- %li{ class: "#{'active' if flash[:notice].second.eql?('html') }"}
38
- %a{'aria-expanded': 'false', "data-toggle" => "tab", :href => "#tab_5"}
39
- %i.fa.fa-code
40
- %span.hidden-xs
41
- Components
37
+ -# %li{ class: "#{'active' if flash[:notice].second.eql?('html') }"}
38
+ -# %a{'aria-expanded': 'false', "data-toggle" => "tab", :href => "#tab_5"}
39
+ -# %i.fa.fa-code
40
+ -# %span.hidden-xs
41
+ -# Components
42
42
  %li{ class: "#{'active' if flash[:notice].second.eql?('javascripts') }"}
43
43
  %a{'aria-expanded': 'false', "data-toggle" => "tab", :href => "#tab_6"}
44
44
  %i.fa.fa-magic
@@ -14,8 +14,6 @@
14
14
  // Google Analytics
15
15
  = render 'layouts/keppler_frontend/app/layouts/google_analytics'
16
16
 
17
- -# %link{ rel:"stylesheet", href: "/assets/themes/listashop/font-awesome.min.css"}
18
- = stylesheet_link_tag "keppler_frontend/app/grapes/font-awesome.css", 'data-turbolinks-track': 'reload'
19
17
 
20
18
  -# %link{ rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.2.0/css/all.css', integrity: 'sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ', crossorigin: 'anonymous' }
21
19
  -# %link{:crossorigin => "anonymous", :href => "https://use.fontawesome.com/releases/v5.2.0/css/solid.css", :integrity => "sha384-wnAC7ln+XN0UKdcPvJvtqIH3jOjs9pnKnq9qX68ImXvOGz2JuFoEiCjT8jyZQX2z", :rel => "stylesheet"}/
@@ -12,5 +12,5 @@
12
12
  <!-- Keppler Section -->
13
13
  </keppler-footer>
14
14
  </body>
15
- <%= keppler_editor %>
16
- </html>
15
+ <!-- <%= keppler_editor %> -->
16
+ </html>
@@ -14,6 +14,6 @@
14
14
  <!-- Keppler Footer -->
15
15
  </keppler-footer>
16
16
  </body>
17
- <%= keppler_editor %>
17
+ <!-- <%= keppler_editor %> -->
18
18
  </html>
19
19
 
@@ -0,0 +1,20 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe KepplerFrontend::Admin::ViewsController, type: :controller do
4
+ let(:user) { create(:user) }
5
+
6
+ # describe 'GET to /admin/frontend/views/:id/editor' do
7
+
8
+ # before(:each) do
9
+ # @view = create(:keppler_frontend_views, method: "GET")
10
+ # end
11
+
12
+ # let(:response) do
13
+ # sign_in user
14
+ # get :editor, params: { id: @view.id }
15
+ # end
16
+ # it { expect(response).to have_http_status(200) }
17
+ # it { expect(response).to render_template('editor') }
18
+ # end
19
+
20
+ end
@@ -14,23 +14,23 @@ RSpec.describe KepplerFrontend::Admin::ViewsController, type: :controller do
14
14
  @view.install
15
15
  end
16
16
 
17
- describe 'POST to /live_editor/save' do
18
- let(:response) do
19
- sign_in user
20
- params = { use_route: :appointly, html: html_code, css: css_code, view_id: @view.id }
21
- post :live_editor_save, params: params, format: :json
22
- end
17
+ # describe 'POST to /live_editor/save' do
18
+ # let(:response) do
19
+ # sign_in user
20
+ # params = { use_route: :appointly, html: html_code, css: css_code, view_id: @view.id }
21
+ # post :live_editor_save, params: params, format: :json
22
+ # end
23
23
 
24
- it { expect(response).to have_http_status(200) }
25
- it { expect(response.body).to eq(expected.to_json) }
24
+ # it { expect(response).to have_http_status(200) }
25
+ # it { expect(response.body).to eq(expected.to_json) }
26
26
 
27
- end
27
+ # end
28
28
 
29
29
 
30
30
  after(:each) do
31
31
  @view.uninstall
32
32
  out_file = File.open(front.layout, 'w')
33
- out_file.puts(@layout_original);
33
+ out_file.puts(@layout_original)
34
34
  out_file.close
35
35
  end
36
36
  end