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.
- checksums.yaml +4 -4
- data/README.md +60 -18
- data/app/assets/images/biovision/icons/back.svg +19 -0
- data/app/assets/images/biovision/icons/create.svg +19 -0
- data/app/assets/images/biovision/icons/destroy.svg +12 -0
- data/app/assets/images/biovision/icons/dropdown.svg +3 -0
- data/app/assets/images/biovision/icons/edit.svg +22 -0
- data/app/assets/images/biovision/icons/gear.svg +11 -0
- data/app/assets/images/biovision/icons/return.svg +25 -0
- data/app/assets/images/biovision/icons/world.svg +11 -0
- data/app/assets/stylesheets/biovision/admin/components.scss +3 -1
- data/app/assets/stylesheets/biovision/admin/components/users.scss +16 -0
- data/app/assets/stylesheets/biovision/admin/layout.scss +6 -17
- data/app/assets/stylesheets/biovision/biovision.scss +42 -1
- data/app/assets/stylesheets/biovision/components.scss +6 -0
- data/app/assets/stylesheets/biovision/components/breadcrumbs.scss +13 -0
- data/app/assets/stylesheets/biovision/components/buttons.scss +130 -0
- data/app/assets/stylesheets/biovision/components/forms.scss +162 -1
- data/app/assets/stylesheets/biovision/components/lists.scss +6 -7
- data/app/assets/stylesheets/biovision/{biovision → components}/messages.scss +9 -0
- data/app/assets/stylesheets/biovision/components/pagination.scss +34 -0
- data/app/assets/stylesheets/biovision/components/simple_image.scss +112 -0
- data/app/assets/stylesheets/biovision/components/toggleable.scss +71 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users.scss +2 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss +101 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss +77 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +2 -16
- data/app/controllers/admin/components_controller.rb +9 -19
- data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
- data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
- data/app/controllers/admin/navigation_groups_controller.rb +14 -0
- data/app/controllers/admin/users_controller.rb +70 -0
- data/app/controllers/admin_controller.rb +3 -2
- data/app/controllers/authentication_controller.rb +6 -34
- data/app/controllers/concerns/authentication.rb +12 -12
- data/app/controllers/concerns/crud_entities.rb +132 -0
- data/app/controllers/concerns/entity_priority.rb +10 -0
- data/app/controllers/concerns/toggleable_entity.rb +31 -0
- data/app/controllers/contact_controller.rb +49 -0
- data/app/controllers/fallback_controller.rb +12 -0
- data/app/controllers/index_controller.rb +1 -0
- data/app/controllers/legal_controller.rb +14 -0
- data/app/controllers/my/components_controller.rb +5 -0
- data/app/controllers/my/confirmations_controller.rb +44 -0
- data/app/controllers/my/index_controller.rb +8 -0
- data/app/controllers/my/profiles_controller.rb +31 -16
- data/app/controllers/profile_controller.rb +12 -0
- data/app/controllers/users_controller.rb +61 -0
- data/app/helpers/biovision_helper.rb +171 -0
- data/app/helpers/simple_image_helper.rb +125 -0
- data/app/jobs/application_job.rb +7 -0
- data/app/jobs/send_phone_confirmation_job.rb +16 -0
- data/app/lib/biovision/components/base/component_parameters.rb +44 -0
- data/app/lib/biovision/components/base/component_privileges.rb +65 -0
- data/app/lib/biovision/components/base/component_settings.rb +32 -0
- data/app/lib/biovision/components/base/privilege_handler.rb +79 -0
- data/app/lib/biovision/components/base_component.rb +51 -54
- data/app/lib/biovision/components/contact_component.rb +22 -0
- data/app/lib/biovision/components/content_component.rb +28 -0
- data/app/lib/biovision/components/track_component.rb +3 -0
- data/app/lib/biovision/components/users/authentication.rb +15 -7
- data/app/lib/biovision/components/users/codes.rb +104 -0
- data/app/lib/biovision/components/users/flag_helpers.rb +72 -0
- data/app/lib/biovision/components/users/profile_handler.rb +111 -1
- data/app/lib/biovision/components/users/registration_handler.rb +40 -52
- data/app/lib/biovision/components/users/validation.rb +83 -0
- data/app/lib/biovision/components/users_component.rb +82 -19
- data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
- data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
- data/app/lib/canonizer.rb +38 -0
- data/app/lib/carrier_wave/image_optim.rb +32 -0
- data/app/mailers/code_sender.rb +29 -0
- data/app/models/agent.rb +4 -0
- data/app/models/biovision_component.rb +22 -2
- data/app/models/browser.rb +1 -1
- data/app/models/code.rb +32 -9
- data/app/models/concerns/has_simple_image.rb +9 -0
- data/app/models/concerns/meta_texts.rb +25 -5
- data/app/models/concerns/tree_structure.rb +72 -0
- data/app/models/contact_method.rb +47 -0
- data/app/models/contact_type.rb +27 -0
- data/app/models/dynamic_block.rb +43 -0
- data/app/models/dynamic_page.rb +71 -0
- data/app/models/feedback_message.rb +59 -0
- data/app/models/feedback_response.rb +50 -0
- data/app/models/group.rb +48 -0
- data/app/models/language.rb +4 -0
- data/app/models/navigation_group.rb +33 -0
- data/app/models/navigation_group_page.rb +23 -0
- data/app/models/role.rb +56 -0
- data/app/models/role_group.rb +13 -0
- data/app/models/simple_image.rb +22 -8
- data/app/models/simple_image_tag.rb +1 -1
- data/app/models/token.rb +4 -4
- data/app/models/user.rb +94 -26
- data/app/models/user_group.rb +20 -0
- data/app/models/user_role.rb +19 -0
- data/app/uploaders/simple_file_uploader.rb +27 -0
- data/app/uploaders/simple_image_uploader.rb +20 -0
- data/app/views/admin/agents/index.html.erb +0 -2
- data/app/views/admin/components/_image.jbuilder +18 -0
- data/app/views/admin/components/_list.html.erb +1 -1
- data/app/views/admin/components/entity/_links.html.erb +1 -1
- data/app/views/admin/components/image.jbuilder +1 -0
- data/app/views/admin/components/images.jbuilder +4 -0
- data/app/views/admin/components/links/_content.html.erb +9 -0
- data/app/views/admin/components/links/_users.html.erb +1 -8
- data/app/views/admin/components/links/extra/_content.html.erb +0 -0
- data/app/views/admin/components/privileges/_links.html.erb +0 -18
- data/app/views/admin/components/settings/_new_parameter.html.erb +4 -2
- data/app/views/admin/components/settings/_parameters.html.erb +8 -2
- data/app/views/admin/components/settings/_settings.html.erb +1 -1
- data/app/views/admin/components/update_privileges.jbuilder +21 -0
- data/app/views/admin/dynamic_blocks/_form.html.erb +16 -0
- data/app/views/admin/dynamic_blocks/_nav_item.html.erb +6 -0
- data/app/views/admin/dynamic_blocks/entity/_in_list.html.erb +10 -0
- data/app/views/admin/dynamic_blocks/index.html.erb +15 -0
- data/app/views/admin/dynamic_blocks/show.html.erb +23 -0
- data/app/views/admin/dynamic_pages/_form.html.erb +21 -0
- data/app/views/admin/dynamic_pages/_nav_item.html.erb +6 -0
- data/app/views/admin/dynamic_pages/entity/_in_list.html.erb +15 -0
- data/app/views/admin/dynamic_pages/index.html.erb +15 -0
- data/app/views/admin/dynamic_pages/show.html.erb +28 -0
- data/app/views/admin/ip_addresses/index.html.erb +0 -2
- data/app/views/admin/navigation_groups/_form.html.erb +15 -0
- data/app/views/admin/navigation_groups/_nav_item.html.erb +6 -0
- data/app/views/admin/navigation_groups/entity/_in_list.html.erb +12 -0
- data/app/views/admin/navigation_groups/index.html.erb +15 -0
- data/app/views/admin/navigation_groups/show.html.erb +20 -0
- data/app/views/admin/unauthorized.html.erb +2 -5
- data/app/views/admin/users/_form.html.erb +81 -0
- data/app/views/admin/users/_nav_item.html.erb +6 -0
- data/app/views/admin/users/entity/_fields.html.erb +53 -0
- data/app/views/admin/users/entity/_in_list.html.erb +38 -0
- data/app/views/admin/users/entity/_profile.html.erb +26 -0
- data/app/views/admin/users/entity/in_list/_additional_data.html.erb +0 -0
- data/app/views/admin/users/index.html.erb +15 -0
- data/app/views/admin/users/show.html.erb +44 -0
- data/app/views/application/forbidden.html.erb +9 -0
- data/app/views/application/forbidden.jbuilder +4 -0
- data/app/views/application/not_found.html.erb +9 -0
- data/app/views/application/not_found.jbuilder +4 -0
- data/app/views/application/unauthorized.html.erb +16 -0
- data/app/views/application/unauthorized.jbuilder +4 -0
- data/app/views/authentication/new.html.erb +2 -8
- data/app/views/components/content/_dynamic_page.html.erb +21 -0
- data/app/views/components/users/_form_tabs.html.erb +31 -0
- data/app/views/components/users/_join_form.html.erb +192 -0
- data/app/views/components/users/_login_form.html.erb +45 -0
- data/app/views/components/users/form/_image.html.erb +17 -0
- data/app/views/components/users/form/_profile_data.html.erb +54 -0
- data/app/views/contact/_form.html.erb +108 -0
- data/app/views/contact/create_feedback_message.js.erb +1 -0
- data/app/views/contact/feedback.html.erb +13 -0
- data/app/views/contact/index.html.erb +16 -0
- data/app/views/fallback/show.html.erb +6 -0
- data/app/views/layouts/admin.html.erb +1 -1
- data/app/views/layouts/admin/_footer.html.erb +1 -1
- data/app/views/layouts/application/header/_authentication.html.erb +1 -1
- data/app/views/legal/privacy.html.erb +5 -0
- data/app/views/legal/tos.html.erb +5 -0
- data/app/views/my/confirmations/show.html.erb +62 -0
- data/app/views/my/index/index.html.erb +33 -0
- data/app/views/my/profiles/_form.html.erb +10 -0
- data/app/views/my/profiles/check.jbuilder +4 -0
- data/app/views/my/profiles/edit.html.erb +14 -0
- data/app/views/my/profiles/form/_basic_parameters.html.erb +9 -0
- data/app/views/my/profiles/form/_sensitive_parameters.html.erb +68 -0
- data/app/views/my/profiles/new.html.erb +6 -8
- data/app/views/my/profiles/show.html.erb +23 -0
- data/app/views/shared/_flash_messages.html.erb +1 -1
- data/app/views/shared/_list_of_errors.html.erb +7 -0
- data/app/views/shared/admin/_breadcrumbs.html.erb +8 -0
- data/app/views/shared/admin/_list.html.erb +4 -4
- data/app/views/shared/admin/_list_with_priority.html.erb +4 -4
- data/app/views/shared/admin/_priority.html.erb +5 -0
- data/app/views/shared/admin/_toggle.html.erb +11 -0
- data/app/views/shared/entity/_formatted_text_field.html.erb +10 -0
- data/app/views/shared/entity/_image.html.erb +31 -0
- data/app/views/shared/entity/_language.html.erb +6 -0
- data/app/views/shared/entity/_linked_entity.html.erb +6 -0
- data/app/views/shared/entity/_meta_texts.html.erb +16 -0
- data/app/views/shared/entity/_metadata.html.erb +18 -0
- data/app/views/shared/entity/_parent.html.erb +6 -0
- data/app/views/shared/entity/_priority.html.erb +4 -0
- data/app/views/shared/entity/_raw_text_field.html.erb +10 -0
- data/app/views/shared/entity/_simple_image.html.erb +10 -0
- data/app/views/shared/entity/_slug.html.erb +6 -0
- data/app/views/shared/entity/_text_field.html.erb +6 -0
- data/app/views/shared/entity/_text_fields.html.erb +9 -0
- data/app/views/shared/entity/_timestamps.html.erb +13 -0
- data/app/views/shared/entity/_tree_caches.html.erb +12 -0
- data/app/views/shared/entity/_uuid.html.erb +4 -0
- data/app/views/shared/entity/edit.html.erb +21 -0
- data/app/views/shared/entity/new.html.erb +16 -0
- data/app/views/shared/forms/_entity_flags.html.erb +15 -0
- data/app/views/shared/forms/_field.html.erb +46 -0
- data/app/views/shared/forms/_fields.html.erb +3 -0
- data/app/views/shared/forms/_language.html.erb +40 -0
- data/app/views/shared/forms/_meta_texts.html.erb +27 -0
- data/app/views/shared/forms/_priority.html.erb +13 -0
- data/app/views/shared/forms/_simple_image.html.erb +39 -0
- data/app/views/shared/forms/_state_container.html.erb +7 -0
- data/app/views/shared/forms/_text_area.html.erb +25 -0
- data/app/views/shared/forms/_text_field.html.erb +24 -0
- data/app/views/shared/forms/_text_fields.html.erb +3 -0
- data/app/views/shared/forms/check.jbuilder +4 -0
- data/app/views/shared/forms/errors.jbuilder +3 -0
- data/app/views/shared/forms/simple_image/_browse.html.erb +14 -0
- data/app/views/shared/forms/simple_image/_load_image.html.erb +38 -0
- data/app/views/shared/my/_list.html.erb +19 -0
- data/app/views/shared/my/_list_with_priority.html.erb +19 -0
- data/app/views/users/_profile.html.erb +30 -0
- data/app/views/users/profile/_data.html.erb +20 -0
- data/app/views/users/show.html.erb +21 -0
- data/config/locales/biovision-ru.yml +58 -0
- data/config/locales/components-ru.yml +30 -2
- data/config/locales/contact-ru.yml +106 -0
- data/config/locales/content-ru.yml +103 -0
- data/config/locales/users-ru.yml +117 -3
- data/config/routes.rb +70 -50
- data/db/migrate/20191228000000_create_biovision_components.rb +4 -5
- data/db/migrate/20200224000000_create_track_component.rb +7 -8
- data/db/migrate/20200224000010_create_users_component.rb +15 -43
- data/db/migrate/20200404000000_create_simple_images.rb +3 -3
- data/db/migrate/20200529000000_create_content_component.rb +74 -0
- data/db/migrate/20210401000000_create_contact_component.rb +95 -0
- data/db/migrate/20210405000000_create_acl.rb +74 -0
- data/lib/biovision/base_methods.rb +18 -10
- data/lib/biovision/engine.rb +8 -13
- data/lib/biovision/version.rb +1 -1
- metadata +186 -20
- data/app/assets/images/biovision/placeholders/user.svg +0 -15
- data/app/helpers/users_helper.rb +0 -11
- data/app/lib/biovision/components/component_settings.rb +0 -30
- data/app/lib/biovision/components/privilege_handler.rb +0 -77
- data/app/lib/biovision/components/users/code_handler.rb +0 -23
- data/app/models/foreign_site.rb +0 -34
- data/app/models/foreign_user.rb +0 -21
- data/app/uploaders/user_image_uploader.rb +0 -58
- data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
- data/app/views/authentication/_form.html.erb +0 -40
- data/app/views/authentication/failed.js.erb +0 -3
- data/app/views/my/profiles/new/_form.html.erb +0 -147
- data/app/views/shared/admin/_toggleable.html.erb +0 -8
data/lib/biovision/engine.rb
CHANGED
@@ -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
|
data/lib/biovision/version.rb
CHANGED
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.
|
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:
|
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/
|
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/
|
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/
|
257
|
-
- app/lib/biovision/components/
|
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/
|
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/
|
285
|
-
- app/models/
|
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/
|
326
|
-
- app/views/
|
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/
|
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/
|
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.
|
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>
|
data/app/helpers/users_helper.rb
DELETED
@@ -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
|