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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/installer/core/.gitignore +88 -0
- data/installer/core/app/views/admin/layouts/_sidebar.html.haml +2 -2
- data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/app/frontend_controller.rb +0 -1
- data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/view.rb +1 -1
- data/installer/core/rockets/keppler_frontend/config/data/views.yml +1 -1
- data/lib/keppler/version.rb +1 -1
- data/testing-with-2.1.18/.gitignore +88 -0
- data/testing-with-2.1.18/.ruby-version +1 -0
- data/testing-with-2.1.18/Gemfile +149 -0
- data/testing-with-2.1.18/Gemfile.lock +645 -0
- data/testing-with-2.1.18/Guardfile +18 -0
- data/testing-with-2.1.18/LICENSE +674 -0
- data/testing-with-2.1.18/README.md +134 -0
- data/testing-with-2.1.18/Rakefile +6 -0
- data/testing-with-2.1.18/_config.yml +1 -0
- data/testing-with-2.1.18/app/assets/images/.keep +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/astronauta_keppler.svg +123 -0
- data/testing-with-2.1.18/app/assets/images/admin/avatar_keppler.svg +100 -0
- data/testing-with-2.1.18/app/assets/images/admin/en.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/es.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/favicon.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/image_default.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/logo.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/logo2.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/profile-menu.jpg +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/search.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/slice-icon-orange.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/slice-icon.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/slice.png +0 -0
- data/testing-with-2.1.18/app/assets/images/admin/slice_white.png +0 -0
- data/testing-with-2.1.18/app/assets/images/app/Cohete_nubes_new.png +0 -0
- data/testing-with-2.1.18/app/assets/images/app/Home_Keppler.png +0 -0
- data/testing-with-2.1.18/app/assets/images/app/Home_Keppler2.png +0 -0
- data/testing-with-2.1.18/app/assets/images/app/fondo.svg +19 -0
- data/testing-with-2.1.18/app/assets/images/app/keppler-front.png +0 -0
- data/testing-with-2.1.18/app/assets/images/app/slice-front.png +0 -0
- data/testing-with-2.1.18/app/assets/images/app/slice.png +0 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/application.coffee +25 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-colorpicker.js +1322 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/fileinput.js +4463 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/locales/LANG.js +100 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/locales/es.js +100 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/piexif.js +2471 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/piexif.min.js +1 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/purify.js +812 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/purify.min.js +1 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/sortable.js +1590 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/bootstrap-file-input/plugins/sortable.min.js +1 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/code_editor.js +94 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/comment/comment.js +209 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/comment/continuecomment.js +78 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/dialog/dialog.css +32 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/dialog/dialog.js +161 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/autorefresh.js +47 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/fullscreen.css +6 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/fullscreen.js +41 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/panel.js +123 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/placeholder.js +63 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/display/rulers.js +51 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/closebrackets.js +194 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/closetag.js +175 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/continuelist.js +89 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/matchbrackets.js +145 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/matchtags.js +66 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/edit/trailingspace.js +27 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/brace-fold.js +105 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/comment-fold.js +59 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/foldcode.js +152 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/foldgutter.css +20 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/foldgutter.js +146 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/indent-fold.js +48 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/markdown-fold.js +49 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/fold/xml-fold.js +184 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/anyword-hint.js +41 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/css-hint.js +60 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/html-hint.js +348 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/javascript-hint.js +157 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/show-hint.css +36 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/show-hint.js +433 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/sql-hint.js +299 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/hint/xml-hint.js +110 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/loadmode.js +64 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/multiplex.js +131 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/overlay.js +90 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/mode/simple.js +216 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/annotatescrollbar.js +122 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/scrollpastend.js +48 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/simplescrollbars.css +66 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/scroll/simplescrollbars.js +152 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/jump-to-line.js +49 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/match-highlighter.js +165 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/matchesonscrollbar.css +8 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/matchesonscrollbar.js +97 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/search.js +252 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/addon/search/searchcursor.js +293 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/codemirror.js +9683 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/keymap/sublime.js +691 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/css.js +832 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/gss.html +103 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/index.html +75 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/less.html +152 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/css/scss.html +157 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/haml/haml.js +161 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/haml/index.html +79 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlembedded/htmlembedded.js +37 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlembedded/index.html +60 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlmixed/htmlmixed.js +152 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/htmlmixed/index.html +100 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/index.html +114 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/javascript.js +896 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/json-ld.html +72 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/javascript/typescript.html +61 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/ruby/index.html +183 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/ruby/ruby.js +296 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/vue/index.html +69 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/vue/vue.js +77 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/xml/index.html +61 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/xml/xml.js +402 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml-frontmatter/index.html +121 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +68 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml/index.html +80 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/codemirror/mode/yaml/yaml.js +119 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/file_uploader.coffee +152 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/img_preview.js +32 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/jscolor.js +1855 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/main.coffee +58 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/notification.js +14 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/ruby_console.js +14 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/sidebar.js +24 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/sort.coffee +8 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/swal.js +39 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/sweetalert2/delete-confirm.js +118 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/sweetalert2/sweetalert2.all.min.js +2 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/switch.js +6 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/tooltips.coffee +4 -0
- data/testing-with-2.1.18/app/assets/javascripts/admin/upload_records.coffee +8 -0
- data/testing-with-2.1.18/app/assets/javascripts/app/application.js.coffee +9 -0
- data/testing-with-2.1.18/app/assets/javascripts/app/google_analytics.js.coffee +5 -0
- data/testing-with-2.1.18/app/assets/javascripts/ckeditor/config.js +130 -0
- data/testing-with-2.1.18/app/assets/javascripts/errors/application.js.coffee +1 -0
- data/testing-with-2.1.18/app/assets/javascripts/errors/errors.js +113 -0
- data/testing-with-2.1.18/app/assets/javascripts/vue_admin/index.js +111 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/application.scss +48 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/fileinput-rtl.scss +133 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/fileinput.scss +760 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/themes/explorer-fa/theme.scss +213 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/themes/explorer-fas/theme.scss +213 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/bootstrap-file-input/themes/explorer/theme.scss +213 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/comment/comment.js +209 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/comment/continuecomment.js +78 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/dialog/dialog.css +32 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/dialog/dialog.js +161 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/autorefresh.js +47 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/fullscreen.css +6 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/fullscreen.js +41 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/panel.js +123 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/placeholder.js +63 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/display/rulers.js +51 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/closebrackets.js +194 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/closetag.js +175 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/continuelist.js +89 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/matchbrackets.js +145 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/matchtags.js +66 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/edit/trailingspace.js +27 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/brace-fold.js +105 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/comment-fold.js +59 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/foldcode.js +152 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/foldgutter.css +20 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/foldgutter.js +146 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/indent-fold.js +48 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/markdown-fold.js +49 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/fold/xml-fold.js +184 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/anyword-hint.js +41 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/css-hint.js +60 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/html-hint.js +348 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/javascript-hint.js +157 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/show-hint.css +36 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/show-hint.js +433 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/sql-hint.js +299 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/hint/xml-hint.js +110 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/annotatescrollbar.js +122 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/scrollpastend.js +48 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/simplescrollbars.css +66 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/scroll/simplescrollbars.js +152 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/jump-to-line.js +49 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/match-highlighter.js +165 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/matchesonscrollbar.css +8 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/matchesonscrollbar.js +97 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/search.js +252 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/searchcursor.js +293 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/codemirror.css +366 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/theme/monokai.css +41 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/components/layouts/_footer.scss +5 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/components/layouts/_settings.scss +51 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/components/navigation/_navbar.scss +187 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +207 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/components/navigation/_turbolinks.scss +4 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/components/paginator/_paginator.scss +53 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/ZXuke1cDvLCKLDcimxB44_lu.woff2 +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/boxicons.css +2918 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts.css +8 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.eot +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.ttf +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.woff +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/Simple-Line-Icons.woff2 +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.eot +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.svg +808 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.ttf +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.woff +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/fonts/boxicons.woff2 +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/fonts-and-icons/icons.css +778 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_appearance.scss +5 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_bootstrap-colorpicker.scss +269 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_customize.scss +22 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_datepicker.scss +1086 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_devise.scss +189 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_files.scss +229 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_form.scss +190 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_index.scss +466 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_listing.scss +40 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_preloader.scss +224 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_rockets.scss +13 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_roles.scss +3 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_search.scss +244 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_show.scss +23 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_switchs.scss +143 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_themes.scss +45 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_timepicker.scss +14 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/pages/_user.scss +6 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_base.scss +65 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_mixins.scss +26 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_theme.scss +124 -0
- data/testing-with-2.1.18/app/assets/stylesheets/admin/utils/_variables.scss +109 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/application.scss +30 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/base/_base_project.scss +17 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/base/_typography.scss +1 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/components/_buttons.scss +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/components/_inputs.scss +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/components/_navbar.scss +21 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/layout/_container.scss +0 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/layout/_footer.scss +15 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/layout/_header.scss +39 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/pages/_front.sass +83 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_bootstrap_override.scss +37 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_font_awesome.scss +2 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_keppler.scss +161 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/plugins/_npogress.scss +2 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/utils/_mixins.scss +18 -0
- data/testing-with-2.1.18/app/assets/stylesheets/app/utils/_variables.scss +28 -0
- data/testing-with-2.1.18/app/assets/stylesheets/errors/application.scss +3 -0
- data/testing-with-2.1.18/app/assets/stylesheets/errors/errors.scss +161 -0
- data/testing-with-2.1.18/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +141 -0
- data/testing-with-2.1.18/app/assets/stylesheets/vendor/sweetalert2/sweetalert2.scss +11 -0
- data/testing-with-2.1.18/app/controllers/admin/admin_controller.rb +95 -0
- data/testing-with-2.1.18/app/controllers/admin/meta_tags_controller.rb +118 -0
- data/testing-with-2.1.18/app/controllers/admin/permissions_controller.rb +55 -0
- data/testing-with-2.1.18/app/controllers/admin/rockets_controller.rb +95 -0
- data/testing-with-2.1.18/app/controllers/admin/roles_controller.rb +124 -0
- data/testing-with-2.1.18/app/controllers/admin/scripts_controller.rb +104 -0
- data/testing-with-2.1.18/app/controllers/admin/seos_controller.rb +31 -0
- data/testing-with-2.1.18/app/controllers/admin/settings_controller.rb +131 -0
- data/testing-with-2.1.18/app/controllers/admin/users_controller.rb +122 -0
- data/testing-with-2.1.18/app/controllers/app/app_controller.rb +38 -0
- data/testing-with-2.1.18/app/controllers/app/front_controller.rb +8 -0
- data/testing-with-2.1.18/app/controllers/application_controller.rb +151 -0
- data/testing-with-2.1.18/app/controllers/concerns/.keep +0 -0
- data/testing-with-2.1.18/app/controllers/concerns/devise_params.rb +33 -0
- data/testing-with-2.1.18/app/controllers/concerns/mailer_config.rb +37 -0
- data/testing-with-2.1.18/app/controllers/concerns/object_query.rb +50 -0
- data/testing-with-2.1.18/app/controllers/concerns/settings.rb +105 -0
- data/testing-with-2.1.18/app/controllers/devise/sessions_controller.rb +108 -0
- data/testing-with-2.1.18/app/controllers/errors_controller.rb +30 -0
- data/testing-with-2.1.18/app/helpers/admin_helper.rb +138 -0
- data/testing-with-2.1.18/app/helpers/application_helper.rb +33 -0
- data/testing-with-2.1.18/app/helpers/fronts_helper.rb +38 -0
- data/testing-with-2.1.18/app/helpers/rockets_helper.rb +8 -0
- data/testing-with-2.1.18/app/helpers/roles_helper.rb +5 -0
- data/testing-with-2.1.18/app/helpers/scaffolds_helper.rb +5 -0
- data/testing-with-2.1.18/app/inputs/keppler_boolean_input.rb +52 -0
- data/testing-with-2.1.18/app/inputs/keppler_file_input.rb +124 -0
- data/testing-with-2.1.18/app/mailers/.keep +0 -0
- data/testing-with-2.1.18/app/mailers/application_mailer.rb +42 -0
- data/testing-with-2.1.18/app/models/.keep +0 -0
- data/testing-with-2.1.18/app/models/appearance.rb +7 -0
- data/testing-with-2.1.18/app/models/application_record.rb +6 -0
- data/testing-with-2.1.18/app/models/concerns/.keep +0 -0
- data/testing-with-2.1.18/app/models/concerns/activity_history.rb +11 -0
- data/testing-with-2.1.18/app/models/concerns/clone_record.rb +14 -0
- data/testing-with-2.1.18/app/models/concerns/downloadable.rb +16 -0
- data/testing-with-2.1.18/app/models/concerns/searchable.rb +27 -0
- data/testing-with-2.1.18/app/models/concerns/sortable.rb +13 -0
- data/testing-with-2.1.18/app/models/concerns/uploadable.rb +13 -0
- data/testing-with-2.1.18/app/models/front.rb +5 -0
- data/testing-with-2.1.18/app/models/google_analytics_setting.rb +6 -0
- data/testing-with-2.1.18/app/models/meta_tag.rb +54 -0
- data/testing-with-2.1.18/app/models/permission.rb +6 -0
- data/testing-with-2.1.18/app/models/rocket.rb +105 -0
- data/testing-with-2.1.18/app/models/role.rb +134 -0
- data/testing-with-2.1.18/app/models/script.rb +21 -0
- data/testing-with-2.1.18/app/models/seo.rb +49 -0
- data/testing-with-2.1.18/app/models/setting.rb +19 -0
- data/testing-with-2.1.18/app/models/smtp_setting.rb +7 -0
- data/testing-with-2.1.18/app/models/social_account.rb +6 -0
- data/testing-with-2.1.18/app/models/user.rb +75 -0
- data/testing-with-2.1.18/app/policies/application_policy.rb +18 -0
- data/testing-with-2.1.18/app/policies/controller_policy.rb +59 -0
- data/testing-with-2.1.18/app/policies/meta_tag_policy.rb +11 -0
- data/testing-with-2.1.18/app/policies/permission_policy.rb +23 -0
- data/testing-with-2.1.18/app/policies/rocket_policy.rb +11 -0
- data/testing-with-2.1.18/app/policies/role_policy.rb +31 -0
- data/testing-with-2.1.18/app/policies/script_policy.rb +11 -0
- data/testing-with-2.1.18/app/policies/seo_policy.rb +23 -0
- data/testing-with-2.1.18/app/policies/setting_policy.rb +15 -0
- data/testing-with-2.1.18/app/policies/user_policy.rb +19 -0
- data/testing-with-2.1.18/app/services/admin/appearance_service.rb +49 -0
- data/testing-with-2.1.18/app/services/admin/git_handler.rb +28 -0
- data/testing-with-2.1.18/app/uploaders/attachment_uploader.rb +61 -0
- data/testing-with-2.1.18/app/uploaders/ckeditor_attachment_file_uploader.rb +38 -0
- data/testing-with-2.1.18/app/uploaders/ckeditor_picture_uploader.rb +49 -0
- data/testing-with-2.1.18/app/uploaders/template_uploader.rb +44 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_footer.html.haml +0 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_git_info.html.haml +13 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_head.html.haml +7 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_keppler_boolean_script.haml +12 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_listing_preloader.haml +4 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_messages.html.haml +4 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_navigation.html.haml +59 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_preloader.html.haml +14 -0
- data/testing-with-2.1.18/app/views/admin/layouts/_sidebar.html.haml +83 -0
- data/testing-with-2.1.18/app/views/admin/layouts/application.html.haml +23 -0
- data/testing-with-2.1.18/app/views/admin/layouts/index/remote_messages.js.haml +9 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/_description.html.haml +13 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/_form.html.haml +35 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/_listing.html.haml +40 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/edit.html.haml +2 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/index.html.haml +69 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/new.html.haml +2 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/reload.js.haml +5 -0
- data/testing-with-2.1.18/app/views/admin/meta_tags/show.html.haml +28 -0
- data/testing-with-2.1.18/app/views/admin/permissions/_switch.html.haml +13 -0
- data/testing-with-2.1.18/app/views/admin/permissions/add.html.haml +95 -0
- data/testing-with-2.1.18/app/views/admin/permissions/create.html.haml +0 -0
- data/testing-with-2.1.18/app/views/admin/permissions/create.js.erb +2 -0
- data/testing-with-2.1.18/app/views/admin/permissions/show.js.erb +2 -0
- data/testing-with-2.1.18/app/views/admin/permissions/toggle_permissions.js.erb +6 -0
- data/testing-with-2.1.18/app/views/admin/rockets/_create_rocket.haml +61 -0
- data/testing-with-2.1.18/app/views/admin/rockets/_install_rocket.haml +28 -0
- data/testing-with-2.1.18/app/views/admin/rockets/rockets.haml +54 -0
- data/testing-with-2.1.18/app/views/admin/roles/_description.html.haml +13 -0
- data/testing-with-2.1.18/app/views/admin/roles/_form.html.haml +27 -0
- data/testing-with-2.1.18/app/views/admin/roles/_listing.html.haml +42 -0
- data/testing-with-2.1.18/app/views/admin/roles/_switch.html.haml +24 -0
- data/testing-with-2.1.18/app/views/admin/roles/edit.html.haml +1 -0
- data/testing-with-2.1.18/app/views/admin/roles/index.html.haml +64 -0
- data/testing-with-2.1.18/app/views/admin/roles/new.html.haml +1 -0
- data/testing-with-2.1.18/app/views/admin/roles/reload.js.haml +5 -0
- data/testing-with-2.1.18/app/views/admin/roles/show.html.haml +29 -0
- data/testing-with-2.1.18/app/views/admin/scripts/_description.html.haml +13 -0
- data/testing-with-2.1.18/app/views/admin/scripts/_form.html.haml +30 -0
- data/testing-with-2.1.18/app/views/admin/scripts/_listing.html.haml +40 -0
- data/testing-with-2.1.18/app/views/admin/scripts/edit.html.haml +1 -0
- data/testing-with-2.1.18/app/views/admin/scripts/index.html.haml +70 -0
- data/testing-with-2.1.18/app/views/admin/scripts/new.html.haml +1 -0
- data/testing-with-2.1.18/app/views/admin/scripts/reload.js.haml +5 -0
- data/testing-with-2.1.18/app/views/admin/scripts/show.html.haml +28 -0
- data/testing-with-2.1.18/app/views/admin/seos/robots.html.haml +35 -0
- data/testing-with-2.1.18/app/views/admin/seos/sitemap.html.haml +36 -0
- data/testing-with-2.1.18/app/views/admin/settings/_form.html.haml +10 -0
- data/testing-with-2.1.18/app/views/admin/settings/components/_preview.html.haml +30 -0
- data/testing-with-2.1.18/app/views/admin/settings/edit.html.haml +4 -0
- data/testing-with-2.1.18/app/views/admin/settings/fields/_appearance.html.haml +64 -0
- data/testing-with-2.1.18/app/views/admin/settings/fields/_basic_information.html.haml +40 -0
- data/testing-with-2.1.18/app/views/admin/settings/fields/_email_setting.html.haml +18 -0
- data/testing-with-2.1.18/app/views/admin/settings/fields/_google_analytics_setting.html.haml +21 -0
- data/testing-with-2.1.18/app/views/admin/settings/fields/_social_accounts.html.haml +43 -0
- data/testing-with-2.1.18/app/views/admin/users/_description.html.haml +13 -0
- data/testing-with-2.1.18/app/views/admin/users/_form.html.haml +45 -0
- data/testing-with-2.1.18/app/views/admin/users/_listing.html.haml +47 -0
- data/testing-with-2.1.18/app/views/admin/users/delete_avatar.js.haml +3 -0
- data/testing-with-2.1.18/app/views/admin/users/edit.html.haml +1 -0
- data/testing-with-2.1.18/app/views/admin/users/filter_by_role.js.erb +9 -0
- data/testing-with-2.1.18/app/views/admin/users/index.html.haml +69 -0
- data/testing-with-2.1.18/app/views/admin/users/new.html.haml +1 -0
- data/testing-with-2.1.18/app/views/admin/users/reload.js.haml +5 -0
- data/testing-with-2.1.18/app/views/admin/users/show.html.haml +34 -0
- data/testing-with-2.1.18/app/views/app/front/index.html.haml +223 -0
- data/testing-with-2.1.18/app/views/app/front/message.haml +1 -0
- data/testing-with-2.1.18/app/views/app/layouts/_footer.html.haml +3 -0
- data/testing-with-2.1.18/app/views/app/layouts/_google_analytics.html.haml +13 -0
- data/testing-with-2.1.18/app/views/app/layouts/_head.html.haml +15 -0
- data/testing-with-2.1.18/app/views/app/layouts/_messages.html.haml +6 -0
- data/testing-with-2.1.18/app/views/app/layouts/_meta_tags.html.haml +40 -0
- data/testing-with-2.1.18/app/views/app/layouts/_navigation.html.haml +13 -0
- data/testing-with-2.1.18/app/views/app/layouts/_navigation_links.html.haml +6 -0
- data/testing-with-2.1.18/app/views/app/layouts/application.html.haml +10 -0
- data/testing-with-2.1.18/app/views/application_mailer/testing.html.haml +1 -0
- data/testing-with-2.1.18/app/views/devise/confirmations/new.html.erb +16 -0
- data/testing-with-2.1.18/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
- data/testing-with-2.1.18/app/views/devise/passwords/edit.html.haml +31 -0
- data/testing-with-2.1.18/app/views/devise/passwords/new.html.haml +27 -0
- data/testing-with-2.1.18/app/views/devise/registrations/edit.html.erb +48 -0
- data/testing-with-2.1.18/app/views/devise/registrations/new.html.erb +19 -0
- data/testing-with-2.1.18/app/views/devise/sessions/new.html.haml +35 -0
- data/testing-with-2.1.18/app/views/devise/shared/_links.html.erb +21 -0
- data/testing-with-2.1.18/app/views/errors/internal_server_error.html.haml +50 -0
- data/testing-with-2.1.18/app/views/errors/not_authorized.html.haml +76 -0
- data/testing-with-2.1.18/app/views/errors/not_found.html.haml +101 -0
- data/testing-with-2.1.18/app/views/errors/unprocessable.html.haml +50 -0
- data/testing-with-2.1.18/app/views/kaminari/_first_page.html.haml +11 -0
- data/testing-with-2.1.18/app/views/kaminari/_gap.html.haml +8 -0
- data/testing-with-2.1.18/app/views/kaminari/_last_page.html.haml +11 -0
- data/testing-with-2.1.18/app/views/kaminari/_next_page.html.haml +11 -0
- data/testing-with-2.1.18/app/views/kaminari/_page.html.haml +10 -0
- data/testing-with-2.1.18/app/views/kaminari/_paginator.html.haml +18 -0
- data/testing-with-2.1.18/app/views/kaminari/_prev_page.html.haml +11 -0
- data/testing-with-2.1.18/app/views/layouts/errors/_head.html.haml +3 -0
- data/testing-with-2.1.18/app/views/layouts/errors/application.html.haml +11 -0
- data/testing-with-2.1.18/app/views/layouts/mailers/mailer.html.haml +3 -0
- data/testing-with-2.1.18/app/views/layouts/mailers/mailer.text.haml +1 -0
- data/testing-with-2.1.18/app/views/layouts/templates/application.html.haml +1 -0
- data/testing-with-2.1.18/app/views/public_activity/layout/_create.html.haml +44 -0
- data/testing-with-2.1.18/app/views/public_activity/layout/_destroy.html.haml +15 -0
- data/testing-with-2.1.18/app/views/public_activity/layout/_update.html.haml +44 -0
- data/testing-with-2.1.18/app/views/public_activity/session/_create.html.haml +13 -0
- data/testing-with-2.1.18/app/views/public_activity/session/_destroy.html.haml +13 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_first_page.html.haml +9 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_gap.html.haml +8 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_last_page.html.haml +9 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_next_page.html.haml +9 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_page.html.haml +10 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_paginator.html.haml +18 -0
- data/testing-with-2.1.18/app/views/templates/kaminari/_prev_page.html.haml +9 -0
- data/testing-with-2.1.18/bin/bundle +3 -0
- data/testing-with-2.1.18/bin/rails +4 -0
- data/testing-with-2.1.18/bin/rake +4 -0
- data/testing-with-2.1.18/bin/setup +29 -0
- data/testing-with-2.1.18/bin/spring +15 -0
- data/testing-with-2.1.18/bin/update +31 -0
- data/testing-with-2.1.18/bin/yarn +11 -0
- data/testing-with-2.1.18/config.ru +4 -0
- data/testing-with-2.1.18/config/application.rb +46 -0
- data/testing-with-2.1.18/config/attachments.yml +24 -0
- data/testing-with-2.1.18/config/boot.rb +7 -0
- data/testing-with-2.1.18/config/circleci/db_config.yml +51 -0
- data/testing-with-2.1.18/config/database.yml +25 -0
- data/testing-with-2.1.18/config/environment.rb +10 -0
- data/testing-with-2.1.18/config/environments/development.rb +61 -0
- data/testing-with-2.1.18/config/environments/production.rb +109 -0
- data/testing-with-2.1.18/config/environments/test.rb +45 -0
- data/testing-with-2.1.18/config/gaAuth/gauth_key.p12 +0 -0
- data/testing-with-2.1.18/config/initializers/assets.rb +14 -0
- data/testing-with-2.1.18/config/initializers/carrierwave.rb +12 -0
- data/testing-with-2.1.18/config/initializers/compression.rb +47 -0
- data/testing-with-2.1.18/config/initializers/cookies_serializer.rb +3 -0
- data/testing-with-2.1.18/config/initializers/date_formats.rb +2 -0
- data/testing-with-2.1.18/config/initializers/devise.rb +259 -0
- data/testing-with-2.1.18/config/initializers/filter_parameter_logging.rb +5 -0
- data/testing-with-2.1.18/config/initializers/inflections.rb +16 -0
- data/testing-with-2.1.18/config/initializers/keppler_configuration.rb +9 -0
- data/testing-with-2.1.18/config/initializers/mime_types.rb +6 -0
- data/testing-with-2.1.18/config/initializers/paginate_kaminari_configuration.rb +12 -0
- data/testing-with-2.1.18/config/initializers/ransack.rb +7 -0
- data/testing-with-2.1.18/config/initializers/rolify.rb +10 -0
- data/testing-with-2.1.18/config/initializers/route_traslator.rb +3 -0
- data/testing-with-2.1.18/config/initializers/session_store.rb +5 -0
- data/testing-with-2.1.18/config/initializers/simple_form.rb +170 -0
- data/testing-with-2.1.18/config/initializers/simple_form_bootstrap.rb +174 -0
- data/testing-with-2.1.18/config/initializers/simple_form_components.rb +61 -0
- data/testing-with-2.1.18/config/initializers/time_formats.rb +2 -0
- data/testing-with-2.1.18/config/initializers/wrap_parameters.rb +15 -0
- data/testing-with-2.1.18/config/jshint.yml +21 -0
- data/testing-with-2.1.18/config/locales/devise.en.yml +61 -0
- data/testing-with-2.1.18/config/locales/devise.es.yml +62 -0
- data/testing-with-2.1.18/config/locales/en.yml +477 -0
- data/testing-with-2.1.18/config/locales/es.yml +510 -0
- data/testing-with-2.1.18/config/locales/routes.en.yml +4 -0
- data/testing-with-2.1.18/config/locales/routes.es.yml +5 -0
- data/testing-with-2.1.18/config/locales/simple_form.en.yml +46 -0
- data/testing-with-2.1.18/config/locales/simple_form.es.yml +96 -0
- data/testing-with-2.1.18/config/locales/social_share_button.es.yml +10 -0
- data/testing-with-2.1.18/config/menu.yml +58 -0
- data/testing-with-2.1.18/config/permissions.yml +39 -0
- data/testing-with-2.1.18/config/puma.rb +56 -0
- data/testing-with-2.1.18/config/roles.yml +2 -0
- data/testing-with-2.1.18/config/routes.rb +191 -0
- data/testing-with-2.1.18/config/settings.yml +30 -0
- data/testing-with-2.1.18/config/sitemap.rb +30 -0
- data/testing-with-2.1.18/config/spring.rb +6 -0
- data/testing-with-2.1.18/db/migrate/20140812203549_devise_create_users.rb +50 -0
- data/testing-with-2.1.18/db/migrate/20140812210925_rolify_create_roles.rb +21 -0
- data/testing-with-2.1.18/db/migrate/20151221173228_create_activities.rb +23 -0
- data/testing-with-2.1.18/db/migrate/20160122201215_create_settings.rb +15 -0
- data/testing-with-2.1.18/db/migrate/20160126141856_create_smtp_settings.rb +15 -0
- data/testing-with-2.1.18/db/migrate/20160128131802_create_scripts.rb +12 -0
- data/testing-with-2.1.18/db/migrate/20160128151351_create_google_analytics_settings.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20160128193740_create_social_accounts.rb +26 -0
- data/testing-with-2.1.18/db/migrate/20160201134918_create_meta_tags.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20160201210520_create_appearances.rb +14 -0
- data/testing-with-2.1.18/db/migrate/20171225023933_create_scaffolds.rb +10 -0
- data/testing-with-2.1.18/db/migrate/20180503174351_create_permissions.rb +11 -0
- data/testing-with-2.1.18/db/migrate/20180717160308_create_keppler_frontend_views.keppler_frontend.rb +17 -0
- data/testing-with-2.1.18/db/migrate/20180730194655_create_keppler_frontend_themes.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20180802184429_create_keppler_capsules_capsules.keppler_capsules.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20180802184430_create_keppler_capsules_capsule_fields.keppler_capsules.rb +12 -0
- data/testing-with-2.1.18/db/migrate/20180806192023_create_keppler_capsules_capsule_validations.keppler_capsules.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20180806203410_create_keppler_frontend_partials.keppler_frontend.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20180807204310_create_keppler_capsules_capsule_associations.keppler_capsules.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20180813160624_create_keppler_languages_languages.keppler_languages.rb +14 -0
- data/testing-with-2.1.18/db/migrate/20180813160625_create_keppler_languages_fields.keppler_languages.rb +14 -0
- data/testing-with-2.1.18/db/migrate/20180818073305_create_active_storage_tables.active_storage.rb +26 -0
- data/testing-with-2.1.18/db/migrate/20180827120841_create_keppler_frontend_callback_functions.keppler_frontend.rb +14 -0
- data/testing-with-2.1.18/db/migrate/20180827154329_create_keppler_frontend_view_callbacks.keppler_frontend.rb +12 -0
- data/testing-with-2.1.18/db/migrate/20180827154647_add_position_to_users_table.rb +5 -0
- data/testing-with-2.1.18/db/migrate/20180830153221_create_keppler_frontend_functions.keppler_frontend.rb +14 -0
- data/testing-with-2.1.18/db/migrate/20180830153222_create_keppler_frontend_parameters.keppler_frontend.rb +13 -0
- data/testing-with-2.1.18/db/migrate/20180904144238_create_seos.rb +11 -0
- data/testing-with-2.1.18/db/seeds.rb +162 -0
- data/testing-with-2.1.18/docs/diagrams/keppler_core/config +0 -0
- data/testing-with-2.1.18/docs/diagrams/keppler_frontend/editor/resources_editor.dia +0 -0
- data/testing-with-2.1.18/docs/diagrams/keppler_frontend/views/create_view.dia +0 -0
- data/testing-with-2.1.18/docs/diagrams/keppler_frontend/views/delete_view.dia +0 -0
- data/testing-with-2.1.18/docs/diagrams/keppler_frontend/views/delete_view.dia.autosave +0 -0
- data/testing-with-2.1.18/lib/generators/install_rocket/USAGE +44 -0
- data/testing-with-2.1.18/lib/generators/install_rocket/install_rocket_generator.rb +107 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/USAGE +5 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/keppler_add_module_generator.rb +324 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/controllers/controller.rb +106 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/models/model.rb +29 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/policies/policy.rb +11 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/_description.haml +13 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/_form.haml +49 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/_listing.haml +58 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/edit.haml +1 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/index.haml +70 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/new.haml +1 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/reload.js.haml +5 -0
- data/testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/show.haml +35 -0
- data/testing-with-2.1.18/lib/generators/keppler_delete_module/USAGE +5 -0
- data/testing-with-2.1.18/lib/generators/keppler_delete_module/keppler_delete_module_generator.rb +305 -0
- data/testing-with-2.1.18/lib/generators/keppler_front/keppler_front_generator.rb +139 -0
- data/testing-with-2.1.18/lib/generators/keppler_front/templates/controllers/controller.rb +17 -0
- data/testing-with-2.1.18/lib/generators/keppler_front/templates/views/template.html.haml +225 -0
- data/testing-with-2.1.18/lib/generators/keppler_relation/keppler_relation_generator.rb +219 -0
- data/testing-with-2.1.18/lib/generators/new_rocket/USAGE +44 -0
- data/testing-with-2.1.18/lib/generators/new_rocket/new_rocket_generator.rb +258 -0
- data/testing-with-2.1.18/lib/generators/uninstall_rocket/USAGE +32 -0
- data/testing-with-2.1.18/lib/generators/uninstall_rocket/uninstall_rocket_generator.rb +140 -0
- data/testing-with-2.1.18/lib/keppler_configuration.rb +12 -0
- data/testing-with-2.1.18/lib/plugins/config/locales/en.yml +16 -0
- data/testing-with-2.1.18/lib/plugins/config/locales/es.yml +16 -0
- data/testing-with-2.1.18/lib/plugins/config/menu.yml +16 -0
- data/testing-with-2.1.18/lib/plugins/config/permissions.yml +1 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb +223 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/controllers/controller.rb +107 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/models/model.rb +29 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb +14 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/_description.haml +13 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/_form.haml +49 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/_listing.haml +58 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/edit.haml +1 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/index.haml +69 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/new.haml +1 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
- data/testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/views/show.haml +35 -0
- data/testing-with-2.1.18/lib/plugins/install.rb +151 -0
- data/testing-with-2.1.18/lib/plugins/layouts/application.html.haml +23 -0
- data/testing-with-2.1.18/lib/templates/haml/scaffold/_form.html.haml +10 -0
- metadata +564 -3
- data/installer/core/.sass-cache/c3e12133096533fa0f5c2d91446553934f6099d2/(__TEMPLATE__)c +0 -0
data/testing-with-2.1.18/app/assets/stylesheets/admin/codemirror/addon/search/matchesonscrollbar.js
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"), require("./searchcursor"), require("../scroll/annotatescrollbar"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror", "./searchcursor", "../scroll/annotatescrollbar"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineExtension("showMatchesOnScrollbar", function(query, caseFold, options) {
|
15
|
+
if (typeof options == "string") options = {className: options};
|
16
|
+
if (!options) options = {};
|
17
|
+
return new SearchAnnotation(this, query, caseFold, options);
|
18
|
+
});
|
19
|
+
|
20
|
+
function SearchAnnotation(cm, query, caseFold, options) {
|
21
|
+
this.cm = cm;
|
22
|
+
this.options = options;
|
23
|
+
var annotateOptions = {listenForChanges: false};
|
24
|
+
for (var prop in options) annotateOptions[prop] = options[prop];
|
25
|
+
if (!annotateOptions.className) annotateOptions.className = "CodeMirror-search-match";
|
26
|
+
this.annotation = cm.annotateScrollbar(annotateOptions);
|
27
|
+
this.query = query;
|
28
|
+
this.caseFold = caseFold;
|
29
|
+
this.gap = {from: cm.firstLine(), to: cm.lastLine() + 1};
|
30
|
+
this.matches = [];
|
31
|
+
this.update = null;
|
32
|
+
|
33
|
+
this.findMatches();
|
34
|
+
this.annotation.update(this.matches);
|
35
|
+
|
36
|
+
var self = this;
|
37
|
+
cm.on("change", this.changeHandler = function(_cm, change) { self.onChange(change); });
|
38
|
+
}
|
39
|
+
|
40
|
+
var MAX_MATCHES = 1000;
|
41
|
+
|
42
|
+
SearchAnnotation.prototype.findMatches = function() {
|
43
|
+
if (!this.gap) return;
|
44
|
+
for (var i = 0; i < this.matches.length; i++) {
|
45
|
+
var match = this.matches[i];
|
46
|
+
if (match.from.line >= this.gap.to) break;
|
47
|
+
if (match.to.line >= this.gap.from) this.matches.splice(i--, 1);
|
48
|
+
}
|
49
|
+
var cursor = this.cm.getSearchCursor(this.query, CodeMirror.Pos(this.gap.from, 0), this.caseFold);
|
50
|
+
var maxMatches = this.options && this.options.maxMatches || MAX_MATCHES;
|
51
|
+
while (cursor.findNext()) {
|
52
|
+
var match = {from: cursor.from(), to: cursor.to()};
|
53
|
+
if (match.from.line >= this.gap.to) break;
|
54
|
+
this.matches.splice(i++, 0, match);
|
55
|
+
if (this.matches.length > maxMatches) break;
|
56
|
+
}
|
57
|
+
this.gap = null;
|
58
|
+
};
|
59
|
+
|
60
|
+
function offsetLine(line, changeStart, sizeChange) {
|
61
|
+
if (line <= changeStart) return line;
|
62
|
+
return Math.max(changeStart, line + sizeChange);
|
63
|
+
}
|
64
|
+
|
65
|
+
SearchAnnotation.prototype.onChange = function(change) {
|
66
|
+
var startLine = change.from.line;
|
67
|
+
var endLine = CodeMirror.changeEnd(change).line;
|
68
|
+
var sizeChange = endLine - change.to.line;
|
69
|
+
if (this.gap) {
|
70
|
+
this.gap.from = Math.min(offsetLine(this.gap.from, startLine, sizeChange), change.from.line);
|
71
|
+
this.gap.to = Math.max(offsetLine(this.gap.to, startLine, sizeChange), change.from.line);
|
72
|
+
} else {
|
73
|
+
this.gap = {from: change.from.line, to: endLine + 1};
|
74
|
+
}
|
75
|
+
|
76
|
+
if (sizeChange) for (var i = 0; i < this.matches.length; i++) {
|
77
|
+
var match = this.matches[i];
|
78
|
+
var newFrom = offsetLine(match.from.line, startLine, sizeChange);
|
79
|
+
if (newFrom != match.from.line) match.from = CodeMirror.Pos(newFrom, match.from.ch);
|
80
|
+
var newTo = offsetLine(match.to.line, startLine, sizeChange);
|
81
|
+
if (newTo != match.to.line) match.to = CodeMirror.Pos(newTo, match.to.ch);
|
82
|
+
}
|
83
|
+
clearTimeout(this.update);
|
84
|
+
var self = this;
|
85
|
+
this.update = setTimeout(function() { self.updateAfterChange(); }, 250);
|
86
|
+
};
|
87
|
+
|
88
|
+
SearchAnnotation.prototype.updateAfterChange = function() {
|
89
|
+
this.findMatches();
|
90
|
+
this.annotation.update(this.matches);
|
91
|
+
};
|
92
|
+
|
93
|
+
SearchAnnotation.prototype.clear = function() {
|
94
|
+
this.cm.off("change", this.changeHandler);
|
95
|
+
this.annotation.clear();
|
96
|
+
};
|
97
|
+
});
|
@@ -0,0 +1,252 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
// Define search commands. Depends on dialog.js or another
|
5
|
+
// implementation of the openDialog method.
|
6
|
+
|
7
|
+
// Replace works a little oddly -- it will do the replace on the next
|
8
|
+
// Ctrl-G (or whatever is bound to findNext) press. You prevent a
|
9
|
+
// replace by making sure the match is no longer selected when hitting
|
10
|
+
// Ctrl-G.
|
11
|
+
|
12
|
+
(function(mod) {
|
13
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
14
|
+
mod(require("../../lib/codemirror"), require("./searchcursor"), require("../dialog/dialog"));
|
15
|
+
else if (typeof define == "function" && define.amd) // AMD
|
16
|
+
define(["../../lib/codemirror", "./searchcursor", "../dialog/dialog"], mod);
|
17
|
+
else // Plain browser env
|
18
|
+
mod(CodeMirror);
|
19
|
+
})(function(CodeMirror) {
|
20
|
+
"use strict";
|
21
|
+
|
22
|
+
function searchOverlay(query, caseInsensitive) {
|
23
|
+
if (typeof query == "string")
|
24
|
+
query = new RegExp(query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), caseInsensitive ? "gi" : "g");
|
25
|
+
else if (!query.global)
|
26
|
+
query = new RegExp(query.source, query.ignoreCase ? "gi" : "g");
|
27
|
+
|
28
|
+
return {token: function(stream) {
|
29
|
+
query.lastIndex = stream.pos;
|
30
|
+
var match = query.exec(stream.string);
|
31
|
+
if (match && match.index == stream.pos) {
|
32
|
+
stream.pos += match[0].length || 1;
|
33
|
+
return "searching";
|
34
|
+
} else if (match) {
|
35
|
+
stream.pos = match.index;
|
36
|
+
} else {
|
37
|
+
stream.skipToEnd();
|
38
|
+
}
|
39
|
+
}};
|
40
|
+
}
|
41
|
+
|
42
|
+
function SearchState() {
|
43
|
+
this.posFrom = this.posTo = this.lastQuery = this.query = null;
|
44
|
+
this.overlay = null;
|
45
|
+
}
|
46
|
+
|
47
|
+
function getSearchState(cm) {
|
48
|
+
return cm.state.search || (cm.state.search = new SearchState());
|
49
|
+
}
|
50
|
+
|
51
|
+
function queryCaseInsensitive(query) {
|
52
|
+
return typeof query == "string" && query == query.toLowerCase();
|
53
|
+
}
|
54
|
+
|
55
|
+
function getSearchCursor(cm, query, pos) {
|
56
|
+
// Heuristic: if the query string is all lowercase, do a case insensitive search.
|
57
|
+
return cm.getSearchCursor(query, pos, {caseFold: queryCaseInsensitive(query), multiline: true});
|
58
|
+
}
|
59
|
+
|
60
|
+
function persistentDialog(cm, text, deflt, onEnter, onKeyDown) {
|
61
|
+
cm.openDialog(text, onEnter, {
|
62
|
+
value: deflt,
|
63
|
+
selectValueOnOpen: true,
|
64
|
+
closeOnEnter: false,
|
65
|
+
onClose: function() { clearSearch(cm); },
|
66
|
+
onKeyDown: onKeyDown
|
67
|
+
});
|
68
|
+
}
|
69
|
+
|
70
|
+
function dialog(cm, text, shortText, deflt, f) {
|
71
|
+
if (cm.openDialog) cm.openDialog(text, f, {value: deflt, selectValueOnOpen: true});
|
72
|
+
else f(prompt(shortText, deflt));
|
73
|
+
}
|
74
|
+
|
75
|
+
function confirmDialog(cm, text, shortText, fs) {
|
76
|
+
if (cm.openConfirm) cm.openConfirm(text, fs);
|
77
|
+
else if (confirm(shortText)) fs[0]();
|
78
|
+
}
|
79
|
+
|
80
|
+
function parseString(string) {
|
81
|
+
return string.replace(/\\(.)/g, function(_, ch) {
|
82
|
+
if (ch == "n") return "\n"
|
83
|
+
if (ch == "r") return "\r"
|
84
|
+
return ch
|
85
|
+
})
|
86
|
+
}
|
87
|
+
|
88
|
+
function parseQuery(query) {
|
89
|
+
var isRE = query.match(/^\/(.*)\/([a-z]*)$/);
|
90
|
+
if (isRE) {
|
91
|
+
try { query = new RegExp(isRE[1], isRE[2].indexOf("i") == -1 ? "" : "i"); }
|
92
|
+
catch(e) {} // Not a regular expression after all, do a string search
|
93
|
+
} else {
|
94
|
+
query = parseString(query)
|
95
|
+
}
|
96
|
+
if (typeof query == "string" ? query == "" : query.test(""))
|
97
|
+
query = /x^/;
|
98
|
+
return query;
|
99
|
+
}
|
100
|
+
|
101
|
+
var queryDialog =
|
102
|
+
'<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>';
|
103
|
+
|
104
|
+
function startSearch(cm, state, query) {
|
105
|
+
state.queryText = query;
|
106
|
+
state.query = parseQuery(query);
|
107
|
+
cm.removeOverlay(state.overlay, queryCaseInsensitive(state.query));
|
108
|
+
state.overlay = searchOverlay(state.query, queryCaseInsensitive(state.query));
|
109
|
+
cm.addOverlay(state.overlay);
|
110
|
+
if (cm.showMatchesOnScrollbar) {
|
111
|
+
if (state.annotate) { state.annotate.clear(); state.annotate = null; }
|
112
|
+
state.annotate = cm.showMatchesOnScrollbar(state.query, queryCaseInsensitive(state.query));
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
function doSearch(cm, rev, persistent, immediate) {
|
117
|
+
var state = getSearchState(cm);
|
118
|
+
if (state.query) return findNext(cm, rev);
|
119
|
+
var q = cm.getSelection() || state.lastQuery;
|
120
|
+
if (q instanceof RegExp && q.source == "x^") q = null
|
121
|
+
if (persistent && cm.openDialog) {
|
122
|
+
var hiding = null
|
123
|
+
var searchNext = function(query, event) {
|
124
|
+
CodeMirror.e_stop(event);
|
125
|
+
if (!query) return;
|
126
|
+
if (query != state.queryText) {
|
127
|
+
startSearch(cm, state, query);
|
128
|
+
state.posFrom = state.posTo = cm.getCursor();
|
129
|
+
}
|
130
|
+
if (hiding) hiding.style.opacity = 1
|
131
|
+
findNext(cm, event.shiftKey, function(_, to) {
|
132
|
+
var dialog
|
133
|
+
if (to.line < 3 && document.querySelector &&
|
134
|
+
(dialog = cm.display.wrapper.querySelector(".CodeMirror-dialog")) &&
|
135
|
+
dialog.getBoundingClientRect().bottom - 4 > cm.cursorCoords(to, "window").top)
|
136
|
+
(hiding = dialog).style.opacity = .4
|
137
|
+
})
|
138
|
+
};
|
139
|
+
persistentDialog(cm, queryDialog, q, searchNext, function(event, query) {
|
140
|
+
var keyName = CodeMirror.keyName(event)
|
141
|
+
var extra = cm.getOption('extraKeys'), cmd = (extra && extra[keyName]) || CodeMirror.keyMap[cm.getOption("keyMap")][keyName]
|
142
|
+
if (cmd == "findNext" || cmd == "findPrev" ||
|
143
|
+
cmd == "findPersistentNext" || cmd == "findPersistentPrev") {
|
144
|
+
CodeMirror.e_stop(event);
|
145
|
+
startSearch(cm, getSearchState(cm), query);
|
146
|
+
cm.execCommand(cmd);
|
147
|
+
} else if (cmd == "find" || cmd == "findPersistent") {
|
148
|
+
CodeMirror.e_stop(event);
|
149
|
+
searchNext(query, event);
|
150
|
+
}
|
151
|
+
});
|
152
|
+
if (immediate && q) {
|
153
|
+
startSearch(cm, state, q);
|
154
|
+
findNext(cm, rev);
|
155
|
+
}
|
156
|
+
} else {
|
157
|
+
dialog(cm, queryDialog, "Search for:", q, function(query) {
|
158
|
+
if (query && !state.query) cm.operation(function() {
|
159
|
+
startSearch(cm, state, query);
|
160
|
+
state.posFrom = state.posTo = cm.getCursor();
|
161
|
+
findNext(cm, rev);
|
162
|
+
});
|
163
|
+
});
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
function findNext(cm, rev, callback) {cm.operation(function() {
|
168
|
+
var state = getSearchState(cm);
|
169
|
+
var cursor = getSearchCursor(cm, state.query, rev ? state.posFrom : state.posTo);
|
170
|
+
if (!cursor.find(rev)) {
|
171
|
+
cursor = getSearchCursor(cm, state.query, rev ? CodeMirror.Pos(cm.lastLine()) : CodeMirror.Pos(cm.firstLine(), 0));
|
172
|
+
if (!cursor.find(rev)) return;
|
173
|
+
}
|
174
|
+
cm.setSelection(cursor.from(), cursor.to());
|
175
|
+
cm.scrollIntoView({from: cursor.from(), to: cursor.to()}, 20);
|
176
|
+
state.posFrom = cursor.from(); state.posTo = cursor.to();
|
177
|
+
if (callback) callback(cursor.from(), cursor.to())
|
178
|
+
});}
|
179
|
+
|
180
|
+
function clearSearch(cm) {cm.operation(function() {
|
181
|
+
var state = getSearchState(cm);
|
182
|
+
state.lastQuery = state.query;
|
183
|
+
if (!state.query) return;
|
184
|
+
state.query = state.queryText = null;
|
185
|
+
cm.removeOverlay(state.overlay);
|
186
|
+
if (state.annotate) { state.annotate.clear(); state.annotate = null; }
|
187
|
+
});}
|
188
|
+
|
189
|
+
var replaceQueryDialog =
|
190
|
+
' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>';
|
191
|
+
var replacementQueryDialog = '<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>';
|
192
|
+
var doReplaceConfirm = '<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';
|
193
|
+
|
194
|
+
function replaceAll(cm, query, text) {
|
195
|
+
cm.operation(function() {
|
196
|
+
for (var cursor = getSearchCursor(cm, query); cursor.findNext();) {
|
197
|
+
if (typeof query != "string") {
|
198
|
+
var match = cm.getRange(cursor.from(), cursor.to()).match(query);
|
199
|
+
cursor.replace(text.replace(/\$(\d)/g, function(_, i) {return match[i];}));
|
200
|
+
} else cursor.replace(text);
|
201
|
+
}
|
202
|
+
});
|
203
|
+
}
|
204
|
+
|
205
|
+
function replace(cm, all) {
|
206
|
+
if (cm.getOption("readOnly")) return;
|
207
|
+
var query = cm.getSelection() || getSearchState(cm).lastQuery;
|
208
|
+
var dialogText = '<span class="CodeMirror-search-label">' + (all ? 'Replace all:' : 'Replace:') + '</span>';
|
209
|
+
dialog(cm, dialogText + replaceQueryDialog, dialogText, query, function(query) {
|
210
|
+
if (!query) return;
|
211
|
+
query = parseQuery(query);
|
212
|
+
dialog(cm, replacementQueryDialog, "Replace with:", "", function(text) {
|
213
|
+
text = parseString(text)
|
214
|
+
if (all) {
|
215
|
+
replaceAll(cm, query, text)
|
216
|
+
} else {
|
217
|
+
clearSearch(cm);
|
218
|
+
var cursor = getSearchCursor(cm, query, cm.getCursor("from"));
|
219
|
+
var advance = function() {
|
220
|
+
var start = cursor.from(), match;
|
221
|
+
if (!(match = cursor.findNext())) {
|
222
|
+
cursor = getSearchCursor(cm, query);
|
223
|
+
if (!(match = cursor.findNext()) ||
|
224
|
+
(start && cursor.from().line == start.line && cursor.from().ch == start.ch)) return;
|
225
|
+
}
|
226
|
+
cm.setSelection(cursor.from(), cursor.to());
|
227
|
+
cm.scrollIntoView({from: cursor.from(), to: cursor.to()});
|
228
|
+
confirmDialog(cm, doReplaceConfirm, "Replace?",
|
229
|
+
[function() {doReplace(match);}, advance,
|
230
|
+
function() {replaceAll(cm, query, text)}]);
|
231
|
+
};
|
232
|
+
var doReplace = function(match) {
|
233
|
+
cursor.replace(typeof query == "string" ? text :
|
234
|
+
text.replace(/\$(\d)/g, function(_, i) {return match[i];}));
|
235
|
+
advance();
|
236
|
+
};
|
237
|
+
advance();
|
238
|
+
}
|
239
|
+
});
|
240
|
+
});
|
241
|
+
}
|
242
|
+
|
243
|
+
CodeMirror.commands.find = function(cm) {clearSearch(cm); doSearch(cm);};
|
244
|
+
CodeMirror.commands.findPersistent = function(cm) {clearSearch(cm); doSearch(cm, false, true);};
|
245
|
+
CodeMirror.commands.findPersistentNext = function(cm) {doSearch(cm, false, true, true);};
|
246
|
+
CodeMirror.commands.findPersistentPrev = function(cm) {doSearch(cm, true, true, true);};
|
247
|
+
CodeMirror.commands.findNext = doSearch;
|
248
|
+
CodeMirror.commands.findPrev = function(cm) {doSearch(cm, true);};
|
249
|
+
CodeMirror.commands.clearSearch = clearSearch;
|
250
|
+
CodeMirror.commands.replace = replace;
|
251
|
+
CodeMirror.commands.replaceAll = function(cm) {replace(cm, true);};
|
252
|
+
});
|
@@ -0,0 +1,293 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"))
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod)
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror)
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict"
|
13
|
+
var Pos = CodeMirror.Pos
|
14
|
+
|
15
|
+
function regexpFlags(regexp) {
|
16
|
+
var flags = regexp.flags
|
17
|
+
return flags != null ? flags : (regexp.ignoreCase ? "i" : "")
|
18
|
+
+ (regexp.global ? "g" : "")
|
19
|
+
+ (regexp.multiline ? "m" : "")
|
20
|
+
}
|
21
|
+
|
22
|
+
function ensureFlags(regexp, flags) {
|
23
|
+
var current = regexpFlags(regexp), target = current
|
24
|
+
for (var i = 0; i < flags.length; i++) if (target.indexOf(flags.charAt(i)) == -1)
|
25
|
+
target += flags.charAt(i)
|
26
|
+
return current == target ? regexp : new RegExp(regexp.source, target)
|
27
|
+
}
|
28
|
+
|
29
|
+
function maybeMultiline(regexp) {
|
30
|
+
return /\\s|\\n|\n|\\W|\\D|\[\^/.test(regexp.source)
|
31
|
+
}
|
32
|
+
|
33
|
+
function searchRegexpForward(doc, regexp, start) {
|
34
|
+
regexp = ensureFlags(regexp, "g")
|
35
|
+
for (var line = start.line, ch = start.ch, last = doc.lastLine(); line <= last; line++, ch = 0) {
|
36
|
+
regexp.lastIndex = ch
|
37
|
+
var string = doc.getLine(line), match = regexp.exec(string)
|
38
|
+
if (match)
|
39
|
+
return {from: Pos(line, match.index),
|
40
|
+
to: Pos(line, match.index + match[0].length),
|
41
|
+
match: match}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
function searchRegexpForwardMultiline(doc, regexp, start) {
|
46
|
+
if (!maybeMultiline(regexp)) return searchRegexpForward(doc, regexp, start)
|
47
|
+
|
48
|
+
regexp = ensureFlags(regexp, "gm")
|
49
|
+
var string, chunk = 1
|
50
|
+
for (var line = start.line, last = doc.lastLine(); line <= last;) {
|
51
|
+
// This grows the search buffer in exponentially-sized chunks
|
52
|
+
// between matches, so that nearby matches are fast and don't
|
53
|
+
// require concatenating the whole document (in case we're
|
54
|
+
// searching for something that has tons of matches), but at the
|
55
|
+
// same time, the amount of retries is limited.
|
56
|
+
for (var i = 0; i < chunk; i++) {
|
57
|
+
if (line > last) break
|
58
|
+
var curLine = doc.getLine(line++)
|
59
|
+
string = string == null ? curLine : string + "\n" + curLine
|
60
|
+
}
|
61
|
+
chunk = chunk * 2
|
62
|
+
regexp.lastIndex = start.ch
|
63
|
+
var match = regexp.exec(string)
|
64
|
+
if (match) {
|
65
|
+
var before = string.slice(0, match.index).split("\n"), inside = match[0].split("\n")
|
66
|
+
var startLine = start.line + before.length - 1, startCh = before[before.length - 1].length
|
67
|
+
return {from: Pos(startLine, startCh),
|
68
|
+
to: Pos(startLine + inside.length - 1,
|
69
|
+
inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),
|
70
|
+
match: match}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
function lastMatchIn(string, regexp) {
|
76
|
+
var cutOff = 0, match
|
77
|
+
for (;;) {
|
78
|
+
regexp.lastIndex = cutOff
|
79
|
+
var newMatch = regexp.exec(string)
|
80
|
+
if (!newMatch) return match
|
81
|
+
match = newMatch
|
82
|
+
cutOff = match.index + (match[0].length || 1)
|
83
|
+
if (cutOff == string.length) return match
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
function searchRegexpBackward(doc, regexp, start) {
|
88
|
+
regexp = ensureFlags(regexp, "g")
|
89
|
+
for (var line = start.line, ch = start.ch, first = doc.firstLine(); line >= first; line--, ch = -1) {
|
90
|
+
var string = doc.getLine(line)
|
91
|
+
if (ch > -1) string = string.slice(0, ch)
|
92
|
+
var match = lastMatchIn(string, regexp)
|
93
|
+
if (match)
|
94
|
+
return {from: Pos(line, match.index),
|
95
|
+
to: Pos(line, match.index + match[0].length),
|
96
|
+
match: match}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
function searchRegexpBackwardMultiline(doc, regexp, start) {
|
101
|
+
regexp = ensureFlags(regexp, "gm")
|
102
|
+
var string, chunk = 1
|
103
|
+
for (var line = start.line, first = doc.firstLine(); line >= first;) {
|
104
|
+
for (var i = 0; i < chunk; i++) {
|
105
|
+
var curLine = doc.getLine(line--)
|
106
|
+
string = string == null ? curLine.slice(0, start.ch) : curLine + "\n" + string
|
107
|
+
}
|
108
|
+
chunk *= 2
|
109
|
+
|
110
|
+
var match = lastMatchIn(string, regexp)
|
111
|
+
if (match) {
|
112
|
+
var before = string.slice(0, match.index).split("\n"), inside = match[0].split("\n")
|
113
|
+
var startLine = line + before.length, startCh = before[before.length - 1].length
|
114
|
+
return {from: Pos(startLine, startCh),
|
115
|
+
to: Pos(startLine + inside.length - 1,
|
116
|
+
inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),
|
117
|
+
match: match}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
var doFold, noFold
|
123
|
+
if (String.prototype.normalize) {
|
124
|
+
doFold = function(str) { return str.normalize("NFD").toLowerCase() }
|
125
|
+
noFold = function(str) { return str.normalize("NFD") }
|
126
|
+
} else {
|
127
|
+
doFold = function(str) { return str.toLowerCase() }
|
128
|
+
noFold = function(str) { return str }
|
129
|
+
}
|
130
|
+
|
131
|
+
// Maps a position in a case-folded line back to a position in the original line
|
132
|
+
// (compensating for codepoints increasing in number during folding)
|
133
|
+
function adjustPos(orig, folded, pos, foldFunc) {
|
134
|
+
if (orig.length == folded.length) return pos
|
135
|
+
for (var min = 0, max = pos + Math.max(0, orig.length - folded.length);;) {
|
136
|
+
if (min == max) return min
|
137
|
+
var mid = (min + max) >> 1
|
138
|
+
var len = foldFunc(orig.slice(0, mid)).length
|
139
|
+
if (len == pos) return mid
|
140
|
+
else if (len > pos) max = mid
|
141
|
+
else min = mid + 1
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
function searchStringForward(doc, query, start, caseFold) {
|
146
|
+
// Empty string would match anything and never progress, so we
|
147
|
+
// define it to match nothing instead.
|
148
|
+
if (!query.length) return null
|
149
|
+
var fold = caseFold ? doFold : noFold
|
150
|
+
var lines = fold(query).split(/\r|\n\r?/)
|
151
|
+
|
152
|
+
search: for (var line = start.line, ch = start.ch, last = doc.lastLine() + 1 - lines.length; line <= last; line++, ch = 0) {
|
153
|
+
var orig = doc.getLine(line).slice(ch), string = fold(orig)
|
154
|
+
if (lines.length == 1) {
|
155
|
+
var found = string.indexOf(lines[0])
|
156
|
+
if (found == -1) continue search
|
157
|
+
var start = adjustPos(orig, string, found, fold) + ch
|
158
|
+
return {from: Pos(line, adjustPos(orig, string, found, fold) + ch),
|
159
|
+
to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold) + ch)}
|
160
|
+
} else {
|
161
|
+
var cutFrom = string.length - lines[0].length
|
162
|
+
if (string.slice(cutFrom) != lines[0]) continue search
|
163
|
+
for (var i = 1; i < lines.length - 1; i++)
|
164
|
+
if (fold(doc.getLine(line + i)) != lines[i]) continue search
|
165
|
+
var end = doc.getLine(line + lines.length - 1), endString = fold(end), lastLine = lines[lines.length - 1]
|
166
|
+
if (endString.slice(0, lastLine.length) != lastLine) continue search
|
167
|
+
return {from: Pos(line, adjustPos(orig, string, cutFrom, fold) + ch),
|
168
|
+
to: Pos(line + lines.length - 1, adjustPos(end, endString, lastLine.length, fold))}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
function searchStringBackward(doc, query, start, caseFold) {
|
174
|
+
if (!query.length) return null
|
175
|
+
var fold = caseFold ? doFold : noFold
|
176
|
+
var lines = fold(query).split(/\r|\n\r?/)
|
177
|
+
|
178
|
+
search: for (var line = start.line, ch = start.ch, first = doc.firstLine() - 1 + lines.length; line >= first; line--, ch = -1) {
|
179
|
+
var orig = doc.getLine(line)
|
180
|
+
if (ch > -1) orig = orig.slice(0, ch)
|
181
|
+
var string = fold(orig)
|
182
|
+
if (lines.length == 1) {
|
183
|
+
var found = string.lastIndexOf(lines[0])
|
184
|
+
if (found == -1) continue search
|
185
|
+
return {from: Pos(line, adjustPos(orig, string, found, fold)),
|
186
|
+
to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold))}
|
187
|
+
} else {
|
188
|
+
var lastLine = lines[lines.length - 1]
|
189
|
+
if (string.slice(0, lastLine.length) != lastLine) continue search
|
190
|
+
for (var i = 1, start = line - lines.length + 1; i < lines.length - 1; i++)
|
191
|
+
if (fold(doc.getLine(start + i)) != lines[i]) continue search
|
192
|
+
var top = doc.getLine(line + 1 - lines.length), topString = fold(top)
|
193
|
+
if (topString.slice(topString.length - lines[0].length) != lines[0]) continue search
|
194
|
+
return {from: Pos(line + 1 - lines.length, adjustPos(top, topString, top.length - lines[0].length, fold)),
|
195
|
+
to: Pos(line, adjustPos(orig, string, lastLine.length, fold))}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
function SearchCursor(doc, query, pos, options) {
|
201
|
+
this.atOccurrence = false
|
202
|
+
this.doc = doc
|
203
|
+
pos = pos ? doc.clipPos(pos) : Pos(0, 0)
|
204
|
+
this.pos = {from: pos, to: pos}
|
205
|
+
|
206
|
+
var caseFold
|
207
|
+
if (typeof options == "object") {
|
208
|
+
caseFold = options.caseFold
|
209
|
+
} else { // Backwards compat for when caseFold was the 4th argument
|
210
|
+
caseFold = options
|
211
|
+
options = null
|
212
|
+
}
|
213
|
+
|
214
|
+
if (typeof query == "string") {
|
215
|
+
if (caseFold == null) caseFold = false
|
216
|
+
this.matches = function(reverse, pos) {
|
217
|
+
return (reverse ? searchStringBackward : searchStringForward)(doc, query, pos, caseFold)
|
218
|
+
}
|
219
|
+
} else {
|
220
|
+
query = ensureFlags(query, "gm")
|
221
|
+
if (!options || options.multiline !== false)
|
222
|
+
this.matches = function(reverse, pos) {
|
223
|
+
return (reverse ? searchRegexpBackwardMultiline : searchRegexpForwardMultiline)(doc, query, pos)
|
224
|
+
}
|
225
|
+
else
|
226
|
+
this.matches = function(reverse, pos) {
|
227
|
+
return (reverse ? searchRegexpBackward : searchRegexpForward)(doc, query, pos)
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
SearchCursor.prototype = {
|
233
|
+
findNext: function() {return this.find(false)},
|
234
|
+
findPrevious: function() {return this.find(true)},
|
235
|
+
|
236
|
+
find: function(reverse) {
|
237
|
+
var result = this.matches(reverse, this.doc.clipPos(reverse ? this.pos.from : this.pos.to))
|
238
|
+
|
239
|
+
// Implements weird auto-growing behavior on null-matches for
|
240
|
+
// backwards-compatiblity with the vim code (unfortunately)
|
241
|
+
while (result && CodeMirror.cmpPos(result.from, result.to) == 0) {
|
242
|
+
if (reverse) {
|
243
|
+
if (result.from.ch) result.from = Pos(result.from.line, result.from.ch - 1)
|
244
|
+
else if (result.from.line == this.doc.firstLine()) result = null
|
245
|
+
else result = this.matches(reverse, this.doc.clipPos(Pos(result.from.line - 1)))
|
246
|
+
} else {
|
247
|
+
if (result.to.ch < this.doc.getLine(result.to.line).length) result.to = Pos(result.to.line, result.to.ch + 1)
|
248
|
+
else if (result.to.line == this.doc.lastLine()) result = null
|
249
|
+
else result = this.matches(reverse, Pos(result.to.line + 1, 0))
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
if (result) {
|
254
|
+
this.pos = result
|
255
|
+
this.atOccurrence = true
|
256
|
+
return this.pos.match || true
|
257
|
+
} else {
|
258
|
+
var end = Pos(reverse ? this.doc.firstLine() : this.doc.lastLine() + 1, 0)
|
259
|
+
this.pos = {from: end, to: end}
|
260
|
+
return this.atOccurrence = false
|
261
|
+
}
|
262
|
+
},
|
263
|
+
|
264
|
+
from: function() {if (this.atOccurrence) return this.pos.from},
|
265
|
+
to: function() {if (this.atOccurrence) return this.pos.to},
|
266
|
+
|
267
|
+
replace: function(newText, origin) {
|
268
|
+
if (!this.atOccurrence) return
|
269
|
+
var lines = CodeMirror.splitLines(newText)
|
270
|
+
this.doc.replaceRange(lines, this.pos.from, this.pos.to, origin)
|
271
|
+
this.pos.to = Pos(this.pos.from.line + lines.length - 1,
|
272
|
+
lines[lines.length - 1].length + (lines.length == 1 ? this.pos.from.ch : 0))
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
CodeMirror.defineExtension("getSearchCursor", function(query, pos, caseFold) {
|
277
|
+
return new SearchCursor(this.doc, query, pos, caseFold)
|
278
|
+
})
|
279
|
+
CodeMirror.defineDocExtension("getSearchCursor", function(query, pos, caseFold) {
|
280
|
+
return new SearchCursor(this, query, pos, caseFold)
|
281
|
+
})
|
282
|
+
|
283
|
+
CodeMirror.defineExtension("selectMatches", function(query, caseFold) {
|
284
|
+
var ranges = []
|
285
|
+
var cur = this.getSearchCursor(query, this.getCursor("from"), caseFold)
|
286
|
+
while (cur.findNext()) {
|
287
|
+
if (CodeMirror.cmpPos(cur.to(), this.getCursor("to")) > 0) break
|
288
|
+
ranges.push({anchor: cur.from(), head: cur.to()})
|
289
|
+
}
|
290
|
+
if (ranges.length)
|
291
|
+
this.setSelections(ranges, 0)
|
292
|
+
})
|
293
|
+
});
|