locomotivecms 3.0.1 → 3.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -2
- data/app/api/locomotive/api.rb +4 -0
- data/app/api/locomotive/api/entities/site_entity.rb +8 -0
- data/app/api/locomotive/api/forms/site_form.rb +1 -1
- data/app/api/locomotive/api/helpers/params_helper.rb +14 -3
- data/app/api/locomotive/api/middlewares/logger_middleware.rb +1 -3
- data/app/api/locomotive/api/resources/current_site_resource.rb +3 -1
- data/app/api/locomotive/api/resources/page_resource.rb +2 -2
- data/app/api/locomotive/api/resources/site_resource.rb +4 -0
- data/app/assets/images/locomotive/blank.png +0 -0
- data/app/assets/images/locomotive/icons/flags/bf.png +0 -0
- data/app/assets/images/locomotive/icons/flags/bg.png +0 -0
- data/app/assets/images/locomotive/icons/flags/cs.png +0 -0
- data/app/assets/images/locomotive/icons/flags/de.png +0 -0
- data/app/assets/images/locomotive/icons/flags/en.png +0 -0
- data/app/assets/images/locomotive/icons/flags/es.png +0 -0
- data/app/assets/images/locomotive/icons/flags/et.png +0 -0
- data/app/assets/images/locomotive/icons/flags/fr.png +0 -0
- data/app/assets/images/locomotive/icons/flags/it.png +0 -0
- data/app/assets/images/locomotive/icons/flags/ja.png +0 -0
- data/app/assets/images/locomotive/icons/flags/lt.png +0 -0
- data/app/assets/images/locomotive/icons/flags/mg.png +0 -0
- data/app/assets/images/locomotive/icons/flags/nb.png +0 -0
- data/app/assets/images/locomotive/icons/flags/nl.png +0 -0
- data/app/assets/images/locomotive/icons/flags/pl.png +0 -0
- data/app/assets/images/locomotive/icons/flags/pt-BR.png +0 -0
- data/app/assets/images/locomotive/icons/flags/pt.png +0 -0
- data/app/assets/images/locomotive/icons/flags/ru.png +0 -0
- data/app/assets/images/locomotive/icons/flags/sk.png +0 -0
- data/app/assets/images/locomotive/icons/flags/sr.png +0 -0
- data/app/assets/images/locomotive/icons/flags/sv.png +0 -0
- data/app/assets/images/locomotive/icons/flags/zh-CN.png +0 -0
- data/app/assets/javascripts/locomotive.js +3 -1
- data/app/assets/javascripts/locomotive/utils/core_ext.js +10 -0
- data/app/assets/javascripts/locomotive/utils/wysihtml5.js.coffee +0 -16
- data/app/assets/javascripts/locomotive/views/application_view.js.coffee +20 -3
- data/app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee +7 -0
- data/app/assets/javascripts/locomotive/views/current_site_metafields/index_view.js.coffee +7 -0
- data/app/assets/javascripts/locomotive/views/editable_elements/edit_view.js.coffee +2 -2
- data/app/assets/javascripts/locomotive/views/editable_elements/iframe_view.js.coffee +10 -0
- data/app/assets/javascripts/locomotive/views/editable_elements/index_view.js.coffee +11 -6
- data/app/assets/javascripts/locomotive/views/editable_elements/text_highlighter_view.js.coffee +6 -1
- data/app/assets/javascripts/locomotive/views/inputs/file_view.js.coffee +1 -8
- data/app/assets/javascripts/locomotive/views/inputs/image_view.js.coffee +84 -0
- data/app/assets/javascripts/locomotive/views/inputs/rte/edit_table_view.js.coffee +2 -0
- data/app/assets/javascripts/locomotive/views/inputs/rte/file_view.js.coffee +5 -3
- data/app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee +14 -0
- data/app/assets/javascripts/locomotive/views/inputs/rte/link_view.js.coffee +9 -3
- data/app/assets/javascripts/locomotive/views/inputs/rte/table_view.js.coffee +7 -2
- data/app/assets/javascripts/locomotive/views/inputs/rte_view.js.coffee.erb +19 -6
- data/app/assets/javascripts/locomotive/views/inputs/simple_image_view.js.coffee +17 -40
- data/app/assets/javascripts/locomotive/views/shared/drawer_view.js.coffee +8 -6
- data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +30 -8
- data/app/assets/javascripts/locomotive/views/shared/sidebar_view.js.coffee +31 -2
- data/app/assets/stylesheets/locomotive/account.scss +14 -10
- data/app/assets/stylesheets/locomotive/application.scss +101 -24
- data/app/assets/stylesheets/locomotive/live_editing_error.scss +48 -4
- data/app/assets/stylesheets/locomotive/live_editing_iframe.scss +0 -2
- data/app/assets/stylesheets/locomotive/new/_actionbar.scss +83 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_brand.scss +0 -0
- data/app/assets/stylesheets/locomotive/new/_content.scss +65 -0
- data/app/assets/stylesheets/locomotive/new/_drawer.scss +53 -0
- data/app/assets/stylesheets/locomotive/new/_files.scss +124 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_forms.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_keyframes.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_navigation.scss +85 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_navs.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_notify.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_public.scss +0 -0
- data/app/assets/stylesheets/locomotive/new/_sidebar.scss +177 -0
- data/app/assets/stylesheets/locomotive/new/_transitions.scss +96 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_type.scss +0 -0
- data/app/assets/stylesheets/locomotive/{account → new}/_variables.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_activity_feed.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/_buttons.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_content_assets.scss +49 -48
- data/app/assets/stylesheets/locomotive/{components → old}/_dashboard.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_developers.scss +0 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_list.scss +15 -21
- data/app/assets/stylesheets/locomotive/old/_live_editing.scss +37 -0
- data/app/assets/stylesheets/locomotive/{components → old}/_main.scss +4 -14
- data/app/assets/stylesheets/locomotive/{base → old}/_nav.scss +0 -0
- data/app/assets/stylesheets/locomotive/old/_scrollable.scss +11 -0
- data/app/assets/stylesheets/locomotive/{components/misc/_nav.scss → old/_search_bars.scss} +8 -14
- data/app/assets/stylesheets/locomotive/{components → old}/_translations.scss +0 -0
- data/app/assets/stylesheets/locomotive/{globals → old}/_variables.scss +47 -12
- data/app/assets/stylesheets/locomotive/{base → old}/form/_array_input.scss +20 -27
- data/app/assets/stylesheets/locomotive/{base → old}/form/_base.scss +1 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_code.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_color_input.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_document_picker.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_file_input.scss +14 -20
- data/app/assets/stylesheets/locomotive/{base → old}/form/_link.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_markdown.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_popover.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_rte.scss +8 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_select2.scss +35 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_tags.scss +0 -0
- data/app/assets/stylesheets/locomotive/{base → old}/form/_toggle.scss +4 -10
- data/app/controllers/locomotive/content_entries_controller.rb +1 -1
- data/app/controllers/locomotive/current_site_metafields_controller.rb +34 -0
- data/app/controllers/locomotive/custom_fields/select_options_controller.rb +4 -0
- data/app/controllers/locomotive/pages_controller.rb +1 -1
- data/app/helpers/locomotive/base_helper.rb +13 -0
- data/app/helpers/locomotive/current_site_metafields_helper.rb +126 -0
- data/app/helpers/locomotive/my_account_helper.rb +1 -1
- data/app/helpers/locomotive/shared/pages_helper.rb +4 -0
- data/app/helpers/locomotive/sites_helper.rb +9 -11
- data/app/inputs/locomotive/file_input.rb +3 -3
- data/app/inputs/locomotive/image_input.rb +97 -0
- data/app/inputs/locomotive/rte_input.rb +2 -1
- data/app/inputs/locomotive/simple_image_input.rb +5 -68
- data/app/models/locomotive/concerns/site/metafields.rb +96 -0
- data/app/models/locomotive/editable_text.rb +2 -1
- data/app/models/locomotive/site.rb +1 -0
- data/app/policies/locomotive/page_policy.rb +6 -0
- data/app/services/locomotive/content_entry_service.rb +3 -0
- data/app/services/locomotive/site_metafields_service.rb +39 -0
- data/app/views/locomotive/current_site/edit.html.slim +3 -0
- data/app/views/locomotive/current_site_metafields/form/_panes.html.slim +19 -0
- data/app/views/locomotive/current_site_metafields/form/_tabs.html.slim +6 -0
- data/app/views/locomotive/current_site_metafields/index.html.slim +26 -0
- data/app/views/locomotive/editable_elements/_form.html.slim +1 -1
- data/app/views/locomotive/layouts/application.html.slim +22 -19
- data/app/views/locomotive/layouts/live_editing.html.slim +19 -30
- data/app/views/locomotive/pages/form/_main.html.slim +3 -0
- data/app/views/locomotive/shared/_account_navigation.slim +9 -2
- data/app/views/locomotive/shared/_head.html.slim +4 -0
- data/app/views/locomotive/shared/_locale_picker_link.html.slim +1 -1
- data/app/views/locomotive/shared/_navigation.html.slim +30 -0
- data/app/views/locomotive/shared/_sidebar.html.slim +42 -26
- data/app/views/locomotive/shared/rte/_toolbar.html.slim +76 -68
- data/app/views/locomotive/shared/sidebar/_content_types.html.slim +11 -11
- data/app/views/locomotive/shared/sidebar/_link.html.slim +0 -3
- data/app/views/locomotive/shared/sidebar/_page.html.slim +8 -13
- data/app/views/locomotive/shared/sidebar/_pages.html.slim +4 -7
- data/app/views/locomotive/sites/index.html.slim +0 -1
- data/config/locales/carrierwave.cs.yml +4 -0
- data/config/locales/carrierwave.de.yml +4 -0
- data/config/locales/cs.yml +318 -0
- data/config/locales/de.yml +318 -0
- data/config/locales/default.cs.yml +13 -0
- data/config/locales/default.de.yml +13 -0
- data/config/locales/default.fr.yml +13 -1
- data/config/locales/devise.cs.yml +61 -0
- data/config/locales/devise.de.yml +61 -0
- data/config/locales/devise.fr.yml +61 -1
- data/config/locales/el.yml +0 -2
- data/config/locales/en.yml +9 -0
- data/config/locales/flash.cs.yml +79 -0
- data/config/locales/flash.de.yml +79 -0
- data/config/locales/flash.en.yml +4 -0
- data/config/locales/flash.fr.yml +82 -1
- data/config/locales/fr.yml +323 -0
- data/config/locales/inputs.cs.yml +19 -0
- data/config/locales/inputs.de.yml +19 -0
- data/config/locales/inputs.fr.yml +19 -1
- data/config/locales/mongoid.cs.yml +47 -0
- data/config/locales/mongoid.de.yml +38 -0
- data/config/locales/mongoid.fr.yml +35 -0
- data/config/locales/simple_form.cs.yml +152 -0
- data/config/locales/simple_form.de.yml +36 -0
- data/config/locales/simple_form.el.yml +0 -1
- data/config/locales/simple_form.fr.yml +153 -1
- data/config/routes.rb +4 -0
- data/lib/generators/locomotive/install/templates/locomotive.rb +2 -2
- data/lib/locomotive/configuration.rb +1 -1
- data/lib/locomotive/dependencies.rb +1 -0
- data/lib/locomotive/engine.rb +0 -1
- data/lib/locomotive/middlewares/site.rb +1 -1
- data/lib/locomotive/mongoid/patches.rb +8 -0
- data/lib/locomotive/steam/middlewares/page_editing.rb +1 -1
- data/lib/locomotive/version.rb +1 -1
- data/spec/dummy/config/initializers/locomotive.rb +1 -1
- data/spec/models/locomotive/concerns/site/metafields_spec.rb +121 -0
- data/spec/requests/locomotive/steam/cache_spec.rb +1 -1
- data/vendor/assets/components/locomotive/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.css +5 -0
- data/vendor/assets/components/locomotive/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.js +9 -0
- data/vendor/assets/components/locomotive/moment-timezone/moment-timezone.js +7 -0
- data/vendor/assets/components/locomotive/moment/moment.js +3606 -0
- data/vendor/assets/components/locomotive/select2/select2.js +0 -3
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/CONTRIBUTING.md +38 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/Gruntfile.js +191 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/LICENSE +21 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/README.md +37 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/bower.json +35 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker-standalone.css +103 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css +373 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css +5 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js +9 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/component.json +9 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/composer.json +28 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ChangeLog.md +222 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ContributorsGuide.md +126 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Events.md +96 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Extras.md +95 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/FAQ.md +22 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Functions.md +670 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Installing.md +161 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Options.md +473 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Changelog.md +6 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Contributors guide.md +6 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/index.md +592 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/mkdocs.yml +17 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/package.json +43 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +2552 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less +352 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/bootstrap-datetimepicker-build.less +17 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.CSS.nuspec +34 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.nuspec +34 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/NuGet.exe +0 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/install.ps1 +2 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +343 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +16 -0
- data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js +88 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/LICENSE +20 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/README.md +36 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/bower.json +18 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.js +1189 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.min.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.js +1189 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.min.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone.min.js +6 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/changelog.md +101 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/composer.json +43 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/data/meta/latest.json +5012 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/data/packed/latest.json +590 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/data/unpacked/latest.json +124081 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone-utils.js +316 -0
- data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone.js +599 -0
- data/vendor/assets/components/locomotive_sources/moment/CHANGELOG.md +496 -0
- data/vendor/assets/components/locomotive_sources/moment/LICENSE +22 -0
- data/vendor/assets/components/locomotive_sources/moment/README.md +58 -0
- data/vendor/assets/components/locomotive_sources/moment/bower.json +22 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/af.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar-ma.js +59 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar-sa.js +103 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar-tn.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ar.js +136 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/az.js +104 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/be.js +134 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bg.js +90 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bn.js +113 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bo.js +110 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/br.js +107 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/bs.js +141 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ca.js +79 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/cs.js +171 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/cv.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/cy.js +79 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/da.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/de-at.js +77 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/de.js +76 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/dv.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/el.js +98 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-au.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-ca.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-gb.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-ie.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/en-nz.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/eo.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/es.js +79 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/et.js +80 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/eu.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fa.js +105 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fi.js +107 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fo.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fr-ca.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fr-ch.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fr.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/fy.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/gd.js +76 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/gl.js +75 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/he.js +82 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hi.js +123 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hr.js +143 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hu.js +109 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/hy-am.js +95 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/id.js +83 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/is.js +127 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/it.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ja.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/jv.js +83 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ka.js +89 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/kk.js +87 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/km.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ko.js +68 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lb.js +134 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lo.js +69 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lt.js +115 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/lv.js +96 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/me.js +109 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/mk.js +90 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ml.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/mr.js +158 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ms-my.js +82 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ms.js +82 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/my.js +93 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/nb.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ne.js +121 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/nl.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/nn.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/pl.js +105 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/pt-br.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/pt.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ro.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ru.js +166 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/se.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/si.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sk.js +150 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sl.js +160 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sq.js +69 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sr-cyrl.js +108 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sr.js +108 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sv.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/sw.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/ta.js +129 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/te.js +88 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/th.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tl-ph.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tlh.js +119 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tr.js +90 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tzl.js +87 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tzm-latn.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/tzm.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/uk.js +146 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/uz.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/vi.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/zh-cn.js +127 -0
- data/vendor/assets/components/locomotive_sources/moment/locale/zh-tw.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/min/locales.js +7548 -0
- data/vendor/assets/components/locomotive_sources/moment/min/locales.min.js +72 -0
- data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.js +11144 -0
- data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.min.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/min/moment.min.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/min/tests.js +46196 -0
- data/vendor/assets/components/locomotive_sources/moment/moment.js +3606 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/check-overflow.js +34 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/date-from-array.js +21 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-anything.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-array.js +136 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-object.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-array.js +50 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-format.js +104 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string.js +120 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/local.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js +22 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/utc.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/create/valid.js +37 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/abs.js +18 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/add-subtract.js +21 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/as.js +55 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/bubble.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/constructor.js +41 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/create.js +117 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/duration.js +12 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/get.js +25 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/humanize.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/iso-string.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/prototype.js +48 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/format/format.js +92 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/calendar.js +15 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/constructor.js +2 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/en.js +15 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/formats.js +23 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/invalid.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/lists.js +48 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locale.js +35 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locales.js +118 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/ordinal.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/pre-post-format.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/prototype.js +76 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/relative.js +29 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/set.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/add-subtract.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/calendar.js +21 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/clone.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/compare.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/constructor.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/creation-data.js +9 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/diff.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/format.js +28 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/from.js +17 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/get-set.js +43 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/locale.js +34 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/min-max.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/moment.js +28 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/now.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/prototype.js +149 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/start-end-of.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to-type.js +34 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to.js +17 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/valid.js +15 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/regex.js +54 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/token.js +32 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/aliases.js +29 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/constants.js +9 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-month.js +32 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-week.js +162 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-year.js +32 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/hour.js +129 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/millisecond.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/minute.js +24 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/month.js +209 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/offset.js +219 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/quarter.js +27 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/second.js +24 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timestamp.js +20 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timezone.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/units.js +20 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-calendar-utils.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-year.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/units/year.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-ceil.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-floor.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/compare-arrays.js +16 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/defaults.js +10 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/deprecate.js +33 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/extend.js +19 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/has-own-prop.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/hooks.js +13 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-array.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-date.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-function.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-undefined.js +3 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/map.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/to-int.js +12 -0
- data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/zero-fill.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/af.js +63 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-ma.js +50 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-sa.js +94 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-tn.js +48 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ar.js +127 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/az.js +95 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/be.js +125 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bg.js +81 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bn.js +104 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bo.js +101 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/br.js +98 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/bs.js +132 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ca.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/cs.js +162 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/cv.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/cy.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/da.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/de-at.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/de.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/dv.js +89 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/el.js +86 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-au.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ca.js +54 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-gb.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ie.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/en-nz.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/eo.js +64 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/es.js +70 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/et.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/eu.js +55 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fa.js +96 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fi.js +98 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fo.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ca.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ch.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fr.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/fy.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/gd.js +67 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/gl.js +66 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/he.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hi.js +114 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hr.js +134 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hu.js +100 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/hy-am.js +86 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/id.js +74 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/is.js +118 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/it.js +61 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ja.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/jv.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ka.js +80 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/kk.js +77 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/km.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ko.js +59 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lb.js +125 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lo.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lt.js +106 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/lv.js +87 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/me.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/mk.js +81 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ml.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/mr.js +149 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ms-my.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ms.js +73 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/my.js +84 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/nb.js +52 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ne.js +112 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/nl.js +62 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/nn.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/pl.js +95 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/pt-br.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/pt.js +55 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ro.js +65 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ru.js +156 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/se.js +51 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/si.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sk.js +141 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sl.js +150 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sq.js +60 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sr-cyrl.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sr.js +99 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sv.js +58 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/sw.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/ta.js +120 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/te.js +78 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/th.js +56 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tl-ph.js +53 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tlh.js +109 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tr.js +81 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tzl.js +78 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm-latn.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/uk.js +137 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/uz.js +49 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/vi.js +57 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-cn.js +118 -0
- data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-tw.js +91 -0
- data/vendor/assets/components/locomotive_sources/moment/src/moment.js +71 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/amd-named.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/amd.js +7 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/default.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/globals.js +5 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/locale-header.js +6 -0
- data/vendor/assets/components/locomotive_sources/moment/templates/test-header.js +6 -0
- data/vendor/assets/javascripts/locomotive/vendor.js +1 -2
- data/vendor/assets/stylesheets/locomotive/wysihtml5_editor.css +1 -1
- metadata +458 -100
- data/app/assets/stylesheets/locomotive/account/_files.scss +0 -125
- data/app/assets/stylesheets/locomotive/base/_all.scss +0 -6
- data/app/assets/stylesheets/locomotive/base/_fonts.scss +0 -27
- data/app/assets/stylesheets/locomotive/base/_form.scss +0 -18
- data/app/assets/stylesheets/locomotive/base/_iframe.scss +0 -4
- data/app/assets/stylesheets/locomotive/base/_typography.scss +0 -6
- data/app/assets/stylesheets/locomotive/base/form/_api_key.scss +0 -24
- data/app/assets/stylesheets/locomotive/base/form/_date.scss +0 -11
- data/app/assets/stylesheets/locomotive/components/_drawer.scss +0 -24
- data/app/assets/stylesheets/locomotive/components/_header.scss +0 -3
- data/app/assets/stylesheets/locomotive/components/_live_editing.scss +0 -95
- data/app/assets/stylesheets/locomotive/components/_misc.scss +0 -3
- data/app/assets/stylesheets/locomotive/components/_sidebar.scss +0 -5
- data/app/assets/stylesheets/locomotive/components/_sites.scss +0 -130
- data/app/assets/stylesheets/locomotive/components/_transitions.scss +0 -149
- data/app/assets/stylesheets/locomotive/components/header/_account.scss +0 -63
- data/app/assets/stylesheets/locomotive/components/header/_base.scss +0 -91
- data/app/assets/stylesheets/locomotive/components/header/_responsive.scss +0 -34
- data/app/assets/stylesheets/locomotive/components/misc/_modal.scss +0 -13
- data/app/assets/stylesheets/locomotive/components/misc/_notify.scss +0 -25
- data/app/assets/stylesheets/locomotive/components/sidebar/_base.scss +0 -58
- data/app/assets/stylesheets/locomotive/components/sidebar/_content_types.scss +0 -30
- data/app/assets/stylesheets/locomotive/components/sidebar/_link.scss +0 -36
- data/app/assets/stylesheets/locomotive/components/sidebar/_my_account.scss +0 -21
- data/app/assets/stylesheets/locomotive/components/sidebar/_pages_tree.scss +0 -108
- data/app/assets/stylesheets/locomotive/globals/_mixins.scss +0 -34
- data/app/assets/stylesheets/locomotive/layouts/_live_editing.scss +0 -33
- data/app/assets/stylesheets/locomotive/layouts/_main.scss +0 -62
- data/app/assets/stylesheets/locomotive/layouts/_not_logged_in.scss +0 -33
- data/app/assets/stylesheets/locomotive/layouts/_responsive.scss +0 -12
- data/app/views/locomotive/shared/_header.html.slim +0 -30
- data/app/views/locomotive/shared/_sidebar_without_site.html.slim +0 -5
- data/app/views/locomotive/shared/header/_account.html.slim +0 -4
- data/app/views/locomotive/shared/header/_account_menu.html.slim +0 -5
- data/app/views/locomotive/shared/header/_brand.html.slim +0 -3
- data/app/views/locomotive/shared/header/_site.html.slim +0 -8
- data/app/views/locomotive/shared/sidebar/_my_account.html.slim +0 -8
- data/vendor/assets/javascripts/locomotive/bootstrap-datetimepicker.js +0 -1395
- data/vendor/assets/javascripts/locomotive/moment.js +0 -2808
- data/vendor/assets/stylesheets/locomotive/bootstrap-datetimepicker.css +0 -235
@@ -0,0 +1,118 @@
|
|
1
|
+
import isArray from '../utils/is-array';
|
2
|
+
import isUndefined from '../utils/is-undefined';
|
3
|
+
import compareArrays from '../utils/compare-arrays';
|
4
|
+
import { Locale } from './constructor';
|
5
|
+
|
6
|
+
// internal storage for locale config files
|
7
|
+
var locales = {};
|
8
|
+
var globalLocale;
|
9
|
+
|
10
|
+
function normalizeLocale(key) {
|
11
|
+
return key ? key.toLowerCase().replace('_', '-') : key;
|
12
|
+
}
|
13
|
+
|
14
|
+
// pick the locale from the array
|
15
|
+
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
16
|
+
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
17
|
+
function chooseLocale(names) {
|
18
|
+
var i = 0, j, next, locale, split;
|
19
|
+
|
20
|
+
while (i < names.length) {
|
21
|
+
split = normalizeLocale(names[i]).split('-');
|
22
|
+
j = split.length;
|
23
|
+
next = normalizeLocale(names[i + 1]);
|
24
|
+
next = next ? next.split('-') : null;
|
25
|
+
while (j > 0) {
|
26
|
+
locale = loadLocale(split.slice(0, j).join('-'));
|
27
|
+
if (locale) {
|
28
|
+
return locale;
|
29
|
+
}
|
30
|
+
if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
|
31
|
+
//the next array item is better than a shallower substring of this one
|
32
|
+
break;
|
33
|
+
}
|
34
|
+
j--;
|
35
|
+
}
|
36
|
+
i++;
|
37
|
+
}
|
38
|
+
return null;
|
39
|
+
}
|
40
|
+
|
41
|
+
function loadLocale(name) {
|
42
|
+
var oldLocale = null;
|
43
|
+
// TODO: Find a better way to register and load all the locales in Node
|
44
|
+
if (!locales[name] && (typeof module !== 'undefined') &&
|
45
|
+
module && module.exports) {
|
46
|
+
try {
|
47
|
+
oldLocale = globalLocale._abbr;
|
48
|
+
require('./locale/' + name);
|
49
|
+
// because defineLocale currently also sets the global locale, we
|
50
|
+
// want to undo that for lazy loaded locales
|
51
|
+
getSetGlobalLocale(oldLocale);
|
52
|
+
} catch (e) { }
|
53
|
+
}
|
54
|
+
return locales[name];
|
55
|
+
}
|
56
|
+
|
57
|
+
// This function will load locale and then set the global locale. If
|
58
|
+
// no arguments are passed in, it will simply return the current global
|
59
|
+
// locale key.
|
60
|
+
export function getSetGlobalLocale (key, values) {
|
61
|
+
var data;
|
62
|
+
if (key) {
|
63
|
+
if (isUndefined(values)) {
|
64
|
+
data = getLocale(key);
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
data = defineLocale(key, values);
|
68
|
+
}
|
69
|
+
|
70
|
+
if (data) {
|
71
|
+
// moment.duration._locale = moment._locale = data;
|
72
|
+
globalLocale = data;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
return globalLocale._abbr;
|
77
|
+
}
|
78
|
+
|
79
|
+
export function defineLocale (name, values) {
|
80
|
+
if (values !== null) {
|
81
|
+
values.abbr = name;
|
82
|
+
locales[name] = locales[name] || new Locale();
|
83
|
+
locales[name].set(values);
|
84
|
+
|
85
|
+
// backwards compat for now: also set the locale
|
86
|
+
getSetGlobalLocale(name);
|
87
|
+
|
88
|
+
return locales[name];
|
89
|
+
} else {
|
90
|
+
// useful for testing
|
91
|
+
delete locales[name];
|
92
|
+
return null;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// returns locale data
|
97
|
+
export function getLocale (key) {
|
98
|
+
var locale;
|
99
|
+
|
100
|
+
if (key && key._locale && key._locale._abbr) {
|
101
|
+
key = key._locale._abbr;
|
102
|
+
}
|
103
|
+
|
104
|
+
if (!key) {
|
105
|
+
return globalLocale;
|
106
|
+
}
|
107
|
+
|
108
|
+
if (!isArray(key)) {
|
109
|
+
//short-circuit everything else
|
110
|
+
locale = loadLocale(key);
|
111
|
+
if (locale) {
|
112
|
+
return locale;
|
113
|
+
}
|
114
|
+
key = [key];
|
115
|
+
}
|
116
|
+
|
117
|
+
return chooseLocale(key);
|
118
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { Locale } from './constructor';
|
2
|
+
|
3
|
+
var proto = Locale.prototype;
|
4
|
+
|
5
|
+
import { defaultCalendar, calendar } from './calendar';
|
6
|
+
import { defaultLongDateFormat, longDateFormat } from './formats';
|
7
|
+
import { defaultInvalidDate, invalidDate } from './invalid';
|
8
|
+
import { defaultOrdinal, ordinal, defaultOrdinalParse } from './ordinal';
|
9
|
+
import { preParsePostFormat } from './pre-post-format';
|
10
|
+
import { defaultRelativeTime, relativeTime, pastFuture } from './relative';
|
11
|
+
import { set } from './set';
|
12
|
+
|
13
|
+
proto._calendar = defaultCalendar;
|
14
|
+
proto.calendar = calendar;
|
15
|
+
proto._longDateFormat = defaultLongDateFormat;
|
16
|
+
proto.longDateFormat = longDateFormat;
|
17
|
+
proto._invalidDate = defaultInvalidDate;
|
18
|
+
proto.invalidDate = invalidDate;
|
19
|
+
proto._ordinal = defaultOrdinal;
|
20
|
+
proto.ordinal = ordinal;
|
21
|
+
proto._ordinalParse = defaultOrdinalParse;
|
22
|
+
proto.preparse = preParsePostFormat;
|
23
|
+
proto.postformat = preParsePostFormat;
|
24
|
+
proto._relativeTime = defaultRelativeTime;
|
25
|
+
proto.relativeTime = relativeTime;
|
26
|
+
proto.pastFuture = pastFuture;
|
27
|
+
proto.set = set;
|
28
|
+
|
29
|
+
// Month
|
30
|
+
import {
|
31
|
+
localeMonthsParse,
|
32
|
+
defaultLocaleMonths, localeMonths,
|
33
|
+
defaultLocaleMonthsShort, localeMonthsShort,
|
34
|
+
defaultMonthsRegex, monthsRegex,
|
35
|
+
defaultMonthsShortRegex, monthsShortRegex
|
36
|
+
} from '../units/month';
|
37
|
+
|
38
|
+
proto.months = localeMonths;
|
39
|
+
proto._months = defaultLocaleMonths;
|
40
|
+
proto.monthsShort = localeMonthsShort;
|
41
|
+
proto._monthsShort = defaultLocaleMonthsShort;
|
42
|
+
proto.monthsParse = localeMonthsParse;
|
43
|
+
proto._monthsRegex = defaultMonthsRegex;
|
44
|
+
proto.monthsRegex = monthsRegex;
|
45
|
+
proto._monthsShortRegex = defaultMonthsShortRegex;
|
46
|
+
proto.monthsShortRegex = monthsShortRegex;
|
47
|
+
|
48
|
+
// Week
|
49
|
+
import { localeWeek, defaultLocaleWeek, localeFirstDayOfYear, localeFirstDayOfWeek } from '../units/week';
|
50
|
+
proto.week = localeWeek;
|
51
|
+
proto._week = defaultLocaleWeek;
|
52
|
+
proto.firstDayOfYear = localeFirstDayOfYear;
|
53
|
+
proto.firstDayOfWeek = localeFirstDayOfWeek;
|
54
|
+
|
55
|
+
// Day of Week
|
56
|
+
import {
|
57
|
+
localeWeekdaysParse,
|
58
|
+
defaultLocaleWeekdays, localeWeekdays,
|
59
|
+
defaultLocaleWeekdaysMin, localeWeekdaysMin,
|
60
|
+
defaultLocaleWeekdaysShort, localeWeekdaysShort
|
61
|
+
} from '../units/day-of-week';
|
62
|
+
|
63
|
+
proto.weekdays = localeWeekdays;
|
64
|
+
proto._weekdays = defaultLocaleWeekdays;
|
65
|
+
proto.weekdaysMin = localeWeekdaysMin;
|
66
|
+
proto._weekdaysMin = defaultLocaleWeekdaysMin;
|
67
|
+
proto.weekdaysShort = localeWeekdaysShort;
|
68
|
+
proto._weekdaysShort = defaultLocaleWeekdaysShort;
|
69
|
+
proto.weekdaysParse = localeWeekdaysParse;
|
70
|
+
|
71
|
+
// Hours
|
72
|
+
import { localeIsPM, defaultLocaleMeridiemParse, localeMeridiem } from '../units/hour';
|
73
|
+
|
74
|
+
proto.isPM = localeIsPM;
|
75
|
+
proto._meridiemParse = defaultLocaleMeridiemParse;
|
76
|
+
proto.meridiem = localeMeridiem;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export var defaultRelativeTime = {
|
2
|
+
future : 'in %s',
|
3
|
+
past : '%s ago',
|
4
|
+
s : 'a few seconds',
|
5
|
+
m : 'a minute',
|
6
|
+
mm : '%d minutes',
|
7
|
+
h : 'an hour',
|
8
|
+
hh : '%d hours',
|
9
|
+
d : 'a day',
|
10
|
+
dd : '%d days',
|
11
|
+
M : 'a month',
|
12
|
+
MM : '%d months',
|
13
|
+
y : 'a year',
|
14
|
+
yy : '%d years'
|
15
|
+
};
|
16
|
+
|
17
|
+
import isFunction from '../utils/is-function';
|
18
|
+
|
19
|
+
export function relativeTime (number, withoutSuffix, string, isFuture) {
|
20
|
+
var output = this._relativeTime[string];
|
21
|
+
return (isFunction(output)) ?
|
22
|
+
output(number, withoutSuffix, string, isFuture) :
|
23
|
+
output.replace(/%d/i, number);
|
24
|
+
}
|
25
|
+
|
26
|
+
export function pastFuture (diff, output) {
|
27
|
+
var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
|
28
|
+
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
|
29
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import isFunction from '../utils/is-function';
|
2
|
+
|
3
|
+
export function set (config) {
|
4
|
+
var prop, i;
|
5
|
+
for (i in config) {
|
6
|
+
prop = config[i];
|
7
|
+
if (isFunction(prop)) {
|
8
|
+
this[i] = prop;
|
9
|
+
} else {
|
10
|
+
this['_' + i] = prop;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
// Lenient ordinal parsing accepts just a number in addition to
|
14
|
+
// number + (possibly) stuff coming from _ordinalParseLenient.
|
15
|
+
this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\d{1,2}/).source);
|
16
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { get, set } from './get-set';
|
2
|
+
import { setMonth } from '../units/month';
|
3
|
+
import { createDuration } from '../duration/create';
|
4
|
+
import { deprecateSimple } from '../utils/deprecate';
|
5
|
+
import { hooks } from '../utils/hooks';
|
6
|
+
|
7
|
+
// TODO: remove 'name' arg after deprecation is removed
|
8
|
+
function createAdder(direction, name) {
|
9
|
+
return function (val, period) {
|
10
|
+
var dur, tmp;
|
11
|
+
//invert the arguments, but complain about it
|
12
|
+
if (period !== null && !isNaN(+period)) {
|
13
|
+
deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
|
14
|
+
tmp = val; val = period; period = tmp;
|
15
|
+
}
|
16
|
+
|
17
|
+
val = typeof val === 'string' ? +val : val;
|
18
|
+
dur = createDuration(val, period);
|
19
|
+
addSubtract(this, dur, direction);
|
20
|
+
return this;
|
21
|
+
};
|
22
|
+
}
|
23
|
+
|
24
|
+
export function addSubtract (mom, duration, isAdding, updateOffset) {
|
25
|
+
var milliseconds = duration._milliseconds,
|
26
|
+
days = duration._days,
|
27
|
+
months = duration._months;
|
28
|
+
|
29
|
+
if (!mom.isValid()) {
|
30
|
+
// No op
|
31
|
+
return;
|
32
|
+
}
|
33
|
+
|
34
|
+
updateOffset = updateOffset == null ? true : updateOffset;
|
35
|
+
|
36
|
+
if (milliseconds) {
|
37
|
+
mom._d.setTime(+mom._d + milliseconds * isAdding);
|
38
|
+
}
|
39
|
+
if (days) {
|
40
|
+
set(mom, 'Date', get(mom, 'Date') + days * isAdding);
|
41
|
+
}
|
42
|
+
if (months) {
|
43
|
+
setMonth(mom, get(mom, 'Month') + months * isAdding);
|
44
|
+
}
|
45
|
+
if (updateOffset) {
|
46
|
+
hooks.updateOffset(mom, days || months);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
export var add = createAdder(1, 'add');
|
51
|
+
export var subtract = createAdder(-1, 'subtract');
|
52
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { createLocal } from '../create/local';
|
2
|
+
import { cloneWithOffset } from '../units/offset';
|
3
|
+
import isFunction from '../utils/is-function';
|
4
|
+
|
5
|
+
export function calendar (time, formats) {
|
6
|
+
// We want to compare the start of today, vs this.
|
7
|
+
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
8
|
+
var now = time || createLocal(),
|
9
|
+
sod = cloneWithOffset(now, this).startOf('day'),
|
10
|
+
diff = this.diff(sod, 'days', true),
|
11
|
+
format = diff < -6 ? 'sameElse' :
|
12
|
+
diff < -1 ? 'lastWeek' :
|
13
|
+
diff < 0 ? 'lastDay' :
|
14
|
+
diff < 1 ? 'sameDay' :
|
15
|
+
diff < 2 ? 'nextDay' :
|
16
|
+
diff < 7 ? 'nextWeek' : 'sameElse';
|
17
|
+
|
18
|
+
var output = formats && (isFunction(formats[format]) ? formats[format]() : formats[format]);
|
19
|
+
|
20
|
+
return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
|
21
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { isMoment } from './constructor';
|
2
|
+
import { normalizeUnits } from '../units/aliases';
|
3
|
+
import { createLocal } from '../create/local';
|
4
|
+
import isUndefined from '../utils/is-undefined';
|
5
|
+
|
6
|
+
export function isAfter (input, units) {
|
7
|
+
var localInput = isMoment(input) ? input : createLocal(input);
|
8
|
+
if (!(this.isValid() && localInput.isValid())) {
|
9
|
+
return false;
|
10
|
+
}
|
11
|
+
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
12
|
+
if (units === 'millisecond') {
|
13
|
+
return +this > +localInput;
|
14
|
+
} else {
|
15
|
+
return +localInput < +this.clone().startOf(units);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
export function isBefore (input, units) {
|
20
|
+
var localInput = isMoment(input) ? input : createLocal(input);
|
21
|
+
if (!(this.isValid() && localInput.isValid())) {
|
22
|
+
return false;
|
23
|
+
}
|
24
|
+
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
25
|
+
if (units === 'millisecond') {
|
26
|
+
return +this < +localInput;
|
27
|
+
} else {
|
28
|
+
return +this.clone().endOf(units) < +localInput;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
export function isBetween (from, to, units) {
|
33
|
+
return this.isAfter(from, units) && this.isBefore(to, units);
|
34
|
+
}
|
35
|
+
|
36
|
+
export function isSame (input, units) {
|
37
|
+
var localInput = isMoment(input) ? input : createLocal(input),
|
38
|
+
inputMs;
|
39
|
+
if (!(this.isValid() && localInput.isValid())) {
|
40
|
+
return false;
|
41
|
+
}
|
42
|
+
units = normalizeUnits(units || 'millisecond');
|
43
|
+
if (units === 'millisecond') {
|
44
|
+
return +this === +localInput;
|
45
|
+
} else {
|
46
|
+
inputMs = +localInput;
|
47
|
+
return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
export function isSameOrAfter (input, units) {
|
52
|
+
return this.isSame(input, units) || this.isAfter(input,units);
|
53
|
+
}
|
54
|
+
|
55
|
+
export function isSameOrBefore (input, units) {
|
56
|
+
return this.isSame(input, units) || this.isBefore(input,units);
|
57
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { hooks } from '../utils/hooks';
|
2
|
+
import hasOwnProp from '../utils/has-own-prop';
|
3
|
+
import isUndefined from '../utils/is-undefined';
|
4
|
+
import getParsingFlags from '../create/parsing-flags';
|
5
|
+
|
6
|
+
// Plugins that add properties should also add the key here (null value),
|
7
|
+
// so we can properly clone ourselves.
|
8
|
+
var momentProperties = hooks.momentProperties = [];
|
9
|
+
|
10
|
+
export function copyConfig(to, from) {
|
11
|
+
var i, prop, val;
|
12
|
+
|
13
|
+
if (!isUndefined(from._isAMomentObject)) {
|
14
|
+
to._isAMomentObject = from._isAMomentObject;
|
15
|
+
}
|
16
|
+
if (!isUndefined(from._i)) {
|
17
|
+
to._i = from._i;
|
18
|
+
}
|
19
|
+
if (!isUndefined(from._f)) {
|
20
|
+
to._f = from._f;
|
21
|
+
}
|
22
|
+
if (!isUndefined(from._l)) {
|
23
|
+
to._l = from._l;
|
24
|
+
}
|
25
|
+
if (!isUndefined(from._strict)) {
|
26
|
+
to._strict = from._strict;
|
27
|
+
}
|
28
|
+
if (!isUndefined(from._tzm)) {
|
29
|
+
to._tzm = from._tzm;
|
30
|
+
}
|
31
|
+
if (!isUndefined(from._isUTC)) {
|
32
|
+
to._isUTC = from._isUTC;
|
33
|
+
}
|
34
|
+
if (!isUndefined(from._offset)) {
|
35
|
+
to._offset = from._offset;
|
36
|
+
}
|
37
|
+
if (!isUndefined(from._pf)) {
|
38
|
+
to._pf = getParsingFlags(from);
|
39
|
+
}
|
40
|
+
if (!isUndefined(from._locale)) {
|
41
|
+
to._locale = from._locale;
|
42
|
+
}
|
43
|
+
|
44
|
+
if (momentProperties.length > 0) {
|
45
|
+
for (i in momentProperties) {
|
46
|
+
prop = momentProperties[i];
|
47
|
+
val = from[prop];
|
48
|
+
if (!isUndefined(val)) {
|
49
|
+
to[prop] = val;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
return to;
|
55
|
+
}
|
56
|
+
|
57
|
+
var updateInProgress = false;
|
58
|
+
|
59
|
+
// Moment prototype object
|
60
|
+
export function Moment(config) {
|
61
|
+
copyConfig(this, config);
|
62
|
+
this._d = new Date(config._d != null ? config._d.getTime() : NaN);
|
63
|
+
// Prevent infinite loop in case updateOffset creates new moment
|
64
|
+
// objects.
|
65
|
+
if (updateInProgress === false) {
|
66
|
+
updateInProgress = true;
|
67
|
+
hooks.updateOffset(this);
|
68
|
+
updateInProgress = false;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
export function isMoment (obj) {
|
73
|
+
return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
|
74
|
+
}
|