burp_cms 1.3.13 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,210 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>CodeMirror: Verilog mode</title>
|
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
|
7
|
-
<script src="verilog.js"></script>
|
|
8
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
|
9
|
-
<style>.CodeMirror {border: 2px inset #dee;}</style>
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<h1>CodeMirror: Verilog mode</h1>
|
|
13
|
-
|
|
14
|
-
<form><textarea id="code" name="code">
|
|
15
|
-
/* Verilog demo code */
|
|
16
|
-
|
|
17
|
-
//////////////////////////////////////////////////////////////////////
|
|
18
|
-
//// ////
|
|
19
|
-
//// wb_master_model.v ////
|
|
20
|
-
//// ////
|
|
21
|
-
//// This file is part of the SPI IP core project ////
|
|
22
|
-
//// http://www.opencores.org/projects/spi/ ////
|
|
23
|
-
//// ////
|
|
24
|
-
//// Author(s): ////
|
|
25
|
-
//// - Simon Srot (simons@opencores.org) ////
|
|
26
|
-
//// ////
|
|
27
|
-
//// Based on: ////
|
|
28
|
-
//// - i2c/bench/verilog/wb_master_model.v ////
|
|
29
|
-
//// Copyright (C) 2001 Richard Herveille ////
|
|
30
|
-
//// ////
|
|
31
|
-
//// All additional information is avaliable in the Readme.txt ////
|
|
32
|
-
//// file. ////
|
|
33
|
-
//// ////
|
|
34
|
-
//////////////////////////////////////////////////////////////////////
|
|
35
|
-
//// ////
|
|
36
|
-
//// Copyright (C) 2002 Authors ////
|
|
37
|
-
//// ////
|
|
38
|
-
//// This source file may be used and distributed without ////
|
|
39
|
-
//// restriction provided that this copyright statement is not ////
|
|
40
|
-
//// removed from the file and that any derivative work contains ////
|
|
41
|
-
//// the original copyright notice and the associated disclaimer. ////
|
|
42
|
-
//// ////
|
|
43
|
-
//// This source file is free software; you can redistribute it ////
|
|
44
|
-
//// and/or modify it under the terms of the GNU Lesser General ////
|
|
45
|
-
//// Public License as published by the Free Software Foundation; ////
|
|
46
|
-
//// either version 2.1 of the License, or (at your option) any ////
|
|
47
|
-
//// later version. ////
|
|
48
|
-
//// ////
|
|
49
|
-
//// This source is distributed in the hope that it will be ////
|
|
50
|
-
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
|
51
|
-
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
|
52
|
-
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
|
53
|
-
//// details. ////
|
|
54
|
-
//// ////
|
|
55
|
-
//// You should have received a copy of the GNU Lesser General ////
|
|
56
|
-
//// Public License along with this source; if not, download it ////
|
|
57
|
-
//// from http://www.opencores.org/lgpl.shtml ////
|
|
58
|
-
//// ////
|
|
59
|
-
//////////////////////////////////////////////////////////////////////
|
|
60
|
-
|
|
61
|
-
`include "timescale.v"
|
|
62
|
-
|
|
63
|
-
module wb_master_model(clk, rst, adr, din, dout, cyc, stb, we, sel, ack, err, rty);
|
|
64
|
-
|
|
65
|
-
parameter dwidth = 32;
|
|
66
|
-
parameter awidth = 32;
|
|
67
|
-
|
|
68
|
-
input clk, rst;
|
|
69
|
-
output [awidth -1:0] adr;
|
|
70
|
-
input [dwidth -1:0] din;
|
|
71
|
-
output [dwidth -1:0] dout;
|
|
72
|
-
output cyc, stb;
|
|
73
|
-
output we;
|
|
74
|
-
output [dwidth/8 -1:0] sel;
|
|
75
|
-
input ack, err, rty;
|
|
76
|
-
|
|
77
|
-
// Internal signals
|
|
78
|
-
reg [awidth -1:0] adr;
|
|
79
|
-
reg [dwidth -1:0] dout;
|
|
80
|
-
reg cyc, stb;
|
|
81
|
-
reg we;
|
|
82
|
-
reg [dwidth/8 -1:0] sel;
|
|
83
|
-
|
|
84
|
-
reg [dwidth -1:0] q;
|
|
85
|
-
|
|
86
|
-
// Memory Logic
|
|
87
|
-
initial
|
|
88
|
-
begin
|
|
89
|
-
adr = {awidth{1'bx}};
|
|
90
|
-
dout = {dwidth{1'bx}};
|
|
91
|
-
cyc = 1'b0;
|
|
92
|
-
stb = 1'bx;
|
|
93
|
-
we = 1'hx;
|
|
94
|
-
sel = {dwidth/8{1'bx}};
|
|
95
|
-
#1;
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
// Wishbone write cycle
|
|
99
|
-
task wb_write;
|
|
100
|
-
input delay;
|
|
101
|
-
integer delay;
|
|
102
|
-
|
|
103
|
-
input [awidth -1:0] a;
|
|
104
|
-
input [dwidth -1:0] d;
|
|
105
|
-
|
|
106
|
-
begin
|
|
107
|
-
|
|
108
|
-
// wait initial delay
|
|
109
|
-
repeat(delay) @(posedge clk);
|
|
110
|
-
|
|
111
|
-
// assert wishbone signal
|
|
112
|
-
#1;
|
|
113
|
-
adr = a;
|
|
114
|
-
dout = d;
|
|
115
|
-
cyc = 1'b1;
|
|
116
|
-
stb = 1'b1;
|
|
117
|
-
we = 1'b1;
|
|
118
|
-
sel = {dwidth/8{1'b1}};
|
|
119
|
-
@(posedge clk);
|
|
120
|
-
|
|
121
|
-
// wait for acknowledge from slave
|
|
122
|
-
while(~ack) @(posedge clk);
|
|
123
|
-
|
|
124
|
-
// negate wishbone signals
|
|
125
|
-
#1;
|
|
126
|
-
cyc = 1'b0;
|
|
127
|
-
stb = 1'bx;
|
|
128
|
-
adr = {awidth{1'bx}};
|
|
129
|
-
dout = {dwidth{1'bx}};
|
|
130
|
-
we = 1'hx;
|
|
131
|
-
sel = {dwidth/8{1'bx}};
|
|
132
|
-
|
|
133
|
-
end
|
|
134
|
-
endtask
|
|
135
|
-
|
|
136
|
-
// Wishbone read cycle
|
|
137
|
-
task wb_read;
|
|
138
|
-
input delay;
|
|
139
|
-
integer delay;
|
|
140
|
-
|
|
141
|
-
input [awidth -1:0] a;
|
|
142
|
-
output [dwidth -1:0] d;
|
|
143
|
-
|
|
144
|
-
begin
|
|
145
|
-
|
|
146
|
-
// wait initial delay
|
|
147
|
-
repeat(delay) @(posedge clk);
|
|
148
|
-
|
|
149
|
-
// assert wishbone signals
|
|
150
|
-
#1;
|
|
151
|
-
adr = a;
|
|
152
|
-
dout = {dwidth{1'bx}};
|
|
153
|
-
cyc = 1'b1;
|
|
154
|
-
stb = 1'b1;
|
|
155
|
-
we = 1'b0;
|
|
156
|
-
sel = {dwidth/8{1'b1}};
|
|
157
|
-
@(posedge clk);
|
|
158
|
-
|
|
159
|
-
// wait for acknowledge from slave
|
|
160
|
-
while(~ack) @(posedge clk);
|
|
161
|
-
|
|
162
|
-
// negate wishbone signals
|
|
163
|
-
#1;
|
|
164
|
-
cyc = 1'b0;
|
|
165
|
-
stb = 1'bx;
|
|
166
|
-
adr = {awidth{1'bx}};
|
|
167
|
-
dout = {dwidth{1'bx}};
|
|
168
|
-
we = 1'hx;
|
|
169
|
-
sel = {dwidth/8{1'bx}};
|
|
170
|
-
d = din;
|
|
171
|
-
|
|
172
|
-
end
|
|
173
|
-
endtask
|
|
174
|
-
|
|
175
|
-
// Wishbone compare cycle (read data from location and compare with expected data)
|
|
176
|
-
task wb_cmp;
|
|
177
|
-
input delay;
|
|
178
|
-
integer delay;
|
|
179
|
-
|
|
180
|
-
input [awidth -1:0] a;
|
|
181
|
-
input [dwidth -1:0] d_exp;
|
|
182
|
-
|
|
183
|
-
begin
|
|
184
|
-
wb_read (delay, a, q);
|
|
185
|
-
|
|
186
|
-
if (d_exp !== q) begin
|
|
187
|
-
$display("\n--- ERROR: At address 0x%0x, got 0x%0x, expected 0x%0x at time %t", a, q, d_exp, $time);
|
|
188
|
-
$stop;
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
endtask
|
|
192
|
-
|
|
193
|
-
endmodule
|
|
194
|
-
</textarea></form>
|
|
195
|
-
|
|
196
|
-
<script>
|
|
197
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
198
|
-
lineNumbers: true,
|
|
199
|
-
matchBrackets: true,
|
|
200
|
-
mode: "text/x-verilog"
|
|
201
|
-
});
|
|
202
|
-
</script>
|
|
203
|
-
|
|
204
|
-
<p>Simple mode that tries to handle Verilog-like languages as well as it
|
|
205
|
-
can. Takes one configuration parameters: <code>keywords</code>, an
|
|
206
|
-
object whose property names are the keywords in the language.</p>
|
|
207
|
-
|
|
208
|
-
<p><strong>MIME types defined:</strong> <code>text/x-verilog</code> (Verilog code).</p>
|
|
209
|
-
</body>
|
|
210
|
-
</html>
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
CodeMirror.defineMode("verilog", function(config, parserConfig) {
|
|
2
|
-
var indentUnit = config.indentUnit,
|
|
3
|
-
keywords = parserConfig.keywords || {},
|
|
4
|
-
blockKeywords = parserConfig.blockKeywords || {},
|
|
5
|
-
atoms = parserConfig.atoms || {},
|
|
6
|
-
hooks = parserConfig.hooks || {},
|
|
7
|
-
multiLineStrings = parserConfig.multiLineStrings;
|
|
8
|
-
var isOperatorChar = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;
|
|
9
|
-
|
|
10
|
-
var curPunc;
|
|
11
|
-
|
|
12
|
-
function tokenBase(stream, state) {
|
|
13
|
-
var ch = stream.next();
|
|
14
|
-
if (hooks[ch]) {
|
|
15
|
-
var result = hooks[ch](stream, state);
|
|
16
|
-
if (result !== false) return result;
|
|
17
|
-
}
|
|
18
|
-
if (ch == '"') {
|
|
19
|
-
state.tokenize = tokenString(ch);
|
|
20
|
-
return state.tokenize(stream, state);
|
|
21
|
-
}
|
|
22
|
-
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
|
23
|
-
curPunc = ch;
|
|
24
|
-
return null
|
|
25
|
-
}
|
|
26
|
-
if (/[\d']/.test(ch)) {
|
|
27
|
-
stream.eatWhile(/[\w\.']/);
|
|
28
|
-
return "number";
|
|
29
|
-
}
|
|
30
|
-
if (ch == "/") {
|
|
31
|
-
if (stream.eat("*")) {
|
|
32
|
-
state.tokenize = tokenComment;
|
|
33
|
-
return tokenComment(stream, state);
|
|
34
|
-
}
|
|
35
|
-
if (stream.eat("/")) {
|
|
36
|
-
stream.skipToEnd();
|
|
37
|
-
return "comment";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (isOperatorChar.test(ch)) {
|
|
41
|
-
stream.eatWhile(isOperatorChar);
|
|
42
|
-
return "operator";
|
|
43
|
-
}
|
|
44
|
-
stream.eatWhile(/[\w\$_]/);
|
|
45
|
-
var cur = stream.current();
|
|
46
|
-
if (keywords.propertyIsEnumerable(cur)) {
|
|
47
|
-
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
|
48
|
-
return "keyword";
|
|
49
|
-
}
|
|
50
|
-
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
|
51
|
-
return "word";
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function tokenString(quote) {
|
|
55
|
-
return function(stream, state) {
|
|
56
|
-
var escaped = false, next, end = false;
|
|
57
|
-
while ((next = stream.next()) != null) {
|
|
58
|
-
if (next == quote && !escaped) {end = true; break;}
|
|
59
|
-
escaped = !escaped && next == "\\";
|
|
60
|
-
}
|
|
61
|
-
if (end || !(escaped || multiLineStrings))
|
|
62
|
-
state.tokenize = tokenBase;
|
|
63
|
-
return "string";
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function tokenComment(stream, state) {
|
|
68
|
-
var maybeEnd = false, ch;
|
|
69
|
-
while (ch = stream.next()) {
|
|
70
|
-
if (ch == "/" && maybeEnd) {
|
|
71
|
-
state.tokenize = tokenBase;
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
maybeEnd = (ch == "*");
|
|
75
|
-
}
|
|
76
|
-
return "comment";
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function Context(indented, column, type, align, prev) {
|
|
80
|
-
this.indented = indented;
|
|
81
|
-
this.column = column;
|
|
82
|
-
this.type = type;
|
|
83
|
-
this.align = align;
|
|
84
|
-
this.prev = prev;
|
|
85
|
-
}
|
|
86
|
-
function pushContext(state, col, type) {
|
|
87
|
-
return state.context = new Context(state.indented, col, type, null, state.context);
|
|
88
|
-
}
|
|
89
|
-
function popContext(state) {
|
|
90
|
-
var t = state.context.type;
|
|
91
|
-
if (t == ")" || t == "]" || t == "}")
|
|
92
|
-
state.indented = state.context.indented;
|
|
93
|
-
return state.context = state.context.prev;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Interface
|
|
97
|
-
|
|
98
|
-
return {
|
|
99
|
-
startState: function(basecolumn) {
|
|
100
|
-
return {
|
|
101
|
-
tokenize: null,
|
|
102
|
-
context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
|
|
103
|
-
indented: 0,
|
|
104
|
-
startOfLine: true
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
token: function(stream, state) {
|
|
109
|
-
var ctx = state.context;
|
|
110
|
-
if (stream.sol()) {
|
|
111
|
-
if (ctx.align == null) ctx.align = false;
|
|
112
|
-
state.indented = stream.indentation();
|
|
113
|
-
state.startOfLine = true;
|
|
114
|
-
}
|
|
115
|
-
if (stream.eatSpace()) return null;
|
|
116
|
-
curPunc = null;
|
|
117
|
-
var style = (state.tokenize || tokenBase)(stream, state);
|
|
118
|
-
if (style == "comment" || style == "meta") return style;
|
|
119
|
-
if (ctx.align == null) ctx.align = true;
|
|
120
|
-
|
|
121
|
-
if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
|
|
122
|
-
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
|
123
|
-
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
|
124
|
-
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
|
125
|
-
else if (curPunc == "}") {
|
|
126
|
-
while (ctx.type == "statement") ctx = popContext(state);
|
|
127
|
-
if (ctx.type == "}") ctx = popContext(state);
|
|
128
|
-
while (ctx.type == "statement") ctx = popContext(state);
|
|
129
|
-
}
|
|
130
|
-
else if (curPunc == ctx.type) popContext(state);
|
|
131
|
-
else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
|
|
132
|
-
pushContext(state, stream.column(), "statement");
|
|
133
|
-
state.startOfLine = false;
|
|
134
|
-
return style;
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
indent: function(state, textAfter) {
|
|
138
|
-
if (state.tokenize != tokenBase && state.tokenize != null) return 0;
|
|
139
|
-
var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type;
|
|
140
|
-
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit);
|
|
141
|
-
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
|
142
|
-
else return ctx.indented + (closing ? 0 : indentUnit);
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
electricChars: "{}"
|
|
146
|
-
};
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
(function() {
|
|
150
|
-
function words(str) {
|
|
151
|
-
var obj = {}, words = str.split(" ");
|
|
152
|
-
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
|
153
|
-
return obj;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
var verilogKeywords = "always and assign automatic begin buf bufif0 bufif1 case casex casez cell cmos config " +
|
|
157
|
-
"deassign default defparam design disable edge else end endcase endconfig endfunction endgenerate endmodule " +
|
|
158
|
-
"endprimitive endspecify endtable endtask event for force forever fork function generate genvar highz0 " +
|
|
159
|
-
"highz1 if ifnone incdir include initial inout input instance integer join large liblist library localparam " +
|
|
160
|
-
"macromodule medium module nand negedge nmos nor noshowcancelled not notif0 notif1 or output parameter pmos " +
|
|
161
|
-
"posedge primitive pull0 pull1 pulldown pullup pulsestyle_onevent pulsestyle_ondetect rcmos real realtime " +
|
|
162
|
-
"reg release repeat rnmos rpmos rtran rtranif0 rtranif1 scalared showcancelled signed small specify specparam " +
|
|
163
|
-
"strong0 strong1 supply0 supply1 table task time tran tranif0 tranif1 tri tri0 tri1 triand trior trireg " +
|
|
164
|
-
"unsigned use vectored wait wand weak0 weak1 while wire wor xnor xor";
|
|
165
|
-
|
|
166
|
-
var verilogBlockKeywords = "begin bufif0 bufif1 case casex casez config else end endcase endconfig endfunction " +
|
|
167
|
-
"endgenerate endmodule endprimitive endspecify endtable endtask for forever function generate if ifnone " +
|
|
168
|
-
"macromodule module primitive repeat specify table task while";
|
|
169
|
-
|
|
170
|
-
function metaHook(stream, state) {
|
|
171
|
-
stream.eatWhile(/[\w\$_]/);
|
|
172
|
-
return "meta";
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// C#-style strings where "" escapes a quote.
|
|
176
|
-
function tokenAtString(stream, state) {
|
|
177
|
-
var next;
|
|
178
|
-
while ((next = stream.next()) != null) {
|
|
179
|
-
if (next == '"' && !stream.eat('"')) {
|
|
180
|
-
state.tokenize = null;
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return "string";
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
CodeMirror.defineMIME("text/x-verilog", {
|
|
188
|
-
name: "verilog",
|
|
189
|
-
keywords: words(verilogKeywords),
|
|
190
|
-
blockKeywords: words(verilogBlockKeywords),
|
|
191
|
-
atoms: words("null"),
|
|
192
|
-
hooks: {"`": metaHook, "$": metaHook}
|
|
193
|
-
});
|
|
194
|
-
}());
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (C) 2011 by MarkLogic Corporation
|
|
2
|
-
Author: Mike Brevoort <mike@brevoort.com>
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in
|
|
12
|
-
all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
THE SOFTWARE.
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<!--
|
|
4
|
-
/*
|
|
5
|
-
Copyright (C) 2011 by MarkLogic Corporation
|
|
6
|
-
Author: Mike Brevoort <mike@brevoort.com>
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
-->
|
|
27
|
-
<head>
|
|
28
|
-
<title>CodeMirror 2: JavaScript mode</title>
|
|
29
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
|
30
|
-
<script src="http://codemirror.net/lib/codemirror.js"></script>
|
|
31
|
-
<script src="xquery.js"></script>
|
|
32
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
|
33
|
-
<link rel="stylesheet" href="../../theme/xq-dark.css">
|
|
34
|
-
<style type="text/css">
|
|
35
|
-
.CodeMirror {
|
|
36
|
-
border-top: 1px solid black; border-bottom: 1px solid black;
|
|
37
|
-
}
|
|
38
|
-
.CodeMirror-scroll {
|
|
39
|
-
height:400px;
|
|
40
|
-
}
|
|
41
|
-
</style>
|
|
42
|
-
</head>
|
|
43
|
-
<body>
|
|
44
|
-
<h1>CodeMirror 2: XQuery mode</h1>
|
|
45
|
-
|
|
46
|
-
<div class="cm-s-default">
|
|
47
|
-
<textarea id="code" name="code">
|
|
48
|
-
xquery version "1.0-ml";
|
|
49
|
-
(: this is
|
|
50
|
-
: a
|
|
51
|
-
"comment" :)
|
|
52
|
-
let $let := <x attr="value">"test"<func>function() $var {function()} {$var}</func></x>
|
|
53
|
-
let $joe:=1
|
|
54
|
-
return element element {
|
|
55
|
-
attribute attribute { 1 },
|
|
56
|
-
element test { 'a' },
|
|
57
|
-
attribute foo { "bar" },
|
|
58
|
-
fn:doc()[ foo/@bar eq $let ],
|
|
59
|
-
//x }
|
|
60
|
-
|
|
61
|
-
(: a more 'evil' test :)
|
|
62
|
-
(: Modified Blakeley example (: with nested comment :) ... :)
|
|
63
|
-
declare private function local:declare() {()};
|
|
64
|
-
declare private function local:private() {()};
|
|
65
|
-
declare private function local:function() {()};
|
|
66
|
-
declare private function local:local() {()};
|
|
67
|
-
let $let := <let>let $let := "let"</let>
|
|
68
|
-
return element element {
|
|
69
|
-
attribute attribute { try { xdmp:version() } catch($e) { xdmp:log($e) } },
|
|
70
|
-
attribute fn:doc { "bar" castable as xs:string },
|
|
71
|
-
element text { text { "text" } },
|
|
72
|
-
fn:doc()[ child::eq/(@bar | attribute::attribute) eq $let ],
|
|
73
|
-
//fn:doc
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
xquery version "1.0-ml";
|
|
79
|
-
|
|
80
|
-
(: Copyright 2006-2010 Mark Logic Corporation. :)
|
|
81
|
-
|
|
82
|
-
(:
|
|
83
|
-
: Licensed under the Apache License, Version 2.0 (the "License");
|
|
84
|
-
: you may not use this file except in compliance with the License.
|
|
85
|
-
: You may obtain a copy of the License at
|
|
86
|
-
:
|
|
87
|
-
: http://www.apache.org/licenses/LICENSE-2.0
|
|
88
|
-
:
|
|
89
|
-
: Unless required by applicable law or agreed to in writing, software
|
|
90
|
-
: distributed under the License is distributed on an "AS IS" BASIS,
|
|
91
|
-
: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
92
|
-
: See the License for the specific language governing permissions and
|
|
93
|
-
: limitations under the License.
|
|
94
|
-
:)
|
|
95
|
-
|
|
96
|
-
module namespace json = "http://marklogic.com/json";
|
|
97
|
-
declare default function namespace "http://www.w3.org/2005/xpath-functions";
|
|
98
|
-
|
|
99
|
-
(: Need to backslash escape any double quotes, backslashes, and newlines :)
|
|
100
|
-
declare function json:escape($s as xs:string) as xs:string {
|
|
101
|
-
let $s := replace($s, "\\", "\\\\")
|
|
102
|
-
let $s := replace($s, """", "\\""")
|
|
103
|
-
let $s := replace($s, codepoints-to-string((13, 10)), "\\n")
|
|
104
|
-
let $s := replace($s, codepoints-to-string(13), "\\n")
|
|
105
|
-
let $s := replace($s, codepoints-to-string(10), "\\n")
|
|
106
|
-
return $s
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
declare function json:atomize($x as element()) as xs:string {
|
|
110
|
-
if (count($x/node()) = 0) then 'null'
|
|
111
|
-
else if ($x/@type = "number") then
|
|
112
|
-
let $castable := $x castable as xs:float or
|
|
113
|
-
$x castable as xs:double or
|
|
114
|
-
$x castable as xs:decimal
|
|
115
|
-
return
|
|
116
|
-
if ($castable) then xs:string($x)
|
|
117
|
-
else error(concat("Not a number: ", xdmp:describe($x)))
|
|
118
|
-
else if ($x/@type = "boolean") then
|
|
119
|
-
let $castable := $x castable as xs:boolean
|
|
120
|
-
return
|
|
121
|
-
if ($castable) then xs:string(xs:boolean($x))
|
|
122
|
-
else error(concat("Not a boolean: ", xdmp:describe($x)))
|
|
123
|
-
else concat('"', json:escape($x), '"')
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
(: Print the thing that comes after the colon :)
|
|
127
|
-
declare function json:print-value($x as element()) as xs:string {
|
|
128
|
-
if (count($x/*) = 0) then
|
|
129
|
-
json:atomize($x)
|
|
130
|
-
else if ($x/@quote = "true") then
|
|
131
|
-
concat('"', json:escape(xdmp:quote($x/node())), '"')
|
|
132
|
-
else
|
|
133
|
-
string-join(('{',
|
|
134
|
-
string-join(for $i in $x/* return json:print-name-value($i), ","),
|
|
135
|
-
'}'), "")
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
(: Print the name and value both :)
|
|
139
|
-
declare function json:print-name-value($x as element()) as xs:string? {
|
|
140
|
-
let $name := name($x)
|
|
141
|
-
let $first-in-array :=
|
|
142
|
-
count($x/preceding-sibling::*[name(.) = $name]) = 0 and
|
|
143
|
-
(count($x/following-sibling::*[name(.) = $name]) > 0 or $x/@array = "true")
|
|
144
|
-
let $later-in-array := count($x/preceding-sibling::*[name(.) = $name]) > 0
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
if ($later-in-array) then
|
|
148
|
-
() (: I was handled previously :)
|
|
149
|
-
else if ($first-in-array) then
|
|
150
|
-
string-join(('"', json:escape($name), '":[',
|
|
151
|
-
string-join((for $i in ($x, $x/following-sibling::*[name(.) = $name]) return json:print-value($i)), ","),
|
|
152
|
-
']'), "")
|
|
153
|
-
else
|
|
154
|
-
string-join(('"', json:escape($name), '":', json:print-value($x)), "")
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
(:~
|
|
158
|
-
Transforms an XML element into a JSON string representation. See http://json.org.
|
|
159
|
-
<p/>
|
|
160
|
-
Sample usage:
|
|
161
|
-
<pre>
|
|
162
|
-
xquery version "1.0-ml";
|
|
163
|
-
import module namespace json="http://marklogic.com/json" at "json.xqy";
|
|
164
|
-
json:serialize(&lt;foo&gt;&lt;bar&gt;kid&lt;/bar&gt;&lt;/foo&gt;)
|
|
165
|
-
</pre>
|
|
166
|
-
Sample transformations:
|
|
167
|
-
<pre>
|
|
168
|
-
&lt;e/&gt; becomes {"e":null}
|
|
169
|
-
&lt;e&gt;text&lt;/e&gt; becomes {"e":"text"}
|
|
170
|
-
&lt;e&gt;quote " escaping&lt;/e&gt; becomes {"e":"quote \" escaping"}
|
|
171
|
-
&lt;e&gt;backslash \ escaping&lt;/e&gt; becomes {"e":"backslash \\ escaping"}
|
|
172
|
-
&lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;b&gt;text2&lt;/b&gt;&lt;/e&gt; becomes {"e":{"a":"text1","b":"text2"}}
|
|
173
|
-
&lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;a&gt;text2&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1","text2"]}}
|
|
174
|
-
&lt;e&gt;&lt;a array="true"&gt;text1&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1"]}}
|
|
175
|
-
&lt;e&gt;&lt;a type="boolean"&gt;false&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":false}}
|
|
176
|
-
&lt;e&gt;&lt;a type="number"&gt;123.5&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":123.5}}
|
|
177
|
-
&lt;e quote="true"&gt;&lt;div attrib="value"/&gt;&lt;/e&gt; becomes {"e":"&lt;div attrib=\"value\"/&gt;"}
|
|
178
|
-
</pre>
|
|
179
|
-
<p/>
|
|
180
|
-
Namespace URIs are ignored. Namespace prefixes are included in the JSON name.
|
|
181
|
-
<p/>
|
|
182
|
-
Attributes are ignored, except for the special attribute @array="true" that
|
|
183
|
-
indicates the JSON serialization should write the node, even if single, as an
|
|
184
|
-
array, and the attribute @type that can be set to "boolean" or "number" to
|
|
185
|
-
dictate the value should be written as that type (unquoted). There's also
|
|
186
|
-
an @quote attribute that when set to true writes the inner content as text
|
|
187
|
-
rather than as structured JSON, useful for sending some XHTML over the
|
|
188
|
-
wire.
|
|
189
|
-
<p/>
|
|
190
|
-
Text nodes within mixed content are ignored.
|
|
191
|
-
|
|
192
|
-
@param $x Element node to convert
|
|
193
|
-
@return String holding JSON serialized representation of $x
|
|
194
|
-
|
|
195
|
-
@author Jason Hunter
|
|
196
|
-
@version 1.0.1
|
|
197
|
-
|
|
198
|
-
Ported to xquery 1.0-ml; double escaped backslashes in json:escape
|
|
199
|
-
:)
|
|
200
|
-
declare function json:serialize($x as element()) as xs:string {
|
|
201
|
-
string-join(('{', json:print-name-value($x), '}'), "")
|
|
202
|
-
};
|
|
203
|
-
</textarea>
|
|
204
|
-
</div>
|
|
205
|
-
|
|
206
|
-
<script>
|
|
207
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
208
|
-
lineNumbers: true,
|
|
209
|
-
matchBrackets: true,
|
|
210
|
-
theme: "xq-dark"
|
|
211
|
-
});
|
|
212
|
-
</script>
|
|
213
|
-
|
|
214
|
-
<p><strong>MIME types defined:</strong> <code>application/xquery</code>.</p>
|
|
215
|
-
|
|
216
|
-
<p>Development of the CodeMirror XQuery mode was sponsored by
|
|
217
|
-
<a href="http://marklogic.com">MarkLogic</a> and developed by
|
|
218
|
-
<a href="https://twitter.com/mbrevoort">Mike Brevoort</a>.
|
|
219
|
-
</p>
|
|
220
|
-
|
|
221
|
-
</body>
|
|
222
|
-
</html>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-git.css" type="text/css"/>
|
|
6
|
-
<script src="http://code.jquery.com/jquery-latest.js"> </script>
|
|
7
|
-
<script type="text/javascript" src="http://code.jquery.com/qunit/qunit-git.js"></script>
|
|
8
|
-
|
|
9
|
-
<script src="../../../lib/codemirror.js"></script>
|
|
10
|
-
<script src="../xquery.js"></script>
|
|
11
|
-
|
|
12
|
-
<script type="text/javascript" src="testBase.js"></script>
|
|
13
|
-
<script type="text/javascript" src="testMultiAttr.js"></script>
|
|
14
|
-
<script type="text/javascript" src="testQuotes.js"></script>
|
|
15
|
-
<script type="text/javascript" src="testEmptySequenceKeyword.js"></script>
|
|
16
|
-
<script type="text/javascript" src="testProcessingInstructions.js"></script>
|
|
17
|
-
<script type="text/javascript" src="testNamespaces.js"></script>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<h1 id="qunit-header">XQuery CodeMirror Mode</h1>
|
|
21
|
-
<h2 id="qunit-banner"></h2>
|
|
22
|
-
<h2 id="qunit-userAgent"></h2>
|
|
23
|
-
<ol id="qunit-tests">
|
|
24
|
-
</ol>
|
|
25
|
-
<div id="sandbox" style="right:5000px; position:absolute; "></div>
|
|
26
|
-
</body>
|
|
27
|
-
</html>
|