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/hint/javascript-hint.js
ADDED
@@ -0,0 +1,157 @@
|
|
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
|
+
var Pos = CodeMirror.Pos;
|
13
|
+
|
14
|
+
function forEach(arr, f) {
|
15
|
+
for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
|
16
|
+
}
|
17
|
+
|
18
|
+
function arrayContains(arr, item) {
|
19
|
+
if (!Array.prototype.indexOf) {
|
20
|
+
var i = arr.length;
|
21
|
+
while (i--) {
|
22
|
+
if (arr[i] === item) {
|
23
|
+
return true;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return false;
|
27
|
+
}
|
28
|
+
return arr.indexOf(item) != -1;
|
29
|
+
}
|
30
|
+
|
31
|
+
function scriptHint(editor, keywords, getToken, options) {
|
32
|
+
// Find the token at the cursor
|
33
|
+
var cur = editor.getCursor(), token = getToken(editor, cur);
|
34
|
+
if (/\b(?:string|comment)\b/.test(token.type)) return;
|
35
|
+
var innerMode = CodeMirror.innerMode(editor.getMode(), token.state);
|
36
|
+
if (innerMode.mode.helperType === "json") return;
|
37
|
+
token.state = innerMode.state;
|
38
|
+
|
39
|
+
// If it's not a 'word-style' token, ignore the token.
|
40
|
+
if (!/^[\w$_]*$/.test(token.string)) {
|
41
|
+
token = {start: cur.ch, end: cur.ch, string: "", state: token.state,
|
42
|
+
type: token.string == "." ? "property" : null};
|
43
|
+
} else if (token.end > cur.ch) {
|
44
|
+
token.end = cur.ch;
|
45
|
+
token.string = token.string.slice(0, cur.ch - token.start);
|
46
|
+
}
|
47
|
+
|
48
|
+
var tprop = token;
|
49
|
+
// If it is a property, find out what it is a property of.
|
50
|
+
while (tprop.type == "property") {
|
51
|
+
tprop = getToken(editor, Pos(cur.line, tprop.start));
|
52
|
+
if (tprop.string != ".") return;
|
53
|
+
tprop = getToken(editor, Pos(cur.line, tprop.start));
|
54
|
+
if (!context) var context = [];
|
55
|
+
context.push(tprop);
|
56
|
+
}
|
57
|
+
return {list: getCompletions(token, context, keywords, options),
|
58
|
+
from: Pos(cur.line, token.start),
|
59
|
+
to: Pos(cur.line, token.end)};
|
60
|
+
}
|
61
|
+
|
62
|
+
function javascriptHint(editor, options) {
|
63
|
+
return scriptHint(editor, javascriptKeywords,
|
64
|
+
function (e, cur) {return e.getTokenAt(cur);},
|
65
|
+
options);
|
66
|
+
};
|
67
|
+
CodeMirror.registerHelper("hint", "javascript", javascriptHint);
|
68
|
+
|
69
|
+
function getCoffeeScriptToken(editor, cur) {
|
70
|
+
// This getToken, it is for coffeescript, imitates the behavior of
|
71
|
+
// getTokenAt method in javascript.js, that is, returning "property"
|
72
|
+
// type and treat "." as indepenent token.
|
73
|
+
var token = editor.getTokenAt(cur);
|
74
|
+
if (cur.ch == token.start + 1 && token.string.charAt(0) == '.') {
|
75
|
+
token.end = token.start;
|
76
|
+
token.string = '.';
|
77
|
+
token.type = "property";
|
78
|
+
}
|
79
|
+
else if (/^\.[\w$_]*$/.test(token.string)) {
|
80
|
+
token.type = "property";
|
81
|
+
token.start++;
|
82
|
+
token.string = token.string.replace(/\./, '');
|
83
|
+
}
|
84
|
+
return token;
|
85
|
+
}
|
86
|
+
|
87
|
+
function coffeescriptHint(editor, options) {
|
88
|
+
return scriptHint(editor, coffeescriptKeywords, getCoffeeScriptToken, options);
|
89
|
+
}
|
90
|
+
CodeMirror.registerHelper("hint", "coffeescript", coffeescriptHint);
|
91
|
+
|
92
|
+
var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " +
|
93
|
+
"toUpperCase toLowerCase split concat match replace search").split(" ");
|
94
|
+
var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " +
|
95
|
+
"lastIndexOf every some filter forEach map reduce reduceRight ").split(" ");
|
96
|
+
var funcProps = "prototype apply call bind".split(" ");
|
97
|
+
var javascriptKeywords = ("break case catch class const continue debugger default delete do else export extends false finally for function " +
|
98
|
+
"if in import instanceof new null return super switch this throw true try typeof var void while with yield").split(" ");
|
99
|
+
var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for " +
|
100
|
+
"if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" ");
|
101
|
+
|
102
|
+
function forAllProps(obj, callback) {
|
103
|
+
if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {
|
104
|
+
for (var name in obj) callback(name)
|
105
|
+
} else {
|
106
|
+
for (var o = obj; o; o = Object.getPrototypeOf(o))
|
107
|
+
Object.getOwnPropertyNames(o).forEach(callback)
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
function getCompletions(token, context, keywords, options) {
|
112
|
+
var found = [], start = token.string, global = options && options.globalScope || window;
|
113
|
+
function maybeAdd(str) {
|
114
|
+
if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str);
|
115
|
+
}
|
116
|
+
function gatherCompletions(obj) {
|
117
|
+
if (typeof obj == "string") forEach(stringProps, maybeAdd);
|
118
|
+
else if (obj instanceof Array) forEach(arrayProps, maybeAdd);
|
119
|
+
else if (obj instanceof Function) forEach(funcProps, maybeAdd);
|
120
|
+
forAllProps(obj, maybeAdd)
|
121
|
+
}
|
122
|
+
|
123
|
+
if (context && context.length) {
|
124
|
+
// If this is a property, see if it belongs to some object we can
|
125
|
+
// find in the current environment.
|
126
|
+
var obj = context.pop(), base;
|
127
|
+
if (obj.type && obj.type.indexOf("variable") === 0) {
|
128
|
+
if (options && options.additionalContext)
|
129
|
+
base = options.additionalContext[obj.string];
|
130
|
+
if (!options || options.useGlobalScope !== false)
|
131
|
+
base = base || global[obj.string];
|
132
|
+
} else if (obj.type == "string") {
|
133
|
+
base = "";
|
134
|
+
} else if (obj.type == "atom") {
|
135
|
+
base = 1;
|
136
|
+
} else if (obj.type == "function") {
|
137
|
+
if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') &&
|
138
|
+
(typeof global.jQuery == 'function'))
|
139
|
+
base = global.jQuery();
|
140
|
+
else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function'))
|
141
|
+
base = global._();
|
142
|
+
}
|
143
|
+
while (base != null && context.length)
|
144
|
+
base = base[context.pop().string];
|
145
|
+
if (base != null) gatherCompletions(base);
|
146
|
+
} else {
|
147
|
+
// If not, just look in the global object and any local scope
|
148
|
+
// (reading into JS mode internals to get at the local and global variables)
|
149
|
+
for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);
|
150
|
+
for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);
|
151
|
+
if (!options || options.useGlobalScope !== false)
|
152
|
+
gatherCompletions(global);
|
153
|
+
forEach(keywords, maybeAdd);
|
154
|
+
}
|
155
|
+
return found;
|
156
|
+
}
|
157
|
+
});
|
@@ -0,0 +1,36 @@
|
|
1
|
+
.CodeMirror-hints {
|
2
|
+
position: absolute;
|
3
|
+
z-index: 10;
|
4
|
+
overflow: hidden;
|
5
|
+
list-style: none;
|
6
|
+
|
7
|
+
margin: 0;
|
8
|
+
padding: 2px;
|
9
|
+
|
10
|
+
-webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
11
|
+
-moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
12
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
13
|
+
border-radius: 3px;
|
14
|
+
border: 1px solid silver;
|
15
|
+
|
16
|
+
background: white;
|
17
|
+
font-size: 90%;
|
18
|
+
font-family: monospace;
|
19
|
+
|
20
|
+
max-height: 20em;
|
21
|
+
overflow-y: auto;
|
22
|
+
}
|
23
|
+
|
24
|
+
.CodeMirror-hint {
|
25
|
+
margin: 0;
|
26
|
+
padding: 0 4px;
|
27
|
+
border-radius: 2px;
|
28
|
+
white-space: pre;
|
29
|
+
color: black;
|
30
|
+
cursor: pointer;
|
31
|
+
}
|
32
|
+
|
33
|
+
li.CodeMirror-hint-active {
|
34
|
+
background: #08f;
|
35
|
+
color: white;
|
36
|
+
}
|
@@ -0,0 +1,433 @@
|
|
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
|
+
|
14
|
+
var HINT_ELEMENT_CLASS = "CodeMirror-hint";
|
15
|
+
var ACTIVE_HINT_ELEMENT_CLASS = "CodeMirror-hint-active";
|
16
|
+
|
17
|
+
// This is the old interface, kept around for now to stay
|
18
|
+
// backwards-compatible.
|
19
|
+
CodeMirror.showHint = function(cm, getHints, options) {
|
20
|
+
if (!getHints) return cm.showHint(options);
|
21
|
+
if (options && options.async) getHints.async = true;
|
22
|
+
var newOpts = {hint: getHints};
|
23
|
+
if (options) for (var prop in options) newOpts[prop] = options[prop];
|
24
|
+
return cm.showHint(newOpts);
|
25
|
+
};
|
26
|
+
|
27
|
+
CodeMirror.defineExtension("showHint", function(options) {
|
28
|
+
options = parseOptions(this, this.getCursor("start"), options);
|
29
|
+
var selections = this.listSelections()
|
30
|
+
if (selections.length > 1) return;
|
31
|
+
// By default, don't allow completion when something is selected.
|
32
|
+
// A hint function can have a `supportsSelection` property to
|
33
|
+
// indicate that it can handle selections.
|
34
|
+
if (this.somethingSelected()) {
|
35
|
+
if (!options.hint.supportsSelection) return;
|
36
|
+
// Don't try with cross-line selections
|
37
|
+
for (var i = 0; i < selections.length; i++)
|
38
|
+
if (selections[i].head.line != selections[i].anchor.line) return;
|
39
|
+
}
|
40
|
+
|
41
|
+
if (this.state.completionActive) this.state.completionActive.close();
|
42
|
+
var completion = this.state.completionActive = new Completion(this, options);
|
43
|
+
if (!completion.options.hint) return;
|
44
|
+
|
45
|
+
CodeMirror.signal(this, "startCompletion", this);
|
46
|
+
completion.update(true);
|
47
|
+
});
|
48
|
+
|
49
|
+
function Completion(cm, options) {
|
50
|
+
this.cm = cm;
|
51
|
+
this.options = options;
|
52
|
+
this.widget = null;
|
53
|
+
this.debounce = 0;
|
54
|
+
this.tick = 0;
|
55
|
+
this.startPos = this.cm.getCursor("start");
|
56
|
+
this.startLen = this.cm.getLine(this.startPos.line).length - this.cm.getSelection().length;
|
57
|
+
|
58
|
+
var self = this;
|
59
|
+
cm.on("cursorActivity", this.activityFunc = function() { self.cursorActivity(); });
|
60
|
+
}
|
61
|
+
|
62
|
+
var requestAnimationFrame = window.requestAnimationFrame || function(fn) {
|
63
|
+
return setTimeout(fn, 1000/60);
|
64
|
+
};
|
65
|
+
var cancelAnimationFrame = window.cancelAnimationFrame || clearTimeout;
|
66
|
+
|
67
|
+
Completion.prototype = {
|
68
|
+
close: function() {
|
69
|
+
if (!this.active()) return;
|
70
|
+
this.cm.state.completionActive = null;
|
71
|
+
this.tick = null;
|
72
|
+
this.cm.off("cursorActivity", this.activityFunc);
|
73
|
+
|
74
|
+
if (this.widget && this.data) CodeMirror.signal(this.data, "close");
|
75
|
+
if (this.widget) this.widget.close();
|
76
|
+
CodeMirror.signal(this.cm, "endCompletion", this.cm);
|
77
|
+
},
|
78
|
+
|
79
|
+
active: function() {
|
80
|
+
return this.cm.state.completionActive == this;
|
81
|
+
},
|
82
|
+
|
83
|
+
pick: function(data, i) {
|
84
|
+
var completion = data.list[i];
|
85
|
+
if (completion.hint) completion.hint(this.cm, data, completion);
|
86
|
+
else this.cm.replaceRange(getText(completion), completion.from || data.from,
|
87
|
+
completion.to || data.to, "complete");
|
88
|
+
CodeMirror.signal(data, "pick", completion);
|
89
|
+
this.close();
|
90
|
+
},
|
91
|
+
|
92
|
+
cursorActivity: function() {
|
93
|
+
if (this.debounce) {
|
94
|
+
cancelAnimationFrame(this.debounce);
|
95
|
+
this.debounce = 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
var pos = this.cm.getCursor(), line = this.cm.getLine(pos.line);
|
99
|
+
if (pos.line != this.startPos.line || line.length - pos.ch != this.startLen - this.startPos.ch ||
|
100
|
+
pos.ch < this.startPos.ch || this.cm.somethingSelected() ||
|
101
|
+
(pos.ch && this.options.closeCharacters.test(line.charAt(pos.ch - 1)))) {
|
102
|
+
this.close();
|
103
|
+
} else {
|
104
|
+
var self = this;
|
105
|
+
this.debounce = requestAnimationFrame(function() {self.update();});
|
106
|
+
if (this.widget) this.widget.disable();
|
107
|
+
}
|
108
|
+
},
|
109
|
+
|
110
|
+
update: function(first) {
|
111
|
+
if (this.tick == null) return
|
112
|
+
var self = this, myTick = ++this.tick
|
113
|
+
fetchHints(this.options.hint, this.cm, this.options, function(data) {
|
114
|
+
if (self.tick == myTick) self.finishUpdate(data, first)
|
115
|
+
})
|
116
|
+
},
|
117
|
+
|
118
|
+
finishUpdate: function(data, first) {
|
119
|
+
if (this.data) CodeMirror.signal(this.data, "update");
|
120
|
+
|
121
|
+
var picked = (this.widget && this.widget.picked) || (first && this.options.completeSingle);
|
122
|
+
if (this.widget) this.widget.close();
|
123
|
+
|
124
|
+
this.data = data;
|
125
|
+
|
126
|
+
if (data && data.list.length) {
|
127
|
+
if (picked && data.list.length == 1) {
|
128
|
+
this.pick(data, 0);
|
129
|
+
} else {
|
130
|
+
this.widget = new Widget(this, data);
|
131
|
+
CodeMirror.signal(data, "shown");
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
};
|
136
|
+
|
137
|
+
function parseOptions(cm, pos, options) {
|
138
|
+
var editor = cm.options.hintOptions;
|
139
|
+
var out = {};
|
140
|
+
for (var prop in defaultOptions) out[prop] = defaultOptions[prop];
|
141
|
+
if (editor) for (var prop in editor)
|
142
|
+
if (editor[prop] !== undefined) out[prop] = editor[prop];
|
143
|
+
if (options) for (var prop in options)
|
144
|
+
if (options[prop] !== undefined) out[prop] = options[prop];
|
145
|
+
if (out.hint.resolve) out.hint = out.hint.resolve(cm, pos)
|
146
|
+
return out;
|
147
|
+
}
|
148
|
+
|
149
|
+
function getText(completion) {
|
150
|
+
if (typeof completion == "string") return completion;
|
151
|
+
else return completion.text;
|
152
|
+
}
|
153
|
+
|
154
|
+
function buildKeyMap(completion, handle) {
|
155
|
+
var baseMap = {
|
156
|
+
Up: function() {handle.moveFocus(-1);},
|
157
|
+
Down: function() {handle.moveFocus(1);},
|
158
|
+
PageUp: function() {handle.moveFocus(-handle.menuSize() + 1, true);},
|
159
|
+
PageDown: function() {handle.moveFocus(handle.menuSize() - 1, true);},
|
160
|
+
Home: function() {handle.setFocus(0);},
|
161
|
+
End: function() {handle.setFocus(handle.length - 1);},
|
162
|
+
Enter: handle.pick,
|
163
|
+
Tab: handle.pick,
|
164
|
+
Esc: handle.close
|
165
|
+
};
|
166
|
+
var custom = completion.options.customKeys;
|
167
|
+
var ourMap = custom ? {} : baseMap;
|
168
|
+
function addBinding(key, val) {
|
169
|
+
var bound;
|
170
|
+
if (typeof val != "string")
|
171
|
+
bound = function(cm) { return val(cm, handle); };
|
172
|
+
// This mechanism is deprecated
|
173
|
+
else if (baseMap.hasOwnProperty(val))
|
174
|
+
bound = baseMap[val];
|
175
|
+
else
|
176
|
+
bound = val;
|
177
|
+
ourMap[key] = bound;
|
178
|
+
}
|
179
|
+
if (custom)
|
180
|
+
for (var key in custom) if (custom.hasOwnProperty(key))
|
181
|
+
addBinding(key, custom[key]);
|
182
|
+
var extra = completion.options.extraKeys;
|
183
|
+
if (extra)
|
184
|
+
for (var key in extra) if (extra.hasOwnProperty(key))
|
185
|
+
addBinding(key, extra[key]);
|
186
|
+
return ourMap;
|
187
|
+
}
|
188
|
+
|
189
|
+
function getHintElement(hintsElement, el) {
|
190
|
+
while (el && el != hintsElement) {
|
191
|
+
if (el.nodeName.toUpperCase() === "LI" && el.parentNode == hintsElement) return el;
|
192
|
+
el = el.parentNode;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
function Widget(completion, data) {
|
197
|
+
this.completion = completion;
|
198
|
+
this.data = data;
|
199
|
+
this.picked = false;
|
200
|
+
var widget = this, cm = completion.cm;
|
201
|
+
|
202
|
+
var hints = this.hints = document.createElement("ul");
|
203
|
+
hints.className = "CodeMirror-hints";
|
204
|
+
this.selectedHint = data.selectedHint || 0;
|
205
|
+
|
206
|
+
var completions = data.list;
|
207
|
+
for (var i = 0; i < completions.length; ++i) {
|
208
|
+
var elt = hints.appendChild(document.createElement("li")), cur = completions[i];
|
209
|
+
var className = HINT_ELEMENT_CLASS + (i != this.selectedHint ? "" : " " + ACTIVE_HINT_ELEMENT_CLASS);
|
210
|
+
if (cur.className != null) className = cur.className + " " + className;
|
211
|
+
elt.className = className;
|
212
|
+
if (cur.render) cur.render(elt, data, cur);
|
213
|
+
else elt.appendChild(document.createTextNode(cur.displayText || getText(cur)));
|
214
|
+
elt.hintId = i;
|
215
|
+
}
|
216
|
+
|
217
|
+
var pos = cm.cursorCoords(completion.options.alignWithWord ? data.from : null);
|
218
|
+
var left = pos.left, top = pos.bottom, below = true;
|
219
|
+
hints.style.left = left + "px";
|
220
|
+
hints.style.top = top + "px";
|
221
|
+
// If we're at the edge of the screen, then we want the menu to appear on the left of the cursor.
|
222
|
+
var winW = window.innerWidth || Math.max(document.body.offsetWidth, document.documentElement.offsetWidth);
|
223
|
+
var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);
|
224
|
+
(completion.options.container || document.body).appendChild(hints);
|
225
|
+
var box = hints.getBoundingClientRect(), overlapY = box.bottom - winH;
|
226
|
+
var scrolls = hints.scrollHeight > hints.clientHeight + 1
|
227
|
+
var startScroll = cm.getScrollInfo();
|
228
|
+
|
229
|
+
if (overlapY > 0) {
|
230
|
+
var height = box.bottom - box.top, curTop = pos.top - (pos.bottom - box.top);
|
231
|
+
if (curTop - height > 0) { // Fits above cursor
|
232
|
+
hints.style.top = (top = pos.top - height) + "px";
|
233
|
+
below = false;
|
234
|
+
} else if (height > winH) {
|
235
|
+
hints.style.height = (winH - 5) + "px";
|
236
|
+
hints.style.top = (top = pos.bottom - box.top) + "px";
|
237
|
+
var cursor = cm.getCursor();
|
238
|
+
if (data.from.ch != cursor.ch) {
|
239
|
+
pos = cm.cursorCoords(cursor);
|
240
|
+
hints.style.left = (left = pos.left) + "px";
|
241
|
+
box = hints.getBoundingClientRect();
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
var overlapX = box.right - winW;
|
246
|
+
if (overlapX > 0) {
|
247
|
+
if (box.right - box.left > winW) {
|
248
|
+
hints.style.width = (winW - 5) + "px";
|
249
|
+
overlapX -= (box.right - box.left) - winW;
|
250
|
+
}
|
251
|
+
hints.style.left = (left = pos.left - overlapX) + "px";
|
252
|
+
}
|
253
|
+
if (scrolls) for (var node = hints.firstChild; node; node = node.nextSibling)
|
254
|
+
node.style.paddingRight = cm.display.nativeBarWidth + "px"
|
255
|
+
|
256
|
+
cm.addKeyMap(this.keyMap = buildKeyMap(completion, {
|
257
|
+
moveFocus: function(n, avoidWrap) { widget.changeActive(widget.selectedHint + n, avoidWrap); },
|
258
|
+
setFocus: function(n) { widget.changeActive(n); },
|
259
|
+
menuSize: function() { return widget.screenAmount(); },
|
260
|
+
length: completions.length,
|
261
|
+
close: function() { completion.close(); },
|
262
|
+
pick: function() { widget.pick(); },
|
263
|
+
data: data
|
264
|
+
}));
|
265
|
+
|
266
|
+
if (completion.options.closeOnUnfocus) {
|
267
|
+
var closingOnBlur;
|
268
|
+
cm.on("blur", this.onBlur = function() { closingOnBlur = setTimeout(function() { completion.close(); }, 100); });
|
269
|
+
cm.on("focus", this.onFocus = function() { clearTimeout(closingOnBlur); });
|
270
|
+
}
|
271
|
+
|
272
|
+
cm.on("scroll", this.onScroll = function() {
|
273
|
+
var curScroll = cm.getScrollInfo(), editor = cm.getWrapperElement().getBoundingClientRect();
|
274
|
+
var newTop = top + startScroll.top - curScroll.top;
|
275
|
+
var point = newTop - (window.pageYOffset || (document.documentElement || document.body).scrollTop);
|
276
|
+
if (!below) point += hints.offsetHeight;
|
277
|
+
if (point <= editor.top || point >= editor.bottom) return completion.close();
|
278
|
+
hints.style.top = newTop + "px";
|
279
|
+
hints.style.left = (left + startScroll.left - curScroll.left) + "px";
|
280
|
+
});
|
281
|
+
|
282
|
+
CodeMirror.on(hints, "dblclick", function(e) {
|
283
|
+
var t = getHintElement(hints, e.target || e.srcElement);
|
284
|
+
if (t && t.hintId != null) {widget.changeActive(t.hintId); widget.pick();}
|
285
|
+
});
|
286
|
+
|
287
|
+
CodeMirror.on(hints, "click", function(e) {
|
288
|
+
var t = getHintElement(hints, e.target || e.srcElement);
|
289
|
+
if (t && t.hintId != null) {
|
290
|
+
widget.changeActive(t.hintId);
|
291
|
+
if (completion.options.completeOnSingleClick) widget.pick();
|
292
|
+
}
|
293
|
+
});
|
294
|
+
|
295
|
+
CodeMirror.on(hints, "mousedown", function() {
|
296
|
+
setTimeout(function(){cm.focus();}, 20);
|
297
|
+
});
|
298
|
+
|
299
|
+
CodeMirror.signal(data, "select", completions[this.selectedHint], hints.childNodes[this.selectedHint]);
|
300
|
+
return true;
|
301
|
+
}
|
302
|
+
|
303
|
+
Widget.prototype = {
|
304
|
+
close: function() {
|
305
|
+
if (this.completion.widget != this) return;
|
306
|
+
this.completion.widget = null;
|
307
|
+
this.hints.parentNode.removeChild(this.hints);
|
308
|
+
this.completion.cm.removeKeyMap(this.keyMap);
|
309
|
+
|
310
|
+
var cm = this.completion.cm;
|
311
|
+
if (this.completion.options.closeOnUnfocus) {
|
312
|
+
cm.off("blur", this.onBlur);
|
313
|
+
cm.off("focus", this.onFocus);
|
314
|
+
}
|
315
|
+
cm.off("scroll", this.onScroll);
|
316
|
+
},
|
317
|
+
|
318
|
+
disable: function() {
|
319
|
+
this.completion.cm.removeKeyMap(this.keyMap);
|
320
|
+
var widget = this;
|
321
|
+
this.keyMap = {Enter: function() { widget.picked = true; }};
|
322
|
+
this.completion.cm.addKeyMap(this.keyMap);
|
323
|
+
},
|
324
|
+
|
325
|
+
pick: function() {
|
326
|
+
this.completion.pick(this.data, this.selectedHint);
|
327
|
+
},
|
328
|
+
|
329
|
+
changeActive: function(i, avoidWrap) {
|
330
|
+
if (i >= this.data.list.length)
|
331
|
+
i = avoidWrap ? this.data.list.length - 1 : 0;
|
332
|
+
else if (i < 0)
|
333
|
+
i = avoidWrap ? 0 : this.data.list.length - 1;
|
334
|
+
if (this.selectedHint == i) return;
|
335
|
+
var node = this.hints.childNodes[this.selectedHint];
|
336
|
+
if (node) node.className = node.className.replace(" " + ACTIVE_HINT_ELEMENT_CLASS, "");
|
337
|
+
node = this.hints.childNodes[this.selectedHint = i];
|
338
|
+
node.className += " " + ACTIVE_HINT_ELEMENT_CLASS;
|
339
|
+
if (node.offsetTop < this.hints.scrollTop)
|
340
|
+
this.hints.scrollTop = node.offsetTop - 3;
|
341
|
+
else if (node.offsetTop + node.offsetHeight > this.hints.scrollTop + this.hints.clientHeight)
|
342
|
+
this.hints.scrollTop = node.offsetTop + node.offsetHeight - this.hints.clientHeight + 3;
|
343
|
+
CodeMirror.signal(this.data, "select", this.data.list[this.selectedHint], node);
|
344
|
+
},
|
345
|
+
|
346
|
+
screenAmount: function() {
|
347
|
+
return Math.floor(this.hints.clientHeight / this.hints.firstChild.offsetHeight) || 1;
|
348
|
+
}
|
349
|
+
};
|
350
|
+
|
351
|
+
function applicableHelpers(cm, helpers) {
|
352
|
+
if (!cm.somethingSelected()) return helpers
|
353
|
+
var result = []
|
354
|
+
for (var i = 0; i < helpers.length; i++)
|
355
|
+
if (helpers[i].supportsSelection) result.push(helpers[i])
|
356
|
+
return result
|
357
|
+
}
|
358
|
+
|
359
|
+
function fetchHints(hint, cm, options, callback) {
|
360
|
+
if (hint.async) {
|
361
|
+
hint(cm, callback, options)
|
362
|
+
} else {
|
363
|
+
var result = hint(cm, options)
|
364
|
+
if (result && result.then) result.then(callback)
|
365
|
+
else callback(result)
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
function resolveAutoHints(cm, pos) {
|
370
|
+
var helpers = cm.getHelpers(pos, "hint"), words
|
371
|
+
if (helpers.length) {
|
372
|
+
var resolved = function(cm, callback, options) {
|
373
|
+
var app = applicableHelpers(cm, helpers);
|
374
|
+
function run(i) {
|
375
|
+
if (i == app.length) return callback(null)
|
376
|
+
fetchHints(app[i], cm, options, function(result) {
|
377
|
+
if (result && result.list.length > 0) callback(result)
|
378
|
+
else run(i + 1)
|
379
|
+
})
|
380
|
+
}
|
381
|
+
run(0)
|
382
|
+
}
|
383
|
+
resolved.async = true
|
384
|
+
resolved.supportsSelection = true
|
385
|
+
return resolved
|
386
|
+
} else if (words = cm.getHelper(cm.getCursor(), "hintWords")) {
|
387
|
+
return function(cm) { return CodeMirror.hint.fromList(cm, {words: words}) }
|
388
|
+
} else if (CodeMirror.hint.anyword) {
|
389
|
+
return function(cm, options) { return CodeMirror.hint.anyword(cm, options) }
|
390
|
+
} else {
|
391
|
+
return function() {}
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
CodeMirror.registerHelper("hint", "auto", {
|
396
|
+
resolve: resolveAutoHints
|
397
|
+
});
|
398
|
+
|
399
|
+
CodeMirror.registerHelper("hint", "fromList", function(cm, options) {
|
400
|
+
var cur = cm.getCursor(), token = cm.getTokenAt(cur)
|
401
|
+
var term, from = CodeMirror.Pos(cur.line, token.start), to = cur
|
402
|
+
if (token.start < cur.ch && /\w/.test(token.string.charAt(cur.ch - token.start - 1))) {
|
403
|
+
term = token.string.substr(0, cur.ch - token.start)
|
404
|
+
} else {
|
405
|
+
term = ""
|
406
|
+
from = cur
|
407
|
+
}
|
408
|
+
var found = [];
|
409
|
+
for (var i = 0; i < options.words.length; i++) {
|
410
|
+
var word = options.words[i];
|
411
|
+
if (word.slice(0, term.length) == term)
|
412
|
+
found.push(word);
|
413
|
+
}
|
414
|
+
|
415
|
+
if (found.length) return {list: found, from: from, to: to};
|
416
|
+
});
|
417
|
+
|
418
|
+
CodeMirror.commands.autocomplete = CodeMirror.showHint;
|
419
|
+
|
420
|
+
var defaultOptions = {
|
421
|
+
hint: CodeMirror.hint.auto,
|
422
|
+
completeSingle: true,
|
423
|
+
alignWithWord: true,
|
424
|
+
closeCharacters: /[\s()\[\]{};:>,]/,
|
425
|
+
closeOnUnfocus: true,
|
426
|
+
completeOnSingleClick: true,
|
427
|
+
container: null,
|
428
|
+
customKeys: null,
|
429
|
+
extraKeys: null
|
430
|
+
};
|
431
|
+
|
432
|
+
CodeMirror.defineOption("hintOptions", null);
|
433
|
+
});
|