locomotivecms_wagon 1.4.0 → 1.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile +6 -2
- data/README.md +7 -1
- data/bin/wagon +3 -0
- data/generators/blank/Gemfile.tt +1 -3
- data/generators/blank/config/site.yml.tt +3 -3
- data/generators/bootstrap/config/site.yml.tt +3 -3
- data/generators/bootstrap3/Gemfile.tt +1 -3
- data/generators/bootstrap3/app/views/pages/index.liquid +21 -63
- data/generators/bootstrap3/app/views/pages/index.liquid.haml +15 -57
- data/generators/bootstrap3/config/deploy.yml +15 -15
- data/generators/bootstrap3/config/site.yml.tt +2 -2
- data/generators/bootstrap3/icon.png +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +201 -200
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
- data/generators/{bootstrap2/app/content_types → bootstrap3/public/images}/.empty_directory +0 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/affix.js +137 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/alert.js +88 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/button.js +107 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/carousel.js +205 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/collapse.js +170 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/dropdown.js +147 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/modal.js +243 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/popover.js +110 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/scrollspy.js +153 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/tab.js +125 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/tooltip.js +399 -0
- data/generators/bootstrap3/public/javascripts/bootstrap/transition.js +48 -0
- data/generators/bootstrap3/public/javascripts/bootstrap.min.js +12 -6
- data/generators/bootstrap3/public/stylesheets/application.css +1 -0
- data/generators/bootstrap3/public/stylesheets/application.css.scss +8 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_alerts.scss +67 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_badges.scss +55 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_button-groups.scss +226 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_buttons.scss +159 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_carousel.scss +232 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_close.scss +35 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_code.scss +63 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_component-animations.scss +29 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_dropdowns.scss +213 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_forms.scss +436 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_glyphicons.scss +233 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_grid.scss +84 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_input-groups.scss +162 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_jumbotron.scss +44 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_labels.scss +64 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_list-group.scss +110 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_media.scss +56 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_mixins.scss +947 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_modals.scss +139 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_navbar.scss +620 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_navs.scss +242 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_normalize.scss +423 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_pager.scss +55 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_pagination.scss +88 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_panels.scss +241 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_popovers.scss +133 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_print.scss +101 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_progress-bars.scss +80 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_responsive-utilities.scss +74 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_scaffolding.scss +134 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_tables.scss +233 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_theme.scss +247 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_tooltip.scss +95 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_type.scss +284 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_utilities.scss +56 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_variables.scss +833 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/_wells.scss +29 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap/bootstrap.css.scss +49 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap.css +2035 -3056
- data/generators/bootstrap3/public/stylesheets/bootstrap.css.scss +49 -0
- data/generators/cloned/Gemfile.tt +1 -3
- data/generators/content_type/app/content_types/%slug%.yml.tt +57 -0
- data/generators/content_type/data/{%name%.yml.tt → %slug%.yml.tt} +2 -2
- data/generators/{bootstrap2 → foundation5}/Gemfile.tt +1 -3
- data/generators/{bootstrap2/data → foundation5/app/content_types}/.empty_directory +0 -0
- data/generators/{foundation → foundation5}/app/views/pages/404.liquid +1 -4
- data/generators/{foundation → foundation5}/app/views/pages/404.liquid.haml +1 -1
- data/generators/foundation5/app/views/pages/index.liquid +196 -0
- data/generators/foundation5/app/views/pages/index.liquid.haml +157 -0
- data/generators/foundation5/config/deploy.yml +15 -0
- data/generators/{bootstrap2 → foundation5}/config/site.yml.tt +3 -4
- data/generators/{bootstrap2 → foundation5}/config/translations.yml +0 -0
- data/generators/{bootstrap2 → foundation5}/config.ru +0 -0
- data/generators/{bootstrap2/public/samples → foundation5/data}/.empty_directory +0 -0
- data/generators/foundation5/favicon.ico +0 -0
- data/generators/foundation5/icon.png +0 -0
- data/generators/{foundation/app/content_types → foundation5/public/fonts}/.empty_directory +0 -0
- data/generators/{foundation/data → foundation5/public/images}/.empty_directory +0 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +299 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +59 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +43 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +534 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +311 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +74 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +331 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +843 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.js +611 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +178 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +108 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +610 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +437 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +199 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +167 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +298 -0
- data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +425 -0
- data/generators/foundation5/public/javascripts/foundation.js +4161 -0
- data/generators/foundation5/public/javascripts/foundation.min.js +10 -0
- data/generators/{foundation → foundation5}/public/javascripts/vendor/custom.modernizr.js +0 -0
- data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +1 -0
- data/generators/foundation5/public/javascripts/vendor/fastclick.js +9 -0
- data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +11 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +645 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +1 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +8 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +8 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.js +26 -0
- data/generators/foundation5/public/javascripts/vendor/jquery.min.js +27 -0
- data/generators/foundation5/public/javascripts/vendor/modernizr.js +8 -0
- data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +1 -0
- data/generators/foundation5/public/javascripts/vendor/placeholder.js +2 -0
- data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +1 -0
- data/generators/{foundation/public/fonts → foundation5/public/samples}/.empty_directory +0 -0
- data/generators/foundation5/public/stylesheets/application.css +2 -0
- data/generators/foundation5/public/stylesheets/application.css.scss +3 -0
- data/generators/foundation5/public/stylesheets/foundation/_functions.scss +101 -0
- data/generators/foundation5/public/stylesheets/foundation/_settings.scss +1296 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +53 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +126 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +132 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +127 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +108 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +222 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +247 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +129 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +248 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +498 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +434 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +260 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +57 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +220 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +61 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +104 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +34 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +356 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +423 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +150 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +90 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +79 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +148 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss +0 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +216 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +115 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +191 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_switch.scss +294 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +129 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +109 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +68 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +140 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +659 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +513 -0
- data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +408 -0
- data/generators/foundation5/public/stylesheets/foundation.css +5398 -0
- data/generators/foundation5/public/stylesheets/foundation.css.scss +45 -0
- data/generators/foundation5/public/stylesheets/normalize.css +425 -0
- data/generators/foundation5/public/stylesheets/normalize.css.scss +425 -0
- data/generators/{foundation → line_case}/Gemfile.tt +1 -3
- data/generators/line_case/app/content_types/categories.yml +56 -0
- data/generators/line_case/app/content_types/emails.yml +35 -0
- data/generators/line_case/app/content_types/projects.yml +58 -0
- data/generators/{bootstrap2 → line_case}/app/views/pages/404.liquid.haml +3 -2
- data/generators/line_case/app/views/pages/email-registered.liquid.haml +13 -0
- data/generators/line_case/app/views/pages/index.liquid.haml +110 -0
- data/generators/line_case/app/views/pages/projects/content_type_template.liquid.haml +32 -0
- data/generators/line_case/app/views/snippets/newsletter_form.liquid.haml +14 -0
- data/generators/line_case/app/views/snippets/projects.liquid.haml +17 -0
- data/generators/line_case/app/views/snippets/social_links.liquid.haml +19 -0
- data/generators/line_case/config/deploy.yml +15 -0
- data/generators/{foundation → line_case}/config/site.yml.tt +3 -3
- data/generators/{foundation → line_case}/config/translations.yml +0 -0
- data/generators/{foundation → line_case}/config.ru +0 -0
- data/generators/line_case/data/categories.yml +8 -0
- data/generators/line_case/data/emails.yml +2 -0
- data/generators/line_case/data/projects.yml +39 -0
- data/generators/line_case/icon.png +0 -0
- data/generators/line_case/public/images/banner-header.png +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.abide.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.alerts.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.clearing.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.cookie.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.dropdown.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.forms.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.interchange.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.joyride.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.magellan.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.orbit.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.placeholder.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.reveal.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.section.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.tooltips.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation/foundation.topbar.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/foundation.min.js +0 -0
- data/generators/line_case/public/javascripts/vendor/custom.modernizr.js +4 -0
- data/generators/{foundation → line_case}/public/javascripts/vendor/jquery.js +0 -0
- data/generators/{foundation → line_case}/public/javascripts/vendor/zepto.js +0 -0
- data/generators/line_case/public/samples/projects/sample.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample2.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample3.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample4.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample5.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample6.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample7.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample8.jpeg +0 -0
- data/generators/line_case/public/stylesheets/_variables.css.sass +20 -0
- data/generators/line_case/public/stylesheets/foundation/_variables.scss +1290 -0
- data/generators/line_case/public/stylesheets/foundation/components/_alert-boxes.scss +107 -0
- data/generators/line_case/public/stylesheets/foundation/components/_block-grid.scss +71 -0
- data/generators/line_case/public/stylesheets/foundation/components/_breadcrumbs.scss +124 -0
- data/generators/line_case/public/stylesheets/foundation/components/_button-groups.scss +89 -0
- data/generators/line_case/public/stylesheets/foundation/components/_buttons.scss +230 -0
- data/generators/line_case/public/stylesheets/foundation/components/_clearing.scss +227 -0
- data/generators/line_case/public/stylesheets/foundation/components/_custom-forms.scss +278 -0
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown-buttons.scss +115 -0
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown.scss +151 -0
- data/generators/line_case/public/stylesheets/foundation/components/_flex-video.scss +46 -0
- data/generators/line_case/public/stylesheets/foundation/components/_forms.scss +411 -0
- data/generators/line_case/public/stylesheets/foundation/components/_global.scss +366 -0
- data/generators/line_case/public/stylesheets/foundation/components/_grid-5.scss +214 -0
- data/generators/line_case/public/stylesheets/foundation/components/_grid.scss +188 -0
- data/generators/line_case/public/stylesheets/foundation/components/_inline-lists.scss +53 -0
- data/generators/line_case/public/stylesheets/foundation/components/_joyride.scss +217 -0
- data/generators/line_case/public/stylesheets/foundation/components/_keystrokes.scss +57 -0
- data/generators/line_case/public/stylesheets/foundation/components/_labels.scss +85 -0
- data/generators/line_case/public/stylesheets/foundation/components/_magellan.scss +23 -0
- data/generators/line_case/public/stylesheets/foundation/components/_orbit.scss +340 -0
- data/generators/line_case/public/stylesheets/foundation/components/_pagination.scss +140 -0
- data/generators/line_case/public/stylesheets/foundation/components/_panels.scss +83 -0
- data/generators/line_case/public/stylesheets/foundation/components/_pricing-tables.scss +131 -0
- data/generators/line_case/public/stylesheets/foundation/components/_progress-bars.scss +71 -0
- data/generators/line_case/public/stylesheets/foundation/components/_reveal.scss +136 -0
- data/generators/line_case/public/stylesheets/foundation/components/_section.scss +391 -0
- data/generators/line_case/public/stylesheets/foundation/components/_side-nav.scss +69 -0
- data/generators/line_case/public/stylesheets/foundation/components/_split-buttons.scss +167 -0
- data/generators/line_case/public/stylesheets/foundation/components/_sub-nav.scss +84 -0
- data/generators/line_case/public/stylesheets/foundation/components/_switch.scss +266 -0
- data/generators/line_case/public/stylesheets/foundation/components/_tables.scss +84 -0
- data/generators/line_case/public/stylesheets/foundation/components/_thumbs.scss +53 -0
- data/generators/line_case/public/stylesheets/foundation/components/_tooltips.scss +117 -0
- data/generators/line_case/public/stylesheets/foundation/components/_top-bar.scss +576 -0
- data/generators/line_case/public/stylesheets/foundation/components/_type.scss +435 -0
- data/generators/line_case/public/stylesheets/foundation/components/_visibility.scss +322 -0
- data/generators/line_case/public/stylesheets/foundation.css.scss +43 -0
- data/generators/{foundation → line_case}/public/stylesheets/foundation.min.css +0 -0
- data/generators/{foundation/public/stylesheets/normalize.css → line_case/public/stylesheets/normalize.css.scss} +5 -5
- data/generators/line_case/public/stylesheets/pages.css.sass +163 -0
- data/generators/page/template.liquid.haml.tt +8 -5
- data/generators/page/template.liquid.tt +6 -2
- data/lib/locomotive/wagon/cli.rb +139 -43
- data/lib/locomotive/wagon/generators/content_type.rb +26 -10
- data/lib/locomotive/wagon/generators/page.rb +41 -25
- data/lib/locomotive/wagon/generators/site/base.rb +53 -0
- data/lib/locomotive/wagon/generators/site/blank.rb +9 -2
- data/lib/locomotive/wagon/generators/site/bootstrap2.rb +8 -2
- data/lib/locomotive/wagon/generators/site/bootstrap3.rb +20 -2
- data/lib/locomotive/wagon/generators/site/cloned.rb +4 -0
- data/lib/locomotive/wagon/generators/site/{foundation.rb → foundation4.rb} +10 -4
- data/lib/locomotive/wagon/generators/site/foundation5.rb +48 -0
- data/lib/locomotive/wagon/generators/site/line_case.rb +20 -0
- data/lib/locomotive/wagon/generators/site/unzip.rb +10 -2
- data/lib/locomotive/wagon/generators/site.rb +48 -2
- data/lib/locomotive/wagon/generators/snippet.rb +2 -1
- data/lib/locomotive/wagon/liquid/drops/content_types.rb +9 -3
- data/lib/locomotive/wagon/liquid/drops/page.rb +9 -1
- data/lib/locomotive/wagon/liquid/scopeable.rb +1 -1
- data/lib/locomotive/wagon/liquid/tags/fetch_page.rb +41 -0
- data/lib/locomotive/wagon/liquid/tags/model_form.rb +67 -0
- data/lib/locomotive/wagon/liquid/tags/path_helper.rb +2 -2
- data/lib/locomotive/wagon/liquid/tags/with_scope.rb +1 -1
- data/lib/locomotive/wagon/listen.rb +18 -10
- data/lib/locomotive/wagon/logger.rb +4 -0
- data/lib/locomotive/wagon/misc/core_ext.rb +8 -0
- data/lib/locomotive/wagon/misc/deployment_connection.rb +120 -0
- data/lib/locomotive/wagon/misc/hosting_api.rb +115 -0
- data/lib/locomotive/wagon/misc/httparty.rb +2 -0
- data/lib/locomotive/wagon/misc/livereload.rb +43 -0
- data/lib/locomotive/wagon/misc/mounter.rb +1 -1
- data/lib/locomotive/wagon/misc/tcp_port.rb +42 -0
- data/lib/locomotive/wagon/misc/thor.rb +15 -0
- data/lib/locomotive/wagon/server/entry_submission.rb +69 -38
- data/lib/locomotive/wagon/server/middleware.rb +4 -2
- data/lib/locomotive/wagon/server/page.rb +2 -2
- data/lib/locomotive/wagon/server.rb +11 -7
- data/lib/locomotive/wagon/version.rb +1 -1
- data/lib/locomotive/wagon.rb +141 -30
- data/locomotivecms_wagon.gemspec +7 -6
- data/spec/fixtures/default/app/content_types/bands.yml +3 -1
- data/spec/fixtures/default/app/views/pages/all.liquid.haml +3 -0
- data/spec/fixtures/default/app/views/pages/events.liquid.haml +21 -0
- data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +11 -1
- data/spec/fixtures/default/app/views/pages/index.liquid.haml +1 -1
- data/spec/fixtures/default/data/bands.yml +3 -0
- data/spec/integration/server/basic_spec.rb +1 -0
- data/spec/integration/server/contact_form_spec.rb +1 -1
- data/spec/integration/server/liquid_spec.rb +8 -1
- data/spec/integration/server/new_contact_form_spec.rb +67 -0
- data/spec/integration/server/with_scope_spec.rb +10 -0
- data/spec/spec_helper.rb +3 -0
- metadata +339 -144
- data/generators/bootstrap2/app/views/pages/404.liquid +0 -13
- data/generators/bootstrap2/app/views/pages/index.liquid +0 -98
- data/generators/bootstrap2/app/views/pages/index.liquid.haml +0 -80
- data/generators/bootstrap2/app/views/snippets/footer.liquid +0 -3
- data/generators/bootstrap2/app/views/snippets/footer.liquid.haml +0 -2
- data/generators/bootstrap2/config/deploy.yml +0 -15
- data/generators/bootstrap2/public/fonts/FontAwesome.otf +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.eot +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.svg +0 -399
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.ttf +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.woff +0 -0
- data/generators/bootstrap2/public/javascripts/bootstrap.js +0 -2280
- data/generators/bootstrap2/public/javascripts/bootstrap.min.js +0 -6
- data/generators/bootstrap2/public/stylesheets/application.css.scss +0 -39
- data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.css +0 -1109
- data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.min.css +0 -9
- data/generators/bootstrap2/public/stylesheets/bootstrap.css +0 -5568
- data/generators/bootstrap2/public/stylesheets/bootstrap.min.css +0 -9
- data/generators/bootstrap2/public/stylesheets/fonts/awesome.css.scss +0 -3
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.css +0 -1203
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.min.css +0 -384
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.css +0 -1470
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.min.css +0 -403
- data/generators/bootstrap3/public/javascripts/bootstrap.js +0 -1999
- data/generators/bootstrap3/public/stylesheets/bootstrap-theme.css +0 -384
- data/generators/bootstrap3/public/stylesheets/bootstrap-theme.min.css +0 -1
- data/generators/bootstrap3/public/stylesheets/bootstrap.min.css +0 -9
- data/generators/content_type/app/content_types/%name%.yml.tt +0 -58
- data/generators/foundation/app/views/pages/index.liquid +0 -150
- data/generators/foundation/app/views/pages/index.liquid.haml +0 -125
- data/generators/foundation/app/views/snippets/footer.liquid +0 -16
- data/generators/foundation/app/views/snippets/footer.liquid.haml +0 -22
- data/generators/foundation/config/deploy.yml +0 -15
- data/generators/foundation/public/samples/.empty_directory +0 -1
- data/generators/foundation/public/stylesheets/foundation.css +0 -4727
@@ -0,0 +1,299 @@
|
|
1
|
+
;(function ($, window, document, undefined) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
Foundation.libs.abide = {
|
5
|
+
name : 'abide',
|
6
|
+
|
7
|
+
version : '5.2.3',
|
8
|
+
|
9
|
+
settings : {
|
10
|
+
live_validate : true,
|
11
|
+
focus_on_invalid : true,
|
12
|
+
error_labels: true, // labels with a for="inputId" will recieve an `error` class
|
13
|
+
timeout : 1000,
|
14
|
+
patterns : {
|
15
|
+
alpha: /^[a-zA-Z]+$/,
|
16
|
+
alpha_numeric : /^[a-zA-Z0-9]+$/,
|
17
|
+
integer: /^[-+]?\d+$/,
|
18
|
+
number: /^[-+]?\d*(?:\.\d+)?$/,
|
19
|
+
|
20
|
+
// amex, visa, diners
|
21
|
+
card : /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,
|
22
|
+
cvv : /^([0-9]){3,4}$/,
|
23
|
+
|
24
|
+
// http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
|
25
|
+
email : /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
|
26
|
+
|
27
|
+
url: /^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,
|
28
|
+
// abc.de
|
29
|
+
domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,
|
30
|
+
|
31
|
+
datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,
|
32
|
+
// YYYY-MM-DD
|
33
|
+
date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,
|
34
|
+
// HH:MM:SS
|
35
|
+
time : /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,
|
36
|
+
dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
|
37
|
+
// MM/DD/YYYY
|
38
|
+
month_day_year : /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,
|
39
|
+
|
40
|
+
// #FFF or #FFFFFF
|
41
|
+
color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
|
42
|
+
},
|
43
|
+
validators : {
|
44
|
+
equalTo: function(el, required, parent) {
|
45
|
+
var from = document.getElementById(el.getAttribute(this.add_namespace('data-equalto'))).value,
|
46
|
+
to = el.value,
|
47
|
+
valid = (from === to);
|
48
|
+
|
49
|
+
return valid;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
|
54
|
+
timer : null,
|
55
|
+
|
56
|
+
init : function (scope, method, options) {
|
57
|
+
this.bindings(method, options);
|
58
|
+
},
|
59
|
+
|
60
|
+
events : function (scope) {
|
61
|
+
var self = this,
|
62
|
+
form = self.S(scope).attr('novalidate', 'novalidate'),
|
63
|
+
settings = form.data(this.attr_name(true) + '-init') || {};
|
64
|
+
|
65
|
+
this.invalid_attr = this.add_namespace('data-invalid');
|
66
|
+
|
67
|
+
form
|
68
|
+
.off('.abide')
|
69
|
+
.on('submit.fndtn.abide validate.fndtn.abide', function (e) {
|
70
|
+
var is_ajax = /ajax/i.test(self.S(this).attr(self.attr_name()));
|
71
|
+
return self.validate(self.S(this).find('input, textarea, select').get(), e, is_ajax);
|
72
|
+
})
|
73
|
+
.on('reset', function() {
|
74
|
+
return self.reset($(this));
|
75
|
+
})
|
76
|
+
.find('input, textarea, select')
|
77
|
+
.off('.abide')
|
78
|
+
.on('blur.fndtn.abide change.fndtn.abide', function (e) {
|
79
|
+
self.validate([this], e);
|
80
|
+
})
|
81
|
+
.on('keydown.fndtn.abide', function (e) {
|
82
|
+
if (settings.live_validate === true) {
|
83
|
+
clearTimeout(self.timer);
|
84
|
+
self.timer = setTimeout(function () {
|
85
|
+
self.validate([this], e);
|
86
|
+
}.bind(this), settings.timeout);
|
87
|
+
}
|
88
|
+
});
|
89
|
+
},
|
90
|
+
|
91
|
+
reset : function (form) {
|
92
|
+
form.removeAttr(this.invalid_attr);
|
93
|
+
$(this.invalid_attr, form).removeAttr(this.invalid_attr);
|
94
|
+
$('.error', form).not('small').removeClass('error');
|
95
|
+
},
|
96
|
+
|
97
|
+
validate : function (els, e, is_ajax) {
|
98
|
+
var validations = this.parse_patterns(els),
|
99
|
+
validation_count = validations.length,
|
100
|
+
form = this.S(els[0]).closest('[data-' + this.attr_name(true) + ']'),
|
101
|
+
settings = form.data(this.attr_name(true) + '-init') || {},
|
102
|
+
submit_event = /submit/.test(e.type);
|
103
|
+
|
104
|
+
form.trigger('validated');
|
105
|
+
// Has to count up to make sure the focus gets applied to the top error
|
106
|
+
for (var i=0; i < validation_count; i++) {
|
107
|
+
if (!validations[i] && (submit_event || is_ajax)) {
|
108
|
+
if (settings.focus_on_invalid) els[i].focus();
|
109
|
+
form.trigger('invalid');
|
110
|
+
this.S(els[i]).closest('[data-' + this.attr_name(true) + ']').attr(this.invalid_attr, '');
|
111
|
+
return false;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
if (submit_event || is_ajax) {
|
116
|
+
form.trigger('valid');
|
117
|
+
}
|
118
|
+
|
119
|
+
form.removeAttr(this.invalid_attr);
|
120
|
+
|
121
|
+
if (is_ajax) return false;
|
122
|
+
|
123
|
+
return true;
|
124
|
+
},
|
125
|
+
|
126
|
+
parse_patterns : function (els) {
|
127
|
+
var i = els.length,
|
128
|
+
el_patterns = [];
|
129
|
+
|
130
|
+
while (i--) {
|
131
|
+
el_patterns.push(this.pattern(els[i]));
|
132
|
+
}
|
133
|
+
|
134
|
+
return this.check_validation_and_apply_styles(el_patterns);
|
135
|
+
},
|
136
|
+
|
137
|
+
pattern : function (el) {
|
138
|
+
var type = el.getAttribute('type'),
|
139
|
+
required = typeof el.getAttribute('required') === 'string';
|
140
|
+
|
141
|
+
var pattern = el.getAttribute('pattern') || '';
|
142
|
+
|
143
|
+
if (this.settings.patterns.hasOwnProperty(pattern) && pattern.length > 0) {
|
144
|
+
return [el, this.settings.patterns[pattern], required];
|
145
|
+
} else if (pattern.length > 0) {
|
146
|
+
return [el, new RegExp('^'+pattern+'$'), required];
|
147
|
+
}
|
148
|
+
|
149
|
+
if (this.settings.patterns.hasOwnProperty(type)) {
|
150
|
+
return [el, this.settings.patterns[type], required];
|
151
|
+
}
|
152
|
+
|
153
|
+
pattern = /.*/;
|
154
|
+
|
155
|
+
return [el, pattern, required];
|
156
|
+
},
|
157
|
+
|
158
|
+
check_validation_and_apply_styles : function (el_patterns) {
|
159
|
+
var i = el_patterns.length,
|
160
|
+
validations = [],
|
161
|
+
form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'),
|
162
|
+
settings = form.data(this.attr_name(true) + '-init') || {};
|
163
|
+
|
164
|
+
while (i--) {
|
165
|
+
var el = el_patterns[i][0],
|
166
|
+
required = el_patterns[i][2],
|
167
|
+
value = el.value.trim(),
|
168
|
+
direct_parent = this.S(el).parent(),
|
169
|
+
validator = el.getAttribute(this.add_namespace('data-abide-validator')),
|
170
|
+
is_radio = el.type === "radio",
|
171
|
+
is_checkbox = el.type === "checkbox",
|
172
|
+
label = this.S('label[for="' + el.getAttribute('id') + '"]'),
|
173
|
+
valid_length = (required) ? (el.value.length > 0) : true;
|
174
|
+
|
175
|
+
var parent, valid;
|
176
|
+
|
177
|
+
// support old way to do equalTo validations
|
178
|
+
if(el.getAttribute(this.add_namespace('data-equalto'))) { validator = "equalTo" }
|
179
|
+
|
180
|
+
if (!direct_parent.is('label')) {
|
181
|
+
parent = direct_parent;
|
182
|
+
} else {
|
183
|
+
parent = direct_parent.parent();
|
184
|
+
}
|
185
|
+
|
186
|
+
if (is_radio && required) {
|
187
|
+
validations.push(this.valid_radio(el, required));
|
188
|
+
} else if (is_checkbox && required) {
|
189
|
+
validations.push(this.valid_checkbox(el, required));
|
190
|
+
} else if (validator) {
|
191
|
+
valid = this.settings.validators[validator].apply(this, [el, required, parent])
|
192
|
+
validations.push(valid);
|
193
|
+
|
194
|
+
if (valid) {
|
195
|
+
this.S(el).removeAttr(this.invalid_attr);
|
196
|
+
parent.removeClass('error');
|
197
|
+
} else {
|
198
|
+
this.S(el).attr(this.invalid_attr, '');
|
199
|
+
parent.addClass('error');
|
200
|
+
}
|
201
|
+
|
202
|
+
} else {
|
203
|
+
|
204
|
+
if (el_patterns[i][1].test(value) && valid_length ||
|
205
|
+
!required && el.value.length < 1 || $(el).attr('disabled')) {
|
206
|
+
this.S(el).removeAttr(this.invalid_attr);
|
207
|
+
parent.removeClass('error');
|
208
|
+
if (label.length > 0 && settings.error_labels) label.removeClass('error');
|
209
|
+
|
210
|
+
validations.push(true);
|
211
|
+
$(el).triggerHandler('valid');
|
212
|
+
} else {
|
213
|
+
this.S(el).attr(this.invalid_attr, '');
|
214
|
+
parent.addClass('error');
|
215
|
+
if (label.length > 0 && settings.error_labels) label.addClass('error');
|
216
|
+
|
217
|
+
validations.push(false);
|
218
|
+
$(el).triggerHandler('invalid');
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
return validations;
|
224
|
+
},
|
225
|
+
|
226
|
+
valid_checkbox : function(el, required) {
|
227
|
+
var el = this.S(el),
|
228
|
+
valid = (el.is(':checked') || !required);
|
229
|
+
|
230
|
+
if (valid) {
|
231
|
+
el.removeAttr(this.invalid_attr).parent().removeClass('error');
|
232
|
+
} else {
|
233
|
+
el.attr(this.invalid_attr, '').parent().addClass('error');
|
234
|
+
}
|
235
|
+
|
236
|
+
return valid;
|
237
|
+
},
|
238
|
+
|
239
|
+
valid_radio : function (el, required) {
|
240
|
+
var name = el.getAttribute('name'),
|
241
|
+
group = this.S(el).closest('[data-' + this.attr_name(true) + ']').find("[name='"+name+"']"),
|
242
|
+
count = group.length,
|
243
|
+
valid = false;
|
244
|
+
|
245
|
+
// Has to count up to make sure the focus gets applied to the top error
|
246
|
+
for (var i=0; i < count; i++) {
|
247
|
+
if (group[i].checked) valid = true;
|
248
|
+
}
|
249
|
+
|
250
|
+
// Has to count up to make sure the focus gets applied to the top error
|
251
|
+
for (var i=0; i < count; i++) {
|
252
|
+
if (valid) {
|
253
|
+
this.S(group[i]).removeAttr(this.invalid_attr).parent().removeClass('error');
|
254
|
+
} else {
|
255
|
+
this.S(group[i]).attr(this.invalid_attr, '').parent().addClass('error');
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
return valid;
|
260
|
+
},
|
261
|
+
|
262
|
+
valid_equal: function(el, required, parent) {
|
263
|
+
var from = document.getElementById(el.getAttribute(this.add_namespace('data-equalto'))).value,
|
264
|
+
to = el.value,
|
265
|
+
valid = (from === to);
|
266
|
+
|
267
|
+
if (valid) {
|
268
|
+
this.S(el).removeAttr(this.invalid_attr);
|
269
|
+
parent.removeClass('error');
|
270
|
+
} else {
|
271
|
+
this.S(el).attr(this.invalid_attr, '');
|
272
|
+
parent.addClass('error');
|
273
|
+
}
|
274
|
+
|
275
|
+
return valid;
|
276
|
+
},
|
277
|
+
|
278
|
+
valid_oneof: function(el, required, parent, doNotValidateOthers) {
|
279
|
+
var el = this.S(el),
|
280
|
+
others = this.S('[' + this.add_namespace('data-oneof') + ']'),
|
281
|
+
valid = others.filter(':checked').length > 0;
|
282
|
+
|
283
|
+
if (valid) {
|
284
|
+
el.removeAttr(this.invalid_attr).parent().removeClass('error');
|
285
|
+
} else {
|
286
|
+
el.attr(this.invalid_attr, '').parent().addClass('error');
|
287
|
+
}
|
288
|
+
|
289
|
+
if (!doNotValidateOthers) {
|
290
|
+
var _this = this;
|
291
|
+
others.each(function() {
|
292
|
+
_this.valid_oneof.call(_this, this, null, null, true);
|
293
|
+
});
|
294
|
+
}
|
295
|
+
|
296
|
+
return valid;
|
297
|
+
}
|
298
|
+
};
|
299
|
+
}(jQuery, window, window.document));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
;(function ($, window, document, undefined) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
Foundation.libs.accordion = {
|
5
|
+
name : 'accordion',
|
6
|
+
|
7
|
+
version : '5.2.3',
|
8
|
+
|
9
|
+
settings : {
|
10
|
+
active_class: 'active',
|
11
|
+
multi_expand: false,
|
12
|
+
toggleable: true,
|
13
|
+
callback : function () {}
|
14
|
+
},
|
15
|
+
|
16
|
+
init : function (scope, method, options) {
|
17
|
+
this.bindings(method, options);
|
18
|
+
},
|
19
|
+
|
20
|
+
events : function () {
|
21
|
+
var self = this;
|
22
|
+
var S = this.S;
|
23
|
+
S(this.scope)
|
24
|
+
.off('.fndtn.accordion')
|
25
|
+
.on('click.fndtn.accordion', '[' + this.attr_name() + '] > dd > a', function (e) {
|
26
|
+
var accordion = S(this).closest('[' + self.attr_name() + ']'),
|
27
|
+
target = S('#' + this.href.split('#')[1]),
|
28
|
+
siblings = S('dd > .content', accordion),
|
29
|
+
aunts = $('dd', accordion),
|
30
|
+
groupSelector = self.attr_name() + '=' + accordion.attr(self.attr_name()),
|
31
|
+
settings = accordion.data(self.attr_name(true) + '-init'),
|
32
|
+
active_content = S('dd > .content.' + settings.active_class, accordion);
|
33
|
+
e.preventDefault();
|
34
|
+
|
35
|
+
if (accordion.attr(self.attr_name())) {
|
36
|
+
siblings = siblings.add('[' + groupSelector + '] dd > .content');
|
37
|
+
aunts = aunts.add('[' + groupSelector + '] dd');
|
38
|
+
}
|
39
|
+
|
40
|
+
if (settings.toggleable && target.is(active_content)) {
|
41
|
+
target.parent('dd').toggleClass(settings.active_class, false);
|
42
|
+
return target.toggleClass(settings.active_class, false);
|
43
|
+
}
|
44
|
+
|
45
|
+
if (!settings.multi_expand) {
|
46
|
+
siblings.removeClass(settings.active_class);
|
47
|
+
aunts.removeClass(settings.active_class);
|
48
|
+
}
|
49
|
+
|
50
|
+
target.addClass(settings.active_class).parent().addClass(settings.active_class);
|
51
|
+
settings.callback(target);
|
52
|
+
});
|
53
|
+
},
|
54
|
+
|
55
|
+
off : function () {},
|
56
|
+
|
57
|
+
reflow : function () {}
|
58
|
+
};
|
59
|
+
}(jQuery, window, window.document));
|
@@ -0,0 +1,43 @@
|
|
1
|
+
;(function ($, window, document, undefined) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
Foundation.libs.alert = {
|
5
|
+
name : 'alert',
|
6
|
+
|
7
|
+
version : '5.2.3',
|
8
|
+
|
9
|
+
settings : {
|
10
|
+
callback: function (){}
|
11
|
+
},
|
12
|
+
|
13
|
+
init : function (scope, method, options) {
|
14
|
+
this.bindings(method, options);
|
15
|
+
},
|
16
|
+
|
17
|
+
events : function () {
|
18
|
+
var self = this,
|
19
|
+
S = this.S;
|
20
|
+
|
21
|
+
$(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] a.close', function (e) {
|
22
|
+
var alertBox = S(this).closest('[' + self.attr_name() + ']'),
|
23
|
+
settings = alertBox.data(self.attr_name(true) + '-init') || self.settings;
|
24
|
+
|
25
|
+
e.preventDefault();
|
26
|
+
if ('transitionend' in window || 'webkitTransitionEnd' in window || 'oTransitionEnd' in window) {
|
27
|
+
alertBox.addClass("alert-close");
|
28
|
+
alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function(e) {
|
29
|
+
S(this).trigger('close').remove();
|
30
|
+
settings.callback();
|
31
|
+
});
|
32
|
+
} else {
|
33
|
+
alertBox.fadeOut(300, function () {
|
34
|
+
S(this).trigger('close').remove();
|
35
|
+
settings.callback();
|
36
|
+
});
|
37
|
+
}
|
38
|
+
});
|
39
|
+
},
|
40
|
+
|
41
|
+
reflow : function () {}
|
42
|
+
};
|
43
|
+
}(jQuery, window, window.document));
|