plate-lang 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.codeclimate.yml +7 -0
- data/.gitignore +25 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +64 -0
- data/Rakefile +36 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bower.json +10 -0
- data/circle.yml +4 -0
- data/exe/plate +6 -0
- data/lib/plate/cli.rb +97 -0
- data/lib/plate/compiler.rb +244 -0
- data/lib/plate/grammar.y +145 -0
- data/lib/plate/lexer.rb +138 -0
- data/lib/plate/nodes.rb +107 -0
- data/lib/plate/parser.rb +568 -0
- data/lib/plate/version.rb +3 -0
- data/lib/plate.rb +14 -0
- data/plate-lang.gemspec +30 -0
- data/skeleton/app/assets/css/app.css +21 -0
- data/skeleton/app/assets/js/app.js +15 -0
- data/skeleton/app/index.html +26 -0
- data/skeleton/app/vendor/.keep +0 -0
- data/skeleton/vendor/bootstrap/.bower.json +44 -0
- data/skeleton/vendor/bootstrap/Gruntfile.js +531 -0
- data/skeleton/vendor/bootstrap/LICENSE +21 -0
- data/skeleton/vendor/bootstrap/README.md +137 -0
- data/skeleton/vendor/bootstrap/bower.json +34 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap-theme.css +587 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap-theme.css.map +1 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap-theme.min.css +5 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap.css +6800 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap.css.map +1 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap.min.css +5 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/skeleton/vendor/bootstrap/dist/js/bootstrap.js +2363 -0
- data/skeleton/vendor/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/skeleton/vendor/bootstrap/dist/js/npm.js +13 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/skeleton/vendor/bootstrap/grunt/.jshintrc +7 -0
- data/skeleton/vendor/bootstrap/grunt/bs-commonjs-generator.js +30 -0
- data/skeleton/vendor/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
- data/skeleton/vendor/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
- data/skeleton/vendor/bootstrap/grunt/bs-raw-files-generator.js +44 -0
- data/skeleton/vendor/bootstrap/grunt/configBridge.json +46 -0
- data/skeleton/vendor/bootstrap/grunt/sauce_browsers.yml +82 -0
- data/skeleton/vendor/bootstrap/js/.jscsrc +42 -0
- data/skeleton/vendor/bootstrap/js/.jshintrc +15 -0
- data/skeleton/vendor/bootstrap/js/affix.js +162 -0
- data/skeleton/vendor/bootstrap/js/alert.js +94 -0
- data/skeleton/vendor/bootstrap/js/button.js +120 -0
- data/skeleton/vendor/bootstrap/js/carousel.js +237 -0
- data/skeleton/vendor/bootstrap/js/collapse.js +211 -0
- data/skeleton/vendor/bootstrap/js/dropdown.js +165 -0
- data/skeleton/vendor/bootstrap/js/modal.js +337 -0
- data/skeleton/vendor/bootstrap/js/popover.js +108 -0
- data/skeleton/vendor/bootstrap/js/scrollspy.js +172 -0
- data/skeleton/vendor/bootstrap/js/tab.js +155 -0
- data/skeleton/vendor/bootstrap/js/tooltip.js +514 -0
- data/skeleton/vendor/bootstrap/js/transition.js +59 -0
- data/skeleton/vendor/bootstrap/less/.csscomb.json +304 -0
- data/skeleton/vendor/bootstrap/less/.csslintrc +19 -0
- data/skeleton/vendor/bootstrap/less/alerts.less +73 -0
- data/skeleton/vendor/bootstrap/less/badges.less +66 -0
- data/skeleton/vendor/bootstrap/less/bootstrap.less +56 -0
- data/skeleton/vendor/bootstrap/less/breadcrumbs.less +26 -0
- data/skeleton/vendor/bootstrap/less/button-groups.less +244 -0
- data/skeleton/vendor/bootstrap/less/buttons.less +166 -0
- data/skeleton/vendor/bootstrap/less/carousel.less +269 -0
- data/skeleton/vendor/bootstrap/less/close.less +34 -0
- data/skeleton/vendor/bootstrap/less/code.less +69 -0
- data/skeleton/vendor/bootstrap/less/component-animations.less +33 -0
- data/skeleton/vendor/bootstrap/less/dropdowns.less +216 -0
- data/skeleton/vendor/bootstrap/less/forms.less +607 -0
- data/skeleton/vendor/bootstrap/less/glyphicons.less +305 -0
- data/skeleton/vendor/bootstrap/less/grid.less +84 -0
- data/skeleton/vendor/bootstrap/less/input-groups.less +167 -0
- data/skeleton/vendor/bootstrap/less/jumbotron.less +52 -0
- data/skeleton/vendor/bootstrap/less/labels.less +64 -0
- data/skeleton/vendor/bootstrap/less/list-group.less +130 -0
- data/skeleton/vendor/bootstrap/less/media.less +66 -0
- data/skeleton/vendor/bootstrap/less/mixins/alerts.less +14 -0
- data/skeleton/vendor/bootstrap/less/mixins/background-variant.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/border-radius.less +18 -0
- data/skeleton/vendor/bootstrap/less/mixins/buttons.less +68 -0
- data/skeleton/vendor/bootstrap/less/mixins/center-block.less +7 -0
- data/skeleton/vendor/bootstrap/less/mixins/clearfix.less +22 -0
- data/skeleton/vendor/bootstrap/less/mixins/forms.less +85 -0
- data/skeleton/vendor/bootstrap/less/mixins/gradients.less +59 -0
- data/skeleton/vendor/bootstrap/less/mixins/grid-framework.less +91 -0
- data/skeleton/vendor/bootstrap/less/mixins/grid.less +122 -0
- data/skeleton/vendor/bootstrap/less/mixins/hide-text.less +21 -0
- data/skeleton/vendor/bootstrap/less/mixins/image.less +33 -0
- data/skeleton/vendor/bootstrap/less/mixins/labels.less +12 -0
- data/skeleton/vendor/bootstrap/less/mixins/list-group.less +30 -0
- data/skeleton/vendor/bootstrap/less/mixins/nav-divider.less +10 -0
- data/skeleton/vendor/bootstrap/less/mixins/nav-vertical-align.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/opacity.less +8 -0
- data/skeleton/vendor/bootstrap/less/mixins/pagination.less +24 -0
- data/skeleton/vendor/bootstrap/less/mixins/panels.less +24 -0
- data/skeleton/vendor/bootstrap/less/mixins/progress-bar.less +10 -0
- data/skeleton/vendor/bootstrap/less/mixins/reset-filter.less +8 -0
- data/skeleton/vendor/bootstrap/less/mixins/reset-text.less +18 -0
- data/skeleton/vendor/bootstrap/less/mixins/resize.less +6 -0
- data/skeleton/vendor/bootstrap/less/mixins/responsive-visibility.less +15 -0
- data/skeleton/vendor/bootstrap/less/mixins/size.less +10 -0
- data/skeleton/vendor/bootstrap/less/mixins/tab-focus.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/table-row.less +28 -0
- data/skeleton/vendor/bootstrap/less/mixins/text-emphasis.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/text-overflow.less +8 -0
- data/skeleton/vendor/bootstrap/less/mixins/vendor-prefixes.less +227 -0
- data/skeleton/vendor/bootstrap/less/mixins.less +40 -0
- data/skeleton/vendor/bootstrap/less/modals.less +150 -0
- data/skeleton/vendor/bootstrap/less/navbar.less +660 -0
- data/skeleton/vendor/bootstrap/less/navs.less +242 -0
- data/skeleton/vendor/bootstrap/less/normalize.less +424 -0
- data/skeleton/vendor/bootstrap/less/pager.less +54 -0
- data/skeleton/vendor/bootstrap/less/pagination.less +89 -0
- data/skeleton/vendor/bootstrap/less/panels.less +271 -0
- data/skeleton/vendor/bootstrap/less/popovers.less +131 -0
- data/skeleton/vendor/bootstrap/less/print.less +101 -0
- data/skeleton/vendor/bootstrap/less/progress-bars.less +87 -0
- data/skeleton/vendor/bootstrap/less/responsive-embed.less +35 -0
- data/skeleton/vendor/bootstrap/less/responsive-utilities.less +194 -0
- data/skeleton/vendor/bootstrap/less/scaffolding.less +161 -0
- data/skeleton/vendor/bootstrap/less/tables.less +234 -0
- data/skeleton/vendor/bootstrap/less/theme.less +291 -0
- data/skeleton/vendor/bootstrap/less/thumbnails.less +36 -0
- data/skeleton/vendor/bootstrap/less/tooltip.less +101 -0
- data/skeleton/vendor/bootstrap/less/type.less +302 -0
- data/skeleton/vendor/bootstrap/less/utilities.less +55 -0
- data/skeleton/vendor/bootstrap/less/variables.less +867 -0
- data/skeleton/vendor/bootstrap/less/wells.less +29 -0
- data/skeleton/vendor/bootstrap/package.js +25 -0
- data/skeleton/vendor/bootstrap/package.json +87 -0
- data/skeleton/vendor/bootswatch/.bower.json +52 -0
- data/skeleton/vendor/bootswatch/.bowerrc +5 -0
- data/skeleton/vendor/bootswatch/LICENSE +21 -0
- data/skeleton/vendor/bootswatch/README.md +59 -0
- data/skeleton/vendor/bootswatch/bower.json +42 -0
- data/skeleton/vendor/bootswatch/cerulean/_bootswatch.scss +131 -0
- data/skeleton/vendor/bootswatch/cerulean/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/cerulean/bootstrap.css +6944 -0
- data/skeleton/vendor/bootswatch/cerulean/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/cerulean/bootswatch.less +131 -0
- data/skeleton/vendor/bootswatch/cerulean/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/cerulean/variables.less +867 -0
- data/skeleton/vendor/bootswatch/cosmo/_bootswatch.scss +261 -0
- data/skeleton/vendor/bootswatch/cosmo/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/cosmo/bootstrap.css +6979 -0
- data/skeleton/vendor/bootswatch/cosmo/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/cosmo/bootswatch.less +261 -0
- data/skeleton/vendor/bootswatch/cosmo/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/cosmo/variables.less +867 -0
- data/skeleton/vendor/bootswatch/cyborg/_bootswatch.scss +234 -0
- data/skeleton/vendor/bootswatch/cyborg/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/cyborg/bootstrap.css +6963 -0
- data/skeleton/vendor/bootswatch/cyborg/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/cyborg/bootswatch.less +234 -0
- data/skeleton/vendor/bootswatch/cyborg/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/cyborg/variables.less +867 -0
- data/skeleton/vendor/bootswatch/darkly/_bootswatch.scss +346 -0
- data/skeleton/vendor/bootswatch/darkly/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/darkly/bootstrap.css +7086 -0
- data/skeleton/vendor/bootswatch/darkly/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/darkly/bootswatch.less +346 -0
- data/skeleton/vendor/bootswatch/darkly/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/darkly/variables.less +867 -0
- data/skeleton/vendor/bootswatch/flatly/_bootswatch.scss +329 -0
- data/skeleton/vendor/bootswatch/flatly/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/flatly/bootstrap.css +7065 -0
- data/skeleton/vendor/bootswatch/flatly/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/flatly/bootswatch.less +329 -0
- data/skeleton/vendor/bootswatch/flatly/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/flatly/variables.less +867 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.eot +0 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.svg +288 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.woff +0 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/skeleton/vendor/bootswatch/journal/_bootswatch.scss +144 -0
- data/skeleton/vendor/bootswatch/journal/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/journal/bootstrap.css +6891 -0
- data/skeleton/vendor/bootswatch/journal/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/journal/bootswatch.less +144 -0
- data/skeleton/vendor/bootswatch/journal/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/journal/variables.less +867 -0
- data/skeleton/vendor/bootswatch/lumen/_bootswatch.scss +520 -0
- data/skeleton/vendor/bootswatch/lumen/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/lumen/bootstrap.css +7216 -0
- data/skeleton/vendor/bootswatch/lumen/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/lumen/bootswatch.less +520 -0
- data/skeleton/vendor/bootswatch/lumen/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/lumen/variables.less +867 -0
- data/skeleton/vendor/bootswatch/paper/_bootswatch.scss +585 -0
- data/skeleton/vendor/bootswatch/paper/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/paper/bootstrap.css +7502 -0
- data/skeleton/vendor/bootswatch/paper/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/paper/bootswatch.less +585 -0
- data/skeleton/vendor/bootswatch/paper/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/paper/variables.less +867 -0
- data/skeleton/vendor/bootswatch/readable/_bootswatch.scss +182 -0
- data/skeleton/vendor/bootswatch/readable/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/readable/bootstrap.css +6915 -0
- data/skeleton/vendor/bootswatch/readable/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/readable/bootswatch.less +182 -0
- data/skeleton/vendor/bootswatch/readable/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/readable/variables.less +867 -0
- data/skeleton/vendor/bootswatch/sandstone/_bootswatch.scss +194 -0
- data/skeleton/vendor/bootswatch/sandstone/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/sandstone/bootstrap.css +6953 -0
- data/skeleton/vendor/bootswatch/sandstone/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/sandstone/bootswatch.less +194 -0
- data/skeleton/vendor/bootswatch/sandstone/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/sandstone/variables.less +867 -0
- data/skeleton/vendor/bootswatch/simplex/_bootswatch.scss +169 -0
- data/skeleton/vendor/bootswatch/simplex/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/simplex/bootstrap.css +6953 -0
- data/skeleton/vendor/bootswatch/simplex/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/simplex/bootswatch.less +169 -0
- data/skeleton/vendor/bootswatch/simplex/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/simplex/variables.less +867 -0
- data/skeleton/vendor/bootswatch/slate/_bootswatch.scss +441 -0
- data/skeleton/vendor/bootswatch/slate/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/slate/bootstrap.css +7301 -0
- data/skeleton/vendor/bootswatch/slate/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/slate/bootswatch.less +441 -0
- data/skeleton/vendor/bootswatch/slate/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/slate/variables.less +867 -0
- data/skeleton/vendor/bootswatch/spacelab/_bootswatch.scss +137 -0
- data/skeleton/vendor/bootswatch/spacelab/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/spacelab/bootstrap.css +6998 -0
- data/skeleton/vendor/bootswatch/spacelab/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/spacelab/bootswatch.less +137 -0
- data/skeleton/vendor/bootswatch/spacelab/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/spacelab/variables.less +867 -0
- data/skeleton/vendor/bootswatch/superhero/_bootswatch.scss +356 -0
- data/skeleton/vendor/bootswatch/superhero/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/superhero/bootstrap.css +7048 -0
- data/skeleton/vendor/bootswatch/superhero/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/superhero/bootswatch.less +356 -0
- data/skeleton/vendor/bootswatch/superhero/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/superhero/variables.less +867 -0
- data/skeleton/vendor/bootswatch/united/_bootswatch.scss +55 -0
- data/skeleton/vendor/bootswatch/united/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/united/bootstrap.css +6813 -0
- data/skeleton/vendor/bootswatch/united/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/united/bootswatch.less +55 -0
- data/skeleton/vendor/bootswatch/united/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/united/variables.less +867 -0
- data/skeleton/vendor/bootswatch/yeti/_bootswatch.scss +437 -0
- data/skeleton/vendor/bootswatch/yeti/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/yeti/bootstrap.css +7107 -0
- data/skeleton/vendor/bootswatch/yeti/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/yeti/bootswatch.less +437 -0
- data/skeleton/vendor/bootswatch/yeti/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/yeti/variables.less +867 -0
- data/skeleton/vendor/font-awesome/.bower.json +36 -0
- data/skeleton/vendor/font-awesome/.gitignore +33 -0
- data/skeleton/vendor/font-awesome/.npmignore +42 -0
- data/skeleton/vendor/font-awesome/HELP-US-OUT.txt +7 -0
- data/skeleton/vendor/font-awesome/bower.json +22 -0
- data/skeleton/vendor/font-awesome/css/font-awesome.css +2026 -0
- data/skeleton/vendor/font-awesome/css/font-awesome.css.map +7 -0
- data/skeleton/vendor/font-awesome/css/font-awesome.min.css +4 -0
- data/skeleton/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.svg +640 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/skeleton/vendor/font-awesome/less/animated.less +34 -0
- data/skeleton/vendor/font-awesome/less/bordered-pulled.less +25 -0
- data/skeleton/vendor/font-awesome/less/core.less +12 -0
- data/skeleton/vendor/font-awesome/less/fixed-width.less +6 -0
- data/skeleton/vendor/font-awesome/less/font-awesome.less +17 -0
- data/skeleton/vendor/font-awesome/less/icons.less +677 -0
- data/skeleton/vendor/font-awesome/less/larger.less +13 -0
- data/skeleton/vendor/font-awesome/less/list.less +19 -0
- data/skeleton/vendor/font-awesome/less/mixins.less +26 -0
- data/skeleton/vendor/font-awesome/less/path.less +15 -0
- data/skeleton/vendor/font-awesome/less/rotated-flipped.less +20 -0
- data/skeleton/vendor/font-awesome/less/stacked.less +20 -0
- data/skeleton/vendor/font-awesome/less/variables.less +688 -0
- data/skeleton/vendor/font-awesome/scss/_animated.scss +34 -0
- data/skeleton/vendor/font-awesome/scss/_bordered-pulled.scss +25 -0
- data/skeleton/vendor/font-awesome/scss/_core.scss +12 -0
- data/skeleton/vendor/font-awesome/scss/_fixed-width.scss +6 -0
- data/skeleton/vendor/font-awesome/scss/_icons.scss +677 -0
- data/skeleton/vendor/font-awesome/scss/_larger.scss +13 -0
- data/skeleton/vendor/font-awesome/scss/_list.scss +19 -0
- data/skeleton/vendor/font-awesome/scss/_mixins.scss +26 -0
- data/skeleton/vendor/font-awesome/scss/_path.scss +15 -0
- data/skeleton/vendor/font-awesome/scss/_rotated-flipped.scss +20 -0
- data/skeleton/vendor/font-awesome/scss/_stacked.scss +20 -0
- data/skeleton/vendor/font-awesome/scss/_variables.scss +688 -0
- data/skeleton/vendor/font-awesome/scss/font-awesome.scss +17 -0
- data/skeleton/vendor/google-code-prettify/.bower.json +26 -0
- data/skeleton/vendor/google-code-prettify/CHANGES.html +172 -0
- data/skeleton/vendor/google-code-prettify/COPYING +191 -0
- data/skeleton/vendor/google-code-prettify/README-zh-Hans.html +143 -0
- data/skeleton/vendor/google-code-prettify/README.html +233 -0
- data/skeleton/vendor/google-code-prettify/README.md +54 -0
- data/skeleton/vendor/google-code-prettify/bin/prettify.min.css +1 -0
- data/skeleton/vendor/google-code-prettify/bin/prettify.min.js +30 -0
- data/skeleton/vendor/google-code-prettify/bin/run_prettify.min.js +34 -0
- data/skeleton/vendor/google-code-prettify/bower.json +16 -0
- data/skeleton/vendor/google-code-prettify/examples/quine.html +55 -0
- data/skeleton/vendor/google-code-prettify/src/lang-apollo.js +51 -0
- data/skeleton/vendor/google-code-prettify/src/lang-basic.js +32 -0
- data/skeleton/vendor/google-code-prettify/src/lang-clj.js +64 -0
- data/skeleton/vendor/google-code-prettify/src/lang-css.js +159 -0
- data/skeleton/vendor/google-code-prettify/src/lang-dart.js +88 -0
- data/skeleton/vendor/google-code-prettify/src/lang-erlang.js +92 -0
- data/skeleton/vendor/google-code-prettify/src/lang-go.js +58 -0
- data/skeleton/vendor/google-code-prettify/src/lang-hs.js +101 -0
- data/skeleton/vendor/google-code-prettify/src/lang-lisp.js +94 -0
- data/skeleton/vendor/google-code-prettify/src/lang-llvm.js +61 -0
- data/skeleton/vendor/google-code-prettify/src/lang-lua.js +59 -0
- data/skeleton/vendor/google-code-prettify/src/lang-matlab.js +180 -0
- data/skeleton/vendor/google-code-prettify/src/lang-ml.js +56 -0
- data/skeleton/vendor/google-code-prettify/src/lang-mumps.js +139 -0
- data/skeleton/vendor/google-code-prettify/src/lang-n.js +65 -0
- data/skeleton/vendor/google-code-prettify/src/lang-pascal.js +32 -0
- data/skeleton/vendor/google-code-prettify/src/lang-proto.js +35 -0
- data/skeleton/vendor/google-code-prettify/src/lang-r.js +57 -0
- data/skeleton/vendor/google-code-prettify/src/lang-rd.js +47 -0
- data/skeleton/vendor/google-code-prettify/src/lang-scala.js +54 -0
- data/skeleton/vendor/google-code-prettify/src/lang-sql.js +58 -0
- data/skeleton/vendor/google-code-prettify/src/lang-tcl.js +62 -0
- data/skeleton/vendor/google-code-prettify/src/lang-tex.js +46 -0
- data/skeleton/vendor/google-code-prettify/src/lang-vb.js +66 -0
- data/skeleton/vendor/google-code-prettify/src/lang-vhdl.js +34 -0
- data/skeleton/vendor/google-code-prettify/src/lang-wiki.js +53 -0
- data/skeleton/vendor/google-code-prettify/src/lang-xq.js +67 -0
- data/skeleton/vendor/google-code-prettify/src/lang-yaml.js +27 -0
- data/skeleton/vendor/google-code-prettify/src/prettify.css +52 -0
- data/skeleton/vendor/google-code-prettify/src/prettify.js +1655 -0
- data/skeleton/vendor/google-code-prettify/src/run_prettify.js +1905 -0
- data/skeleton/vendor/google-code-prettify/styles/demo.html +61 -0
- data/skeleton/vendor/google-code-prettify/styles/desert.css +34 -0
- data/skeleton/vendor/google-code-prettify/styles/doxy.css +64 -0
- data/skeleton/vendor/google-code-prettify/styles/index.html +89 -0
- data/skeleton/vendor/google-code-prettify/styles/sons-of-obsidian.css +118 -0
- data/skeleton/vendor/google-code-prettify/styles/sunburst.css +51 -0
- data/skeleton/vendor/jquery/.bower.json +38 -0
- data/skeleton/vendor/jquery/MIT-LICENSE.txt +21 -0
- data/skeleton/vendor/jquery/bower.json +28 -0
- data/skeleton/vendor/jquery/dist/jquery.js +9210 -0
- data/skeleton/vendor/jquery/dist/jquery.min.js +5 -0
- data/skeleton/vendor/jquery/dist/jquery.min.map +1 -0
- data/skeleton/vendor/jquery/src/ajax/jsonp.js +89 -0
- data/skeleton/vendor/jquery/src/ajax/load.js +75 -0
- data/skeleton/vendor/jquery/src/ajax/parseJSON.js +13 -0
- data/skeleton/vendor/jquery/src/ajax/parseXML.js +28 -0
- data/skeleton/vendor/jquery/src/ajax/script.js +64 -0
- data/skeleton/vendor/jquery/src/ajax/var/nonce.js +5 -0
- data/skeleton/vendor/jquery/src/ajax/var/rquery.js +3 -0
- data/skeleton/vendor/jquery/src/ajax/xhr.js +136 -0
- data/skeleton/vendor/jquery/src/ajax.js +786 -0
- data/skeleton/vendor/jquery/src/attributes/attr.js +141 -0
- data/skeleton/vendor/jquery/src/attributes/classes.js +158 -0
- data/skeleton/vendor/jquery/src/attributes/prop.js +94 -0
- data/skeleton/vendor/jquery/src/attributes/support.js +35 -0
- data/skeleton/vendor/jquery/src/attributes/val.js +161 -0
- data/skeleton/vendor/jquery/src/attributes.js +11 -0
- data/skeleton/vendor/jquery/src/callbacks.js +205 -0
- data/skeleton/vendor/jquery/src/core/access.js +60 -0
- data/skeleton/vendor/jquery/src/core/init.js +123 -0
- data/skeleton/vendor/jquery/src/core/parseHTML.js +39 -0
- data/skeleton/vendor/jquery/src/core/ready.js +97 -0
- data/skeleton/vendor/jquery/src/core/var/rsingleTag.js +4 -0
- data/skeleton/vendor/jquery/src/core.js +502 -0
- data/skeleton/vendor/jquery/src/css/addGetHookIf.js +22 -0
- data/skeleton/vendor/jquery/src/css/curCSS.js +57 -0
- data/skeleton/vendor/jquery/src/css/defaultDisplay.js +70 -0
- data/skeleton/vendor/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/skeleton/vendor/jquery/src/css/support.js +96 -0
- data/skeleton/vendor/jquery/src/css/swap.js +28 -0
- data/skeleton/vendor/jquery/src/css/var/cssExpand.js +3 -0
- data/skeleton/vendor/jquery/src/css/var/getStyles.js +12 -0
- data/skeleton/vendor/jquery/src/css/var/isHidden.js +13 -0
- data/skeleton/vendor/jquery/src/css/var/rmargin.js +3 -0
- data/skeleton/vendor/jquery/src/css/var/rnumnonpx.js +5 -0
- data/skeleton/vendor/jquery/src/css.js +450 -0
- data/skeleton/vendor/jquery/src/data/Data.js +181 -0
- data/skeleton/vendor/jquery/src/data/accepts.js +20 -0
- data/skeleton/vendor/jquery/src/data/var/data_priv.js +5 -0
- data/skeleton/vendor/jquery/src/data/var/data_user.js +5 -0
- data/skeleton/vendor/jquery/src/data.js +178 -0
- data/skeleton/vendor/jquery/src/deferred.js +149 -0
- data/skeleton/vendor/jquery/src/deprecated.js +13 -0
- data/skeleton/vendor/jquery/src/dimensions.js +50 -0
- data/skeleton/vendor/jquery/src/effects/Tween.js +114 -0
- data/skeleton/vendor/jquery/src/effects/animatedSelector.js +13 -0
- data/skeleton/vendor/jquery/src/effects.js +648 -0
- data/skeleton/vendor/jquery/src/event/ajax.js +13 -0
- data/skeleton/vendor/jquery/src/event/alias.js +39 -0
- data/skeleton/vendor/jquery/src/event/support.js +9 -0
- data/skeleton/vendor/jquery/src/event.js +868 -0
- data/skeleton/vendor/jquery/src/exports/amd.js +24 -0
- data/skeleton/vendor/jquery/src/exports/global.js +32 -0
- data/skeleton/vendor/jquery/src/intro.js +44 -0
- data/skeleton/vendor/jquery/src/jquery.js +37 -0
- data/skeleton/vendor/jquery/src/manipulation/_evalUrl.js +18 -0
- data/skeleton/vendor/jquery/src/manipulation/support.js +32 -0
- data/skeleton/vendor/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/skeleton/vendor/jquery/src/manipulation.js +580 -0
- data/skeleton/vendor/jquery/src/offset.js +207 -0
- data/skeleton/vendor/jquery/src/outro.js +1 -0
- data/skeleton/vendor/jquery/src/queue/delay.js +22 -0
- data/skeleton/vendor/jquery/src/queue.js +142 -0
- data/skeleton/vendor/jquery/src/selector-native.js +172 -0
- data/skeleton/vendor/jquery/src/selector-sizzle.js +14 -0
- data/skeleton/vendor/jquery/src/selector.js +1 -0
- data/skeleton/vendor/jquery/src/serialize.js +111 -0
- data/skeleton/vendor/jquery/src/sizzle/dist/sizzle.js +2067 -0
- data/skeleton/vendor/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/skeleton/vendor/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/skeleton/vendor/jquery/src/traversing/findFilter.js +100 -0
- data/skeleton/vendor/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/skeleton/vendor/jquery/src/traversing.js +199 -0
- data/skeleton/vendor/jquery/src/var/arr.js +3 -0
- data/skeleton/vendor/jquery/src/var/class2type.js +4 -0
- data/skeleton/vendor/jquery/src/var/concat.js +5 -0
- data/skeleton/vendor/jquery/src/var/hasOwn.js +5 -0
- data/skeleton/vendor/jquery/src/var/indexOf.js +5 -0
- data/skeleton/vendor/jquery/src/var/pnum.js +3 -0
- data/skeleton/vendor/jquery/src/var/push.js +5 -0
- data/skeleton/vendor/jquery/src/var/rnotwhite.js +3 -0
- data/skeleton/vendor/jquery/src/var/slice.js +5 -0
- data/skeleton/vendor/jquery/src/var/strundefined.js +3 -0
- data/skeleton/vendor/jquery/src/var/support.js +4 -0
- data/skeleton/vendor/jquery/src/var/toString.js +5 -0
- data/skeleton/vendor/jquery/src/wrap.js +79 -0
- data/skeleton/vendor/vue/.bower.json +29 -0
- data/skeleton/vendor/vue/LICENSE +21 -0
- data/skeleton/vendor/vue/bower.json +16 -0
- data/skeleton/vendor/vue/build/banner.js +8 -0
- data/skeleton/vendor/vue/build/grunt-tasks/build.js +50 -0
- data/skeleton/vendor/vue/build/grunt-tasks/casper.js +26 -0
- data/skeleton/vendor/vue/build/grunt-tasks/codecov.js +18 -0
- data/skeleton/vendor/vue/build/grunt-tasks/open.js +11 -0
- data/skeleton/vendor/vue/build/grunt-tasks/release.js +84 -0
- data/skeleton/vendor/vue/build/saucelabs.config.js +79 -0
- data/skeleton/vendor/vue/build/webpack.build.dev.config.js +20 -0
- data/skeleton/vendor/vue/build/webpack.build.prod.config.js +25 -0
- data/skeleton/vendor/vue/build/webpack.dev.config.js +10 -0
- data/skeleton/vendor/vue/build/webpack.test.config.js +13 -0
- data/skeleton/vendor/vue/circle.yml +4 -0
- data/skeleton/vendor/vue/dist/vue.js +9863 -0
- data/skeleton/vendor/vue/dist/vue.min.js +8 -0
- data/skeleton/vendor/vue/perf/bench.html +2 -0
- data/skeleton/vendor/vue/perf/bench.js +87 -0
- data/skeleton/vendor/vue/src/api/child.js +49 -0
- data/skeleton/vendor/vue/src/api/data.js +154 -0
- data/skeleton/vendor/vue/src/api/dom.js +226 -0
- data/skeleton/vendor/vue/src/api/events.js +174 -0
- data/skeleton/vendor/vue/src/api/global.js +119 -0
- data/skeleton/vendor/vue/src/api/lifecycle.js +68 -0
- data/skeleton/vendor/vue/src/batcher.js +98 -0
- data/skeleton/vendor/vue/src/cache.js +112 -0
- data/skeleton/vendor/vue/src/compiler/compile-props.js +183 -0
- data/skeleton/vendor/vue/src/compiler/compile.js +631 -0
- data/skeleton/vendor/vue/src/compiler/index.js +4 -0
- data/skeleton/vendor/vue/src/compiler/transclude.js +144 -0
- data/skeleton/vendor/vue/src/config.js +124 -0
- data/skeleton/vendor/vue/src/directive.js +224 -0
- data/skeleton/vendor/vue/src/directives/attr.js +51 -0
- data/skeleton/vendor/vue/src/directives/class.js +70 -0
- data/skeleton/vendor/vue/src/directives/cloak.js +10 -0
- data/skeleton/vendor/vue/src/directives/component.js +300 -0
- data/skeleton/vendor/vue/src/directives/el.js +12 -0
- data/skeleton/vendor/vue/src/directives/html.js +40 -0
- data/skeleton/vendor/vue/src/directives/if.js +126 -0
- data/skeleton/vendor/vue/src/directives/index.js +24 -0
- data/skeleton/vendor/vue/src/directives/model/checkbox.js +24 -0
- data/skeleton/vendor/vue/src/directives/model/index.js +76 -0
- data/skeleton/vendor/vue/src/directives/model/radio.js +26 -0
- data/skeleton/vendor/vue/src/directives/model/select.js +199 -0
- data/skeleton/vendor/vue/src/directives/model/text.js +159 -0
- data/skeleton/vendor/vue/src/directives/on.js +60 -0
- data/skeleton/vendor/vue/src/directives/prop.js +62 -0
- data/skeleton/vendor/vue/src/directives/ref.js +22 -0
- data/skeleton/vendor/vue/src/directives/repeat.js +754 -0
- data/skeleton/vendor/vue/src/directives/show.js +8 -0
- data/skeleton/vendor/vue/src/directives/style.js +110 -0
- data/skeleton/vendor/vue/src/directives/text.js +14 -0
- data/skeleton/vendor/vue/src/directives/transition.js +26 -0
- data/skeleton/vendor/vue/src/element-directives/content.js +111 -0
- data/skeleton/vendor/vue/src/element-directives/index.js +2 -0
- data/skeleton/vendor/vue/src/element-directives/partial.js +73 -0
- data/skeleton/vendor/vue/src/filters/array-filters.js +85 -0
- data/skeleton/vendor/vue/src/filters/index.js +137 -0
- data/skeleton/vendor/vue/src/instance/compile.js +196 -0
- data/skeleton/vendor/vue/src/instance/events.js +139 -0
- data/skeleton/vendor/vue/src/instance/init.js +89 -0
- data/skeleton/vendor/vue/src/instance/misc.js +93 -0
- data/skeleton/vendor/vue/src/instance/scope.js +282 -0
- data/skeleton/vendor/vue/src/observer/array.js +92 -0
- data/skeleton/vendor/vue/src/observer/dep.js +61 -0
- data/skeleton/vendor/vue/src/observer/index.js +212 -0
- data/skeleton/vendor/vue/src/observer/object.js +82 -0
- data/skeleton/vendor/vue/src/parsers/directive.js +179 -0
- data/skeleton/vendor/vue/src/parsers/expression.js +264 -0
- data/skeleton/vendor/vue/src/parsers/path.js +348 -0
- data/skeleton/vendor/vue/src/parsers/template.js +264 -0
- data/skeleton/vendor/vue/src/parsers/text.js +176 -0
- data/skeleton/vendor/vue/src/transition/index.js +128 -0
- data/skeleton/vendor/vue/src/transition/queue.js +35 -0
- data/skeleton/vendor/vue/src/transition/transition.js +308 -0
- data/skeleton/vendor/vue/src/util/component.js +124 -0
- data/skeleton/vendor/vue/src/util/debug.js +64 -0
- data/skeleton/vendor/vue/src/util/dom.js +262 -0
- data/skeleton/vendor/vue/src/util/env.js +85 -0
- data/skeleton/vendor/vue/src/util/index.js +9 -0
- data/skeleton/vendor/vue/src/util/lang.js +289 -0
- data/skeleton/vendor/vue/src/util/options.js +353 -0
- data/skeleton/vendor/vue/src/vue.js +89 -0
- data/skeleton/vendor/vue/src/watcher.js +292 -0
- data/tmp/.keep +0 -0
- metadata +677 -0
@@ -0,0 +1,237 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Grunt task for parsing Less docstrings
|
3
|
+
* http://getbootstrap.com
|
4
|
+
* Copyright 2014-2015 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
var Markdown = require('markdown-it');
|
11
|
+
|
12
|
+
function markdown2html(markdownString) {
|
13
|
+
var md = new Markdown();
|
14
|
+
|
15
|
+
// the slice removes the <p>...</p> wrapper output by Markdown processor
|
16
|
+
return md.render(markdownString.trim()).slice(3, -5);
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
/*
|
21
|
+
Mini-language:
|
22
|
+
//== This is a normal heading, which starts a section. Sections group variables together.
|
23
|
+
//## Optional description for the heading
|
24
|
+
|
25
|
+
//=== This is a subheading.
|
26
|
+
|
27
|
+
//** Optional description for the following variable. You **can** use Markdown in descriptions to discuss `<html>` stuff.
|
28
|
+
@foo: #fff;
|
29
|
+
|
30
|
+
//-- This is a heading for a section whose variables shouldn't be customizable
|
31
|
+
|
32
|
+
All other lines are ignored completely.
|
33
|
+
*/
|
34
|
+
|
35
|
+
|
36
|
+
var CUSTOMIZABLE_HEADING = /^[/]{2}={2}(.*)$/;
|
37
|
+
var UNCUSTOMIZABLE_HEADING = /^[/]{2}-{2}(.*)$/;
|
38
|
+
var SUBSECTION_HEADING = /^[/]{2}={3}(.*)$/;
|
39
|
+
var SECTION_DOCSTRING = /^[/]{2}#{2}(.+)$/;
|
40
|
+
var VAR_ASSIGNMENT = /^(@[a-zA-Z0-9_-]+):[ ]*([^ ;][^;]*);[ ]*$/;
|
41
|
+
var VAR_DOCSTRING = /^[/]{2}[*]{2}(.+)$/;
|
42
|
+
|
43
|
+
function Section(heading, customizable) {
|
44
|
+
this.heading = heading.trim();
|
45
|
+
this.id = this.heading.replace(/\s+/g, '-').toLowerCase();
|
46
|
+
this.customizable = customizable;
|
47
|
+
this.docstring = null;
|
48
|
+
this.subsections = [];
|
49
|
+
}
|
50
|
+
|
51
|
+
Section.prototype.addSubSection = function (subsection) {
|
52
|
+
this.subsections.push(subsection);
|
53
|
+
};
|
54
|
+
|
55
|
+
function SubSection(heading) {
|
56
|
+
this.heading = heading.trim();
|
57
|
+
this.id = this.heading.replace(/\s+/g, '-').toLowerCase();
|
58
|
+
this.variables = [];
|
59
|
+
}
|
60
|
+
|
61
|
+
SubSection.prototype.addVar = function (variable) {
|
62
|
+
this.variables.push(variable);
|
63
|
+
};
|
64
|
+
|
65
|
+
function VarDocstring(markdownString) {
|
66
|
+
this.html = markdown2html(markdownString);
|
67
|
+
}
|
68
|
+
|
69
|
+
function SectionDocstring(markdownString) {
|
70
|
+
this.html = markdown2html(markdownString);
|
71
|
+
}
|
72
|
+
|
73
|
+
function Variable(name, defaultValue) {
|
74
|
+
this.name = name;
|
75
|
+
this.defaultValue = defaultValue;
|
76
|
+
this.docstring = null;
|
77
|
+
}
|
78
|
+
|
79
|
+
function Tokenizer(fileContent) {
|
80
|
+
this._lines = fileContent.split('\n');
|
81
|
+
this._next = undefined;
|
82
|
+
}
|
83
|
+
|
84
|
+
Tokenizer.prototype.unshift = function (token) {
|
85
|
+
if (this._next !== undefined) {
|
86
|
+
throw new Error('Attempted to unshift twice!');
|
87
|
+
}
|
88
|
+
this._next = token;
|
89
|
+
};
|
90
|
+
|
91
|
+
Tokenizer.prototype._shift = function () {
|
92
|
+
// returning null signals EOF
|
93
|
+
// returning undefined means the line was ignored
|
94
|
+
if (this._next !== undefined) {
|
95
|
+
var result = this._next;
|
96
|
+
this._next = undefined;
|
97
|
+
return result;
|
98
|
+
}
|
99
|
+
if (this._lines.length <= 0) {
|
100
|
+
return null;
|
101
|
+
}
|
102
|
+
var line = this._lines.shift();
|
103
|
+
var match = null;
|
104
|
+
match = SUBSECTION_HEADING.exec(line);
|
105
|
+
if (match !== null) {
|
106
|
+
return new SubSection(match[1]);
|
107
|
+
}
|
108
|
+
match = CUSTOMIZABLE_HEADING.exec(line);
|
109
|
+
if (match !== null) {
|
110
|
+
return new Section(match[1], true);
|
111
|
+
}
|
112
|
+
match = UNCUSTOMIZABLE_HEADING.exec(line);
|
113
|
+
if (match !== null) {
|
114
|
+
return new Section(match[1], false);
|
115
|
+
}
|
116
|
+
match = SECTION_DOCSTRING.exec(line);
|
117
|
+
if (match !== null) {
|
118
|
+
return new SectionDocstring(match[1]);
|
119
|
+
}
|
120
|
+
match = VAR_DOCSTRING.exec(line);
|
121
|
+
if (match !== null) {
|
122
|
+
return new VarDocstring(match[1]);
|
123
|
+
}
|
124
|
+
var commentStart = line.lastIndexOf('//');
|
125
|
+
var varLine = commentStart === -1 ? line : line.slice(0, commentStart);
|
126
|
+
match = VAR_ASSIGNMENT.exec(varLine);
|
127
|
+
if (match !== null) {
|
128
|
+
return new Variable(match[1], match[2]);
|
129
|
+
}
|
130
|
+
return undefined;
|
131
|
+
};
|
132
|
+
|
133
|
+
Tokenizer.prototype.shift = function () {
|
134
|
+
while (true) {
|
135
|
+
var result = this._shift();
|
136
|
+
if (result === undefined) {
|
137
|
+
continue;
|
138
|
+
}
|
139
|
+
return result;
|
140
|
+
}
|
141
|
+
};
|
142
|
+
|
143
|
+
function Parser(fileContent) {
|
144
|
+
this._tokenizer = new Tokenizer(fileContent);
|
145
|
+
}
|
146
|
+
|
147
|
+
Parser.prototype.parseFile = function () {
|
148
|
+
var sections = [];
|
149
|
+
while (true) {
|
150
|
+
var section = this.parseSection();
|
151
|
+
if (section === null) {
|
152
|
+
if (this._tokenizer.shift() !== null) {
|
153
|
+
throw new Error('Unexpected unparsed section of file remains!');
|
154
|
+
}
|
155
|
+
return sections;
|
156
|
+
}
|
157
|
+
sections.push(section);
|
158
|
+
}
|
159
|
+
};
|
160
|
+
|
161
|
+
Parser.prototype.parseSection = function () {
|
162
|
+
var section = this._tokenizer.shift();
|
163
|
+
if (section === null) {
|
164
|
+
return null;
|
165
|
+
}
|
166
|
+
if (!(section instanceof Section)) {
|
167
|
+
throw new Error('Expected section heading; got: ' + JSON.stringify(section));
|
168
|
+
}
|
169
|
+
var docstring = this._tokenizer.shift();
|
170
|
+
if (docstring instanceof SectionDocstring) {
|
171
|
+
section.docstring = docstring;
|
172
|
+
} else {
|
173
|
+
this._tokenizer.unshift(docstring);
|
174
|
+
}
|
175
|
+
this.parseSubSections(section);
|
176
|
+
|
177
|
+
return section;
|
178
|
+
};
|
179
|
+
|
180
|
+
Parser.prototype.parseSubSections = function (section) {
|
181
|
+
while (true) {
|
182
|
+
var subsection = this.parseSubSection();
|
183
|
+
if (subsection === null) {
|
184
|
+
if (section.subsections.length === 0) {
|
185
|
+
// Presume an implicit initial subsection
|
186
|
+
subsection = new SubSection('');
|
187
|
+
this.parseVars(subsection);
|
188
|
+
} else {
|
189
|
+
break;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
section.addSubSection(subsection);
|
193
|
+
}
|
194
|
+
|
195
|
+
if (section.subsections.length === 1 && !section.subsections[0].heading && section.subsections[0].variables.length === 0) {
|
196
|
+
// Ignore lone empty implicit subsection
|
197
|
+
section.subsections = [];
|
198
|
+
}
|
199
|
+
};
|
200
|
+
|
201
|
+
Parser.prototype.parseSubSection = function () {
|
202
|
+
var subsection = this._tokenizer.shift();
|
203
|
+
if (subsection instanceof SubSection) {
|
204
|
+
this.parseVars(subsection);
|
205
|
+
return subsection;
|
206
|
+
}
|
207
|
+
this._tokenizer.unshift(subsection);
|
208
|
+
return null;
|
209
|
+
};
|
210
|
+
|
211
|
+
Parser.prototype.parseVars = function (subsection) {
|
212
|
+
while (true) {
|
213
|
+
var variable = this.parseVar();
|
214
|
+
if (variable === null) {
|
215
|
+
return;
|
216
|
+
}
|
217
|
+
subsection.addVar(variable);
|
218
|
+
}
|
219
|
+
};
|
220
|
+
|
221
|
+
Parser.prototype.parseVar = function () {
|
222
|
+
var docstring = this._tokenizer.shift();
|
223
|
+
if (!(docstring instanceof VarDocstring)) {
|
224
|
+
this._tokenizer.unshift(docstring);
|
225
|
+
docstring = null;
|
226
|
+
}
|
227
|
+
var variable = this._tokenizer.shift();
|
228
|
+
if (variable instanceof Variable) {
|
229
|
+
variable.docstring = docstring;
|
230
|
+
return variable;
|
231
|
+
}
|
232
|
+
this._tokenizer.unshift(variable);
|
233
|
+
return null;
|
234
|
+
};
|
235
|
+
|
236
|
+
|
237
|
+
module.exports = Parser;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Grunt task for generating raw-files.min.js for the Customizer
|
3
|
+
* http://getbootstrap.com
|
4
|
+
* Copyright 2014-2015 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
var fs = require('fs');
|
11
|
+
var btoa = require('btoa');
|
12
|
+
var glob = require('glob');
|
13
|
+
|
14
|
+
function getFiles(type) {
|
15
|
+
var files = {};
|
16
|
+
var recursive = type === 'less';
|
17
|
+
var globExpr = recursive ? '/**/*' : '/*';
|
18
|
+
glob.sync(type + globExpr)
|
19
|
+
.filter(function (path) {
|
20
|
+
return type === 'fonts' ? true : new RegExp('\\.' + type + '$').test(path);
|
21
|
+
})
|
22
|
+
.forEach(function (fullPath) {
|
23
|
+
var relativePath = fullPath.replace(/^[^/]+\//, '');
|
24
|
+
files[relativePath] = type === 'fonts' ? btoa(fs.readFileSync(fullPath)) : fs.readFileSync(fullPath, 'utf8');
|
25
|
+
});
|
26
|
+
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n';
|
27
|
+
}
|
28
|
+
|
29
|
+
module.exports = function generateRawFilesJs(grunt, banner) {
|
30
|
+
if (!banner) {
|
31
|
+
banner = '';
|
32
|
+
}
|
33
|
+
var dirs = ['js', 'less', 'fonts'];
|
34
|
+
var files = banner + dirs.map(getFiles).reduce(function (combined, file) {
|
35
|
+
return combined + file;
|
36
|
+
}, '');
|
37
|
+
var rawFilesJs = 'docs/assets/js/raw-files.min.js';
|
38
|
+
try {
|
39
|
+
fs.writeFileSync(rawFilesJs, files);
|
40
|
+
} catch (err) {
|
41
|
+
grunt.fail.warn(err);
|
42
|
+
}
|
43
|
+
grunt.log.writeln('File ' + rawFilesJs.cyan + ' created.');
|
44
|
+
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"paths": {
|
3
|
+
"customizerJs": [
|
4
|
+
"../assets/js/vendor/autoprefixer.js",
|
5
|
+
"../assets/js/vendor/less.min.js",
|
6
|
+
"../assets/js/vendor/jszip.min.js",
|
7
|
+
"../assets/js/vendor/uglify.min.js",
|
8
|
+
"../assets/js/vendor/Blob.js",
|
9
|
+
"../assets/js/vendor/FileSaver.js",
|
10
|
+
"../assets/js/raw-files.min.js",
|
11
|
+
"../assets/js/src/customizer.js"
|
12
|
+
],
|
13
|
+
"docsJs": [
|
14
|
+
"../assets/js/vendor/holder.min.js",
|
15
|
+
"../assets/js/vendor/ZeroClipboard.min.js",
|
16
|
+
"../assets/js/vendor/anchor.js",
|
17
|
+
"../assets/js/src/application.js"
|
18
|
+
]
|
19
|
+
},
|
20
|
+
"config": {
|
21
|
+
"autoprefixerBrowsers": [
|
22
|
+
"Android 2.3",
|
23
|
+
"Android >= 4",
|
24
|
+
"Chrome >= 20",
|
25
|
+
"Firefox >= 24",
|
26
|
+
"Explorer >= 8",
|
27
|
+
"iOS >= 6",
|
28
|
+
"Opera >= 12",
|
29
|
+
"Safari >= 6"
|
30
|
+
],
|
31
|
+
"jqueryCheck": [
|
32
|
+
"if (typeof jQuery === 'undefined') {",
|
33
|
+
" throw new Error('Bootstrap\\'s JavaScript requires jQuery')",
|
34
|
+
"}\n"
|
35
|
+
],
|
36
|
+
"jqueryVersionCheck": [
|
37
|
+
"+function ($) {",
|
38
|
+
" 'use strict';",
|
39
|
+
" var version = $.fn.jquery.split(' ')[0].split('.')",
|
40
|
+
" if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {",
|
41
|
+
" throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher')",
|
42
|
+
" }",
|
43
|
+
"}(jQuery);\n\n"
|
44
|
+
]
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
[
|
2
|
+
# Docs: https://saucelabs.com/docs/platforms/webdriver
|
3
|
+
|
4
|
+
{
|
5
|
+
browserName: "safari",
|
6
|
+
platform: "OS X 10.10"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
browserName: "chrome",
|
10
|
+
platform: "OS X 10.10"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
browserName: "firefox",
|
14
|
+
platform: "OS X 10.10"
|
15
|
+
},
|
16
|
+
|
17
|
+
# Mac Opera not currently supported by Sauce Labs
|
18
|
+
|
19
|
+
{
|
20
|
+
browserName: "internet explorer",
|
21
|
+
version: "11",
|
22
|
+
platform: "Windows 8.1"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
browserName: "internet explorer",
|
26
|
+
version: "10",
|
27
|
+
platform: "Windows 8"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
browserName: "internet explorer",
|
31
|
+
version: "9",
|
32
|
+
platform: "Windows 7"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
browserName: "internet explorer",
|
36
|
+
version: "8",
|
37
|
+
platform: "Windows 7"
|
38
|
+
},
|
39
|
+
|
40
|
+
# { # Unofficial
|
41
|
+
# browserName: "internet explorer",
|
42
|
+
# version: "7",
|
43
|
+
# platform: "Windows XP"
|
44
|
+
# },
|
45
|
+
|
46
|
+
{
|
47
|
+
browserName: "chrome",
|
48
|
+
platform: "Windows 8.1"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
browserName: "firefox",
|
52
|
+
platform: "Windows 8.1"
|
53
|
+
},
|
54
|
+
|
55
|
+
# Win Opera 15+ not currently supported by Sauce Labs
|
56
|
+
|
57
|
+
{
|
58
|
+
browserName: "iphone",
|
59
|
+
platform: "OS X 10.10",
|
60
|
+
version: "8.2"
|
61
|
+
},
|
62
|
+
|
63
|
+
# iOS Chrome not currently supported by Sauce Labs
|
64
|
+
|
65
|
+
# Linux (unofficial)
|
66
|
+
{
|
67
|
+
browserName: "chrome",
|
68
|
+
platform: "Linux"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
browserName: "firefox",
|
72
|
+
platform: "Linux"
|
73
|
+
}
|
74
|
+
|
75
|
+
# Android Chrome not currently supported by Sauce Labs
|
76
|
+
|
77
|
+
# { # Android Browser (super-unofficial)
|
78
|
+
# browserName: "android",
|
79
|
+
# version: "4.0",
|
80
|
+
# platform: "Linux"
|
81
|
+
# }
|
82
|
+
]
|
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"disallowEmptyBlocks": true,
|
3
|
+
"disallowKeywords": ["with"],
|
4
|
+
"disallowMixedSpacesAndTabs": true,
|
5
|
+
"disallowMultipleLineStrings": true,
|
6
|
+
"disallowMultipleVarDecl": true,
|
7
|
+
"disallowQuotedKeysInObjects": "allButReserved",
|
8
|
+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
9
|
+
"disallowSpaceBeforeBinaryOperators": [","],
|
10
|
+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
11
|
+
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
12
|
+
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
13
|
+
"disallowSpacesInsideArrayBrackets": true,
|
14
|
+
"disallowSpacesInsideParentheses": true,
|
15
|
+
"disallowTrailingComma": true,
|
16
|
+
"disallowTrailingWhitespace": true,
|
17
|
+
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
18
|
+
"requireCapitalizedConstructors": true,
|
19
|
+
"requireCommaBeforeLineBreak": true,
|
20
|
+
"requireDollarBeforejQueryAssignment": true,
|
21
|
+
"requireDotNotation": true,
|
22
|
+
"requireLineFeedAtFileEnd": true,
|
23
|
+
"requirePaddingNewLinesAfterUseStrict": true,
|
24
|
+
"requirePaddingNewLinesBeforeExport": true,
|
25
|
+
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
26
|
+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
27
|
+
"requireSpaceAfterLineComment": true,
|
28
|
+
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
29
|
+
"requireSpaceBetweenArguments": true,
|
30
|
+
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true },
|
31
|
+
"requireSpacesInConditionalExpression": true,
|
32
|
+
"requireSpacesInForStatement": true,
|
33
|
+
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
34
|
+
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
35
|
+
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
36
|
+
"requireSpacesInsideObjectBrackets": "allButNested",
|
37
|
+
"validateAlignedFunctionParameters": true,
|
38
|
+
"validateIndentation": 2,
|
39
|
+
"validateLineBreaks": "LF",
|
40
|
+
"validateNewlineAfterArrayElements": true,
|
41
|
+
"validateQuoteMarks": "'"
|
42
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"asi" : true,
|
3
|
+
"browser" : true,
|
4
|
+
"eqeqeq" : false,
|
5
|
+
"eqnull" : true,
|
6
|
+
"es3" : true,
|
7
|
+
"expr" : true,
|
8
|
+
"jquery" : true,
|
9
|
+
"latedef" : true,
|
10
|
+
"laxbreak" : true,
|
11
|
+
"nonbsp" : true,
|
12
|
+
"strict" : true,
|
13
|
+
"undef" : true,
|
14
|
+
"unused" : true
|
15
|
+
}
|
@@ -0,0 +1,162 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: affix.js v3.3.5
|
3
|
+
* http://getbootstrap.com/javascript/#affix
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2015 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// AFFIX CLASS DEFINITION
|
14
|
+
// ======================
|
15
|
+
|
16
|
+
var Affix = function (element, options) {
|
17
|
+
this.options = $.extend({}, Affix.DEFAULTS, options)
|
18
|
+
|
19
|
+
this.$target = $(this.options.target)
|
20
|
+
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
|
21
|
+
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
|
22
|
+
|
23
|
+
this.$element = $(element)
|
24
|
+
this.affixed = null
|
25
|
+
this.unpin = null
|
26
|
+
this.pinnedOffset = null
|
27
|
+
|
28
|
+
this.checkPosition()
|
29
|
+
}
|
30
|
+
|
31
|
+
Affix.VERSION = '3.3.5'
|
32
|
+
|
33
|
+
Affix.RESET = 'affix affix-top affix-bottom'
|
34
|
+
|
35
|
+
Affix.DEFAULTS = {
|
36
|
+
offset: 0,
|
37
|
+
target: window
|
38
|
+
}
|
39
|
+
|
40
|
+
Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
|
41
|
+
var scrollTop = this.$target.scrollTop()
|
42
|
+
var position = this.$element.offset()
|
43
|
+
var targetHeight = this.$target.height()
|
44
|
+
|
45
|
+
if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
|
46
|
+
|
47
|
+
if (this.affixed == 'bottom') {
|
48
|
+
if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
|
49
|
+
return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
|
50
|
+
}
|
51
|
+
|
52
|
+
var initializing = this.affixed == null
|
53
|
+
var colliderTop = initializing ? scrollTop : position.top
|
54
|
+
var colliderHeight = initializing ? targetHeight : height
|
55
|
+
|
56
|
+
if (offsetTop != null && scrollTop <= offsetTop) return 'top'
|
57
|
+
if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
|
58
|
+
|
59
|
+
return false
|
60
|
+
}
|
61
|
+
|
62
|
+
Affix.prototype.getPinnedOffset = function () {
|
63
|
+
if (this.pinnedOffset) return this.pinnedOffset
|
64
|
+
this.$element.removeClass(Affix.RESET).addClass('affix')
|
65
|
+
var scrollTop = this.$target.scrollTop()
|
66
|
+
var position = this.$element.offset()
|
67
|
+
return (this.pinnedOffset = position.top - scrollTop)
|
68
|
+
}
|
69
|
+
|
70
|
+
Affix.prototype.checkPositionWithEventLoop = function () {
|
71
|
+
setTimeout($.proxy(this.checkPosition, this), 1)
|
72
|
+
}
|
73
|
+
|
74
|
+
Affix.prototype.checkPosition = function () {
|
75
|
+
if (!this.$element.is(':visible')) return
|
76
|
+
|
77
|
+
var height = this.$element.height()
|
78
|
+
var offset = this.options.offset
|
79
|
+
var offsetTop = offset.top
|
80
|
+
var offsetBottom = offset.bottom
|
81
|
+
var scrollHeight = Math.max($(document).height(), $(document.body).height())
|
82
|
+
|
83
|
+
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
84
|
+
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
|
85
|
+
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
|
86
|
+
|
87
|
+
var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
|
88
|
+
|
89
|
+
if (this.affixed != affix) {
|
90
|
+
if (this.unpin != null) this.$element.css('top', '')
|
91
|
+
|
92
|
+
var affixType = 'affix' + (affix ? '-' + affix : '')
|
93
|
+
var e = $.Event(affixType + '.bs.affix')
|
94
|
+
|
95
|
+
this.$element.trigger(e)
|
96
|
+
|
97
|
+
if (e.isDefaultPrevented()) return
|
98
|
+
|
99
|
+
this.affixed = affix
|
100
|
+
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
|
101
|
+
|
102
|
+
this.$element
|
103
|
+
.removeClass(Affix.RESET)
|
104
|
+
.addClass(affixType)
|
105
|
+
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
|
106
|
+
}
|
107
|
+
|
108
|
+
if (affix == 'bottom') {
|
109
|
+
this.$element.offset({
|
110
|
+
top: scrollHeight - height - offsetBottom
|
111
|
+
})
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
// AFFIX PLUGIN DEFINITION
|
117
|
+
// =======================
|
118
|
+
|
119
|
+
function Plugin(option) {
|
120
|
+
return this.each(function () {
|
121
|
+
var $this = $(this)
|
122
|
+
var data = $this.data('bs.affix')
|
123
|
+
var options = typeof option == 'object' && option
|
124
|
+
|
125
|
+
if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
|
126
|
+
if (typeof option == 'string') data[option]()
|
127
|
+
})
|
128
|
+
}
|
129
|
+
|
130
|
+
var old = $.fn.affix
|
131
|
+
|
132
|
+
$.fn.affix = Plugin
|
133
|
+
$.fn.affix.Constructor = Affix
|
134
|
+
|
135
|
+
|
136
|
+
// AFFIX NO CONFLICT
|
137
|
+
// =================
|
138
|
+
|
139
|
+
$.fn.affix.noConflict = function () {
|
140
|
+
$.fn.affix = old
|
141
|
+
return this
|
142
|
+
}
|
143
|
+
|
144
|
+
|
145
|
+
// AFFIX DATA-API
|
146
|
+
// ==============
|
147
|
+
|
148
|
+
$(window).on('load', function () {
|
149
|
+
$('[data-spy="affix"]').each(function () {
|
150
|
+
var $spy = $(this)
|
151
|
+
var data = $spy.data()
|
152
|
+
|
153
|
+
data.offset = data.offset || {}
|
154
|
+
|
155
|
+
if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
|
156
|
+
if (data.offsetTop != null) data.offset.top = data.offsetTop
|
157
|
+
|
158
|
+
Plugin.call($spy, data)
|
159
|
+
})
|
160
|
+
})
|
161
|
+
|
162
|
+
}(jQuery);
|