lato_core 1.1.5 → 2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +29 -0
- data/Rakefile +1 -22
- data/app/assets/config/lato_core_manifest.js +2 -0
- data/app/assets/fonts/lato_core/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/lato_core/fontawesome-webfont.svg +2671 -0
- data/app/assets/fonts/lato_core/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/lato_core/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/lato_core/fontawesome-webfont.woff2 +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.eot +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.svg +4551 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.ttf +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.woff +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.woff2 +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.eot +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.svg +4241 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.ttf +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.woff +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.woff2 +0 -0
- data/app/assets/images/lato_core/editor-icons.svg +1 -0
- data/app/assets/images/lato_core/logo-negative.svg +13 -0
- data/app/assets/images/lato_core/logo.svg +1 -0
- data/app/assets/images/lato_core/user.png +0 -0
- data/app/assets/javascripts/lato_core/application.js +28 -0
- data/app/assets/javascripts/lato_core/initializers/Charts.js +36 -0
- data/app/assets/javascripts/lato_core/initializers/Elements.js +67 -0
- data/app/assets/javascripts/lato_core/initializers/Inputs.js +201 -0
- data/app/assets/javascripts/lato_core/initializers/Layout.js +37 -0
- data/app/assets/javascripts/lato_core/initializers/SortableManager.js +66 -0
- data/app/assets/javascripts/lato_core/interfaces/Modal.js +28 -0
- data/app/assets/javascripts/lato_core/vendors/Sortable.min.js +2 -0
- data/app/assets/javascripts/lato_core/vendors/chart.bundle.js +17220 -0
- data/app/assets/javascripts/lato_core/vendors/dropzone.js +1767 -0
- data/app/assets/javascripts/lato_core/vendors/jquery.datetimepicker.full.js +3243 -0
- data/app/assets/javascripts/lato_core/vendors/jquery.floatThead.js +1106 -0
- data/app/assets/javascripts/lato_core/vendors/jquery.selectize.js +3829 -0
- data/app/assets/javascripts/lato_core/vendors/jquery.trumbowyg.js +1603 -0
- data/app/assets/stylesheets/lato_core/application.scss +23 -0
- data/app/assets/stylesheets/lato_core/base/_base.scss +35 -0
- data/app/assets/stylesheets/lato_core/base/_button.scss +23 -0
- data/app/assets/stylesheets/lato_core/base/_grid.scss +258 -0
- data/app/assets/stylesheets/lato_core/base/_helpers.scss +29 -0
- data/app/assets/stylesheets/lato_core/base/_mixin.scss +37 -0
- data/app/assets/stylesheets/lato_core/base/_normalize.scss +424 -0
- data/app/assets/stylesheets/lato_core/base/_table.scss +47 -0
- data/app/assets/stylesheets/lato_core/base/_typography.scss +23 -0
- data/app/assets/stylesheets/lato_core/cells/_cells.scss +4 -0
- data/app/assets/stylesheets/lato_core/cells/charts/_bar.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/charts/_charts.scss +2 -0
- data/app/assets/stylesheets/lato_core/cells/charts/_general.scss +7 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_block.scss +12 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_button.scss +132 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_buttongroup.scss +25 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_code.scss +8 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_elements.scss +10 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_flash.scss +74 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_modal.scss +76 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_pagination.scss +64 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_row.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_table.scss +57 -0
- data/app/assets/stylesheets/lato_core/cells/elements/_title.scss +32 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_checkbox.scss +42 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_datetime.scss +23 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_dropzone.scss +12 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_editor.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_email.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_form.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_general.scss +51 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_geolocalization.scss +12 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_inputs.scss +14 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_number.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_password.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_select.scss +47 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_sortableblock.scss +51 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_text.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_textarea.scss +25 -0
- data/app/assets/stylesheets/lato_core/cells/widgets/_index.scss +74 -0
- data/app/assets/stylesheets/lato_core/cells/widgets/_widgets.scss +1 -0
- data/app/assets/stylesheets/lato_core/layouts/_admin.scss +352 -0
- data/app/assets/stylesheets/lato_core/layouts/_authentication.scss +10 -0
- data/app/assets/stylesheets/lato_core/layouts/_layouts.scss +2 -0
- data/app/assets/stylesheets/lato_core/pages/_dashboard.scss +35 -0
- data/app/assets/stylesheets/lato_core/pages/_login.scss +7 -0
- data/app/assets/stylesheets/lato_core/pages/_pages.scss +2 -0
- data/app/assets/stylesheets/lato_core/partials/_dynamic_data_to_js.scss +3 -0
- data/app/assets/stylesheets/lato_core/partials/_partials.scss +1 -0
- data/app/assets/stylesheets/lato_core/theme.scss.erb +127 -0
- data/app/assets/stylesheets/lato_core/vendors/_datetimepicker.css +568 -0
- data/app/assets/stylesheets/lato_core/vendors/_dropzone.css +388 -0
- data/app/assets/stylesheets/lato_core/vendors/_fontawesome.css +2341 -0
- data/app/assets/stylesheets/lato_core/vendors/_scrollbar.css +904 -0
- data/app/assets/stylesheets/lato_core/vendors/_selectize.css +324 -0
- data/app/assets/stylesheets/lato_core/vendors/_trumbowyg.css +584 -0
- data/app/assets/stylesheets/lato_core/vendors/_vendors.scss +6 -0
- data/app/assets/stylesheets/lato_core/widgets/_systeminfo.scss +21 -0
- data/app/assets/stylesheets/lato_core/widgets/_widgets.scss +1 -0
- data/app/cells/lato_core/charts/bar/vertical/cell.rb +57 -0
- data/app/cells/lato_core/charts/bar/vertical/views/show.html.erb +7 -0
- data/app/cells/lato_core/elements/block/cell.rb +39 -0
- data/app/cells/lato_core/elements/block/views/close.html.erb +1 -0
- data/app/cells/lato_core/elements/block/views/open.html.erb +4 -0
- data/app/cells/lato_core/elements/button/cell.rb +59 -0
- data/app/cells/lato_core/elements/button/views/button.html.erb +27 -0
- data/app/cells/lato_core/elements/button/views/link.html.erb +65 -0
- data/app/cells/lato_core/elements/buttongroup/cell.rb +33 -0
- data/app/cells/lato_core/elements/buttongroup/views/show.html.erb +7 -0
- data/app/cells/lato_core/elements/code/cell.rb +36 -0
- data/app/cells/lato_core/elements/code/views/close.html.erb +2 -0
- data/app/cells/lato_core/elements/code/views/open.html.erb +2 -0
- data/app/cells/lato_core/elements/flash/cell.rb +35 -0
- data/app/cells/lato_core/elements/flash/views/show.html.erb +11 -0
- data/app/cells/lato_core/elements/icon/cell.rb +31 -0
- data/app/cells/lato_core/elements/icon/views/show.html.erb +1 -0
- data/app/cells/lato_core/elements/modal/cell.rb +31 -0
- data/app/cells/lato_core/elements/modal/views/show.html.erb +21 -0
- data/app/cells/lato_core/elements/pagination/cell.rb +68 -0
- data/app/cells/lato_core/elements/pagination/views/show.html.erb +59 -0
- data/app/cells/lato_core/elements/row/cell.rb +37 -0
- data/app/cells/lato_core/elements/row/views/close.html.erb +1 -0
- data/app/cells/lato_core/elements/row/views/open.html.erb +3 -0
- data/app/cells/lato_core/elements/table/body/cell.rb +37 -0
- data/app/cells/lato_core/elements/table/body/views/close.html.erb +1 -0
- data/app/cells/lato_core/elements/table/body/views/open.html.erb +3 -0
- data/app/cells/lato_core/elements/table/container/cell.rb +41 -0
- data/app/cells/lato_core/elements/table/container/views/close.html.erb +2 -0
- data/app/cells/lato_core/elements/table/container/views/open.html.erb +7 -0
- data/app/cells/lato_core/elements/table/head/cell.rb +33 -0
- data/app/cells/lato_core/elements/table/head/views/show.html.erb +7 -0
- data/app/cells/lato_core/elements/table/row/cell.rb +49 -0
- data/app/cells/lato_core/elements/table/row/views/show.html.erb +35 -0
- data/app/cells/lato_core/elements/title/cell.rb +52 -0
- data/app/cells/lato_core/elements/title/views/show.html.erb +4 -0
- data/app/cells/lato_core/inputs/checkbox/cell.rb +38 -0
- data/app/cells/lato_core/inputs/checkbox/views/show.html.erb +20 -0
- data/app/cells/lato_core/inputs/datetime/cell.rb +53 -0
- data/app/cells/lato_core/inputs/datetime/views/show.html.erb +19 -0
- data/app/cells/lato_core/inputs/dropzone/cell.rb +37 -0
- data/app/cells/lato_core/inputs/dropzone/views/show.html.erb +24 -0
- data/app/cells/lato_core/inputs/editor/cell.rb +37 -0
- data/app/cells/lato_core/inputs/editor/views/show.html.erb +12 -0
- data/app/cells/lato_core/inputs/email/cell.rb +40 -0
- data/app/cells/lato_core/inputs/email/views/show.html.erb +19 -0
- data/app/cells/lato_core/inputs/form/cell.rb +39 -0
- data/app/cells/lato_core/inputs/form/views/close.html.erb +1 -0
- data/app/cells/lato_core/inputs/form/views/open.html.erb +12 -0
- data/app/cells/lato_core/inputs/geolocalization/cell.rb +51 -0
- data/app/cells/lato_core/inputs/geolocalization/views/show.html.erb +26 -0
- data/app/cells/lato_core/inputs/number/cell.rb +44 -0
- data/app/cells/lato_core/inputs/number/views/show.html.erb +25 -0
- data/app/cells/lato_core/inputs/password/cell.rb +42 -0
- data/app/cells/lato_core/inputs/password/views/show.html.erb +21 -0
- data/app/cells/lato_core/inputs/select/cell.rb +56 -0
- data/app/cells/lato_core/inputs/select/views/show.html.erb +25 -0
- data/app/cells/lato_core/inputs/shared/help.html.erb +7 -0
- data/app/cells/lato_core/inputs/shared/label.html.erb +11 -0
- data/app/cells/lato_core/inputs/sortableblock/cell.rb +39 -0
- data/app/cells/lato_core/inputs/sortableblock/views/show.html.erb +40 -0
- data/app/cells/lato_core/inputs/text/cell.rb +42 -0
- data/app/cells/lato_core/inputs/text/views/show.html.erb +21 -0
- data/app/cells/lato_core/inputs/textarea/cell.rb +41 -0
- data/app/cells/lato_core/inputs/textarea/views/show.html.erb +16 -0
- data/app/cells/lato_core/widgets/index/cell.rb +215 -0
- data/app/cells/lato_core/widgets/index/views/partials/new.html.erb +3 -0
- data/app/cells/lato_core/widgets/index/views/partials/pagination.html.erb +3 -0
- data/app/cells/lato_core/widgets/index/views/partials/search.html.erb +17 -0
- data/app/cells/lato_core/widgets/index/views/show.html.erb +45 -0
- data/app/controllers/lato_core/api/api_controller.rb +5 -0
- data/app/controllers/lato_core/application_controller.rb +9 -1
- data/app/controllers/lato_core/back/authentication_controller.rb +33 -99
- data/app/controllers/lato_core/back/back_controller.rb +5 -14
- data/app/controllers/lato_core/back/dashboard_controller.rb +13 -0
- data/app/controllers/lato_core/back/superusers_controller.rb +97 -113
- data/app/controllers/lato_core/doc/cells_charts_controller.rb +7 -0
- data/app/controllers/lato_core/doc/cells_elements_controller.rb +31 -0
- data/app/controllers/lato_core/doc/cells_inputs_controller.rb +33 -0
- data/app/controllers/lato_core/doc/cells_widgets_controller.rb +10 -0
- data/app/controllers/lato_core/doc/doc_controller.rb +17 -0
- data/app/controllers/lato_core/doc/general_controller.rb +13 -0
- data/app/helpers/lato_core/application_helper.rb +4 -0
- data/app/jobs/lato_core/application_job.rb +4 -0
- data/app/mailers/lato_core/application_mailer.rb +2 -5
- data/app/models/lato_core/application_record.rb +5 -0
- data/app/models/lato_core/superuser.rb +11 -16
- data/app/models/lato_core/superuser/entity_helpers.rb +29 -0
- data/app/views/lato_core/back/authentication/index.html.erb +25 -0
- data/app/views/lato_core/back/dashboard/index.html.erb +29 -0
- data/app/views/lato_core/back/superusers/edit.html.erb +10 -15
- data/app/views/lato_core/back/superusers/index.html.erb +16 -27
- data/app/views/lato_core/back/superusers/new.html.erb +8 -13
- data/app/views/lato_core/back/superusers/shared/_form.html.erb +47 -55
- data/app/views/lato_core/back/superusers/show.html.erb +65 -1
- data/app/views/lato_core/doc/cells_charts/bar_vertical.erb +64 -0
- data/app/views/lato_core/doc/cells_elements/block.html.erb +172 -0
- data/app/views/lato_core/doc/cells_elements/button.html.erb +375 -0
- data/app/views/lato_core/doc/cells_elements/buttongroup.html.erb +101 -0
- data/app/views/lato_core/doc/cells_elements/flash_messages.html.erb +123 -0
- data/app/views/lato_core/doc/cells_elements/icon.html.erb +58 -0
- data/app/views/lato_core/doc/cells_elements/modal.html.erb +89 -0
- data/app/views/lato_core/doc/cells_elements/pagination.html.erb +149 -0
- data/app/views/lato_core/doc/cells_elements/row.html.erb +62 -0
- data/app/views/lato_core/doc/cells_elements/table.html.erb +272 -0
- data/app/views/lato_core/doc/cells_elements/table_body.html.erb +118 -0
- data/app/views/lato_core/doc/cells_elements/table_head.html.erb +110 -0
- data/app/views/lato_core/doc/cells_elements/table_row.html.erb +212 -0
- data/app/views/lato_core/doc/cells_elements/title.html.erb +70 -0
- data/app/views/lato_core/doc/cells_inputs/checkbox.html.erb +101 -0
- data/app/views/lato_core/doc/cells_inputs/datetime.html.erb +178 -0
- data/app/views/lato_core/doc/cells_inputs/dropzone.html.erb +114 -0
- data/app/views/lato_core/doc/cells_inputs/editor.html.erb +59 -0
- data/app/views/lato_core/doc/cells_inputs/email.html.erb +79 -0
- data/app/views/lato_core/doc/cells_inputs/form.html.erb +242 -0
- data/app/views/lato_core/doc/cells_inputs/geolocalization.html.erb +157 -0
- data/app/views/lato_core/doc/cells_inputs/number.html.erb +100 -0
- data/app/views/lato_core/doc/cells_inputs/password.html.erb +79 -0
- data/app/views/lato_core/doc/cells_inputs/select.html.erb +124 -0
- data/app/views/lato_core/doc/cells_inputs/sortableblock.html.erb +72 -0
- data/app/views/lato_core/doc/cells_inputs/text.html.erb +204 -0
- data/app/views/lato_core/doc/cells_inputs/textarea.html.erb +104 -0
- data/app/views/lato_core/doc/cells_widgets/index.html.erb +163 -0
- data/app/views/lato_core/doc/doc/index.html.erb +95 -0
- data/app/views/lato_core/doc/general/generators.html.erb +60 -0
- data/app/views/lato_core/doc/general/installation.html.erb +49 -0
- data/app/views/lato_core/doc/general/languages.html.erb +67 -0
- data/app/views/lato_core/doc/general/personalization.html.erb +177 -0
- data/app/views/lato_core/doc/shared/_modal_content.html.erb +4 -0
- data/app/views/lato_core/doc/shared/_sortableblock_partial.html.erb +1 -0
- data/app/views/lato_core/partials/_dynamic_data_to_js.html.erb +3 -0
- data/app/views/lato_core/partials/_gmaps.html.erb +5 -0
- data/app/views/lato_core/widgets/_systeminfo.html.erb +15 -0
- data/app/views/layouts/lato_core/admin.html.erb +44 -0
- data/app/views/layouts/lato_core/authentication.html.erb +22 -0
- data/app/views/layouts/lato_core/partials/_back.html.erb +5 -0
- data/app/views/layouts/lato_core/partials/_load_javascript.html.erb +4 -0
- data/app/views/layouts/lato_core/partials/_load_partials.html.erb +5 -0
- data/app/views/layouts/lato_core/partials/_load_stylesheet.html.erb +4 -0
- data/app/views/layouts/lato_core/partials/_logo.html.erb +9 -0
- data/app/views/layouts/lato_core/partials/_menu.html.erb +67 -0
- data/app/views/layouts/lato_core/partials/_profile.html.erb +19 -0
- data/app/views/layouts/lato_core/partials/_title.html.erb +3 -0
- data/app/views/layouts/lato_core/partials/_widgets.html.erb +13 -0
- data/config/configs.yml +102 -0
- data/config/initializers/assets.rb +9 -0
- data/config/initializers/init_system.rb +39 -0
- data/config/languages/default.yml +63 -0
- data/config/languages/it.yml +63 -0
- data/config/routes.rb +10 -13
- data/config/routes/api.rb +3 -0
- data/config/routes/back.rb +10 -0
- data/config/routes/doc.rb +48 -0
- data/db/migrate/20160224181217_create_lato_core_superusers.rb +8 -2
- data/lib/generators/lato_core/crud_generator.rb +26 -0
- data/lib/generators/lato_core/initializer_generator.rb +46 -0
- data/lib/generators/lato_core/templates/assets/images/logo.svg +13 -0
- data/{config/initializers/lists.rb → lib/generators/lato_core/templates/assets/javascripts/application.js} +0 -0
- data/lib/generators/lato_core/templates/assets/stylesheets/application.scss +2 -0
- data/lib/generators/lato_core/templates/assets/stylesheets/theme.scss.erb +13 -0
- data/lib/generators/lato_core/templates/controllers/application_controller.rb +13 -0
- data/lib/generators/lato_core/templates/controllers/crud_controller.rb +87 -0
- data/lib/generators/lato_core/templates/views/application/index.html.erb +16 -0
- data/lib/generators/lato_core/templates/views/crud/edit.html.erb +18 -0
- data/lib/generators/lato_core/templates/views/crud/index.html.erb +29 -0
- data/lib/generators/lato_core/templates/views/crud/new.html.erb +18 -0
- data/lib/generators/lato_core/templates/views/crud/shared/_form.html.erb +25 -0
- data/lib/generators/lato_core/templates/views/crud/show.html.erb +16 -0
- data/lib/lato_core.rb +6 -5
- data/lib/lato_core/cell.rb +28 -0
- data/lib/lato_core/engine.rb +16 -13
- data/lib/lato_core/helper.rb +11 -0
- data/lib/lato_core/helpers/cells.rb +20 -0
- data/lib/lato_core/helpers/general.rb +16 -0
- data/lib/lato_core/interface.rb +17 -14
- data/lib/lato_core/interfaces/apihelpers.rb +39 -0
- data/lib/lato_core/interfaces/application.rb +65 -0
- data/lib/lato_core/interfaces/authentication.rb +41 -0
- data/lib/lato_core/interfaces/cells.rb +41 -0
- data/lib/lato_core/interfaces/general.rb +39 -0
- data/lib/lato_core/interfaces/layout.rb +213 -0
- data/lib/lato_core/interfaces/modules.rb +110 -0
- data/lib/lato_core/interfaces/token.rb +25 -0
- data/lib/lato_core/version.rb +3 -0
- data/lib/tasks/lato_core_tasks.rake +4 -8
- data/lib/tasks/lato_tasks.rake +83 -0
- metadata +407 -33
- data/app/controllers/lato_core/api/v1/api_controller.rb +0 -8
- data/app/mailers/lato_core/superusers_mailer.rb +0 -27
- data/app/views/lato_core/back/authentication/login.html.erb +0 -45
- data/app/views/lato_core/back/authentication/password_edit.html.erb +0 -45
- data/app/views/lato_core/back/authentication/password_forget.html.erb +0 -36
- data/app/views/lato_core/back/back/home.html.erb +0 -20
- data/app/views/lato_core/mailers/layouts/mailer.html.erb +0 -9
- data/app/views/lato_core/mailers/layouts/mailer.text.erb +0 -1
- data/app/views/lato_core/mailers/superusers/notify.html.erb +0 -2
- data/app/views/lato_core/mailers/superusers/recover_password.html.erb +0 -4
- data/config/config.yml +0 -8
- data/config/example.yml +0 -66
- data/config/initializers/init.rb +0 -15
- data/config/initializers/ram.rb +0 -14
- data/lang/default.yml +0 -61
- data/lang/en.yml +0 -61
- data/lib/lato_core/interface/authentication.rb +0 -26
- data/lib/lato_core/interface/cache.rb +0 -23
- data/lib/lato_core/interface/communication.rb +0 -87
- data/lib/lato_core/interface/languages.rb +0 -51
- data/lib/lato_core/interface/navigation.rb +0 -95
- data/lib/lato_core/interface/session.rb +0 -57
- data/lib/lato_core/interface/superusers.rb +0 -134
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><symbol id="trumbowyg-blockquote" viewBox="0 0 72 72"><path d="M21.3 31.9h-.6c.8-1.2 1.9-2.2 3.4-3.2 2.1-1.4 5-2.7 9.2-3.3l-1.4-8.9c-4.7.7-8.5 2.1-11.7 4-2.4 1.4-4.3 3.1-5.8 4.9-2.3 2.7-3.7 5.7-4.5 8.5-.8 2.8-1 5.4-1 7.5 0 2.3.3 4 .4 4.8 0 .1.1.3.1.4 1.2 5.4 6.1 9.5 11.9 9.5 6.7 0 12.2-5.4 12.2-12.2s-5.5-12-12.2-12zM49.5 31.9h-.6c.8-1.2 1.9-2.2 3.4-3.2 2.1-1.4 5-2.7 9.2-3.3l-1.4-8.9c-4.7.7-8.5 2.1-11.7 4-2.4 1.4-4.3 3.1-5.8 4.9-2.3 2.7-3.7 5.7-4.5 8.5-.8 2.8-1 5.4-1 7.5 0 2.3.3 4 .4 4.8 0 .1.1.3.1.4 1.2 5.4 6.1 9.5 11.9 9.5 6.7 0 12.2-5.4 12.2-12.2s-5.5-12-12.2-12z"/></symbol><symbol id="trumbowyg-bold" viewBox="0 0 72 72"><path d="M51.1 37.8c-1.1-1.4-2.5-2.5-4.2-3.3 1.2-.8 2.1-1.8 2.8-3 1-1.6 1.5-3.5 1.5-5.3 0-2-.6-4-1.7-5.8-1.1-1.8-2.8-3.2-4.8-4.1-2-.9-4.6-1.3-7.8-1.3h-16v42h16.3c2.6 0 4.8-.2 6.7-.7 1.9-.5 3.4-1.2 4.7-2.1 1.3-1 2.4-2.4 3.2-4.1.9-1.7 1.3-3.6 1.3-5.7.2-2.5-.5-4.7-2-6.6zM40.8 50.2c-.6.1-1.8.2-3.4.2h-9V38.5h8.3c2.5 0 4.4.2 5.6.6 1.2.4 2 1 2.7 2 .6.9 1 2 1 3.3 0 1.1-.2 2.1-.7 2.9-.5.9-1 1.5-1.7 1.9-.8.4-1.7.8-2.8 1zm2.6-20.4c-.5.7-1.3 1.3-2.5 1.6-.8.3-2.5.4-4.8.4h-7.7V21.6h7.1c1.4 0 2.6 0 3.6.1s1.7.2 2.2.4c1 .3 1.7.8 2.2 1.7.5.9.8 1.8.8 3-.1 1.3-.4 2.2-.9 3z"/></symbol><symbol id="trumbowyg-close" viewBox="0 0 72 72"><path d="M57 20.5l-5.4-5.4-15.5 15.5-15.6-15.5-5.4 5.4L30.7 36 15.1 51.5l5.4 5.4 15.6-15.5 15.5 15.5 5.4-5.4L41.5 36z"/></symbol><symbol id="trumbowyg-create-link" viewBox="0 0 72 72"><path d="M31.1 48.9l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9L15 50.4c-1.1-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H44c0 .1 1.8 2.3 1.8 5.5zM29 28.9c-.8-.8-1.2-1.7-1.2-2.9 0-.7.1-1.3.4-1.9.3-.6.7-1.1 1.4-1.6.6-.5 1.4-.9 2.5-1.1 1.1-.3 2.4-.4 3.9-.4 2.9 0 5 .6 6.3 1.7 1.3 1.1 2.1 2.7 2.4 5.1l.1.9 6.8-.5v-.9c-.1-2.5-.8-4.7-2.1-6.7s-3.2-3.5-5.6-4.5c-2.4-1-5.1-1.5-8.1-1.5-2.8 0-5.3.5-7.6 1.4-2.3 1-4.2 2.4-5.4 4.3-1.2 1.9-1.9 3.9-1.9 6.1 0 1.7.4 3.4 1.2 4.9l.3.5h11.8c-2.3-.9-3.9-1.7-5.2-2.9zm13.3-6.2zM22.7 20.3zM13 34.1h46.1v3.4H13z"/></symbol><symbol id="trumbowyg-em" viewBox="0 0 72 72"><path d="M26 57l10.1-42h7.2L33.2 57H26z"/></symbol><symbol id="trumbowyg-fullscreen" viewBox="0 0 72 72"><path d="M25.2 7.1H7.1v17.7l6.7-6.5 10.5 10.5 4.5-4.5-10.4-10.5zM47.2 7.1l6.5 6.7-10.5 10.5 4.5 4.5 10.5-10.4 6.7 6.8V7.1zM47.7 43.2l-4.5 4.5 10.4 10.5-6.8 6.7h18.1V47.2l-6.7 6.5zM24.3 43.2L13.8 53.6l-6.7-6.8v18.1h17.7l-6.5-6.7 10.5-10.5z"/><path fill="currentColor" d="M10.7 28.8h18.1V11.2l-6.6 6.4L11.6 7.1l-4.5 4.5 10.5 10.5zM60.8 28.8l-6.4-6.6 10.5-10.6-4.5-4.5-10.5 10.5-6.7-6.9v18.1zM60.4 64.9l4.5-4.5-10.5-10.5 6.9-6.7H43.2v17.6l6.6-6.4zM11.6 64.9l10.5-10.5 6.7 6.9V43.2H11.1l6.5 6.6L7.1 60.4z"/></symbol><symbol id="trumbowyg-h1" viewBox="0 0 72 72"><path d="M6.4 14.9h7.4v16.7h19.1V14.9h7.4V57h-7.4V38H13.8v19H6.4V14.9zM47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-1.8-4.2-1.2-1.1-2.7-1.6-4.6-1.6-1.2 0-2.2.2-3.1.7-.9.5-1.6 1.1-2.2 1.9-.6.8-1 1.7-1.3 2.7-.3 1-.4 2-.4 3.1h-6.7c.1-2 .5-3.9 1.1-5.6.7-1.7 1.6-3.2 2.7-4.4s2.6-2.2 4.2-2.9c1.6-.7 3.5-1.1 5.6-1.1 1.6 0 3.2.2 4.7.7 1.6.5 2.9 1.2 4.2 2.1 1.2.9 2.2 2.1 3 3.4.7 1.4 1.1 3 1.1 4.8 0 2.1-.5 3.9-1.4 5.4-.9 1.6-2.4 2.7-4.4 3.4v.1c2.4.5 4.2 1.6 5.5 3.5 1.3 1.9 2 4.1 2 6.8 0 2-.4 3.7-1.2 5.3-.8 1.6-1.8 2.9-3.2 3.9-1.3 1.1-2.9 1.9-4.7 2.5-1.8.6-3.6.9-5.6.9-2.4 0-4.5-.3-6.3-1s-3.3-1.7-4.5-2.9c-1.2-1.3-2.1-2.8-2.7-4.5-.6-1.8-1-3.7-1-5.9h6.7c-.1 2.5.5 4.6 1.9 6.3 1.3 1.7 3.3 2.5 5.9 2.5 2.2 0 4.1-.6 5.6-1.9 1.5-1.3 2.3-3.1 2.3-5.4 0-1.6-.3-2.9-.9-3.8-.6-.9-1.5-1.7-2.5-2.2-1-.5-2.2-.8-3.4-.9-1.3-.1-2.6-.2-3.9-.1v-5.2z"/></symbol><symbol id="trumbowyg-h4" viewBox="0 0 72 72"><path d="M1.5 14.9h7.4v16.7H28V14.9h7.4V57H28V38H8.9v19H1.5V14.9zM70.5 47.2h-5.3V57h-6.4v-9.8H41.2v-6.7l17.7-24.8h6.4v26.2h5.3v5.3zm-24.2-5.3h12.5V23.7h-.1L46.3 41.9z"/></symbol><symbol id="trumbowyg-horizontal-rule" viewBox="0 0 72 72"><path d="M9.1 32h54v8h-54z"/></symbol><symbol id="trumbowyg-insert-image" viewBox="0 0 72 72"><path d="M64 17v38H8V17h56m8-8H0v54h72V9z"/><path d="M17.5 22C15 22 13 24 13 26.5s2 4.5 4.5 4.5 4.5-2 4.5-4.5-2-4.5-4.5-4.5zM16 50h27L29.5 32zM36 36.2l8.9-8.5L60.2 50H45.9S35.6 35.9 36 36.2z"/></symbol><symbol id="trumbowyg-italic" viewBox="0 0 72 72"><path d="M26 57l10.1-42h7.2L33.2 57H26z"/></symbol><symbol id="trumbowyg-justify-center" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM18 32h36v8H18z"/></symbol><symbol id="trumbowyg-justify-full" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM9 32h54v8H9z"/></symbol><symbol id="trumbowyg-justify-left" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM9 32h36v8H9z"/></symbol><symbol id="trumbowyg-justify-right" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM27 32h36v8H27z"/></symbol><symbol id="trumbowyg-link" viewBox="0 0 72 72"><path d="M30.9 49.1l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9l-5.2-5.2c-1.1-1.1-1.1-3.1 0-4.2l6.1-6.1.2-.2 6.5-6.5c-1.2-.6-2.5-.9-3.8-.9-2.3 0-4.6.9-6.3 2.6L10.8 42c-3.5 3.5-3.5 9.2 0 12.7l5.2 5.2c1.7 1.7 4 2.6 6.3 2.6s4.6-.9 6.3-2.6l6.7-6.7C38 50.5 38.6 46.3 37 43l-6.1 6.1zM38.5 22.7l6.7-6.7c.8-.8 1.6-.9 2.1-.9s1.4.1 2.1.9l5.2 5.2c1.1 1.1 1.1 3.1 0 4.2l-6.1 6.1-.2.2-6.5 6.5c1.2.6 2.5.9 3.8.9 2.3 0 4.6-.9 6.3-2.6l6.7-6.7c3.5-3.5 3.5-9.2 0-12.7l-5.2-5.2c-1.7-1.7-4-2.6-6.3-2.6s-4.6.9-6.3 2.6l-6.7 6.7c-2.7 2.7-3.3 6.9-1.7 10.2l6.1-6.1z"/><path d="M44.1 30.7c.2-.2.4-.6.4-.9 0-.3-.1-.6-.4-.9l-2.3-2.3c-.2-.2-.6-.4-.9-.4-.3 0-.6.1-.9.4L25.8 40.8c-.2.2-.4.6-.4.9 0 .3.1.6.4.9l2.3 2.3c.2.2.6.4.9.4.3 0 .6-.1.9-.4l14.2-14.2z"/></symbol><symbol id="trumbowyg-ordered-list" viewBox="0 0 72 72"><path d="M27 14h36v8H27zM27 50h36v8H27zM27 32h36v8H27zM11.8 15.8V22h1.8v-7.8h-1.5l-2.1 1 .3 1.3zM12.1 38.5l.7-.6c1.1-1 2.1-2.1 2.1-3.4 0-1.4-1-2.4-2.7-2.4-1.1 0-2 .4-2.6.8l.5 1.3c.4-.3 1-.6 1.7-.6.9 0 1.3.5 1.3 1.1 0 .9-.9 1.8-2.6 3.3l-1 .9V40H15v-1.5h-2.9zM13.3 53.9c1-.4 1.4-1 1.4-1.8 0-1.1-.9-1.9-2.6-1.9-1 0-1.9.3-2.4.6l.4 1.3c.3-.2 1-.5 1.6-.5.8 0 1.2.3 1.2.8 0 .7-.8.9-1.4.9h-.7v1.3h.7c.8 0 1.6.3 1.6 1.1 0 .6-.5 1-1.4 1-.7 0-1.5-.3-1.8-.5l-.4 1.4c.5.3 1.3.6 2.3.6 2 0 3.2-1 3.2-2.4 0-1.1-.8-1.8-1.7-1.9z"/></symbol><symbol id="trumbowyg-p" viewBox="0 0 72 72"><path d="M47.8 15.1H30.1c-4.7 0-8.5 3.7-8.5 8.4s3.7 8.4 8.4 8.4v25h7V19.8h3v37.1h4.1V19.8h3.7v-4.7z"/></symbol><symbol id="trumbowyg-redo" viewBox="0 0 72 72"><path d="M10.8 51.2c0-5.1 2.1-9.7 5.4-13.1 3.3-3.3 8-5.4 13.1-5.4H46v-12L61.3 36 45.9 51.3V39.1H29.3c-3.3 0-6.4 1.3-8.5 3.5-2.2 2.2-3.5 5.2-3.5 8.5h-6.5z"/></symbol><symbol id="trumbowyg-removeformat" viewBox="0 0 72 72"><path d="M58.2 54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.7-5.8-1.1-1.8-2.8-3.2-4.8-4.1-2-.9-4.6-1.3-7.8-1.3h-16v42h16.3c2.6 0 4.8-.2 6.7-.7 1.9-.5 3.4-1.2 4.7-2.1 1.3-1 2.4-2.4 3.2-4.1.9-1.7 1.3-3.6 1.3-5.7.2-2.5-.5-4.7-2-6.6zM40.8 50.2c-.6.1-1.8.2-3.4.2h-9V38.5h8.3c2.5 0 4.4.2 5.6.6 1.2.4 2 1 2.7 2 .6.9 1 2 1 3.3 0 1.1-.2 2.1-.7 2.9-.5.9-1 1.5-1.7 1.9-.8.4-1.7.8-2.8 1zm2.6-20.4c-.5.7-1.3 1.3-2.5 1.6-.8.3-2.5.4-4.8.4h-7.7V21.6h7.1c1.4 0 2.6 0 3.6.1s1.7.2 2.2.4c1 .3 1.7.8 2.2 1.7.5.9.8 1.8.8 3-.1 1.3-.4 2.2-.9 3z"/></symbol><symbol id="trumbowyg-subscript" viewBox="0 0 72 72"><path d="M32 15h7.8L56 57.1h-7.9L44.3 46H27.4l-4 11.1h-7.6L32 15zm-2.5 25.4h12.9L36 22.3h-.2l-6.3 18.1zM58.7 59.9c.6-1.4 2-2.8 4.1-4.4 1.9-1.3 3.1-2.3 3.7-2.9.8-.9 1.3-1.9 1.3-3 0-.9-.2-1.6-.7-2.2-.5-.6-1.2-.9-2.1-.9-1.2 0-2.1.5-2.5 1.4-.3.5-.4 1.4-.5 2.5h-4c.1-1.8.4-3.2 1-4.3 1.1-2.1 3-3.1 5.8-3.1 2.2 0 3.9.6 5.2 1.8 1.3 1.2 1.9 2.8 1.9 4.8 0 1.5-.5 2.9-1.4 4.1-.6.8-1.6 1.7-3 2.6L66 57.7c-1 .7-1.7 1.2-2.1 1.6-.4.3-.7.7-1 1.1H72V64H57.8c0-1.5.3-2.8.9-4.1z"/></symbol><symbol id="trumbowyg-superscript" viewBox="0 0 72 72"><path d="M32 15h7.8L56 57.1h-7.9l-4-11.1H27.4l-4 11.1h-7.6L32 15zm-2.5 25.4h12.9L36 22.3h-.2l-6.3 18.1zM49.6 28.8c.5-1.1 1.6-2.3 3.4-3.6 1.5-1.1 2.5-1.9 3-2.4.7-.7 1-1.6 1-2.4 0-.7-.2-1.3-.6-1.8-.4-.5-1-.7-1.7-.7-1 0-1.7.4-2.1 1.1-.2.4-.3 1.1-.4 2.1H49c.1-1.5.3-2.6.8-3.5.9-1.7 2.5-2.6 4.8-2.6 1.8 0 3.2.5 4.3 1.5 1.1 1 1.6 2.3 1.6 4 0 1.3-.4 2.4-1.1 3.4-.5.7-1.3 1.4-2.4 2.2l-1.3 1c-.8.6-1.4 1-1.7 1.3-.3.3-.6.6-.8.9h7.4v3H48.8c0-1.3.3-2.4.8-3.5z"/></symbol><symbol id="trumbowyg-table" viewBox="0 0 72 72"><path d="M25.686 51.38v-6.347q0-.462-.297-.76-.298-.297-.761-.297H14.04q-.463 0-.761.297-.298.298-.298.76v6.346q0 .463.298.76.298.298.76.298h10.589q.463 0 .76-.298.298-.297.298-.76zm0-12.692v-6.346q0-.463-.297-.76-.298-.298-.761-.298H14.04q-.463 0-.761.298-.298.297-.298.76v6.346q0 .462.298.76.298.297.76.297h10.589q.463 0 .76-.297.298-.298.298-.76zm16.94 12.691v-6.346q0-.462-.297-.76-.298-.297-.761-.297H30.98q-.463 0-.76.297-.299.298-.299.76v6.346q0 .463.298.76.298.298.761.298h10.588q.463 0 .76-.298.299-.297.299-.76zm-16.94-25.383v-6.345q0-.463-.297-.76-.298-.298-.761-.298H14.04q-.463 0-.761.297-.298.298-.298.76v6.346q0 .463.298.76.298.298.76.298h10.589q.463 0 .76-.298.298-.297.298-.76zm16.94 12.692v-6.346q0-.463-.297-.76-.298-.298-.761-.298H30.98q-.463 0-.76.298-.299.297-.299.76v6.346q0 .462.298.76.298.297.761.297h10.588q.463 0 .76-.297.299-.298.299-.76zm16.94 12.691v-6.346q0-.462-.297-.76-.298-.297-.76-.297H47.92q-.463 0-.76.297-.298.298-.298.76v6.346q0 .463.297.76.298.298.761.298h10.588q.463 0 .761-.298.298-.297.298-.76zm-16.94-25.383v-6.345q0-.463-.297-.76-.298-.298-.761-.298H30.98q-.463 0-.76.297-.299.298-.299.76v6.346q0 .463.298.76.298.298.761.298h10.588q.463 0 .76-.298.299-.297.299-.76zm16.94 12.692v-6.346q0-.463-.297-.76-.298-.298-.76-.298H47.92q-.463 0-.76.298-.298.297-.298.76v6.346q0 .462.297.76.298.297.761.297h10.588q.463 0 .761-.297.298-.298.298-.76zm0-12.692v-6.345q0-.463-.297-.76-.298-.298-.76-.298H47.92q-.463 0-.76.297-.298.298-.298.76v6.346q0 .463.297.76.298.298.761.298h10.588q.463 0 .761-.298.298-.297.298-.76zm4.236-10.576v35.96q0 2.18-1.555 3.734-1.555 1.553-3.739 1.553H14.04q-2.184 0-3.739-1.553-1.555-1.553-1.555-3.735V15.42q0-2.181 1.555-3.735 1.555-1.553 3.739-1.553h44.468q2.184 0 3.739 1.553 1.555 1.554 1.555 3.735z"/></symbol><symbol id="trumbowyg-underline" viewBox="0 0 72 72"><path d="M36 35zM15.2 55.9h41.6V59H15.2zM21.1 13.9h6.4v21.2c0 1.2.1 2.5.2 3.7.1 1.3.5 2.4 1 3.4.6 1 1.4 1.8 2.6 2.5 1.1.6 2.7 1 4.8 1 2.1 0 3.7-.3 4.8-1 1.1-.6 2-1.5 2.6-2.5.6-1 .9-2.1 1-3.4.1-1.3.2-2.5.2-3.7V13.9H51v23.3c0 2.3-.4 4.4-1.1 6.1-.7 1.7-1.7 3.2-3 4.4-1.3 1.2-2.9 2-4.7 2.6-1.8.6-3.9.9-6.1.9-2.2 0-4.3-.3-6.1-.9-1.8-.6-3.4-1.5-4.7-2.6-1.3-1.2-2.3-2.6-3-4.4-.7-1.7-1.1-3.8-1.1-6.1V13.9z"/></symbol><symbol id="trumbowyg-undo" viewBox="0 0 72 72"><path d="M61.2 51.2c0-5.1-2.1-9.7-5.4-13.1-3.3-3.3-8-5.4-13.1-5.4H26.1v-12L10.8 36l15.3 15.3V39.1h16.7c3.3 0 6.4 1.3 8.5 3.5 2.2 2.2 3.5 5.2 3.5 8.5h6.4z"/></symbol><symbol id="trumbowyg-unlink" viewBox="0 0 72 72"><path d="M30.9 49.1l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9l-5.2-5.2c-1.1-1.1-1.1-3.1 0-4.2l6.1-6.1.2-.2 6.5-6.5c-1.2-.6-2.5-.9-3.8-.9-2.3 0-4.6.9-6.3 2.6L10.8 42c-3.5 3.5-3.5 9.2 0 12.7l5.2 5.2c1.7 1.7 4 2.6 6.3 2.6s4.6-.9 6.3-2.6l6.7-6.7C38 50.5 38.6 46.3 37 43l-6.1 6.1zM38.5 22.7l6.7-6.7c.8-.8 1.6-.9 2.1-.9s1.4.1 2.1.9l5.2 5.2c1.1 1.1 1.1 3.1 0 4.2l-6.1 6.1-.2.2-6.5 6.5c1.2.6 2.5.9 3.8.9 2.3 0 4.6-.9 6.3-2.6l6.7-6.7c3.5-3.5 3.5-9.2 0-12.7l-5.2-5.2c-1.7-1.7-4-2.6-6.3-2.6s-4.6.9-6.3 2.6l-6.7 6.7c-2.7 2.7-3.3 6.9-1.7 10.2l6.1-6.1z"/><path d="M44.1 30.7c.2-.2.4-.6.4-.9 0-.3-.1-.6-.4-.9l-2.3-2.3c-.2-.2-.6-.4-.9-.4-.3 0-.6.1-.9.4L25.8 40.8c-.2.2-.4.6-.4.9 0 .3.1.6.4.9l2.3 2.3c.2.2.6.4.9.4.3 0 .6-.1.9-.4l14.2-14.2zM41.3 55.8v-5h22.2v5H41.3z"/></symbol><symbol id="trumbowyg-unordered-list" viewBox="0 0 72 72"><path d="M27 14h36v8H27zM27 50h36v8H27zM9 50h9v8H9zM9 32h9v8H9zM9 14h9v8H9zM27 32h36v8H27z"/></symbol><symbol id="trumbowyg-view-html" viewBox="0 0 72 72"><path fill="none" stroke="currentColor" stroke-width="8" stroke-miterlimit="10" d="M26.9 17.9L9 36.2 26.9 54M45 54l17.9-18.3L45 17.9"/></symbol><symb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101 27.101 14.96 0 27.101-12.141 27.101-27.101S51.01 9 36.05 9zm9.757 15.095c2.651 0 4.418 1.767 4.418 4.418s-1.767 4.418-4.418 4.418-4.418-1.767-4.418-4.418 1.767-4.418 4.418-4.418zm-19.479 0c2.651 0 4.418 1.767 4.418 4.418s-1.767 4.418-4.418 4.418-4.418-1.767-4.418-4.418 1.767-4.418 4.418-4.418zm9.722 30.436c-14.093 0-16.261-13.009-16.261-13.009h32.522S50.143 54.531 36.05 54.531z"/></symbol><symbol id="trumbowyg-back-color" viewBox="0 0 72 72"><path d="M36.5 22.3l-6.3 18.1H43l-6.3-18.1z"/><path d="M9 8.9v54.2h54.1V8.9H9zm39.9 48.2L45 46H28.2l-3.9 11.1h-7.6L32.8 15h7.8l16.2 42.1h-7.9z"/></symbol><symbol id="trumbowyg-fore-color" viewBox="0 0 72 72"><path d="M32 15h7.8L56 57.1h-7.9l-4-11.1H27.4l-4 11.1h-7.6L32 15zm-2.5 25.4h12.9L36 22.3h-.2l-6.3 18.1z"/></symbol><symbol id="trumbowyg-insert-audio" viewBox="0 0 8 8"><path d="M3.344 0L2 2H0v4h2l1.344 2H4V0h-.656zM5 1v1c.152 0 .313.026.469.063H5.5c.86.215 1.5.995 1.5 1.938a1.99 1.99 0 0 1-2 2.001v1a2.988 2.988 0 0 0 3-3 2.988 2.988 0 0 0-3-3zm0 2v2l.25-.031C5.683 4.851 6 4.462 6 4c0-.446-.325-.819-.75-.938v-.031h-.031L5 3z"/></symbol><symbol id="trumbowyg-noembed" viewBox="0 0 72 72"><path d="M31.5 33.6V25l11 11-11 11v-8.8z"/><path d="M64 17v38H8V17h56m8-8H0v54h72V9z"/></symbol><symbol id="trumbowyg-preformatted" viewBox="0 0 72 72"><path d="M10.3 33.5c.4 0 .9-.1 1.5-.2s1.2-.3 1.8-.7c.6-.3 1.1-.8 1.5-1.3.4-.5.6-1.3.6-2.1V17.1c0-1.4.3-2.6.8-3.6s1.2-1.9 2-2.5c.8-.7 1.6-1.2 2.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 3.6v11.6c0 .9.2 1.7.6 2.3.4.6.9 1.1 1.5 1.5.6.4 1.2.6 1.8.7.6.1 1.2.2 1.6.2v5.2z"/></symbol><symbol id="trumbowyg-upload" viewBox="0 0 72 72"><path d="M64 27v28H8V27H0v36h72V27h-8z"/><path d="M32.1 6.7h8v33.6h-8z"/><path d="M48 35.9L36 49.6 24 36h24z"/></symbol></svg>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="427px" height="122px" viewBox="0 0 427 122" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>logo</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<g id="logo" transform="translate(0.000000, -1.000000)" fill-rule="nonzero" fill="#FFFFFF">
|
9
|
+
<path d="M363.017,122.17 C346.272,121.69 331.412,116.627 318.984,105.216 C311.982,98.786 306.887,90.993 303.68,82.088 C300.498,73.255 299.54,64.085 300.423,54.702 C301.827,39.778 308.135,27.316 319.123,17.235 C326.843,10.152 335.941,5.698 346.115,3.107 C354.648,0.934 363.305,0.474 371.843,1.575 C389.977,3.915 405.123,11.945 415.757,27.308 C420.189,33.712 423.142,40.728 424.727,48.436 C426.244,55.806 426.499,63.209 425.307,70.472 C422.257,89.07 412.667,103.547 396.312,113.19 C390.135,116.833 386.102,118.143 380.882,119.73 C376.837,120.41 371.147,121.963 363.017,122.17 L363.017,122.17 Z M362.985,95.425 C381.975,95.457 396.248,80.255 396.263,60.871 C396.278,41.747 382.225,27.543 363.193,27.451 C344.21,27.357 329.871,41.337 329.799,60.811 C329.727,79.951 343.716,95.345 362.984,95.426 L362.985,95.425 Z M205.103,119.55 C203.819,119.666 203.013,119.802 202.206,119.804 C194.294,119.822 186.381,119.754 178.471,119.864 C176.477,119.891 175.395,119.169 174.881,117.339 C173.411,112.116 171.954,106.889 170.438,101.679 C169.823,99.566 169.068,97.493 168.348,95.317 C156.783,95.317 145.38,95.281 133.978,95.4 C133.242,95.41 132.102,96.475 131.858,97.266 C130.288,102.379 128.908,107.551 127.473,112.706 C127.053,114.213 126.628,115.72 126.249,117.239 C125.756,119.213 124.615,119.904 122.511,119.869 C114.684,119.739 106.854,119.823 99.026,119.803 C96.304,119.796 95.82,119.01 96.701,116.453 C99.696,107.755 102.631,99.037 105.629,90.343 C109.129,80.196 112.703,70.075 116.189,59.923 C118.671,52.691 121.039,45.419 123.499,38.178 C126.056,30.648 128.674,23.141 131.236,15.614 C132.374,12.269 133.5,8.918 134.509,5.534 C134.972,3.979 135.663,3.168 137.434,3.182 C146.178,3.249 154.924,3.24 163.668,3.192 C165.386,3.182 166.078,3.9 166.6,5.515 C168.687,11.987 170.983,18.393 173.156,24.838 C175.652,32.24 178.062,39.671 180.581,47.065 C183.067,54.357 185.676,61.607 188.171,68.895 C190.644,76.128 193.026,83.392 195.478,90.632 C198.032,98.174 200.636,105.699 203.188,113.242 C203.84,115.172 204.376,117.142 205.104,119.547 L205.103,119.55 Z M161.533,72.174 L150.573,31.766 L139.446,72.174 L161.532,72.174 L161.533,72.174 Z M197.416,31.43 C197.416,22.26 197.386,13.525 197.486,4.792 C197.492,4.262 198.458,3.667 199.076,3.249 C199.363,3.055 199.888,3.215 200.304,3.215 C231.457,3.215 262.61,3.245 293.764,3.155 C296.292,3.149 297.104,3.827 297.06,6.348 C296.93,13.675 296.947,21.008 297.06,28.336 C297.094,30.656 296.473,31.521 293.98,31.486 C284.07,31.346 274.156,31.506 264.246,31.371 C261.961,31.341 261.476,32.084 261.481,34.205 C261.541,61.61 261.521,89.015 261.521,116.419 C261.521,119.806 261.515,119.816 258.085,119.817 C250.588,119.821 243.091,119.765 235.595,119.841 C233.361,119.863 232.579,119.124 232.585,116.791 C232.657,89.553 232.629,62.315 232.625,35.077 C232.625,31.433 232.621,31.432 228.973,31.432 L200.985,31.432 C199.92,31.43 198.855,31.43 197.417,31.43 L197.416,31.43 Z M28.624,3.216 L28.624,90.013 C28.624,93.311 28.629,93.319 31.831,93.319 C49.991,93.321 68.151,93.372 86.308,93.261 C88.868,93.245 89.534,93.953 89.466,96.478 C89.286,103.218 89.33,109.971 89.466,116.716 C89.51,118.981 88.806,119.844 86.514,119.841 C58.609,119.801 30.704,119.793 2.8,119.863 C0.008,119.87 -0.002,118.311 -8.8817842e-16,116.317 C0.025,94.575 0.018,72.835 0.02,51.094 C0.02,36.27 0.016,21.442 0.024,6.615 C0.026,3.199 0.044,3.203 3.506,3.205 C10.836,3.211 18.166,3.212 25.496,3.215 L28.624,3.215 L28.624,3.216 Z" id="Shape"></path>
|
10
|
+
<path d="M362.916,43.035 C373.851,42.905 381.462,51.901 381.539,61.4 C381.625,72.17 372.889,80.314 362.836,80.3 C353.036,80.29 344.281,72.166 344.249,61.553 C344.221,52.27 352.169,42.673 362.915,43.035 L362.916,43.035 Z" id="Shape"></path>
|
11
|
+
</g>
|
12
|
+
</g>
|
13
|
+
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="426.057" height="121.17" viewBox="0 0 426.057 121.17"><path d="M363.017 121.17c-16.745-.48-31.605-5.543-44.033-16.954-7.002-6.43-12.097-14.223-15.304-23.128-3.182-8.833-4.14-18.003-3.257-27.386 1.404-14.924 7.712-27.386 18.7-37.467 7.72-7.083 16.818-11.537 26.992-14.128 8.533-2.173 17.19-2.633 25.728-1.532 18.134 2.34 33.28 10.37 43.914 25.733 4.432 6.404 7.385 13.42 8.97 21.128 1.517 7.37 1.772 14.773.58 22.036-3.05 18.598-12.64 33.075-28.995 42.718-6.177 3.643-10.21 4.953-15.43 6.54-4.045.68-9.735 2.233-17.865 2.44zm-.032-26.745c18.99.032 33.263-15.17 33.278-34.554.015-19.124-14.038-33.328-33.07-33.42-18.983-.094-33.322 13.886-33.394 33.36-.072 19.14 13.917 34.534 33.185 34.615zM205.103 118.55c-1.284.116-2.09.252-2.897.254-7.912.018-15.825-.05-23.735.06-1.994.027-3.076-.695-3.59-2.525-1.47-5.223-2.927-10.45-4.443-15.66-.615-2.113-1.37-4.186-2.09-6.362-11.565 0-22.968-.036-34.37.083-.736.01-1.876 1.075-2.12 1.866-1.57 5.113-2.95 10.285-4.385 15.44-.42 1.507-.845 3.014-1.224 4.533-.493 1.974-1.634 2.665-3.738 2.63-7.827-.13-15.657-.046-23.485-.066-2.722-.007-3.206-.793-2.325-3.35 2.995-8.698 5.93-17.416 8.928-26.11 3.5-10.147 7.074-20.268 10.56-30.42 2.482-7.232 4.85-14.504 7.31-21.745 2.557-7.53 5.175-15.037 7.737-22.564 1.138-3.345 2.264-6.696 3.273-10.08.463-1.555 1.154-2.366 2.925-2.352 8.744.067 17.49.058 26.234.01 1.718-.01 2.41.708 2.932 2.323 2.087 6.472 4.383 12.878 6.556 19.323 2.496 7.402 4.906 14.833 7.425 22.227 2.486 7.292 5.095 14.542 7.59 21.83 2.473 7.233 4.855 14.497 7.307 21.737 2.554 7.542 5.158 15.067 7.71 22.61.652 1.93 1.188 3.9 1.916 6.305zm-43.57-47.376l-10.96-40.408-11.127 40.408h22.086zm35.883-40.744c0-9.17-.03-17.905.07-26.638.006-.53.972-1.125 1.59-1.543.287-.194.812-.034 1.228-.034 31.153 0 62.306.03 93.46-.06 2.528-.006 3.34.672 3.296 3.193-.13 7.327-.113 14.66 0 21.988.034 2.32-.587 3.185-3.08 3.15-9.91-.14-19.824.02-29.734-.115-2.285-.03-2.77.713-2.765 2.834.06 27.405.04 54.81.04 82.214 0 3.387-.006 3.397-3.436 3.398-7.497.004-14.994-.052-22.49.024-2.234.022-3.016-.717-3.01-3.05.072-27.238.044-54.476.04-81.714 0-3.644-.004-3.645-3.652-3.645h-27.988c-1.065-.002-2.13-.002-3.568-.002zM28.624 2.216v86.797c0 3.298.005 3.306 3.207 3.306 18.16.002 36.32.053 54.477-.058 2.56-.016 3.226.692 3.158 3.217-.18 6.74-.136 13.493 0 20.238.044 2.265-.66 3.128-2.952 3.125-27.905-.04-55.81-.048-83.714.022-2.792.007-2.802-1.552-2.8-3.546.025-21.742.018-43.482.02-65.223C.02 35.27.016 20.442.024 5.615c.002-3.416.02-3.412 3.482-3.41 7.33.006 14.66.007 21.99.01h3.128z"/><path d="M362.916 42.035c10.935-.13 18.546 8.866 18.623 18.365.086 10.77-8.65 18.914-18.703 18.9-9.8-.01-18.555-8.134-18.587-18.747-.028-9.283 7.92-18.88 18.666-18.518z"/></svg>
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require_tree ./vendors
|
16
|
+
//= require_tree ./initializers
|
17
|
+
//= require_tree ./interfaces
|
18
|
+
|
19
|
+
$(window).load(function () {
|
20
|
+
InputsInitializer.init()
|
21
|
+
})
|
22
|
+
|
23
|
+
$(document).ready(function() {
|
24
|
+
ChartsInitializer.init()
|
25
|
+
ElementsInitializer.init()
|
26
|
+
LayoutInitializer.init()
|
27
|
+
SortableManager.init()
|
28
|
+
})
|
@@ -0,0 +1,36 @@
|
|
1
|
+
var ChartsInitializer = (function () {
|
2
|
+
|
3
|
+
function initializeBarCharts () {
|
4
|
+
var charts = $('.charts-bar')
|
5
|
+
charts.each(function () {
|
6
|
+
initializeBarChart(this)
|
7
|
+
})
|
8
|
+
}
|
9
|
+
|
10
|
+
function initializeBarChart (chart) {
|
11
|
+
var chartData = JSON.parse($(chart).find('.charts__metadata').html())
|
12
|
+
|
13
|
+
var canvas = $(chart).find('.charts__canvas')[0]
|
14
|
+
canvas.getContext('2d')
|
15
|
+
|
16
|
+
var chartjs = new Chart(canvas, {
|
17
|
+
type: chartData.chart_type,
|
18
|
+
data: {
|
19
|
+
labels: chartData.labels,
|
20
|
+
datasets: chartData.datasets
|
21
|
+
}
|
22
|
+
})
|
23
|
+
}
|
24
|
+
|
25
|
+
// Init:
|
26
|
+
|
27
|
+
function init () {
|
28
|
+
initializeBarCharts()
|
29
|
+
}
|
30
|
+
|
31
|
+
return {
|
32
|
+
init: init
|
33
|
+
}
|
34
|
+
|
35
|
+
})()
|
36
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
var ElementsInitializer = (function () {
|
2
|
+
|
3
|
+
function modalCloseButton () {
|
4
|
+
$('.elements-modal__close-button').click(function (e) {
|
5
|
+
var modal = $(this).parent()
|
6
|
+
var modalContent = modal.parent()
|
7
|
+
var modalContainer = modalContent.parent()
|
8
|
+
modalContainer.removeClass('elements-modal--active')
|
9
|
+
modalContainer.find('.elements-modal__modal').removeClass('elements-modal__modal--active')
|
10
|
+
$('body').removeClass('stop-scrolling')
|
11
|
+
e.preventDefault()
|
12
|
+
})
|
13
|
+
}
|
14
|
+
|
15
|
+
function flashCloseButton () {
|
16
|
+
$('.elements-flash__close-button').click(function (e) {
|
17
|
+
var flash = $(this).parent()
|
18
|
+
flash.addClass('elements-flash--hidden')
|
19
|
+
e.preventDefault()
|
20
|
+
})
|
21
|
+
}
|
22
|
+
|
23
|
+
function tableHeadFixed () {
|
24
|
+
var table = $('.elements-table--fixed .elements-table__table')
|
25
|
+
table.floatThead({
|
26
|
+
scrollContainer: function (table) {
|
27
|
+
return table.closest('.elements-table--fixed')
|
28
|
+
}
|
29
|
+
})
|
30
|
+
}
|
31
|
+
|
32
|
+
function buttonConfirmation () {
|
33
|
+
var button = $('.elements-button__element')
|
34
|
+
button.click(function (e) {
|
35
|
+
if ($(this).attr('data-confirmation') && $(this).attr('data-confirmation') === 'true') {
|
36
|
+
var confirmation = $(this).parent().find('.elements-button__confirmation')
|
37
|
+
|
38
|
+
// remove old confirmations popup
|
39
|
+
$('.elements-button__element').parent().find('.elements-button__confirmation').removeClass('elements-button__confirmation--active')
|
40
|
+
// open confirmation popup
|
41
|
+
$(confirmation).addClass('elements-button__confirmation--active')
|
42
|
+
// manage delete click
|
43
|
+
$(confirmation).find('.button.popup.false').click(function(e) {
|
44
|
+
$(confirmation).removeClass('elements-button__confirmation--active')
|
45
|
+
e.preventDefault()
|
46
|
+
})
|
47
|
+
|
48
|
+
e.preventDefault()
|
49
|
+
}
|
50
|
+
})
|
51
|
+
}
|
52
|
+
|
53
|
+
// Init:
|
54
|
+
|
55
|
+
function init () {
|
56
|
+
modalCloseButton()
|
57
|
+
flashCloseButton()
|
58
|
+
tableHeadFixed()
|
59
|
+
buttonConfirmation()
|
60
|
+
}
|
61
|
+
|
62
|
+
return {
|
63
|
+
init: init
|
64
|
+
}
|
65
|
+
|
66
|
+
})()
|
67
|
+
|
@@ -0,0 +1,201 @@
|
|
1
|
+
var InputsInitializer = (function () {
|
2
|
+
|
3
|
+
// Init plugins:
|
4
|
+
|
5
|
+
function initializeSelect () {
|
6
|
+
$('.inputs__select').selectize()
|
7
|
+
}
|
8
|
+
|
9
|
+
function initializeDatetime () {
|
10
|
+
$('.inputs__input--datetime').datetimepicker({
|
11
|
+
format: 'd/m/Y H:i'
|
12
|
+
})
|
13
|
+
}
|
14
|
+
|
15
|
+
function initializeEditor () {
|
16
|
+
$('.inputs__editor').trumbowyg({
|
17
|
+
svgPath: $('#ddtj__editor-icons-path').html()
|
18
|
+
});
|
19
|
+
}
|
20
|
+
|
21
|
+
function initializeDropzone () {
|
22
|
+
$('.inputs__dropzone').each(function () {
|
23
|
+
var paramName = $(this).attr('data-param-name')
|
24
|
+
var maxFilesize = $(this).attr('data-max-size')
|
25
|
+
var maxFiles = $(this).attr('data.max-files')
|
26
|
+
$(this).dropzone({
|
27
|
+
paramName: paramName,
|
28
|
+
maxFilesize: maxFilesize,
|
29
|
+
maxFiles: maxFiles
|
30
|
+
})
|
31
|
+
})
|
32
|
+
}
|
33
|
+
|
34
|
+
function initializeGeolocalizationMap () {
|
35
|
+
$('.inputs-geolocalization').each(function () {
|
36
|
+
// find dom elements
|
37
|
+
var mapContainer = $(this).find('.inputs-geolocalization__map')[0]
|
38
|
+
var searchBoxInput = $(this).find('.inputs-geolocalization__search')[0]
|
39
|
+
var latInput = $(this).find('.inputs-geolocalization__input-lat')[0]
|
40
|
+
var lngInput = $(this).find('.inputs-geolocalization__input-lng')[0]
|
41
|
+
var addressInput = $(this).find('.inputs-geolocalization__input-address')[0]
|
42
|
+
// initialize map
|
43
|
+
var map = new google.maps.Map(mapContainer, {
|
44
|
+
zoom: parseInt($(mapContainer).attr('data-default-zoom')),
|
45
|
+
center: {
|
46
|
+
lat: parseFloat($(mapContainer).attr('data-default-lat')),
|
47
|
+
lng: parseFloat($(mapContainer).attr('data-default-lng'))
|
48
|
+
},
|
49
|
+
mapTypeId: $(mapContainer).attr('data-default-type'),
|
50
|
+
streetViewControl: false
|
51
|
+
})
|
52
|
+
// initialize markers
|
53
|
+
var markers = []
|
54
|
+
if ($(latInput).val() && $(lngInput).val()) {
|
55
|
+
markers.push(new google.maps.Marker({
|
56
|
+
map: map,
|
57
|
+
position: {lat: parseFloat($(latInput).val()), lng: parseFloat($(lngInput).val())},
|
58
|
+
title: $(addressInput).val()
|
59
|
+
}))
|
60
|
+
}
|
61
|
+
// initialize searchbox
|
62
|
+
var searchBox = new google.maps.places.SearchBox(searchBoxInput)
|
63
|
+
// sync map bounds with search
|
64
|
+
map.addListener('bounds_changed', function () {
|
65
|
+
searchBox.setBounds(map.getBounds())
|
66
|
+
})
|
67
|
+
// sync searchbox search with map and hidden inputs
|
68
|
+
searchBox.addListener('places_changed', function () {
|
69
|
+
// get search palces
|
70
|
+
var places = searchBox.getPlaces()
|
71
|
+
if (places.length === 0) { return }
|
72
|
+
// clean old markers
|
73
|
+
markers.forEach(function (marker) { marker.setMap(null) })
|
74
|
+
markers = []
|
75
|
+
// show first place on map
|
76
|
+
var bounds = new google.maps.LatLngBounds()
|
77
|
+
var place = places[0]
|
78
|
+
if (!place.geometry) { return }
|
79
|
+
markers.push(new google.maps.Marker({
|
80
|
+
map: map,
|
81
|
+
position: place.geometry.location,
|
82
|
+
title: place.formatted_address
|
83
|
+
}))
|
84
|
+
if (place.geometry.viewport) {
|
85
|
+
bounds.union(place.geometry.viewport)
|
86
|
+
} else {
|
87
|
+
bounds.extend(place.geometry.location)
|
88
|
+
}
|
89
|
+
map.fitBounds(bounds)
|
90
|
+
// save place info on hidden inputs
|
91
|
+
$(latInput).val(place.geometry.location.lat())
|
92
|
+
$(lngInput).val(place.geometry.location.lng())
|
93
|
+
$(addressInput).val(place.formatted_address)
|
94
|
+
})
|
95
|
+
})
|
96
|
+
}
|
97
|
+
|
98
|
+
// Validations:
|
99
|
+
|
100
|
+
function formInputsValidator () {
|
101
|
+
$('.inputs__form').submit(function (e) {
|
102
|
+
$(e.target).find('input').each(function () {
|
103
|
+
if (!validateInput(this)) { e.preventDefault() }
|
104
|
+
})
|
105
|
+
$(e.target).find('select').each(function () {
|
106
|
+
if (!validateInput(this)) { e.preventDefault() }
|
107
|
+
})
|
108
|
+
$(e.target).find('textarea').each(function () {
|
109
|
+
if (!validateInput(this)) { e.preventDefault() }
|
110
|
+
})
|
111
|
+
})
|
112
|
+
}
|
113
|
+
|
114
|
+
function validateInput (input) {
|
115
|
+
if ($(input).attr('data-required') && $(input).attr('data-required') === 'true') {
|
116
|
+
if (!validateInputRequired(input)) { return false }
|
117
|
+
}
|
118
|
+
|
119
|
+
if ($(input).attr('data-max-length')) {
|
120
|
+
if (!validateInputMaxLength(input)) { return false }
|
121
|
+
}
|
122
|
+
|
123
|
+
if ($(input).attr('data-min-length')) {
|
124
|
+
if (!validateInputMinLength(input)) { return false }
|
125
|
+
}
|
126
|
+
|
127
|
+
return true
|
128
|
+
}
|
129
|
+
|
130
|
+
function validateInputRequired (input) {
|
131
|
+
if ($(input).is(':checkbox')) {
|
132
|
+
var inputChecked = $(input).is(':checked')
|
133
|
+
if (!inputChecked || inputChecked === null || inputChecked === false) {
|
134
|
+
addInputErrorStyle(input)
|
135
|
+
return false
|
136
|
+
}
|
137
|
+
} else {
|
138
|
+
var inputValue = $(input).val()
|
139
|
+
if (inputValue === null || inputValue === '' || inputValue === ' ') {
|
140
|
+
addInputErrorStyle(input)
|
141
|
+
return false
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
return true
|
146
|
+
}
|
147
|
+
|
148
|
+
function validateInputMaxLength (input) {
|
149
|
+
var inputValue = $(input).val()
|
150
|
+
if (inputValue !== null && inputValue !== '' && inputValue.length > $(input).attr('data-max-length')) {
|
151
|
+
addInputErrorStyle(input)
|
152
|
+
return false
|
153
|
+
}
|
154
|
+
|
155
|
+
return true
|
156
|
+
}
|
157
|
+
|
158
|
+
function validateInputMinLength (input) {
|
159
|
+
var inputValue = $(input).val()
|
160
|
+
if (inputValue !== null && inputValue !== '' && inputValue.length < $(input).attr('data-min-length')) {
|
161
|
+
addInputErrorStyle(input)
|
162
|
+
return false
|
163
|
+
}
|
164
|
+
|
165
|
+
return true
|
166
|
+
}
|
167
|
+
|
168
|
+
function addInputErrorStyle (input) {
|
169
|
+
if ($(input).is('select')) {
|
170
|
+
$(input).next().addClass('inputs__select--error')
|
171
|
+
$(input).next().click(function () {
|
172
|
+
$(this).removeClass('inputs__select--error')
|
173
|
+
})
|
174
|
+
} else if ($(input).is('textarea')) {
|
175
|
+
$(input).addClass('inputs__textarea--error')
|
176
|
+
$(input).click(function () {
|
177
|
+
$(this).removeClass('inputs__textarea--error')
|
178
|
+
})
|
179
|
+
} else {
|
180
|
+
$(input).addClass('inputs__input--error')
|
181
|
+
$(input).focus(function () {
|
182
|
+
$(this).removeClass('inputs__input--error')
|
183
|
+
})
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
// Init:
|
188
|
+
function init () {
|
189
|
+
initializeSelect()
|
190
|
+
initializeDatetime()
|
191
|
+
initializeEditor()
|
192
|
+
initializeDropzone()
|
193
|
+
initializeGeolocalizationMap()
|
194
|
+
formInputsValidator()
|
195
|
+
}
|
196
|
+
|
197
|
+
return {
|
198
|
+
init: init
|
199
|
+
}
|
200
|
+
|
201
|
+
})()
|
@@ -0,0 +1,37 @@
|
|
1
|
+
var LayoutInitializer = (function () {
|
2
|
+
function toggleProfileMenu () {
|
3
|
+
$('.layout-admin__profile-container').click(function () {
|
4
|
+
// close header widgets
|
5
|
+
$('.layout-admin__widget-container').removeClass('layout-admin__widget-container--active')
|
6
|
+
// toggle class on profile menu
|
7
|
+
$('.layout-admin__profile-menu-list').toggleClass('layout-admin__profile-menu-list--active')
|
8
|
+
})
|
9
|
+
}
|
10
|
+
|
11
|
+
function toggleWidget () {
|
12
|
+
$('.layout-admin__widget-button').click(function (e) {
|
13
|
+
var widgetContainer = $(this).parent()
|
14
|
+
// close profile menu
|
15
|
+
$('.layout-admin__profile-menu-list').removeClass('layout-admin__profile-menu-list--active')
|
16
|
+
// close others widgets and toggle on clicked widget
|
17
|
+
if ($(widgetContainer).hasClass('layout-admin__widget-container--active')) {
|
18
|
+
$('.layout-admin__widget-container').removeClass('layout-admin__widget-container--active')
|
19
|
+
} else {
|
20
|
+
$('.layout-admin__widget-container').removeClass('layout-admin__widget-container--active')
|
21
|
+
$(widgetContainer).addClass('layout-admin__widget-container--active')
|
22
|
+
}
|
23
|
+
e.preventDefault()
|
24
|
+
})
|
25
|
+
}
|
26
|
+
|
27
|
+
// Init:
|
28
|
+
function init () {
|
29
|
+
toggleProfileMenu()
|
30
|
+
toggleWidget()
|
31
|
+
}
|
32
|
+
|
33
|
+
return {
|
34
|
+
init: init
|
35
|
+
}
|
36
|
+
|
37
|
+
})()
|
@@ -0,0 +1,66 @@
|
|
1
|
+
var SortableManager = (function () {
|
2
|
+
function initSortable() {
|
3
|
+
var sortableContainer = document.querySelectorAll('.js-sortable__main-container')
|
4
|
+
|
5
|
+
if(sortableContainer.length > 0) {
|
6
|
+
for (var i = 0; i < sortableContainer.length; i++) {
|
7
|
+
|
8
|
+
var sort = Sortable.create(sortableContainer[i], {
|
9
|
+
animation: 100,
|
10
|
+
handle: '.c-sortable__handle',
|
11
|
+
draggable: '.js-sortable__element',
|
12
|
+
ghostClass: 'c-sortable__destination',
|
13
|
+
onChoose: function (e) {
|
14
|
+
console.info('Element is chosen', e)
|
15
|
+
},
|
16
|
+
onStart: function (e) {
|
17
|
+
console.info('Element dragging started', e)
|
18
|
+
},
|
19
|
+
onEnd: function (e) {
|
20
|
+
console.info('Element dragging ended')
|
21
|
+
console.info(e.oldIndex)
|
22
|
+
console.info(e.newIndex)
|
23
|
+
|
24
|
+
if (e.oldIndex !== e.newIndex) {
|
25
|
+
updateOrder(this.el)
|
26
|
+
}
|
27
|
+
},
|
28
|
+
onUpdate: function (e) {
|
29
|
+
console.info('onUpdate', e)
|
30
|
+
},
|
31
|
+
onSort: function (e) {
|
32
|
+
console.info('onSort', e)
|
33
|
+
}
|
34
|
+
})
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
function updateOrder(container) {
|
40
|
+
var sortableElements = container.querySelectorAll('.js-sortable__element')
|
41
|
+
for (var i = 0; i < sortableElements.length; i++) {
|
42
|
+
var sortableElement = sortableElements[i]
|
43
|
+
var sortableElementId = sortableElement.dataset.id
|
44
|
+
var relativeInput = container.querySelector('.js-sortable__hidden-input[data-id="' + sortableElementId + '"]')
|
45
|
+
|
46
|
+
console.log(relativeInput)
|
47
|
+
|
48
|
+
relativeInput.value = i + 1
|
49
|
+
sortableElement.dataset.position = i + 1
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
function destroySort(sortInstance) {
|
54
|
+
sortInstance.destroy()
|
55
|
+
}
|
56
|
+
|
57
|
+
function init () {
|
58
|
+
initSortable()
|
59
|
+
}
|
60
|
+
|
61
|
+
return {
|
62
|
+
init: init,
|
63
|
+
destroy: destroySort
|
64
|
+
}
|
65
|
+
|
66
|
+
})()
|