keppler 2.0.0
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 +7 -0
- data/Gemfile +6 -0
- data/README.md +43 -0
- data/Rakefile +2 -0
- data/bin/console +15 -0
- data/bin/keppler +5 -0
- data/bin/setup +7 -0
- data/installer/core/Gemfile +113 -0
- data/installer/core/Guardfile +18 -0
- data/installer/core/README.md +87 -0
- data/installer/core/Rakefile +6 -0
- data/installer/core/_config.yml +1 -0
- data/installer/core/app/assets/images/admin/favicon.png +0 -0
- data/installer/core/app/assets/images/admin/logo.png +0 -0
- data/installer/core/app/assets/images/admin/logo2.png +0 -0
- data/installer/core/app/assets/images/admin/profile-menu.jpg +0 -0
- data/installer/core/app/assets/images/admin/search.png +0 -0
- data/installer/core/app/assets/images/admin/slice-icon-orange.png +0 -0
- data/installer/core/app/assets/images/admin/slice-icon.png +0 -0
- data/installer/core/app/assets/images/admin/slice.png +0 -0
- data/installer/core/app/assets/images/admin/slice_white.png +0 -0
- data/installer/core/app/assets/images/admin/space.png +0 -0
- data/installer/core/app/assets/images/app/Home_Keppler.png +0 -0
- data/installer/core/app/assets/images/app/Home_Keppler2.png +0 -0
- data/installer/core/app/assets/images/app/keppler-front.png +0 -0
- data/installer/core/app/assets/images/app/slice-front.png +0 -0
- data/installer/core/app/assets/javascripts/admin/application.coffee +15 -0
- data/installer/core/app/assets/javascripts/admin/dropdown_top.js +7 -0
- data/installer/core/app/assets/javascripts/admin/file_upload.coffee +21 -0
- data/installer/core/app/assets/javascripts/admin/img_preview.js +18 -0
- data/installer/core/app/assets/javascripts/admin/main.coffee +42 -0
- data/installer/core/app/assets/javascripts/admin/notification.js +11 -0
- data/installer/core/app/assets/javascripts/admin/preview_template.js +21 -0
- data/installer/core/app/assets/javascripts/admin/sidebar.js +20 -0
- data/installer/core/app/assets/javascripts/admin/sort.coffee +8 -0
- data/installer/core/app/assets/javascripts/app/application.js.coffee +5 -0
- data/installer/core/app/assets/javascripts/app/front.js +129 -0
- data/installer/core/app/assets/javascripts/app/google_analytics.js.coffee +5 -0
- data/installer/core/app/assets/javascripts/ckeditor/config.js +130 -0
- data/installer/core/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js +196 -0
- data/installer/core/app/assets/javascripts/vue_admin/index.js +87 -0
- data/installer/core/app/assets/stylesheets/admin/application.scss +43 -0
- data/installer/core/app/assets/stylesheets/admin/components/layouts/_footer.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/components/layouts/_settings.scss +35 -0
- data/installer/core/app/assets/stylesheets/admin/components/module/_show.scss +0 -0
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_navbar.scss +79 -0
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +91 -0
- data/installer/core/app/assets/stylesheets/admin/components/paginator/_paginator.scss +53 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_devise.scss +162 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_files.scss +83 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_form.scss +163 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_header.scss +34 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_index.scss +331 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_listing.scss +29 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_navbar.scss +36 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_pageslide.scss +125 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_preloader.scss +283 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_search.scss +220 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_show.scss +17 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_sidebar.scss +64 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_switchs.scss +47 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_themes.scss +74 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_base.scss +66 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_mixins.scss +26 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_theme.scss +94 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_variables.scss +79 -0
- data/installer/core/app/assets/stylesheets/app/application.scss +29 -0
- data/installer/core/app/assets/stylesheets/app/base/_base_project.scss +17 -0
- data/installer/core/app/assets/stylesheets/app/base/_typography.scss +1 -0
- data/installer/core/app/assets/stylesheets/app/components/_buttons.scss +0 -0
- data/installer/core/app/assets/stylesheets/app/components/_inputs.scss +0 -0
- data/installer/core/app/assets/stylesheets/app/components/_navbar.scss +21 -0
- data/installer/core/app/assets/stylesheets/app/layout/_container.scss +0 -0
- data/installer/core/app/assets/stylesheets/app/layout/_footer.scss +15 -0
- data/installer/core/app/assets/stylesheets/app/layout/_header.scss +0 -0
- data/installer/core/app/assets/stylesheets/app/pages/_front.sass +58 -0
- data/installer/core/app/assets/stylesheets/app/plugins/_bootstrap_override.scss +37 -0
- data/installer/core/app/assets/stylesheets/app/plugins/_font_awesome.scss +2 -0
- data/installer/core/app/assets/stylesheets/app/plugins/_keppler.scss +54 -0
- data/installer/core/app/assets/stylesheets/app/plugins/_npogress.scss +2 -0
- data/installer/core/app/assets/stylesheets/app/utils/_mixins.scss +18 -0
- data/installer/core/app/assets/stylesheets/app/utils/_variables.scss +28 -0
- data/installer/core/app/assets/stylesheets/errors/application.scss +3 -0
- data/installer/core/app/assets/stylesheets/errors/errors.scss +120 -0
- data/installer/core/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +141 -0
- data/installer/core/app/controllers/admin/admin_controller.rb +72 -0
- data/installer/core/app/controllers/admin/customizes_controller.rb +109 -0
- data/installer/core/app/controllers/admin/meta_tags_controller.rb +124 -0
- data/installer/core/app/controllers/admin/scripts_controller.rb +131 -0
- data/installer/core/app/controllers/admin/settings_controller.rb +111 -0
- data/installer/core/app/controllers/admin/users_controller.rb +119 -0
- data/installer/core/app/controllers/app/app_controller.rb +23 -0
- data/installer/core/app/controllers/app/front_controller.rb +10 -0
- data/installer/core/app/controllers/application_controller.rb +96 -0
- data/installer/core/app/controllers/devise/sessions_controller.rb +104 -0
- data/installer/core/app/controllers/errors_controller.rb +28 -0
- data/installer/core/app/helpers/admin_helper.rb +117 -0
- data/installer/core/app/helpers/application_helper.rb +21 -0
- data/installer/core/app/helpers/customizes_helper.rb +2 -0
- data/installer/core/app/helpers/fronts_helper.rb +2 -0
- data/installer/core/app/helpers/scaffolds_helper.rb +2 -0
- data/installer/core/app/inputs/checkbox_material_input.rb +75 -0
- data/installer/core/app/inputs/file_material_input.rb +33 -0
- data/installer/core/app/mailers/application_mailer.rb +28 -0
- data/installer/core/app/models/appearance.rb +5 -0
- data/installer/core/app/models/application_record.rb +3 -0
- data/installer/core/app/models/concerns/activity_history.rb +9 -0
- data/installer/core/app/models/concerns/clone_record.rb +12 -0
- data/installer/core/app/models/customize.rb +154 -0
- data/installer/core/app/models/front.rb +2 -0
- data/installer/core/app/models/google_analytics_setting.rb +4 -0
- data/installer/core/app/models/meta_tag.rb +41 -0
- data/installer/core/app/models/role.rb +11 -0
- data/installer/core/app/models/script.rb +30 -0
- data/installer/core/app/models/setting.rb +17 -0
- data/installer/core/app/models/smtp_setting.rb +5 -0
- data/installer/core/app/models/social_account.rb +4 -0
- data/installer/core/app/models/user.rb +44 -0
- data/installer/core/app/policies/application_policy.rb +16 -0
- data/installer/core/app/policies/controller_policy.rb +53 -0
- data/installer/core/app/policies/customize_policy.rb +9 -0
- data/installer/core/app/policies/meta_tag_policy.rb +9 -0
- data/installer/core/app/policies/script_policy.rb +9 -0
- data/installer/core/app/policies/setting_policy.rb +9 -0
- data/installer/core/app/policies/user_policy.rb +17 -0
- data/installer/core/app/uploaders/attachment_uploader.rb +44 -0
- data/installer/core/app/uploaders/ckeditor_attachment_file_uploader.rb +36 -0
- data/installer/core/app/uploaders/ckeditor_picture_uploader.rb +47 -0
- data/installer/core/app/uploaders/template_uploader.rb +44 -0
- data/installer/core/app/views/admin/customizes/_description.html.haml +13 -0
- data/installer/core/app/views/admin/customizes/_form.html.haml +33 -0
- data/installer/core/app/views/admin/customizes/_listing.html.haml +15 -0
- data/installer/core/app/views/admin/customizes/_switch_default_template.html.haml +16 -0
- data/installer/core/app/views/admin/customizes/_switch_template.html.haml +22 -0
- data/installer/core/app/views/admin/customizes/index.html.haml +38 -0
- data/installer/core/app/views/admin/customizes/new.html.haml +4 -0
- data/installer/core/app/views/admin/layouts/_footer.html.haml +8 -0
- data/installer/core/app/views/admin/layouts/_head.html.haml +8 -0
- data/installer/core/app/views/admin/layouts/_header.html.haml +7 -0
- data/installer/core/app/views/admin/layouts/_listing_preloader.haml +5 -0
- data/installer/core/app/views/admin/layouts/_messages.html.haml +4 -0
- data/installer/core/app/views/admin/layouts/_navigation.html.haml +46 -0
- data/installer/core/app/views/admin/layouts/_preloader.html.haml +9 -0
- data/installer/core/app/views/admin/layouts/_search.html.haml +8 -0
- data/installer/core/app/views/admin/layouts/_sidebar.html.haml +63 -0
- data/installer/core/app/views/admin/layouts/application.html.haml +23 -0
- data/installer/core/app/views/admin/layouts/index/remote_messages.js.haml +9 -0
- data/installer/core/app/views/admin/meta_tags/_description.html.haml +13 -0
- data/installer/core/app/views/admin/meta_tags/_form.html.haml +57 -0
- data/installer/core/app/views/admin/meta_tags/_index_show.html.haml +26 -0
- data/installer/core/app/views/admin/meta_tags/_listing.html.haml +39 -0
- data/installer/core/app/views/admin/meta_tags/edit.html.haml +2 -0
- data/installer/core/app/views/admin/meta_tags/index.html.haml +80 -0
- data/installer/core/app/views/admin/meta_tags/new.html.haml +2 -0
- data/installer/core/app/views/admin/meta_tags/reload.js.haml +5 -0
- data/installer/core/app/views/admin/meta_tags/show.html.haml +29 -0
- data/installer/core/app/views/admin/meta_tags/show.js.haml +4 -0
- data/installer/core/app/views/admin/scripts/_description.html.haml +13 -0
- data/installer/core/app/views/admin/scripts/_form.html.haml +31 -0
- data/installer/core/app/views/admin/scripts/_index_show.html.haml +26 -0
- data/installer/core/app/views/admin/scripts/_listing.html.haml +42 -0
- data/installer/core/app/views/admin/scripts/edit.html.haml +1 -0
- data/installer/core/app/views/admin/scripts/index.html.haml +82 -0
- data/installer/core/app/views/admin/scripts/new.html.haml +1 -0
- data/installer/core/app/views/admin/scripts/reload.js.haml +5 -0
- data/installer/core/app/views/admin/scripts/show.html.haml +29 -0
- data/installer/core/app/views/admin/scripts/show.js.haml +4 -0
- data/installer/core/app/views/admin/settings/_form.html.haml +9 -0
- data/installer/core/app/views/admin/settings/components/_preview.html.haml +30 -0
- data/installer/core/app/views/admin/settings/edit.html.haml +4 -0
- data/installer/core/app/views/admin/settings/fields/_appearance.html.haml +62 -0
- data/installer/core/app/views/admin/settings/fields/_basic_information.html.haml +48 -0
- data/installer/core/app/views/admin/settings/fields/_email_setting.html.haml +17 -0
- data/installer/core/app/views/admin/settings/fields/_google_analytics_setting.html.haml +28 -0
- data/installer/core/app/views/admin/settings/fields/_social_accounts.html.haml +42 -0
- data/installer/core/app/views/admin/users/_description.html.haml +13 -0
- data/installer/core/app/views/admin/users/_form.html.haml +59 -0
- data/installer/core/app/views/admin/users/_index_show.html.haml +24 -0
- data/installer/core/app/views/admin/users/_listing.html.haml +49 -0
- data/installer/core/app/views/admin/users/edit.html.haml +1 -0
- data/installer/core/app/views/admin/users/index.html.haml +72 -0
- data/installer/core/app/views/admin/users/new.html.haml +1 -0
- data/installer/core/app/views/admin/users/reload.js.haml +5 -0
- data/installer/core/app/views/admin/users/show.html.haml +36 -0
- data/installer/core/app/views/admin/users/show.js.haml +4 -0
- data/installer/core/app/views/app/front/index.html.haml +180 -0
- data/installer/core/app/views/app/layouts/_footer.html.haml +3 -0
- data/installer/core/app/views/app/layouts/_google_analytics.html.haml +14 -0
- data/installer/core/app/views/app/layouts/_head.html.haml +22 -0
- data/installer/core/app/views/app/layouts/_messages.html.haml +6 -0
- data/installer/core/app/views/app/layouts/_meta_tags.html.haml +9 -0
- data/installer/core/app/views/app/layouts/_navigation.html.haml +13 -0
- data/installer/core/app/views/app/layouts/_navigation_links.html.haml +6 -0
- data/installer/core/app/views/app/layouts/application.html.haml +10 -0
- data/installer/core/app/views/application_mailer/testing.html.haml +1 -0
- data/installer/core/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
- data/installer/core/app/views/devise/passwords/edit.html.haml +27 -0
- data/installer/core/app/views/devise/passwords/new.html.haml +22 -0
- data/installer/core/app/views/devise/registrations/edit.html.erb +48 -0
- data/installer/core/app/views/devise/registrations/new.html.erb +19 -0
- data/installer/core/app/views/devise/sessions/new.html.haml +30 -0
- data/installer/core/app/views/errors/internal_server_error.html.haml +7 -0
- data/installer/core/app/views/errors/not_authorized.html.haml +7 -0
- data/installer/core/app/views/errors/not_found.html.haml +7 -0
- data/installer/core/app/views/errors/unprocessable.html.haml +7 -0
- data/installer/core/app/views/kaminari/_first_page.html.haml +11 -0
- data/installer/core/app/views/kaminari/_gap.html.haml +8 -0
- data/installer/core/app/views/kaminari/_last_page.html.haml +11 -0
- data/installer/core/app/views/kaminari/_next_page.html.haml +11 -0
- data/installer/core/app/views/kaminari/_page.html.haml +10 -0
- data/installer/core/app/views/kaminari/_paginator.html.haml +18 -0
- data/installer/core/app/views/kaminari/_prev_page.html.haml +11 -0
- data/installer/core/app/views/keppler_ga_dashboard/dashboard/analytics.html.haml +600 -0
- data/installer/core/app/views/layouts/errors/_head.html.haml +3 -0
- data/installer/core/app/views/layouts/errors/application.html.haml +11 -0
- data/installer/core/app/views/layouts/mailers/mailer.html.haml +3 -0
- data/installer/core/app/views/layouts/mailers/mailer.text.haml +1 -0
- data/installer/core/app/views/layouts/templates/application.html.haml +1 -0
- data/installer/core/app/views/public_activity/layout/_create.html.haml +45 -0
- data/installer/core/app/views/public_activity/layout/_destroy.html.haml +15 -0
- data/installer/core/app/views/public_activity/layout/_update.html.haml +45 -0
- data/installer/core/app/views/public_activity/session/_create.html.haml +13 -0
- data/installer/core/app/views/public_activity/session/_destroy.html.haml +13 -0
- data/installer/core/app/views/templates/kaminari/_first_page.html.haml +9 -0
- data/installer/core/app/views/templates/kaminari/_gap.html.haml +8 -0
- data/installer/core/app/views/templates/kaminari/_last_page.html.haml +9 -0
- data/installer/core/app/views/templates/kaminari/_next_page.html.haml +9 -0
- data/installer/core/app/views/templates/kaminari/_page.html.haml +10 -0
- data/installer/core/app/views/templates/kaminari/_paginator.html.haml +18 -0
- data/installer/core/app/views/templates/kaminari/_prev_page.html.haml +9 -0
- data/installer/core/bin/bundle +3 -0
- data/installer/core/bin/rails +4 -0
- data/installer/core/bin/rake +4 -0
- data/installer/core/bin/setup +29 -0
- data/installer/core/bin/spring +15 -0
- data/installer/core/config.ru +4 -0
- data/installer/core/config/application.rb +46 -0
- data/installer/core/config/boot.rb +7 -0
- data/installer/core/config/database.yml +25 -0
- data/installer/core/config/environment.rb +10 -0
- data/installer/core/config/environments/development.rb +57 -0
- data/installer/core/config/environments/production.rb +105 -0
- data/installer/core/config/environments/test.rb +44 -0
- data/installer/core/config/gaAuth/gauth_key.p12 +0 -0
- data/installer/core/config/initializers/assets.rb +14 -0
- data/installer/core/config/initializers/cookies_serializer.rb +3 -0
- data/installer/core/config/initializers/date_formats.rb +2 -0
- data/installer/core/config/initializers/devise.rb +259 -0
- data/installer/core/config/initializers/filter_parameter_logging.rb +5 -0
- data/installer/core/config/initializers/inflections.rb +16 -0
- data/installer/core/config/initializers/keppler_configuration.rb +9 -0
- data/installer/core/config/initializers/mime_types.rb +6 -0
- data/installer/core/config/initializers/paginate_kaminari_configuration.rb +12 -0
- data/installer/core/config/initializers/rolify.rb +10 -0
- data/installer/core/config/initializers/route_traslator.rb +3 -0
- data/installer/core/config/initializers/session_store.rb +5 -0
- data/installer/core/config/initializers/simple_form.rb +170 -0
- data/installer/core/config/initializers/simple_form_bootstrap.rb +155 -0
- data/installer/core/config/initializers/time_formats.rb +2 -0
- data/installer/core/config/initializers/wrap_parameters.rb +15 -0
- data/installer/core/config/locales/devise.en.yml +61 -0
- data/installer/core/config/locales/devise.es.yml +62 -0
- data/installer/core/config/locales/en.yml +380 -0
- data/installer/core/config/locales/es.yml +420 -0
- data/installer/core/config/locales/routes.en.yml +4 -0
- data/installer/core/config/locales/routes.es.yml +5 -0
- data/installer/core/config/locales/simple_form.en.yml +45 -0
- data/installer/core/config/locales/simple_form.es.yml +95 -0
- data/installer/core/config/locales/social_share_button.es.yml +10 -0
- data/installer/core/config/menu.yml +53 -0
- data/installer/core/config/puma.rb +56 -0
- data/installer/core/config/routes.rb +94 -0
- data/installer/core/config/sitemap.rb +27 -0
- data/installer/core/config/spring.rb +6 -0
- data/installer/core/db/migrate/20140812203549_devise_create_users.rb +50 -0
- data/installer/core/db/migrate/20140812210925_rolify_create_roles.rb +19 -0
- data/installer/core/db/migrate/20151221173228_create_activities.rb +23 -0
- data/installer/core/db/migrate/20160122201215_create_settings.rb +15 -0
- data/installer/core/db/migrate/20160126141856_create_smtp_settings.rb +14 -0
- data/installer/core/db/migrate/20160128131802_create_scripts.rb +11 -0
- data/installer/core/db/migrate/20160128151351_create_google_analytics_settings.rb +12 -0
- data/installer/core/db/migrate/20160128193740_create_social_accounts.rb +25 -0
- data/installer/core/db/migrate/20160201134918_create_meta_tags.rb +13 -0
- data/installer/core/db/migrate/20160201210520_create_appearances.rb +11 -0
- data/installer/core/db/migrate/20170603145521_create_customizes.rb +10 -0
- data/installer/core/db/migrate/20171225023933_create_scaffolds.rb +10 -0
- data/installer/core/db/schema.rb +172 -0
- data/installer/core/db/seeds.rb +45 -0
- data/installer/core/lib/generators/keppler_front/keppler_front_generator.rb +139 -0
- data/installer/core/lib/generators/keppler_front/templates/controllers/controller.rb +17 -0
- data/installer/core/lib/generators/keppler_front/templates/views/template.html.haml +180 -0
- data/installer/core/lib/generators/keppler_relation/keppler_relation_generator.rb +219 -0
- data/installer/core/lib/generators/keppler_scaffold/keppler_scaffold_generator.rb +240 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/controllers/controller.rb +143 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/models/model.rb +41 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/policies/policy.rb +9 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_description.html.haml +13 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_form.html.haml +60 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.html.haml +24 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_listing.html.haml +64 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/edit.html.haml +1 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/index.html.haml +97 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/new.html.haml +1 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/show.html.haml +65 -0
- data/installer/core/lib/generators/keppler_scaffold/templates/views/show.js.haml +4 -0
- data/installer/core/lib/keppler_configuration.rb +12 -0
- data/installer/core/lib/templates/haml/scaffold/_form.html.haml +10 -0
- data/installer/core/plugins/keppler_ga_dashboard/Gemfile +15 -0
- data/installer/core/plugins/keppler_ga_dashboard/MIT-LICENSE +20 -0
- data/installer/core/plugins/keppler_ga_dashboard/README.md +51 -0
- data/installer/core/plugins/keppler_ga_dashboard/Rakefile +37 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/active-users.js +64 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/active-users.js.map +1 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/dashboard.coffee +13 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/date-range-selector.js +2 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/date-range-selector.js.map +1 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js +196 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js.map +1 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/stylesheets/dashboard.scss +83 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/controllers/keppler_ga_dashboard/dashboard_controller.rb +48 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/helpers/keppler_ga_dashboard/application_helper.rb +4 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/helpers/keppler_ga_dashboard/dashboard_helper.rb +14 -0
- data/installer/core/plugins/keppler_ga_dashboard/app/views/keppler_ga_dashboard/dashboard/analytics.html.haml +359 -0
- data/installer/core/plugins/keppler_ga_dashboard/bin/rails +12 -0
- data/installer/core/plugins/keppler_ga_dashboard/config/menu.yml +6 -0
- data/installer/core/plugins/keppler_ga_dashboard/config/routes.rb +3 -0
- data/installer/core/plugins/keppler_ga_dashboard/keppler_ga_dashboard.gemspec +22 -0
- data/installer/core/plugins/keppler_ga_dashboard/lib/keppler_ga_dashboard.rb +10 -0
- data/installer/core/plugins/keppler_ga_dashboard/lib/keppler_ga_dashboard/engine.rb +5 -0
- data/installer/core/plugins/keppler_ga_dashboard/lib/keppler_ga_dashboard/tasks/install.rb +58 -0
- data/installer/core/plugins/keppler_ga_dashboard/lib/keppler_ga_dashboard/version.rb +3 -0
- data/installer/core/plugins/keppler_ga_dashboard/lib/tasks/keppler_ga_dashboard_tasks.rake +13 -0
- data/installer/core/public/favicon.ico +0 -0
- data/installer/core/public/humans.txt +20 -0
- data/installer/core/public/robots.txt +5 -0
- data/installer/core/test/controllers/admin_controller_test.rb +11 -0
- data/installer/core/test/controllers/errors_controller_test.rb +24 -0
- data/installer/core/test/controllers/frontend_controller_test.rb +9 -0
- data/installer/core/test/controllers/fronts_controller_test.rb +49 -0
- data/installer/core/test/controllers/meta_tags_controller_test.rb +49 -0
- data/installer/core/test/controllers/scaffolds_controller_test.rb +49 -0
- data/installer/core/test/controllers/scripts_controller_test.rb +49 -0
- data/installer/core/test/controllers/settings_controller_test.rb +49 -0
- data/installer/core/test/controllers/users_controller_test.rb +18 -0
- data/installer/core/test/fixtures/appearances.yml +11 -0
- data/installer/core/test/fixtures/caches.yml +7 -0
- data/installer/core/test/fixtures/fronts.yml +7 -0
- data/installer/core/test/fixtures/google_adwords.yml +13 -0
- data/installer/core/test/fixtures/google_analytics_settings.yml +13 -0
- data/installer/core/test/fixtures/meta_tags.yml +13 -0
- data/installer/core/test/fixtures/roles.yml +11 -0
- data/installer/core/test/fixtures/scaffolds.yml +9 -0
- data/installer/core/test/fixtures/scripts.yml +11 -0
- data/installer/core/test/fixtures/settings.yml +13 -0
- data/installer/core/test/fixtures/smtp_settings.yml +17 -0
- data/installer/core/test/fixtures/social_accounts.yml +39 -0
- data/installer/core/test/fixtures/users.yml +10 -0
- data/installer/core/test/helpers/admin_helper_test.rb +4 -0
- data/installer/core/test/helpers/frontend_helper_test.rb +4 -0
- data/installer/core/test/mailers/application_mailer_test.rb +7 -0
- data/installer/core/test/mailers/previews/application_mailer_preview.rb +4 -0
- data/installer/core/test/models/apparence_test.rb +7 -0
- data/installer/core/test/models/cache_test.rb +7 -0
- data/installer/core/test/models/front_test.rb +7 -0
- data/installer/core/test/models/google_analytics_setting_test.rb +7 -0
- data/installer/core/test/models/meta_tag_test.rb +7 -0
- data/installer/core/test/models/role_test.rb +7 -0
- data/installer/core/test/models/scaffold_test.rb +7 -0
- data/installer/core/test/models/script_test.rb +7 -0
- data/installer/core/test/models/setting_test.rb +7 -0
- data/installer/core/test/models/smtp_setting_test.rb +7 -0
- data/installer/core/test/models/social_account_test.rb +7 -0
- data/installer/core/test/models/user_test.rb +7 -0
- data/installer/core/test/test_helper.rb +16 -0
- data/installer/core/vendor/assets/javascripts/bounce.min.js +5 -0
- data/installer/db_conf/conf.yml +50 -0
- data/installer/lib/conf.rb +31 -0
- data/installer/lib/scaffold.rb +10 -0
- data/installer/run.sh +19 -0
- data/installer/scripts/bin.sh +61 -0
- data/lib/keppler.rb +7 -0
- data/lib/keppler/cli.rb +12 -0
- data/lib/keppler/cli/generate.rb +19 -0
- data/lib/keppler/version.rb +3 -0
- metadata +497 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
.col-lg-12
|
2
|
+
= f.simple_fields_for :smtp_setting do |f|
|
3
|
+
.box.slice-box
|
4
|
+
.box-header.with-border
|
5
|
+
%h3.box-title
|
6
|
+
Email configuration (SMTP)
|
7
|
+
.box-tools.pull-right
|
8
|
+
%a.btn.btn-box-tool{"data-widget" => "collapse", type: "button"}
|
9
|
+
%i.fa.fa-minus
|
10
|
+
.box-body.pure-input
|
11
|
+
= f.input :address
|
12
|
+
= f.input :port
|
13
|
+
= f.input :domain_name
|
14
|
+
= f.input :email
|
15
|
+
= f.input :password
|
16
|
+
.pull-right
|
17
|
+
= f.button :submit, t("keppler.actions.apply"), :class => "btn-primary"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.col-lg-12
|
2
|
+
.box.slice-box
|
3
|
+
.box-header.with-border
|
4
|
+
%h3.box-title
|
5
|
+
Google Analytics Settings
|
6
|
+
.box-tools.pull-right
|
7
|
+
%a.btn.btn-box-tool{'data-widget' => 'collapse', type: 'button'}
|
8
|
+
%i.fa.fa-minus
|
9
|
+
.box-body.pure-input
|
10
|
+
.container
|
11
|
+
= f.simple_fields_for :google_analytics_setting do |f|
|
12
|
+
.row
|
13
|
+
.col-lg-6.col-md-6.col-sm-12.col-xs-12
|
14
|
+
= f.input :ga_account_id
|
15
|
+
.col-lg-6.col-md-6.col-sm-12.col-xs-12
|
16
|
+
= f.input :ga_tracking_id
|
17
|
+
.row
|
18
|
+
.col-lg-6.col-md-6.col-sm-12.col-xs-12
|
19
|
+
.form-group.string.optional
|
20
|
+
.checkbox
|
21
|
+
%label{ for: 'setting_google_analytics_setting_attributes_ga_status' }
|
22
|
+
%span.label-text Ga Status
|
23
|
+
%input{ type: 'checkbox', name: 'setting[google_analytics_setting_attributes][ga_status]', value: 0, id: 'setting_google_analytics_setting_attributes_ga_status', 'checklist-model' => 'check', 'checklist-value' => 'ga_status', '@click' => 'listDelete(ga_status)'}
|
24
|
+
%span.cr
|
25
|
+
%i.cr-icon.glyphicon.glyphicon-ok
|
26
|
+
.col-lg-6.col-md-6.col-sm-12.col-xs-12
|
27
|
+
.pull-right
|
28
|
+
= f.button :submit, t('keppler.actions.apply'), :class => 'btn-primary'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.social-medias-setting.col-lg-12
|
2
|
+
.box.slice-box
|
3
|
+
.box-header.with-border
|
4
|
+
%h3.box-title
|
5
|
+
Email configuration (SMTP)
|
6
|
+
.box-tools.pull-right
|
7
|
+
%a.btn.btn-box-tool{"data-widget" => "collapse", type: "button"}
|
8
|
+
%i.fa.fa-minus
|
9
|
+
.box-body.pure-input
|
10
|
+
= f.simple_fields_for :social_account do |f|
|
11
|
+
.row
|
12
|
+
- @social_medias.each_with_index do |social, color|
|
13
|
+
.col-lg-6.col-md-6.col-sm-12.col-xs-12
|
14
|
+
= f.input social
|
15
|
+
|
16
|
+
-# To show a social media icon before input
|
17
|
+
:javascript
|
18
|
+
var input = $("#setting_social_account_attributes_#{social}")
|
19
|
+
input.before(
|
20
|
+
`<i style="color:#9e9e9e" class="social-icons prefix fa fa-#{social.to_s.split('_').join('-')}"></i>`
|
21
|
+
)
|
22
|
+
input.focus(function(){
|
23
|
+
$('.fa-#{social.to_s.split('_').join('-')}').css('color', "#{@colors[color]}")
|
24
|
+
})
|
25
|
+
input.blur(function(){
|
26
|
+
$('.fa-#{social.to_s.split('_').join('-')}').css('color', "#9e9e9e")
|
27
|
+
})
|
28
|
+
|
29
|
+
-# To activate colors in social media inputs
|
30
|
+
:sass
|
31
|
+
.setting_social_account_#{social}
|
32
|
+
i.active
|
33
|
+
color: #{@colors[color]} !important
|
34
|
+
input:focus:not([readonly])
|
35
|
+
border: 1px solid #{@colors[color]} !important
|
36
|
+
// box-shadow: 0 1px 0 0 #{@colors[color]} !important
|
37
|
+
.control-label.active
|
38
|
+
color: #{@colors[color]} !important
|
39
|
+
.row
|
40
|
+
.col-lg-12
|
41
|
+
.pull-right
|
42
|
+
= f.button :submit, t("keppler.actions.apply"), :class => "btn-primary"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
%aside.control-sidebar.control-sidebar-light
|
2
|
+
.tab-content
|
3
|
+
%p.control-sidebar-heading
|
4
|
+
= @activities.empty? ? t('keppler.messages.no_events') : t("keppler.titles.history")
|
5
|
+
%ul.timeline
|
6
|
+
- @activities.each do |activity|
|
7
|
+
- if activity.trackable_type.eql? "Session"
|
8
|
+
%li
|
9
|
+
= render partial: "public_activity/session/#{activity.key.split(".").second}", locals: { activity: activity, method: "name" }
|
10
|
+
- else
|
11
|
+
%li
|
12
|
+
= render partial: "public_activity/layout/#{activity.key.split(".").second}", locals: { activity: activity, method: "name" }
|
13
|
+
.control-sidebar-bg
|
@@ -0,0 +1,59 @@
|
|
1
|
+
= simple_form_for [:admin, @user] do |f|
|
2
|
+
.container
|
3
|
+
|
4
|
+
.row
|
5
|
+
.col-xs-12
|
6
|
+
= link_to admin_users_path, class: "", "data-position" => "bottom", "data-tooltip" => t("keppler.actions.back") do
|
7
|
+
.arrow-back.btn.btn-default
|
8
|
+
%i.fa.fa-angle-left
|
9
|
+
= t('keppler.actions.back')
|
10
|
+
.row
|
11
|
+
.col-md-4.col-sm-5
|
12
|
+
.box.slice-box
|
13
|
+
.box-body.box-profile
|
14
|
+
.upload-image
|
15
|
+
.files.form-group.trigger{ class: "#{'files-absolute' unless @user.avatar.blank?}" }
|
16
|
+
#icon-file
|
17
|
+
+
|
18
|
+
= f.file_field :avatar, class: 'photo_upload'
|
19
|
+
%center#image
|
20
|
+
= image_tag "#{@user.avatar.blank? ? 'avatar.png' : @user.avatar}", class: "#{'hidden' if @user.avatar.blank?} image_to_upload"
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
.col-md-8.col-sm-7
|
25
|
+
.box.slice-box
|
26
|
+
.box-header.with-border
|
27
|
+
%h3.box-title User
|
28
|
+
|
29
|
+
|
30
|
+
.box-body
|
31
|
+
%table.table.table-bordered
|
32
|
+
%tbody
|
33
|
+
.form-padding
|
34
|
+
.row
|
35
|
+
.col-lg-6
|
36
|
+
= f.input :name, label: false, placeholder: "Name", input_html: {class: "form-control"}, required: true
|
37
|
+
|
38
|
+
.col-lg-6
|
39
|
+
= f.input :email, label: false, placeholder: "Email", input_html: {class: "form-control"}, required: true
|
40
|
+
.row
|
41
|
+
.col-xs-12
|
42
|
+
-# = f.input :role_ids, label: false, collection: @roles, include_blank: t("keppler.actions.select_rol"), input_html: { class: "form-control" }, required: true
|
43
|
+
.form-group
|
44
|
+
%select#user_role_ids.form-control.select.required.form-control{"aria-required" => "true", :name => "user[role_ids]", :required => "required"}
|
45
|
+
%option{:value => ""} Seleccionar rol
|
46
|
+
- @roles.each do |role|
|
47
|
+
%option{ value: role.last }= role.first
|
48
|
+
|
49
|
+
.row
|
50
|
+
.col-lg-6
|
51
|
+
= f.input :password, label: false, placeholder: "Password", input_html: {class: "form-control"}, required: true
|
52
|
+
.col-lg-6
|
53
|
+
= f.input :password_confirmation, label: false, placeholder: "Password Confirmation", input_html: {class: "form-control"}, required: true
|
54
|
+
|
55
|
+
.row
|
56
|
+
.col-lg-12
|
57
|
+
.pull-right
|
58
|
+
= f.button :submit, t("keppler.actions.save"), name: "_save", class: "btn-primary"
|
59
|
+
= f.button :submit, t("keppler.actions.save_and_add_another"), name: "_add_other"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.tab-content
|
2
|
+
%h6.actions
|
3
|
+
- if Pundit.policy(current_user, User).update?
|
4
|
+
= link_to edit_admin_user_path(@user), title: t("keppler.actions.edit"), class: 'pull-left' do
|
5
|
+
%i.icon-pencil
|
6
|
+
%span= t('keppler.actions.edit')
|
7
|
+
%a#close-index-show.pull-right
|
8
|
+
%i.icon-close
|
9
|
+
%p.control-sidebar-heading
|
10
|
+
%i.icon-user
|
11
|
+
%b= "#{@user.name}"
|
12
|
+
%small= "(#{@user.rol.humanize})"
|
13
|
+
= image_tag @user.avatar
|
14
|
+
%ul.timeline
|
15
|
+
- @user.as_json(only: ["id", "name", "permalink", "email", "created_at", "sign_in_count", "updated_at", "password"]).each do |attribute, value|
|
16
|
+
%li.list-row
|
17
|
+
.timeline-item
|
18
|
+
%h6.timeline-header.no-border
|
19
|
+
%small
|
20
|
+
%strong.display-value= t("activerecord.attributes.#{attribute}")
|
21
|
+
%p.display-label= value
|
22
|
+
:coffee
|
23
|
+
$('#close-index-show').click ->
|
24
|
+
$('#index-show').css 'right', -$('#index-show').outerWidth()
|
@@ -0,0 +1,49 @@
|
|
1
|
+
- objects.each do |user|
|
2
|
+
%tr{ id: "row-#{user.id}" }
|
3
|
+
- if Pundit.policy(current_user, User).destroy_multiple?
|
4
|
+
%td.item-check{style:"width: 10%"}
|
5
|
+
- if user.id.eql?(current_user.id)
|
6
|
+
- else
|
7
|
+
.checkbox
|
8
|
+
%label{ for: "checkbox-#{user.id}" }
|
9
|
+
%input{ type:"checkbox", id: "checkbox-#{user.id}", 'checklist-model' => 'check', 'checklist-value' => "#{user.id}", 'ng-click' => "selectByCheck(#{@objects.size})", '@click' => "listDelete(#{user.id})"}
|
10
|
+
%span.cr
|
11
|
+
%i.cr-icon.glyphicon.glyphicon-ok
|
12
|
+
|
13
|
+
%td.avatar
|
14
|
+
= link_to admin_user_path(user, search: @query), remote: true, class: 'show-row' do
|
15
|
+
= image_tag user.avatar
|
16
|
+
%td.visible-lg.visible-md
|
17
|
+
= link_to admin_user_path(user, search: @query), remote: true, class: 'show-row' do
|
18
|
+
%span= user.name
|
19
|
+
%td
|
20
|
+
= link_to admin_user_path(user, search: @query), remote: true, class: 'show-row' do
|
21
|
+
%span= user.email
|
22
|
+
%td.visible-lg.visible-md
|
23
|
+
= link_to admin_user_path(user, search: @query), remote: true, class: 'show-row' do
|
24
|
+
%span= user.rol.humanize
|
25
|
+
%td{ style: 'padding-right: 30px' }
|
26
|
+
%a.action-btn.pull-right{ id: "menu-#{user.id}", 'aria-expanded' => 'false', 'aria-haspopup' => 'true', 'data-toggle' => 'dropdown'}
|
27
|
+
%i.icon-options-vertical
|
28
|
+
%ul.actions.dropdown-menu{'aria-labelledby' => "menu-#{user.id}"}
|
29
|
+
- if Pundit.policy(current_user, User).show?
|
30
|
+
%li
|
31
|
+
= link_to admin_user_path(user), class: 'new-menu', title: t('keppler.actions.show') do
|
32
|
+
%i.icon-eye
|
33
|
+
= t('keppler.actions.show')
|
34
|
+
- if Pundit.policy(current_user, User).update?
|
35
|
+
%li
|
36
|
+
= link_to edit_admin_user_path(user), class: 'new-menu', title: t('keppler.actions.edit') do
|
37
|
+
%i.icon-pencil
|
38
|
+
= t('keppler.actions.edit')
|
39
|
+
- if Pundit.policy(current_user, User).clone?
|
40
|
+
%li
|
41
|
+
= link_to admin_user_path(user), class: 'new-menu', title: t('keppler.actions.clone') do
|
42
|
+
%i.icon-docs
|
43
|
+
= t('keppler.actions.clone')
|
44
|
+
- if Pundit.policy(current_user, User).destroy?
|
45
|
+
- unless user.id.eql?(current_user.id)
|
46
|
+
%li
|
47
|
+
= link_to admin_user_path(user), class: 'new-menu', title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do
|
48
|
+
%i.icon-trash
|
49
|
+
= t('keppler.actions.delete')
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,72 @@
|
|
1
|
+
#index-container{ :controller => 'users' }
|
2
|
+
.container
|
3
|
+
.row
|
4
|
+
.listing.col-lg-12.col-xs-12
|
5
|
+
%section.content-header.index-header
|
6
|
+
%h1{ style: 'display: inline-block' }
|
7
|
+
= t("keppler.modules.#{controller_path.underscore}")
|
8
|
+
= entries(@total, @objects)
|
9
|
+
.toolbar
|
10
|
+
.toolbar-item
|
11
|
+
= link_to admin_users_path(:format => :xls), class: "tool-btn", title: t('keppler.actions.download_records') do
|
12
|
+
%i.icon-cloud-download
|
13
|
+
.toolbar-item
|
14
|
+
= link_to reload_admin_users_path, class: "tool-btn", remote: true do
|
15
|
+
%i.icon-reload
|
16
|
+
- if Pundit.policy(current_user, User).destroy_multiple?
|
17
|
+
.toolbar-item
|
18
|
+
.checkbox
|
19
|
+
%label{ for: 'checkbox-all' }
|
20
|
+
%input{ type: 'checkbox', id: 'checkbox-all', ':disabled' => 'checkItems ? disabled : ""', '@click' => 'selectAll()' }
|
21
|
+
%span.cr
|
22
|
+
%i.cr-icon.glyphicon.glyphicon-ok
|
23
|
+
.toolbar-item
|
24
|
+
%a.tool-btn{"data-confirm" => "¿Estás seguro?", "data-method" => "delete", "v-bind:href" => "link", :rel => "nofollow", ":class" => "{disabled: !checks}" }
|
25
|
+
%i.icon-trash
|
26
|
+
%ol.breadcrumb
|
27
|
+
%li
|
28
|
+
%a{ href: '#' }
|
29
|
+
%i.icon-directions
|
30
|
+
= t("keppler.modules.#{action_name.underscore}")
|
31
|
+
.box.slice-box
|
32
|
+
.box-body.no-padding
|
33
|
+
%table.table.table-striped
|
34
|
+
%thead
|
35
|
+
- if @objects.size.zero?
|
36
|
+
%tr
|
37
|
+
%th.center
|
38
|
+
%h6= t('keppler.messages.not_found_records', model: t('keppler.models.pluralize.user'))
|
39
|
+
- else
|
40
|
+
%tr
|
41
|
+
%th
|
42
|
+
%th
|
43
|
+
%th.visible-lg.visible-md= t('activerecord.attributes.name')
|
44
|
+
%th= t('activerecord.attributes.email')
|
45
|
+
%th.visible-lg.visible-md= t('activerecord.attributes.role')
|
46
|
+
%th.center{ style: 'padding-right: 30px' }
|
47
|
+
Actions
|
48
|
+
%tbody#objects-container
|
49
|
+
= render 'admin/layouts/listing_preloader'
|
50
|
+
= render 'listing', objects: @objects
|
51
|
+
%center#paginator-module
|
52
|
+
= paginate @objects, window: 1
|
53
|
+
|
54
|
+
.listing-show.hidden-xs
|
55
|
+
= render 'description'
|
56
|
+
%aside#index-show.control-sidebar
|
57
|
+
- if Pundit.policy(current_user, User).create?
|
58
|
+
.mixed-btn
|
59
|
+
= link_to new_admin_user_path, class: 'btn-float' do
|
60
|
+
+
|
61
|
+
:javascript
|
62
|
+
$(document).ready(function(){
|
63
|
+
$('#user').click(function() {
|
64
|
+
$('#import_file_user').click()
|
65
|
+
$('#import_file_user').change(function() {
|
66
|
+
$('.waiting').css('display', 'block')
|
67
|
+
$('#import_form_user').submit()
|
68
|
+
})
|
69
|
+
});
|
70
|
+
|
71
|
+
renderImg();
|
72
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,5 @@
|
|
1
|
+
$('#objects-container').html("#{j render 'listing', objects: @objects}");
|
2
|
+
$('#objects-container').css('opacity', '0');
|
3
|
+
$('#spinner2').css('display', 'block');
|
4
|
+
var request = $.ajax({url: "/admin/users", method: "get", dataType: "html"});
|
5
|
+
request.done(function(msg){$('#spinner2').css('display', 'none');$('#objects-container').css('opacity', '1');});
|
@@ -0,0 +1,36 @@
|
|
1
|
+
.container
|
2
|
+
.row
|
3
|
+
.col-lg-2
|
4
|
+
= link_to admin_users_path, class: "", "data-position" => "bottom", "data-tooltip" => t("keppler.actions.back") do
|
5
|
+
.arrow-back.btn.btn-default
|
6
|
+
%i.fa.fa-angle-left
|
7
|
+
= t('keppler.actions.back')
|
8
|
+
.show-section
|
9
|
+
.row
|
10
|
+
.col-lg-3
|
11
|
+
.box.slice-box
|
12
|
+
.box-body.box-profile
|
13
|
+
.profile-user-img.img-responsive.bg-profile{style: "background-image: url(#{@user.avatar? ? @user.avatar : 'https://thumbs.dreamstime.com/t/profile-icon-male-avatar-portrait-casual-person-silhouette-face-flat-design-vector-46846326.jpg'})"}
|
14
|
+
%h3.profile-username.text-center= @user.name
|
15
|
+
%p.text-muted.text-center= @user.rol.humanize
|
16
|
+
.col-lg-9
|
17
|
+
.box.slice-box
|
18
|
+
.box-header.with-border
|
19
|
+
%h3.box-title Users
|
20
|
+
.box-tools.pull-right
|
21
|
+
- if Pundit.policy(current_user, User).update?
|
22
|
+
= link_to edit_admin_user_path(@user), class: "btn btn-box-tool", title: "#{t('keppler.actions.edit') }" do
|
23
|
+
%i.icon-pencil
|
24
|
+
- if Pundit.policy(current_user, User).destroy?
|
25
|
+
- unless current_user == @user
|
26
|
+
= link_to admin_user_path(@user), class: "btn btn-box-tool", title: "#{t('keppler.actions.delete')}", method: :delete, data: { confirm: t("keppler.messages.data_confirm") } do
|
27
|
+
%i.icon-trash
|
28
|
+
|
29
|
+
/ /.box-header
|
30
|
+
.box-body.box-body-no-padding
|
31
|
+
%table.table.table-striped
|
32
|
+
%tbody
|
33
|
+
- @user.as_json(only: ["id", "name", "permalink", "email", "created_at", "sign_in_count", "updated_at", "password"], methods: [:rol]).each do |attribute, value|
|
34
|
+
%tr.list-row
|
35
|
+
%th.display-label= t("activerecord.attributes.user.#{attribute}")
|
36
|
+
%td.display-value.fs-body-1.tc-black-2= value.to_s.humanize
|
@@ -0,0 +1,180 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%header
|
4
|
+
= render 'app/layouts/head'
|
5
|
+
%body
|
6
|
+
%header
|
7
|
+
= #render 'app/layouts/navigation'
|
8
|
+
%main#keppler{:role => "main"}
|
9
|
+
= #render 'app/layouts/messages'
|
10
|
+
.front
|
11
|
+
.front-logo
|
12
|
+
= image_tag "app/keppler-front.png", class: "img-responsive"
|
13
|
+
|
14
|
+
.front-social
|
15
|
+
%ul
|
16
|
+
%li
|
17
|
+
= link_to "https://twitter.com/slicegroupxyz", target: '_blank' do
|
18
|
+
-# = icon 'twitter'
|
19
|
+
%li
|
20
|
+
= link_to "https://www.facebook.com/slicegroupxyz/", target: '_blank' do
|
21
|
+
-# = icon 'facebook'
|
22
|
+
%li
|
23
|
+
= link_to "https://www.instagram.com/slicegroupxyz/", target: '_blank' do
|
24
|
+
-# = icon 'instagram'
|
25
|
+
%li
|
26
|
+
= link_to "https://github.com/SliceDevelopers", target: '_blank' do
|
27
|
+
-# = icon 'github'
|
28
|
+
.mouse-scroll
|
29
|
+
.mouse
|
30
|
+
.scroll
|
31
|
+
%footer.front-footer
|
32
|
+
= render 'app/layouts/footer'
|
33
|
+
|
34
|
+
|
35
|
+
%section#documentation
|
36
|
+
%h3 KEPPLER ADMIN
|
37
|
+
|
38
|
+
%p
|
39
|
+
KEPPLER ADMIN es una entorno de desarrollo que cuenta con una base de
|
40
|
+
gemas ya integradas, de tal forma que acelerará el desarrollo de
|
41
|
+
aplicaciones de vanguardia bajo la plataforma de Ruby on Rails.
|
42
|
+
|
43
|
+
%h3 Características
|
44
|
+
|
45
|
+
%ul
|
46
|
+
%li
|
47
|
+
Base de datos por defecto MySQL
|
48
|
+
%li
|
49
|
+
Integración para autenticación de usuarios con
|
50
|
+
= link_to 'Devise', 'https://github.com/plataformatec/devise', target: '_blank'
|
51
|
+
%li
|
52
|
+
Integración para roles de usuarios con
|
53
|
+
= link_to 'Rolify', 'https://github.com/RolifyCommunity/rolify', target: '_blank'
|
54
|
+
%li
|
55
|
+
Integración para autorizaciones con
|
56
|
+
= link_to 'CanCanCan', 'https://github.com/CanCanCommunity/cancancan', target: '_blank'
|
57
|
+
%li
|
58
|
+
Inegración para el manejo de de paginación con
|
59
|
+
= link_to 'Kaminari', 'https://github.com/amatsuda/kaminari', target: '_blank'
|
60
|
+
%li
|
61
|
+
Integración para helpers de formularios con
|
62
|
+
= link_to 'SimpleForm', 'https://github.com/RolifyCommunity/rolify', target: '_blank'
|
63
|
+
%li
|
64
|
+
Integración para búsquedas full-text con
|
65
|
+
= link_to 'Ransack', 'https://github.com/activerecord-hackery/ransack', target: '_blank'
|
66
|
+
%li
|
67
|
+
Integración con framework fronte-end para el administrativo con
|
68
|
+
= link_to 'Materialize', 'http://materializecss.com/', target: '_blank'
|
69
|
+
%li
|
70
|
+
Integración con framework javascript
|
71
|
+
= link_to 'AngularJs', 'https://angularjs.org/', target: '_blank'
|
72
|
+
%li
|
73
|
+
Integración sitemap dinamicos con
|
74
|
+
= link_to 'sitemap_generator', 'https://github.com/kjvarga/sitemap_generator', target: '_blank'
|
75
|
+
|
76
|
+
%h3 Instalación
|
77
|
+
|
78
|
+
%pre
|
79
|
+
%code.shell
|
80
|
+
git clone git@github.com:SliceDevelopers/keppler_admin.git
|
81
|
+
bundle install
|
82
|
+
|
83
|
+
%p
|
84
|
+
Luego debe configurar el archivo
|
85
|
+
%pre
|
86
|
+
%code.ruby
|
87
|
+
config/secrets.yml
|
88
|
+
= link_to '[ver archivo]', 'https://github.com/inyxtech/Keppler-CMS/blob/master/config/secrets.yml.example'
|
89
|
+
de esta manera puede añadir los parámetros de configuración de su base de datos y poder realizar migraciones.
|
90
|
+
|
91
|
+
%pre
|
92
|
+
%code.shell
|
93
|
+
rake db:create
|
94
|
+
rake db:migrate
|
95
|
+
rake db:seed
|
96
|
+
|
97
|
+
%h3 SimpleForm con Materialize
|
98
|
+
|
99
|
+
%p
|
100
|
+
Se ofrece una integración por defecto entre SimpleForm y Materialize, usted tiene la posibilidad de cambiar su funcionalidad en
|
101
|
+
%pre
|
102
|
+
%code.ruby
|
103
|
+
config/initializers/simple_form_materialize.rb
|
104
|
+
|
105
|
+
|
106
|
+
%p Aquí algunos ejemplos para la creación de inputs:
|
107
|
+
|
108
|
+
%pre
|
109
|
+
%code.haml
|
110
|
+
:preserve
|
111
|
+
# inputs de tipo text
|
112
|
+
= f.input :name
|
113
|
+
|
114
|
+
# inputs de tipo boolean
|
115
|
+
= f.input :public, as: :checkbox_material
|
116
|
+
|
117
|
+
# inputs de tipo textarea
|
118
|
+
= f.input :description, input_html: { class: "materialize-textarea" }
|
119
|
+
|
120
|
+
# inputs de tipo file
|
121
|
+
= f.input :image, :as => :file_material, label: false, wrapper_html: { class: "file-field" }
|
122
|
+
|
123
|
+
# inputs de tipo select
|
124
|
+
= f.input :role_ids, collection: Role.all, label: false, include_blank: "Selecione un rol"
|
125
|
+
|
126
|
+
# inputs de tipo radio buttons
|
127
|
+
= f.collection_radio_buttons :option, [['vegan', 'vegan'] ,['vegetarian', 'vegetarian']],:first, :last
|
128
|
+
|
129
|
+
# inputs de tipo check_boxes
|
130
|
+
= f.collection_check_boxes :options, [['vegan', 'vegan'] ,['vegetarian', 'vegetarian']],:first, :last
|
131
|
+
|
132
|
+
# inputs de tipo date
|
133
|
+
= f.input :date, input_html: {class: "datepicker"}
|
134
|
+
|
135
|
+
%strong
|
136
|
+
Nota:
|
137
|
+
%p
|
138
|
+
Puede revisar la documentación de
|
139
|
+
= link_to 'Materialize', 'http://materializecss.com/'
|
140
|
+
para agregar nuevas integraciones para sus formularios a través de los
|
141
|
+
= link_to 'Wrappers', 'https://github.com/plataformatec/simple_form/wiki/Custom-Wrappers'
|
142
|
+
de simpleform.
|
143
|
+
|
144
|
+
|
145
|
+
%h3 Keppler scaffolds
|
146
|
+
|
147
|
+
%p
|
148
|
+
Keppler ofrece la posibilidad de realizar tareas de scaffolds
|
149
|
+
totalmente configurados para adaptarse de una vez al administrativo.
|
150
|
+
Para crear un nuevo modulo solo tienes que llamar al siguiente
|
151
|
+
comando desde la consola:
|
152
|
+
|
153
|
+
%pre
|
154
|
+
%code.shell
|
155
|
+
rails g keppler_scaffold [module_name] [attributes] -f
|
156
|
+
|
157
|
+
%p Luego crea la tabla en base de datos.
|
158
|
+
|
159
|
+
%pre
|
160
|
+
%code.shell
|
161
|
+
rake db:migrate
|
162
|
+
|
163
|
+
%h3 Plugins (Módulos)
|
164
|
+
|
165
|
+
%p
|
166
|
+
La plataforma permite la adaptación de módulos con facil instalación,
|
167
|
+
algunos de los módulos desarrollados son:
|
168
|
+
|
169
|
+
%ul
|
170
|
+
%li
|
171
|
+
= link_to 'Keppler google analytics dashboard', 'https://github.com/SliceDevelopers/keppler_ga_dashboard'
|
172
|
+
%strong ya viene integrado
|
173
|
+
%li
|
174
|
+
= link_to 'Keppler blog', 'https://github.com/SliceDevelopers/keppler_blog'
|
175
|
+
%li
|
176
|
+
= link_to 'Keppler catalogs', 'https://github.com/inyxtech/keppler_catalogs'
|
177
|
+
%li
|
178
|
+
= link_to 'Keppler contact', 'https://github.com/SliceDevelopers/keppler_contact_us'
|
179
|
+
|
180
|
+
%script{ src: '/assets/app/front.js' }
|