burp_cms 1.3.13 → 1.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/app/assets/images/burp/add-image-2.jpg +0 -0
- data/app/assets/images/burp/add-image-3.jpg +0 -0
- data/app/assets/images/burp/add-image-4.jpg +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-2.jpg +0 -0
- data/app/assets/images/burp/remove-image-3.jpg +0 -0
- data/app/assets/images/burp/remove-image-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-5.jpg +0 -0
- data/app/views/burp/static/help.html.erb +8 -8
- data/lib/burp/version.rb +1 -1
- metadata +95 -234
- data/app/assets/images/burp/add-image-2.png +0 -0
- data/app/assets/images/burp/add-image-3.png +0 -0
- data/app/assets/images/burp/add-image-4.png +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
- data/app/assets/images/burp/remove-image-2.png +0 -0
- data/app/assets/images/burp/remove-image-3.png +0 -0
- data/app/assets/images/burp/remove-image-4.png +0 -0
- data/app/assets/images/burp/remove-image-5.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,727 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: CoffeeScript mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="coffeescript.js"></script>
|
8
|
-
<style>.CodeMirror {border-top: 1px solid silver; border-bottom: 1px solid silver;}</style>
|
9
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<h1>CodeMirror: CoffeeScript mode</h1>
|
13
|
-
<form><textarea id="code" name="code">
|
14
|
-
# CoffeeScript mode for CodeMirror
|
15
|
-
# Copyright (c) 2011 Jeff Pickhardt, released under
|
16
|
-
# the MIT License.
|
17
|
-
#
|
18
|
-
# Modified from the Python CodeMirror mode, which also is
|
19
|
-
# under the MIT License Copyright (c) 2010 Timothy Farrell.
|
20
|
-
#
|
21
|
-
# The following script, Underscore.coffee, is used to
|
22
|
-
# demonstrate CoffeeScript mode for CodeMirror.
|
23
|
-
#
|
24
|
-
# To download CoffeeScript mode for CodeMirror, go to:
|
25
|
-
# https://github.com/pickhardt/coffeescript-codemirror-mode
|
26
|
-
|
27
|
-
# **Underscore.coffee
|
28
|
-
# (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.**
|
29
|
-
# Underscore is freely distributable under the terms of the
|
30
|
-
# [MIT license](http://en.wikipedia.org/wiki/MIT_License).
|
31
|
-
# Portions of Underscore are inspired by or borrowed from
|
32
|
-
# [Prototype.js](http://prototypejs.org/api), Oliver Steele's
|
33
|
-
# [Functional](http://osteele.com), and John Resig's
|
34
|
-
# [Micro-Templating](http://ejohn.org).
|
35
|
-
# For all details and documentation:
|
36
|
-
# http://documentcloud.github.com/underscore/
|
37
|
-
|
38
|
-
|
39
|
-
# Baseline setup
|
40
|
-
# --------------
|
41
|
-
|
42
|
-
# Establish the root object, `window` in the browser, or `global` on the server.
|
43
|
-
root = this
|
44
|
-
|
45
|
-
|
46
|
-
# Save the previous value of the `_` variable.
|
47
|
-
previousUnderscore = root._
|
48
|
-
|
49
|
-
### Multiline
|
50
|
-
comment
|
51
|
-
###
|
52
|
-
|
53
|
-
# Establish the object that gets thrown to break out of a loop iteration.
|
54
|
-
# `StopIteration` is SOP on Mozilla.
|
55
|
-
breaker = if typeof(StopIteration) is 'undefined' then '__break__' else StopIteration
|
56
|
-
|
57
|
-
|
58
|
-
#### Docco style single line comment (title)
|
59
|
-
|
60
|
-
|
61
|
-
# Helper function to escape **RegExp** contents, because JS doesn't have one.
|
62
|
-
escapeRegExp = (string) -> string.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1')
|
63
|
-
|
64
|
-
|
65
|
-
# Save bytes in the minified (but not gzipped) version:
|
66
|
-
ArrayProto = Array.prototype
|
67
|
-
ObjProto = Object.prototype
|
68
|
-
|
69
|
-
|
70
|
-
# Create quick reference variables for speed access to core prototypes.
|
71
|
-
slice = ArrayProto.slice
|
72
|
-
unshift = ArrayProto.unshift
|
73
|
-
toString = ObjProto.toString
|
74
|
-
hasOwnProperty = ObjProto.hasOwnProperty
|
75
|
-
propertyIsEnumerable = ObjProto.propertyIsEnumerable
|
76
|
-
|
77
|
-
|
78
|
-
# All **ECMA5** native implementations we hope to use are declared here.
|
79
|
-
nativeForEach = ArrayProto.forEach
|
80
|
-
nativeMap = ArrayProto.map
|
81
|
-
nativeReduce = ArrayProto.reduce
|
82
|
-
nativeReduceRight = ArrayProto.reduceRight
|
83
|
-
nativeFilter = ArrayProto.filter
|
84
|
-
nativeEvery = ArrayProto.every
|
85
|
-
nativeSome = ArrayProto.some
|
86
|
-
nativeIndexOf = ArrayProto.indexOf
|
87
|
-
nativeLastIndexOf = ArrayProto.lastIndexOf
|
88
|
-
nativeIsArray = Array.isArray
|
89
|
-
nativeKeys = Object.keys
|
90
|
-
|
91
|
-
|
92
|
-
# Create a safe reference to the Underscore object for use below.
|
93
|
-
_ = (obj) -> new wrapper(obj)
|
94
|
-
|
95
|
-
|
96
|
-
# Export the Underscore object for **CommonJS**.
|
97
|
-
if typeof(exports) != 'undefined' then exports._ = _
|
98
|
-
|
99
|
-
|
100
|
-
# Export Underscore to global scope.
|
101
|
-
root._ = _
|
102
|
-
|
103
|
-
|
104
|
-
# Current version.
|
105
|
-
_.VERSION = '1.1.0'
|
106
|
-
|
107
|
-
|
108
|
-
# Collection Functions
|
109
|
-
# --------------------
|
110
|
-
|
111
|
-
# The cornerstone, an **each** implementation.
|
112
|
-
# Handles objects implementing **forEach**, arrays, and raw objects.
|
113
|
-
_.each = (obj, iterator, context) ->
|
114
|
-
try
|
115
|
-
if nativeForEach and obj.forEach is nativeForEach
|
116
|
-
obj.forEach iterator, context
|
117
|
-
else if _.isNumber obj.length
|
118
|
-
iterator.call context, obj[i], i, obj for i in [0...obj.length]
|
119
|
-
else
|
120
|
-
iterator.call context, val, key, obj for own key, val of obj
|
121
|
-
catch e
|
122
|
-
throw e if e isnt breaker
|
123
|
-
obj
|
124
|
-
|
125
|
-
|
126
|
-
# Return the results of applying the iterator to each element. Use JavaScript
|
127
|
-
# 1.6's version of **map**, if possible.
|
128
|
-
_.map = (obj, iterator, context) ->
|
129
|
-
return obj.map(iterator, context) if nativeMap and obj.map is nativeMap
|
130
|
-
results = []
|
131
|
-
_.each obj, (value, index, list) ->
|
132
|
-
results.push iterator.call context, value, index, list
|
133
|
-
results
|
134
|
-
|
135
|
-
|
136
|
-
# **Reduce** builds up a single result from a list of values. Also known as
|
137
|
-
# **inject**, or **foldl**. Uses JavaScript 1.8's version of **reduce**, if possible.
|
138
|
-
_.reduce = (obj, iterator, memo, context) ->
|
139
|
-
if nativeReduce and obj.reduce is nativeReduce
|
140
|
-
iterator = _.bind iterator, context if context
|
141
|
-
return obj.reduce iterator, memo
|
142
|
-
_.each obj, (value, index, list) ->
|
143
|
-
memo = iterator.call context, memo, value, index, list
|
144
|
-
memo
|
145
|
-
|
146
|
-
|
147
|
-
# The right-associative version of **reduce**, also known as **foldr**. Uses
|
148
|
-
# JavaScript 1.8's version of **reduceRight**, if available.
|
149
|
-
_.reduceRight = (obj, iterator, memo, context) ->
|
150
|
-
if nativeReduceRight and obj.reduceRight is nativeReduceRight
|
151
|
-
iterator = _.bind iterator, context if context
|
152
|
-
return obj.reduceRight iterator, memo
|
153
|
-
reversed = _.clone(_.toArray(obj)).reverse()
|
154
|
-
_.reduce reversed, iterator, memo, context
|
155
|
-
|
156
|
-
|
157
|
-
# Return the first value which passes a truth test.
|
158
|
-
_.detect = (obj, iterator, context) ->
|
159
|
-
result = null
|
160
|
-
_.each obj, (value, index, list) ->
|
161
|
-
if iterator.call context, value, index, list
|
162
|
-
result = value
|
163
|
-
_.breakLoop()
|
164
|
-
result
|
165
|
-
|
166
|
-
|
167
|
-
# Return all the elements that pass a truth test. Use JavaScript 1.6's
|
168
|
-
# **filter**, if it exists.
|
169
|
-
_.filter = (obj, iterator, context) ->
|
170
|
-
return obj.filter iterator, context if nativeFilter and obj.filter is nativeFilter
|
171
|
-
results = []
|
172
|
-
_.each obj, (value, index, list) ->
|
173
|
-
results.push value if iterator.call context, value, index, list
|
174
|
-
results
|
175
|
-
|
176
|
-
|
177
|
-
# Return all the elements for which a truth test fails.
|
178
|
-
_.reject = (obj, iterator, context) ->
|
179
|
-
results = []
|
180
|
-
_.each obj, (value, index, list) ->
|
181
|
-
results.push value if not iterator.call context, value, index, list
|
182
|
-
results
|
183
|
-
|
184
|
-
|
185
|
-
# Determine whether all of the elements match a truth test. Delegate to
|
186
|
-
# JavaScript 1.6's **every**, if it is present.
|
187
|
-
_.every = (obj, iterator, context) ->
|
188
|
-
iterator ||= _.identity
|
189
|
-
return obj.every iterator, context if nativeEvery and obj.every is nativeEvery
|
190
|
-
result = true
|
191
|
-
_.each obj, (value, index, list) ->
|
192
|
-
_.breakLoop() unless (result = result and iterator.call(context, value, index, list))
|
193
|
-
result
|
194
|
-
|
195
|
-
|
196
|
-
# Determine if at least one element in the object matches a truth test. Use
|
197
|
-
# JavaScript 1.6's **some**, if it exists.
|
198
|
-
_.some = (obj, iterator, context) ->
|
199
|
-
iterator ||= _.identity
|
200
|
-
return obj.some iterator, context if nativeSome and obj.some is nativeSome
|
201
|
-
result = false
|
202
|
-
_.each obj, (value, index, list) ->
|
203
|
-
_.breakLoop() if (result = iterator.call(context, value, index, list))
|
204
|
-
result
|
205
|
-
|
206
|
-
|
207
|
-
# Determine if a given value is included in the array or object,
|
208
|
-
# based on `===`.
|
209
|
-
_.include = (obj, target) ->
|
210
|
-
return _.indexOf(obj, target) isnt -1 if nativeIndexOf and obj.indexOf is nativeIndexOf
|
211
|
-
return true for own key, val of obj when val is target
|
212
|
-
false
|
213
|
-
|
214
|
-
|
215
|
-
# Invoke a method with arguments on every item in a collection.
|
216
|
-
_.invoke = (obj, method) ->
|
217
|
-
args = _.rest arguments, 2
|
218
|
-
(if method then val[method] else val).apply(val, args) for val in obj
|
219
|
-
|
220
|
-
|
221
|
-
# Convenience version of a common use case of **map**: fetching a property.
|
222
|
-
_.pluck = (obj, key) ->
|
223
|
-
_.map(obj, (val) -> val[key])
|
224
|
-
|
225
|
-
|
226
|
-
# Return the maximum item or (item-based computation).
|
227
|
-
_.max = (obj, iterator, context) ->
|
228
|
-
return Math.max.apply(Math, obj) if not iterator and _.isArray(obj)
|
229
|
-
result = computed: -Infinity
|
230
|
-
_.each obj, (value, index, list) ->
|
231
|
-
computed = if iterator then iterator.call(context, value, index, list) else value
|
232
|
-
computed >= result.computed and (result = {value: value, computed: computed})
|
233
|
-
result.value
|
234
|
-
|
235
|
-
|
236
|
-
# Return the minimum element (or element-based computation).
|
237
|
-
_.min = (obj, iterator, context) ->
|
238
|
-
return Math.min.apply(Math, obj) if not iterator and _.isArray(obj)
|
239
|
-
result = computed: Infinity
|
240
|
-
_.each obj, (value, index, list) ->
|
241
|
-
computed = if iterator then iterator.call(context, value, index, list) else value
|
242
|
-
computed < result.computed and (result = {value: value, computed: computed})
|
243
|
-
result.value
|
244
|
-
|
245
|
-
|
246
|
-
# Sort the object's values by a criterion produced by an iterator.
|
247
|
-
_.sortBy = (obj, iterator, context) ->
|
248
|
-
_.pluck(((_.map obj, (value, index, list) ->
|
249
|
-
{value: value, criteria: iterator.call(context, value, index, list)}
|
250
|
-
).sort((left, right) ->
|
251
|
-
a = left.criteria; b = right.criteria
|
252
|
-
if a < b then -1 else if a > b then 1 else 0
|
253
|
-
)), 'value')
|
254
|
-
|
255
|
-
|
256
|
-
# Use a comparator function to figure out at what index an object should
|
257
|
-
# be inserted so as to maintain order. Uses binary search.
|
258
|
-
_.sortedIndex = (array, obj, iterator) ->
|
259
|
-
iterator ||= _.identity
|
260
|
-
low = 0
|
261
|
-
high = array.length
|
262
|
-
while low < high
|
263
|
-
mid = (low + high) >> 1
|
264
|
-
if iterator(array[mid]) < iterator(obj) then low = mid + 1 else high = mid
|
265
|
-
low
|
266
|
-
|
267
|
-
|
268
|
-
# Convert anything iterable into a real, live array.
|
269
|
-
_.toArray = (iterable) ->
|
270
|
-
return [] if (!iterable)
|
271
|
-
return iterable.toArray() if (iterable.toArray)
|
272
|
-
return iterable if (_.isArray(iterable))
|
273
|
-
return slice.call(iterable) if (_.isArguments(iterable))
|
274
|
-
_.values(iterable)
|
275
|
-
|
276
|
-
|
277
|
-
# Return the number of elements in an object.
|
278
|
-
_.size = (obj) -> _.toArray(obj).length
|
279
|
-
|
280
|
-
|
281
|
-
# Array Functions
|
282
|
-
# ---------------
|
283
|
-
|
284
|
-
# Get the first element of an array. Passing `n` will return the first N
|
285
|
-
# values in the array. Aliased as **head**. The `guard` check allows it to work
|
286
|
-
# with **map**.
|
287
|
-
_.first = (array, n, guard) ->
|
288
|
-
if n and not guard then slice.call(array, 0, n) else array[0]
|
289
|
-
|
290
|
-
|
291
|
-
# Returns everything but the first entry of the array. Aliased as **tail**.
|
292
|
-
# Especially useful on the arguments object. Passing an `index` will return
|
293
|
-
# the rest of the values in the array from that index onward. The `guard`
|
294
|
-
# check allows it to work with **map**.
|
295
|
-
_.rest = (array, index, guard) ->
|
296
|
-
slice.call(array, if _.isUndefined(index) or guard then 1 else index)
|
297
|
-
|
298
|
-
|
299
|
-
# Get the last element of an array.
|
300
|
-
_.last = (array) -> array[array.length - 1]
|
301
|
-
|
302
|
-
|
303
|
-
# Trim out all falsy values from an array.
|
304
|
-
_.compact = (array) -> item for item in array when item
|
305
|
-
|
306
|
-
|
307
|
-
# Return a completely flattened version of an array.
|
308
|
-
_.flatten = (array) ->
|
309
|
-
_.reduce array, (memo, value) ->
|
310
|
-
return memo.concat(_.flatten(value)) if _.isArray value
|
311
|
-
memo.push value
|
312
|
-
memo
|
313
|
-
, []
|
314
|
-
|
315
|
-
|
316
|
-
# Return a version of the array that does not contain the specified value(s).
|
317
|
-
_.without = (array) ->
|
318
|
-
values = _.rest arguments
|
319
|
-
val for val in _.toArray(array) when not _.include values, val
|
320
|
-
|
321
|
-
|
322
|
-
# Produce a duplicate-free version of the array. If the array has already
|
323
|
-
# been sorted, you have the option of using a faster algorithm.
|
324
|
-
_.uniq = (array, isSorted) ->
|
325
|
-
memo = []
|
326
|
-
for el, i in _.toArray array
|
327
|
-
memo.push el if i is 0 || (if isSorted is true then _.last(memo) isnt el else not _.include(memo, el))
|
328
|
-
memo
|
329
|
-
|
330
|
-
|
331
|
-
# Produce an array that contains every item shared between all the
|
332
|
-
# passed-in arrays.
|
333
|
-
_.intersect = (array) ->
|
334
|
-
rest = _.rest arguments
|
335
|
-
_.select _.uniq(array), (item) ->
|
336
|
-
_.all rest, (other) ->
|
337
|
-
_.indexOf(other, item) >= 0
|
338
|
-
|
339
|
-
|
340
|
-
# Zip together multiple lists into a single array -- elements that share
|
341
|
-
# an index go together.
|
342
|
-
_.zip = ->
|
343
|
-
length = _.max _.pluck arguments, 'length'
|
344
|
-
results = new Array length
|
345
|
-
for i in [0...length]
|
346
|
-
results[i] = _.pluck arguments, String i
|
347
|
-
results
|
348
|
-
|
349
|
-
|
350
|
-
# If the browser doesn't supply us with **indexOf** (I'm looking at you, MSIE),
|
351
|
-
# we need this function. Return the position of the first occurrence of an
|
352
|
-
# item in an array, or -1 if the item is not included in the array.
|
353
|
-
_.indexOf = (array, item) ->
|
354
|
-
return array.indexOf item if nativeIndexOf and array.indexOf is nativeIndexOf
|
355
|
-
i = 0; l = array.length
|
356
|
-
while l - i
|
357
|
-
if array[i] is item then return i else i++
|
358
|
-
-1
|
359
|
-
|
360
|
-
|
361
|
-
# Provide JavaScript 1.6's **lastIndexOf**, delegating to the native function,
|
362
|
-
# if possible.
|
363
|
-
_.lastIndexOf = (array, item) ->
|
364
|
-
return array.lastIndexOf(item) if nativeLastIndexOf and array.lastIndexOf is nativeLastIndexOf
|
365
|
-
i = array.length
|
366
|
-
while i
|
367
|
-
if array[i] is item then return i else i--
|
368
|
-
-1
|
369
|
-
|
370
|
-
|
371
|
-
# Generate an integer Array containing an arithmetic progression. A port of
|
372
|
-
# [the native Python **range** function](http://docs.python.org/library/functions.html#range).
|
373
|
-
_.range = (start, stop, step) ->
|
374
|
-
a = arguments
|
375
|
-
solo = a.length <= 1
|
376
|
-
i = start = if solo then 0 else a[0]
|
377
|
-
stop = if solo then a[0] else a[1]
|
378
|
-
step = a[2] or 1
|
379
|
-
len = Math.ceil((stop - start) / step)
|
380
|
-
return [] if len <= 0
|
381
|
-
range = new Array len
|
382
|
-
idx = 0
|
383
|
-
loop
|
384
|
-
return range if (if step > 0 then i - stop else stop - i) >= 0
|
385
|
-
range[idx] = i
|
386
|
-
idx++
|
387
|
-
i+= step
|
388
|
-
|
389
|
-
|
390
|
-
# Function Functions
|
391
|
-
# ------------------
|
392
|
-
|
393
|
-
# Create a function bound to a given object (assigning `this`, and arguments,
|
394
|
-
# optionally). Binding with arguments is also known as **curry**.
|
395
|
-
_.bind = (func, obj) ->
|
396
|
-
args = _.rest arguments, 2
|
397
|
-
-> func.apply obj or root, args.concat arguments
|
398
|
-
|
399
|
-
|
400
|
-
# Bind all of an object's methods to that object. Useful for ensuring that
|
401
|
-
# all callbacks defined on an object belong to it.
|
402
|
-
_.bindAll = (obj) ->
|
403
|
-
funcs = if arguments.length > 1 then _.rest(arguments) else _.functions(obj)
|
404
|
-
_.each funcs, (f) -> obj[f] = _.bind obj[f], obj
|
405
|
-
obj
|
406
|
-
|
407
|
-
|
408
|
-
# Delays a function for the given number of milliseconds, and then calls
|
409
|
-
# it with the arguments supplied.
|
410
|
-
_.delay = (func, wait) ->
|
411
|
-
args = _.rest arguments, 2
|
412
|
-
setTimeout((-> func.apply(func, args)), wait)
|
413
|
-
|
414
|
-
|
415
|
-
# Memoize an expensive function by storing its results.
|
416
|
-
_.memoize = (func, hasher) ->
|
417
|
-
memo = {}
|
418
|
-
hasher or= _.identity
|
419
|
-
->
|
420
|
-
key = hasher.apply this, arguments
|
421
|
-
return memo[key] if key of memo
|
422
|
-
memo[key] = func.apply this, arguments
|
423
|
-
|
424
|
-
|
425
|
-
# Defers a function, scheduling it to run after the current call stack has
|
426
|
-
# cleared.
|
427
|
-
_.defer = (func) ->
|
428
|
-
_.delay.apply _, [func, 1].concat _.rest arguments
|
429
|
-
|
430
|
-
|
431
|
-
# Returns the first function passed as an argument to the second,
|
432
|
-
# allowing you to adjust arguments, run code before and after, and
|
433
|
-
# conditionally execute the original function.
|
434
|
-
_.wrap = (func, wrapper) ->
|
435
|
-
-> wrapper.apply wrapper, [func].concat arguments
|
436
|
-
|
437
|
-
|
438
|
-
# Returns a function that is the composition of a list of functions, each
|
439
|
-
# consuming the return value of the function that follows.
|
440
|
-
_.compose = ->
|
441
|
-
funcs = arguments
|
442
|
-
->
|
443
|
-
args = arguments
|
444
|
-
for i in [funcs.length - 1..0] by -1
|
445
|
-
args = [funcs[i].apply(this, args)]
|
446
|
-
args[0]
|
447
|
-
|
448
|
-
|
449
|
-
# Object Functions
|
450
|
-
# ----------------
|
451
|
-
|
452
|
-
# Retrieve the names of an object's properties.
|
453
|
-
_.keys = nativeKeys or (obj) ->
|
454
|
-
return _.range 0, obj.length if _.isArray(obj)
|
455
|
-
key for key, val of obj
|
456
|
-
|
457
|
-
|
458
|
-
# Retrieve the values of an object's properties.
|
459
|
-
_.values = (obj) ->
|
460
|
-
_.map obj, _.identity
|
461
|
-
|
462
|
-
|
463
|
-
# Return a sorted list of the function names available in Underscore.
|
464
|
-
_.functions = (obj) ->
|
465
|
-
_.filter(_.keys(obj), (key) -> _.isFunction(obj[key])).sort()
|
466
|
-
|
467
|
-
|
468
|
-
# Extend a given object with all of the properties in a source object.
|
469
|
-
_.extend = (obj) ->
|
470
|
-
for source in _.rest(arguments)
|
471
|
-
obj[key] = val for key, val of source
|
472
|
-
obj
|
473
|
-
|
474
|
-
|
475
|
-
# Create a (shallow-cloned) duplicate of an object.
|
476
|
-
_.clone = (obj) ->
|
477
|
-
return obj.slice 0 if _.isArray obj
|
478
|
-
_.extend {}, obj
|
479
|
-
|
480
|
-
|
481
|
-
# Invokes interceptor with the obj, and then returns obj.
|
482
|
-
# The primary purpose of this method is to "tap into" a method chain,
|
483
|
-
# in order to perform operations on intermediate results within
|
484
|
-
the chain.
|
485
|
-
_.tap = (obj, interceptor) ->
|
486
|
-
interceptor obj
|
487
|
-
obj
|
488
|
-
|
489
|
-
|
490
|
-
# Perform a deep comparison to check if two objects are equal.
|
491
|
-
_.isEqual = (a, b) ->
|
492
|
-
# Check object identity.
|
493
|
-
return true if a is b
|
494
|
-
# Different types?
|
495
|
-
atype = typeof(a); btype = typeof(b)
|
496
|
-
return false if atype isnt btype
|
497
|
-
# Basic equality test (watch out for coercions).
|
498
|
-
return true if `a == b`
|
499
|
-
# One is falsy and the other truthy.
|
500
|
-
return false if (!a and b) or (a and !b)
|
501
|
-
# One of them implements an `isEqual()`?
|
502
|
-
return a.isEqual(b) if a.isEqual
|
503
|
-
# Check dates' integer values.
|
504
|
-
return a.getTime() is b.getTime() if _.isDate(a) and _.isDate(b)
|
505
|
-
# Both are NaN?
|
506
|
-
return false if _.isNaN(a) and _.isNaN(b)
|
507
|
-
# Compare regular expressions.
|
508
|
-
if _.isRegExp(a) and _.isRegExp(b)
|
509
|
-
return a.source is b.source and
|
510
|
-
a.global is b.global and
|
511
|
-
a.ignoreCase is b.ignoreCase and
|
512
|
-
a.multiline is b.multiline
|
513
|
-
# If a is not an object by this point, we can't handle it.
|
514
|
-
return false if atype isnt 'object'
|
515
|
-
# Check for different array lengths before comparing contents.
|
516
|
-
return false if a.length and (a.length isnt b.length)
|
517
|
-
# Nothing else worked, deep compare the contents.
|
518
|
-
aKeys = _.keys(a); bKeys = _.keys(b)
|
519
|
-
# Different object sizes?
|
520
|
-
return false if aKeys.length isnt bKeys.length
|
521
|
-
# Recursive comparison of contents.
|
522
|
-
return false for key, val of a when !(key of b) or !_.isEqual(val, b[key])
|
523
|
-
true
|
524
|
-
|
525
|
-
|
526
|
-
# Is a given array or object empty?
|
527
|
-
_.isEmpty = (obj) ->
|
528
|
-
return obj.length is 0 if _.isArray(obj) or _.isString(obj)
|
529
|
-
return false for own key of obj
|
530
|
-
true
|
531
|
-
|
532
|
-
|
533
|
-
# Is a given value a DOM element?
|
534
|
-
_.isElement = (obj) -> obj and obj.nodeType is 1
|
535
|
-
|
536
|
-
|
537
|
-
# Is a given value an array?
|
538
|
-
_.isArray = nativeIsArray or (obj) -> !!(obj and obj.concat and obj.unshift and not obj.callee)
|
539
|
-
|
540
|
-
|
541
|
-
# Is a given variable an arguments object?
|
542
|
-
_.isArguments = (obj) -> obj and obj.callee
|
543
|
-
|
544
|
-
|
545
|
-
# Is the given value a function?
|
546
|
-
_.isFunction = (obj) -> !!(obj and obj.constructor and obj.call and obj.apply)
|
547
|
-
|
548
|
-
|
549
|
-
# Is the given value a string?
|
550
|
-
_.isString = (obj) -> !!(obj is '' or (obj and obj.charCodeAt and obj.substr))
|
551
|
-
|
552
|
-
|
553
|
-
# Is a given value a number?
|
554
|
-
_.isNumber = (obj) -> (obj is +obj) or toString.call(obj) is '[object Number]'
|
555
|
-
|
556
|
-
|
557
|
-
# Is a given value a boolean?
|
558
|
-
_.isBoolean = (obj) -> obj is true or obj is false
|
559
|
-
|
560
|
-
|
561
|
-
# Is a given value a Date?
|
562
|
-
_.isDate = (obj) -> !!(obj and obj.getTimezoneOffset and obj.setUTCFullYear)
|
563
|
-
|
564
|
-
|
565
|
-
# Is the given value a regular expression?
|
566
|
-
_.isRegExp = (obj) -> !!(obj and obj.exec and (obj.ignoreCase or obj.ignoreCase is false))
|
567
|
-
|
568
|
-
|
569
|
-
# Is the given value NaN -- this one is interesting. `NaN != NaN`, and
|
570
|
-
# `isNaN(undefined) == true`, so we make sure it's a number first.
|
571
|
-
_.isNaN = (obj) -> _.isNumber(obj) and window.isNaN(obj)
|
572
|
-
|
573
|
-
|
574
|
-
# Is a given value equal to null?
|
575
|
-
_.isNull = (obj) -> obj is null
|
576
|
-
|
577
|
-
|
578
|
-
# Is a given variable undefined?
|
579
|
-
_.isUndefined = (obj) -> typeof obj is 'undefined'
|
580
|
-
|
581
|
-
|
582
|
-
# Utility Functions
|
583
|
-
# -----------------
|
584
|
-
|
585
|
-
# Run Underscore.js in noConflict mode, returning the `_` variable to its
|
586
|
-
# previous owner. Returns a reference to the Underscore object.
|
587
|
-
_.noConflict = ->
|
588
|
-
root._ = previousUnderscore
|
589
|
-
this
|
590
|
-
|
591
|
-
|
592
|
-
# Keep the identity function around for default iterators.
|
593
|
-
_.identity = (value) -> value
|
594
|
-
|
595
|
-
|
596
|
-
# Run a function `n` times.
|
597
|
-
_.times = (n, iterator, context) ->
|
598
|
-
iterator.call context, i for i in [0...n]
|
599
|
-
|
600
|
-
|
601
|
-
# Break out of the middle of an iteration.
|
602
|
-
_.breakLoop = -> throw breaker
|
603
|
-
|
604
|
-
|
605
|
-
# Add your own custom functions to the Underscore object, ensuring that
|
606
|
-
# they're correctly added to the OOP wrapper as well.
|
607
|
-
_.mixin = (obj) ->
|
608
|
-
for name in _.functions(obj)
|
609
|
-
addToWrapper name, _[name] = obj[name]
|
610
|
-
|
611
|
-
|
612
|
-
# Generate a unique integer id (unique within the entire client session).
|
613
|
-
# Useful for temporary DOM ids.
|
614
|
-
idCounter = 0
|
615
|
-
_.uniqueId = (prefix) ->
|
616
|
-
(prefix or '') + idCounter++
|
617
|
-
|
618
|
-
|
619
|
-
# By default, Underscore uses **ERB**-style template delimiters, change the
|
620
|
-
# following template settings to use alternative delimiters.
|
621
|
-
_.templateSettings = {
|
622
|
-
start: '<%'
|
623
|
-
end: '%>'
|
624
|
-
interpolate: /<%=(.+?)%>/g
|
625
|
-
}
|
626
|
-
|
627
|
-
|
628
|
-
# JavaScript templating a-la **ERB**, pilfered from John Resig's
|
629
|
-
# *Secrets of the JavaScript Ninja*, page 83.
|
630
|
-
# Single-quote fix from Rick Strahl.
|
631
|
-
# With alterations for arbitrary delimiters, and to preserve whitespace.
|
632
|
-
_.template = (str, data) ->
|
633
|
-
c = _.templateSettings
|
634
|
-
endMatch = new RegExp("'(?=[^"+c.end.substr(0, 1)+"]*"+escapeRegExp(c.end)+")","g")
|
635
|
-
fn = new Function 'obj',
|
636
|
-
'var p=[],print=function(){p.push.apply(p,arguments);};' +
|
637
|
-
'with(obj||{}){p.push(\'' +
|
638
|
-
str.replace(/\r/g, '\\r')
|
639
|
-
.replace(/\n/g, '\\n')
|
640
|
-
.replace(/\t/g, '\\t')
|
641
|
-
.replace(endMatch,"���")
|
642
|
-
.split("'").join("\\'")
|
643
|
-
.split("���").join("'")
|
644
|
-
.replace(c.interpolate, "',$1,'")
|
645
|
-
.split(c.start).join("');")
|
646
|
-
.split(c.end).join("p.push('") +
|
647
|
-
"');}return p.join('');"
|
648
|
-
if data then fn(data) else fn
|
649
|
-
|
650
|
-
|
651
|
-
# Aliases
|
652
|
-
# -------
|
653
|
-
|
654
|
-
_.forEach = _.each
|
655
|
-
_.foldl = _.inject = _.reduce
|
656
|
-
_.foldr = _.reduceRight
|
657
|
-
_.select = _.filter
|
658
|
-
_.all = _.every
|
659
|
-
_.any = _.some
|
660
|
-
_.contains = _.include
|
661
|
-
_.head = _.first
|
662
|
-
_.tail = _.rest
|
663
|
-
_.methods = _.functions
|
664
|
-
|
665
|
-
|
666
|
-
# Setup the OOP Wrapper
|
667
|
-
# ---------------------
|
668
|
-
|
669
|
-
# If Underscore is called as a function, it returns a wrapped object that
|
670
|
-
# can be used OO-style. This wrapper holds altered versions of all the
|
671
|
-
# underscore functions. Wrapped objects may be chained.
|
672
|
-
wrapper = (obj) ->
|
673
|
-
this._wrapped = obj
|
674
|
-
this
|
675
|
-
|
676
|
-
|
677
|
-
# Helper function to continue chaining intermediate results.
|
678
|
-
result = (obj, chain) ->
|
679
|
-
if chain then _(obj).chain() else obj
|
680
|
-
|
681
|
-
|
682
|
-
# A method to easily add functions to the OOP wrapper.
|
683
|
-
addToWrapper = (name, func) ->
|
684
|
-
wrapper.prototype[name] = ->
|
685
|
-
args = _.toArray arguments
|
686
|
-
unshift.call args, this._wrapped
|
687
|
-
result func.apply(_, args), this._chain
|
688
|
-
|
689
|
-
|
690
|
-
# Add all ofthe Underscore functions to the wrapper object.
|
691
|
-
_.mixin _
|
692
|
-
|
693
|
-
|
694
|
-
# Add all mutator Array functions to the wrapper.
|
695
|
-
_.each ['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], (name) ->
|
696
|
-
method = Array.prototype[name]
|
697
|
-
wrapper.prototype[name] = ->
|
698
|
-
method.apply(this._wrapped, arguments)
|
699
|
-
result(this._wrapped, this._chain)
|
700
|
-
|
701
|
-
|
702
|
-
# Add all accessor Array functions to the wrapper.
|
703
|
-
_.each ['concat', 'join', 'slice'], (name) ->
|
704
|
-
method = Array.prototype[name]
|
705
|
-
wrapper.prototype[name] = ->
|
706
|
-
result(method.apply(this._wrapped, arguments), this._chain)
|
707
|
-
|
708
|
-
|
709
|
-
# Start chaining a wrapped Underscore object.
|
710
|
-
wrapper::chain = ->
|
711
|
-
this._chain = true
|
712
|
-
this
|
713
|
-
|
714
|
-
|
715
|
-
# Extracts the result from a wrapped and chained object.
|
716
|
-
wrapper::value = -> this._wrapped
|
717
|
-
</textarea></form>
|
718
|
-
<script>
|
719
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
720
|
-
</script>
|
721
|
-
|
722
|
-
<p><strong>MIME types defined:</strong> <code>text/x-coffeescript</code>.</p>
|
723
|
-
|
724
|
-
<p>The CoffeeScript mode was written by Jeff Pickhardt (<a href="LICENSE">license</a>).</p>
|
725
|
-
|
726
|
-
</body>
|
727
|
-
</html>
|