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,219 @@
|
|
1
|
+
import zeroFill from '../utils/zero-fill';
|
2
|
+
import { createDuration } from '../duration/create';
|
3
|
+
import { addSubtract } from '../moment/add-subtract';
|
4
|
+
import { isMoment, copyConfig } from '../moment/constructor';
|
5
|
+
import { addFormatToken } from '../format/format';
|
6
|
+
import { addRegexToken, matchOffset, matchShortOffset } from '../parse/regex';
|
7
|
+
import { addParseToken } from '../parse/token';
|
8
|
+
import { createLocal } from '../create/local';
|
9
|
+
import { prepareConfig } from '../create/from-anything';
|
10
|
+
import { createUTC } from '../create/utc';
|
11
|
+
import isDate from '../utils/is-date';
|
12
|
+
import toInt from '../utils/to-int';
|
13
|
+
import isUndefined from '../utils/is-undefined';
|
14
|
+
import compareArrays from '../utils/compare-arrays';
|
15
|
+
import { hooks } from '../utils/hooks';
|
16
|
+
|
17
|
+
// FORMATTING
|
18
|
+
|
19
|
+
function offset (token, separator) {
|
20
|
+
addFormatToken(token, 0, 0, function () {
|
21
|
+
var offset = this.utcOffset();
|
22
|
+
var sign = '+';
|
23
|
+
if (offset < 0) {
|
24
|
+
offset = -offset;
|
25
|
+
sign = '-';
|
26
|
+
}
|
27
|
+
return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
|
31
|
+
offset('Z', ':');
|
32
|
+
offset('ZZ', '');
|
33
|
+
|
34
|
+
// PARSING
|
35
|
+
|
36
|
+
addRegexToken('Z', matchShortOffset);
|
37
|
+
addRegexToken('ZZ', matchShortOffset);
|
38
|
+
addParseToken(['Z', 'ZZ'], function (input, array, config) {
|
39
|
+
config._useUTC = true;
|
40
|
+
config._tzm = offsetFromString(matchShortOffset, input);
|
41
|
+
});
|
42
|
+
|
43
|
+
// HELPERS
|
44
|
+
|
45
|
+
// timezone chunker
|
46
|
+
// '+10:00' > ['10', '00']
|
47
|
+
// '-1530' > ['-15', '30']
|
48
|
+
var chunkOffset = /([\+\-]|\d\d)/gi;
|
49
|
+
|
50
|
+
function offsetFromString(matcher, string) {
|
51
|
+
var matches = ((string || '').match(matcher) || []);
|
52
|
+
var chunk = matches[matches.length - 1] || [];
|
53
|
+
var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
|
54
|
+
var minutes = +(parts[1] * 60) + toInt(parts[2]);
|
55
|
+
|
56
|
+
return parts[0] === '+' ? minutes : -minutes;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Return a moment from input, that is local/utc/zone equivalent to model.
|
60
|
+
export function cloneWithOffset(input, model) {
|
61
|
+
var res, diff;
|
62
|
+
if (model._isUTC) {
|
63
|
+
res = model.clone();
|
64
|
+
diff = (isMoment(input) || isDate(input) ? +input : +createLocal(input)) - (+res);
|
65
|
+
// Use low-level api, because this fn is low-level api.
|
66
|
+
res._d.setTime(+res._d + diff);
|
67
|
+
hooks.updateOffset(res, false);
|
68
|
+
return res;
|
69
|
+
} else {
|
70
|
+
return createLocal(input).local();
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
function getDateOffset (m) {
|
75
|
+
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
76
|
+
// https://github.com/moment/moment/pull/1871
|
77
|
+
return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
|
78
|
+
}
|
79
|
+
|
80
|
+
// HOOKS
|
81
|
+
|
82
|
+
// This function will be called whenever a moment is mutated.
|
83
|
+
// It is intended to keep the offset in sync with the timezone.
|
84
|
+
hooks.updateOffset = function () {};
|
85
|
+
|
86
|
+
// MOMENTS
|
87
|
+
|
88
|
+
// keepLocalTime = true means only change the timezone, without
|
89
|
+
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
|
90
|
+
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
|
91
|
+
// +0200, so we adjust the time as needed, to be valid.
|
92
|
+
//
|
93
|
+
// Keeping the time actually adds/subtracts (one hour)
|
94
|
+
// from the actual represented time. That is why we call updateOffset
|
95
|
+
// a second time. In case it wants us to change the offset again
|
96
|
+
// _changeInProgress == true case, then we have to adjust, because
|
97
|
+
// there is no such time in the given timezone.
|
98
|
+
export function getSetOffset (input, keepLocalTime) {
|
99
|
+
var offset = this._offset || 0,
|
100
|
+
localAdjust;
|
101
|
+
if (!this.isValid()) {
|
102
|
+
return input != null ? this : NaN;
|
103
|
+
}
|
104
|
+
if (input != null) {
|
105
|
+
if (typeof input === 'string') {
|
106
|
+
input = offsetFromString(matchShortOffset, input);
|
107
|
+
} else if (Math.abs(input) < 16) {
|
108
|
+
input = input * 60;
|
109
|
+
}
|
110
|
+
if (!this._isUTC && keepLocalTime) {
|
111
|
+
localAdjust = getDateOffset(this);
|
112
|
+
}
|
113
|
+
this._offset = input;
|
114
|
+
this._isUTC = true;
|
115
|
+
if (localAdjust != null) {
|
116
|
+
this.add(localAdjust, 'm');
|
117
|
+
}
|
118
|
+
if (offset !== input) {
|
119
|
+
if (!keepLocalTime || this._changeInProgress) {
|
120
|
+
addSubtract(this, createDuration(input - offset, 'm'), 1, false);
|
121
|
+
} else if (!this._changeInProgress) {
|
122
|
+
this._changeInProgress = true;
|
123
|
+
hooks.updateOffset(this, true);
|
124
|
+
this._changeInProgress = null;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
return this;
|
128
|
+
} else {
|
129
|
+
return this._isUTC ? offset : getDateOffset(this);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
export function getSetZone (input, keepLocalTime) {
|
134
|
+
if (input != null) {
|
135
|
+
if (typeof input !== 'string') {
|
136
|
+
input = -input;
|
137
|
+
}
|
138
|
+
|
139
|
+
this.utcOffset(input, keepLocalTime);
|
140
|
+
|
141
|
+
return this;
|
142
|
+
} else {
|
143
|
+
return -this.utcOffset();
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
export function setOffsetToUTC (keepLocalTime) {
|
148
|
+
return this.utcOffset(0, keepLocalTime);
|
149
|
+
}
|
150
|
+
|
151
|
+
export function setOffsetToLocal (keepLocalTime) {
|
152
|
+
if (this._isUTC) {
|
153
|
+
this.utcOffset(0, keepLocalTime);
|
154
|
+
this._isUTC = false;
|
155
|
+
|
156
|
+
if (keepLocalTime) {
|
157
|
+
this.subtract(getDateOffset(this), 'm');
|
158
|
+
}
|
159
|
+
}
|
160
|
+
return this;
|
161
|
+
}
|
162
|
+
|
163
|
+
export function setOffsetToParsedOffset () {
|
164
|
+
if (this._tzm) {
|
165
|
+
this.utcOffset(this._tzm);
|
166
|
+
} else if (typeof this._i === 'string') {
|
167
|
+
this.utcOffset(offsetFromString(matchOffset, this._i));
|
168
|
+
}
|
169
|
+
return this;
|
170
|
+
}
|
171
|
+
|
172
|
+
export function hasAlignedHourOffset (input) {
|
173
|
+
if (!this.isValid()) {
|
174
|
+
return false;
|
175
|
+
}
|
176
|
+
input = input ? createLocal(input).utcOffset() : 0;
|
177
|
+
|
178
|
+
return (this.utcOffset() - input) % 60 === 0;
|
179
|
+
}
|
180
|
+
|
181
|
+
export function isDaylightSavingTime () {
|
182
|
+
return (
|
183
|
+
this.utcOffset() > this.clone().month(0).utcOffset() ||
|
184
|
+
this.utcOffset() > this.clone().month(5).utcOffset()
|
185
|
+
);
|
186
|
+
}
|
187
|
+
|
188
|
+
export function isDaylightSavingTimeShifted () {
|
189
|
+
if (!isUndefined(this._isDSTShifted)) {
|
190
|
+
return this._isDSTShifted;
|
191
|
+
}
|
192
|
+
|
193
|
+
var c = {};
|
194
|
+
|
195
|
+
copyConfig(c, this);
|
196
|
+
c = prepareConfig(c);
|
197
|
+
|
198
|
+
if (c._a) {
|
199
|
+
var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
|
200
|
+
this._isDSTShifted = this.isValid() &&
|
201
|
+
compareArrays(c._a, other.toArray()) > 0;
|
202
|
+
} else {
|
203
|
+
this._isDSTShifted = false;
|
204
|
+
}
|
205
|
+
|
206
|
+
return this._isDSTShifted;
|
207
|
+
}
|
208
|
+
|
209
|
+
export function isLocal () {
|
210
|
+
return this.isValid() ? !this._isUTC : false;
|
211
|
+
}
|
212
|
+
|
213
|
+
export function isUtcOffset () {
|
214
|
+
return this.isValid() ? this._isUTC : false;
|
215
|
+
}
|
216
|
+
|
217
|
+
export function isUtc () {
|
218
|
+
return this.isValid() ? this._isUTC && this._offset === 0 : false;
|
219
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { addFormatToken } from '../format/format';
|
2
|
+
import { addUnitAlias } from './aliases';
|
3
|
+
import { addRegexToken, match1 } from '../parse/regex';
|
4
|
+
import { addParseToken } from '../parse/token';
|
5
|
+
import { MONTH } from './constants';
|
6
|
+
import toInt from '../utils/to-int';
|
7
|
+
|
8
|
+
// FORMATTING
|
9
|
+
|
10
|
+
addFormatToken('Q', 0, 'Qo', 'quarter');
|
11
|
+
|
12
|
+
// ALIASES
|
13
|
+
|
14
|
+
addUnitAlias('quarter', 'Q');
|
15
|
+
|
16
|
+
// PARSING
|
17
|
+
|
18
|
+
addRegexToken('Q', match1);
|
19
|
+
addParseToken('Q', function (input, array) {
|
20
|
+
array[MONTH] = (toInt(input) - 1) * 3;
|
21
|
+
});
|
22
|
+
|
23
|
+
// MOMENTS
|
24
|
+
|
25
|
+
export function getSetQuarter (input) {
|
26
|
+
return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
|
27
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { makeGetSet } from '../moment/get-set';
|
2
|
+
import { addFormatToken } from '../format/format';
|
3
|
+
import { addUnitAlias } from './aliases';
|
4
|
+
import { addRegexToken, match1to2, match2 } from '../parse/regex';
|
5
|
+
import { addParseToken } from '../parse/token';
|
6
|
+
import { SECOND } from './constants';
|
7
|
+
|
8
|
+
// FORMATTING
|
9
|
+
|
10
|
+
addFormatToken('s', ['ss', 2], 0, 'second');
|
11
|
+
|
12
|
+
// ALIASES
|
13
|
+
|
14
|
+
addUnitAlias('second', 's');
|
15
|
+
|
16
|
+
// PARSING
|
17
|
+
|
18
|
+
addRegexToken('s', match1to2);
|
19
|
+
addRegexToken('ss', match1to2, match2);
|
20
|
+
addParseToken(['s', 'ss'], SECOND);
|
21
|
+
|
22
|
+
// MOMENTS
|
23
|
+
|
24
|
+
export var getSetSecond = makeGetSet('Seconds', false);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { addFormatToken } from '../format/format';
|
2
|
+
import { addRegexToken, matchTimestamp, matchSigned } from '../parse/regex';
|
3
|
+
import { addParseToken } from '../parse/token';
|
4
|
+
import toInt from '../utils/to-int';
|
5
|
+
|
6
|
+
// FORMATTING
|
7
|
+
|
8
|
+
addFormatToken('X', 0, 0, 'unix');
|
9
|
+
addFormatToken('x', 0, 0, 'valueOf');
|
10
|
+
|
11
|
+
// PARSING
|
12
|
+
|
13
|
+
addRegexToken('x', matchSigned);
|
14
|
+
addRegexToken('X', matchTimestamp);
|
15
|
+
addParseToken('X', function (input, array, config) {
|
16
|
+
config._d = new Date(parseFloat(input, 10) * 1000);
|
17
|
+
});
|
18
|
+
addParseToken('x', function (input, array, config) {
|
19
|
+
config._d = new Date(toInt(input));
|
20
|
+
});
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { addFormatToken } from '../format/format';
|
2
|
+
|
3
|
+
// FORMATTING
|
4
|
+
|
5
|
+
addFormatToken('z', 0, 0, 'zoneAbbr');
|
6
|
+
addFormatToken('zz', 0, 0, 'zoneName');
|
7
|
+
|
8
|
+
// MOMENTS
|
9
|
+
|
10
|
+
export function getZoneAbbr () {
|
11
|
+
return this._isUTC ? 'UTC' : '';
|
12
|
+
}
|
13
|
+
|
14
|
+
export function getZoneName () {
|
15
|
+
return this._isUTC ? 'Coordinated Universal Time' : '';
|
16
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Side effect imports
|
2
|
+
import './day-of-month';
|
3
|
+
import './day-of-week';
|
4
|
+
import './day-of-year';
|
5
|
+
import './hour';
|
6
|
+
import './millisecond';
|
7
|
+
import './minute';
|
8
|
+
import './month';
|
9
|
+
import './offset';
|
10
|
+
import './quarter';
|
11
|
+
import './second';
|
12
|
+
import './timestamp';
|
13
|
+
import './timezone';
|
14
|
+
import './week-year';
|
15
|
+
import './week';
|
16
|
+
import './year';
|
17
|
+
|
18
|
+
import { normalizeUnits } from './aliases';
|
19
|
+
|
20
|
+
export { normalizeUnits };
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { daysInYear } from './year';
|
2
|
+
import { createLocal } from '../create/local';
|
3
|
+
import { createUTCDate } from '../create/date-from-array';
|
4
|
+
|
5
|
+
// start-of-first-week - start-of-year
|
6
|
+
function firstWeekOffset(year, dow, doy) {
|
7
|
+
var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
8
|
+
fwd = 7 + dow - doy,
|
9
|
+
// first-week day local weekday -- which local weekday is fwd
|
10
|
+
fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
11
|
+
|
12
|
+
return -fwdlw + fwd - 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
//http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
16
|
+
export function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
17
|
+
var localWeekday = (7 + weekday - dow) % 7,
|
18
|
+
weekOffset = firstWeekOffset(year, dow, doy),
|
19
|
+
dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
|
20
|
+
resYear, resDayOfYear;
|
21
|
+
|
22
|
+
if (dayOfYear <= 0) {
|
23
|
+
resYear = year - 1;
|
24
|
+
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
25
|
+
} else if (dayOfYear > daysInYear(year)) {
|
26
|
+
resYear = year + 1;
|
27
|
+
resDayOfYear = dayOfYear - daysInYear(year);
|
28
|
+
} else {
|
29
|
+
resYear = year;
|
30
|
+
resDayOfYear = dayOfYear;
|
31
|
+
}
|
32
|
+
|
33
|
+
return {
|
34
|
+
year: resYear,
|
35
|
+
dayOfYear: resDayOfYear
|
36
|
+
};
|
37
|
+
}
|
38
|
+
|
39
|
+
export function weekOfYear(mom, dow, doy) {
|
40
|
+
var weekOffset = firstWeekOffset(mom.year(), dow, doy),
|
41
|
+
week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
|
42
|
+
resWeek, resYear;
|
43
|
+
|
44
|
+
if (week < 1) {
|
45
|
+
resYear = mom.year() - 1;
|
46
|
+
resWeek = week + weeksInYear(resYear, dow, doy);
|
47
|
+
} else if (week > weeksInYear(mom.year(), dow, doy)) {
|
48
|
+
resWeek = week - weeksInYear(mom.year(), dow, doy);
|
49
|
+
resYear = mom.year() + 1;
|
50
|
+
} else {
|
51
|
+
resYear = mom.year();
|
52
|
+
resWeek = week;
|
53
|
+
}
|
54
|
+
|
55
|
+
return {
|
56
|
+
week: resWeek,
|
57
|
+
year: resYear
|
58
|
+
};
|
59
|
+
}
|
60
|
+
|
61
|
+
export function weeksInYear(year, dow, doy) {
|
62
|
+
var weekOffset = firstWeekOffset(year, dow, doy),
|
63
|
+
weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
64
|
+
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
65
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { addFormatToken } from '../format/format';
|
2
|
+
import { addUnitAlias } from './aliases';
|
3
|
+
import { addRegexToken, match1to2, match1to4, match1to6, match2, match4, match6, matchSigned } from '../parse/regex';
|
4
|
+
import { addWeekParseToken } from '../parse/token';
|
5
|
+
import { weekOfYear, weeksInYear, dayOfYearFromWeeks } from './week-calendar-utils';
|
6
|
+
import toInt from '../utils/to-int';
|
7
|
+
import { hooks } from '../utils/hooks';
|
8
|
+
import { createLocal } from '../create/local';
|
9
|
+
import { createUTCDate } from '../create/date-from-array';
|
10
|
+
|
11
|
+
// FORMATTING
|
12
|
+
|
13
|
+
addFormatToken(0, ['gg', 2], 0, function () {
|
14
|
+
return this.weekYear() % 100;
|
15
|
+
});
|
16
|
+
|
17
|
+
addFormatToken(0, ['GG', 2], 0, function () {
|
18
|
+
return this.isoWeekYear() % 100;
|
19
|
+
});
|
20
|
+
|
21
|
+
function addWeekYearFormatToken (token, getter) {
|
22
|
+
addFormatToken(0, [token, token.length], 0, getter);
|
23
|
+
}
|
24
|
+
|
25
|
+
addWeekYearFormatToken('gggg', 'weekYear');
|
26
|
+
addWeekYearFormatToken('ggggg', 'weekYear');
|
27
|
+
addWeekYearFormatToken('GGGG', 'isoWeekYear');
|
28
|
+
addWeekYearFormatToken('GGGGG', 'isoWeekYear');
|
29
|
+
|
30
|
+
// ALIASES
|
31
|
+
|
32
|
+
addUnitAlias('weekYear', 'gg');
|
33
|
+
addUnitAlias('isoWeekYear', 'GG');
|
34
|
+
|
35
|
+
// PARSING
|
36
|
+
|
37
|
+
addRegexToken('G', matchSigned);
|
38
|
+
addRegexToken('g', matchSigned);
|
39
|
+
addRegexToken('GG', match1to2, match2);
|
40
|
+
addRegexToken('gg', match1to2, match2);
|
41
|
+
addRegexToken('GGGG', match1to4, match4);
|
42
|
+
addRegexToken('gggg', match1to4, match4);
|
43
|
+
addRegexToken('GGGGG', match1to6, match6);
|
44
|
+
addRegexToken('ggggg', match1to6, match6);
|
45
|
+
|
46
|
+
addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
|
47
|
+
week[token.substr(0, 2)] = toInt(input);
|
48
|
+
});
|
49
|
+
|
50
|
+
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
51
|
+
week[token] = hooks.parseTwoDigitYear(input);
|
52
|
+
});
|
53
|
+
|
54
|
+
// MOMENTS
|
55
|
+
|
56
|
+
export function getSetWeekYear (input) {
|
57
|
+
return getSetWeekYearHelper.call(this,
|
58
|
+
input,
|
59
|
+
this.week(),
|
60
|
+
this.weekday(),
|
61
|
+
this.localeData()._week.dow,
|
62
|
+
this.localeData()._week.doy);
|
63
|
+
}
|
64
|
+
|
65
|
+
export function getSetISOWeekYear (input) {
|
66
|
+
return getSetWeekYearHelper.call(this,
|
67
|
+
input, this.isoWeek(), this.isoWeekday(), 1, 4);
|
68
|
+
}
|
69
|
+
|
70
|
+
export function getISOWeeksInYear () {
|
71
|
+
return weeksInYear(this.year(), 1, 4);
|
72
|
+
}
|
73
|
+
|
74
|
+
export function getWeeksInYear () {
|
75
|
+
var weekInfo = this.localeData()._week;
|
76
|
+
return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
|
77
|
+
}
|
78
|
+
|
79
|
+
function getSetWeekYearHelper(input, week, weekday, dow, doy) {
|
80
|
+
var weeksTarget;
|
81
|
+
if (input == null) {
|
82
|
+
return weekOfYear(this, dow, doy).year;
|
83
|
+
} else {
|
84
|
+
weeksTarget = weeksInYear(input, dow, doy);
|
85
|
+
if (week > weeksTarget) {
|
86
|
+
week = weeksTarget;
|
87
|
+
}
|
88
|
+
return setWeekAll.call(this, input, week, weekday, dow, doy);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
function setWeekAll(weekYear, week, weekday, dow, doy) {
|
93
|
+
var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
|
94
|
+
date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
|
95
|
+
|
96
|
+
// console.log("got", weekYear, week, weekday, "set", date.toISOString());
|
97
|
+
this.year(date.getUTCFullYear());
|
98
|
+
this.month(date.getUTCMonth());
|
99
|
+
this.date(date.getUTCDate());
|
100
|
+
return this;
|
101
|
+
}
|