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/db/migrate/20180818073305_create_active_storage_tables.active_storage.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# This migration comes from active_storage (originally 20170806125915)
|
2
|
+
class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :active_storage_blobs do |t|
|
5
|
+
t.string :key, null: false
|
6
|
+
t.string :filename, null: false
|
7
|
+
t.string :content_type
|
8
|
+
t.text :metadata
|
9
|
+
t.bigint :byte_size, null: false
|
10
|
+
t.string :checksum, null: false
|
11
|
+
t.datetime :created_at, null: false
|
12
|
+
|
13
|
+
t.index [ :key ], unique: true
|
14
|
+
end
|
15
|
+
|
16
|
+
create_table :active_storage_attachments do |t|
|
17
|
+
t.string :name, null: false
|
18
|
+
t.references :record, null: false, polymorphic: true, index: false
|
19
|
+
t.references :blob, null: false
|
20
|
+
|
21
|
+
t.datetime :created_at, null: false
|
22
|
+
|
23
|
+
t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# This migration comes from keppler_frontend (originally 20180827120734)
|
2
|
+
class CreateKepplerFrontendCallbackFunctions < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :keppler_frontend_callback_functions do |t|
|
5
|
+
t.string :name
|
6
|
+
t.string :description
|
7
|
+
t.integer :position
|
8
|
+
t.datetime :deleted_at
|
9
|
+
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
add_index :keppler_frontend_callback_functions, :deleted_at
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This migration comes from keppler_frontend (originally 20180827154249)
|
2
|
+
class CreateKepplerFrontendViewCallbacks < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :keppler_frontend_view_callbacks do |t|
|
5
|
+
t.string :name
|
6
|
+
t.string :function_type
|
7
|
+
t.integer :view_id
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# This migration comes from keppler_frontend (originally 20180830130934)
|
2
|
+
class CreateKepplerFrontendFunctions < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :keppler_frontend_functions do |t|
|
5
|
+
t.string :name
|
6
|
+
t.text :description
|
7
|
+
t.integer :position
|
8
|
+
t.datetime :deleted_at
|
9
|
+
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
add_index :keppler_frontend_functions, :deleted_at
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This migration comes from keppler_frontend (originally 20180830153029)
|
2
|
+
class CreateKepplerFrontendParameters < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :keppler_frontend_parameters do |t|
|
5
|
+
t.string :name
|
6
|
+
t.integer :position
|
7
|
+
t.datetime :deleted_at
|
8
|
+
t.string :function_id
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
add_index :keppler_frontend_parameters, :deleted_at
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed
|
2
|
+
# the database with its default values.
|
3
|
+
# The data can then be loaded with the rake db:seed
|
4
|
+
# (or created alongside the db with db:setup).
|
5
|
+
#
|
6
|
+
# Examples:
|
7
|
+
#
|
8
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
9
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
10
|
+
# user = CreateAdminService.new.call
|
11
|
+
# puts 'CREATED ADMIN USER: ' << user.email
|
12
|
+
|
13
|
+
Role.create name: 'keppler_admin'
|
14
|
+
puts 'Role Keppler Admin has been created'
|
15
|
+
|
16
|
+
User.create(
|
17
|
+
name: 'Keppler Admin', email: 'admin@keppleradmin.com', password: '+12345678+',
|
18
|
+
password_confirmation: '+12345678+', role_ids: '1'
|
19
|
+
)
|
20
|
+
|
21
|
+
puts 'admin@keppler.io has been created'
|
22
|
+
|
23
|
+
|
24
|
+
# Create setting deafult
|
25
|
+
if yml = YAML.load_file("#{Rails.root}/config/settings.yml")
|
26
|
+
setting = Setting.create(
|
27
|
+
name: yml['name'],
|
28
|
+
description: yml['description'],
|
29
|
+
email: yml['email'],
|
30
|
+
phone: yml['phone'],
|
31
|
+
mobile: yml['mobile'],
|
32
|
+
smtp_setting_attributes: {
|
33
|
+
address: yml['address'],
|
34
|
+
port: yml['port'],
|
35
|
+
domain_name: yml['domain_name'],
|
36
|
+
email: yml['smtp_email'],
|
37
|
+
password: yml['password'] ? yml['password'] : '12345678'
|
38
|
+
},
|
39
|
+
google_analytics_setting_attributes: {
|
40
|
+
ga_account_id: yml['ga_account_id'],
|
41
|
+
ga_tracking_id: yml['ga_tracking_id'],
|
42
|
+
ga_status: yml['ga_status']
|
43
|
+
}
|
44
|
+
)
|
45
|
+
setting.social_account = SocialAccount.new(
|
46
|
+
facebook: yml['facebook'],
|
47
|
+
twitter: yml['twitter'],
|
48
|
+
instagram: yml['instagram'],
|
49
|
+
google_plus: yml['google_plus'],
|
50
|
+
tripadvisor: yml['tripadvisor'],
|
51
|
+
pinterest: yml['pinterest'],
|
52
|
+
flickr: yml['flickr'],
|
53
|
+
behance: yml['behance'],
|
54
|
+
dribbble: yml['dribbble'],
|
55
|
+
tumblr: yml['tumblr'],
|
56
|
+
github: yml['github'],
|
57
|
+
linkedin: yml['linkedin'],
|
58
|
+
soundcloud: yml['soundcloud'],
|
59
|
+
youtube: yml['youtube'],
|
60
|
+
skype: yml['skype'],
|
61
|
+
vimeo: yml['vimeo']
|
62
|
+
)
|
63
|
+
setting.appearance = Appearance.new(theme_name: yml['theme_name'])
|
64
|
+
setting.save!
|
65
|
+
puts 'Setting has been created'
|
66
|
+
else
|
67
|
+
setting = Setting.create(
|
68
|
+
name: 'Keppler Admin', description: 'Welcome to Keppler Admin',
|
69
|
+
smtp_setting_attributes: {
|
70
|
+
address: 'test', port: '25', domain_name: 'keppler.com',
|
71
|
+
email: 'info@keppler.com', password: '12345678'
|
72
|
+
},
|
73
|
+
google_analytics_setting_attributes: {
|
74
|
+
ga_account_id: '121648466',
|
75
|
+
ga_tracking_id: 'UA-121648466-1',
|
76
|
+
ga_status: true
|
77
|
+
}
|
78
|
+
)
|
79
|
+
setting.social_account = SocialAccount.new
|
80
|
+
setting.appearance = Appearance.new(theme_name: 'keppler')
|
81
|
+
setting.save
|
82
|
+
puts 'Setting default has been created'
|
83
|
+
end
|
84
|
+
|
85
|
+
if defined?(KepplerFrontend) && KepplerFrontend.is_a?(Module)
|
86
|
+
file = File.join("#{Rails.root}/rockets/keppler_frontend/config/data/views.yml")
|
87
|
+
routes = YAML.load_file(file)
|
88
|
+
routes.each do |route|
|
89
|
+
KepplerFrontend::View.create(
|
90
|
+
name: route['name'],
|
91
|
+
url: route['url'],
|
92
|
+
method: route['method'],
|
93
|
+
active: route['active'],
|
94
|
+
format_result: route['format_result']
|
95
|
+
)
|
96
|
+
end
|
97
|
+
|
98
|
+
callback_file = File.join("#{Rails.root}/rockets/keppler_frontend/config/data/callback_functions.yml")
|
99
|
+
callbacks = YAML.load_file(callback_file)
|
100
|
+
callbacks.each do |callback|
|
101
|
+
KepplerFrontend::CallbackFunction.create(
|
102
|
+
name: callback['name'],
|
103
|
+
description: callback['description'],
|
104
|
+
)
|
105
|
+
end
|
106
|
+
|
107
|
+
partials_file = File.join("#{Rails.root}/rockets/keppler_frontend/config/partials.yml")
|
108
|
+
partials = YAML.load_file(partials_file)
|
109
|
+
|
110
|
+
partials.each do |partial|
|
111
|
+
KepplerFrontend::Partial.create(
|
112
|
+
name: partial['name'],
|
113
|
+
)
|
114
|
+
end
|
115
|
+
puts 'Views and Partials has been created'
|
116
|
+
end
|
117
|
+
|
118
|
+
if defined?(KepplerLanguages) && KepplerLanguages.is_a?(Module)
|
119
|
+
languages = File.join("#{Rails.root}/rockets/keppler_languages/config/languages.yml")
|
120
|
+
langs = YAML.load_file(languages)
|
121
|
+
|
122
|
+
langs.each do |lang|
|
123
|
+
KepplerLanguages::Language.create(
|
124
|
+
name: lang['name']
|
125
|
+
)
|
126
|
+
end
|
127
|
+
|
128
|
+
file_fields = File.join("#{Rails.root}/rockets/keppler_languages/config/fields.yml")
|
129
|
+
fields = YAML.load_file(file_fields)
|
130
|
+
|
131
|
+
fields.each do |field|
|
132
|
+
KepplerLanguages::Field.create(
|
133
|
+
key: field['key'],
|
134
|
+
value: field['value'],
|
135
|
+
language_id: field['language_id']
|
136
|
+
)
|
137
|
+
end
|
138
|
+
puts 'Languages has been created'
|
139
|
+
end
|
140
|
+
|
141
|
+
if defined?(KepplerFrontend) && KepplerFrontend.is_a?(Module)
|
142
|
+
functions = File.join("#{Rails.root}/rockets/keppler_frontend/config/functions.yml")
|
143
|
+
funcs = YAML.load_file(functions)
|
144
|
+
|
145
|
+
funcs.each do |func|
|
146
|
+
KepplerFrontend::Function.create(
|
147
|
+
name: func['name'],
|
148
|
+
description: func['description']
|
149
|
+
)
|
150
|
+
end
|
151
|
+
|
152
|
+
parameters_file = File.join("#{Rails.root}/rockets/keppler_frontend/config/parameters.yml")
|
153
|
+
params = YAML.load_file(parameters_file)
|
154
|
+
|
155
|
+
params.each do |param|
|
156
|
+
KepplerFrontend::Parameter.create(
|
157
|
+
name: param['name'],
|
158
|
+
function_id: param['function_id']
|
159
|
+
)
|
160
|
+
end
|
161
|
+
puts 'Frontend functions has been created'
|
162
|
+
end
|
File without changes
|
Binary file
|
Binary file
|
@@ -0,0 +1,44 @@
|
|
1
|
+
Description:
|
2
|
+
InstallRocket is a generator to copy migrations from rocket's db/migrate folder,
|
3
|
+
add a gem in Gemfile and EngineRoutes to config/routes.rb.
|
4
|
+
Also, run rake bundle install, rake db:migrate and restart server
|
5
|
+
|
6
|
+
Example:
|
7
|
+
rails generate install_rocket RocketName
|
8
|
+
|
9
|
+
This will create:
|
10
|
+
*** Copying migrations ***
|
11
|
+
Copied migration 20180829191032_create_keppler_contact_us_messages.keppler_contact_us.rb from keppler_contact_us
|
12
|
+
=== KepplerContactUs migrations has been copied ===
|
13
|
+
|
14
|
+
*** Adding gems to Gemfile ***
|
15
|
+
append Gemfile
|
16
|
+
=== KepplerContactUs's gem added to Gemfile ===
|
17
|
+
|
18
|
+
*** Adding KepplerContactUs route to config/routes ***
|
19
|
+
insert config/routes.rb
|
20
|
+
=== KepplerContactUs's route added to config/routes ===
|
21
|
+
|
22
|
+
*** Installing KepplerContactUs ***
|
23
|
+
The Gemfile's dependencies are satisfied
|
24
|
+
|
25
|
+
*** Updating database ***
|
26
|
+
== 20180829191032 CreateKepplerContactUsMessages: migrating ===================
|
27
|
+
-- create_table(:keppler_contact_us_messages)
|
28
|
+
-> 0.1679s
|
29
|
+
-- add_index(:keppler_contact_us_messages, :deleted_at)
|
30
|
+
-> 0.0583s
|
31
|
+
== 20180829191032 CreateKepplerContactUsMessages: migrated (0.2264s) ==========
|
32
|
+
|
33
|
+
=== Database has been updated ===
|
34
|
+
|
35
|
+
*** Removing old logs and tempfiles ***
|
36
|
+
=== Old logs and tempfiles has been removed ===
|
37
|
+
|
38
|
+
*** Restarting application server ***
|
39
|
+
=== Application server has been restarted ===
|
40
|
+
|
41
|
+
*** Running KepplerContactUs additional generator ***
|
42
|
+
[Simple Form] Simple Form is not configured in the application and will use the default values. Use `rails generate simple_form:install` to generate the Simple Form configuration.
|
43
|
+
====== Running some code ======
|
44
|
+
=== Additional KepplerContactUs generator has been executed ===
|
@@ -0,0 +1,107 @@
|
|
1
|
+
class InstallRocketGenerator < Rails::Generators::NamedBase
|
2
|
+
source_root File.expand_path('templates', __dir__)
|
3
|
+
|
4
|
+
def install_rocket
|
5
|
+
rocket_directory = "#{Rails.root}/rockets/#{file_name}"
|
6
|
+
if File.directory?(rocket_directory)
|
7
|
+
add_route_line
|
8
|
+
add_gem_line(rocket_directory)
|
9
|
+
add_helper_in_application_core
|
10
|
+
# add_helper_in_application_core
|
11
|
+
# bundle_install
|
12
|
+
migrate_database if copy_migrations_files
|
13
|
+
run_rocket_generator
|
14
|
+
# clear_temps_and_logs
|
15
|
+
restart_server
|
16
|
+
else
|
17
|
+
say "!!! ERROR: #{class_name} Rocket doesn't exist !!!\n", :red
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def add_gem_line(rocket_directory)
|
24
|
+
if File.directory?(rocket_directory)
|
25
|
+
puts "\n*** Adding #{file_name} gem to Gemfile ***"
|
26
|
+
if append_to_file 'Gemfile', "\ngem '#{file_name}', path: 'rockets/#{file_name}'"
|
27
|
+
say "=== #{class_name}'s gem added to Gemfile ===\n", :green
|
28
|
+
else
|
29
|
+
say "!!! Failed adding #{class_name} gem into Gemfile !!!"
|
30
|
+
end
|
31
|
+
else
|
32
|
+
say "!!! Cannot add #{class_name} gem to Gemfile. Rocket doesn't exist !!!\n", :red
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def add_route_line
|
37
|
+
if File.file?("#{Rails.root}/rockets/#{file_name}/config/routes.rb")
|
38
|
+
puts "\n*** Adding #{class_name} route to config/routes ***"
|
39
|
+
inject_into_file 'config/routes.rb', after: "mount Ckeditor::Engine => '/ckeditor'\n" do
|
40
|
+
"\n # #{class_name} routes engine\n mount #{class_name}::Engine, at: '/', as: '#{file_name}'\n"
|
41
|
+
end
|
42
|
+
say "=== #{class_name}'s route added to config/routes ===\n", :green
|
43
|
+
else
|
44
|
+
say "\n... #{class_name} doesn't have routes. Skipping ...\n"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def add_helper_in_application_core
|
49
|
+
say "\n*** Copying #{class_name}'s helpers ***"
|
50
|
+
inject_into_file 'app/controllers/application_controller.rb', after: "include PublicActivity::StoreController" do
|
51
|
+
"\n helper #{class_name}::ApplicationHelper"
|
52
|
+
end
|
53
|
+
say "=== #{class_name}'s helpers has been copied ===", :green
|
54
|
+
end
|
55
|
+
|
56
|
+
def copy_migrations_files
|
57
|
+
rocket_migrations = "#{Rails.root}/rockets/#{file_name}/db/migrate"
|
58
|
+
if File.directory?(rocket_migrations)
|
59
|
+
puts "\n*** Copying migrations ***"
|
60
|
+
# FileUtils.cp_r(Dir[rocket_migrations+'/*.*'], "#{Rails.root}/db/migrate/")
|
61
|
+
system "rake #{file_name}:install:migrations"
|
62
|
+
say "=== #{class_name} migrations has been copied ===\n", :green
|
63
|
+
true
|
64
|
+
else
|
65
|
+
say "\n... #{class_name} doesn't have migrations in db. Skipping ...\n"
|
66
|
+
false
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def bundle_install
|
71
|
+
puts "\n*** Installing #{class_name} ***"
|
72
|
+
system('bundle check') || system('bundle install')
|
73
|
+
say "=== Bundle list is updated ===", :green
|
74
|
+
end
|
75
|
+
|
76
|
+
def migrate_database
|
77
|
+
puts "\n*** Updating database ***"
|
78
|
+
system 'bin/rails db:migrate'
|
79
|
+
say "=== Database is updated ===\n", :green
|
80
|
+
end
|
81
|
+
|
82
|
+
def run_rocket_generator
|
83
|
+
rocket_additional = "#{Rails.root}/rockets/#{file_name}/lib/generators/install"
|
84
|
+
if File.directory?(rocket_additional)
|
85
|
+
puts "\n*** Running #{class_name} additional generator ***"
|
86
|
+
FileUtils.cd("rockets/#{file_name}") do # chdir
|
87
|
+
system 'rails g install' # do something
|
88
|
+
end # return to original directory
|
89
|
+
say "=== Additional #{class_name} generator has been executed ===\n", :green
|
90
|
+
else
|
91
|
+
say "\n... #{class_name} doesn't have a custom installer. Skipping ...\n"
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def clear_temps_and_logs
|
96
|
+
puts "\n*** Removing old logs and tempfiles ***"
|
97
|
+
system 'bin/rails log:clear tmp:clear'
|
98
|
+
say "=== Old logs and tempfiles has been removed ===\n", :green
|
99
|
+
end
|
100
|
+
|
101
|
+
def restart_server
|
102
|
+
puts "\n*** Restarting application server ***"
|
103
|
+
system 'bin/rails restart'
|
104
|
+
system 'bin/rails restart'
|
105
|
+
say "=== Application server has been restarted ===\n\n", :green
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,324 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class KepplerAddModuleGenerator < Rails::Generators::NamedBase
|
4
|
+
source_root File.expand_path('templates', __dir__)
|
5
|
+
|
6
|
+
FILE_NAME = "#{(ARGV[0].eql?('keppler_module') ? ARGV[1] : ARGV[0]).underscore.split('keppler_').last}"
|
7
|
+
ROCKET_NAME = "keppler_#{FILE_NAME}"
|
8
|
+
MODULE_NAME = ARGV[1].underscore
|
9
|
+
ATTRIBUTES = ARGV[2] ? ARGV[2..20].map { |x| x.include?(':') ? x.split(':') : ([x, 'string'] if x.exclude?('-')) }.compact.to_h : nil
|
10
|
+
ATTRIBUTES_NAMES = ATTRIBUTES.keys
|
11
|
+
ROCKET_DIRECTORY = "#{Rails.root}/rockets/#{ROCKET_NAME}"
|
12
|
+
|
13
|
+
ROCKET_CLASS_NAME = "#{ROCKET_NAME}".camelize
|
14
|
+
MODULE_CLASS_NAME = MODULE_NAME.singularize.classify
|
15
|
+
|
16
|
+
NAMES = %w[name title first_name full_name]
|
17
|
+
SINGULAR_ATTACHMENTS = %w[logo brand photo avatar cover image picture banner attachment pic file]
|
18
|
+
PLURAL_ATTACHMENTS = SINGULAR_ATTACHMENTS.map(&:pluralize)
|
19
|
+
SEARCHABLE_ATTRIBUTES = ATTRIBUTES.select { |k,v| %w[string].include?(v) && %w[position].exclude?(k) && k.exclude?('-') }.map(&:first).join(' ')
|
20
|
+
|
21
|
+
def create_module
|
22
|
+
if ROCKET_NAME
|
23
|
+
if MODULE_NAME
|
24
|
+
if Dir.exist? ROCKET_DIRECTORY
|
25
|
+
say "\n*** Creating #{MODULE_CLASS_NAME} module ***"
|
26
|
+
remove_migrations
|
27
|
+
# if validate_rocket_scaffold
|
28
|
+
# say "***** RUNNING KEPPLER SCAFFOLD *****"
|
29
|
+
# run_rocket_scaffold
|
30
|
+
# else
|
31
|
+
add_route
|
32
|
+
add_option_menu
|
33
|
+
add_locales
|
34
|
+
add_option_permissions
|
35
|
+
create_model_file
|
36
|
+
create_policies_file
|
37
|
+
create_controller_file
|
38
|
+
create_views_files
|
39
|
+
create_migration_file
|
40
|
+
# end
|
41
|
+
extract_migrations
|
42
|
+
migrate_database
|
43
|
+
restart_server
|
44
|
+
say "=== All Done. #{MODULE_NAME.classify} module has been created and installed ===\n", :green
|
45
|
+
else
|
46
|
+
say "\n!!! Error: Rocket doesn't exist !!!\n", :red
|
47
|
+
end
|
48
|
+
else
|
49
|
+
say "\n!!! Error: Please insert module name !!!\n", :red
|
50
|
+
end
|
51
|
+
else
|
52
|
+
say "\n!!! Error: Please insert rocket name !!!\n", :red
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
private
|
57
|
+
|
58
|
+
def add_route
|
59
|
+
return if options[:skip_routes]
|
60
|
+
say "\n*** Adding routes ***"
|
61
|
+
inject_into_file(
|
62
|
+
"#{ROCKET_DIRECTORY}/config/routes.rb",
|
63
|
+
"\n#{indent(str_route, 6)}",
|
64
|
+
after: "scope :#{FILE_NAME}, as: :#{FILE_NAME} do"
|
65
|
+
)
|
66
|
+
say "=== Routes has been added ===\n", :green
|
67
|
+
end
|
68
|
+
|
69
|
+
def add_option_menu
|
70
|
+
say "\n*** Adding option in menu.yml ***"
|
71
|
+
inject_into_file(
|
72
|
+
"#{ROCKET_DIRECTORY}/config/menu.yml",
|
73
|
+
"\n#{indent(str_menu, 6)}",
|
74
|
+
after: 'submenu:'
|
75
|
+
)
|
76
|
+
say "=== Menu option has been added ===\n", :green
|
77
|
+
end
|
78
|
+
|
79
|
+
def add_option_permissions
|
80
|
+
say "\n*** Adding option in permissions.yml ***"
|
81
|
+
inject_into_file(
|
82
|
+
"#{ROCKET_DIRECTORY}/config/permissions.yml",
|
83
|
+
"\n#{indent(str_permissions, 2)}",
|
84
|
+
after: 'modules:'
|
85
|
+
)
|
86
|
+
say "=== Permission option has been added ===\n", :green
|
87
|
+
end
|
88
|
+
|
89
|
+
def add_locales
|
90
|
+
%w[en es].each do |locale|
|
91
|
+
%W[singularize pluralize modules #{ROCKET_NAME.dasherize}-submenu].each do |switch|
|
92
|
+
say "\n*** Adding locale #{switch} in #{locale}.yml ***"
|
93
|
+
add_str_locales(locale, switch)
|
94
|
+
say "=== Locale #{switch} has been added in #{locale}.yml ===\n", :green
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
def remove_migrations
|
100
|
+
removed_files = false
|
101
|
+
Dir.glob("#{Rails.root}/db/migrate/*").each do |migration|
|
102
|
+
if migration.include?(MODULE_NAME)
|
103
|
+
say "\n*** Removing #{MODULE_NAME} migrations ***" unless removed_files
|
104
|
+
if ActiveRecord::Base.connection.table_exists? name_table(migration).to_sym
|
105
|
+
if migration.include?('create')
|
106
|
+
if ActiveRecord::Migration.drop_table(name_table(migration).to_sym)
|
107
|
+
say "--- #{name_table(migration)} table dropped ---"
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
if FileUtils.rm(migration)
|
112
|
+
say "--- #{migration_name(migration)} migration file has been removed ---"
|
113
|
+
end
|
114
|
+
removed_files = true
|
115
|
+
end
|
116
|
+
end
|
117
|
+
if removed_files
|
118
|
+
say "=== #{MODULE_NAME} migrations has been removed ===", :green
|
119
|
+
else
|
120
|
+
say "\n... Doesn' t exist migrations with this rocket name. Skipping ..."
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
def run_rocket_scaffold
|
125
|
+
say "*** Entering to rockets/#{ROCKET_NAME} folder ***"
|
126
|
+
FileUtils.cd ROCKET_DIRECTORY
|
127
|
+
say "*** Running #{ROCKET_NAME} scaffold ***"
|
128
|
+
system "rails g keppler_scaffold #{MODULE_NAME.classify} #{ATTRIBUTES.map { |x| "#{x.first}:#{x.last}" }.join(' ') } position:integer deleted_at:datetime created_at:datetime updated_at:datetime -f"
|
129
|
+
say "*** Coming back to Rails root folder ***"
|
130
|
+
FileUtils.cd Rails.root
|
131
|
+
end
|
132
|
+
|
133
|
+
def create_migration_file
|
134
|
+
say "*** Entering to Rocket Directory ***"
|
135
|
+
FileUtils.cd ROCKET_DIRECTORY
|
136
|
+
say "*** Running 'rails g migration create_#{ROCKET_NAME}_#{MODULE_NAME.pluralize} #{ATTRIBUTES.map { |x| "#{x.first}:#{x.last}" }.join(' ') } position:integer deleted_at:datetime created_at:datetime updated_at:datetime -f' ***"
|
137
|
+
system "rails g migration create_#{ROCKET_NAME}_#{MODULE_NAME.pluralize} #{ATTRIBUTES.map { |x| "#{x.first}:#{x.last}" }.join(' ') } position:integer deleted_at:datetime created_at:datetime updated_at:datetime -f"
|
138
|
+
say "*** Exiting from Rocket Directory ***"
|
139
|
+
FileUtils.cd Rails.root
|
140
|
+
say "=== Migration has been created ===\n", :green
|
141
|
+
end
|
142
|
+
|
143
|
+
def extract_migrations
|
144
|
+
say "*** Importing migrations from #{ROCKET_NAME}/db ***"
|
145
|
+
system "rake #{ROCKET_NAME}:install:migrations"
|
146
|
+
say "=== Migration has been extracted ===\n", :green
|
147
|
+
end
|
148
|
+
|
149
|
+
def create_model_file
|
150
|
+
say "\n*** Creating #{MODULE_NAME.classify} model ***"
|
151
|
+
model_path = "#{ROCKET_DIRECTORY}/app/models/#{ROCKET_NAME}/#{MODULE_NAME.singularize}.rb"
|
152
|
+
File.delete(model_path) if File.exist?(model_path)
|
153
|
+
template("models/model.rb", model_path)
|
154
|
+
say "=== #{MODULE_NAME.classify} model has been created ===\n", :green
|
155
|
+
end
|
156
|
+
|
157
|
+
def create_policies_file
|
158
|
+
say "\n*** Creating #{MODULE_NAME.classify} policy ***"
|
159
|
+
policy_path = "#{ROCKET_DIRECTORY}/app/policies/#{ROCKET_NAME}/#{MODULE_NAME.singularize}_policy.rb"
|
160
|
+
File.delete(policy_path) if File.exist?(policy_path)
|
161
|
+
template('policies/policy.rb', policy_path)
|
162
|
+
say "=== #{MODULE_NAME.classify} policy has been created ===\n", :green
|
163
|
+
end
|
164
|
+
|
165
|
+
def create_controller_file
|
166
|
+
say "\n*** Creating #{MODULE_NAME.pluralize.classify} controller ***"
|
167
|
+
controller_path = "#{ROCKET_DIRECTORY}/app/controllers/#{ROCKET_NAME}/admin/#{MODULE_NAME.pluralize}_controller.rb"
|
168
|
+
File.delete(controller_path) if File.exist?(controller_path)
|
169
|
+
template('controllers/controller.rb', controller_path)
|
170
|
+
say "=== #{MODULE_NAME.pluralize.classify}Controller has been created ===\n", :green
|
171
|
+
end
|
172
|
+
|
173
|
+
def validate_rocket_scaffold
|
174
|
+
File.exist? "#{ROCKET_DIRECTORY}/lib/generators/keppler_scaffold/keppler_scaffold_generator.rb"
|
175
|
+
end
|
176
|
+
|
177
|
+
def create_views_files
|
178
|
+
say "\n*** Creating #{MODULE_NAME.pluralize.classify} views ***"
|
179
|
+
%w[
|
180
|
+
_description _form _listing
|
181
|
+
edit index new show
|
182
|
+
reload.js
|
183
|
+
].each do |filename|
|
184
|
+
template_keppler_views("#{filename}.haml")
|
185
|
+
end
|
186
|
+
say "=== #{MODULE_NAME.pluralize.classify} views have been created ===\n", :green
|
187
|
+
end
|
188
|
+
|
189
|
+
# hook_for :test_framework, as: :scaffold
|
190
|
+
|
191
|
+
# # Invoke the helper using the controller name (pluralized)
|
192
|
+
# hook_for :helper, as: :scaffold do |invoked|
|
193
|
+
# invoke invoked, [controller_name]
|
194
|
+
# end
|
195
|
+
|
196
|
+
def migrate_database
|
197
|
+
puts "\n*** Updating database ***"
|
198
|
+
system 'bin/rails db:migrate'
|
199
|
+
say "=== Database is updated ===\n", :green
|
200
|
+
end
|
201
|
+
|
202
|
+
def restart_server
|
203
|
+
puts "\n*** Restarting application server ***"
|
204
|
+
system 'bin/rails restart'
|
205
|
+
system 'bin/rails restart'
|
206
|
+
say "=== Application server has been restarted ===\n\n", :green
|
207
|
+
end
|
208
|
+
|
209
|
+
protected
|
210
|
+
|
211
|
+
def add_str_locales(locale, switch)
|
212
|
+
inject_into_file(
|
213
|
+
"#{ROCKET_DIRECTORY}/config/locales/#{locale}.yml",
|
214
|
+
"\n#{str_locales(switch)}",
|
215
|
+
after: "#{switch}:"
|
216
|
+
)
|
217
|
+
end
|
218
|
+
|
219
|
+
def str_route
|
220
|
+
<<~HEREDOC
|
221
|
+
resources :#{MODULE_NAME.pluralize} do
|
222
|
+
post '/sort', action: :sort, on: :collection
|
223
|
+
get '(page/:page)', action: :index, on: :collection, as: ''
|
224
|
+
get '/clone', action: 'clone'
|
225
|
+
post '/upload', action: 'upload', as: :upload
|
226
|
+
get '/reload', action: :reload, on: :collection
|
227
|
+
delete '/destroy_multiple', action: :destroy_multiple, on: :collection
|
228
|
+
end
|
229
|
+
HEREDOC
|
230
|
+
end
|
231
|
+
|
232
|
+
def str_menu
|
233
|
+
<<~HEREDOC
|
234
|
+
- #{MODULE_NAME.singularize}:
|
235
|
+
name: #{MODULE_NAME.humanize.downcase}
|
236
|
+
url_path: /admin/#{ROCKET_NAME.split('keppler_').last}/#{MODULE_NAME.pluralize}
|
237
|
+
icon: layers
|
238
|
+
current: ['/admin/#{ROCKET_NAME.split('keppler_').last}/#{MODULE_NAME.pluralize}']
|
239
|
+
model: #{ROCKET_CLASS_NAME}::#{MODULE_CLASS_NAME}
|
240
|
+
HEREDOC
|
241
|
+
end
|
242
|
+
|
243
|
+
def str_permissions
|
244
|
+
<<~HEREDOC
|
245
|
+
#{MODULE_NAME.pluralize}:
|
246
|
+
name: #{MODULE_CLASS_NAME}
|
247
|
+
model: #{ROCKET_CLASS_NAME}#{MODULE_CLASS_NAME}
|
248
|
+
actions: [
|
249
|
+
'index', 'create', 'update', 'destroy', 'download', 'upload', 'clone'
|
250
|
+
]
|
251
|
+
HEREDOC
|
252
|
+
end
|
253
|
+
|
254
|
+
def str_locales(switch)
|
255
|
+
case switch
|
256
|
+
when "#{ROCKET_NAME.dasherize}-submenu"
|
257
|
+
" #{MODULE_NAME.dasherize}: #{MODULE_NAME.humanize}"
|
258
|
+
when 'singularize'
|
259
|
+
" #{MODULE_NAME.singularize}: #{MODULE_NAME.singularize.humanize.downcase}"
|
260
|
+
when 'pluralize'
|
261
|
+
" #{MODULE_NAME.pluralize}: #{MODULE_NAME.pluralize.humanize.downcase}"
|
262
|
+
when 'modules'
|
263
|
+
" admin/#{MODULE_NAME.dasherize}: #{MODULE_NAME.humanize}"
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
def template_keppler_views(name_file)
|
268
|
+
view_path = "#{ROCKET_DIRECTORY}/app/views/#{ROCKET_NAME}/admin/#{MODULE_NAME.pluralize}/#{name_file}"
|
269
|
+
File.delete(view_path) if File.exist?(view_path)
|
270
|
+
template("views/#{name_file}", view_path)
|
271
|
+
end
|
272
|
+
|
273
|
+
def arr_exist(path, search)
|
274
|
+
object = []
|
275
|
+
open(path).each do |line|
|
276
|
+
object << line if line.to_s.include? search
|
277
|
+
end
|
278
|
+
object
|
279
|
+
end
|
280
|
+
|
281
|
+
def destination_path(path)
|
282
|
+
File.join(destination_root, path)
|
283
|
+
end
|
284
|
+
|
285
|
+
def gsub_file(relative_destination, regexp, *args, &block)
|
286
|
+
path = destination_path(relative_destination)
|
287
|
+
content = File.read(path).gsub(regexp, *args, &block)
|
288
|
+
File.open(path, 'wb') do |file|
|
289
|
+
file.write(content)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
def migration_name(migration)
|
294
|
+
migration.split('/').last
|
295
|
+
.split('.').first
|
296
|
+
.split('_')[1..-1]
|
297
|
+
.join('_').camelize
|
298
|
+
end
|
299
|
+
|
300
|
+
def migration_num(migration)
|
301
|
+
migration.split('/').last
|
302
|
+
.split('.').first
|
303
|
+
.split('_').first
|
304
|
+
end
|
305
|
+
|
306
|
+
def name_table(migration)
|
307
|
+
migration
|
308
|
+
.split('/')
|
309
|
+
.last
|
310
|
+
.split('.')
|
311
|
+
.first
|
312
|
+
.remove('_create')
|
313
|
+
.remove('_rename')
|
314
|
+
.remove('_drop')
|
315
|
+
.remove('_remove')
|
316
|
+
.remove('_column')
|
317
|
+
.remove('_from')
|
318
|
+
.remove('_to')
|
319
|
+
.split('_')
|
320
|
+
.flatten[1..-1]
|
321
|
+
.join('_')
|
322
|
+
.pluralize
|
323
|
+
end
|
324
|
+
end
|