keppler 2.0.2 → 2.0.3
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 +5 -5
- data/.gitignore +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile.lock +26 -0
- data/LICENSE.txt +21 -0
- data/README.md +93 -22
- data/Rakefile +6 -0
- data/bin/keppler +6 -2
- data/bin/setup +2 -1
- data/exe/keppler +6 -0
- data/installer/core/.gitignore +87 -0
- data/installer/core/.ruby-version +1 -0
- data/installer/core/Gemfile +6 -4
- data/installer/core/README.md +86 -50
- data/installer/core/app/assets/images/.keep +0 -0
- data/installer/core/app/assets/images/admin/astronauta_keppler.svg +123 -0
- data/installer/core/app/assets/images/admin/avatar_keppler.svg +100 -0
- data/installer/core/app/assets/images/admin/image_default.png +0 -0
- data/installer/core/app/assets/images/app/fondo.svg +19 -0
- data/installer/core/app/assets/javascripts/admin/file_upload.coffee +11 -0
- data/installer/core/app/assets/javascripts/admin/main.coffee +23 -12
- data/installer/core/app/assets/javascripts/admin/preview_template.js +2 -2
- data/installer/core/app/assets/javascripts/admin/sidebar.js +8 -7
- data/installer/core/app/assets/javascripts/admin/swal.js +37 -0
- data/installer/core/app/assets/javascripts/admin/switch.js +6 -0
- data/installer/core/app/assets/javascripts/admin/tooltips.coffee +3 -0
- data/installer/core/app/assets/javascripts/errors/application.js.coffee +1 -0
- data/installer/core/app/assets/javascripts/errors/errors.js +113 -0
- data/installer/core/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js +1 -1
- data/installer/core/app/assets/javascripts/vue_admin/index.js +34 -9
- data/installer/core/app/assets/stylesheets/admin/application.scss +4 -14
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_navbar.scss +4 -5
- data/installer/core/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +26 -17
- data/installer/core/app/assets/stylesheets/admin/pages/_appearance.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_customize.scss +21 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_datepicker.scss +1088 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_files.scss +26 -9
- data/installer/core/app/assets/stylesheets/admin/pages/_form.scss +19 -6
- data/installer/core/app/assets/stylesheets/admin/pages/_index.scss +4 -8
- data/installer/core/app/assets/stylesheets/admin/pages/_listing.scss +5 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_navbar.scss +9 -2
- data/installer/core/app/assets/stylesheets/admin/pages/_roles.scss +6 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_search.scss +24 -28
- data/installer/core/app/assets/stylesheets/admin/pages/_sidebar.scss +1 -1
- data/installer/core/app/assets/stylesheets/admin/pages/_switchs.scss +135 -39
- data/installer/core/app/assets/stylesheets/admin/pages/_timepicker.scss +16 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_user.scss +6 -0
- data/installer/core/app/assets/stylesheets/admin/utils/_base.scss +6 -1
- data/installer/core/app/assets/stylesheets/admin/utils/_theme.scss +24 -11
- data/installer/core/app/assets/stylesheets/admin/utils/_variables.scss +1 -1
- data/installer/core/app/assets/stylesheets/app/pages/_front.sass +70 -56
- data/installer/core/app/assets/stylesheets/errors/errors.scss +161 -120
- data/installer/core/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +1 -1
- data/installer/core/app/controllers/admin/admin_controller.rb +1 -1
- data/installer/core/app/controllers/admin/customizes_controller.rb +6 -8
- data/installer/core/app/controllers/admin/meta_tags_controller.rb +14 -18
- data/installer/core/app/controllers/admin/roles_controller.rb +176 -0
- data/installer/core/app/controllers/admin/scripts_controller.rb +14 -33
- data/installer/core/app/controllers/admin/settings_controller.rb +26 -27
- data/installer/core/app/controllers/admin/users_controller.rb +35 -29
- data/installer/core/app/controllers/app/app_controller.rb +27 -4
- data/installer/core/app/controllers/application_controller.rb +39 -1
- data/installer/core/app/controllers/concerns/.keep +0 -0
- data/installer/core/app/helpers/admin_helper.rb +5 -0
- data/installer/core/app/helpers/application_helper.rb +9 -0
- data/installer/core/app/helpers/roles_helper.rb +2 -0
- data/installer/core/app/inputs/file_material_input.rb +4 -2
- data/installer/core/app/inputs/keppler_boolean_input.rb +74 -0
- data/installer/core/app/inputs/keppler_file_input.rb +70 -0
- data/installer/core/app/mailers/.keep +0 -0
- data/installer/core/app/mailers/application_mailer.rb +13 -13
- data/installer/core/app/models/.keep +0 -0
- data/installer/core/app/models/appearance.rb +2 -0
- data/installer/core/app/models/application_record.rb +3 -0
- data/installer/core/app/models/concerns/.keep +0 -0
- data/installer/core/app/models/concerns/downloadable.rb +13 -0
- data/installer/core/app/models/concerns/sortable.rb +9 -0
- data/installer/core/app/models/concerns/uploadable.rb +10 -0
- data/installer/core/app/models/customize.rb +8 -6
- data/installer/core/app/models/front.rb +3 -0
- data/installer/core/app/models/google_analytics_setting.rb +2 -0
- data/installer/core/app/models/meta_tag.rb +27 -14
- data/installer/core/app/models/permission.rb +3 -0
- data/installer/core/app/models/role.rb +62 -5
- data/installer/core/app/models/script.rb +6 -15
- data/installer/core/app/models/setting.rb +2 -0
- data/installer/core/app/models/smtp_setting.rb +2 -0
- data/installer/core/app/models/social_account.rb +2 -0
- data/installer/core/app/models/user.rb +17 -1
- data/installer/core/app/policies/application_policy.rb +4 -4
- data/installer/core/app/policies/controller_policy.rb +15 -11
- data/installer/core/app/policies/role_policy.rb +25 -0
- data/installer/core/app/policies/user_policy.rb +1 -1
- data/installer/core/app/uploaders/attachment_uploader.rb +18 -1
- data/installer/core/app/views/admin/customizes/_description.html.haml +4 -4
- data/installer/core/app/views/admin/customizes/_form.html.haml +4 -4
- data/installer/core/app/views/admin/customizes/_listing.html.haml +1 -1
- data/installer/core/app/views/admin/customizes/_switch_default_template.html.haml +8 -13
- data/installer/core/app/views/admin/customizes/_switch_template.html.haml +8 -11
- data/installer/core/app/views/admin/customizes/index.html.haml +9 -9
- data/installer/core/app/views/admin/layouts/_head.html.haml +3 -3
- data/installer/core/app/views/admin/layouts/_keppler_boolean_script.haml +12 -0
- data/installer/core/app/views/admin/layouts/_navigation.html.haml +17 -16
- data/installer/core/app/views/admin/layouts/_sidebar.html.haml +27 -36
- data/installer/core/app/views/admin/layouts/application.html.haml +1 -0
- data/installer/core/app/views/admin/layouts/index/remote_messages.js.haml +6 -6
- data/installer/core/app/views/admin/meta_tags/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/meta_tags/_listing.html.haml +6 -6
- data/installer/core/app/views/admin/meta_tags/index.html.haml +15 -29
- data/installer/core/app/views/admin/meta_tags/show.html.haml +7 -8
- data/installer/core/app/views/admin/roles/_description.html.haml +13 -0
- data/installer/core/app/views/admin/roles/_form.html.haml +27 -0
- data/installer/core/app/views/admin/roles/_index_show.html.haml +24 -0
- data/installer/core/app/views/admin/roles/_listing.html.haml +46 -0
- data/installer/core/app/views/admin/roles/_switch.html.haml +20 -0
- data/installer/core/app/views/admin/roles/add_permissions.html.haml +60 -0
- data/installer/core/app/views/admin/roles/create_permissions.html.haml +0 -0
- data/installer/core/app/views/admin/roles/create_permissions.js.erb +1 -0
- data/installer/core/app/views/admin/roles/edit.html.haml +1 -0
- data/installer/core/app/views/admin/roles/index.html.haml +80 -0
- data/installer/core/app/views/admin/roles/new.html.haml +1 -0
- data/installer/core/app/views/admin/roles/reload.js.haml +5 -0
- data/installer/core/app/views/admin/roles/show.html.haml +32 -0
- data/installer/core/app/views/admin/roles/show.js.haml +4 -0
- data/installer/core/app/views/admin/roles/show_description.js.erb +2 -0
- data/installer/core/app/views/admin/scripts/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/scripts/_listing.html.haml +13 -13
- data/installer/core/app/views/admin/scripts/index.html.haml +12 -26
- data/installer/core/app/views/admin/scripts/show.html.haml +4 -4
- data/installer/core/app/views/admin/settings/components/_preview.html.haml +1 -1
- data/installer/core/app/views/admin/settings/fields/_appearance.html.haml +25 -17
- data/installer/core/app/views/admin/settings/fields/_basic_information.html.haml +13 -7
- data/installer/core/app/views/admin/settings/fields/_email_setting.html.haml +16 -16
- data/installer/core/app/views/admin/settings/fields/_google_analytics_setting.html.haml +1 -1
- data/installer/core/app/views/admin/settings/fields/_social_accounts.html.haml +39 -39
- data/installer/core/app/views/admin/users/_form.html.haml +18 -25
- data/installer/core/app/views/admin/users/_index_show.html.haml +2 -2
- data/installer/core/app/views/admin/users/_listing.html.haml +6 -6
- data/installer/core/app/views/admin/users/delete_avatar.js.haml +3 -0
- data/installer/core/app/views/admin/users/filter_by_role.js.erb +9 -0
- data/installer/core/app/views/admin/users/index.html.haml +22 -22
- data/installer/core/app/views/admin/users/show.html.haml +10 -12
- data/installer/core/app/views/app/front/index.html.haml +137 -87
- data/installer/core/app/views/app/layouts/_footer.html.haml +2 -2
- data/installer/core/app/views/app/layouts/_head.html.haml +4 -12
- data/installer/core/app/views/app/layouts/_meta_tags.html.haml +38 -6
- data/installer/core/app/views/app/layouts/application.html.haml +8 -8
- data/installer/core/app/views/devise/sessions/new.html.haml +32 -28
- data/installer/core/app/views/errors/internal_server_error.html.haml +50 -7
- data/installer/core/app/views/errors/not_authorized.html.haml +75 -6
- data/installer/core/app/views/errors/not_found.html.haml +101 -7
- data/installer/core/app/views/errors/unprocessable.html.haml +50 -7
- data/installer/core/bin/update +31 -0
- data/installer/core/bin/yarn +11 -0
- data/installer/core/config/application.rb +1 -1
- data/installer/core/config/environments/production.rb +1 -1
- data/installer/core/config/initializers/carrierwave.rb +12 -0
- data/installer/core/config/initializers/mime_types.rb +2 -2
- data/installer/core/config/initializers/simple_form_bootstrap.rb +20 -1
- data/installer/core/config/initializers/simple_form_components.rb +61 -0
- data/installer/core/config/locales/en.yml +29 -6
- data/installer/core/config/locales/es.yml +32 -5
- data/installer/core/config/locales/simple_form.en.yml +1 -0
- data/installer/core/config/locales/simple_form.es.yml +3 -2
- data/installer/core/config/menu.yml +34 -8
- data/installer/core/config/permissions.yml +21 -0
- data/installer/core/config/routes.rb +56 -14
- data/installer/core/db/migrate/20140812210925_rolify_create_roles.rb +2 -0
- data/installer/core/db/migrate/20160128131802_create_scripts.rb +1 -0
- data/installer/core/db/migrate/20180503174351_create_permissions.rb +11 -0
- data/installer/core/db/seeds.rb +12 -6
- data/installer/core/lib/generators/keppler_front/templates/views/template.html.haml +222 -177
- data/installer/core/lib/generators/keppler_relation/keppler_relation_generator.rb +1 -1
- data/installer/core/lib/generators/keppler_scaffold/keppler_scaffold_generator.rb +57 -40
- data/installer/core/lib/generators/keppler_scaffold/templates/controllers/controller.rb +29 -30
- data/installer/core/lib/generators/keppler_scaffold/templates/models/model.rb +14 -20
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_form.html.haml +24 -35
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.html.haml +12 -11
- data/installer/core/lib/generators/keppler_scaffold/templates/views/_listing.html.haml +7 -7
- data/installer/core/lib/generators/keppler_scaffold/templates/views/index.html.haml +17 -33
- data/installer/core/lib/generators/keppler_scaffold/templates/views/show.html.haml +23 -24
- data/installer/core/plugins/keppler_ga_dashboard/app/assets/images/keppler_ga_dashboard/.keep +0 -0
- data/installer/core/plugins/keppler_ga_dashboard/config/permissions.yml +4 -0
- data/installer/core/plugins/keppler_ga_dashboard/keppler_ga_dashboard.gemspec +1 -1
- data/installer/core/test/controllers/.keep +0 -0
- data/installer/core/test/controllers/roles_controller_test.rb +48 -0
- data/installer/core/test/fixtures/.keep +0 -0
- data/installer/core/test/fixtures/permissions.yml +9 -0
- data/installer/core/test/helpers/.keep +0 -0
- data/installer/core/test/integration/.keep +0 -0
- data/installer/core/test/mailers/.keep +0 -0
- data/installer/core/test/models/.keep +0 -0
- data/installer/core/test/models/permission_test.rb +7 -0
- data/installer/core/test/system/roles_test.rb +43 -0
- data/installer/core/vendor/assets/javascripts/.keep +0 -0
- data/installer/core/vendor/assets/stylesheets/.keep +0 -0
- data/installer/plugins/concerns/commons.rb +47 -0
- data/installer/plugins/concerns/destroy_multiple.rb +33 -0
- data/installer/plugins/concerns/history.rb +24 -0
- data/installer/plugins/config/locales/en.yml +104 -0
- data/installer/plugins/config/locales/es.yml +139 -0
- data/installer/plugins/config/menu.yml +12 -0
- data/installer/plugins/config/permissions.yml +1 -0
- data/installer/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb +203 -0
- data/installer/plugins/generators/keppler_scaffold/templates/controllers/controller.rb +171 -0
- data/installer/plugins/generators/keppler_scaffold/templates/models/model.rb +41 -0
- data/installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb +11 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_description.html.haml +13 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_form.html.haml +49 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_index_show.html.haml +26 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/_listing.html.haml +65 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/edit.html.haml +1 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/index.html.haml +97 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/new.html.haml +1 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/show.html.haml +66 -0
- data/installer/plugins/generators/keppler_scaffold/templates/views/show.js.haml +4 -0
- data/installer/plugins/install.rb +156 -0
- data/installer/plugins/layouts/_navigation.html.haml +47 -0
- data/installer/plugins/layouts/application.html.haml +24 -0
- data/keppler.gemspec +35 -0
- data/lib/keppler.rb +0 -1
- data/lib/keppler/add.rb +13 -0
- data/lib/keppler/cli.rb +134 -5
- data/lib/keppler/delete.rb +13 -0
- data/lib/keppler/version.rb +1 -1
- metadata +117 -23
- data/installer/core/app/assets/images/admin/space.png +0 -0
- data/installer/core/app/assets/stylesheets/admin/pages/_header.scss +0 -34
- data/installer/core/app/assets/stylesheets/admin/pages/_pageslide.scss +0 -125
- data/installer/core/db/schema.rb +0 -172
- data/installer/lib/conf.rb +0 -31
- data/installer/lib/scaffold.rb +0 -10
- data/installer/run.sh +0 -17
- data/installer/scripts/bin.sh +0 -61
- data/lib/keppler/cli/generate.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1a636d8dffac8ec8919a04334a85e8df3eecc6a4
|
4
|
+
data.tar.gz: a403f9a8e77b5f33bee8d49ae8231c035a7f61c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08b55b457ca65e64c6180c02296cd375283053b8bc787da1676d44a8b3258a05ff0fe7b9f1295dd17e9bb104de35e8b8f9a6748bd272730464c32add437c98ae'
|
7
|
+
data.tar.gz: 6a48e5cf9da493d080bb9e5923868ee39423d67237a463caedd46ab2e76a4c5554a6d5c6539b836d4a511612d42dc7fe3b3d2e8c73668507e9dc06cc382433b1
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at luis.prz7@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
keppler (2.0.3)
|
5
|
+
httparty
|
6
|
+
thor
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
httparty (0.16.2)
|
12
|
+
multi_xml (>= 0.5.2)
|
13
|
+
multi_xml (0.6.0)
|
14
|
+
rake (10.5.0)
|
15
|
+
thor (0.20.0)
|
16
|
+
|
17
|
+
PLATFORMS
|
18
|
+
ruby
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
bundler (~> 1.16)
|
22
|
+
keppler!
|
23
|
+
rake (~> 10.0)
|
24
|
+
|
25
|
+
BUNDLED WITH
|
26
|
+
1.16.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Luis Perez
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,41 +1,112 @@
|
|
1
|
-
|
1
|
+
### KEPPLER
|
2
2
|
|
3
|
-
|
3
|
+
Keppler Admin es un CMS con un entorno de desarrollo que cuenta con una base de gemas ya integradas, de tal forma que acelerará el desarrollo de aplicaciones de vanguardia bajo la plataforma de Ruby on Rails.
|
4
4
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
5
|
|
7
|
-
|
6
|
+
### Características
|
8
7
|
|
9
|
-
|
8
|
+
* Base de datos por defecto PostreSQL
|
9
|
+
* Integración para autenticación de usuarios con [Devise](https://github.com/plataformatec/devise)
|
10
|
+
* Integración para roles de usuarios con [Rolify](https://github.com/RolifyCommunity/rolify)
|
11
|
+
* Integración para autorizaciones con [Pundit](https://github.com/varvet/pundit)
|
12
|
+
* Inegración para el manejo de de paginación con [Kaminari](https://github.com/amatsuda/kaminari)
|
13
|
+
* Integración para helpers de formularios con [SimpleForm](https://github.com/RolifyCommunity/rolify)
|
14
|
+
* Integración para búsquedas full-text con [Ransack](https://github.com/activerecord-hackery/ransack)
|
15
|
+
* Integración con framework fronte-end para el administrativo con [AdminLTE](https://adminlte.io/)
|
16
|
+
* Integración con framework javascript [VueJS](https://vuejs.org/)
|
17
|
+
* Integración sitemap dinamicos con [Sitemap Generator](https://github.com/kjvarga/sitemap_generator)
|
10
18
|
|
11
|
-
|
19
|
+
#### Instalación
|
12
20
|
|
13
|
-
|
14
|
-
|
15
|
-
|
21
|
+
Una de las novedades de Keppler Admin v2.0 es el lanzamiento de una gema que nos
|
22
|
+
permite el fácil y rápido manejo de las funcionalidades del CMS. Para instalarlo
|
23
|
+
necesitamos ejecutar el siguiente comando desde la consola:
|
16
24
|
|
17
|
-
|
25
|
+
`gem install keppler`
|
18
26
|
|
19
|
-
|
27
|
+
#### Lista de comandos
|
20
28
|
|
21
|
-
|
29
|
+
Para verificar que está instalada la gema correctamente y ver una lista de los posibles comandos
|
30
|
+
que podemos utilizar, ejecutamos:
|
22
31
|
|
23
|
-
|
32
|
+
`keppler`
|
24
33
|
|
25
|
-
|
34
|
+
#### Nuevo Proyecto
|
26
35
|
|
27
|
-
|
36
|
+
Para crear un nuevo proyecto en Ruby on Rails con Keppler Admin, podemos ejecutar:
|
28
37
|
|
29
|
-
|
38
|
+
`keppler new NuevoProyecto`
|
30
39
|
|
31
|
-
|
40
|
+
#### Creación del archivo secrets.yml
|
32
41
|
|
33
|
-
|
42
|
+
Si detienes el proceso a la mitad o aún no tienes configurado un archivo `secrets.yml` con la configuración de
|
43
|
+
la base de datos y otros inicializadores, puedes crear la base de datos ejecutando:
|
34
44
|
|
35
|
-
|
45
|
+
`keppler db_conf`
|
36
46
|
|
37
|
-
|
47
|
+
#### Instalación de las dependencias
|
38
48
|
|
39
|
-
|
49
|
+
Antes de poder iniciar con un proyecto nuevo, primero debemos instalar todas las gemas
|
50
|
+
instanciadas en el `Gemfile`, ubicado en la raíz del proyecto, con el comando:
|
40
51
|
|
41
|
-
|
52
|
+
`keppler dep`
|
53
|
+
|
54
|
+
### Keppler Scaffolds
|
55
|
+
|
56
|
+
Keppler ofrece la posibilidad de realizar tareas de scaffolds totalmente
|
57
|
+
configurados para adaptarse al administrativo. Para crear un nuevo
|
58
|
+
módulo sólo debes llamar al siguiente comando desde la consola:
|
59
|
+
|
60
|
+
`keppler add module ModuleName attribute:type`
|
61
|
+
|
62
|
+
Por ejemplo, crearemos un scaffold de productos con diversos campos y tipos de datos:
|
63
|
+
|
64
|
+
`keppler add module Product title:string description:text quantity:integer price:float arrival_date:date arrival_time:time available:boolean user:references`
|
65
|
+
|
66
|
+
Luego debemos migrar la tabla a la base de datos con:
|
67
|
+
|
68
|
+
`keppler migrate`
|
69
|
+
|
70
|
+
Si luego deseamos borrar, crear, migrar y llenar la base de datos desde cero,
|
71
|
+
podemos realizarlo ejecutando el comando:
|
72
|
+
|
73
|
+
`keppler reset`
|
74
|
+
|
75
|
+
Por último, si todo ha sido ejecutado debida y correctamente, podemos iniciar
|
76
|
+
el proyecto ejecutando en la consola:
|
77
|
+
|
78
|
+
`keppler server`
|
79
|
+
|
80
|
+
### SimpleForm con Bootstrap
|
81
|
+
|
82
|
+
Se ofrece una integración por defecto entre SimpleForm y Bootstrap, usted tiene la posibilidad de cambiar su funcionalidad en `config/initializers/simple_form_bootstrap.rb`
|
83
|
+
|
84
|
+
Aqui algunos ejemplos para la creación de inputs:
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
# Inputs de tipo string o textarea
|
88
|
+
= f.input :name
|
89
|
+
|
90
|
+
# Inputs de tipo CKEditor
|
91
|
+
= f.input :description, as: :ckeditor, input_html: { ckeditor: { toolbar: 'mini'} }
|
92
|
+
|
93
|
+
# Inputs de tipo boolean
|
94
|
+
= f.input :public, as: :keppler_boolean
|
95
|
+
|
96
|
+
# Inputs de tipo file
|
97
|
+
= f.input :image, as: :keppler_file
|
98
|
+
|
99
|
+
# Inputs de tipo select
|
100
|
+
= f.input :role_ids, collection: Role.all, label: false, include_blank: "Seleccione un rol"
|
101
|
+
|
102
|
+
# Inputs de tipo radio buttons
|
103
|
+
= f.collection_radio_buttons :option, [['vegan', 'vegan'] ,['vegetarian', 'vegetarian']], :first, :last
|
104
|
+
|
105
|
+
# Inputs de tipo check_boxes
|
106
|
+
= f.collection_check_boxes :options, [['vegan', 'vegan'] ,['vegetarian', 'vegetarian']], :first, :last
|
107
|
+
|
108
|
+
# Inputs de tipo date
|
109
|
+
= f.input :date, input_html: { class: 'datepicker' }
|
110
|
+
```
|
111
|
+
|
112
|
+
**Nota:** *Puede revisar la documentación de [AdminLTE](https://adminlte.io) para agregar nuevas integraciones para sus formularios a través de los [Wrappers](https://github.com/plataformatec/simple_form/wiki/Custom-Wrappers) de simpleform.*
|
data/Rakefile
CHANGED
data/bin/keppler
CHANGED
data/bin/setup
CHANGED
data/exe/keppler
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
#----------------------------------------------------------------------------
|
2
|
+
# Ignore these files when commiting to a git repository.
|
3
|
+
#
|
4
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
5
|
+
#
|
6
|
+
# The original version of this file is found here:
|
7
|
+
# https://github.com/RailsApps/rails-composer/blob/master/files/gitignore.txt
|
8
|
+
#
|
9
|
+
# Corrections? Improvements? Create a GitHub issue:
|
10
|
+
# http://github.com/RailsApps/rails-composer/issues
|
11
|
+
#----------------------------------------------------------------------------
|
12
|
+
|
13
|
+
# bundler state
|
14
|
+
/.bundle
|
15
|
+
/vendor/bundle/
|
16
|
+
/vendor/ruby/
|
17
|
+
/public/uploads
|
18
|
+
# minimal Rails specific artifacts
|
19
|
+
db/*.sqlite3
|
20
|
+
db/schema.rb
|
21
|
+
/db/*.sqlite3-journal
|
22
|
+
/log/*
|
23
|
+
/tmp/*
|
24
|
+
Gemfile.lock
|
25
|
+
# various artifacts
|
26
|
+
**.war
|
27
|
+
*.rbc
|
28
|
+
*.sassc
|
29
|
+
.redcar/
|
30
|
+
.sass-cache
|
31
|
+
.byebug_history
|
32
|
+
/.byebug_history
|
33
|
+
/app/assets/javascripts/guard_javascript/*
|
34
|
+
/app/assets/stylesheets/frontend/native_stylesheets/guard_stylesheets/*
|
35
|
+
/config/application.yml
|
36
|
+
/config/secrets.yml
|
37
|
+
/config/secrets.yml.example
|
38
|
+
/coverage.data
|
39
|
+
/coverage/
|
40
|
+
/db/*.javadb/
|
41
|
+
/db/*.sqlite3
|
42
|
+
/db/schema.rb
|
43
|
+
/doc/api/
|
44
|
+
/doc/app/
|
45
|
+
/doc/features.html
|
46
|
+
/doc/specs.html
|
47
|
+
/public/cache
|
48
|
+
/public/uploads
|
49
|
+
/public/stylesheets/compiled
|
50
|
+
/public/system/*
|
51
|
+
/spec/tmp/*
|
52
|
+
/cache
|
53
|
+
/capybara*
|
54
|
+
/capybara-*.html
|
55
|
+
/gems
|
56
|
+
/specifications
|
57
|
+
rerun.txt
|
58
|
+
pickle-email-*.html
|
59
|
+
.zeus.sock
|
60
|
+
|
61
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
62
|
+
# or operating system, you probably want to add a global ignore instead:
|
63
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
64
|
+
#
|
65
|
+
# Here are some files you may want to ignore globally:
|
66
|
+
|
67
|
+
# scm revert files
|
68
|
+
**.orig
|
69
|
+
|
70
|
+
# Mac finder artifacts
|
71
|
+
.DS_Store
|
72
|
+
|
73
|
+
# Netbeans project directory
|
74
|
+
/nbproject/
|
75
|
+
|
76
|
+
# RubyMine project files
|
77
|
+
.idea
|
78
|
+
|
79
|
+
# Textmate project files
|
80
|
+
/*.tmproj
|
81
|
+
|
82
|
+
# vim artifacts
|
83
|
+
**.swp
|
84
|
+
|
85
|
+
# Environment files that may contain sensitive data
|
86
|
+
.env
|
87
|
+
.powenv
|
@@ -0,0 +1 @@
|
|
1
|
+
2.5.1
|
data/installer/core/Gemfile
CHANGED
@@ -8,7 +8,7 @@ gem 'rails', '5.2.0'
|
|
8
8
|
gem 'ckeditor', '4.2.4'
|
9
9
|
gem 'jquery-rails', '4.3' # jQuery library
|
10
10
|
gem 'nprogress-rails', '0.2.0.2' #
|
11
|
-
gem 'remotipart', '1.
|
11
|
+
gem 'remotipart', '1.3.0'
|
12
12
|
gem 'vuejs-rails', '2.5.13' # VueJS library
|
13
13
|
|
14
14
|
# Server
|
@@ -42,7 +42,7 @@ gem 'sitemap_generator', '6.0.1'
|
|
42
42
|
gem 'public_activity', '1.5.0'
|
43
43
|
|
44
44
|
# AdminLTE
|
45
|
-
source '
|
45
|
+
source 'http://insecure.rails-assets.org/' do
|
46
46
|
gem 'rails-assets-adminlte'
|
47
47
|
gem 'rails-assets-animate-css'
|
48
48
|
gem 'rails-assets-noty'
|
@@ -56,9 +56,11 @@ gem 'paranoia', '2.4.1'
|
|
56
56
|
gem 'cocoon', '1.2.11'
|
57
57
|
gem 'jquery-minicolors-rails', '~> 2.2', '>= 2.2.6.0'
|
58
58
|
gem 'simple_form', '4.0.0'
|
59
|
-
|
59
|
+
|
60
60
|
# Upload
|
61
61
|
gem 'carrierwave', '1.2.2'
|
62
|
+
gem 'carrierwave-imageoptimizer', '~> 1.4'
|
63
|
+
gem 'mini_magick', '4.8.0'
|
62
64
|
gem 'rmagick', '2.16.0' # fix issue: 'sudo apt install libmagick++-dev'
|
63
65
|
|
64
66
|
# Design
|
@@ -101,7 +103,7 @@ group :development, :test do
|
|
101
103
|
gem 'rubocop', '~> 0.54.0', require: false
|
102
104
|
gem 'spring', '2.0.2'
|
103
105
|
# gem 'table_print'
|
104
|
-
gem 'web-console', '3.
|
106
|
+
gem 'web-console', '>= 3.3.0'
|
105
107
|
|
106
108
|
# Style guides
|
107
109
|
gem 'haml_lint', '~> 0.27.0', require: false
|