biovision 0.0.200518.1 → 0.12.211124.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 +105 -52
- 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/users.scss +20 -0
- data/app/assets/stylesheets/biovision/admin/components.scss +13 -1
- data/app/assets/stylesheets/biovision/admin/layout.scss +27 -12
- data/app/assets/stylesheets/biovision/biovision.scss +105 -26
- 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/filters.scss +39 -0
- data/app/assets/stylesheets/biovision/components/forms.scss +208 -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/quick_search.scss +24 -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/components.scss +7 -0
- data/app/assets/stylesheets/biovision/default.scss +4 -4
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users/dashboard.scss +4 -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/components/users.scss +3 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
- data/app/assets/stylesheets/biovision/themes/default_theme/layout/footer.scss +3 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/layout/header.scss +12 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +8 -19
- data/app/assets/stylesheets/biovision/themes/default_theme.scss +0 -1
- data/app/assets/stylesheets/biovision/vars.scss +5 -0
- data/app/controllers/admin/biovision_components_controller.rb +10 -0
- data/app/controllers/admin/components_controller.rb +37 -97
- data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
- data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
- data/app/controllers/admin/index_controller.rb +8 -2
- data/app/controllers/admin/navigation_groups_controller.rb +45 -0
- data/app/controllers/admin/tokens_controller.rb +15 -0
- data/app/controllers/admin/users_controller.rb +101 -0
- data/app/controllers/admin_controller.rb +2 -8
- data/app/controllers/authentication_controller.rb +6 -34
- data/app/controllers/concerns/authentication.rb +12 -12
- data/app/controllers/concerns/component_stories.rb +22 -0
- data/app/controllers/concerns/crud_entities.rb +140 -0
- data/app/controllers/concerns/entity_priority.rb +10 -0
- data/app/controllers/concerns/my_crud_entities.rb +146 -0
- data/app/controllers/concerns/processed_forms.rb +28 -0
- data/app/controllers/concerns/restricted_access.rb +37 -0
- data/app/controllers/concerns/toggleable_entity.rb +31 -0
- data/app/controllers/contact_controller.rb +49 -0
- data/app/controllers/errors_controller.rb +37 -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 +26 -0
- data/app/controllers/my/confirmations_controller.rb +44 -0
- data/app/controllers/my/index_controller.rb +7 -1
- data/app/controllers/my/profiles_controller.rb +33 -16
- data/app/controllers/oembed_controller.rb +12 -0
- data/app/controllers/profile_controller.rb +14 -0
- data/app/controllers/users_controller.rb +63 -0
- data/app/helpers/biovision_components_helper.rb +7 -3
- data/app/helpers/biovision_helper.rb +170 -0
- data/app/helpers/entity_helper.rb +77 -0
- data/app/helpers/my_helper.rb +34 -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 +55 -0
- data/app/lib/biovision/components/base/component_privileges.rb +75 -0
- data/app/lib/biovision/components/base/component_settings.rb +40 -0
- data/app/lib/biovision/components/base/component_stories.rb +30 -0
- data/app/lib/biovision/components/base/entity_links.rb +38 -0
- data/app/lib/biovision/components/base/image_handling.rb +33 -0
- data/app/lib/biovision/components/base_component.rb +63 -95
- data/app/lib/biovision/components/contact_component.rb +26 -0
- data/app/lib/biovision/components/content/oembed/receiver.rb +98 -0
- data/app/lib/biovision/components/content/oembed/twitter_receiver.rb +20 -0
- data/app/lib/biovision/components/content/oembed/vimeo_receiver.rb +20 -0
- data/app/lib/biovision/components/content/oembed/youtube_receiver.rb +20 -0
- data/app/lib/biovision/components/content_component.rb +65 -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 +114 -19
- data/app/lib/biovision/helpers/data_helper.rb +70 -0
- data/app/lib/biovision/helpers/export_helper.rb +97 -0
- data/app/lib/biovision/migrations/component_migration.rb +56 -0
- data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
- data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
- data/app/lib/biovision/stories/component_story.rb +55 -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/mailers/feedback_mailer.rb +14 -0
- data/app/models/agent.rb +4 -0
- data/app/models/biovision_component.rb +39 -3
- data/app/models/code.rb +31 -8
- data/app/models/concerns/checkable.rb +2 -1
- data/app/models/concerns/has_simple_image.rb +9 -0
- data/app/models/concerns/has_uploaded_file.rb +26 -0
- data/app/models/concerns/meta_texts.rb +25 -5
- data/app/models/concerns/simple_tag.rb +30 -0
- data/app/models/concerns/toggleable.rb +2 -1
- data/app/models/concerns/tree_structure.rb +75 -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 +73 -0
- data/app/models/feedback_message.rb +65 -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/metric.rb +4 -0
- data/app/models/navigation_group.rb +43 -0
- data/app/models/navigation_group_page.rb +23 -0
- data/app/models/oembed_domain.rb +25 -0
- data/app/models/oembed_link.rb +19 -0
- data/app/models/oembed_receiver.rb +15 -0
- data/app/models/role.rb +86 -0
- data/app/models/role_group.rb +13 -0
- data/app/models/simple_image.rb +49 -8
- data/app/models/simple_image_tag.rb +1 -16
- data/app/models/token.rb +6 -2
- data/app/models/uploaded_file.rb +62 -0
- data/app/models/uploaded_file_tag.rb +15 -0
- data/app/models/uploaded_file_tag_file.rb +13 -0
- data/app/models/user.rb +122 -29
- data/app/models/user_group.rb +20 -0
- data/app/models/user_role.rb +18 -0
- data/app/uploaders/simple_file_uploader.rb +23 -0
- data/app/uploaders/simple_image_uploader.rb +29 -20
- data/app/uploaders/uploaders/path_slug.rb +22 -0
- data/app/views/admin/agents/index.html.erb +1 -3
- data/app/views/admin/biovision_components/_nav_item.html.erb +6 -0
- data/app/views/admin/biovision_components/entity/_in_list.html.erb +12 -0
- data/app/views/admin/biovision_components/index.html.erb +11 -0
- 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 +31 -21
- data/app/views/admin/components/image.jbuilder +1 -0
- data/app/views/admin/components/images.jbuilder +4 -0
- data/app/views/admin/components/links/_base.html.erb +1 -0
- 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 +4 -4
- data/app/views/admin/components/settings.html.erb +2 -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 +12 -0
- data/app/views/admin/dynamic_blocks/index.html.erb +17 -0
- data/app/views/admin/dynamic_blocks/show.html.erb +25 -0
- data/app/views/admin/dynamic_pages/_dynamic_page.jbuilder +18 -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 +17 -0
- data/app/views/admin/dynamic_pages/entity/_in_search.html.erb +7 -0
- data/app/views/admin/dynamic_pages/index.html.erb +17 -0
- data/app/views/admin/dynamic_pages/search.jbuilder +4 -0
- data/app/views/admin/dynamic_pages/show.html.erb +28 -0
- data/app/views/admin/index/index.html.erb +7 -5
- data/app/views/admin/ip_addresses/index.html.erb +2 -4
- data/app/views/admin/navigation_group_pages/entity/_in_list.html.erb +26 -0
- 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/_dynamic_pages.html.erb +38 -0
- data/app/views/admin/navigation_groups/entity/_in_list.html.erb +14 -0
- data/app/views/admin/navigation_groups/index.html.erb +17 -0
- data/app/views/admin/navigation_groups/show.html.erb +33 -0
- data/app/views/admin/tokens/_form.html.erb +31 -0
- data/app/views/admin/tokens/_nav_item.html.erb +6 -0
- data/app/views/admin/tokens/entity/_in_list.html.erb +27 -0
- data/app/views/admin/tokens/index.html.erb +11 -0
- data/app/views/admin/tokens/show.html.erb +26 -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/_user.jbuilder +18 -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/_in_search.html.erb +18 -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 +24 -0
- data/app/views/admin/users/roles/_component.html.erb +22 -0
- data/app/views/admin/users/roles.html.erb +23 -0
- data/app/views/admin/users/search.jbuilder +4 -0
- data/app/views/admin/users/show.html.erb +62 -0
- data/app/views/admin/widgets/_filters.html.erb +20 -0
- data/app/views/admin/widgets/_quick_search.html.erb +13 -0
- data/app/views/admin/widgets/filters/_flag.html.erb +15 -0
- data/app/views/admin/widgets/filters/_text.html.erb +7 -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 +19 -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 +17 -0
- data/app/views/components/content/_dynamic_page_content.html.erb +14 -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 +46 -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/errors/error.html.erb +1 -0
- data/app/views/fallback/show.html.erb +6 -0
- data/app/views/feedback_mailer/new_feedback_request.html.erb +11 -0
- data/app/views/feedback_mailer/new_feedback_request.text.erb +6 -0
- data/app/views/index/index.html.erb +14 -0
- data/app/views/layouts/admin/_footer.html.erb +1 -1
- data/app/views/layouts/admin/_header.html.erb +7 -2
- data/app/views/layouts/admin.html.erb +0 -1
- data/app/views/layouts/application/_footer.html.erb +1 -1
- data/app/views/layouts/application/header/_authentication.html.erb +4 -1
- data/app/views/legal/privacy.html.erb +5 -0
- data/app/views/legal/tos.html.erb +5 -0
- data/app/views/my/components/index.html.erb +25 -0
- data/app/views/my/components/show.html.erb +21 -0
- data/app/views/my/confirmations/show.html.erb +62 -0
- data/app/views/my/index/_cards.html.erb +15 -0
- data/app/views/my/index/_email.html.erb +14 -0
- data/app/views/my/index/_navigation.html.erb +33 -0
- data/app/views/my/index/index.html.erb +12 -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 +36 -0
- data/app/views/my/recoveries/show.html.erb +0 -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 +10 -19
- data/app/views/shared/admin/_list_with_priority.html.erb +10 -19
- data/app/views/shared/admin/_priority.html.erb +6 -0
- data/app/views/shared/admin/_toggle.html.erb +6 -0
- data/app/views/shared/entity/_date_field.html.erb +6 -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/_list.html.erb +22 -0
- data/app/views/shared/entity/_list_with_priority.html.erb +22 -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/_priority_icons.html.erb +8 -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/_time_field.html.erb +6 -0
- data/app/views/shared/entity/_timestamps.html.erb +13 -0
- data/app/views/shared/entity/_toggle.html.erb +12 -0
- data/app/views/shared/entity/_track.html.erb +12 -0
- data/app/views/shared/entity/_tree_caches.html.erb +19 -0
- data/app/views/shared/entity/_uuid.html.erb +4 -0
- data/app/views/shared/entity/edit.html.erb +23 -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 +50 -0
- data/app/views/shared/forms/_field_with_search.html.erb +17 -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_entity_link.html.erb +14 -0
- data/app/views/shared/forms/_simple_image.html.erb +47 -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 +10 -0
- data/app/views/shared/my/_list_with_priority.html.erb +10 -0
- data/app/views/shared/my/entity/edit.html.erb +25 -0
- data/app/views/shared/my/entity/new.html.erb +18 -0
- data/app/views/simple_images/_simple_image.jbuilder +13 -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 +76 -1
- data/config/locales/components-ru.yml +55 -4
- data/config/locales/contact-ru.yml +110 -0
- data/config/locales/content-ru.yml +115 -0
- data/config/locales/users-ru.yml +142 -3
- data/config/routes.rb +99 -48
- data/db/migrate/20191228000000_create_biovision_components.rb +6 -5
- data/db/migrate/20200224000000_create_track_component.rb +9 -14
- data/db/migrate/20200224000010_create_users_component.rb +14 -83
- data/db/migrate/20200404000000_create_simple_images.rb +4 -3
- data/db/migrate/20210405000000_create_acl.rb +88 -0
- data/db/migrate/20210421000000_create_content_component.rb +80 -0
- data/db/migrate/20210421000010_create_contact_component.rb +74 -0
- data/db/migrate/20210616000000_create_uploaded_files.rb +52 -0
- data/db/migrate/amends/20210816060606_create_oembed_receivers.rb +21 -0
- data/db/migrate/amends/20210907070707_add_checksum_to_simple_images.rb +13 -0
- data/lib/biovision/base_methods.rb +17 -29
- data/lib/biovision/engine.rb +8 -13
- data/lib/biovision/version.rb +1 -1
- data/lib/tasks/components.rake +51 -0
- metadata +266 -27
- 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/biovision_component_user.rb +0 -21
- 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/links/_track.html.erb +0 -2
- data/app/views/admin/components/links/_users.html.erb +0 -11
- data/app/views/admin/components/privileges/_component_user.html.erb +0 -17
- data/app/views/admin/components/privileges/_links.html.erb +0 -35
- data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
- data/app/views/admin/components/privileges/_users.html.erb +0 -23
- data/app/views/admin/components/privileges.html.erb +0 -20
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15e12d204f5f1ae12b72abc285f96f67db06d5b8789a015e3a649e1bba06b263
|
4
|
+
data.tar.gz: 75b5e459c5f0b3a1f938cf08bcc97bb49dbae3cabdacb5a490ed807f8c2cfde1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e09f7a61ec614d7f8cf213e352923af9e21c9a801bb54fb3ad315622dc00dada8a34959057291ad0a9fc5871be8a388741a6351b8cfe34518826414cd6850774
|
7
|
+
data.tar.gz: c8fa00223d9a133f0bb0afb64d6493172aa9f0f7d3ac73b01f2e462af9040e0a417a097b4dc8cf8cbcb28bcfad8e155560145d1d50be6cd24f8a66b7dd9ccbf9
|
data/README.md
CHANGED
@@ -22,19 +22,16 @@
|
|
22
22
|
|
23
23
|
Ещё нужно поменять `example.com` на актуальное название.
|
24
24
|
|
25
|
-
Также стоит удалить `app/assets/application.css`, так как используется scss,
|
26
|
-
и локаль `config/locales/en.yml`, если не планируется использование английской
|
25
|
+
Также стоит удалить `app/assets/application.css`, так как используется scss,
|
26
|
+
и локаль `config/locales/en.yml`, если не планируется использование английской
|
27
27
|
локали.
|
28
28
|
|
29
29
|
## Добавления в `Gemfile`
|
30
30
|
|
31
31
|
```ruby
|
32
|
-
gem 'dotenv-rails'
|
33
|
-
|
34
|
-
gem 'autoprefixer-rails', group: :production
|
35
|
-
|
36
|
-
gem 'biovision', git: 'https://github.com/Biovision/biovision.git'
|
37
32
|
# gem 'biovision', path: '/Users/maxim/Projects/Biovision/gems/biovision'
|
33
|
+
gem 'biovision', git: 'https://github.com/Biovision/biovision.git'
|
34
|
+
gem 'dotenv-rails'
|
38
35
|
|
39
36
|
group :development, :test do
|
40
37
|
gem 'database_cleaner'
|
@@ -49,15 +46,15 @@ end
|
|
49
46
|
|
50
47
|
## Изменения в `config/environments/production.rb`
|
51
48
|
|
52
|
-
Нужно раскомментировать строку `config.require_master_key = true` (на момент
|
53
|
-
написания это `
|
49
|
+
Нужно раскомментировать строку `config.require_master_key = true` (на момент
|
50
|
+
написания это `21` строка).
|
54
51
|
|
55
|
-
Нужно выставить уровень сообщения об ошибках в `:warn`
|
56
|
-
(`config.log_level = :warn` в районе `
|
52
|
+
Нужно выставить уровень сообщения об ошибках в `:warn`
|
53
|
+
(`config.log_level = :warn` в районе `53` строки).
|
57
54
|
|
58
55
|
## Изменения в `app/mailers/application_mailer.rb`
|
59
56
|
|
60
|
-
Нужно удалить строку с отправителем по умолчанию
|
57
|
+
Нужно удалить строку с отправителем по умолчанию
|
61
58
|
(`default from: 'from@example.com'`), иначе при отправке писем в бою будет
|
62
59
|
ошибка с неправильным отправителем, независимо от того, что написано
|
63
60
|
в конфигурации в `production.rb`.
|
@@ -75,7 +72,7 @@ default: &default
|
|
75
72
|
development:
|
76
73
|
<<: *default
|
77
74
|
database: example # Поменять на актуальное название
|
78
|
-
|
75
|
+
|
79
76
|
test:
|
80
77
|
<<: *default
|
81
78
|
database: example_test # Такое же, как в development, но с приставкой _test
|
@@ -94,7 +91,7 @@ production:
|
|
94
91
|
задан как UTC.
|
95
92
|
|
96
93
|
```ruby
|
97
|
-
|
94
|
+
config.time_zone = 'Moscow'
|
98
95
|
```
|
99
96
|
|
100
97
|
## Добавления в `config/application_controller.rb`
|
@@ -102,58 +99,64 @@ production:
|
|
102
99
|
Добавить это в начале класса.
|
103
100
|
|
104
101
|
```ruby
|
105
|
-
|
106
|
-
|
107
|
-
|
102
|
+
|
103
|
+
def default_url_options
|
104
|
+
params.key?(:locale) ? { locale: I18n.locale } : {}
|
105
|
+
end
|
108
106
|
```
|
109
107
|
|
108
|
+
## Добавления в `package.json` и `application.js`
|
109
|
+
|
110
|
+
Нужно добавить `@biovivion/biovision`, чтобы работал JS на клиентской стороне
|
111
|
+
(`yarn add @biovision/biovision`).
|
112
|
+
|
113
|
+
В `pack/javascripts/application.js` нужно добавить
|
114
|
+
`require("@biovision/biovision")`.
|
115
|
+
|
110
116
|
## Добавления в `config/routes.rb`
|
111
117
|
|
112
118
|
```ruby
|
113
|
-
concern :check do
|
114
|
-
post :check, on: :collection, defaults: { format: :json }
|
115
|
-
end
|
116
119
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
+
concern :check do
|
121
|
+
post :check, on: :collection, defaults: { format: :json }
|
122
|
+
end
|
120
123
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
+
concern :toggle do
|
125
|
+
post :toggle, on: :member, defaults: { format: :json }
|
126
|
+
end
|
124
127
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
+
concern :priority do
|
129
|
+
post :priority, on: :member, defaults: { format: :json }
|
130
|
+
end
|
128
131
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
132
|
+
concern :search do
|
133
|
+
get :search, on: :collection
|
134
|
+
end
|
135
|
+
|
136
|
+
concern :stories do
|
137
|
+
post 'stories/:slug' => :collection_story, on: :collection, as: :story
|
138
|
+
post 'stories/:slug' => :member_story, on: :member, as: :story
|
139
|
+
end
|
140
|
+
|
141
|
+
root 'index#index'
|
139
142
|
```
|
140
143
|
|
141
144
|
## Дополнения в config/puma.rb
|
142
145
|
|
143
|
-
Нужно обязательно закомментировать строку с портом, так как используется сокет.
|
144
|
-
На момент написания документации это `12` строка:
|
146
|
+
Нужно обязательно закомментировать строку с портом, так как используется сокет.
|
147
|
+
На момент написания документации это `12` строка:
|
145
148
|
`port ENV.fetch("PORT") { 3000 }`
|
146
149
|
|
147
150
|
```ruby
|
151
|
+
|
148
152
|
if ENV['RAILS_ENV'] == 'production'
|
149
153
|
shared_path = '/var/www/example.com/shared'
|
150
|
-
logs_dir
|
154
|
+
logs_dir = "#{shared_path}/log"
|
151
155
|
|
152
156
|
state_path "#{shared_path}/tmp/puma/state"
|
153
|
-
pidfile "#{shared_path}/tmp/puma/pid"
|
154
157
|
bind "unix://#{shared_path}/tmp/puma.sock"
|
155
158
|
stdout_redirect "#{logs_dir}/stdout.log", "#{logs_dir}/stderr.log", true
|
156
|
-
|
159
|
+
|
157
160
|
activate_control_app
|
158
161
|
end
|
159
162
|
```
|
@@ -175,17 +178,44 @@ bundle binstubs bundler --force
|
|
175
178
|
bundle binstub puma
|
176
179
|
```
|
177
180
|
|
178
|
-
Также имеет смысл запустить `EDITOR=vim rails credentials:edit`, чтобы создать
|
179
|
-
зашированный файл с ключом шифрования сессии (чтобы выйти из vim с сохранением,
|
180
|
-
надо набрать
|
181
|
+
Также имеет смысл запустить `EDITOR=vim rails credentials:edit`, чтобы создать
|
182
|
+
зашированный файл с ключом шифрования сессии (чтобы выйти из vim с сохранением,
|
183
|
+
надо нажать `esc` и набрать `:wq`).
|
184
|
+
|
185
|
+
Чтобы проходила сборка на сервере, следует запустить эту команду:
|
186
|
+
|
187
|
+
```bash
|
188
|
+
bundle lock --add-platform x86_64-linux
|
189
|
+
```
|
190
|
+
|
191
|
+
## Настройка БД на сервере
|
192
|
+
|
193
|
+
Если нужно создать пользователя (заменить `example` на пользователя из
|
194
|
+
`config/database.yml` из раздела `production`):
|
195
|
+
|
196
|
+
```bash
|
197
|
+
sudo su postgres
|
198
|
+
createuser -d -P example
|
199
|
+
```
|
200
|
+
|
201
|
+
Для создания БД (заменить `example` на пользователя из `config/database.yml`
|
202
|
+
из раздела `production`):
|
203
|
+
|
204
|
+
```bash
|
205
|
+
psql -h localhost -U example postgres
|
206
|
+
```
|
207
|
+
|
208
|
+
```postgresql
|
209
|
+
create database example template template0 encoding='UTF8' LC_COLLATE='ru_RU.UTF-8' LC_CTYPE='ru_RU.UTF-8';
|
210
|
+
```
|
181
211
|
|
182
212
|
## Настройка отгрузки через mina
|
183
213
|
|
184
|
-
Для начала надо запустить в консоли `mina init`. После этого внести изменения
|
214
|
+
Для начала надо запустить в консоли `mina init`. После этого внести изменения
|
185
215
|
в `config/deploy.rb`.
|
186
216
|
|
187
217
|
В начале и середине файла раскомментировать то, что относится к `rbenv`.
|
188
|
-
Кроме того, следует проверить настройки соединения по SSH
|
218
|
+
Кроме того, следует проверить настройки соединения по SSH
|
189
219
|
(`set :user, 'developer`).
|
190
220
|
|
191
221
|
Для `shared_dirs` и `shared_files` задать примерно такой вид.
|
@@ -195,14 +225,35 @@ set :shared_dirs, fetch(:shared_dirs, []).push('public/uploads', 'tmp', 'log')
|
|
195
225
|
set :shared_files, fetch(:shared_files, []).push('config/master.key', '.env')
|
196
226
|
```
|
197
227
|
|
198
|
-
|
228
|
+
Если используется `nvm`, то нужно добавить его инициализацию:
|
229
|
+
|
230
|
+
В блок `:remote_environment` добавить строку:
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
invoke :'nvm:load'
|
234
|
+
```
|
235
|
+
|
236
|
+
Сама загрузка `nvm`:
|
237
|
+
|
238
|
+
```ruby
|
239
|
+
namespace :nvm do
|
240
|
+
task :load do
|
241
|
+
command 'echo "-----> Loading nvm"'
|
242
|
+
command %(source ~/.nvm/nvm.sh)
|
243
|
+
command 'echo "-----> Now using nvm v.`nvm --version`"'
|
244
|
+
end
|
245
|
+
end
|
246
|
+
```
|
247
|
+
|
248
|
+
На серверной стороне нужно создать папку для пумы и файла с ключом шифрования:
|
199
249
|
|
200
250
|
```bash
|
201
251
|
mkdir -p /var/www/example.com/shared/tmp/puma
|
252
|
+
mkdir -p /var/www/example.com/shared/tmp/pids
|
202
253
|
mkdir -p /var/www/example.com/shared/config
|
203
254
|
```
|
204
255
|
|
205
|
-
После этого локально запустить `mina setup`. Для нормальной работы нужно
|
256
|
+
После этого локально запустить `mina setup`. Для нормальной работы нужно
|
206
257
|
не забыть скопировать на сервер `.env` и `config/master.key`.
|
207
258
|
|
208
259
|
```bash
|
@@ -211,4 +262,6 @@ scp config/master.key biovision:/var/www/example.com/shared/config
|
|
211
262
|
```
|
212
263
|
|
213
264
|
## License
|
214
|
-
|
265
|
+
|
266
|
+
The gem is available as open source under the terms of
|
267
|
+
the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg version="1.1" id="Layer_1" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 1252.705 1638.145 48.02 48.02" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g transform="matrix(0.499792, 0, 0, 0.499792, -626.091919, -818.731812)">
|
4
|
+
<g>
|
5
|
+
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-8.0889" y1="1366.9993" x2="6.3662" y2="1366.9993" gradientTransform="matrix(3.3219 0 0 -3.3219 1279.5765 6203.127)">
|
6
|
+
<stop offset="0" style="stop-color:#33B49D"/>
|
7
|
+
<stop offset="1" style="stop-color:#00A185"/>
|
8
|
+
</linearGradient>
|
9
|
+
<circle fill="url(#SVGID_1_)" cx="1276.715" cy="1662.155" r="24.01"/>
|
10
|
+
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-6.8848" y1="1366.9993" x2="5.1616" y2="1366.9993" gradientTransform="matrix(3.3219 0 0 -3.3219 1279.5765 6203.127)">
|
11
|
+
<stop offset="0" style="stop-color:#00A185"/>
|
12
|
+
<stop offset="1" style="stop-color:#33B49D"/>
|
13
|
+
</linearGradient>
|
14
|
+
<path fill="url(#SVGID_2_)" d="M1276.715,1682.163c-11.032,0-20.008-8.976-20.008-20.009c0-11.032,8.976-20.009,20.008-20.009 s20.008,8.977,20.008,20.009C1296.723,1673.188,1287.747,1682.163,1276.715,1682.163z"/>
|
15
|
+
</g>
|
16
|
+
<polygon id="XMLID_80_" opacity="0.3" enable-background="new " points="1276.012,1653.105 1266.211,1662.905 		1276.012,1672.705 1276.012,1667.508 1288.72,1667.508 1288.72,1658.302 1276.012,1658.302 	"/>
|
17
|
+
<polygon id="XMLID_201_" fill="#FFFFFF" points="1275.261,1652.354 1265.46,1662.155 1275.261,1671.955 1275.261,1666.758 		1287.97,1666.758 1287.97,1657.551 1275.261,1657.551 	"/>
|
18
|
+
</g>
|
19
|
+
</svg>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg enable-background="new 0 0 512 512" id="Layer_1" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g transform="matrix(0.046875, 0, 0, 0.046875, 0, 0)">
|
4
|
+
<g>
|
5
|
+
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="0.0000038" x2="512" y1="256" y2="256">
|
6
|
+
<stop offset="0" style="stop-color:#33B49D"/>
|
7
|
+
<stop offset="1" style="stop-color:#00A185"/>
|
8
|
+
</linearGradient>
|
9
|
+
<circle cx="256" cy="256" fill="url(#SVGID_1_)" r="256"/>
|
10
|
+
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_2_" x1="42.6666679" x2="469.3333435" y1="256.0005188" y2="256.0005188">
|
11
|
+
<stop offset="0" style="stop-color:#00A185"/>
|
12
|
+
<stop offset="1" style="stop-color:#33B49D"/>
|
13
|
+
</linearGradient>
|
14
|
+
<path d="M256,469.3338623c-117.6309357,0-213.3333282-95.7023926-213.3333282-213.3333435 c0-117.6314545,95.7023926-213.333313,213.3333282-213.333313c117.636261,0,213.3333435,95.7018661,213.3333435,213.333313 C469.3333435,373.6314697,373.636261,469.3338623,256,469.3338623z" fill="url(#SVGID_2_)"/>
|
15
|
+
</g>
|
16
|
+
<polygon id="XMLID_109_" opacity="0.3" points="384,242.5413361 285.459198,242.5413361 285.459198,144 242.5424042,144 242.5424042,242.5413361 144,242.5413361 144,285.4581299 242.5424042,285.4581299 242.5424042,384 285.459198,384 285.459198,285.4581299 384,285.4581299 "/>
|
17
|
+
<polygon fill="#FFFFFF" id="XMLID_189_" points="376,234.5413361 277.459198,234.5413361 277.459198,136 234.5424042,136 234.5424042,234.5413361 136,234.5413361 136,277.4581299 234.5424042,277.4581299 234.5424042,376 277.459198,376 277.459198,277.4581299 376,277.4581299 "/>
|
18
|
+
</g>
|
19
|
+
</svg>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<title>Delete</title>
|
3
|
+
<defs>
|
4
|
+
<style type="text/css">
|
5
|
+
line { stroke: #e44061; stroke-width: 3; stroke-linecap: round; }
|
6
|
+
</style>
|
7
|
+
</defs>
|
8
|
+
<g>
|
9
|
+
<line x1="3" y1="3" x2="21" y2="21"/>
|
10
|
+
<line x1="3" y1="21" x2="21" y2="3"/>
|
11
|
+
</g>
|
12
|
+
</svg>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
+
<svg version="1.1"
|
5
|
+
id="Layer_1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
6
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px" height="24px"
|
7
|
+
viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
8
|
+
<g transform="translate(0 -1028.4)">
|
9
|
+
<g transform="matrix(1.0607 1.0607 -1.0607 1.0607 1146.8 34.926)">
|
10
|
+
<path fill="#ECF0F1" d="M-63,1003.4l0,11.3l0,0.7v1L-61,1018.4l2-2l0-1l0-0.7l0-11.3L-63,1003.4z"/>
|
11
|
+
<path fill="#BDC3C7" d="M-61,1003.4l0,15l2-2l0-1l0-0.7l0-11.3L-61,1003.4z"/>
|
12
|
+
<rect x="-63" y="1004.4" fill="#E67E22" width="4" height="11"/>
|
13
|
+
<path fill="#7F8C8D" d="M-61,1000.4c-1.105,0-2,0.9-2,2l0,1l4,0l0-1C-59,1001.3-59.895,1000.4-61,1000.4z"/>
|
14
|
+
<g transform="translate(-7,1)">
|
15
|
+
<path fill="#34495E" d="M-55.406,1016l1.406,1.4l1.406-1.4l-1.406,0L-55.406,1016z"/>
|
16
|
+
<path fill="#2C3E50" d="M-54,1016L-54,1017.4l1.406-1.4L-54,1016z"/>
|
17
|
+
</g>
|
18
|
+
<path fill="#95A5A6" d="M-61,1000.4c-1.105,0-2,0.9-2,2l0,1l2,0L-61,1000.4z"/>
|
19
|
+
<rect x="-61" y="1004.4" fill="#D35400" width="2" height="11"/>
|
20
|
+
</g>
|
21
|
+
</g>
|
22
|
+
</svg>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<style type="text/css">
|
4
|
+
.st0{fill-rule:evenodd;clip-rule:evenodd;}
|
5
|
+
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#7ACED7;}
|
6
|
+
</style>
|
7
|
+
<g id="XMLID_6_" transform="matrix(0.1875, 0, 0, 0.1875, 0, 0)">
|
8
|
+
<path class="st0" d="M119.2,99.3l-19.9,19.9c-2.3,2.3-6.1,2.3-8.4,0l-6.9-6.9v9.8c0,3.3-2.7,5.9-5.9,5.9H49.9 c-3.3,0-5.9-2.7-5.9-5.9v-9.8l-6.9,6.9c-2.3,2.3-6.1,2.3-8.4,0L8.8,99.3c-2.3-2.3-2.3-6.1,0-8.4l6.9-6.9H5.9C2.7,84,0,81.3,0,78.1 V49.9C0,46.7,2.7,44,5.9,44h9.8l-6.9-6.9c-2.3-2.3-2.3-6.1,0-8.4L28.7,8.8c2.3-2.3,6.1-2.3,8.4,0l6.9,6.9V5.9C44,2.7,46.7,0,49.9,0 h28.1C81.3,0,84,2.7,84,5.9v9.8l6.9-6.9c2.3-2.3,6.1-2.3,8.4,0l19.9,19.9c2.3,2.3,2.3,6.1,0,8.4l-6.9,6.9h9.8 c3.3,0,5.9,2.7,5.9,5.9v28.1c0,3.3-2.7,5.9-5.9,5.9h-9.8l6.9,6.9C121.5,93.2,121.5,97,119.2,99.3L119.2,99.3z M64,43.1 c-11.6,0-20.9,9.4-20.9,20.9c0,11.6,9.4,20.9,20.9,20.9c11.6,0,20.9-9.4,20.9-20.9C84.9,52.4,75.6,43.1,64,43.1z" id="XMLID_10_"/>
|
9
|
+
<path class="st1" d="M64,39.1c13.8,0,24.9,11.2,24.9,24.9c0,13.8-11.2,24.9-24.9,24.9c-13.8,0-24.9-11.2-24.9-24.9 C39.1,50.2,50.2,39.1,64,39.1L64,39.1z M96.5,11.6c-0.8-0.8-2-0.8-2.7,0L80,25.4V5.9C80,4.9,79.1,4,78.1,4H49.9 C48.9,4,48,4.9,48,5.9v19.4L34.3,11.6c-0.8-0.8-2-0.8-2.7,0L11.6,31.5c-0.8,0.8-0.8,2,0,2.7L25.4,48H5.9C4.9,48,4,48.9,4,49.9v28.1 C4,79.1,4.9,80,5.9,80h19.4L11.6,93.7c-0.8,0.8-0.8,2,0,2.7l19.9,19.9c0.8,0.8,2,0.8,2.7,0L48,102.6v19.4c0,1.1,0.9,1.9,1.9,1.9 h28.1c1.1,0,1.9-0.9,1.9-1.9v-19.4l13.7,13.7c0.8,0.8,2,0.8,2.7,0l19.9-19.9c0.8-0.8,0.8-2,0-2.7L102.6,80h19.4 c1.1,0,1.9-0.9,1.9-1.9V49.9c0-1.1-0.9-1.9-1.9-1.9h-19.4l13.7-13.7c0.8-0.8,0.8-2,0-2.7L96.5,11.6z" id="XMLID_7_"/>
|
10
|
+
</g>
|
11
|
+
</svg>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg enable-background="new 0 0 512 512" id="Layer_1" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g transform="matrix(0.046875, 0, 0, 0.046875, 0, 0)">
|
4
|
+
<g>
|
5
|
+
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="-0.0000027" x2="512" y1="256" y2="256">
|
6
|
+
<stop offset="0" style="stop-color:#B49A85"/>
|
7
|
+
<stop offset="0.0651" style="stop-color:#B0957F"/>
|
8
|
+
<stop offset="0.2856" style="stop-color:#A88A71"/>
|
9
|
+
<stop offset="0.5539" style="stop-color:#A38369"/>
|
10
|
+
<stop offset="1" style="stop-color:#A18166"/>
|
11
|
+
</linearGradient>
|
12
|
+
<circle cx="256" cy="256" fill="url(#SVGID_1_)" r="256"/>
|
13
|
+
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_2_" x1="42.6666641" x2="469.3333435" y1="256.0005188" y2="256.0005188">
|
14
|
+
<stop offset="0" style="stop-color:#A18166"/>
|
15
|
+
<stop offset="0.4461" style="stop-color:#A38369"/>
|
16
|
+
<stop offset="0.7144" style="stop-color:#A88A71"/>
|
17
|
+
<stop offset="0.9349" style="stop-color:#B0957F"/>
|
18
|
+
<stop offset="1" style="stop-color:#B49A85"/>
|
19
|
+
</linearGradient>
|
20
|
+
<path d="M256,469.3338623c-117.631012,0-213.3333435-95.7018738-213.3333435-213.3333435 c0-117.6309204,95.7023239-213.333313,213.3333435-213.333313c117.6362,0,213.3333435,95.7024002,213.3333435,213.333313 C469.3333435,373.6319885,373.6362,469.3338623,256,469.3338623z" fill="url(#SVGID_2_)"/>
|
21
|
+
</g>
|
22
|
+
<path d="M228.8847198,285.5493469v34.813324L144,242.3226624l84.8847198-78.0399933 l0.0006104,39.2917328C317.5705872,203.5744019,384,243.6815948,384,332.3674622 c0,10.7285461-1.0518188,21.2112122-3.058197,31.3504028C380.941803,363.717865,330.6186523,285.5514526,228.8847198,285.5493469z" id="XMLID_78_" opacity="0.3"/>
|
23
|
+
<path d="M220.8847198,277.5493469v34.813324L136,234.3226624l84.8847198-78.0399933 l0.0006104,39.2917328C309.5705872,195.5744019,376,235.6815948,376,324.3674622 c0,10.7285461-1.0518188,21.2112122-3.058197,31.3504028C372.941803,355.717865,322.6186523,277.5514526,220.8847198,277.5493469z" fill="#FFFFFF" id="XMLID_2251_"/>
|
24
|
+
</g>
|
25
|
+
</svg>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<style type="text/css">
|
4
|
+
.st0{fill-rule:evenodd;clip-rule:evenodd;}
|
5
|
+
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#7ACED7;}
|
6
|
+
</style>
|
7
|
+
<g id="XMLID_11_" transform="matrix(0.1875, 0, 0, 0.1875, 0, 0)">
|
8
|
+
<circle class="st0" cx="64" cy="64" id="XMLID_9_" r="64"/>
|
9
|
+
<path class="st1" d="M4,62h25.3c0-0.1,0-0.1,0-0.2C30.3,45,36,29.3,46.2,16c2.8-3.7,6.8-8.1,10.8-11.6 C27.8,7.8,5,32.1,4,62L4,62z M33.3,62c0.9-16,6.3-30.9,16.1-43.6c3.2-4.2,8-9.4,12.6-12.9V62H33.3L33.3,62z M70.9,4.4 c4,3.5,8,7.9,10.8,11.6C92,29.3,97.7,45,98.7,61.8c0,0.1,0,0.1,0,0.2H124C123,32.1,100.2,7.8,70.9,4.4L70.9,4.4z M94.7,62H66V5.5 c4.6,3.5,9.4,8.7,12.6,12.9C88.3,31.1,93.7,46,94.7,62L94.7,62z M71,123.6c4-3.5,7.9-7.9,10.8-11.6C92,98.7,97.7,83,98.7,66.2 c0-0.1,0-0.2,0-0.2H124C123,95.9,100.2,120.2,71,123.6L71,123.6z M94.7,66H66v56.5c4.6-3.5,9.4-8.7,12.6-12.9 C88.3,96.9,93.7,82,94.7,66L94.7,66z M62,122.5c-4.6-3.5-9.4-8.7-12.6-12.9C39.7,96.9,34.3,82,33.3,66H62V122.5L62,122.5z M29.3,66 H4c1,29.9,23.8,54.2,53,57.6c-4-3.5-7.9-7.9-10.8-11.6C36,98.7,30.3,83,29.3,66.2C29.3,66.2,29.3,66.1,29.3,66z" id="XMLID_12_"/>
|
10
|
+
</g>
|
11
|
+
</svg>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#login-form {
|
2
|
+
box-shadow: var(--block-shadow);
|
3
|
+
margin: 0 auto;
|
4
|
+
max-width: 36rem;
|
5
|
+
|
6
|
+
.errors {
|
7
|
+
margin: 0 var(--spacer-xs);
|
8
|
+
}
|
9
|
+
|
10
|
+
.actions {
|
11
|
+
align-items: center;
|
12
|
+
display: flex;
|
13
|
+
justify-content: space-between;
|
14
|
+
padding: var(--spacer-xs);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.component-for-user {
|
19
|
+
border-bottom: var(--border-secondary);
|
20
|
+
}
|
@@ -56,4 +56,16 @@
|
|
56
56
|
margin-bottom: 0;
|
57
57
|
}
|
58
58
|
}
|
59
|
-
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@import "biovision/components/forms";
|
62
|
+
@import "biovision/components/breadcrumbs";
|
63
|
+
@import "biovision/components/lists";
|
64
|
+
@import "biovision/components/buttons";
|
65
|
+
@import "biovision/components/messages";
|
66
|
+
@import "biovision/components/simple_image";
|
67
|
+
@import "biovision/components/toggleable";
|
68
|
+
@import "biovision/components/pagination";
|
69
|
+
@import "biovision/components/quick_search";
|
70
|
+
@import "biovision/components/filters";
|
71
|
+
@import "biovision/admin/components/users";
|
@@ -11,7 +11,6 @@ body {
|
|
11
11
|
display: flex;
|
12
12
|
flex-direction: column;
|
13
13
|
font-weight: 300;
|
14
|
-
height: 100%;
|
15
14
|
margin: 0 auto;
|
16
15
|
max-width: var(--content-width);
|
17
16
|
}
|
@@ -75,21 +74,37 @@ h2 {
|
|
75
74
|
}
|
76
75
|
|
77
76
|
.breadcrumbs {
|
78
|
-
margin-bottom: var(--spacer-
|
77
|
+
margin-bottom: var(--spacer-s);
|
78
|
+
}
|
79
|
+
|
80
|
+
.header-authentication {
|
81
|
+
align-items: center;
|
82
|
+
display: flex;
|
83
|
+
gap: var(--spacer-xxs);
|
84
|
+
margin: 0 0 0 auto;
|
79
85
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
86
|
+
.avatar {
|
87
|
+
border-radius: 50%;
|
88
|
+
box-shadow: var(--block-shadow);
|
89
|
+
display: inline-block;
|
90
|
+
height: 2.4rem;
|
91
|
+
overflow: hidden;
|
92
|
+
width: 2.4rem;
|
84
93
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
94
|
+
img {
|
95
|
+
height: 100%;
|
96
|
+
object-fit: cover;
|
97
|
+
width: 100%;
|
89
98
|
}
|
90
99
|
}
|
100
|
+
|
101
|
+
.current-user {
|
102
|
+
align-items: center;
|
103
|
+
color: inherit;
|
104
|
+
display: flex;
|
105
|
+
font-size: var(--font-size-decreased);
|
106
|
+
gap: var(--spacer-xs);
|
107
|
+
}
|
91
108
|
}
|
92
109
|
|
93
|
-
@import "biovision/components/forms";
|
94
|
-
@import "biovision/components/lists";
|
95
110
|
@import "biovision/admin/components";
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "biovision/vars";
|
2
|
+
|
1
3
|
*,
|
2
4
|
::after,
|
3
5
|
::before {
|
@@ -89,46 +91,123 @@ textarea {
|
|
89
91
|
.proportional-container {
|
90
92
|
padding: 0;
|
91
93
|
position: relative;
|
94
|
+
}
|
92
95
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
96
|
+
@supports (aspect-ratio: 1 / 1) {
|
97
|
+
.r-1x1 {
|
98
|
+
aspect-ratio: 1 / 1;
|
99
|
+
}
|
100
|
+
|
101
|
+
.r-5x4 {
|
102
|
+
aspect-ratio: 5 / 4;
|
103
|
+
}
|
104
|
+
|
105
|
+
.r-4x3 {
|
106
|
+
aspect-ratio: 4 / 3;
|
107
|
+
}
|
108
|
+
|
109
|
+
.r-3x2 {
|
110
|
+
aspect-ratio: 3 / 2;
|
111
|
+
}
|
112
|
+
|
113
|
+
.r-16x9 {
|
114
|
+
aspect-ratio: 16 / 9;
|
102
115
|
}
|
103
116
|
|
104
|
-
|
105
|
-
|
106
|
-
display: block;
|
117
|
+
.r-2x1 {
|
118
|
+
aspect-ratio: 2 / 1;
|
107
119
|
}
|
120
|
+
}
|
108
121
|
|
109
|
-
|
110
|
-
|
122
|
+
@supports not(aspect-ratio: 1/1) {
|
123
|
+
.proportional-container {
|
124
|
+
> * {
|
125
|
+
bottom: 0;
|
126
|
+
display: block;
|
127
|
+
height: 100%;
|
128
|
+
left: 0;
|
129
|
+
position: absolute;
|
130
|
+
right: 0;
|
131
|
+
top: 0;
|
132
|
+
width: 100%;
|
133
|
+
}
|
134
|
+
|
135
|
+
&::before {
|
136
|
+
content: '\A';
|
137
|
+
display: block;
|
138
|
+
}
|
139
|
+
|
140
|
+
&.r-1x1::before {
|
141
|
+
padding-top: 100%;
|
142
|
+
}
|
143
|
+
|
144
|
+
&.r-5x4::before {
|
145
|
+
padding-top: 80%;
|
146
|
+
}
|
147
|
+
|
148
|
+
&.r-4x3::before {
|
149
|
+
padding-top: 75%;
|
150
|
+
}
|
151
|
+
|
152
|
+
&.r-3x2::before {
|
153
|
+
padding-top: 66.67%;
|
154
|
+
}
|
155
|
+
|
156
|
+
&.r-16x9::before {
|
157
|
+
padding-top: 56.25%;
|
158
|
+
}
|
159
|
+
|
160
|
+
&.r-2x1::before {
|
161
|
+
padding-top: 50%;
|
162
|
+
}
|
111
163
|
}
|
164
|
+
}
|
112
165
|
|
113
|
-
|
114
|
-
|
166
|
+
.entity-actions {
|
167
|
+
align-items: center;
|
168
|
+
background: #fff;
|
169
|
+
border-radius: .4rem;
|
170
|
+
box-shadow: var(--block-shadow);
|
171
|
+
display: flex;
|
172
|
+
justify-content: flex-end;
|
173
|
+
margin: 0;
|
174
|
+
opacity: .5;
|
175
|
+
padding: 0;
|
176
|
+
position: absolute;
|
177
|
+
right: var(--spacer-xxs);
|
178
|
+
top: var(--spacer-xxs);
|
179
|
+
transition: .25s;
|
180
|
+
|
181
|
+
&:hover {
|
182
|
+
opacity: 1;
|
115
183
|
}
|
116
184
|
|
117
|
-
|
118
|
-
|
185
|
+
.danger {
|
186
|
+
margin-left: var(--spacer-s);
|
119
187
|
}
|
120
188
|
|
121
|
-
|
122
|
-
|
189
|
+
a,
|
190
|
+
button {
|
191
|
+
display: inline-block;
|
192
|
+
font-size: var(--font-size-decreased);
|
193
|
+
height: 2.4rem;
|
194
|
+
line-height: 1;
|
195
|
+
margin: 0;
|
196
|
+
padding: var(--spacer-xxs);
|
197
|
+
width: 2.4rem;
|
123
198
|
}
|
124
199
|
|
125
|
-
|
126
|
-
|
200
|
+
.destroy {
|
201
|
+
background: image_url('biovision/icons/destroy.svg') no-repeat center / 1.6rem auto;
|
202
|
+
border: none;
|
203
|
+
border-radius: .4rem;
|
204
|
+
box-shadow: 0 0 .2rem hsla(0, 75%, 75%, .75);
|
205
|
+
cursor: pointer;
|
127
206
|
}
|
128
207
|
|
129
|
-
|
130
|
-
|
208
|
+
img {
|
209
|
+
height: 100%;
|
210
|
+
object-fit: contain;
|
211
|
+
width: 100%;
|
131
212
|
}
|
132
213
|
}
|
133
|
-
|
134
|
-
@import "biovision/biovision/messages";
|