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.
Files changed (236) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +8 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/Gemfile.lock +26 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +93 -22
  7. data/Rakefile +6 -0
  8. data/bin/keppler +6 -2
  9. data/bin/setup +2 -1
  10. data/exe/keppler +6 -0
  11. data/installer/core/.gitignore +87 -0
  12. data/installer/core/.ruby-version +1 -0
  13. data/installer/core/Gemfile +6 -4
  14. data/installer/core/README.md +86 -50
  15. data/installer/core/app/assets/images/.keep +0 -0
  16. data/installer/core/app/assets/images/admin/astronauta_keppler.svg +123 -0
  17. data/installer/core/app/assets/images/admin/avatar_keppler.svg +100 -0
  18. data/installer/core/app/assets/images/admin/image_default.png +0 -0
  19. data/installer/core/app/assets/images/app/fondo.svg +19 -0
  20. data/installer/core/app/assets/javascripts/admin/file_upload.coffee +11 -0
  21. data/installer/core/app/assets/javascripts/admin/main.coffee +23 -12
  22. data/installer/core/app/assets/javascripts/admin/preview_template.js +2 -2
  23. data/installer/core/app/assets/javascripts/admin/sidebar.js +8 -7
  24. data/installer/core/app/assets/javascripts/admin/swal.js +37 -0
  25. data/installer/core/app/assets/javascripts/admin/switch.js +6 -0
  26. data/installer/core/app/assets/javascripts/admin/tooltips.coffee +3 -0
  27. data/installer/core/app/assets/javascripts/errors/application.js.coffee +1 -0
  28. data/installer/core/app/assets/javascripts/errors/errors.js +113 -0
  29. data/installer/core/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js +1 -1
  30. data/installer/core/app/assets/javascripts/vue_admin/index.js +34 -9
  31. data/installer/core/app/assets/stylesheets/admin/application.scss +4 -14
  32. data/installer/core/app/assets/stylesheets/admin/components/navigation/_navbar.scss +4 -5
  33. data/installer/core/app/assets/stylesheets/admin/components/navigation/_sidebar.scss +26 -17
  34. data/installer/core/app/assets/stylesheets/admin/pages/_appearance.scss +5 -0
  35. data/installer/core/app/assets/stylesheets/admin/pages/_customize.scss +21 -0
  36. data/installer/core/app/assets/stylesheets/admin/pages/_datepicker.scss +1088 -0
  37. data/installer/core/app/assets/stylesheets/admin/pages/_files.scss +26 -9
  38. data/installer/core/app/assets/stylesheets/admin/pages/_form.scss +19 -6
  39. data/installer/core/app/assets/stylesheets/admin/pages/_index.scss +4 -8
  40. data/installer/core/app/assets/stylesheets/admin/pages/_listing.scss +5 -0
  41. data/installer/core/app/assets/stylesheets/admin/pages/_navbar.scss +9 -2
  42. data/installer/core/app/assets/stylesheets/admin/pages/_roles.scss +6 -0
  43. data/installer/core/app/assets/stylesheets/admin/pages/_search.scss +24 -28
  44. data/installer/core/app/assets/stylesheets/admin/pages/_sidebar.scss +1 -1
  45. data/installer/core/app/assets/stylesheets/admin/pages/_switchs.scss +135 -39
  46. data/installer/core/app/assets/stylesheets/admin/pages/_timepicker.scss +16 -0
  47. data/installer/core/app/assets/stylesheets/admin/pages/_user.scss +6 -0
  48. data/installer/core/app/assets/stylesheets/admin/utils/_base.scss +6 -1
  49. data/installer/core/app/assets/stylesheets/admin/utils/_theme.scss +24 -11
  50. data/installer/core/app/assets/stylesheets/admin/utils/_variables.scss +1 -1
  51. data/installer/core/app/assets/stylesheets/app/pages/_front.sass +70 -56
  52. data/installer/core/app/assets/stylesheets/errors/errors.scss +161 -120
  53. data/installer/core/app/assets/stylesheets/vendor/admin-lte/_skin-blue.scss +1 -1
  54. data/installer/core/app/controllers/admin/admin_controller.rb +1 -1
  55. data/installer/core/app/controllers/admin/customizes_controller.rb +6 -8
  56. data/installer/core/app/controllers/admin/meta_tags_controller.rb +14 -18
  57. data/installer/core/app/controllers/admin/roles_controller.rb +176 -0
  58. data/installer/core/app/controllers/admin/scripts_controller.rb +14 -33
  59. data/installer/core/app/controllers/admin/settings_controller.rb +26 -27
  60. data/installer/core/app/controllers/admin/users_controller.rb +35 -29
  61. data/installer/core/app/controllers/app/app_controller.rb +27 -4
  62. data/installer/core/app/controllers/application_controller.rb +39 -1
  63. data/installer/core/app/controllers/concerns/.keep +0 -0
  64. data/installer/core/app/helpers/admin_helper.rb +5 -0
  65. data/installer/core/app/helpers/application_helper.rb +9 -0
  66. data/installer/core/app/helpers/roles_helper.rb +2 -0
  67. data/installer/core/app/inputs/file_material_input.rb +4 -2
  68. data/installer/core/app/inputs/keppler_boolean_input.rb +74 -0
  69. data/installer/core/app/inputs/keppler_file_input.rb +70 -0
  70. data/installer/core/app/mailers/.keep +0 -0
  71. data/installer/core/app/mailers/application_mailer.rb +13 -13
  72. data/installer/core/app/models/.keep +0 -0
  73. data/installer/core/app/models/appearance.rb +2 -0
  74. data/installer/core/app/models/application_record.rb +3 -0
  75. data/installer/core/app/models/concerns/.keep +0 -0
  76. data/installer/core/app/models/concerns/downloadable.rb +13 -0
  77. data/installer/core/app/models/concerns/sortable.rb +9 -0
  78. data/installer/core/app/models/concerns/uploadable.rb +10 -0
  79. data/installer/core/app/models/customize.rb +8 -6
  80. data/installer/core/app/models/front.rb +3 -0
  81. data/installer/core/app/models/google_analytics_setting.rb +2 -0
  82. data/installer/core/app/models/meta_tag.rb +27 -14
  83. data/installer/core/app/models/permission.rb +3 -0
  84. data/installer/core/app/models/role.rb +62 -5
  85. data/installer/core/app/models/script.rb +6 -15
  86. data/installer/core/app/models/setting.rb +2 -0
  87. data/installer/core/app/models/smtp_setting.rb +2 -0
  88. data/installer/core/app/models/social_account.rb +2 -0
  89. data/installer/core/app/models/user.rb +17 -1
  90. data/installer/core/app/policies/application_policy.rb +4 -4
  91. data/installer/core/app/policies/controller_policy.rb +15 -11
  92. data/installer/core/app/policies/role_policy.rb +25 -0
  93. data/installer/core/app/policies/user_policy.rb +1 -1
  94. data/installer/core/app/uploaders/attachment_uploader.rb +18 -1
  95. data/installer/core/app/views/admin/customizes/_description.html.haml +4 -4
  96. data/installer/core/app/views/admin/customizes/_form.html.haml +4 -4
  97. data/installer/core/app/views/admin/customizes/_listing.html.haml +1 -1
  98. data/installer/core/app/views/admin/customizes/_switch_default_template.html.haml +8 -13
  99. data/installer/core/app/views/admin/customizes/_switch_template.html.haml +8 -11
  100. data/installer/core/app/views/admin/customizes/index.html.haml +9 -9
  101. data/installer/core/app/views/admin/layouts/_head.html.haml +3 -3
  102. data/installer/core/app/views/admin/layouts/_keppler_boolean_script.haml +12 -0
  103. data/installer/core/app/views/admin/layouts/_navigation.html.haml +17 -16
  104. data/installer/core/app/views/admin/layouts/_sidebar.html.haml +27 -36
  105. data/installer/core/app/views/admin/layouts/application.html.haml +1 -0
  106. data/installer/core/app/views/admin/layouts/index/remote_messages.js.haml +6 -6
  107. data/installer/core/app/views/admin/meta_tags/_index_show.html.haml +2 -2
  108. data/installer/core/app/views/admin/meta_tags/_listing.html.haml +6 -6
  109. data/installer/core/app/views/admin/meta_tags/index.html.haml +15 -29
  110. data/installer/core/app/views/admin/meta_tags/show.html.haml +7 -8
  111. data/installer/core/app/views/admin/roles/_description.html.haml +13 -0
  112. data/installer/core/app/views/admin/roles/_form.html.haml +27 -0
  113. data/installer/core/app/views/admin/roles/_index_show.html.haml +24 -0
  114. data/installer/core/app/views/admin/roles/_listing.html.haml +46 -0
  115. data/installer/core/app/views/admin/roles/_switch.html.haml +20 -0
  116. data/installer/core/app/views/admin/roles/add_permissions.html.haml +60 -0
  117. data/installer/core/app/views/admin/roles/create_permissions.html.haml +0 -0
  118. data/installer/core/app/views/admin/roles/create_permissions.js.erb +1 -0
  119. data/installer/core/app/views/admin/roles/edit.html.haml +1 -0
  120. data/installer/core/app/views/admin/roles/index.html.haml +80 -0
  121. data/installer/core/app/views/admin/roles/new.html.haml +1 -0
  122. data/installer/core/app/views/admin/roles/reload.js.haml +5 -0
  123. data/installer/core/app/views/admin/roles/show.html.haml +32 -0
  124. data/installer/core/app/views/admin/roles/show.js.haml +4 -0
  125. data/installer/core/app/views/admin/roles/show_description.js.erb +2 -0
  126. data/installer/core/app/views/admin/scripts/_index_show.html.haml +2 -2
  127. data/installer/core/app/views/admin/scripts/_listing.html.haml +13 -13
  128. data/installer/core/app/views/admin/scripts/index.html.haml +12 -26
  129. data/installer/core/app/views/admin/scripts/show.html.haml +4 -4
  130. data/installer/core/app/views/admin/settings/components/_preview.html.haml +1 -1
  131. data/installer/core/app/views/admin/settings/fields/_appearance.html.haml +25 -17
  132. data/installer/core/app/views/admin/settings/fields/_basic_information.html.haml +13 -7
  133. data/installer/core/app/views/admin/settings/fields/_email_setting.html.haml +16 -16
  134. data/installer/core/app/views/admin/settings/fields/_google_analytics_setting.html.haml +1 -1
  135. data/installer/core/app/views/admin/settings/fields/_social_accounts.html.haml +39 -39
  136. data/installer/core/app/views/admin/users/_form.html.haml +18 -25
  137. data/installer/core/app/views/admin/users/_index_show.html.haml +2 -2
  138. data/installer/core/app/views/admin/users/_listing.html.haml +6 -6
  139. data/installer/core/app/views/admin/users/delete_avatar.js.haml +3 -0
  140. data/installer/core/app/views/admin/users/filter_by_role.js.erb +9 -0
  141. data/installer/core/app/views/admin/users/index.html.haml +22 -22
  142. data/installer/core/app/views/admin/users/show.html.haml +10 -12
  143. data/installer/core/app/views/app/front/index.html.haml +137 -87
  144. data/installer/core/app/views/app/layouts/_footer.html.haml +2 -2
  145. data/installer/core/app/views/app/layouts/_head.html.haml +4 -12
  146. data/installer/core/app/views/app/layouts/_meta_tags.html.haml +38 -6
  147. data/installer/core/app/views/app/layouts/application.html.haml +8 -8
  148. data/installer/core/app/views/devise/sessions/new.html.haml +32 -28
  149. data/installer/core/app/views/errors/internal_server_error.html.haml +50 -7
  150. data/installer/core/app/views/errors/not_authorized.html.haml +75 -6
  151. data/installer/core/app/views/errors/not_found.html.haml +101 -7
  152. data/installer/core/app/views/errors/unprocessable.html.haml +50 -7
  153. data/installer/core/bin/update +31 -0
  154. data/installer/core/bin/yarn +11 -0
  155. data/installer/core/config/application.rb +1 -1
  156. data/installer/core/config/environments/production.rb +1 -1
  157. data/installer/core/config/initializers/carrierwave.rb +12 -0
  158. data/installer/core/config/initializers/mime_types.rb +2 -2
  159. data/installer/core/config/initializers/simple_form_bootstrap.rb +20 -1
  160. data/installer/core/config/initializers/simple_form_components.rb +61 -0
  161. data/installer/core/config/locales/en.yml +29 -6
  162. data/installer/core/config/locales/es.yml +32 -5
  163. data/installer/core/config/locales/simple_form.en.yml +1 -0
  164. data/installer/core/config/locales/simple_form.es.yml +3 -2
  165. data/installer/core/config/menu.yml +34 -8
  166. data/installer/core/config/permissions.yml +21 -0
  167. data/installer/core/config/routes.rb +56 -14
  168. data/installer/core/db/migrate/20140812210925_rolify_create_roles.rb +2 -0
  169. data/installer/core/db/migrate/20160128131802_create_scripts.rb +1 -0
  170. data/installer/core/db/migrate/20180503174351_create_permissions.rb +11 -0
  171. data/installer/core/db/seeds.rb +12 -6
  172. data/installer/core/lib/generators/keppler_front/templates/views/template.html.haml +222 -177
  173. data/installer/core/lib/generators/keppler_relation/keppler_relation_generator.rb +1 -1
  174. data/installer/core/lib/generators/keppler_scaffold/keppler_scaffold_generator.rb +57 -40
  175. data/installer/core/lib/generators/keppler_scaffold/templates/controllers/controller.rb +29 -30
  176. data/installer/core/lib/generators/keppler_scaffold/templates/models/model.rb +14 -20
  177. data/installer/core/lib/generators/keppler_scaffold/templates/views/_form.html.haml +24 -35
  178. data/installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.html.haml +12 -11
  179. data/installer/core/lib/generators/keppler_scaffold/templates/views/_listing.html.haml +7 -7
  180. data/installer/core/lib/generators/keppler_scaffold/templates/views/index.html.haml +17 -33
  181. data/installer/core/lib/generators/keppler_scaffold/templates/views/show.html.haml +23 -24
  182. data/installer/core/plugins/keppler_ga_dashboard/app/assets/images/keppler_ga_dashboard/.keep +0 -0
  183. data/installer/core/plugins/keppler_ga_dashboard/config/permissions.yml +4 -0
  184. data/installer/core/plugins/keppler_ga_dashboard/keppler_ga_dashboard.gemspec +1 -1
  185. data/installer/core/test/controllers/.keep +0 -0
  186. data/installer/core/test/controllers/roles_controller_test.rb +48 -0
  187. data/installer/core/test/fixtures/.keep +0 -0
  188. data/installer/core/test/fixtures/permissions.yml +9 -0
  189. data/installer/core/test/helpers/.keep +0 -0
  190. data/installer/core/test/integration/.keep +0 -0
  191. data/installer/core/test/mailers/.keep +0 -0
  192. data/installer/core/test/models/.keep +0 -0
  193. data/installer/core/test/models/permission_test.rb +7 -0
  194. data/installer/core/test/system/roles_test.rb +43 -0
  195. data/installer/core/vendor/assets/javascripts/.keep +0 -0
  196. data/installer/core/vendor/assets/stylesheets/.keep +0 -0
  197. data/installer/plugins/concerns/commons.rb +47 -0
  198. data/installer/plugins/concerns/destroy_multiple.rb +33 -0
  199. data/installer/plugins/concerns/history.rb +24 -0
  200. data/installer/plugins/config/locales/en.yml +104 -0
  201. data/installer/plugins/config/locales/es.yml +139 -0
  202. data/installer/plugins/config/menu.yml +12 -0
  203. data/installer/plugins/config/permissions.yml +1 -0
  204. data/installer/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb +203 -0
  205. data/installer/plugins/generators/keppler_scaffold/templates/controllers/controller.rb +171 -0
  206. data/installer/plugins/generators/keppler_scaffold/templates/models/model.rb +41 -0
  207. data/installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb +11 -0
  208. data/installer/plugins/generators/keppler_scaffold/templates/views/_description.html.haml +13 -0
  209. data/installer/plugins/generators/keppler_scaffold/templates/views/_form.html.haml +49 -0
  210. data/installer/plugins/generators/keppler_scaffold/templates/views/_index_show.html.haml +26 -0
  211. data/installer/plugins/generators/keppler_scaffold/templates/views/_listing.html.haml +65 -0
  212. data/installer/plugins/generators/keppler_scaffold/templates/views/edit.html.haml +1 -0
  213. data/installer/plugins/generators/keppler_scaffold/templates/views/index.html.haml +97 -0
  214. data/installer/plugins/generators/keppler_scaffold/templates/views/new.html.haml +1 -0
  215. data/installer/plugins/generators/keppler_scaffold/templates/views/reload.js.haml +5 -0
  216. data/installer/plugins/generators/keppler_scaffold/templates/views/show.html.haml +66 -0
  217. data/installer/plugins/generators/keppler_scaffold/templates/views/show.js.haml +4 -0
  218. data/installer/plugins/install.rb +156 -0
  219. data/installer/plugins/layouts/_navigation.html.haml +47 -0
  220. data/installer/plugins/layouts/application.html.haml +24 -0
  221. data/keppler.gemspec +35 -0
  222. data/lib/keppler.rb +0 -1
  223. data/lib/keppler/add.rb +13 -0
  224. data/lib/keppler/cli.rb +134 -5
  225. data/lib/keppler/delete.rb +13 -0
  226. data/lib/keppler/version.rb +1 -1
  227. metadata +117 -23
  228. data/installer/core/app/assets/images/admin/space.png +0 -0
  229. data/installer/core/app/assets/stylesheets/admin/pages/_header.scss +0 -34
  230. data/installer/core/app/assets/stylesheets/admin/pages/_pageslide.scss +0 -125
  231. data/installer/core/db/schema.rb +0 -172
  232. data/installer/lib/conf.rb +0 -31
  233. data/installer/lib/scaffold.rb +0 -10
  234. data/installer/run.sh +0 -17
  235. data/installer/scripts/bin.sh +0 -61
  236. data/lib/keppler/cli/generate.rb +0 -19
@@ -0,0 +1,13 @@
1
+ require 'thor'
2
+
3
+ module Keppler
4
+ class Delete < Thor
5
+
6
+ desc 'module', 'Delete a keppler module'
7
+ def module(*params)
8
+ module_name = params[0]
9
+ fields = params[1..params.length].join(" ")
10
+ system("rails d keppler_scaffold #{module_name} #{fields} position:integer deleted_at:datetime:index -y")
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Keppler
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keppler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Perez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-26 00:00:00.000000000 Z
11
+ date: 2018-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,48 +42,60 @@ dependencies:
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.20.0
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.20.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: httparty
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.16.2
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.16.2
68
+ version: '0'
69
69
  description: Keppler Administrator
70
70
  email: luis.prz7@gmail.com
71
- executables: []
71
+ executables:
72
+ - keppler
72
73
  extensions: []
73
74
  extra_rdoc_files: []
74
75
  files:
76
+ - ".gitignore"
77
+ - CODE_OF_CONDUCT.md
75
78
  - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE.txt
76
81
  - README.md
77
82
  - Rakefile
78
83
  - bin/console
79
84
  - bin/keppler
80
85
  - bin/setup
86
+ - exe/keppler
87
+ - installer/core/.gitignore
88
+ - installer/core/.ruby-version
81
89
  - installer/core/Gemfile
82
90
  - installer/core/Guardfile
83
91
  - installer/core/README.md
84
92
  - installer/core/Rakefile
85
93
  - installer/core/_config.yml
94
+ - installer/core/app/assets/images/.keep
95
+ - installer/core/app/assets/images/admin/astronauta_keppler.svg
96
+ - installer/core/app/assets/images/admin/avatar_keppler.svg
86
97
  - installer/core/app/assets/images/admin/favicon.png
98
+ - installer/core/app/assets/images/admin/image_default.png
87
99
  - installer/core/app/assets/images/admin/logo.png
88
100
  - installer/core/app/assets/images/admin/logo2.png
89
101
  - installer/core/app/assets/images/admin/profile-menu.jpg
@@ -92,9 +104,9 @@ files:
92
104
  - installer/core/app/assets/images/admin/slice-icon.png
93
105
  - installer/core/app/assets/images/admin/slice.png
94
106
  - installer/core/app/assets/images/admin/slice_white.png
95
- - installer/core/app/assets/images/admin/space.png
96
107
  - installer/core/app/assets/images/app/Home_Keppler.png
97
108
  - installer/core/app/assets/images/app/Home_Keppler2.png
109
+ - installer/core/app/assets/images/app/fondo.svg
98
110
  - installer/core/app/assets/images/app/keppler-front.png
99
111
  - installer/core/app/assets/images/app/slice-front.png
100
112
  - installer/core/app/assets/javascripts/admin/application.coffee
@@ -106,10 +118,15 @@ files:
106
118
  - installer/core/app/assets/javascripts/admin/preview_template.js
107
119
  - installer/core/app/assets/javascripts/admin/sidebar.js
108
120
  - installer/core/app/assets/javascripts/admin/sort.coffee
121
+ - installer/core/app/assets/javascripts/admin/swal.js
122
+ - installer/core/app/assets/javascripts/admin/switch.js
123
+ - installer/core/app/assets/javascripts/admin/tooltips.coffee
109
124
  - installer/core/app/assets/javascripts/app/application.js.coffee
110
125
  - installer/core/app/assets/javascripts/app/front.js
111
126
  - installer/core/app/assets/javascripts/app/google_analytics.js.coffee
112
127
  - installer/core/app/assets/javascripts/ckeditor/config.js
128
+ - installer/core/app/assets/javascripts/errors/application.js.coffee
129
+ - installer/core/app/assets/javascripts/errors/errors.js
113
130
  - installer/core/app/assets/javascripts/keppler_ga_dashboard/view-selector2.js
114
131
  - installer/core/app/assets/javascripts/vue_admin/index.js
115
132
  - installer/core/app/assets/stylesheets/admin/application.scss
@@ -119,20 +136,24 @@ files:
119
136
  - installer/core/app/assets/stylesheets/admin/components/navigation/_navbar.scss
120
137
  - installer/core/app/assets/stylesheets/admin/components/navigation/_sidebar.scss
121
138
  - installer/core/app/assets/stylesheets/admin/components/paginator/_paginator.scss
139
+ - installer/core/app/assets/stylesheets/admin/pages/_appearance.scss
140
+ - installer/core/app/assets/stylesheets/admin/pages/_customize.scss
141
+ - installer/core/app/assets/stylesheets/admin/pages/_datepicker.scss
122
142
  - installer/core/app/assets/stylesheets/admin/pages/_devise.scss
123
143
  - installer/core/app/assets/stylesheets/admin/pages/_files.scss
124
144
  - installer/core/app/assets/stylesheets/admin/pages/_form.scss
125
- - installer/core/app/assets/stylesheets/admin/pages/_header.scss
126
145
  - installer/core/app/assets/stylesheets/admin/pages/_index.scss
127
146
  - installer/core/app/assets/stylesheets/admin/pages/_listing.scss
128
147
  - installer/core/app/assets/stylesheets/admin/pages/_navbar.scss
129
- - installer/core/app/assets/stylesheets/admin/pages/_pageslide.scss
130
148
  - installer/core/app/assets/stylesheets/admin/pages/_preloader.scss
149
+ - installer/core/app/assets/stylesheets/admin/pages/_roles.scss
131
150
  - installer/core/app/assets/stylesheets/admin/pages/_search.scss
132
151
  - installer/core/app/assets/stylesheets/admin/pages/_show.scss
133
152
  - installer/core/app/assets/stylesheets/admin/pages/_sidebar.scss
134
153
  - installer/core/app/assets/stylesheets/admin/pages/_switchs.scss
135
154
  - installer/core/app/assets/stylesheets/admin/pages/_themes.scss
155
+ - installer/core/app/assets/stylesheets/admin/pages/_timepicker.scss
156
+ - installer/core/app/assets/stylesheets/admin/pages/_user.scss
136
157
  - installer/core/app/assets/stylesheets/admin/utils/_base.scss
137
158
  - installer/core/app/assets/stylesheets/admin/utils/_mixins.scss
138
159
  - installer/core/app/assets/stylesheets/admin/utils/_theme.scss
@@ -159,30 +180,42 @@ files:
159
180
  - installer/core/app/controllers/admin/admin_controller.rb
160
181
  - installer/core/app/controllers/admin/customizes_controller.rb
161
182
  - installer/core/app/controllers/admin/meta_tags_controller.rb
183
+ - installer/core/app/controllers/admin/roles_controller.rb
162
184
  - installer/core/app/controllers/admin/scripts_controller.rb
163
185
  - installer/core/app/controllers/admin/settings_controller.rb
164
186
  - installer/core/app/controllers/admin/users_controller.rb
165
187
  - installer/core/app/controllers/app/app_controller.rb
166
188
  - installer/core/app/controllers/app/front_controller.rb
167
189
  - installer/core/app/controllers/application_controller.rb
190
+ - installer/core/app/controllers/concerns/.keep
168
191
  - installer/core/app/controllers/devise/sessions_controller.rb
169
192
  - installer/core/app/controllers/errors_controller.rb
170
193
  - installer/core/app/helpers/admin_helper.rb
171
194
  - installer/core/app/helpers/application_helper.rb
172
195
  - installer/core/app/helpers/customizes_helper.rb
173
196
  - installer/core/app/helpers/fronts_helper.rb
197
+ - installer/core/app/helpers/roles_helper.rb
174
198
  - installer/core/app/helpers/scaffolds_helper.rb
175
199
  - installer/core/app/inputs/checkbox_material_input.rb
176
200
  - installer/core/app/inputs/file_material_input.rb
201
+ - installer/core/app/inputs/keppler_boolean_input.rb
202
+ - installer/core/app/inputs/keppler_file_input.rb
203
+ - installer/core/app/mailers/.keep
177
204
  - installer/core/app/mailers/application_mailer.rb
205
+ - installer/core/app/models/.keep
178
206
  - installer/core/app/models/appearance.rb
179
207
  - installer/core/app/models/application_record.rb
208
+ - installer/core/app/models/concerns/.keep
180
209
  - installer/core/app/models/concerns/activity_history.rb
181
210
  - installer/core/app/models/concerns/clone_record.rb
211
+ - installer/core/app/models/concerns/downloadable.rb
212
+ - installer/core/app/models/concerns/sortable.rb
213
+ - installer/core/app/models/concerns/uploadable.rb
182
214
  - installer/core/app/models/customize.rb
183
215
  - installer/core/app/models/front.rb
184
216
  - installer/core/app/models/google_analytics_setting.rb
185
217
  - installer/core/app/models/meta_tag.rb
218
+ - installer/core/app/models/permission.rb
186
219
  - installer/core/app/models/role.rb
187
220
  - installer/core/app/models/script.rb
188
221
  - installer/core/app/models/setting.rb
@@ -193,6 +226,7 @@ files:
193
226
  - installer/core/app/policies/controller_policy.rb
194
227
  - installer/core/app/policies/customize_policy.rb
195
228
  - installer/core/app/policies/meta_tag_policy.rb
229
+ - installer/core/app/policies/role_policy.rb
196
230
  - installer/core/app/policies/script_policy.rb
197
231
  - installer/core/app/policies/setting_policy.rb
198
232
  - installer/core/app/policies/user_policy.rb
@@ -210,6 +244,7 @@ files:
210
244
  - installer/core/app/views/admin/layouts/_footer.html.haml
211
245
  - installer/core/app/views/admin/layouts/_head.html.haml
212
246
  - installer/core/app/views/admin/layouts/_header.html.haml
247
+ - installer/core/app/views/admin/layouts/_keppler_boolean_script.haml
213
248
  - installer/core/app/views/admin/layouts/_listing_preloader.haml
214
249
  - installer/core/app/views/admin/layouts/_messages.html.haml
215
250
  - installer/core/app/views/admin/layouts/_navigation.html.haml
@@ -228,6 +263,21 @@ files:
228
263
  - installer/core/app/views/admin/meta_tags/reload.js.haml
229
264
  - installer/core/app/views/admin/meta_tags/show.html.haml
230
265
  - installer/core/app/views/admin/meta_tags/show.js.haml
266
+ - installer/core/app/views/admin/roles/_description.html.haml
267
+ - installer/core/app/views/admin/roles/_form.html.haml
268
+ - installer/core/app/views/admin/roles/_index_show.html.haml
269
+ - installer/core/app/views/admin/roles/_listing.html.haml
270
+ - installer/core/app/views/admin/roles/_switch.html.haml
271
+ - installer/core/app/views/admin/roles/add_permissions.html.haml
272
+ - installer/core/app/views/admin/roles/create_permissions.html.haml
273
+ - installer/core/app/views/admin/roles/create_permissions.js.erb
274
+ - installer/core/app/views/admin/roles/edit.html.haml
275
+ - installer/core/app/views/admin/roles/index.html.haml
276
+ - installer/core/app/views/admin/roles/new.html.haml
277
+ - installer/core/app/views/admin/roles/reload.js.haml
278
+ - installer/core/app/views/admin/roles/show.html.haml
279
+ - installer/core/app/views/admin/roles/show.js.haml
280
+ - installer/core/app/views/admin/roles/show_description.js.erb
231
281
  - installer/core/app/views/admin/scripts/_description.html.haml
232
282
  - installer/core/app/views/admin/scripts/_form.html.haml
233
283
  - installer/core/app/views/admin/scripts/_index_show.html.haml
@@ -250,7 +300,9 @@ files:
250
300
  - installer/core/app/views/admin/users/_form.html.haml
251
301
  - installer/core/app/views/admin/users/_index_show.html.haml
252
302
  - installer/core/app/views/admin/users/_listing.html.haml
303
+ - installer/core/app/views/admin/users/delete_avatar.js.haml
253
304
  - installer/core/app/views/admin/users/edit.html.haml
305
+ - installer/core/app/views/admin/users/filter_by_role.js.erb
254
306
  - installer/core/app/views/admin/users/index.html.haml
255
307
  - installer/core/app/views/admin/users/new.html.haml
256
308
  - installer/core/app/views/admin/users/reload.js.haml
@@ -306,6 +358,8 @@ files:
306
358
  - installer/core/bin/rake
307
359
  - installer/core/bin/setup
308
360
  - installer/core/bin/spring
361
+ - installer/core/bin/update
362
+ - installer/core/bin/yarn
309
363
  - installer/core/config.ru
310
364
  - installer/core/config/application.rb
311
365
  - installer/core/config/boot.rb
@@ -316,6 +370,7 @@ files:
316
370
  - installer/core/config/environments/test.rb
317
371
  - installer/core/config/gaAuth/gauth_key.p12
318
372
  - installer/core/config/initializers/assets.rb
373
+ - installer/core/config/initializers/carrierwave.rb
319
374
  - installer/core/config/initializers/cookies_serializer.rb
320
375
  - installer/core/config/initializers/date_formats.rb
321
376
  - installer/core/config/initializers/devise.rb
@@ -329,6 +384,7 @@ files:
329
384
  - installer/core/config/initializers/session_store.rb
330
385
  - installer/core/config/initializers/simple_form.rb
331
386
  - installer/core/config/initializers/simple_form_bootstrap.rb
387
+ - installer/core/config/initializers/simple_form_components.rb
332
388
  - installer/core/config/initializers/time_formats.rb
333
389
  - installer/core/config/initializers/wrap_parameters.rb
334
390
  - installer/core/config/locales/devise.en.yml
@@ -341,6 +397,7 @@ files:
341
397
  - installer/core/config/locales/simple_form.es.yml
342
398
  - installer/core/config/locales/social_share_button.es.yml
343
399
  - installer/core/config/menu.yml
400
+ - installer/core/config/permissions.yml
344
401
  - installer/core/config/puma.rb
345
402
  - installer/core/config/routes.rb
346
403
  - installer/core/config/sitemap.rb
@@ -357,7 +414,7 @@ files:
357
414
  - installer/core/db/migrate/20160201210520_create_appearances.rb
358
415
  - installer/core/db/migrate/20170603145521_create_customizes.rb
359
416
  - installer/core/db/migrate/20171225023933_create_scaffolds.rb
360
- - installer/core/db/schema.rb
417
+ - installer/core/db/migrate/20180503174351_create_permissions.rb
361
418
  - installer/core/db/seeds.rb
362
419
  - installer/core/lib/generators/keppler_front/keppler_front_generator.rb
363
420
  - installer/core/lib/generators/keppler_front/templates/controllers/controller.rb
@@ -383,6 +440,7 @@ files:
383
440
  - installer/core/plugins/keppler_ga_dashboard/MIT-LICENSE
384
441
  - installer/core/plugins/keppler_ga_dashboard/README.md
385
442
  - installer/core/plugins/keppler_ga_dashboard/Rakefile
443
+ - installer/core/plugins/keppler_ga_dashboard/app/assets/images/keppler_ga_dashboard/.keep
386
444
  - installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/active-users.js
387
445
  - installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/active-users.js.map
388
446
  - installer/core/plugins/keppler_ga_dashboard/app/assets/javascripts/keppler_ga_dashboard/dashboard.coffee
@@ -397,6 +455,7 @@ files:
397
455
  - installer/core/plugins/keppler_ga_dashboard/app/views/keppler_ga_dashboard/dashboard/analytics.html.haml
398
456
  - installer/core/plugins/keppler_ga_dashboard/bin/rails
399
457
  - installer/core/plugins/keppler_ga_dashboard/config/menu.yml
458
+ - installer/core/plugins/keppler_ga_dashboard/config/permissions.yml
400
459
  - installer/core/plugins/keppler_ga_dashboard/config/routes.rb
401
460
  - installer/core/plugins/keppler_ga_dashboard/keppler_ga_dashboard.gemspec
402
461
  - installer/core/plugins/keppler_ga_dashboard/lib/keppler_ga_dashboard.rb
@@ -407,21 +466,25 @@ files:
407
466
  - installer/core/public/favicon.ico
408
467
  - installer/core/public/humans.txt
409
468
  - installer/core/public/robots.txt
469
+ - installer/core/test/controllers/.keep
410
470
  - installer/core/test/controllers/admin_controller_test.rb
411
471
  - installer/core/test/controllers/errors_controller_test.rb
412
472
  - installer/core/test/controllers/frontend_controller_test.rb
413
473
  - installer/core/test/controllers/fronts_controller_test.rb
414
474
  - installer/core/test/controllers/meta_tags_controller_test.rb
475
+ - installer/core/test/controllers/roles_controller_test.rb
415
476
  - installer/core/test/controllers/scaffolds_controller_test.rb
416
477
  - installer/core/test/controllers/scripts_controller_test.rb
417
478
  - installer/core/test/controllers/settings_controller_test.rb
418
479
  - installer/core/test/controllers/users_controller_test.rb
480
+ - installer/core/test/fixtures/.keep
419
481
  - installer/core/test/fixtures/appearances.yml
420
482
  - installer/core/test/fixtures/caches.yml
421
483
  - installer/core/test/fixtures/fronts.yml
422
484
  - installer/core/test/fixtures/google_adwords.yml
423
485
  - installer/core/test/fixtures/google_analytics_settings.yml
424
486
  - installer/core/test/fixtures/meta_tags.yml
487
+ - installer/core/test/fixtures/permissions.yml
425
488
  - installer/core/test/fixtures/roles.yml
426
489
  - installer/core/test/fixtures/scaffolds.yml
427
490
  - installer/core/test/fixtures/scripts.yml
@@ -429,15 +492,20 @@ files:
429
492
  - installer/core/test/fixtures/smtp_settings.yml
430
493
  - installer/core/test/fixtures/social_accounts.yml
431
494
  - installer/core/test/fixtures/users.yml
495
+ - installer/core/test/helpers/.keep
432
496
  - installer/core/test/helpers/admin_helper_test.rb
433
497
  - installer/core/test/helpers/frontend_helper_test.rb
498
+ - installer/core/test/integration/.keep
499
+ - installer/core/test/mailers/.keep
434
500
  - installer/core/test/mailers/application_mailer_test.rb
435
501
  - installer/core/test/mailers/previews/application_mailer_preview.rb
502
+ - installer/core/test/models/.keep
436
503
  - installer/core/test/models/apparence_test.rb
437
504
  - installer/core/test/models/cache_test.rb
438
505
  - installer/core/test/models/front_test.rb
439
506
  - installer/core/test/models/google_analytics_setting_test.rb
440
507
  - installer/core/test/models/meta_tag_test.rb
508
+ - installer/core/test/models/permission_test.rb
441
509
  - installer/core/test/models/role_test.rb
442
510
  - installer/core/test/models/scaffold_test.rb
443
511
  - installer/core/test/models/script_test.rb
@@ -445,21 +513,47 @@ files:
445
513
  - installer/core/test/models/smtp_setting_test.rb
446
514
  - installer/core/test/models/social_account_test.rb
447
515
  - installer/core/test/models/user_test.rb
516
+ - installer/core/test/system/roles_test.rb
448
517
  - installer/core/test/test_helper.rb
518
+ - installer/core/vendor/assets/javascripts/.keep
449
519
  - installer/core/vendor/assets/javascripts/bounce.min.js
520
+ - installer/core/vendor/assets/stylesheets/.keep
450
521
  - installer/db_conf/conf.yml
451
- - installer/lib/conf.rb
452
- - installer/lib/scaffold.rb
453
- - installer/run.sh
454
- - installer/scripts/bin.sh
522
+ - installer/plugins/concerns/commons.rb
523
+ - installer/plugins/concerns/destroy_multiple.rb
524
+ - installer/plugins/concerns/history.rb
525
+ - installer/plugins/config/locales/en.yml
526
+ - installer/plugins/config/locales/es.yml
527
+ - installer/plugins/config/menu.yml
528
+ - installer/plugins/config/permissions.yml
529
+ - installer/plugins/generators/keppler_scaffold/keppler_scaffold_generator.rb
530
+ - installer/plugins/generators/keppler_scaffold/templates/controllers/controller.rb
531
+ - installer/plugins/generators/keppler_scaffold/templates/models/model.rb
532
+ - installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
533
+ - installer/plugins/generators/keppler_scaffold/templates/views/_description.html.haml
534
+ - installer/plugins/generators/keppler_scaffold/templates/views/_form.html.haml
535
+ - installer/plugins/generators/keppler_scaffold/templates/views/_index_show.html.haml
536
+ - installer/plugins/generators/keppler_scaffold/templates/views/_listing.html.haml
537
+ - installer/plugins/generators/keppler_scaffold/templates/views/edit.html.haml
538
+ - installer/plugins/generators/keppler_scaffold/templates/views/index.html.haml
539
+ - installer/plugins/generators/keppler_scaffold/templates/views/new.html.haml
540
+ - installer/plugins/generators/keppler_scaffold/templates/views/reload.js.haml
541
+ - installer/plugins/generators/keppler_scaffold/templates/views/show.html.haml
542
+ - installer/plugins/generators/keppler_scaffold/templates/views/show.js.haml
543
+ - installer/plugins/install.rb
544
+ - installer/plugins/layouts/_navigation.html.haml
545
+ - installer/plugins/layouts/application.html.haml
546
+ - keppler.gemspec
455
547
  - lib/keppler.rb
548
+ - lib/keppler/add.rb
456
549
  - lib/keppler/cli.rb
457
- - lib/keppler/cli/generate.rb
550
+ - lib/keppler/delete.rb
458
551
  - lib/keppler/version.rb
459
- homepage: http://rubygems.org/gems/keppler
552
+ homepage: https://rubygems.org/gems/keppler
460
553
  licenses:
461
554
  - MIT
462
- metadata: {}
555
+ metadata:
556
+ allowed_push_host: https://rubygems.org/gems/keppler
463
557
  post_install_message:
464
558
  rdoc_options: []
465
559
  require_paths:
@@ -476,7 +570,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
476
570
  version: '0'
477
571
  requirements: []
478
572
  rubyforge_project:
479
- rubygems_version: 2.7.6
573
+ rubygems_version: 2.6.7
480
574
  signing_key:
481
575
  specification_version: 4
482
576
  summary: Keppler Administrator
@@ -1,34 +0,0 @@
1
- .header-information {
2
- min-height: 75px;
3
- padding: 0 0 20px 115px;
4
- position: fixed;
5
- top: 54;
6
- width: 75%;
7
- z-index: 2;
8
-
9
- @media #{$medium-and-down} {
10
- min-width: 100%;
11
- width: 100%;
12
- }
13
-
14
- a {
15
- color: $white;
16
- }
17
-
18
- a:hover {
19
- text-decoration: underline;
20
- }
21
-
22
- h1 {
23
- color: $white;
24
- font-size: 2em;
25
- font-weight: 300;
26
- margin: 0;
27
- }
28
-
29
- small {
30
- color: $white;
31
- font-size: 1em;
32
- font-weight: 400;
33
- }
34
- }
@@ -1,125 +0,0 @@
1
- .open {
2
- overflow: hidden !important;
3
-
4
- .pageslide-background {
5
- @include transition(.25s);
6
- background: rgba($black, .65);
7
- height: 100%;
8
- position: fixed;
9
- width: 100%;
10
- z-index: 9999;
11
- }
12
- }
13
-
14
- pageslide {
15
- height: 100% !important;
16
- margin: 0 !important;
17
- opacity: 0;
18
-
19
- &::-webkit-scrollbar {
20
- width: 0 !important;
21
- }
22
-
23
- .profile-menu {
24
- background: url('profile-menu.jpg') center no-repeat;
25
- background-size: 268px 159px;
26
- height: 129px;
27
- width: 268px;
28
-
29
- .profile-pic {
30
- padding: 12px;
31
- }
32
-
33
- a {
34
- color: $link-color;
35
- }
36
-
37
- img {
38
- border: 3px solid rgba($black, .14);
39
- border-radius: 50%;
40
- box-sizing: content-box;
41
- height: 60px;
42
- width: 60px;
43
- }
44
-
45
- .profile-info {
46
- background: rgba($black, .6);
47
- bottom: 2px;
48
- color: $white;
49
- font-size: 14px;
50
- font-weight: 400;
51
- padding: 7px 14px;
52
- position: relative;
53
- }
54
- }
55
-
56
- .pageslide-menu {
57
- border: 0;
58
- box-shadow: none;
59
- color: $gray-darken;
60
- font-size: 13px;
61
- font-weight: 600;
62
- margin-bottom: 0;
63
- height: 75%;
64
- margin-top: 20px;
65
- overflow: auto;
66
- }
67
-
68
- .collapsible-header {
69
- border: 0;
70
- position: relative;
71
- }
72
-
73
- .collapsible-header:hover {
74
- background: $gray-lighten;
75
- color: $gray-darken;
76
-
77
- a {
78
- color: $gray-darken;
79
- }
80
- }
81
-
82
- .current {
83
- background: $gray-lighten;
84
- }
85
-
86
- .collapsible-body {
87
- background: $gray-lighten;
88
- border: 0;
89
- padding: 1rem;
90
- padding-left: 2rem;
91
- padding-right: 2rem;
92
- }
93
-
94
- a {
95
- color: $gray-darken;
96
- }
97
-
98
- .collapsable.collapsible-header::before {
99
- @include icon-before('\f067');
100
- position: absolute;
101
- top: 0;
102
- }
103
-
104
- .collapsable.collapsible-header.active::before {
105
- @include icon-before('\f068');
106
- }
107
-
108
- .pageslide-sub-menu {
109
-
110
- li {
111
- margin-bottom: 5px;
112
- margin-top: 5px;
113
- }
114
-
115
- a {
116
- color: $pageslide-link-color;
117
- font-weight: 600;
118
- }
119
-
120
- .current,
121
- a:hover {
122
- color: $gray-darken;
123
- }
124
- }
125
- }