biovision 0.0.200518.1 → 0.1.210414.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -18
  3. data/app/assets/images/biovision/icons/back.svg +19 -0
  4. data/app/assets/images/biovision/icons/create.svg +19 -0
  5. data/app/assets/images/biovision/icons/destroy.svg +12 -0
  6. data/app/assets/images/biovision/icons/dropdown.svg +3 -0
  7. data/app/assets/images/biovision/icons/edit.svg +22 -0
  8. data/app/assets/images/biovision/icons/gear.svg +11 -0
  9. data/app/assets/images/biovision/icons/return.svg +25 -0
  10. data/app/assets/images/biovision/icons/world.svg +11 -0
  11. data/app/assets/stylesheets/biovision/admin/components.scss +3 -1
  12. data/app/assets/stylesheets/biovision/admin/components/users.scss +16 -0
  13. data/app/assets/stylesheets/biovision/admin/layout.scss +6 -17
  14. data/app/assets/stylesheets/biovision/biovision.scss +42 -1
  15. data/app/assets/stylesheets/biovision/components.scss +6 -0
  16. data/app/assets/stylesheets/biovision/components/breadcrumbs.scss +13 -0
  17. data/app/assets/stylesheets/biovision/components/buttons.scss +130 -0
  18. data/app/assets/stylesheets/biovision/components/forms.scss +162 -1
  19. data/app/assets/stylesheets/biovision/components/lists.scss +6 -7
  20. data/app/assets/stylesheets/biovision/{biovision → components}/messages.scss +9 -0
  21. data/app/assets/stylesheets/biovision/components/pagination.scss +34 -0
  22. data/app/assets/stylesheets/biovision/components/simple_image.scss +112 -0
  23. data/app/assets/stylesheets/biovision/components/toggleable.scss +71 -0
  24. data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
  25. data/app/assets/stylesheets/biovision/themes/default_theme/components/users.scss +2 -0
  26. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss +101 -0
  27. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss +77 -0
  28. data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +2 -16
  29. data/app/controllers/admin/components_controller.rb +9 -19
  30. data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
  31. data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
  32. data/app/controllers/admin/navigation_groups_controller.rb +14 -0
  33. data/app/controllers/admin/users_controller.rb +70 -0
  34. data/app/controllers/admin_controller.rb +3 -2
  35. data/app/controllers/authentication_controller.rb +6 -34
  36. data/app/controllers/concerns/authentication.rb +12 -12
  37. data/app/controllers/concerns/crud_entities.rb +132 -0
  38. data/app/controllers/concerns/entity_priority.rb +10 -0
  39. data/app/controllers/concerns/toggleable_entity.rb +31 -0
  40. data/app/controllers/contact_controller.rb +49 -0
  41. data/app/controllers/fallback_controller.rb +12 -0
  42. data/app/controllers/index_controller.rb +1 -0
  43. data/app/controllers/legal_controller.rb +14 -0
  44. data/app/controllers/my/components_controller.rb +5 -0
  45. data/app/controllers/my/confirmations_controller.rb +44 -0
  46. data/app/controllers/my/index_controller.rb +8 -0
  47. data/app/controllers/my/profiles_controller.rb +31 -16
  48. data/app/controllers/profile_controller.rb +12 -0
  49. data/app/controllers/users_controller.rb +61 -0
  50. data/app/helpers/biovision_helper.rb +171 -0
  51. data/app/helpers/simple_image_helper.rb +125 -0
  52. data/app/jobs/application_job.rb +7 -0
  53. data/app/jobs/send_phone_confirmation_job.rb +16 -0
  54. data/app/lib/biovision/components/base/component_parameters.rb +44 -0
  55. data/app/lib/biovision/components/base/component_privileges.rb +65 -0
  56. data/app/lib/biovision/components/base/component_settings.rb +32 -0
  57. data/app/lib/biovision/components/base/privilege_handler.rb +79 -0
  58. data/app/lib/biovision/components/base_component.rb +51 -54
  59. data/app/lib/biovision/components/contact_component.rb +22 -0
  60. data/app/lib/biovision/components/content_component.rb +28 -0
  61. data/app/lib/biovision/components/track_component.rb +3 -0
  62. data/app/lib/biovision/components/users/authentication.rb +15 -7
  63. data/app/lib/biovision/components/users/codes.rb +104 -0
  64. data/app/lib/biovision/components/users/flag_helpers.rb +72 -0
  65. data/app/lib/biovision/components/users/profile_handler.rb +111 -1
  66. data/app/lib/biovision/components/users/registration_handler.rb +40 -52
  67. data/app/lib/biovision/components/users/validation.rb +83 -0
  68. data/app/lib/biovision/components/users_component.rb +82 -19
  69. data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
  70. data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
  71. data/app/lib/canonizer.rb +38 -0
  72. data/app/lib/carrier_wave/image_optim.rb +32 -0
  73. data/app/mailers/code_sender.rb +29 -0
  74. data/app/models/agent.rb +4 -0
  75. data/app/models/biovision_component.rb +22 -2
  76. data/app/models/browser.rb +1 -1
  77. data/app/models/code.rb +32 -9
  78. data/app/models/concerns/has_simple_image.rb +9 -0
  79. data/app/models/concerns/meta_texts.rb +25 -5
  80. data/app/models/concerns/tree_structure.rb +72 -0
  81. data/app/models/contact_method.rb +47 -0
  82. data/app/models/contact_type.rb +27 -0
  83. data/app/models/dynamic_block.rb +43 -0
  84. data/app/models/dynamic_page.rb +71 -0
  85. data/app/models/feedback_message.rb +59 -0
  86. data/app/models/feedback_response.rb +50 -0
  87. data/app/models/group.rb +48 -0
  88. data/app/models/language.rb +4 -0
  89. data/app/models/navigation_group.rb +33 -0
  90. data/app/models/navigation_group_page.rb +23 -0
  91. data/app/models/role.rb +56 -0
  92. data/app/models/role_group.rb +13 -0
  93. data/app/models/simple_image.rb +22 -8
  94. data/app/models/simple_image_tag.rb +1 -1
  95. data/app/models/token.rb +4 -4
  96. data/app/models/user.rb +94 -26
  97. data/app/models/user_group.rb +20 -0
  98. data/app/models/user_role.rb +19 -0
  99. data/app/uploaders/simple_file_uploader.rb +27 -0
  100. data/app/uploaders/simple_image_uploader.rb +20 -0
  101. data/app/views/admin/agents/index.html.erb +0 -2
  102. data/app/views/admin/components/_image.jbuilder +18 -0
  103. data/app/views/admin/components/_list.html.erb +1 -1
  104. data/app/views/admin/components/entity/_links.html.erb +1 -1
  105. data/app/views/admin/components/image.jbuilder +1 -0
  106. data/app/views/admin/components/images.jbuilder +4 -0
  107. data/app/views/admin/components/links/_content.html.erb +9 -0
  108. data/app/views/admin/components/links/_users.html.erb +1 -8
  109. data/app/views/admin/components/links/extra/_content.html.erb +0 -0
  110. data/app/views/admin/components/privileges/_links.html.erb +0 -18
  111. data/app/views/admin/components/settings/_new_parameter.html.erb +4 -2
  112. data/app/views/admin/components/settings/_parameters.html.erb +8 -2
  113. data/app/views/admin/components/settings/_settings.html.erb +1 -1
  114. data/app/views/admin/components/update_privileges.jbuilder +21 -0
  115. data/app/views/admin/dynamic_blocks/_form.html.erb +16 -0
  116. data/app/views/admin/dynamic_blocks/_nav_item.html.erb +6 -0
  117. data/app/views/admin/dynamic_blocks/entity/_in_list.html.erb +10 -0
  118. data/app/views/admin/dynamic_blocks/index.html.erb +15 -0
  119. data/app/views/admin/dynamic_blocks/show.html.erb +23 -0
  120. data/app/views/admin/dynamic_pages/_form.html.erb +21 -0
  121. data/app/views/admin/dynamic_pages/_nav_item.html.erb +6 -0
  122. data/app/views/admin/dynamic_pages/entity/_in_list.html.erb +15 -0
  123. data/app/views/admin/dynamic_pages/index.html.erb +15 -0
  124. data/app/views/admin/dynamic_pages/show.html.erb +28 -0
  125. data/app/views/admin/ip_addresses/index.html.erb +0 -2
  126. data/app/views/admin/navigation_groups/_form.html.erb +15 -0
  127. data/app/views/admin/navigation_groups/_nav_item.html.erb +6 -0
  128. data/app/views/admin/navigation_groups/entity/_in_list.html.erb +12 -0
  129. data/app/views/admin/navigation_groups/index.html.erb +15 -0
  130. data/app/views/admin/navigation_groups/show.html.erb +20 -0
  131. data/app/views/admin/unauthorized.html.erb +2 -5
  132. data/app/views/admin/users/_form.html.erb +81 -0
  133. data/app/views/admin/users/_nav_item.html.erb +6 -0
  134. data/app/views/admin/users/entity/_fields.html.erb +53 -0
  135. data/app/views/admin/users/entity/_in_list.html.erb +38 -0
  136. data/app/views/admin/users/entity/_profile.html.erb +26 -0
  137. data/app/views/admin/users/entity/in_list/_additional_data.html.erb +0 -0
  138. data/app/views/admin/users/index.html.erb +15 -0
  139. data/app/views/admin/users/show.html.erb +44 -0
  140. data/app/views/application/forbidden.html.erb +9 -0
  141. data/app/views/application/forbidden.jbuilder +4 -0
  142. data/app/views/application/not_found.html.erb +9 -0
  143. data/app/views/application/not_found.jbuilder +4 -0
  144. data/app/views/application/unauthorized.html.erb +16 -0
  145. data/app/views/application/unauthorized.jbuilder +4 -0
  146. data/app/views/authentication/new.html.erb +2 -8
  147. data/app/views/components/content/_dynamic_page.html.erb +21 -0
  148. data/app/views/components/users/_form_tabs.html.erb +31 -0
  149. data/app/views/components/users/_join_form.html.erb +192 -0
  150. data/app/views/components/users/_login_form.html.erb +45 -0
  151. data/app/views/components/users/form/_image.html.erb +17 -0
  152. data/app/views/components/users/form/_profile_data.html.erb +54 -0
  153. data/app/views/contact/_form.html.erb +108 -0
  154. data/app/views/contact/create_feedback_message.js.erb +1 -0
  155. data/app/views/contact/feedback.html.erb +13 -0
  156. data/app/views/contact/index.html.erb +16 -0
  157. data/app/views/fallback/show.html.erb +6 -0
  158. data/app/views/layouts/admin.html.erb +1 -1
  159. data/app/views/layouts/admin/_footer.html.erb +1 -1
  160. data/app/views/layouts/application/header/_authentication.html.erb +1 -1
  161. data/app/views/legal/privacy.html.erb +5 -0
  162. data/app/views/legal/tos.html.erb +5 -0
  163. data/app/views/my/confirmations/show.html.erb +62 -0
  164. data/app/views/my/index/index.html.erb +33 -0
  165. data/app/views/my/profiles/_form.html.erb +10 -0
  166. data/app/views/my/profiles/check.jbuilder +4 -0
  167. data/app/views/my/profiles/edit.html.erb +14 -0
  168. data/app/views/my/profiles/form/_basic_parameters.html.erb +9 -0
  169. data/app/views/my/profiles/form/_sensitive_parameters.html.erb +68 -0
  170. data/app/views/my/profiles/new.html.erb +6 -8
  171. data/app/views/my/profiles/show.html.erb +23 -0
  172. data/app/views/shared/_flash_messages.html.erb +1 -1
  173. data/app/views/shared/_list_of_errors.html.erb +7 -0
  174. data/app/views/shared/admin/_breadcrumbs.html.erb +8 -0
  175. data/app/views/shared/admin/_list.html.erb +4 -4
  176. data/app/views/shared/admin/_list_with_priority.html.erb +4 -4
  177. data/app/views/shared/admin/_priority.html.erb +5 -0
  178. data/app/views/shared/admin/_toggle.html.erb +11 -0
  179. data/app/views/shared/entity/_formatted_text_field.html.erb +10 -0
  180. data/app/views/shared/entity/_image.html.erb +31 -0
  181. data/app/views/shared/entity/_language.html.erb +6 -0
  182. data/app/views/shared/entity/_linked_entity.html.erb +6 -0
  183. data/app/views/shared/entity/_meta_texts.html.erb +16 -0
  184. data/app/views/shared/entity/_metadata.html.erb +18 -0
  185. data/app/views/shared/entity/_parent.html.erb +6 -0
  186. data/app/views/shared/entity/_priority.html.erb +4 -0
  187. data/app/views/shared/entity/_raw_text_field.html.erb +10 -0
  188. data/app/views/shared/entity/_simple_image.html.erb +10 -0
  189. data/app/views/shared/entity/_slug.html.erb +6 -0
  190. data/app/views/shared/entity/_text_field.html.erb +6 -0
  191. data/app/views/shared/entity/_text_fields.html.erb +9 -0
  192. data/app/views/shared/entity/_timestamps.html.erb +13 -0
  193. data/app/views/shared/entity/_tree_caches.html.erb +12 -0
  194. data/app/views/shared/entity/_uuid.html.erb +4 -0
  195. data/app/views/shared/entity/edit.html.erb +21 -0
  196. data/app/views/shared/entity/new.html.erb +16 -0
  197. data/app/views/shared/forms/_entity_flags.html.erb +15 -0
  198. data/app/views/shared/forms/_field.html.erb +46 -0
  199. data/app/views/shared/forms/_fields.html.erb +3 -0
  200. data/app/views/shared/forms/_language.html.erb +40 -0
  201. data/app/views/shared/forms/_meta_texts.html.erb +27 -0
  202. data/app/views/shared/forms/_priority.html.erb +13 -0
  203. data/app/views/shared/forms/_simple_image.html.erb +39 -0
  204. data/app/views/shared/forms/_state_container.html.erb +7 -0
  205. data/app/views/shared/forms/_text_area.html.erb +25 -0
  206. data/app/views/shared/forms/_text_field.html.erb +24 -0
  207. data/app/views/shared/forms/_text_fields.html.erb +3 -0
  208. data/app/views/shared/forms/check.jbuilder +4 -0
  209. data/app/views/shared/forms/errors.jbuilder +3 -0
  210. data/app/views/shared/forms/simple_image/_browse.html.erb +14 -0
  211. data/app/views/shared/forms/simple_image/_load_image.html.erb +38 -0
  212. data/app/views/shared/my/_list.html.erb +19 -0
  213. data/app/views/shared/my/_list_with_priority.html.erb +19 -0
  214. data/app/views/users/_profile.html.erb +30 -0
  215. data/app/views/users/profile/_data.html.erb +20 -0
  216. data/app/views/users/show.html.erb +21 -0
  217. data/config/locales/biovision-ru.yml +58 -0
  218. data/config/locales/components-ru.yml +30 -2
  219. data/config/locales/contact-ru.yml +106 -0
  220. data/config/locales/content-ru.yml +103 -0
  221. data/config/locales/users-ru.yml +117 -3
  222. data/config/routes.rb +70 -50
  223. data/db/migrate/20191228000000_create_biovision_components.rb +4 -5
  224. data/db/migrate/20200224000000_create_track_component.rb +7 -8
  225. data/db/migrate/20200224000010_create_users_component.rb +15 -43
  226. data/db/migrate/20200404000000_create_simple_images.rb +3 -3
  227. data/db/migrate/20200529000000_create_content_component.rb +74 -0
  228. data/db/migrate/20210401000000_create_contact_component.rb +95 -0
  229. data/db/migrate/20210405000000_create_acl.rb +74 -0
  230. data/lib/biovision/base_methods.rb +18 -10
  231. data/lib/biovision/engine.rb +8 -13
  232. data/lib/biovision/version.rb +1 -1
  233. metadata +186 -20
  234. data/app/assets/images/biovision/placeholders/user.svg +0 -15
  235. data/app/helpers/users_helper.rb +0 -11
  236. data/app/lib/biovision/components/component_settings.rb +0 -30
  237. data/app/lib/biovision/components/privilege_handler.rb +0 -77
  238. data/app/lib/biovision/components/users/code_handler.rb +0 -23
  239. data/app/models/foreign_site.rb +0 -34
  240. data/app/models/foreign_user.rb +0 -21
  241. data/app/uploaders/user_image_uploader.rb +0 -58
  242. data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
  243. data/app/views/authentication/_form.html.erb +0 -40
  244. data/app/views/authentication/failed.js.erb +0 -3
  245. data/app/views/my/profiles/new/_form.html.erb +0 -147
  246. data/app/views/shared/admin/_toggleable.html.erb +0 -8
@@ -2,6 +2,14 @@
2
2
 
3
3
  # Biovision CMS
4
4
  module Biovision
5
+ require 'kaminari'
6
+ require 'rails_i18n'
7
+ require 'carrierwave'
8
+ require 'mini_magick'
9
+ require 'carrierwave-bombshelter'
10
+ require 'image_optim'
11
+ require 'rest-client'
12
+
5
13
  # Engine class for Biovision CMS
6
14
  class Engine < ::Rails::Engine
7
15
  initializer 'biovision.load_base_methods' do
@@ -10,12 +18,6 @@ module Biovision
10
18
  end
11
19
  end
12
20
 
13
- config.to_prepare do
14
- Dir.glob(Rails.root + 'app/decorators/**/*_decorator*.rb').each do |c|
15
- require_dependency(c)
16
- end
17
- end
18
-
19
21
  config.assets.precompile << %w[biovision_manifest.js]
20
22
 
21
23
  config.generators do |g|
@@ -30,11 +32,4 @@ module Biovision
30
32
  end
31
33
  end
32
34
  end
33
-
34
- require 'kaminari'
35
- require 'rails_i18n'
36
- require 'carrierwave'
37
- require 'mini_magick'
38
- require 'carrierwave-bombshelter'
39
- require 'rest-client'
40
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Biovision
4
- VERSION = '0.0.200518.1'
4
+ VERSION = '0.1.210414.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biovision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.200518.1
4
+ version: 0.1.210414.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Khan-Magomedov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-21 00:00:00.000000000 Z
11
+ date: 2021-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,6 +86,20 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0.2'
89
+ - !ruby/object:Gem::Dependency
90
+ name: image_optim
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '0.27'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.27'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: kaminari
91
105
  requirement: !ruby/object:Gem::Requirement
@@ -203,11 +217,17 @@ files:
203
217
  - app/assets/config/biovision_manifest.js
204
218
  - app/assets/images/biovision/components/carousel/arrow-left.svg
205
219
  - app/assets/images/biovision/components/carousel/arrow-right.svg
220
+ - app/assets/images/biovision/icons/back.svg
206
221
  - app/assets/images/biovision/icons/breadcrumb-hover.svg
207
222
  - app/assets/images/biovision/icons/breadcrumb.svg
208
223
  - app/assets/images/biovision/icons/components/contact.svg
209
224
  - app/assets/images/biovision/icons/components/content.svg
210
225
  - app/assets/images/biovision/icons/components/users.svg
226
+ - app/assets/images/biovision/icons/create.svg
227
+ - app/assets/images/biovision/icons/destroy.svg
228
+ - app/assets/images/biovision/icons/dropdown.svg
229
+ - app/assets/images/biovision/icons/edit.svg
230
+ - app/assets/images/biovision/icons/gear.svg
211
231
  - app/assets/images/biovision/icons/key.svg
212
232
  - app/assets/images/biovision/icons/log_in.svg
213
233
  - app/assets/images/biovision/icons/log_out.svg
@@ -215,55 +235,92 @@ files:
215
235
  - app/assets/images/biovision/icons/messages/info.svg
216
236
  - app/assets/images/biovision/icons/messages/success.svg
217
237
  - app/assets/images/biovision/icons/messages/warning.svg
238
+ - app/assets/images/biovision/icons/return.svg
218
239
  - app/assets/images/biovision/icons/settings.svg
240
+ - app/assets/images/biovision/icons/world.svg
219
241
  - app/assets/images/biovision/placeholders/16x9.svg
220
242
  - app/assets/images/biovision/placeholders/1x1.svg
221
243
  - app/assets/images/biovision/placeholders/3x2.svg
222
- - app/assets/images/biovision/placeholders/user.svg
223
244
  - app/assets/stylesheets/biovision/admin.scss
224
245
  - app/assets/stylesheets/biovision/admin/components.scss
246
+ - app/assets/stylesheets/biovision/admin/components/users.scss
225
247
  - app/assets/stylesheets/biovision/admin/default.scss
226
248
  - app/assets/stylesheets/biovision/admin/layout.scss
227
249
  - app/assets/stylesheets/biovision/admin/vars.scss
228
250
  - app/assets/stylesheets/biovision/biovision.scss
229
- - app/assets/stylesheets/biovision/biovision/messages.scss
251
+ - app/assets/stylesheets/biovision/components.scss
252
+ - app/assets/stylesheets/biovision/components/breadcrumbs.scss
253
+ - app/assets/stylesheets/biovision/components/buttons.scss
230
254
  - app/assets/stylesheets/biovision/components/carousel.scss
231
255
  - app/assets/stylesheets/biovision/components/forms.scss
232
256
  - app/assets/stylesheets/biovision/components/hamburger.scss
233
257
  - app/assets/stylesheets/biovision/components/lists.scss
258
+ - app/assets/stylesheets/biovision/components/messages.scss
259
+ - app/assets/stylesheets/biovision/components/pagination.scss
260
+ - app/assets/stylesheets/biovision/components/simple_image.scss
261
+ - app/assets/stylesheets/biovision/components/toggleable.scss
234
262
  - app/assets/stylesheets/biovision/default.scss
235
263
  - app/assets/stylesheets/biovision/themes/default_theme.scss
236
264
  - app/assets/stylesheets/biovision/themes/default_theme/components.scss
265
+ - app/assets/stylesheets/biovision/themes/default_theme/components/users.scss
266
+ - app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss
267
+ - app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss
237
268
  - app/assets/stylesheets/biovision/themes/default_theme/layout.scss
238
269
  - app/assets/stylesheets/biovision/themes/default_theme/layout/footer.scss
239
270
  - app/assets/stylesheets/biovision/themes/default_theme/layout/header.scss
240
271
  - app/assets/stylesheets/biovision/vars.scss
241
272
  - app/controllers/admin/agents_controller.rb
242
273
  - app/controllers/admin/components_controller.rb
274
+ - app/controllers/admin/dynamic_blocks_controller.rb
275
+ - app/controllers/admin/dynamic_pages_controller.rb
243
276
  - app/controllers/admin/index_controller.rb
244
277
  - app/controllers/admin/ip_addresses_controller.rb
278
+ - app/controllers/admin/navigation_groups_controller.rb
279
+ - app/controllers/admin/users_controller.rb
245
280
  - app/controllers/admin_controller.rb
246
281
  - app/controllers/authentication_controller.rb
247
282
  - app/controllers/concerns/authentication.rb
283
+ - app/controllers/concerns/crud_entities.rb
284
+ - app/controllers/concerns/entity_priority.rb
285
+ - app/controllers/concerns/toggleable_entity.rb
286
+ - app/controllers/contact_controller.rb
287
+ - app/controllers/fallback_controller.rb
248
288
  - app/controllers/index_controller.rb
289
+ - app/controllers/legal_controller.rb
290
+ - app/controllers/my/components_controller.rb
249
291
  - app/controllers/my/confirmations_controller.rb
250
292
  - app/controllers/my/index_controller.rb
251
293
  - app/controllers/my/profiles_controller.rb
252
294
  - app/controllers/my/recoveries_controller.rb
295
+ - app/controllers/profile_controller.rb
296
+ - app/controllers/users_controller.rb
253
297
  - app/helpers/biovision_components_helper.rb
254
- - app/helpers/users_helper.rb
298
+ - app/helpers/biovision_helper.rb
299
+ - app/helpers/simple_image_helper.rb
300
+ - app/jobs/application_job.rb
301
+ - app/jobs/send_phone_confirmation_job.rb
302
+ - app/lib/biovision/components/base/component_parameters.rb
303
+ - app/lib/biovision/components/base/component_privileges.rb
304
+ - app/lib/biovision/components/base/component_settings.rb
305
+ - app/lib/biovision/components/base/privilege_handler.rb
255
306
  - app/lib/biovision/components/base_component.rb
256
- - app/lib/biovision/components/component_settings.rb
257
- - app/lib/biovision/components/privilege_handler.rb
307
+ - app/lib/biovision/components/contact_component.rb
308
+ - app/lib/biovision/components/content_component.rb
258
309
  - app/lib/biovision/components/track_component.rb
259
310
  - app/lib/biovision/components/users/authentication.rb
260
- - app/lib/biovision/components/users/code_handler.rb
311
+ - app/lib/biovision/components/users/codes.rb
312
+ - app/lib/biovision/components/users/flag_helpers.rb
261
313
  - app/lib/biovision/components/users/profile_handler.rb
262
314
  - app/lib/biovision/components/users/registration_handler.rb
315
+ - app/lib/biovision/components/users/validation.rb
263
316
  - app/lib/biovision/components/users_component.rb
264
317
  - app/lib/biovision/notifiers/base_notifier.rb
318
+ - app/lib/biovision/notifiers/contact_notifier.rb
265
319
  - app/lib/biovision/notifiers/socialization_notifier.rb
266
320
  - app/lib/biovision/notifiers/users_notifier.rb
321
+ - app/lib/canonizer.rb
322
+ - app/lib/carrier_wave/image_optim.rb
323
+ - app/mailers/code_sender.rb
267
324
  - app/models/agent.rb
268
325
  - app/models/biovision_component.rb
269
326
  - app/models/biovision_component_user.rb
@@ -281,35 +338,51 @@ files:
281
338
  - app/models/concerns/required_unique_name.rb
282
339
  - app/models/concerns/required_unique_slug.rb
283
340
  - app/models/concerns/toggleable.rb
284
- - app/models/foreign_site.rb
285
- - app/models/foreign_user.rb
341
+ - app/models/concerns/tree_structure.rb
342
+ - app/models/contact_method.rb
343
+ - app/models/contact_type.rb
344
+ - app/models/dynamic_block.rb
345
+ - app/models/dynamic_page.rb
346
+ - app/models/feedback_message.rb
347
+ - app/models/feedback_response.rb
348
+ - app/models/group.rb
286
349
  - app/models/ip_address.rb
287
350
  - app/models/language.rb
288
351
  - app/models/login_attempt.rb
289
352
  - app/models/metric.rb
290
353
  - app/models/metric_value.rb
354
+ - app/models/navigation_group.rb
355
+ - app/models/navigation_group_page.rb
291
356
  - app/models/notification.rb
357
+ - app/models/role.rb
358
+ - app/models/role_group.rb
292
359
  - app/models/simple_image.rb
293
360
  - app/models/simple_image_tag.rb
294
361
  - app/models/simple_image_tag_image.rb
295
362
  - app/models/token.rb
296
363
  - app/models/user.rb
364
+ - app/models/user_group.rb
297
365
  - app/models/user_language.rb
366
+ - app/models/user_role.rb
367
+ - app/uploaders/simple_file_uploader.rb
298
368
  - app/uploaders/simple_image_uploader.rb
299
- - app/uploaders/user_image_uploader.rb
300
369
  - app/views/admin/agents/_nav_item.html.erb
301
370
  - app/views/admin/agents/entity/_in_list.html.erb
302
371
  - app/views/admin/agents/index.html.erb
372
+ - app/views/admin/components/_image.jbuilder
303
373
  - app/views/admin/components/_list.html.erb
304
374
  - app/views/admin/components/entity/_links.html.erb
305
375
  - app/views/admin/components/entity/_section.html.erb
376
+ - app/views/admin/components/image.jbuilder
377
+ - app/views/admin/components/images.jbuilder
306
378
  - app/views/admin/components/index.html.erb
379
+ - app/views/admin/components/links/_content.html.erb
307
380
  - app/views/admin/components/links/_track.html.erb
308
381
  - app/views/admin/components/links/_users.html.erb
382
+ - app/views/admin/components/links/extra/_content.html.erb
309
383
  - app/views/admin/components/privileges.html.erb
310
384
  - app/views/admin/components/privileges/_component_user.html.erb
311
385
  - app/views/admin/components/privileges/_links.html.erb
312
- - app/views/admin/components/privileges/_privilege_flag.html.erb
313
386
  - app/views/admin/components/privileges/_users.html.erb
314
387
  - app/views/admin/components/settings.html.erb
315
388
  - app/views/admin/components/settings/_new_parameter.html.erb
@@ -317,14 +390,53 @@ files:
317
390
  - app/views/admin/components/settings/_setting.html.erb
318
391
  - app/views/admin/components/settings/_settings.html.erb
319
392
  - app/views/admin/components/show.html.erb
393
+ - app/views/admin/components/update_privileges.jbuilder
394
+ - app/views/admin/dynamic_blocks/_form.html.erb
395
+ - app/views/admin/dynamic_blocks/_nav_item.html.erb
396
+ - app/views/admin/dynamic_blocks/entity/_in_list.html.erb
397
+ - app/views/admin/dynamic_blocks/index.html.erb
398
+ - app/views/admin/dynamic_blocks/show.html.erb
399
+ - app/views/admin/dynamic_pages/_form.html.erb
400
+ - app/views/admin/dynamic_pages/_nav_item.html.erb
401
+ - app/views/admin/dynamic_pages/entity/_in_list.html.erb
402
+ - app/views/admin/dynamic_pages/index.html.erb
403
+ - app/views/admin/dynamic_pages/show.html.erb
320
404
  - app/views/admin/index/index.html.erb
321
405
  - app/views/admin/ip_addresses/_nav_item.html.erb
322
406
  - app/views/admin/ip_addresses/entity/_in_list.html.erb
323
407
  - app/views/admin/ip_addresses/index.html.erb
408
+ - app/views/admin/navigation_groups/_form.html.erb
409
+ - app/views/admin/navigation_groups/_nav_item.html.erb
410
+ - app/views/admin/navigation_groups/entity/_in_list.html.erb
411
+ - app/views/admin/navigation_groups/index.html.erb
412
+ - app/views/admin/navigation_groups/show.html.erb
324
413
  - app/views/admin/unauthorized.html.erb
325
- - app/views/authentication/_form.html.erb
326
- - app/views/authentication/failed.js.erb
414
+ - app/views/admin/users/_form.html.erb
415
+ - app/views/admin/users/_nav_item.html.erb
416
+ - app/views/admin/users/entity/_fields.html.erb
417
+ - app/views/admin/users/entity/_in_list.html.erb
418
+ - app/views/admin/users/entity/_profile.html.erb
419
+ - app/views/admin/users/entity/in_list/_additional_data.html.erb
420
+ - app/views/admin/users/index.html.erb
421
+ - app/views/admin/users/show.html.erb
422
+ - app/views/application/forbidden.html.erb
423
+ - app/views/application/forbidden.jbuilder
424
+ - app/views/application/not_found.html.erb
425
+ - app/views/application/not_found.jbuilder
426
+ - app/views/application/unauthorized.html.erb
427
+ - app/views/application/unauthorized.jbuilder
327
428
  - app/views/authentication/new.html.erb
429
+ - app/views/components/content/_dynamic_page.html.erb
430
+ - app/views/components/users/_form_tabs.html.erb
431
+ - app/views/components/users/_join_form.html.erb
432
+ - app/views/components/users/_login_form.html.erb
433
+ - app/views/components/users/form/_image.html.erb
434
+ - app/views/components/users/form/_profile_data.html.erb
435
+ - app/views/contact/_form.html.erb
436
+ - app/views/contact/create_feedback_message.js.erb
437
+ - app/views/contact/feedback.html.erb
438
+ - app/views/contact/index.html.erb
439
+ - app/views/fallback/show.html.erb
328
440
  - app/views/index/index.html.erb
329
441
  - app/views/layouts/admin.html.erb
330
442
  - app/views/layouts/admin/_breadcrumbs.html.erb
@@ -334,25 +446,76 @@ files:
334
446
  - app/views/layouts/application/_footer.html.erb
335
447
  - app/views/layouts/application/_header.html.erb
336
448
  - app/views/layouts/application/header/_authentication.html.erb
449
+ - app/views/legal/privacy.html.erb
450
+ - app/views/legal/tos.html.erb
451
+ - app/views/my/confirmations/show.html.erb
337
452
  - app/views/my/index/index.html.erb
453
+ - app/views/my/profiles/_form.html.erb
454
+ - app/views/my/profiles/check.jbuilder
338
455
  - app/views/my/profiles/closed.html.erb
456
+ - app/views/my/profiles/edit.html.erb
457
+ - app/views/my/profiles/form/_basic_parameters.html.erb
458
+ - app/views/my/profiles/form/_sensitive_parameters.html.erb
339
459
  - app/views/my/profiles/new.html.erb
340
- - app/views/my/profiles/new/_form.html.erb
460
+ - app/views/my/profiles/show.html.erb
341
461
  - app/views/shared/_breadcrumbs.html.erb
342
462
  - app/views/shared/_cookie_notification.html.erb
343
463
  - app/views/shared/_flash_messages.html.erb
464
+ - app/views/shared/_list_of_errors.html.erb
344
465
  - app/views/shared/_meta_texts.html.erb
345
466
  - app/views/shared/_nothing_found.html.erb
346
467
  - app/views/shared/_pagination.jbuilder
468
+ - app/views/shared/admin/_breadcrumbs.html.erb
347
469
  - app/views/shared/admin/_list.html.erb
348
470
  - app/views/shared/admin/_list_with_priority.html.erb
349
- - app/views/shared/admin/_toggleable.html.erb
471
+ - app/views/shared/admin/_priority.html.erb
472
+ - app/views/shared/admin/_toggle.html.erb
473
+ - app/views/shared/entity/_formatted_text_field.html.erb
474
+ - app/views/shared/entity/_image.html.erb
475
+ - app/views/shared/entity/_language.html.erb
476
+ - app/views/shared/entity/_linked_entity.html.erb
350
477
  - app/views/shared/entity/_list_of_errors.html.erb
478
+ - app/views/shared/entity/_meta_texts.html.erb
479
+ - app/views/shared/entity/_metadata.html.erb
480
+ - app/views/shared/entity/_parent.html.erb
481
+ - app/views/shared/entity/_priority.html.erb
482
+ - app/views/shared/entity/_raw_text_field.html.erb
483
+ - app/views/shared/entity/_simple_image.html.erb
484
+ - app/views/shared/entity/_slug.html.erb
485
+ - app/views/shared/entity/_text_field.html.erb
486
+ - app/views/shared/entity/_text_fields.html.erb
487
+ - app/views/shared/entity/_timestamps.html.erb
488
+ - app/views/shared/entity/_tree_caches.html.erb
489
+ - app/views/shared/entity/_uuid.html.erb
490
+ - app/views/shared/entity/edit.html.erb
491
+ - app/views/shared/entity/new.html.erb
492
+ - app/views/shared/forms/_entity_flags.html.erb
493
+ - app/views/shared/forms/_field.html.erb
494
+ - app/views/shared/forms/_fields.html.erb
495
+ - app/views/shared/forms/_language.html.erb
496
+ - app/views/shared/forms/_meta_texts.html.erb
497
+ - app/views/shared/forms/_priority.html.erb
498
+ - app/views/shared/forms/_simple_image.html.erb
499
+ - app/views/shared/forms/_state_container.html.erb
500
+ - app/views/shared/forms/_text_area.html.erb
501
+ - app/views/shared/forms/_text_field.html.erb
502
+ - app/views/shared/forms/_text_fields.html.erb
503
+ - app/views/shared/forms/check.jbuilder
504
+ - app/views/shared/forms/errors.jbuilder
351
505
  - app/views/shared/forms/errors.js.erb
506
+ - app/views/shared/forms/simple_image/_browse.html.erb
507
+ - app/views/shared/forms/simple_image/_load_image.html.erb
508
+ - app/views/shared/my/_list.html.erb
509
+ - app/views/shared/my/_list_with_priority.html.erb
510
+ - app/views/users/_profile.html.erb
511
+ - app/views/users/profile/_data.html.erb
512
+ - app/views/users/show.html.erb
352
513
  - config/initializers/carrierwave.rb
353
514
  - config/initializers/pluralization.rb
354
515
  - config/locales/biovision-ru.yml
355
516
  - config/locales/components-ru.yml
517
+ - config/locales/contact-ru.yml
518
+ - config/locales/content-ru.yml
356
519
  - config/locales/track-ru.yml
357
520
  - config/locales/users-ru.yml
358
521
  - config/routes.rb
@@ -360,6 +523,9 @@ files:
360
523
  - db/migrate/20200224000000_create_track_component.rb
361
524
  - db/migrate/20200224000010_create_users_component.rb
362
525
  - db/migrate/20200404000000_create_simple_images.rb
526
+ - db/migrate/20200529000000_create_content_component.rb
527
+ - db/migrate/20210401000000_create_contact_component.rb
528
+ - db/migrate/20210405000000_create_acl.rb
363
529
  - lib/biovision.rb
364
530
  - lib/biovision/base_methods.rb
365
531
  - lib/biovision/engine.rb
@@ -370,7 +536,7 @@ licenses:
370
536
  - MIT
371
537
  metadata:
372
538
  allowed_push_host: https://rubygems.org
373
- post_install_message:
539
+ post_install_message:
374
540
  rdoc_options: []
375
541
  require_paths:
376
542
  - lib
@@ -385,8 +551,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
551
  - !ruby/object:Gem::Version
386
552
  version: '0'
387
553
  requirements: []
388
- rubygems_version: 3.1.2
389
- signing_key:
554
+ rubygems_version: 3.1.4
555
+ signing_key:
390
556
  specification_version: 4
391
557
  summary: Biovision CMS gem
392
558
  test_files: []
@@ -1,15 +0,0 @@
1
- <svg version="1.1" viewBox="0 0 300 300" width="300px" height="300px" xmlns="http://www.w3.org/2000/svg">
2
- <title>User placeholder</title>
3
- <style>
4
- * { stroke: #555; stroke-width: 5; }
5
- .f { fill: #ffe }
6
- .e { fill: #eff }
7
- .m { fill: none }
8
- </style>
9
- <g>
10
- <circle cx="150" cy="150" r="140" class="f"/>
11
- <circle cx="100" cy="110" r="15" class="e"/>
12
- <circle cx="200" cy="110" r="15" class="e"/>
13
- <path d="M 75,200 A 150,200 0 0,0 225,200" class="m"/>
14
- </g>
15
- </svg>
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Helpers for Users component
4
- module UsersHelper
5
- # @param [User] entity
6
- def user_image_tiny(entity)
7
- return image_tag('biovision/placeholders/user.svg', alt: '') if entity.nil?
8
-
9
- image_tag(entity.image.tiny.url, alt: '')
10
- end
11
- end
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Biovision
4
- module Components
5
- # Normalizing component settings
6
- module ComponentSettings
7
- def settings_flags
8
- []
9
- end
10
-
11
- def settings_numbers
12
- []
13
- end
14
-
15
- def settings_strings
16
- []
17
- end
18
-
19
- # @param [Hash] data
20
- def normalize_settings(data)
21
- result = {}
22
- settings_flags.each { |f| result[f] = data[f].to_i == 1 }
23
- settings_numbers.each { |n| result[n] = data[n].to_i }
24
- settings_strings.each { |s| result[s] = data[s].to_s }
25
-
26
- result
27
- end
28
- end
29
- end
30
- end