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
@@ -1,18 +0,0 @@
1
- ---
2
- - id: 1
3
- name: keppler
4
- url: "/keppler"
5
- method: GET
6
- active: true
7
- format_result: HTML
8
- position: 1
9
- deleted_at:
10
- created_at: !ruby/object:ActiveSupport::TimeWithZone
11
- utc: 2018-10-08 12:56:30.554898000 Z
12
- zone: &1 !ruby/object:ActiveSupport::TimeZone
13
- name: America/Caracas
14
- time: 2018-10-08 08:56:30.554898000 Z
15
- updated_at: !ruby/object:ActiveSupport::TimeWithZone
16
- utc: 2018-10-22 20:03:03.595551000 Z
17
- zone: *1
18
- time: 2018-10-22 16:03:03.595551000 Z
@@ -1,20 +0,0 @@
1
- require 'rails_helper'
2
- require 'byebug'
3
-
4
- RSpec.describe KepplerFrontend::LiveEditor::ComponentsHandler, type: :services do
5
-
6
- context 'components handler' do
7
- context 'output' do
8
- before(:each) do
9
- @components_handler = KepplerFrontend::LiveEditor::ComponentsHandler.new
10
- end
11
-
12
- it { expect(@components_handler.output).not_to eq(nil) }
13
- it { expect(@components_handler.output).not_to eq([]) }
14
- it { expect(@components_handler.output).to be_a(Array) }
15
-
16
- it { expect(@components_handler.output[0].first).not_to eq("[]") }
17
- it { expect(@components_handler.output[0].last).not_to eq("") }
18
- end
19
- end
20
- end
@@ -1,39 +0,0 @@
1
- require 'rails_helper'
2
- require 'byebug'
3
-
4
- RSpec.describe KepplerFrontend::LiveEditor::Css::Convert, type: :services do
5
-
6
- context 'css convert' do
7
-
8
- before(:each) do
9
- @input_css = ".title {\n background-color: silver; }\n .title h1 {\n color: red; }\n"
10
- @input_scss = ".title {\n background-color: silver;\n\n h1 {\n color: red;\n }\n}"
11
- @view = create(:keppler_frontend_views, method: "GET")
12
- @view.install
13
- urls = KepplerFrontend::Urls::Assets.new
14
- core_css_app = urls.core_assets('stylesheets', 'app')
15
- @css_url = "#{core_css_app}/views/#{@view.name}.scss"
16
- out_file = File.open(@css_url, "w")
17
- out_file.puts(@input_scss);
18
- out_file.close
19
- end
20
-
21
- context 'convert css to scss' do
22
- let(:convert) { KepplerFrontend::LiveEditor::Css::Convert.new(@input_css) }
23
- it { expect(convert.to_scss).not_to eq(nil) }
24
- it { expect(convert.to_scss).to eq(@input_scss) }
25
- end
26
-
27
- context 'convert scss to css' do
28
- let(:convert) do
29
- KepplerFrontend::LiveEditor::Css::Convert.new(@css_url)
30
- end
31
- it { expect(convert.to_css).not_to eq(nil) }
32
- it { expect(convert.to_css).to eq(@input_css) }
33
- end
34
-
35
- after(:each) do
36
- @view.uninstall
37
- end
38
- end
39
- end
@@ -1,31 +0,0 @@
1
- require 'rails_helper'
2
- require 'byebug'
3
-
4
- RSpec.describe KepplerFrontend::LiveEditor::CssHandler, type: :services do
5
-
6
- context 'css handler' do
7
-
8
- before(:each) do
9
- @view = create(:keppler_frontend_views, method: "GET")
10
- @view.install
11
- @css_handler = KepplerFrontend::LiveEditor::CssHandler.new(@view.name)
12
- end
13
-
14
- context 'output' do
15
- it { expect(@css_handler.output).not_to eq(nil) }
16
- it { expect(@css_handler.output).not_to eq('') }
17
- it { expect(@css_handler.output).to be_a(String) }
18
- end
19
-
20
- context 'save' do
21
- before(:each) { @save_css = @css_handler.save("h1 { background: red; }") }
22
-
23
- it { expect(@save_css).to eq(nil) }
24
- it { expect(@css_handler.output).to eq("h1 { background: red; }") }
25
- end
26
-
27
- after(:each) do
28
- @view.uninstall
29
- end
30
- end
31
- end
@@ -1,75 +0,0 @@
1
- require 'rails_helper'
2
- require 'htmlbeautifier'
3
- require 'byebug'
4
-
5
- RSpec.describe KepplerFrontend::LiveEditor::HtmlHandler, type: :services do
6
-
7
- context 'html handler' do
8
- let(:fixture) { "#{Rails.root}/spec/fixtures/keppler_frontend/live_editor/" }
9
-
10
- let(:front) { KepplerFrontend::Urls::Front.new }
11
-
12
- let(:view_original) do
13
- view = File.read(front.view(@view.name)).split("\n")
14
- save = File.open(front.view(@view.name), "w")
15
- view.insert(1, " <keppler-no-edit id=\"area_two\">\n <%= area_two %>\n </keppler-no-edit>\n")
16
- save.puts(view.join("\n"))
17
- save.close
18
- view.insert(0, "<keppler-header></keppler-header>\n")
19
- view.insert(view.count, "\n<keppler-footer></keppler-footer>")
20
- view.join("\n")
21
- end
22
-
23
- let(:file_editor) { "<keppler-header>\n<h1>Header Edited</h1>\n</keppler-header>\n<keppler-view id=\"test_index\">\n <h1>Test Index Edited</h1>\n <keppler-no-edit id=\"area_two\">\n <p>area_two</p>\n </keppler-no-edit>\n</keppler-view>\n\n<keppler-footer>\n<h1>Footer Edited</h1>\n</keppler-footer>" }
24
-
25
- let(:file_editor_has_been_moved) { "<keppler-header>\n<h1>Header Edited</h1>\n <keppler-no-edit id=\"area_two\">\n <p>area_two</p>\n </keppler-no-edit>\n</keppler-header>\n<keppler-view id=\"test_index\">\n <h1>Test Index Edited</h1>\n</keppler-view>\n\n<keppler-footer>\n<h1>Footer Edited</h1>\n</keppler-footer>" }
26
-
27
- before(:each) do
28
- @view = create(:keppler_frontend_views, method: "GET")
29
- @view.install
30
- @layout_original = File.read(front.layout)
31
- @html_handler = KepplerFrontend::LiveEditor::HtmlHandler.new(@view.name)
32
- @view_no_edit = KepplerFrontend::LiveEditor::NoEditArea.new(view_original.split("\n"))
33
- end
34
-
35
- context 'save a area' do
36
- before(:each) do
37
- html_processed = @view_no_edit.merge_to(file_editor.split("\n"))
38
- @html_handler.save_area('view', html_processed)
39
- @view_result = File.readlines(front.view(@view.name))
40
- end
41
-
42
- it { expect(@view_result).to eq(["<keppler-view id=\"test_index\">\n", " <!-- Keppler Section -->\n", " <h1>Test Index Edited</h1>\n", " <keppler-no-edit id=\"area_two\">\n", " <%= area_two %>\n", " </keppler-no-edit>\n", "</keppler-view>"]) }
43
- end
44
-
45
- context 'save' do
46
- before(:each) do
47
- @html_handler.save(file_editor)
48
- @view_layout = File.readlines(front.layout)
49
- @view_result = File.readlines(front.view(@view.name))
50
- # byebug
51
- end
52
-
53
- it { expect(@view_result).to eq(["<keppler-view id=\"test_index\">\n", " <!-- Keppler Section -->\n", " <h1>Test Index Edited</h1>\n", " <keppler-no-edit id=\"area_two\">\n", " <%= area_two %>\n", " </keppler-no-edit>\n", "</keppler-view>"]) }
54
- it { expect(@view_layout).to eq(["<!DOCTYPE html>\n", "<html id=\"keppler-html\">\n", " <head>\n", " <%= set_head %>\n", " </head>\n", " <body id=\"keppler-editor\">\n", " <keppler-header>\n", " <!-- Keppler Section -->\n", " <h1>Header Edited</h1>\n", " </keppler-header>\n", " <%= yield %>\n", " <keppler-footer>\n", " <!-- Keppler Section -->\n", " <h1>Footer Edited</h1>\n", " </keppler-footer>\n", " </body>\n", " <%= keppler_editor %>\n", "</html>"]) }
55
- end
56
-
57
- context 'save when a element has beed moved' do
58
- before(:each) do
59
- @html_handler.save(file_editor_has_been_moved)
60
- @view_layout = File.readlines(front.layout)
61
- @view_result = File.readlines(front.view(@view.name))
62
- end
63
-
64
- it { expect(@view_result).to eq(["<keppler-view id=\"test_index\">\n", " <!-- Keppler Section -->\n", " <h1>Test Index Edited</h1>\n", "</keppler-view>"]) }
65
- it { expect(@view_layout).to eq(["<!DOCTYPE html>\n", "<html id=\"keppler-html\">\n", " <head>\n", " <%= set_head %>\n", " </head>\n", " <body id=\"keppler-editor\">\n", " <keppler-header>\n", " <!-- Keppler Section -->\n", " <h1>Header Edited</h1>\n", " <keppler-no-edit id=\"area_two\">\n", " <%= area_two %>\n", " </keppler-no-edit>\n", " </keppler-header>\n", " <%= yield %>\n", " <keppler-footer>\n", " <!-- Keppler Section -->\n", " <h1>Footer Edited</h1>\n", " </keppler-footer>\n", " </body>\n", " <%= keppler_editor %>\n", "</html>"]) }
66
- end
67
-
68
- after(:each) do
69
- @view.uninstall
70
- out_file = File.open(front.layout, "w")
71
- out_file.puts(@layout_original);
72
- out_file.close
73
- end
74
- end
75
- end
@@ -1,49 +0,0 @@
1
- require 'rails_helper'
2
- require 'byebug'
3
-
4
- RSpec.describe KepplerFrontend::LiveEditor::HtmlSaveUtils, type: :services do
5
-
6
- context 'html utils' do
7
-
8
- before(:each) do
9
- @view = create(:keppler_frontend_views, method: "GET")
10
- @view.install
11
- @utils = KepplerFrontend::LiveEditor::HtmlSaveUtils.new(@view.name)
12
- @root = KepplerFrontend::Urls::Roots.new
13
- end
14
-
15
- context 'get file lines' do
16
- let(:get_view_lines) { @utils.lines('view') }
17
- let(:get_layouts_lines) { @utils.lines('layouts') }
18
-
19
- it { expect(get_view_lines).to eq(["<keppler-view id=\"test_index\">\n", " <h1> test_index template </h1>\n", "</keppler-view>\n"]) }
20
- it { expect(get_layouts_lines).to eq(["<!DOCTYPE html>\n", "<html id=\"keppler-html\">\n", " <head>\n", " <%= set_head %>\n", " </head>\n", " <body id=\"keppler-editor\">\n", " <keppler-header>\n", " <!-- Keppler Section -->\n", " </keppler-header>\n", " <%= yield %>\n", " <keppler-footer>\n", " <!-- Keppler Section -->\n", " </keppler-footer>\n", " </body>\n", " <%= keppler_editor %>\n", "</html>\n"]) }
21
- end
22
-
23
- context 'get url file' do
24
- let(:get_view_url) { @utils.url('view') }
25
- let(:get_layouts_url) { @utils.url('layouts') }
26
-
27
- it { expect(get_view_url).to eq("#{@root.rocket_root}/app/views/keppler_frontend/app/frontend/test_index.html.erb") }
28
- it { expect(get_layouts_url).to eq("#{@root.rocket_root}/app/views/layouts/keppler_frontend/app/layouts/application.html.erb") }
29
- end
30
-
31
- context 'get find a layout area' do
32
- let(:header_area) { @utils.find_area(@utils.lines('layouts'), 'header') }
33
- let(:footer_area) { @utils.find_area(@utils.lines('layouts'), 'footer') }
34
-
35
- it { expect(header_area).to eq([6, 8]) }
36
- it { expect(footer_area).to eq([10, 12]) }
37
- end
38
-
39
- context 'get find a view area' do
40
- let(:view_area) { @utils.find_area(@utils.lines('view'), 'view') }
41
-
42
- it { expect(view_area).to eq([0, 2]) }
43
- end
44
-
45
- after(:each) do
46
- @view.uninstall
47
- end
48
- end
49
- end