keppler 2.1.17 → 2.1.18

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 (571) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/installer/core/.gitignore +88 -0
  4. data/installer/core/app/views/admin/layouts/_sidebar.html.haml +2 -2
  5. data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/app/frontend_controller.rb +0 -1
  6. data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/view.rb +1 -1
  7. data/installer/core/rockets/keppler_frontend/config/data/views.yml +1 -1
  8. data/lib/keppler/version.rb +1 -1
  9. data/testing-with-2.1.18/.gitignore +88 -0
  10. data/testing-with-2.1.18/.ruby-version +1 -0
  11. data/testing-with-2.1.18/Gemfile +149 -0
  12. data/testing-with-2.1.18/Gemfile.lock +645 -0
  13. data/testing-with-2.1.18/Guardfile +18 -0
  14. data/testing-with-2.1.18/LICENSE +674 -0
  15. data/testing-with-2.1.18/README.md +134 -0
  16. data/testing-with-2.1.18/Rakefile +6 -0
  17. data/testing-with-2.1.18/_config.yml +1 -0
  18. data/testing-with-2.1.18/app/assets/images/.keep +0 -0
  19. data/testing-with-2.1.18/app/assets/images/admin/astronauta_keppler.svg +123 -0
  20. data/testing-with-2.1.18/app/assets/images/admin/avatar_keppler.svg +100 -0
  21. data/testing-with-2.1.18/app/assets/images/admin/en.png +0 -0
  22. data/testing-with-2.1.18/app/assets/images/admin/es.png +0 -0
  23. data/testing-with-2.1.18/app/assets/images/admin/favicon.png +0 -0
  24. data/testing-with-2.1.18/app/assets/images/admin/image_default.png +0 -0
  25. data/testing-with-2.1.18/app/assets/images/admin/logo.png +0 -0
  26. data/testing-with-2.1.18/app/assets/images/admin/logo2.png +0 -0
  27. data/testing-with-2.1.18/app/assets/images/admin/profile-menu.jpg +0 -0
  28. data/testing-with-2.1.18/app/assets/images/admin/search.png +0 -0
  29. data/testing-with-2.1.18/app/assets/images/admin/slice-icon-orange.png +0 -0
  30. data/testing-with-2.1.18/app/assets/images/admin/slice-icon.png +0 -0
  31. data/testing-with-2.1.18/app/assets/images/admin/slice.png +0 -0
  32. data/testing-with-2.1.18/app/assets/images/admin/slice_white.png +0 -0
  33. data/testing-with-2.1.18/app/assets/images/app/Cohete_nubes_new.png +0 -0
  34. data/testing-with-2.1.18/app/assets/images/app/Home_Keppler.png +0 -0
  35. data/testing-with-2.1.18/app/assets/images/app/Home_Keppler2.png +0 -0
  36. data/testing-with-2.1.18/app/assets/images/app/fondo.svg +19 -0
  37. data/testing-with-2.1.18/app/assets/images/app/keppler-front.png +0 -0
  38. data/testing-with-2.1.18/app/assets/images/app/slice-front.png +0 -0
  39. data/testing-with-2.1.18/app/assets/images/app/slice.png +0 -0
  40. data/testing-with-2.1.18/app/assets/javascripts/admin/application.coffee +25 -0
  41. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-colorpicker.js +1322 -0
  42. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/fileinput.js +4463 -0
  43. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/locales/LANG.js +100 -0
  44. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/locales/es.js +100 -0
  45. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/piexif.js +2471 -0
  46. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/piexif.min.js +1 -0
  47. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/purify.js +812 -0
  48. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/purify.min.js +1 -0
  49. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/sortable.js +1590 -0
  50. data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/sortable.min.js +1 -0
  51. data/testing-with-2.1.18/app/assets/javascripts/admin/code_editor.js +94 -0
  52. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/comment/comment.js +209 -0
  53. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/comment/continuecomment.js +78 -0
  54. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/dialog/dialog.css +32 -0
  55. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/dialog/dialog.js +161 -0
  56. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/autorefresh.js +47 -0
  57. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/fullscreen.css +6 -0
  58. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/fullscreen.js +41 -0
  59. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/panel.js +123 -0
  60. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/placeholder.js +63 -0
  61. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/rulers.js +51 -0
  62. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/closebrackets.js +194 -0
  63. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/closetag.js +175 -0
  64. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/continuelist.js +89 -0
  65. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/matchbrackets.js +145 -0
  66. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/matchtags.js +66 -0
  67. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/trailingspace.js +27 -0
  68. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/brace-fold.js +105 -0
  69. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/comment-fold.js +59 -0
  70. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/foldcode.js +152 -0
  71. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/foldgutter.css +20 -0
  72. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/foldgutter.js +146 -0
  73. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/indent-fold.js +48 -0
  74. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/markdown-fold.js +49 -0
  75. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/xml-fold.js +184 -0
  76. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/anyword-hint.js +41 -0
  77. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/css-hint.js +60 -0
  78. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/html-hint.js +348 -0
  79. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/javascript-hint.js +157 -0
  80. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/show-hint.css +36 -0
  81. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/show-hint.js +433 -0
  82. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/sql-hint.js +299 -0
  83. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/xml-hint.js +110 -0
  84. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/loadmode.js +64 -0
  85. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/multiplex.js +131 -0
  86. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/overlay.js +90 -0
  87. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/simple.js +216 -0
  88. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/annotatescrollbar.js +122 -0
  89. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/scrollpastend.js +48 -0
  90. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/simplescrollbars.css +66 -0
  91. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/simplescrollbars.js +152 -0
  92. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/jump-to-line.js +49 -0
  93. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/match-highlighter.js +165 -0
  94. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/matchesonscrollbar.css +8 -0
  95. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/matchesonscrollbar.js +97 -0
  96. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/search.js +252 -0
  97. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/searchcursor.js +293 -0
  98. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/codemirror.js +9683 -0
  99. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/keymap/sublime.js +691 -0
  100. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/css.js +832 -0
  101. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/gss.html +103 -0
  102. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/index.html +75 -0
  103. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/less.html +152 -0
  104. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/scss.html +157 -0
  105. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/haml/haml.js +161 -0
  106. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/haml/index.html +79 -0
  107. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlembedded/htmlembedded.js +37 -0
  108. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlembedded/index.html +60 -0
  109. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlmixed/htmlmixed.js +152 -0
  110. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlmixed/index.html +100 -0
  111. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/index.html +114 -0
  112. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/javascript.js +896 -0
  113. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/json-ld.html +72 -0
  114. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/typescript.html +61 -0
  115. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/ruby/index.html +183 -0
  116. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/ruby/ruby.js +296 -0
  117. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/vue/index.html +69 -0
  118. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/vue/vue.js +77 -0
  119. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/xml/index.html +61 -0
  120. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/xml/xml.js +402 -0
  121. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml-frontmatter/index.html +121 -0
  122. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +68 -0
  123. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml/index.html +80 -0
  124. data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml/yaml.js +119 -0
  125. data/testing-with-2.1.18/app/assets/javascripts/admin/file_uploader.coffee +152 -0
  126. data/testing-with-2.1.18/app/assets/javascripts/admin/img_preview.js +32 -0
  127. data/testing-with-2.1.18/app/assets/javascripts/admin/jscolor.js +1855 -0
  128. data/testing-with-2.1.18/app/assets/javascripts/admin/main.coffee +58 -0
  129. data/testing-with-2.1.18/app/assets/javascripts/admin/notification.js +14 -0
  130. data/testing-with-2.1.18/app/assets/javascripts/admin/ruby_console.js +14 -0
  131. data/testing-with-2.1.18/app/assets/javascripts/admin/sidebar.js +24 -0
  132. data/testing-with-2.1.18/app/assets/javascripts/admin/sort.coffee +8 -0
  133. data/testing-with-2.1.18/app/assets/javascripts/admin/swal.js +39 -0
  134. data/testing-with-2.1.18/app/assets/javascripts/admin/sweetalert2/delete-confirm.js +118 -0
  135. data/testing-with-2.1.18/app/assets/javascripts/admin/sweetalert2/sweetalert2.all.min.js +2 -0
  136. data/testing-with-2.1.18/app/assets/javascripts/admin/switch.js +6 -0
  137. data/testing-with-2.1.18/app/assets/javascripts/admin/tooltips.coffee +4 -0
  138. data/testing-with-2.1.18/app/assets/javascripts/admin/upload_records.coffee +8 -0
  139. data/testing-with-2.1.18/app/assets/javascripts/app/application.js.coffee +9 -0
  140. data/testing-with-2.1.18/app/assets/javascripts/app/google_analytics.js.coffee +5 -0
  141. data/testing-with-2.1.18/app/assets/javascripts/ckeditor/config.js +130 -0
  142. data/testing-with-2.1.18/app/assets/javascripts/errors/application.js.coffee +1 -0
  143. data/testing-with-2.1.18/app/assets/javascripts/errors/errors.js +113 -0
  144. data/testing-with-2.1.18/app/assets/javascripts/vue_admin/index.js +111 -0
  145. data/testing-with-2.1.18/app/assets/stylesheets/admin/application.scss +48 -0
  146. data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/fileinput-rtl.scss +133 -0
  147. data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/fileinput.scss +760 -0
  148. data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/themes/explorer-fa/theme.scss +213 -0
  149. data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/themes/explorer-fas/theme.scss +213 -0
  150. data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/themes/explorer/theme.scss +213 -0
  151. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/comment/comment.js +209 -0
  152. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/comment/continuecomment.js +78 -0
  153. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/dialog/dialog.css +32 -0
  154. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/dialog/dialog.js +161 -0
  155. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/autorefresh.js +47 -0
  156. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/fullscreen.css +6 -0
  157. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/fullscreen.js +41 -0
  158. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/panel.js +123 -0
  159. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/placeholder.js +63 -0
  160. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/rulers.js +51 -0
  161. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/closebrackets.js +194 -0
  162. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/closetag.js +175 -0
  163. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/continuelist.js +89 -0
  164. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/matchbrackets.js +145 -0
  165. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/matchtags.js +66 -0
  166. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/trailingspace.js +27 -0
  167. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/brace-fold.js +105 -0
  168. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/comment-fold.js +59 -0
  169. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/foldcode.js +152 -0
  170. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/foldgutter.css +20 -0
  171. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/foldgutter.js +146 -0
  172. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/indent-fold.js +48 -0
  173. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/markdown-fold.js +49 -0
  174. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/xml-fold.js +184 -0
  175. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/anyword-hint.js +41 -0
  176. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/css-hint.js +60 -0
  177. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/html-hint.js +348 -0
  178. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/javascript-hint.js +157 -0
  179. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/show-hint.css +36 -0
  180. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/show-hint.js +433 -0
  181. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/sql-hint.js +299 -0
  182. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/xml-hint.js +110 -0
  183. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/annotatescrollbar.js +122 -0
  184. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/scrollpastend.js +48 -0
  185. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/simplescrollbars.css +66 -0
  186. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/simplescrollbars.js +152 -0
  187. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/jump-to-line.js +49 -0
  188. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/match-highlighter.js +165 -0
  189. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/matchesonscrollbar.css +8 -0
  190. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/matchesonscrollbar.js +97 -0
  191. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/search.js +252 -0
  192. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/searchcursor.js +293 -0
  193. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/codemirror.css +366 -0
  194. data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/theme/monokai.css +41 -0
  195. data/testing-with-2.1.18/app/assets/stylesheets/admin/components/layouts/_footer.scss +5 -0
  196. data/testing-with-2.1.18/app/assets/stylesheets/admin/components/layouts/_settings.scss +51 -0
  197. data/testing-with-2.1.18/app/assets/stylesheets/admin/components/navigation/_navbar.scss +187 -0
  198. data/testing-with-2.1.18/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +207 -0
  199. data/testing-with-2.1.18/app/assets/stylesheets/admin/components/navigation/_turbolinks.scss +4 -0
  200. data/testing-with-2.1.18/app/assets/stylesheets/admin/components/paginator/_paginator.scss +53 -0
  201. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/ZXuke1cDvLCKLDcimxB44_lu.woff2 +0 -0
  202. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/boxicons.css +2918 -0
  203. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts.css +8 -0
  204. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.eot +0 -0
  205. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.ttf +0 -0
  206. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.woff +0 -0
  207. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.woff2 +0 -0
  208. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.eot +0 -0
  209. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.svg +808 -0
  210. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.ttf +0 -0
  211. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.woff +0 -0
  212. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.woff2 +0 -0
  213. data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/icons.css +778 -0
  214. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_appearance.scss +5 -0
  215. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_bootstrap-colorpicker.scss +269 -0
  216. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_customize.scss +22 -0
  217. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_datepicker.scss +1086 -0
  218. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_devise.scss +189 -0
  219. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_files.scss +229 -0
  220. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_form.scss +190 -0
  221. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_index.scss +466 -0
  222. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_listing.scss +40 -0
  223. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_preloader.scss +224 -0
  224. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_rockets.scss +13 -0
  225. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_roles.scss +3 -0
  226. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_search.scss +244 -0
  227. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_show.scss +23 -0
  228. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_switchs.scss +143 -0
  229. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_themes.scss +45 -0
  230. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_timepicker.scss +14 -0
  231. data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_user.scss +6 -0
  232. data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_base.scss +65 -0
  233. data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_mixins.scss +26 -0
  234. data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_theme.scss +124 -0
  235. data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_variables.scss +109 -0
  236. data/testing-with-2.1.18/app/assets/stylesheets/app/application.scss +30 -0
  237. data/testing-with-2.1.18/app/assets/stylesheets/app/base/_base_project.scss +17 -0
  238. data/testing-with-2.1.18/app/assets/stylesheets/app/base/_typography.scss +1 -0
  239. data/testing-with-2.1.18/app/assets/stylesheets/app/components/_buttons.scss +0 -0
  240. data/testing-with-2.1.18/app/assets/stylesheets/app/components/_inputs.scss +0 -0
  241. data/testing-with-2.1.18/app/assets/stylesheets/app/components/_navbar.scss +21 -0
  242. data/testing-with-2.1.18/app/assets/stylesheets/app/layout/_container.scss +0 -0
  243. data/testing-with-2.1.18/app/assets/stylesheets/app/layout/_footer.scss +15 -0
  244. data/testing-with-2.1.18/app/assets/stylesheets/app/layout/_header.scss +39 -0
  245. data/testing-with-2.1.18/app/assets/stylesheets/app/pages/_front.sass +83 -0
  246. data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_bootstrap_override.scss +37 -0
  247. data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_font_awesome.scss +2 -0
  248. data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_keppler.scss +161 -0
  249. data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_npogress.scss +2 -0
  250. data/testing-with-2.1.18/app/assets/stylesheets/app/utils/_mixins.scss +18 -0
  251. data/testing-with-2.1.18/app/assets/stylesheets/app/utils/_variables.scss +28 -0
  252. data/testing-with-2.1.18/app/assets/stylesheets/errors/application.scss +3 -0
  253. data/testing-with-2.1.18/app/assets/stylesheets/errors/errors.scss +161 -0
  254. data/testing-with-2.1.18/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +141 -0
  255. data/testing-with-2.1.18/app/assets/stylesheets/vendor/sweetalert2/sweetalert2.scss +11 -0
  256. data/testing-with-2.1.18/app/controllers/admin/admin_controller.rb +95 -0
  257. data/testing-with-2.1.18/app/controllers/admin/meta_tags_controller.rb +118 -0
  258. data/testing-with-2.1.18/app/controllers/admin/permissions_controller.rb +55 -0
  259. data/testing-with-2.1.18/app/controllers/admin/rockets_controller.rb +95 -0
  260. data/testing-with-2.1.18/app/controllers/admin/roles_controller.rb +124 -0
  261. data/testing-with-2.1.18/app/controllers/admin/scripts_controller.rb +104 -0
  262. data/testing-with-2.1.18/app/controllers/admin/seos_controller.rb +31 -0
  263. data/testing-with-2.1.18/app/controllers/admin/settings_controller.rb +131 -0
  264. data/testing-with-2.1.18/app/controllers/admin/users_controller.rb +122 -0
  265. data/testing-with-2.1.18/app/controllers/app/app_controller.rb +38 -0
  266. data/testing-with-2.1.18/app/controllers/app/front_controller.rb +8 -0
  267. data/testing-with-2.1.18/app/controllers/application_controller.rb +151 -0
  268. data/testing-with-2.1.18/app/controllers/concerns/.keep +0 -0
  269. data/testing-with-2.1.18/app/controllers/concerns/devise_params.rb +33 -0
  270. data/testing-with-2.1.18/app/controllers/concerns/mailer_config.rb +37 -0
  271. data/testing-with-2.1.18/app/controllers/concerns/object_query.rb +50 -0
  272. data/testing-with-2.1.18/app/controllers/concerns/settings.rb +105 -0
  273. data/testing-with-2.1.18/app/controllers/devise/sessions_controller.rb +108 -0
  274. data/testing-with-2.1.18/app/controllers/errors_controller.rb +30 -0
  275. data/testing-with-2.1.18/app/helpers/admin_helper.rb +138 -0
  276. data/testing-with-2.1.18/app/helpers/application_helper.rb +33 -0
  277. data/testing-with-2.1.18/app/helpers/fronts_helper.rb +38 -0
  278. data/testing-with-2.1.18/app/helpers/rockets_helper.rb +8 -0
  279. data/testing-with-2.1.18/app/helpers/roles_helper.rb +5 -0
  280. data/testing-with-2.1.18/app/helpers/scaffolds_helper.rb +5 -0
  281. data/testing-with-2.1.18/app/inputs/keppler_boolean_input.rb +52 -0
  282. data/testing-with-2.1.18/app/inputs/keppler_file_input.rb +124 -0
  283. data/testing-with-2.1.18/app/mailers/.keep +0 -0
  284. data/testing-with-2.1.18/app/mailers/application_mailer.rb +42 -0
  285. data/testing-with-2.1.18/app/models/.keep +0 -0
  286. data/testing-with-2.1.18/app/models/appearance.rb +7 -0
  287. data/testing-with-2.1.18/app/models/application_record.rb +6 -0
  288. data/testing-with-2.1.18/app/models/concerns/.keep +0 -0
  289. data/testing-with-2.1.18/app/models/concerns/activity_history.rb +11 -0
  290. data/testing-with-2.1.18/app/models/concerns/clone_record.rb +14 -0
  291. data/testing-with-2.1.18/app/models/concerns/downloadable.rb +16 -0
  292. data/testing-with-2.1.18/app/models/concerns/searchable.rb +27 -0
  293. data/testing-with-2.1.18/app/models/concerns/sortable.rb +13 -0
  294. data/testing-with-2.1.18/app/models/concerns/uploadable.rb +13 -0
  295. data/testing-with-2.1.18/app/models/front.rb +5 -0
  296. data/testing-with-2.1.18/app/models/google_analytics_setting.rb +6 -0
  297. data/testing-with-2.1.18/app/models/meta_tag.rb +54 -0
  298. data/testing-with-2.1.18/app/models/permission.rb +6 -0
  299. data/testing-with-2.1.18/app/models/rocket.rb +105 -0
  300. data/testing-with-2.1.18/app/models/role.rb +134 -0
  301. data/testing-with-2.1.18/app/models/script.rb +21 -0
  302. data/testing-with-2.1.18/app/models/seo.rb +49 -0
  303. data/testing-with-2.1.18/app/models/setting.rb +19 -0
  304. data/testing-with-2.1.18/app/models/smtp_setting.rb +7 -0
  305. data/testing-with-2.1.18/app/models/social_account.rb +6 -0
  306. data/testing-with-2.1.18/app/models/user.rb +75 -0
  307. data/testing-with-2.1.18/app/policies/application_policy.rb +18 -0
  308. data/testing-with-2.1.18/app/policies/controller_policy.rb +59 -0
  309. data/testing-with-2.1.18/app/policies/meta_tag_policy.rb +11 -0
  310. data/testing-with-2.1.18/app/policies/permission_policy.rb +23 -0
  311. data/testing-with-2.1.18/app/policies/rocket_policy.rb +11 -0
  312. data/testing-with-2.1.18/app/policies/role_policy.rb +31 -0
  313. data/testing-with-2.1.18/app/policies/script_policy.rb +11 -0
  314. data/testing-with-2.1.18/app/policies/seo_policy.rb +23 -0
  315. data/testing-with-2.1.18/app/policies/setting_policy.rb +15 -0
  316. data/testing-with-2.1.18/app/policies/user_policy.rb +19 -0
  317. data/testing-with-2.1.18/app/services/admin/appearance_service.rb +49 -0
  318. data/testing-with-2.1.18/app/services/admin/git_handler.rb +28 -0
  319. data/testing-with-2.1.18/app/uploaders/attachment_uploader.rb +61 -0
  320. data/testing-with-2.1.18/app/uploaders/ckeditor_attachment_file_uploader.rb +38 -0
  321. data/testing-with-2.1.18/app/uploaders/ckeditor_picture_uploader.rb +49 -0
  322. data/testing-with-2.1.18/app/uploaders/template_uploader.rb +44 -0
  323. data/testing-with-2.1.18/app/views/admin/layouts/_footer.html.haml +0 -0
  324. data/testing-with-2.1.18/app/views/admin/layouts/_git_info.html.haml +13 -0
  325. data/testing-with-2.1.18/app/views/admin/layouts/_head.html.haml +7 -0
  326. data/testing-with-2.1.18/app/views/admin/layouts/_keppler_boolean_script.haml +12 -0
  327. data/testing-with-2.1.18/app/views/admin/layouts/_listing_preloader.haml +4 -0
  328. data/testing-with-2.1.18/app/views/admin/layouts/_messages.html.haml +4 -0
  329. data/testing-with-2.1.18/app/views/admin/layouts/_navigation.html.haml +59 -0
  330. data/testing-with-2.1.18/app/views/admin/layouts/_preloader.html.haml +14 -0
  331. data/testing-with-2.1.18/app/views/admin/layouts/_sidebar.html.haml +83 -0
  332. data/testing-with-2.1.18/app/views/admin/layouts/application.html.haml +23 -0
  333. data/testing-with-2.1.18/app/views/admin/layouts/index/remote_messages.js.haml +9 -0
  334. data/testing-with-2.1.18/app/views/admin/meta_tags/_description.html.haml +13 -0
  335. data/testing-with-2.1.18/app/views/admin/meta_tags/_form.html.haml +35 -0
  336. data/testing-with-2.1.18/app/views/admin/meta_tags/_listing.html.haml +40 -0
  337. data/testing-with-2.1.18/app/views/admin/meta_tags/edit.html.haml +2 -0
  338. data/testing-with-2.1.18/app/views/admin/meta_tags/index.html.haml +69 -0
  339. data/testing-with-2.1.18/app/views/admin/meta_tags/new.html.haml +2 -0
  340. data/testing-with-2.1.18/app/views/admin/meta_tags/reload.js.haml +5 -0
  341. data/testing-with-2.1.18/app/views/admin/meta_tags/show.html.haml +28 -0
  342. data/testing-with-2.1.18/app/views/admin/permissions/_switch.html.haml +13 -0
  343. data/testing-with-2.1.18/app/views/admin/permissions/add.html.haml +95 -0
  344. data/testing-with-2.1.18/app/views/admin/permissions/create.html.haml +0 -0
  345. data/testing-with-2.1.18/app/views/admin/permissions/create.js.erb +2 -0
  346. data/testing-with-2.1.18/app/views/admin/permissions/show.js.erb +2 -0
  347. data/testing-with-2.1.18/app/views/admin/permissions/toggle_permissions.js.erb +6 -0
  348. data/testing-with-2.1.18/app/views/admin/rockets/_create_rocket.haml +61 -0
  349. data/testing-with-2.1.18/app/views/admin/rockets/_install_rocket.haml +28 -0
  350. data/testing-with-2.1.18/app/views/admin/rockets/rockets.haml +54 -0
  351. data/testing-with-2.1.18/app/views/admin/roles/_description.html.haml +13 -0
  352. data/testing-with-2.1.18/app/views/admin/roles/_form.html.haml +27 -0
  353. data/testing-with-2.1.18/app/views/admin/roles/_listing.html.haml +42 -0
  354. data/testing-with-2.1.18/app/views/admin/roles/_switch.html.haml +24 -0
  355. data/testing-with-2.1.18/app/views/admin/roles/edit.html.haml +1 -0
  356. data/testing-with-2.1.18/app/views/admin/roles/index.html.haml +64 -0
  357. data/testing-with-2.1.18/app/views/admin/roles/new.html.haml +1 -0
  358. data/testing-with-2.1.18/app/views/admin/roles/reload.js.haml +5 -0
  359. data/testing-with-2.1.18/app/views/admin/roles/show.html.haml +29 -0
  360. data/testing-with-2.1.18/app/views/admin/scripts/_description.html.haml +13 -0
  361. data/testing-with-2.1.18/app/views/admin/scripts/_form.html.haml +30 -0
  362. data/testing-with-2.1.18/app/views/admin/scripts/_listing.html.haml +40 -0
  363. data/testing-with-2.1.18/app/views/admin/scripts/edit.html.haml +1 -0
  364. data/testing-with-2.1.18/app/views/admin/scripts/index.html.haml +70 -0
  365. data/testing-with-2.1.18/app/views/admin/scripts/new.html.haml +1 -0
  366. data/testing-with-2.1.18/app/views/admin/scripts/reload.js.haml +5 -0
  367. data/testing-with-2.1.18/app/views/admin/scripts/show.html.haml +28 -0
  368. data/testing-with-2.1.18/app/views/admin/seos/robots.html.haml +35 -0
  369. data/testing-with-2.1.18/app/views/admin/seos/sitemap.html.haml +36 -0
  370. data/testing-with-2.1.18/app/views/admin/settings/_form.html.haml +10 -0
  371. data/testing-with-2.1.18/app/views/admin/settings/components/_preview.html.haml +30 -0
  372. data/testing-with-2.1.18/app/views/admin/settings/edit.html.haml +4 -0
  373. data/testing-with-2.1.18/app/views/admin/settings/fields/_appearance.html.haml +64 -0
  374. data/testing-with-2.1.18/app/views/admin/settings/fields/_basic_information.html.haml +40 -0
  375. data/testing-with-2.1.18/app/views/admin/settings/fields/_email_setting.html.haml +18 -0
  376. data/testing-with-2.1.18/app/views/admin/settings/fields/_google_analytics_setting.html.haml +21 -0
  377. data/testing-with-2.1.18/app/views/admin/settings/fields/_social_accounts.html.haml +43 -0
  378. data/testing-with-2.1.18/app/views/admin/users/_description.html.haml +13 -0
  379. data/testing-with-2.1.18/app/views/admin/users/_form.html.haml +45 -0
  380. data/testing-with-2.1.18/app/views/admin/users/_listing.html.haml +47 -0
  381. data/testing-with-2.1.18/app/views/admin/users/delete_avatar.js.haml +3 -0
  382. data/testing-with-2.1.18/app/views/admin/users/edit.html.haml +1 -0
  383. data/testing-with-2.1.18/app/views/admin/users/filter_by_role.js.erb +9 -0
  384. data/testing-with-2.1.18/app/views/admin/users/index.html.haml +69 -0
  385. data/testing-with-2.1.18/app/views/admin/users/new.html.haml +1 -0
  386. data/testing-with-2.1.18/app/views/admin/users/reload.js.haml +5 -0
  387. data/testing-with-2.1.18/app/views/admin/users/show.html.haml +34 -0
  388. data/testing-with-2.1.18/app/views/app/front/index.html.haml +223 -0
  389. data/testing-with-2.1.18/app/views/app/front/message.haml +1 -0
  390. data/testing-with-2.1.18/app/views/app/layouts/_footer.html.haml +3 -0
  391. data/testing-with-2.1.18/app/views/app/layouts/_google_analytics.html.haml +13 -0
  392. data/testing-with-2.1.18/app/views/app/layouts/_head.html.haml +15 -0
  393. data/testing-with-2.1.18/app/views/app/layouts/_messages.html.haml +6 -0
  394. data/testing-with-2.1.18/app/views/app/layouts/_meta_tags.html.haml +40 -0
  395. data/testing-with-2.1.18/app/views/app/layouts/_navigation.html.haml +13 -0
  396. data/testing-with-2.1.18/app/views/app/layouts/_navigation_links.html.haml +6 -0
  397. data/testing-with-2.1.18/app/views/app/layouts/application.html.haml +10 -0
  398. data/testing-with-2.1.18/app/views/application_mailer/testing.html.haml +1 -0
  399. data/testing-with-2.1.18/app/views/devise/confirmations/new.html.erb +16 -0
  400. data/testing-with-2.1.18/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
  401. data/testing-with-2.1.18/app/views/devise/passwords/edit.html.haml +31 -0
  402. data/testing-with-2.1.18/app/views/devise/passwords/new.html.haml +27 -0
  403. data/testing-with-2.1.18/app/views/devise/registrations/edit.html.erb +48 -0
  404. data/testing-with-2.1.18/app/views/devise/registrations/new.html.erb +19 -0
  405. data/testing-with-2.1.18/app/views/devise/sessions/new.html.haml +35 -0
  406. data/testing-with-2.1.18/app/views/devise/shared/_links.html.erb +21 -0
  407. data/testing-with-2.1.18/app/views/errors/internal_server_error.html.haml +50 -0
  408. data/testing-with-2.1.18/app/views/errors/not_authorized.html.haml +76 -0
  409. data/testing-with-2.1.18/app/views/errors/not_found.html.haml +101 -0
  410. data/testing-with-2.1.18/app/views/errors/unprocessable.html.haml +50 -0
  411. data/testing-with-2.1.18/app/views/kaminari/_first_page.html.haml +11 -0
  412. data/testing-with-2.1.18/app/views/kaminari/_gap.html.haml +8 -0
  413. data/testing-with-2.1.18/app/views/kaminari/_last_page.html.haml +11 -0
  414. data/testing-with-2.1.18/app/views/kaminari/_next_page.html.haml +11 -0
  415. data/testing-with-2.1.18/app/views/kaminari/_page.html.haml +10 -0
  416. data/testing-with-2.1.18/app/views/kaminari/_paginator.html.haml +18 -0
  417. data/testing-with-2.1.18/app/views/kaminari/_prev_page.html.haml +11 -0
  418. data/testing-with-2.1.18/app/views/layouts/errors/_head.html.haml +3 -0
  419. data/testing-with-2.1.18/app/views/layouts/errors/application.html.haml +11 -0
  420. data/testing-with-2.1.18/app/views/layouts/mailers/mailer.html.haml +3 -0
  421. data/testing-with-2.1.18/app/views/layouts/mailers/mailer.text.haml +1 -0
  422. data/testing-with-2.1.18/app/views/layouts/templates/application.html.haml +1 -0
  423. data/testing-with-2.1.18/app/views/public_activity/layout/_create.html.haml +44 -0
  424. data/testing-with-2.1.18/app/views/public_activity/layout/_destroy.html.haml +15 -0
  425. data/testing-with-2.1.18/app/views/public_activity/layout/_update.html.haml +44 -0
  426. data/testing-with-2.1.18/app/views/public_activity/session/_create.html.haml +13 -0
  427. data/testing-with-2.1.18/app/views/public_activity/session/_destroy.html.haml +13 -0
  428. data/testing-with-2.1.18/app/views/templates/kaminari/_first_page.html.haml +9 -0
  429. data/testing-with-2.1.18/app/views/templates/kaminari/_gap.html.haml +8 -0
  430. data/testing-with-2.1.18/app/views/templates/kaminari/_last_page.html.haml +9 -0
  431. data/testing-with-2.1.18/app/views/templates/kaminari/_next_page.html.haml +9 -0
  432. data/testing-with-2.1.18/app/views/templates/kaminari/_page.html.haml +10 -0
  433. data/testing-with-2.1.18/app/views/templates/kaminari/_paginator.html.haml +18 -0
  434. data/testing-with-2.1.18/app/views/templates/kaminari/_prev_page.html.haml +9 -0
  435. data/testing-with-2.1.18/bin/bundle +3 -0
  436. data/testing-with-2.1.18/bin/rails +4 -0
  437. data/testing-with-2.1.18/bin/rake +4 -0
  438. data/testing-with-2.1.18/bin/setup +29 -0
  439. data/testing-with-2.1.18/bin/spring +15 -0
  440. data/testing-with-2.1.18/bin/update +31 -0
  441. data/testing-with-2.1.18/bin/yarn +11 -0
  442. data/testing-with-2.1.18/config.ru +4 -0
  443. data/testing-with-2.1.18/config/application.rb +46 -0
  444. data/testing-with-2.1.18/config/attachments.yml +24 -0
  445. data/testing-with-2.1.18/config/boot.rb +7 -0
  446. data/testing-with-2.1.18/config/circleci/db_config.yml +51 -0
  447. data/testing-with-2.1.18/config/database.yml +25 -0
  448. data/testing-with-2.1.18/config/environment.rb +10 -0
  449. data/testing-with-2.1.18/config/environments/development.rb +61 -0
  450. data/testing-with-2.1.18/config/environments/production.rb +109 -0
  451. data/testing-with-2.1.18/config/environments/test.rb +45 -0
  452. data/testing-with-2.1.18/config/gaAuth/gauth_key.p12 +0 -0
  453. data/testing-with-2.1.18/config/initializers/assets.rb +14 -0
  454. data/testing-with-2.1.18/config/initializers/carrierwave.rb +12 -0
  455. data/testing-with-2.1.18/config/initializers/compression.rb +47 -0
  456. data/testing-with-2.1.18/config/initializers/cookies_serializer.rb +3 -0
  457. data/testing-with-2.1.18/config/initializers/date_formats.rb +2 -0
  458. data/testing-with-2.1.18/config/initializers/devise.rb +259 -0
  459. data/testing-with-2.1.18/config/initializers/filter_parameter_logging.rb +5 -0
  460. data/testing-with-2.1.18/config/initializers/inflections.rb +16 -0
  461. data/testing-with-2.1.18/config/initializers/keppler_configuration.rb +9 -0
  462. data/testing-with-2.1.18/config/initializers/mime_types.rb +6 -0
  463. data/testing-with-2.1.18/config/initializers/paginate_kaminari_configuration.rb +12 -0
  464. data/testing-with-2.1.18/config/initializers/ransack.rb +7 -0
  465. data/testing-with-2.1.18/config/initializers/rolify.rb +10 -0
  466. data/testing-with-2.1.18/config/initializers/route_traslator.rb +3 -0
  467. data/testing-with-2.1.18/config/initializers/session_store.rb +5 -0
  468. data/testing-with-2.1.18/config/initializers/simple_form.rb +170 -0
  469. data/testing-with-2.1.18/config/initializers/simple_form_bootstrap.rb +174 -0
  470. data/testing-with-2.1.18/config/initializers/simple_form_components.rb +61 -0
  471. data/testing-with-2.1.18/config/initializers/time_formats.rb +2 -0
  472. data/testing-with-2.1.18/config/initializers/wrap_parameters.rb +15 -0
  473. data/testing-with-2.1.18/config/jshint.yml +21 -0
  474. data/testing-with-2.1.18/config/locales/devise.en.yml +61 -0
  475. data/testing-with-2.1.18/config/locales/devise.es.yml +62 -0
  476. data/testing-with-2.1.18/config/locales/en.yml +477 -0
  477. data/testing-with-2.1.18/config/locales/es.yml +510 -0
  478. data/testing-with-2.1.18/config/locales/routes.en.yml +4 -0
  479. data/testing-with-2.1.18/config/locales/routes.es.yml +5 -0
  480. data/testing-with-2.1.18/config/locales/simple_form.en.yml +46 -0
  481. data/testing-with-2.1.18/config/locales/simple_form.es.yml +96 -0
  482. data/testing-with-2.1.18/config/locales/social_share_button.es.yml +10 -0
  483. data/testing-with-2.1.18/config/menu.yml +58 -0
  484. data/testing-with-2.1.18/config/permissions.yml +39 -0
  485. data/testing-with-2.1.18/config/puma.rb +56 -0
  486. data/testing-with-2.1.18/config/roles.yml +2 -0
  487. data/testing-with-2.1.18/config/routes.rb +191 -0
  488. data/testing-with-2.1.18/config/settings.yml +30 -0
  489. data/testing-with-2.1.18/config/sitemap.rb +30 -0
  490. data/testing-with-2.1.18/config/spring.rb +6 -0
  491. data/testing-with-2.1.18/db/migrate/20140812203549_devise_create_users.rb +50 -0
  492. data/testing-with-2.1.18/db/migrate/20140812210925_rolify_create_roles.rb +21 -0
  493. data/testing-with-2.1.18/db/migrate/20151221173228_create_activities.rb +23 -0
  494. data/testing-with-2.1.18/db/migrate/20160122201215_create_settings.rb +15 -0
  495. data/testing-with-2.1.18/db/migrate/20160126141856_create_smtp_settings.rb +15 -0
  496. data/testing-with-2.1.18/db/migrate/20160128131802_create_scripts.rb +12 -0
  497. data/testing-with-2.1.18/db/migrate/20160128151351_create_google_analytics_settings.rb +13 -0
  498. data/testing-with-2.1.18/db/migrate/20160128193740_create_social_accounts.rb +26 -0
  499. data/testing-with-2.1.18/db/migrate/20160201134918_create_meta_tags.rb +13 -0
  500. data/testing-with-2.1.18/db/migrate/20160201210520_create_appearances.rb +14 -0
  501. data/testing-with-2.1.18/db/migrate/20171225023933_create_scaffolds.rb +10 -0
  502. data/testing-with-2.1.18/db/migrate/20180503174351_create_permissions.rb +11 -0
  503. data/testing-with-2.1.18/db/migrate/20180717160308_create_keppler_frontend_views.keppler_frontend.rb +17 -0
  504. data/testing-with-2.1.18/db/migrate/20180730194655_create_keppler_frontend_themes.rb +13 -0
  505. data/testing-with-2.1.18/db/migrate/20180802184429_create_keppler_capsules_capsules.keppler_capsules.rb +13 -0
  506. data/testing-with-2.1.18/db/migrate/20180802184430_create_keppler_capsules_capsule_fields.keppler_capsules.rb +12 -0
  507. data/testing-with-2.1.18/db/migrate/20180806192023_create_keppler_capsules_capsule_validations.keppler_capsules.rb +13 -0
  508. data/testing-with-2.1.18/db/migrate/20180806203410_create_keppler_frontend_partials.keppler_frontend.rb +13 -0
  509. data/testing-with-2.1.18/db/migrate/20180807204310_create_keppler_capsules_capsule_associations.keppler_capsules.rb +13 -0
  510. data/testing-with-2.1.18/db/migrate/20180813160624_create_keppler_languages_languages.keppler_languages.rb +14 -0
  511. data/testing-with-2.1.18/db/migrate/20180813160625_create_keppler_languages_fields.keppler_languages.rb +14 -0
  512. data/testing-with-2.1.18/db/migrate/20180818073305_create_active_storage_tables.active_storage.rb +26 -0
  513. data/testing-with-2.1.18/db/migrate/20180827120841_create_keppler_frontend_callback_functions.keppler_frontend.rb +14 -0
  514. data/testing-with-2.1.18/db/migrate/20180827154329_create_keppler_frontend_view_callbacks.keppler_frontend.rb +12 -0
  515. data/testing-with-2.1.18/db/migrate/20180827154647_add_position_to_users_table.rb +5 -0
  516. data/testing-with-2.1.18/db/migrate/20180830153221_create_keppler_frontend_functions.keppler_frontend.rb +14 -0
  517. data/testing-with-2.1.18/db/migrate/20180830153222_create_keppler_frontend_parameters.keppler_frontend.rb +13 -0
  518. data/testing-with-2.1.18/db/migrate/20180904144238_create_seos.rb +11 -0
  519. data/testing-with-2.1.18/db/seeds.rb +162 -0
  520. data/testing-with-2.1.18/docs/diagrams/keppler_core/config +0 -0
  521. data/testing-with-2.1.18/docs/diagrams/keppler_frontend/editor/resources_editor.dia +0 -0
  522. data/testing-with-2.1.18/docs/diagrams/keppler_frontend/views/create_view.dia +0 -0
  523. data/testing-with-2.1.18/docs/diagrams/keppler_frontend/views/delete_view.dia +0 -0
  524. data/testing-with-2.1.18/docs/diagrams/keppler_frontend/views/delete_view.dia.autosave +0 -0
  525. data/testing-with-2.1.18/lib/generators/install_rocket/USAGE +44 -0
  526. data/testing-with-2.1.18/lib/generators/install_rocket/install_rocket_generator.rb +107 -0
  527. data/testing-with-2.1.18/lib/generators/keppler_add_module/USAGE +5 -0
  528. data/testing-with-2.1.18/lib/generators/keppler_add_module/keppler_add_module_generator.rb +324 -0
  529. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/controllers/controller.rb +106 -0
  530. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/models/model.rb +29 -0
  531. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/policies/policy.rb +11 -0
  532. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/_description.haml +13 -0
  533. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/_form.haml +49 -0
  534. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/_listing.haml +58 -0
  535. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/edit.haml +1 -0
  536. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/index.haml +70 -0
  537. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/new.haml +1 -0
  538. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/reload.js.haml +5 -0
  539. data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/show.haml +35 -0
  540. data/testing-with-2.1.18/lib/generators/keppler_delete_module/USAGE +5 -0
  541. data/testing-with-2.1.18/lib/generators/keppler_delete_module/keppler_delete_module_generator.rb +305 -0
  542. data/testing-with-2.1.18/lib/generators/keppler_front/keppler_front_generator.rb +139 -0
  543. data/testing-with-2.1.18/lib/generators/keppler_front/templates/controllers/controller.rb +17 -0
  544. data/testing-with-2.1.18/lib/generators/keppler_front/templates/views/template.html.haml +225 -0
  545. data/testing-with-2.1.18/lib/generators/keppler_relation/keppler_relation_generator.rb +219 -0
  546. data/testing-with-2.1.18/lib/generators/new_rocket/USAGE +44 -0
  547. data/testing-with-2.1.18/lib/generators/new_rocket/new_rocket_generator.rb +258 -0
  548. data/testing-with-2.1.18/lib/generators/uninstall_rocket/USAGE +32 -0
  549. data/testing-with-2.1.18/lib/generators/uninstall_rocket/uninstall_rocket_generator.rb +140 -0
  550. data/testing-with-2.1.18/lib/keppler_configuration.rb +12 -0
  551. data/testing-with-2.1.18/lib/plugins/config/locales/en.yml +16 -0
  552. data/testing-with-2.1.18/lib/plugins/config/locales/es.yml +16 -0
  553. data/testing-with-2.1.18/lib/plugins/config/menu.yml +16 -0
  554. data/testing-with-2.1.18/lib/plugins/config/permissions.yml +1 -0
  555. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb +223 -0
  556. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/controllers/controller.rb +107 -0
  557. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/models/model.rb +29 -0
  558. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb +14 -0
  559. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/_description.haml +13 -0
  560. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/_form.haml +49 -0
  561. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/_listing.haml +58 -0
  562. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/edit.haml +1 -0
  563. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/index.haml +69 -0
  564. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/new.haml +1 -0
  565. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
  566. data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/show.haml +35 -0
  567. data/testing-with-2.1.18/lib/plugins/install.rb +151 -0
  568. data/testing-with-2.1.18/lib/plugins/layouts/application.html.haml +23 -0
  569. data/testing-with-2.1.18/lib/templates/haml/scaffold/_form.html.haml +10 -0
  570. metadata +564 -3
  571. data/installer/core/.sass-cache/c3e12133096533fa0f5c2d91446553934f6099d2/(__TEMPLATE__)c +0 -0
@@ -0,0 +1,691 @@
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: http://codemirror.net/LICENSE
3
+
4
+ // A rough approximation of Sublime Text's keybindings
5
+ // Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js
6
+
7
+ (function(mod) {
8
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
9
+ mod(require("../lib/codemirror"), require("../addon/search/searchcursor"), require("../addon/edit/matchbrackets"));
10
+ else if (typeof define == "function" && define.amd) // AMD
11
+ define(["../lib/codemirror", "../addon/search/searchcursor", "../addon/edit/matchbrackets"], mod);
12
+ else // Plain browser env
13
+ mod(CodeMirror);
14
+ })(function(CodeMirror) {
15
+ "use strict";
16
+
17
+ var cmds = CodeMirror.commands;
18
+ var Pos = CodeMirror.Pos;
19
+
20
+ // This is not exactly Sublime's algorithm. I couldn't make heads or tails of that.
21
+ function findPosSubword(doc, start, dir) {
22
+ if (dir < 0 && start.ch == 0) return doc.clipPos(Pos(start.line - 1));
23
+ var line = doc.getLine(start.line);
24
+ if (dir > 0 && start.ch >= line.length) return doc.clipPos(Pos(start.line + 1, 0));
25
+ var state = "start", type;
26
+ for (var pos = start.ch, e = dir < 0 ? 0 : line.length, i = 0; pos != e; pos += dir, i++) {
27
+ var next = line.charAt(dir < 0 ? pos - 1 : pos);
28
+ var cat = next != "_" && CodeMirror.isWordChar(next) ? "w" : "o";
29
+ if (cat == "w" && next.toUpperCase() == next) cat = "W";
30
+ if (state == "start") {
31
+ if (cat != "o") { state = "in"; type = cat; }
32
+ } else if (state == "in") {
33
+ if (type != cat) {
34
+ if (type == "w" && cat == "W" && dir < 0) pos--;
35
+ if (type == "W" && cat == "w" && dir > 0) { type = "w"; continue; }
36
+ break;
37
+ }
38
+ }
39
+ }
40
+ return Pos(start.line, pos);
41
+ }
42
+
43
+ function moveSubword(cm, dir) {
44
+ cm.extendSelectionsBy(function(range) {
45
+ if (cm.display.shift || cm.doc.extend || range.empty())
46
+ return findPosSubword(cm.doc, range.head, dir);
47
+ else
48
+ return dir < 0 ? range.from() : range.to();
49
+ });
50
+ }
51
+
52
+ cmds.goSubwordLeft = function(cm) { moveSubword(cm, -1); };
53
+ cmds.goSubwordRight = function(cm) { moveSubword(cm, 1); };
54
+
55
+ cmds.scrollLineUp = function(cm) {
56
+ var info = cm.getScrollInfo();
57
+ if (!cm.somethingSelected()) {
58
+ var visibleBottomLine = cm.lineAtHeight(info.top + info.clientHeight, "local");
59
+ if (cm.getCursor().line >= visibleBottomLine)
60
+ cm.execCommand("goLineUp");
61
+ }
62
+ cm.scrollTo(null, info.top - cm.defaultTextHeight());
63
+ };
64
+ cmds.scrollLineDown = function(cm) {
65
+ var info = cm.getScrollInfo();
66
+ if (!cm.somethingSelected()) {
67
+ var visibleTopLine = cm.lineAtHeight(info.top, "local")+1;
68
+ if (cm.getCursor().line <= visibleTopLine)
69
+ cm.execCommand("goLineDown");
70
+ }
71
+ cm.scrollTo(null, info.top + cm.defaultTextHeight());
72
+ };
73
+
74
+ cmds.splitSelectionByLine = function(cm) {
75
+ var ranges = cm.listSelections(), lineRanges = [];
76
+ for (var i = 0; i < ranges.length; i++) {
77
+ var from = ranges[i].from(), to = ranges[i].to();
78
+ for (var line = from.line; line <= to.line; ++line)
79
+ if (!(to.line > from.line && line == to.line && to.ch == 0))
80
+ lineRanges.push({anchor: line == from.line ? from : Pos(line, 0),
81
+ head: line == to.line ? to : Pos(line)});
82
+ }
83
+ cm.setSelections(lineRanges, 0);
84
+ };
85
+
86
+ cmds.singleSelectionTop = function(cm) {
87
+ var range = cm.listSelections()[0];
88
+ cm.setSelection(range.anchor, range.head, {scroll: false});
89
+ };
90
+
91
+ cmds.selectLine = function(cm) {
92
+ var ranges = cm.listSelections(), extended = [];
93
+ for (var i = 0; i < ranges.length; i++) {
94
+ var range = ranges[i];
95
+ extended.push({anchor: Pos(range.from().line, 0),
96
+ head: Pos(range.to().line + 1, 0)});
97
+ }
98
+ cm.setSelections(extended);
99
+ };
100
+
101
+ function insertLine(cm, above) {
102
+ if (cm.isReadOnly()) return CodeMirror.Pass
103
+ cm.operation(function() {
104
+ var len = cm.listSelections().length, newSelection = [], last = -1;
105
+ for (var i = 0; i < len; i++) {
106
+ var head = cm.listSelections()[i].head;
107
+ if (head.line <= last) continue;
108
+ var at = Pos(head.line + (above ? 0 : 1), 0);
109
+ cm.replaceRange("\n", at, null, "+insertLine");
110
+ cm.indentLine(at.line, null, true);
111
+ newSelection.push({head: at, anchor: at});
112
+ last = head.line + 1;
113
+ }
114
+ cm.setSelections(newSelection);
115
+ });
116
+ cm.execCommand("indentAuto");
117
+ }
118
+
119
+ cmds.insertLineAfter = function(cm) { return insertLine(cm, false); };
120
+
121
+ cmds.insertLineBefore = function(cm) { return insertLine(cm, true); };
122
+
123
+ function wordAt(cm, pos) {
124
+ var start = pos.ch, end = start, line = cm.getLine(pos.line);
125
+ while (start && CodeMirror.isWordChar(line.charAt(start - 1))) --start;
126
+ while (end < line.length && CodeMirror.isWordChar(line.charAt(end))) ++end;
127
+ return {from: Pos(pos.line, start), to: Pos(pos.line, end), word: line.slice(start, end)};
128
+ }
129
+
130
+ cmds.selectNextOccurrence = function(cm) {
131
+ var from = cm.getCursor("from"), to = cm.getCursor("to");
132
+ var fullWord = cm.state.sublimeFindFullWord == cm.doc.sel;
133
+ if (CodeMirror.cmpPos(from, to) == 0) {
134
+ var word = wordAt(cm, from);
135
+ if (!word.word) return;
136
+ cm.setSelection(word.from, word.to);
137
+ fullWord = true;
138
+ } else {
139
+ var text = cm.getRange(from, to);
140
+ var query = fullWord ? new RegExp("\\b" + text + "\\b") : text;
141
+ var cur = cm.getSearchCursor(query, to);
142
+ var found = cur.findNext();
143
+ if (!found) {
144
+ cur = cm.getSearchCursor(query, Pos(cm.firstLine(), 0));
145
+ found = cur.findNext();
146
+ }
147
+ if (!found || isSelectedRange(cm.listSelections(), cur.from(), cur.to()))
148
+ return CodeMirror.Pass
149
+ cm.addSelection(cur.from(), cur.to());
150
+ }
151
+ if (fullWord)
152
+ cm.state.sublimeFindFullWord = cm.doc.sel;
153
+ };
154
+
155
+ function addCursorToSelection(cm, dir) {
156
+ var ranges = cm.listSelections(), newRanges = [];
157
+ for (var i = 0; i < ranges.length; i++) {
158
+ var range = ranges[i];
159
+ var newAnchor = cm.findPosV(
160
+ range.anchor, dir, "line", range.anchor.goalColumn);
161
+ var newHead = cm.findPosV(
162
+ range.head, dir, "line", range.head.goalColumn);
163
+ newAnchor.goalColumn = range.anchor.goalColumn != null ?
164
+ range.anchor.goalColumn : cm.cursorCoords(range.anchor, "div").left;
165
+ newHead.goalColumn = range.head.goalColumn != null ?
166
+ range.head.goalColumn : cm.cursorCoords(range.head, "div").left;
167
+ var newRange = {anchor: newAnchor, head: newHead};
168
+ newRanges.push(range);
169
+ newRanges.push(newRange);
170
+ }
171
+ cm.setSelections(newRanges);
172
+ }
173
+ cmds.addCursorToPrevLine = function(cm) { addCursorToSelection(cm, -1); };
174
+ cmds.addCursorToNextLine = function(cm) { addCursorToSelection(cm, 1); };
175
+
176
+ function isSelectedRange(ranges, from, to) {
177
+ for (var i = 0; i < ranges.length; i++)
178
+ if (ranges[i].from() == from && ranges[i].to() == to) return true
179
+ return false
180
+ }
181
+
182
+ var mirror = "(){}[]";
183
+ function selectBetweenBrackets(cm) {
184
+ var ranges = cm.listSelections(), newRanges = []
185
+ for (var i = 0; i < ranges.length; i++) {
186
+ var range = ranges[i], pos = range.head, opening = cm.scanForBracket(pos, -1);
187
+ if (!opening) return false;
188
+ for (;;) {
189
+ var closing = cm.scanForBracket(pos, 1);
190
+ if (!closing) return false;
191
+ if (closing.ch == mirror.charAt(mirror.indexOf(opening.ch) + 1)) {
192
+ var startPos = Pos(opening.pos.line, opening.pos.ch + 1);
193
+ if (CodeMirror.cmpPos(startPos, range.from()) == 0 &&
194
+ CodeMirror.cmpPos(closing.pos, range.to()) == 0) {
195
+ opening = cm.scanForBracket(opening.pos, -1);
196
+ if (!opening) return false;
197
+ } else {
198
+ newRanges.push({anchor: startPos, head: closing.pos});
199
+ break;
200
+ }
201
+ }
202
+ pos = Pos(closing.pos.line, closing.pos.ch + 1);
203
+ }
204
+ }
205
+ cm.setSelections(newRanges);
206
+ return true;
207
+ }
208
+
209
+ cmds.selectScope = function(cm) {
210
+ selectBetweenBrackets(cm) || cm.execCommand("selectAll");
211
+ };
212
+ cmds.selectBetweenBrackets = function(cm) {
213
+ if (!selectBetweenBrackets(cm)) return CodeMirror.Pass;
214
+ };
215
+
216
+ cmds.goToBracket = function(cm) {
217
+ cm.extendSelectionsBy(function(range) {
218
+ var next = cm.scanForBracket(range.head, 1);
219
+ if (next && CodeMirror.cmpPos(next.pos, range.head) != 0) return next.pos;
220
+ var prev = cm.scanForBracket(range.head, -1);
221
+ return prev && Pos(prev.pos.line, prev.pos.ch + 1) || range.head;
222
+ });
223
+ };
224
+
225
+ cmds.swapLineUp = function(cm) {
226
+ if (cm.isReadOnly()) return CodeMirror.Pass
227
+ var ranges = cm.listSelections(), linesToMove = [], at = cm.firstLine() - 1, newSels = [];
228
+ for (var i = 0; i < ranges.length; i++) {
229
+ var range = ranges[i], from = range.from().line - 1, to = range.to().line;
230
+ newSels.push({anchor: Pos(range.anchor.line - 1, range.anchor.ch),
231
+ head: Pos(range.head.line - 1, range.head.ch)});
232
+ if (range.to().ch == 0 && !range.empty()) --to;
233
+ if (from > at) linesToMove.push(from, to);
234
+ else if (linesToMove.length) linesToMove[linesToMove.length - 1] = to;
235
+ at = to;
236
+ }
237
+ cm.operation(function() {
238
+ for (var i = 0; i < linesToMove.length; i += 2) {
239
+ var from = linesToMove[i], to = linesToMove[i + 1];
240
+ var line = cm.getLine(from);
241
+ cm.replaceRange("", Pos(from, 0), Pos(from + 1, 0), "+swapLine");
242
+ if (to > cm.lastLine())
243
+ cm.replaceRange("\n" + line, Pos(cm.lastLine()), null, "+swapLine");
244
+ else
245
+ cm.replaceRange(line + "\n", Pos(to, 0), null, "+swapLine");
246
+ }
247
+ cm.setSelections(newSels);
248
+ cm.scrollIntoView();
249
+ });
250
+ };
251
+
252
+ cmds.swapLineDown = function(cm) {
253
+ if (cm.isReadOnly()) return CodeMirror.Pass
254
+ var ranges = cm.listSelections(), linesToMove = [], at = cm.lastLine() + 1;
255
+ for (var i = ranges.length - 1; i >= 0; i--) {
256
+ var range = ranges[i], from = range.to().line + 1, to = range.from().line;
257
+ if (range.to().ch == 0 && !range.empty()) from--;
258
+ if (from < at) linesToMove.push(from, to);
259
+ else if (linesToMove.length) linesToMove[linesToMove.length - 1] = to;
260
+ at = to;
261
+ }
262
+ cm.operation(function() {
263
+ for (var i = linesToMove.length - 2; i >= 0; i -= 2) {
264
+ var from = linesToMove[i], to = linesToMove[i + 1];
265
+ var line = cm.getLine(from);
266
+ if (from == cm.lastLine())
267
+ cm.replaceRange("", Pos(from - 1), Pos(from), "+swapLine");
268
+ else
269
+ cm.replaceRange("", Pos(from, 0), Pos(from + 1, 0), "+swapLine");
270
+ cm.replaceRange(line + "\n", Pos(to, 0), null, "+swapLine");
271
+ }
272
+ cm.scrollIntoView();
273
+ });
274
+ };
275
+
276
+ cmds.toggleCommentIndented = function(cm) {
277
+ cm.toggleComment({ indent: true });
278
+ }
279
+
280
+ cmds.joinLines = function(cm) {
281
+ var ranges = cm.listSelections(), joined = [];
282
+ for (var i = 0; i < ranges.length; i++) {
283
+ var range = ranges[i], from = range.from();
284
+ var start = from.line, end = range.to().line;
285
+ while (i < ranges.length - 1 && ranges[i + 1].from().line == end)
286
+ end = ranges[++i].to().line;
287
+ joined.push({start: start, end: end, anchor: !range.empty() && from});
288
+ }
289
+ cm.operation(function() {
290
+ var offset = 0, ranges = [];
291
+ for (var i = 0; i < joined.length; i++) {
292
+ var obj = joined[i];
293
+ var anchor = obj.anchor && Pos(obj.anchor.line - offset, obj.anchor.ch), head;
294
+ for (var line = obj.start; line <= obj.end; line++) {
295
+ var actual = line - offset;
296
+ if (line == obj.end) head = Pos(actual, cm.getLine(actual).length + 1);
297
+ if (actual < cm.lastLine()) {
298
+ cm.replaceRange(" ", Pos(actual), Pos(actual + 1, /^\s*/.exec(cm.getLine(actual + 1))[0].length));
299
+ ++offset;
300
+ }
301
+ }
302
+ ranges.push({anchor: anchor || head, head: head});
303
+ }
304
+ cm.setSelections(ranges, 0);
305
+ });
306
+ };
307
+
308
+ cmds.duplicateLine = function(cm) {
309
+ cm.operation(function() {
310
+ var rangeCount = cm.listSelections().length;
311
+ for (var i = 0; i < rangeCount; i++) {
312
+ var range = cm.listSelections()[i];
313
+ if (range.empty())
314
+ cm.replaceRange(cm.getLine(range.head.line) + "\n", Pos(range.head.line, 0));
315
+ else
316
+ cm.replaceRange(cm.getRange(range.from(), range.to()), range.from());
317
+ }
318
+ cm.scrollIntoView();
319
+ });
320
+ };
321
+
322
+
323
+ function sortLines(cm, caseSensitive) {
324
+ if (cm.isReadOnly()) return CodeMirror.Pass
325
+ var ranges = cm.listSelections(), toSort = [], selected;
326
+ for (var i = 0; i < ranges.length; i++) {
327
+ var range = ranges[i];
328
+ if (range.empty()) continue;
329
+ var from = range.from().line, to = range.to().line;
330
+ while (i < ranges.length - 1 && ranges[i + 1].from().line == to)
331
+ to = ranges[++i].to().line;
332
+ if (!ranges[i].to().ch) to--;
333
+ toSort.push(from, to);
334
+ }
335
+ if (toSort.length) selected = true;
336
+ else toSort.push(cm.firstLine(), cm.lastLine());
337
+
338
+ cm.operation(function() {
339
+ var ranges = [];
340
+ for (var i = 0; i < toSort.length; i += 2) {
341
+ var from = toSort[i], to = toSort[i + 1];
342
+ var start = Pos(from, 0), end = Pos(to);
343
+ var lines = cm.getRange(start, end, false);
344
+ if (caseSensitive)
345
+ lines.sort();
346
+ else
347
+ lines.sort(function(a, b) {
348
+ var au = a.toUpperCase(), bu = b.toUpperCase();
349
+ if (au != bu) { a = au; b = bu; }
350
+ return a < b ? -1 : a == b ? 0 : 1;
351
+ });
352
+ cm.replaceRange(lines, start, end);
353
+ if (selected) ranges.push({anchor: start, head: Pos(to + 1, 0)});
354
+ }
355
+ if (selected) cm.setSelections(ranges, 0);
356
+ });
357
+ }
358
+
359
+ cmds.sortLines = function(cm) { sortLines(cm, true); };
360
+ cmds.sortLinesInsensitive = function(cm) { sortLines(cm, false); };
361
+
362
+ cmds.nextBookmark = function(cm) {
363
+ var marks = cm.state.sublimeBookmarks;
364
+ if (marks) while (marks.length) {
365
+ var current = marks.shift();
366
+ var found = current.find();
367
+ if (found) {
368
+ marks.push(current);
369
+ return cm.setSelection(found.from, found.to);
370
+ }
371
+ }
372
+ };
373
+
374
+ cmds.prevBookmark = function(cm) {
375
+ var marks = cm.state.sublimeBookmarks;
376
+ if (marks) while (marks.length) {
377
+ marks.unshift(marks.pop());
378
+ var found = marks[marks.length - 1].find();
379
+ if (!found)
380
+ marks.pop();
381
+ else
382
+ return cm.setSelection(found.from, found.to);
383
+ }
384
+ };
385
+
386
+ cmds.toggleBookmark = function(cm) {
387
+ var ranges = cm.listSelections();
388
+ var marks = cm.state.sublimeBookmarks || (cm.state.sublimeBookmarks = []);
389
+ for (var i = 0; i < ranges.length; i++) {
390
+ var from = ranges[i].from(), to = ranges[i].to();
391
+ var found = ranges[i].empty() ? cm.findMarksAt(from) : cm.findMarks(from, to);
392
+ for (var j = 0; j < found.length; j++) {
393
+ if (found[j].sublimeBookmark) {
394
+ found[j].clear();
395
+ for (var k = 0; k < marks.length; k++)
396
+ if (marks[k] == found[j])
397
+ marks.splice(k--, 1);
398
+ break;
399
+ }
400
+ }
401
+ if (j == found.length)
402
+ marks.push(cm.markText(from, to, {sublimeBookmark: true, clearWhenEmpty: false}));
403
+ }
404
+ };
405
+
406
+ cmds.clearBookmarks = function(cm) {
407
+ var marks = cm.state.sublimeBookmarks;
408
+ if (marks) for (var i = 0; i < marks.length; i++) marks[i].clear();
409
+ marks.length = 0;
410
+ };
411
+
412
+ cmds.selectBookmarks = function(cm) {
413
+ var marks = cm.state.sublimeBookmarks, ranges = [];
414
+ if (marks) for (var i = 0; i < marks.length; i++) {
415
+ var found = marks[i].find();
416
+ if (!found)
417
+ marks.splice(i--, 0);
418
+ else
419
+ ranges.push({anchor: found.from, head: found.to});
420
+ }
421
+ if (ranges.length)
422
+ cm.setSelections(ranges, 0);
423
+ };
424
+
425
+ function modifyWordOrSelection(cm, mod) {
426
+ cm.operation(function() {
427
+ var ranges = cm.listSelections(), indices = [], replacements = [];
428
+ for (var i = 0; i < ranges.length; i++) {
429
+ var range = ranges[i];
430
+ if (range.empty()) { indices.push(i); replacements.push(""); }
431
+ else replacements.push(mod(cm.getRange(range.from(), range.to())));
432
+ }
433
+ cm.replaceSelections(replacements, "around", "case");
434
+ for (var i = indices.length - 1, at; i >= 0; i--) {
435
+ var range = ranges[indices[i]];
436
+ if (at && CodeMirror.cmpPos(range.head, at) > 0) continue;
437
+ var word = wordAt(cm, range.head);
438
+ at = word.from;
439
+ cm.replaceRange(mod(word.word), word.from, word.to);
440
+ }
441
+ });
442
+ }
443
+
444
+ cmds.smartBackspace = function(cm) {
445
+ if (cm.somethingSelected()) return CodeMirror.Pass;
446
+
447
+ cm.operation(function() {
448
+ var cursors = cm.listSelections();
449
+ var indentUnit = cm.getOption("indentUnit");
450
+
451
+ for (var i = cursors.length - 1; i >= 0; i--) {
452
+ var cursor = cursors[i].head;
453
+ var toStartOfLine = cm.getRange({line: cursor.line, ch: 0}, cursor);
454
+ var column = CodeMirror.countColumn(toStartOfLine, null, cm.getOption("tabSize"));
455
+
456
+ // Delete by one character by default
457
+ var deletePos = cm.findPosH(cursor, -1, "char", false);
458
+
459
+ if (toStartOfLine && !/\S/.test(toStartOfLine) && column % indentUnit == 0) {
460
+ var prevIndent = new Pos(cursor.line,
461
+ CodeMirror.findColumn(toStartOfLine, column - indentUnit, indentUnit));
462
+
463
+ // Smart delete only if we found a valid prevIndent location
464
+ if (prevIndent.ch != cursor.ch) deletePos = prevIndent;
465
+ }
466
+
467
+ cm.replaceRange("", deletePos, cursor, "+delete");
468
+ }
469
+ });
470
+ };
471
+
472
+ cmds.delLineRight = function(cm) {
473
+ cm.operation(function() {
474
+ var ranges = cm.listSelections();
475
+ for (var i = ranges.length - 1; i >= 0; i--)
476
+ cm.replaceRange("", ranges[i].anchor, Pos(ranges[i].to().line), "+delete");
477
+ cm.scrollIntoView();
478
+ });
479
+ };
480
+
481
+ cmds.upcaseAtCursor = function(cm) {
482
+ modifyWordOrSelection(cm, function(str) { return str.toUpperCase(); });
483
+ };
484
+ cmds.downcaseAtCursor = function(cm) {
485
+ modifyWordOrSelection(cm, function(str) { return str.toLowerCase(); });
486
+ };
487
+
488
+ cmds.setSublimeMark = function(cm) {
489
+ if (cm.state.sublimeMark) cm.state.sublimeMark.clear();
490
+ cm.state.sublimeMark = cm.setBookmark(cm.getCursor());
491
+ };
492
+ cmds.selectToSublimeMark = function(cm) {
493
+ var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
494
+ if (found) cm.setSelection(cm.getCursor(), found);
495
+ };
496
+ cmds.deleteToSublimeMark = function(cm) {
497
+ var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
498
+ if (found) {
499
+ var from = cm.getCursor(), to = found;
500
+ if (CodeMirror.cmpPos(from, to) > 0) { var tmp = to; to = from; from = tmp; }
501
+ cm.state.sublimeKilled = cm.getRange(from, to);
502
+ cm.replaceRange("", from, to);
503
+ }
504
+ };
505
+ cmds.swapWithSublimeMark = function(cm) {
506
+ var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
507
+ if (found) {
508
+ cm.state.sublimeMark.clear();
509
+ cm.state.sublimeMark = cm.setBookmark(cm.getCursor());
510
+ cm.setCursor(found);
511
+ }
512
+ };
513
+ cmds.sublimeYank = function(cm) {
514
+ if (cm.state.sublimeKilled != null)
515
+ cm.replaceSelection(cm.state.sublimeKilled, null, "paste");
516
+ };
517
+
518
+ cmds.showInCenter = function(cm) {
519
+ var pos = cm.cursorCoords(null, "local");
520
+ cm.scrollTo(null, (pos.top + pos.bottom) / 2 - cm.getScrollInfo().clientHeight / 2);
521
+ };
522
+
523
+ function getTarget(cm) {
524
+ var from = cm.getCursor("from"), to = cm.getCursor("to");
525
+ if (CodeMirror.cmpPos(from, to) == 0) {
526
+ var word = wordAt(cm, from);
527
+ if (!word.word) return;
528
+ from = word.from;
529
+ to = word.to;
530
+ }
531
+ return {from: from, to: to, query: cm.getRange(from, to), word: word};
532
+ }
533
+
534
+ function findAndGoTo(cm, forward) {
535
+ var target = getTarget(cm);
536
+ if (!target) return;
537
+ var query = target.query;
538
+ var cur = cm.getSearchCursor(query, forward ? target.to : target.from);
539
+
540
+ if (forward ? cur.findNext() : cur.findPrevious()) {
541
+ cm.setSelection(cur.from(), cur.to());
542
+ } else {
543
+ cur = cm.getSearchCursor(query, forward ? Pos(cm.firstLine(), 0)
544
+ : cm.clipPos(Pos(cm.lastLine())));
545
+ if (forward ? cur.findNext() : cur.findPrevious())
546
+ cm.setSelection(cur.from(), cur.to());
547
+ else if (target.word)
548
+ cm.setSelection(target.from, target.to);
549
+ }
550
+ };
551
+ cmds.findUnder = function(cm) { findAndGoTo(cm, true); };
552
+ cmds.findUnderPrevious = function(cm) { findAndGoTo(cm,false); };
553
+ cmds.findAllUnder = function(cm) {
554
+ var target = getTarget(cm);
555
+ if (!target) return;
556
+ var cur = cm.getSearchCursor(target.query);
557
+ var matches = [];
558
+ var primaryIndex = -1;
559
+ while (cur.findNext()) {
560
+ matches.push({anchor: cur.from(), head: cur.to()});
561
+ if (cur.from().line <= target.from.line && cur.from().ch <= target.from.ch)
562
+ primaryIndex++;
563
+ }
564
+ cm.setSelections(matches, primaryIndex);
565
+ };
566
+
567
+
568
+ var keyMap = CodeMirror.keyMap;
569
+ keyMap.macSublime = {
570
+ "Cmd-Left": "goLineStartSmart",
571
+ "Shift-Tab": "indentLess",
572
+ "Shift-Ctrl-K": "deleteLine",
573
+ "Alt-Q": "wrapLines",
574
+ "Ctrl-Left": "goSubwordLeft",
575
+ "Ctrl-Right": "goSubwordRight",
576
+ "Ctrl-Alt-Up": "scrollLineUp",
577
+ "Ctrl-Alt-Down": "scrollLineDown",
578
+ "Cmd-L": "selectLine",
579
+ "Shift-Cmd-L": "splitSelectionByLine",
580
+ "Esc": "singleSelectionTop",
581
+ "Cmd-Enter": "insertLineAfter",
582
+ "Shift-Cmd-Enter": "insertLineBefore",
583
+ "Cmd-D": "selectNextOccurrence",
584
+ "Shift-Cmd-Space": "selectScope",
585
+ "Shift-Cmd-M": "selectBetweenBrackets",
586
+ "Cmd-M": "goToBracket",
587
+ "Cmd-Ctrl-Up": "swapLineUp",
588
+ "Cmd-Ctrl-Down": "swapLineDown",
589
+ "Cmd-/": "toggleCommentIndented",
590
+ "Cmd-J": "joinLines",
591
+ "Shift-Cmd-D": "duplicateLine",
592
+ "F9": "sortLines",
593
+ "Cmd-F9": "sortLinesInsensitive",
594
+ "F2": "nextBookmark",
595
+ "Shift-F2": "prevBookmark",
596
+ "Cmd-F2": "toggleBookmark",
597
+ "Shift-Cmd-F2": "clearBookmarks",
598
+ "Alt-F2": "selectBookmarks",
599
+ "Backspace": "smartBackspace",
600
+ "Cmd-K Cmd-K": "delLineRight",
601
+ "Cmd-K Cmd-U": "upcaseAtCursor",
602
+ "Cmd-K Cmd-L": "downcaseAtCursor",
603
+ "Cmd-K Cmd-Space": "setSublimeMark",
604
+ "Cmd-K Cmd-A": "selectToSublimeMark",
605
+ "Cmd-K Cmd-W": "deleteToSublimeMark",
606
+ "Cmd-K Cmd-X": "swapWithSublimeMark",
607
+ "Cmd-K Cmd-Y": "sublimeYank",
608
+ "Cmd-K Cmd-C": "showInCenter",
609
+ "Cmd-K Cmd-G": "clearBookmarks",
610
+ "Cmd-K Cmd-Backspace": "delLineLeft",
611
+ "Cmd-K Cmd-0": "unfoldAll",
612
+ "Cmd-K Cmd-J": "unfoldAll",
613
+ "Ctrl-Shift-Up": "addCursorToPrevLine",
614
+ "Ctrl-Shift-Down": "addCursorToNextLine",
615
+ "Cmd-F3": "findUnder",
616
+ "Shift-Cmd-F3": "findUnderPrevious",
617
+ "Alt-F3": "findAllUnder",
618
+ "Shift-Cmd-[": "fold",
619
+ "Shift-Cmd-]": "unfold",
620
+ "Cmd-I": "findIncremental",
621
+ "Shift-Cmd-I": "findIncrementalReverse",
622
+ "Cmd-H": "replace",
623
+ "F3": "findNext",
624
+ "Shift-F3": "findPrev",
625
+ "fallthrough": "macDefault"
626
+ };
627
+ CodeMirror.normalizeKeyMap(keyMap.macSublime);
628
+
629
+ keyMap.pcSublime = {
630
+ "Shift-Tab": "indentLess",
631
+ "Shift-Ctrl-K": "deleteLine",
632
+ "Alt-Q": "wrapLines",
633
+ "Ctrl-T": "transposeChars",
634
+ "Alt-Left": "goSubwordLeft",
635
+ "Alt-Right": "goSubwordRight",
636
+ "Ctrl-Up": "scrollLineUp",
637
+ "Ctrl-Down": "scrollLineDown",
638
+ "Ctrl-L": "selectLine",
639
+ "Shift-Ctrl-L": "splitSelectionByLine",
640
+ "Esc": "singleSelectionTop",
641
+ "Ctrl-Enter": "insertLineAfter",
642
+ "Shift-Ctrl-Enter": "insertLineBefore",
643
+ "Ctrl-D": "selectNextOccurrence",
644
+ "Shift-Ctrl-Space": "selectScope",
645
+ "Shift-Ctrl-M": "selectBetweenBrackets",
646
+ "Ctrl-M": "goToBracket",
647
+ "Shift-Ctrl-Up": "swapLineUp",
648
+ "Shift-Ctrl-Down": "swapLineDown",
649
+ "Ctrl-/": "toggleCommentIndented",
650
+ "Ctrl-J": "joinLines",
651
+ "Shift-Ctrl-D": "duplicateLine",
652
+ "F9": "sortLines",
653
+ "Ctrl-F9": "sortLinesInsensitive",
654
+ "F2": "nextBookmark",
655
+ "Shift-F2": "prevBookmark",
656
+ "Ctrl-F2": "toggleBookmark",
657
+ "Shift-Ctrl-F2": "clearBookmarks",
658
+ "Alt-F2": "selectBookmarks",
659
+ "Backspace": "smartBackspace",
660
+ "Ctrl-K Ctrl-K": "delLineRight",
661
+ "Ctrl-K Ctrl-U": "upcaseAtCursor",
662
+ "Ctrl-K Ctrl-L": "downcaseAtCursor",
663
+ "Ctrl-K Ctrl-Space": "setSublimeMark",
664
+ "Ctrl-K Ctrl-A": "selectToSublimeMark",
665
+ "Ctrl-K Ctrl-W": "deleteToSublimeMark",
666
+ "Ctrl-K Ctrl-X": "swapWithSublimeMark",
667
+ "Ctrl-K Ctrl-Y": "sublimeYank",
668
+ "Ctrl-K Ctrl-C": "showInCenter",
669
+ "Ctrl-K Ctrl-G": "clearBookmarks",
670
+ "Ctrl-K Ctrl-Backspace": "delLineLeft",
671
+ "Ctrl-K Ctrl-0": "unfoldAll",
672
+ "Ctrl-K Ctrl-J": "unfoldAll",
673
+ "Ctrl-Alt-Up": "addCursorToPrevLine",
674
+ "Ctrl-Alt-Down": "addCursorToNextLine",
675
+ "Ctrl-F3": "findUnder",
676
+ "Shift-Ctrl-F3": "findUnderPrevious",
677
+ "Alt-F3": "findAllUnder",
678
+ "Shift-Ctrl-[": "fold",
679
+ "Shift-Ctrl-]": "unfold",
680
+ "Ctrl-I": "findIncremental",
681
+ "Shift-Ctrl-I": "findIncrementalReverse",
682
+ "Ctrl-H": "replace",
683
+ "F3": "findNext",
684
+ "Shift-F3": "findPrev",
685
+ "fallthrough": "pcDefault"
686
+ };
687
+ CodeMirror.normalizeKeyMap(keyMap.pcSublime);
688
+
689
+ var mac = keyMap.default == keyMap.macDefault;
690
+ keyMap.sublime = mac ? keyMap.macSublime : keyMap.pcSublime;
691
+ });