chaskiq 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -0
- data/lib/chaskiq/version.rb +1 -1
- data/vendor/assets/images/animated-overlay.gif +0 -0
- data/vendor/assets/images/blueimp/img/error.png +0 -0
- data/vendor/assets/images/blueimp/img/error.svg +5 -0
- data/vendor/assets/images/blueimp/img/loading.gif +0 -0
- data/vendor/assets/images/blueimp/img/play-pause.png +0 -0
- data/vendor/assets/images/blueimp/img/play-pause.svg +6 -0
- data/vendor/assets/images/blueimp/img/video-play.png +0 -0
- data/vendor/assets/images/blueimp/img/video-play.svg +5 -0
- data/vendor/assets/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/alpha.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/hue.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/saturation.png +0 -0
- data/vendor/assets/images/chosen-sprite.png +0 -0
- data/vendor/assets/images/chosen-sprite@2x.png +0 -0
- data/vendor/assets/images/green.png +0 -0
- data/vendor/assets/images/green@2x.png +0 -0
- data/vendor/assets/images/images/animated-overlay.gif +0 -0
- data/vendor/assets/images/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/images/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/images/sort.png +0 -0
- data/vendor/assets/images/sort_asc.png +0 -0
- data/vendor/assets/images/sort_desc.png +0 -0
- data/vendor/assets/images/sprite-skin-flat.png +0 -0
- data/vendor/assets/images/sprite-skin-flat2.png +0 -0
- data/vendor/assets/images/sprite-skin-nice.png +0 -0
- data/vendor/assets/images/sprite-skin-simple.png +0 -0
- data/vendor/assets/images/spritemap.png +0 -0
- data/vendor/assets/images/spritemap@2x.png +0 -0
- data/vendor/assets/javascripts/backbone/backbone.min.js +2 -0
- data/vendor/assets/javascripts/backbone/underscore.min.js +6 -0
- data/vendor/assets/javascripts/chartjs/Chart.min.js +11 -0
- data/vendor/assets/javascripts/codemirror/codemirror.js +7830 -0
- data/vendor/assets/javascripts/codemirror/mode/apl/apl.js +175 -0
- data/vendor/assets/javascripts/codemirror/mode/apl/index.html +72 -0
- data/vendor/assets/javascripts/codemirror/mode/asterisk/asterisk.js +198 -0
- data/vendor/assets/javascripts/codemirror/mode/asterisk/index.html +154 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/clike.js +474 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/index.html +225 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/scala.html +767 -0
- data/vendor/assets/javascripts/codemirror/mode/clojure/clojure.js +243 -0
- data/vendor/assets/javascripts/codemirror/mode/clojure/index.html +88 -0
- data/vendor/assets/javascripts/codemirror/mode/cobol/cobol.js +255 -0
- data/vendor/assets/javascripts/codemirror/mode/cobol/index.html +210 -0
- data/vendor/assets/javascripts/codemirror/mode/coffeescript/coffeescript.js +369 -0
- data/vendor/assets/javascripts/codemirror/mode/coffeescript/index.html +740 -0
- data/vendor/assets/javascripts/codemirror/mode/commonlisp/commonlisp.js +120 -0
- data/vendor/assets/javascripts/codemirror/mode/commonlisp/index.html +177 -0
- data/vendor/assets/javascripts/codemirror/mode/css/css.js +717 -0
- data/vendor/assets/javascripts/codemirror/mode/css/index.html +70 -0
- data/vendor/assets/javascripts/codemirror/mode/css/less.html +152 -0
- data/vendor/assets/javascripts/codemirror/mode/css/less_test.js +51 -0
- data/vendor/assets/javascripts/codemirror/mode/css/scss.html +157 -0
- data/vendor/assets/javascripts/codemirror/mode/css/scss_test.js +110 -0
- data/vendor/assets/javascripts/codemirror/mode/css/test.js +135 -0
- data/vendor/assets/javascripts/codemirror/mode/cypher/cypher.js +146 -0
- data/vendor/assets/javascripts/codemirror/mode/cypher/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/d/d.js +218 -0
- data/vendor/assets/javascripts/codemirror/mode/d/index.html +273 -0
- data/vendor/assets/javascripts/codemirror/mode/diff/diff.js +47 -0
- data/vendor/assets/javascripts/codemirror/mode/diff/index.html +117 -0
- data/vendor/assets/javascripts/codemirror/mode/django/django.js +67 -0
- data/vendor/assets/javascripts/codemirror/mode/django/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/dtd/dtd.js +142 -0
- data/vendor/assets/javascripts/codemirror/mode/dtd/index.html +89 -0
- data/vendor/assets/javascripts/codemirror/mode/dylan/dylan.js +299 -0
- data/vendor/assets/javascripts/codemirror/mode/dylan/index.html +407 -0
- data/vendor/assets/javascripts/codemirror/mode/ecl/ecl.js +207 -0
- data/vendor/assets/javascripts/codemirror/mode/ecl/index.html +52 -0
- data/vendor/assets/javascripts/codemirror/mode/eiffel/eiffel.js +162 -0
- data/vendor/assets/javascripts/codemirror/mode/eiffel/index.html +429 -0
- data/vendor/assets/javascripts/codemirror/mode/erlang/erlang.js +622 -0
- data/vendor/assets/javascripts/codemirror/mode/erlang/index.html +76 -0
- data/vendor/assets/javascripts/codemirror/mode/fortran/fortran.js +188 -0
- data/vendor/assets/javascripts/codemirror/mode/fortran/index.html +81 -0
- data/vendor/assets/javascripts/codemirror/mode/gas/gas.js +345 -0
- data/vendor/assets/javascripts/codemirror/mode/gas/index.html +68 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/gfm.js +122 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/index.html +82 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/test.js +164 -0
- data/vendor/assets/javascripts/codemirror/mode/gherkin/gherkin.js +178 -0
- data/vendor/assets/javascripts/codemirror/mode/gherkin/index.html +48 -0
- data/vendor/assets/javascripts/codemirror/mode/go/go.js +184 -0
- data/vendor/assets/javascripts/codemirror/mode/go/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/groovy/groovy.js +226 -0
- data/vendor/assets/javascripts/codemirror/mode/groovy/index.html +84 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/haml.js +159 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/index.html +79 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/test.js +97 -0
- data/vendor/assets/javascripts/codemirror/mode/haskell/haskell.js +267 -0
- data/vendor/assets/javascripts/codemirror/mode/haskell/index.html +73 -0
- data/vendor/assets/javascripts/codemirror/mode/haxe/haxe.js +518 -0
- data/vendor/assets/javascripts/codemirror/mode/haxe/index.html +124 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlembedded/htmlembedded.js +86 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlembedded/index.html +58 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlmixed/htmlmixed.js +121 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlmixed/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/http/http.js +113 -0
- data/vendor/assets/javascripts/codemirror/mode/http/index.html +45 -0
- data/vendor/assets/javascripts/codemirror/mode/index.html +125 -0
- data/vendor/assets/javascripts/codemirror/mode/jade/index.html +70 -0
- data/vendor/assets/javascripts/codemirror/mode/jade/jade.js +590 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/index.html +114 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/javascript.js +684 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/json-ld.html +72 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/test.js +194 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/typescript.html +61 -0
- data/vendor/assets/javascripts/codemirror/mode/jinja2/index.html +54 -0
- data/vendor/assets/javascripts/codemirror/mode/jinja2/jinja2.js +142 -0
- data/vendor/assets/javascripts/codemirror/mode/julia/index.html +195 -0
- data/vendor/assets/javascripts/codemirror/mode/julia/julia.js +301 -0
- data/vendor/assets/javascripts/codemirror/mode/kotlin/index.html +89 -0
- data/vendor/assets/javascripts/codemirror/mode/kotlin/kotlin.js +280 -0
- data/vendor/assets/javascripts/codemirror/mode/livescript/index.html +459 -0
- data/vendor/assets/javascripts/codemirror/mode/livescript/livescript.js +280 -0
- data/vendor/assets/javascripts/codemirror/mode/lua/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/lua/lua.js +159 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/index.html +359 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/markdown.js +758 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/test.js +754 -0
- data/vendor/assets/javascripts/codemirror/mode/meta.js +144 -0
- data/vendor/assets/javascripts/codemirror/mode/mirc/index.html +160 -0
- data/vendor/assets/javascripts/codemirror/mode/mirc/mirc.js +193 -0
- data/vendor/assets/javascripts/codemirror/mode/mllike/index.html +179 -0
- data/vendor/assets/javascripts/codemirror/mode/mllike/mllike.js +205 -0
- data/vendor/assets/javascripts/codemirror/mode/modelica/index.html +67 -0
- data/vendor/assets/javascripts/codemirror/mode/modelica/modelica.js +245 -0
- data/vendor/assets/javascripts/codemirror/mode/nginx/index.html +181 -0
- data/vendor/assets/javascripts/codemirror/mode/nginx/nginx.js +178 -0
- data/vendor/assets/javascripts/codemirror/mode/ntriples/index.html +45 -0
- data/vendor/assets/javascripts/codemirror/mode/ntriples/ntriples.js +186 -0
- data/vendor/assets/javascripts/codemirror/mode/octave/index.html +83 -0
- data/vendor/assets/javascripts/codemirror/mode/octave/octave.js +135 -0
- data/vendor/assets/javascripts/codemirror/mode/pascal/index.html +61 -0
- data/vendor/assets/javascripts/codemirror/mode/pascal/pascal.js +109 -0
- data/vendor/assets/javascripts/codemirror/mode/pegjs/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/pegjs/pegjs.js +114 -0
- data/vendor/assets/javascripts/codemirror/mode/perl/index.html +75 -0
- data/vendor/assets/javascripts/codemirror/mode/perl/perl.js +832 -0
- data/vendor/assets/javascripts/codemirror/mode/php/index.html +64 -0
- data/vendor/assets/javascripts/codemirror/mode/php/php.js +226 -0
- data/vendor/assets/javascripts/codemirror/mode/php/test.js +154 -0
- data/vendor/assets/javascripts/codemirror/mode/pig/index.html +55 -0
- data/vendor/assets/javascripts/codemirror/mode/pig/pig.js +188 -0
- data/vendor/assets/javascripts/codemirror/mode/properties/index.html +53 -0
- data/vendor/assets/javascripts/codemirror/mode/properties/properties.js +78 -0
- data/vendor/assets/javascripts/codemirror/mode/puppet/index.html +121 -0
- data/vendor/assets/javascripts/codemirror/mode/puppet/puppet.js +220 -0
- data/vendor/assets/javascripts/codemirror/mode/python/index.html +198 -0
- data/vendor/assets/javascripts/codemirror/mode/python/python.js +359 -0
- data/vendor/assets/javascripts/codemirror/mode/q/index.html +144 -0
- data/vendor/assets/javascripts/codemirror/mode/q/q.js +139 -0
- data/vendor/assets/javascripts/codemirror/mode/r/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/r/r.js +162 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/changes/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/index.html +149 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/rpm.js +101 -0
- data/vendor/assets/javascripts/codemirror/mode/rst/index.html +535 -0
- data/vendor/assets/javascripts/codemirror/mode/rst/rst.js +557 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/index.html +184 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/ruby.js +285 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/test.js +14 -0
- data/vendor/assets/javascripts/codemirror/mode/rust/index.html +60 -0
- data/vendor/assets/javascripts/codemirror/mode/rust/rust.js +451 -0
- data/vendor/assets/javascripts/codemirror/mode/sass/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/sass/sass.js +327 -0
- data/vendor/assets/javascripts/codemirror/mode/scheme/index.html +77 -0
- data/vendor/assets/javascripts/codemirror/mode/scheme/scheme.js +248 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/shell.js +138 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/test.js +58 -0
- data/vendor/assets/javascripts/codemirror/mode/sieve/index.html +93 -0
- data/vendor/assets/javascripts/codemirror/mode/sieve/sieve.js +193 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/index.html +96 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/slim.js +575 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/test.js +96 -0
- data/vendor/assets/javascripts/codemirror/mode/smalltalk/index.html +68 -0
- data/vendor/assets/javascripts/codemirror/mode/smalltalk/smalltalk.js +168 -0
- data/vendor/assets/javascripts/codemirror/mode/smarty/index.html +136 -0
- data/vendor/assets/javascripts/codemirror/mode/smarty/smarty.js +221 -0
- data/vendor/assets/javascripts/codemirror/mode/smartymixed/index.html +114 -0
- data/vendor/assets/javascripts/codemirror/mode/smartymixed/smartymixed.js +197 -0
- data/vendor/assets/javascripts/codemirror/mode/solr/index.html +57 -0
- data/vendor/assets/javascripts/codemirror/mode/solr/solr.js +104 -0
- data/vendor/assets/javascripts/codemirror/mode/sparql/index.html +53 -0
- data/vendor/assets/javascripts/codemirror/mode/sparql/sparql.js +160 -0
- data/vendor/assets/javascripts/codemirror/mode/sql/index.html +84 -0
- data/vendor/assets/javascripts/codemirror/mode/sql/sql.js +393 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/index.html +110 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/stex.js +262 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/test.js +123 -0
- data/vendor/assets/javascripts/codemirror/mode/tcl/index.html +142 -0
- data/vendor/assets/javascripts/codemirror/mode/tcl/tcl.js +147 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/index.html +191 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/test.js +406 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/textile.js +553 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/index.html +154 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.js +369 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/index.html +95 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.css +26 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.js +323 -0
- data/vendor/assets/javascripts/codemirror/mode/toml/index.html +73 -0
- data/vendor/assets/javascripts/codemirror/mode/toml/toml.js +88 -0
- data/vendor/assets/javascripts/codemirror/mode/tornado/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/tornado/tornado.js +68 -0
- data/vendor/assets/javascripts/codemirror/mode/turtle/index.html +50 -0
- data/vendor/assets/javascripts/codemirror/mode/turtle/turtle.js +160 -0
- data/vendor/assets/javascripts/codemirror/mode/vb/index.html +102 -0
- data/vendor/assets/javascripts/codemirror/mode/vb/vb.js +274 -0
- data/vendor/assets/javascripts/codemirror/mode/vbscript/index.html +55 -0
- data/vendor/assets/javascripts/codemirror/mode/vbscript/vbscript.js +350 -0
- data/vendor/assets/javascripts/codemirror/mode/velocity/index.html +118 -0
- data/vendor/assets/javascripts/codemirror/mode/velocity/velocity.js +201 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/index.html +120 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/test.js +273 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/verilog.js +364 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/index.html +57 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/test.js +51 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/xml.js +384 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/index.html +210 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/test.js +67 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/xquery.js +447 -0
- data/vendor/assets/javascripts/codemirror/mode/yaml/index.html +80 -0
- data/vendor/assets/javascripts/codemirror/mode/yaml/yaml.js +112 -0
- data/vendor/assets/javascripts/codemirror/mode/z80/index.html +52 -0
- data/vendor/assets/javascripts/codemirror/mode/z80/z80.js +100 -0
- data/vendor/assets/javascripts/datapicker/bootstrap-datepicker.js +1671 -0
- data/vendor/assets/javascripts/flot/curvedLines.js +315 -0
- data/vendor/assets/javascripts/flot/excanvas.min.js +1 -0
- data/vendor/assets/javascripts/flot/jquery.flot.js +3168 -0
- data/vendor/assets/javascripts/flot/jquery.flot.pie.js +820 -0
- data/vendor/assets/javascripts/flot/jquery.flot.resize.js +59 -0
- data/vendor/assets/javascripts/flot/jquery.flot.spline.js +212 -0
- data/vendor/assets/javascripts/flot/jquery.flot.symbol.js +71 -0
- data/vendor/assets/javascripts/flot/jquery.flot.time.js +432 -0
- data/vendor/assets/javascripts/flot/jquery.flot.tooltip.min.js +12 -0
- data/vendor/assets/javascripts/jquery/jquery-2.1.1.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery-ui-i18n.min.js +6 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/images/animated-overlay.gif +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.custom.min.css +7 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.min.js +7 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.css +1189 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.js +15040 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.css +4 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.js +12 -0
- data/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js +120 -0
- data/vendor/assets/javascripts/morris/morris.js +1888 -0
- data/vendor/assets/javascripts/morris/raphael-2.1.0.min.js +10 -0
- data/vendor/assets/javascripts/pace/pace.min.js +2 -0
- data/vendor/assets/javascripts/peity/jquery.peity.min.js +13 -0
- data/vendor/assets/javascripts/radioactive/radioactive.min.js +1 -0
- data/vendor/assets/javascripts/rickshaw/rickshaw.min.js +3 -0
- data/vendor/assets/javascripts/rickshaw/vendor/d3.v3.js +5 -0
- data/vendor/assets/javascripts/sparkline/jquery.sparkline.min.js +5 -0
- data/vendor/assets/javascripts/summernote/summernote.min.js +6331 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js +2 -0
- data/vendor/assets/stylesheets/codemirror/codemirror.css +309 -0
- data/vendor/assets/stylesheets/codemirror/elegant.css +13 -0
- data/vendor/assets/stylesheets/datapicker/datepicker3.css +789 -0
- data/vendor/assets/stylesheets/summernote/summernote-bs3.css +5970 -0
- data/vendor/assets/stylesheets/summernote/summernote.css +446 -0
- data/vendor/assets/stylesheets/toastr/toastr.css +222 -0
- metadata +362 -3
- data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -0,0 +1,474 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("clike", function(config, parserConfig) {
|
15
|
+
var indentUnit = config.indentUnit,
|
16
|
+
statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
|
17
|
+
dontAlignCalls = parserConfig.dontAlignCalls,
|
18
|
+
keywords = parserConfig.keywords || {},
|
19
|
+
builtin = parserConfig.builtin || {},
|
20
|
+
blockKeywords = parserConfig.blockKeywords || {},
|
21
|
+
atoms = parserConfig.atoms || {},
|
22
|
+
hooks = parserConfig.hooks || {},
|
23
|
+
multiLineStrings = parserConfig.multiLineStrings,
|
24
|
+
indentStatements = parserConfig.indentStatements !== false;
|
25
|
+
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
|
26
|
+
|
27
|
+
var curPunc;
|
28
|
+
|
29
|
+
function tokenBase(stream, state) {
|
30
|
+
var ch = stream.next();
|
31
|
+
if (hooks[ch]) {
|
32
|
+
var result = hooks[ch](stream, state);
|
33
|
+
if (result !== false) return result;
|
34
|
+
}
|
35
|
+
if (ch == '"' || ch == "'") {
|
36
|
+
state.tokenize = tokenString(ch);
|
37
|
+
return state.tokenize(stream, state);
|
38
|
+
}
|
39
|
+
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
40
|
+
curPunc = ch;
|
41
|
+
return null;
|
42
|
+
}
|
43
|
+
if (/\d/.test(ch)) {
|
44
|
+
stream.eatWhile(/[\w\.]/);
|
45
|
+
return "number";
|
46
|
+
}
|
47
|
+
if (ch == "/") {
|
48
|
+
if (stream.eat("*")) {
|
49
|
+
state.tokenize = tokenComment;
|
50
|
+
return tokenComment(stream, state);
|
51
|
+
}
|
52
|
+
if (stream.eat("/")) {
|
53
|
+
stream.skipToEnd();
|
54
|
+
return "comment";
|
55
|
+
}
|
56
|
+
}
|
57
|
+
if (isOperatorChar.test(ch)) {
|
58
|
+
stream.eatWhile(isOperatorChar);
|
59
|
+
return "operator";
|
60
|
+
}
|
61
|
+
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
62
|
+
var cur = stream.current();
|
63
|
+
if (keywords.propertyIsEnumerable(cur)) {
|
64
|
+
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
65
|
+
return "keyword";
|
66
|
+
}
|
67
|
+
if (builtin.propertyIsEnumerable(cur)) {
|
68
|
+
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
69
|
+
return "builtin";
|
70
|
+
}
|
71
|
+
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
72
|
+
return "variable";
|
73
|
+
}
|
74
|
+
|
75
|
+
function tokenString(quote) {
|
76
|
+
return function(stream, state) {
|
77
|
+
var escaped = false, next, end = false;
|
78
|
+
while ((next = stream.next()) != null) {
|
79
|
+
if (next == quote && !escaped) {end = true; break;}
|
80
|
+
escaped = !escaped && next == "\\";
|
81
|
+
}
|
82
|
+
if (end || !(escaped || multiLineStrings))
|
83
|
+
state.tokenize = null;
|
84
|
+
return "string";
|
85
|
+
};
|
86
|
+
}
|
87
|
+
|
88
|
+
function tokenComment(stream, state) {
|
89
|
+
var maybeEnd = false, ch;
|
90
|
+
while (ch = stream.next()) {
|
91
|
+
if (ch == "/" && maybeEnd) {
|
92
|
+
state.tokenize = null;
|
93
|
+
break;
|
94
|
+
}
|
95
|
+
maybeEnd = (ch == "*");
|
96
|
+
}
|
97
|
+
return "comment";
|
98
|
+
}
|
99
|
+
|
100
|
+
function Context(indented, column, type, align, prev) {
|
101
|
+
this.indented = indented;
|
102
|
+
this.column = column;
|
103
|
+
this.type = type;
|
104
|
+
this.align = align;
|
105
|
+
this.prev = prev;
|
106
|
+
}
|
107
|
+
function pushContext(state, col, type) {
|
108
|
+
var indent = state.indented;
|
109
|
+
if (state.context && state.context.type == "statement")
|
110
|
+
indent = state.context.indented;
|
111
|
+
return state.context = new Context(indent, col, type, null, state.context);
|
112
|
+
}
|
113
|
+
function popContext(state) {
|
114
|
+
var t = state.context.type;
|
115
|
+
if (t == ")" || t == "]" || t == "}")
|
116
|
+
state.indented = state.context.indented;
|
117
|
+
return state.context = state.context.prev;
|
118
|
+
}
|
119
|
+
|
120
|
+
// Interface
|
121
|
+
|
122
|
+
return {
|
123
|
+
startState: function(basecolumn) {
|
124
|
+
return {
|
125
|
+
tokenize: null,
|
126
|
+
context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
|
127
|
+
indented: 0,
|
128
|
+
startOfLine: true
|
129
|
+
};
|
130
|
+
},
|
131
|
+
|
132
|
+
token: function(stream, state) {
|
133
|
+
var ctx = state.context;
|
134
|
+
if (stream.sol()) {
|
135
|
+
if (ctx.align == null) ctx.align = false;
|
136
|
+
state.indented = stream.indentation();
|
137
|
+
state.startOfLine = true;
|
138
|
+
}
|
139
|
+
if (stream.eatSpace()) return null;
|
140
|
+
curPunc = null;
|
141
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
142
|
+
if (style == "comment" || style == "meta") return style;
|
143
|
+
if (ctx.align == null) ctx.align = true;
|
144
|
+
|
145
|
+
if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") popContext(state);
|
146
|
+
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
147
|
+
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
148
|
+
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
149
|
+
else if (curPunc == "}") {
|
150
|
+
while (ctx.type == "statement") ctx = popContext(state);
|
151
|
+
if (ctx.type == "}") ctx = popContext(state);
|
152
|
+
while (ctx.type == "statement") ctx = popContext(state);
|
153
|
+
}
|
154
|
+
else if (curPunc == ctx.type) popContext(state);
|
155
|
+
else if (indentStatements &&
|
156
|
+
(((ctx.type == "}" || ctx.type == "top") && curPunc != ';') ||
|
157
|
+
(ctx.type == "statement" && curPunc == "newstatement")))
|
158
|
+
pushContext(state, stream.column(), "statement");
|
159
|
+
state.startOfLine = false;
|
160
|
+
return style;
|
161
|
+
},
|
162
|
+
|
163
|
+
indent: function(state, textAfter) {
|
164
|
+
if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass;
|
165
|
+
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
166
|
+
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
167
|
+
var closing = firstChar == ctx.type;
|
168
|
+
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit);
|
169
|
+
else if (ctx.align && (!dontAlignCalls || ctx.type != ")")) return ctx.column + (closing ? 0 : 1);
|
170
|
+
else if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit;
|
171
|
+
else return ctx.indented + (closing ? 0 : indentUnit);
|
172
|
+
},
|
173
|
+
|
174
|
+
electricChars: "{}",
|
175
|
+
blockCommentStart: "/*",
|
176
|
+
blockCommentEnd: "*/",
|
177
|
+
lineComment: "//",
|
178
|
+
fold: "brace"
|
179
|
+
};
|
180
|
+
});
|
181
|
+
|
182
|
+
function words(str) {
|
183
|
+
var obj = {}, words = str.split(" ");
|
184
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
185
|
+
return obj;
|
186
|
+
}
|
187
|
+
var cKeywords = "auto if break int case long char register continue return default short do sizeof " +
|
188
|
+
"double static else struct entry switch extern typedef float union for unsigned " +
|
189
|
+
"goto while enum void const signed volatile";
|
190
|
+
|
191
|
+
function cppHook(stream, state) {
|
192
|
+
if (!state.startOfLine) return false;
|
193
|
+
for (;;) {
|
194
|
+
if (stream.skipTo("\\")) {
|
195
|
+
stream.next();
|
196
|
+
if (stream.eol()) {
|
197
|
+
state.tokenize = cppHook;
|
198
|
+
break;
|
199
|
+
}
|
200
|
+
} else {
|
201
|
+
stream.skipToEnd();
|
202
|
+
state.tokenize = null;
|
203
|
+
break;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
return "meta";
|
207
|
+
}
|
208
|
+
|
209
|
+
function cpp11StringHook(stream, state) {
|
210
|
+
stream.backUp(1);
|
211
|
+
// Raw strings.
|
212
|
+
if (stream.match(/(R|u8R|uR|UR|LR)/)) {
|
213
|
+
var match = stream.match(/"([^\s\\()]{0,16})\(/);
|
214
|
+
if (!match) {
|
215
|
+
return false;
|
216
|
+
}
|
217
|
+
state.cpp11RawStringDelim = match[1];
|
218
|
+
state.tokenize = tokenRawString;
|
219
|
+
return tokenRawString(stream, state);
|
220
|
+
}
|
221
|
+
// Unicode strings/chars.
|
222
|
+
if (stream.match(/(u8|u|U|L)/)) {
|
223
|
+
if (stream.match(/["']/, /* eat */ false)) {
|
224
|
+
return "string";
|
225
|
+
}
|
226
|
+
return false;
|
227
|
+
}
|
228
|
+
// Ignore this hook.
|
229
|
+
stream.next();
|
230
|
+
return false;
|
231
|
+
}
|
232
|
+
|
233
|
+
// C#-style strings where "" escapes a quote.
|
234
|
+
function tokenAtString(stream, state) {
|
235
|
+
var next;
|
236
|
+
while ((next = stream.next()) != null) {
|
237
|
+
if (next == '"' && !stream.eat('"')) {
|
238
|
+
state.tokenize = null;
|
239
|
+
break;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
return "string";
|
243
|
+
}
|
244
|
+
|
245
|
+
// C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
|
246
|
+
// <delim> can be a string up to 16 characters long.
|
247
|
+
function tokenRawString(stream, state) {
|
248
|
+
// Escape characters that have special regex meanings.
|
249
|
+
var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&');
|
250
|
+
var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
|
251
|
+
if (match)
|
252
|
+
state.tokenize = null;
|
253
|
+
else
|
254
|
+
stream.skipToEnd();
|
255
|
+
return "string";
|
256
|
+
}
|
257
|
+
|
258
|
+
function def(mimes, mode) {
|
259
|
+
if (typeof mimes == "string") mimes = [mimes];
|
260
|
+
var words = [];
|
261
|
+
function add(obj) {
|
262
|
+
if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop))
|
263
|
+
words.push(prop);
|
264
|
+
}
|
265
|
+
add(mode.keywords);
|
266
|
+
add(mode.builtin);
|
267
|
+
add(mode.atoms);
|
268
|
+
if (words.length) {
|
269
|
+
mode.helperType = mimes[0];
|
270
|
+
CodeMirror.registerHelper("hintWords", mimes[0], words);
|
271
|
+
}
|
272
|
+
|
273
|
+
for (var i = 0; i < mimes.length; ++i)
|
274
|
+
CodeMirror.defineMIME(mimes[i], mode);
|
275
|
+
}
|
276
|
+
|
277
|
+
def(["text/x-csrc", "text/x-c", "text/x-chdr"], {
|
278
|
+
name: "clike",
|
279
|
+
keywords: words(cKeywords),
|
280
|
+
blockKeywords: words("case do else for if switch while struct"),
|
281
|
+
atoms: words("null"),
|
282
|
+
hooks: {"#": cppHook},
|
283
|
+
modeProps: {fold: ["brace", "include"]}
|
284
|
+
});
|
285
|
+
|
286
|
+
def(["text/x-c++src", "text/x-c++hdr"], {
|
287
|
+
name: "clike",
|
288
|
+
keywords: words(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " +
|
289
|
+
"static_cast typeid catch operator template typename class friend private " +
|
290
|
+
"this using const_cast inline public throw virtual delete mutable protected " +
|
291
|
+
"wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final " +
|
292
|
+
"static_assert override"),
|
293
|
+
blockKeywords: words("catch class do else finally for if struct switch try while"),
|
294
|
+
atoms: words("true false null"),
|
295
|
+
hooks: {
|
296
|
+
"#": cppHook,
|
297
|
+
"u": cpp11StringHook,
|
298
|
+
"U": cpp11StringHook,
|
299
|
+
"L": cpp11StringHook,
|
300
|
+
"R": cpp11StringHook
|
301
|
+
},
|
302
|
+
modeProps: {fold: ["brace", "include"]}
|
303
|
+
});
|
304
|
+
|
305
|
+
def("text/x-java", {
|
306
|
+
name: "clike",
|
307
|
+
keywords: words("abstract assert boolean break byte case catch char class const continue default " +
|
308
|
+
"do double else enum extends final finally float for goto if implements import " +
|
309
|
+
"instanceof int interface long native new package private protected public " +
|
310
|
+
"return short static strictfp super switch synchronized this throw throws transient " +
|
311
|
+
"try void volatile while"),
|
312
|
+
blockKeywords: words("catch class do else finally for if switch try while"),
|
313
|
+
atoms: words("true false null"),
|
314
|
+
hooks: {
|
315
|
+
"@": function(stream) {
|
316
|
+
stream.eatWhile(/[\w\$_]/);
|
317
|
+
return "meta";
|
318
|
+
}
|
319
|
+
},
|
320
|
+
modeProps: {fold: ["brace", "import"]}
|
321
|
+
});
|
322
|
+
|
323
|
+
def("text/x-csharp", {
|
324
|
+
name: "clike",
|
325
|
+
keywords: words("abstract as base break case catch checked class const continue" +
|
326
|
+
" default delegate do else enum event explicit extern finally fixed for" +
|
327
|
+
" foreach goto if implicit in interface internal is lock namespace new" +
|
328
|
+
" operator out override params private protected public readonly ref return sealed" +
|
329
|
+
" sizeof stackalloc static struct switch this throw try typeof unchecked" +
|
330
|
+
" unsafe using virtual void volatile while add alias ascending descending dynamic from get" +
|
331
|
+
" global group into join let orderby partial remove select set value var yield"),
|
332
|
+
blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
|
333
|
+
builtin: words("Boolean Byte Char DateTime DateTimeOffset Decimal Double" +
|
334
|
+
" Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32" +
|
335
|
+
" UInt64 bool byte char decimal double short int long object" +
|
336
|
+
" sbyte float string ushort uint ulong"),
|
337
|
+
atoms: words("true false null"),
|
338
|
+
hooks: {
|
339
|
+
"@": function(stream, state) {
|
340
|
+
if (stream.eat('"')) {
|
341
|
+
state.tokenize = tokenAtString;
|
342
|
+
return tokenAtString(stream, state);
|
343
|
+
}
|
344
|
+
stream.eatWhile(/[\w\$_]/);
|
345
|
+
return "meta";
|
346
|
+
}
|
347
|
+
}
|
348
|
+
});
|
349
|
+
|
350
|
+
function tokenTripleString(stream, state) {
|
351
|
+
var escaped = false;
|
352
|
+
while (!stream.eol()) {
|
353
|
+
if (!escaped && stream.match('"""')) {
|
354
|
+
state.tokenize = null;
|
355
|
+
break;
|
356
|
+
}
|
357
|
+
escaped = stream.next() != "\\" && !escaped;
|
358
|
+
}
|
359
|
+
return "string";
|
360
|
+
}
|
361
|
+
|
362
|
+
def("text/x-scala", {
|
363
|
+
name: "clike",
|
364
|
+
keywords: words(
|
365
|
+
|
366
|
+
/* scala */
|
367
|
+
"abstract case catch class def do else extends false final finally for forSome if " +
|
368
|
+
"implicit import lazy match new null object override package private protected return " +
|
369
|
+
"sealed super this throw trait try trye type val var while with yield _ : = => <- <: " +
|
370
|
+
"<% >: # @ " +
|
371
|
+
|
372
|
+
/* package scala */
|
373
|
+
"assert assume require print println printf readLine readBoolean readByte readShort " +
|
374
|
+
"readChar readInt readLong readFloat readDouble " +
|
375
|
+
|
376
|
+
"AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
|
377
|
+
"Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable " +
|
378
|
+
"Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
|
379
|
+
"Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
|
380
|
+
"StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: " +
|
381
|
+
|
382
|
+
/* package java.lang */
|
383
|
+
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
|
384
|
+
"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
|
385
|
+
"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
|
386
|
+
"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
|
387
|
+
),
|
388
|
+
multiLineStrings: true,
|
389
|
+
blockKeywords: words("catch class do else finally for forSome if match switch try while"),
|
390
|
+
atoms: words("true false null"),
|
391
|
+
indentStatements: false,
|
392
|
+
hooks: {
|
393
|
+
"@": function(stream) {
|
394
|
+
stream.eatWhile(/[\w\$_]/);
|
395
|
+
return "meta";
|
396
|
+
},
|
397
|
+
'"': function(stream, state) {
|
398
|
+
if (!stream.match('""')) return false;
|
399
|
+
state.tokenize = tokenTripleString;
|
400
|
+
return state.tokenize(stream, state);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
});
|
404
|
+
|
405
|
+
def(["x-shader/x-vertex", "x-shader/x-fragment"], {
|
406
|
+
name: "clike",
|
407
|
+
keywords: words("float int bool void " +
|
408
|
+
"vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " +
|
409
|
+
"mat2 mat3 mat4 " +
|
410
|
+
"sampler1D sampler2D sampler3D samplerCube " +
|
411
|
+
"sampler1DShadow sampler2DShadow" +
|
412
|
+
"const attribute uniform varying " +
|
413
|
+
"break continue discard return " +
|
414
|
+
"for while do if else struct " +
|
415
|
+
"in out inout"),
|
416
|
+
blockKeywords: words("for while do if else struct"),
|
417
|
+
builtin: words("radians degrees sin cos tan asin acos atan " +
|
418
|
+
"pow exp log exp2 sqrt inversesqrt " +
|
419
|
+
"abs sign floor ceil fract mod min max clamp mix step smootstep " +
|
420
|
+
"length distance dot cross normalize ftransform faceforward " +
|
421
|
+
"reflect refract matrixCompMult " +
|
422
|
+
"lessThan lessThanEqual greaterThan greaterThanEqual " +
|
423
|
+
"equal notEqual any all not " +
|
424
|
+
"texture1D texture1DProj texture1DLod texture1DProjLod " +
|
425
|
+
"texture2D texture2DProj texture2DLod texture2DProjLod " +
|
426
|
+
"texture3D texture3DProj texture3DLod texture3DProjLod " +
|
427
|
+
"textureCube textureCubeLod " +
|
428
|
+
"shadow1D shadow2D shadow1DProj shadow2DProj " +
|
429
|
+
"shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " +
|
430
|
+
"dFdx dFdy fwidth " +
|
431
|
+
"noise1 noise2 noise3 noise4"),
|
432
|
+
atoms: words("true false " +
|
433
|
+
"gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " +
|
434
|
+
"gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " +
|
435
|
+
"gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " +
|
436
|
+
"gl_FogCoord " +
|
437
|
+
"gl_Position gl_PointSize gl_ClipVertex " +
|
438
|
+
"gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " +
|
439
|
+
"gl_TexCoord gl_FogFragCoord " +
|
440
|
+
"gl_FragCoord gl_FrontFacing " +
|
441
|
+
"gl_FragColor gl_FragData gl_FragDepth " +
|
442
|
+
"gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " +
|
443
|
+
"gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " +
|
444
|
+
"gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " +
|
445
|
+
"gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose " +
|
446
|
+
"gl_ProjectionMatrixInverseTranspose " +
|
447
|
+
"gl_ModelViewProjectionMatrixInverseTranspose " +
|
448
|
+
"gl_TextureMatrixInverseTranspose " +
|
449
|
+
"gl_NormalScale gl_DepthRange gl_ClipPlane " +
|
450
|
+
"gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " +
|
451
|
+
"gl_FrontLightModelProduct gl_BackLightModelProduct " +
|
452
|
+
"gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " +
|
453
|
+
"gl_FogParameters " +
|
454
|
+
"gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " +
|
455
|
+
"gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " +
|
456
|
+
"gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " +
|
457
|
+
"gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " +
|
458
|
+
"gl_MaxDrawBuffers"),
|
459
|
+
hooks: {"#": cppHook},
|
460
|
+
modeProps: {fold: ["brace", "include"]}
|
461
|
+
});
|
462
|
+
|
463
|
+
def("text/x-nesc", {
|
464
|
+
name: "clike",
|
465
|
+
keywords: words(cKeywords + "as atomic async call command component components configuration event generic " +
|
466
|
+
"implementation includes interface module new norace nx_struct nx_union post provides " +
|
467
|
+
"signal task uses abstract extends"),
|
468
|
+
blockKeywords: words("case do else for if switch while struct"),
|
469
|
+
atoms: words("null"),
|
470
|
+
hooks: {"#": cppHook},
|
471
|
+
modeProps: {fold: ["brace", "include"]}
|
472
|
+
});
|
473
|
+
|
474
|
+
});
|
@@ -0,0 +1,225 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: C-like mode</title>
|
4
|
+
<meta charset="utf-8"/>
|
5
|
+
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
8
|
+
<script src="../../lib/codemirror.js"></script>
|
9
|
+
<script src="../../addon/edit/matchbrackets.js"></script>
|
10
|
+
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
|
11
|
+
<script src="../../addon/hint/show-hint.js"></script>
|
12
|
+
<script src="clike.js"></script>
|
13
|
+
<style>.CodeMirror {border: 2px inset #dee;}</style>
|
14
|
+
<div id=nav>
|
15
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
16
|
+
|
17
|
+
<ul>
|
18
|
+
<li><a href="../../index.html">Home</a>
|
19
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
20
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
21
|
+
</ul>
|
22
|
+
<ul>
|
23
|
+
<li><a href="../index.html">Language modes</a>
|
24
|
+
<li><a class=active href="#">C-like</a>
|
25
|
+
</ul>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<article>
|
29
|
+
<h2>C-like mode</h2>
|
30
|
+
|
31
|
+
<div><textarea id="c-code">
|
32
|
+
/* C demo code */
|
33
|
+
|
34
|
+
#include <zmq.h>
|
35
|
+
#include <pthread.h>
|
36
|
+
#include <semaphore.h>
|
37
|
+
#include <time.h>
|
38
|
+
#include <stdio.h>
|
39
|
+
#include <fcntl.h>
|
40
|
+
#include <malloc.h>
|
41
|
+
|
42
|
+
typedef struct {
|
43
|
+
void* arg_socket;
|
44
|
+
zmq_msg_t* arg_msg;
|
45
|
+
char* arg_string;
|
46
|
+
unsigned long arg_len;
|
47
|
+
int arg_int, arg_command;
|
48
|
+
|
49
|
+
int signal_fd;
|
50
|
+
int pad;
|
51
|
+
void* context;
|
52
|
+
sem_t sem;
|
53
|
+
} acl_zmq_context;
|
54
|
+
|
55
|
+
#define p(X) (context->arg_##X)
|
56
|
+
|
57
|
+
void* zmq_thread(void* context_pointer) {
|
58
|
+
acl_zmq_context* context = (acl_zmq_context*)context_pointer;
|
59
|
+
char ok = 'K', err = 'X';
|
60
|
+
int res;
|
61
|
+
|
62
|
+
while (1) {
|
63
|
+
while ((res = sem_wait(&context->sem)) == EINTR);
|
64
|
+
if (res) {write(context->signal_fd, &err, 1); goto cleanup;}
|
65
|
+
switch(p(command)) {
|
66
|
+
case 0: goto cleanup;
|
67
|
+
case 1: p(socket) = zmq_socket(context->context, p(int)); break;
|
68
|
+
case 2: p(int) = zmq_close(p(socket)); break;
|
69
|
+
case 3: p(int) = zmq_bind(p(socket), p(string)); break;
|
70
|
+
case 4: p(int) = zmq_connect(p(socket), p(string)); break;
|
71
|
+
case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &p(len)); break;
|
72
|
+
case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break;
|
73
|
+
case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break;
|
74
|
+
case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break;
|
75
|
+
case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break;
|
76
|
+
}
|
77
|
+
p(command) = errno;
|
78
|
+
write(context->signal_fd, &ok, 1);
|
79
|
+
}
|
80
|
+
cleanup:
|
81
|
+
close(context->signal_fd);
|
82
|
+
free(context_pointer);
|
83
|
+
return 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
void* zmq_thread_init(void* zmq_context, int signal_fd) {
|
87
|
+
acl_zmq_context* context = malloc(sizeof(acl_zmq_context));
|
88
|
+
pthread_t thread;
|
89
|
+
|
90
|
+
context->context = zmq_context;
|
91
|
+
context->signal_fd = signal_fd;
|
92
|
+
sem_init(&context->sem, 1, 0);
|
93
|
+
pthread_create(&thread, 0, &zmq_thread, context);
|
94
|
+
pthread_detach(thread);
|
95
|
+
return context;
|
96
|
+
}
|
97
|
+
</textarea></div>
|
98
|
+
|
99
|
+
<h2>C++ example</h2>
|
100
|
+
|
101
|
+
<div><textarea id="cpp-code">
|
102
|
+
#include <iostream>
|
103
|
+
#include "mystuff/util.h"
|
104
|
+
|
105
|
+
namespace {
|
106
|
+
enum Enum {
|
107
|
+
VAL1, VAL2, VAL3
|
108
|
+
};
|
109
|
+
|
110
|
+
char32_t unicode_string = U"\U0010FFFF";
|
111
|
+
string raw_string = R"delim(anything
|
112
|
+
you
|
113
|
+
want)delim";
|
114
|
+
|
115
|
+
int Helper(const MyType& param) {
|
116
|
+
return 0;
|
117
|
+
}
|
118
|
+
} // namespace
|
119
|
+
|
120
|
+
class ForwardDec;
|
121
|
+
|
122
|
+
template <class T, class V>
|
123
|
+
class Class : public BaseClass {
|
124
|
+
const MyType<T, V> member_;
|
125
|
+
|
126
|
+
public:
|
127
|
+
const MyType<T, V>& Method() const {
|
128
|
+
return member_;
|
129
|
+
}
|
130
|
+
|
131
|
+
void Method2(MyType<T, V>* value);
|
132
|
+
}
|
133
|
+
|
134
|
+
template <class T, class V>
|
135
|
+
void Class::Method2(MyType<T, V>* value) {
|
136
|
+
std::out << 1 >> method();
|
137
|
+
value->Method3(member_);
|
138
|
+
member_ = value;
|
139
|
+
}
|
140
|
+
</textarea></div>
|
141
|
+
|
142
|
+
<h2>Java example</h2>
|
143
|
+
|
144
|
+
<div><textarea id="java-code">
|
145
|
+
import com.demo.util.MyType;
|
146
|
+
import com.demo.util.MyInterface;
|
147
|
+
|
148
|
+
public enum Enum {
|
149
|
+
VAL1, VAL2, VAL3
|
150
|
+
}
|
151
|
+
|
152
|
+
public class Class<T, V> implements MyInterface {
|
153
|
+
public static final MyType<T, V> member;
|
154
|
+
|
155
|
+
private class InnerClass {
|
156
|
+
public int zero() {
|
157
|
+
return 0;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
@Override
|
162
|
+
public MyType method() {
|
163
|
+
return member;
|
164
|
+
}
|
165
|
+
|
166
|
+
public void method2(MyType<T, V> value) {
|
167
|
+
method();
|
168
|
+
value.method3();
|
169
|
+
member = value;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
</textarea></div>
|
173
|
+
|
174
|
+
<h2>Scala example</h2>
|
175
|
+
|
176
|
+
<div><textarea id="scala-code">
|
177
|
+
object FilterTest extends App {
|
178
|
+
def filter(xs: List[Int], threshold: Int) = {
|
179
|
+
def process(ys: List[Int]): List[Int] =
|
180
|
+
if (ys.isEmpty) ys
|
181
|
+
else if (ys.head < threshold) ys.head :: process(ys.tail)
|
182
|
+
else process(ys.tail)
|
183
|
+
process(xs)
|
184
|
+
}
|
185
|
+
println(filter(List(1, 9, 2, 8, 3, 7, 4), 5))
|
186
|
+
}
|
187
|
+
</textarea></div>
|
188
|
+
|
189
|
+
<script>
|
190
|
+
var cEditor = CodeMirror.fromTextArea(document.getElementById("c-code"), {
|
191
|
+
lineNumbers: true,
|
192
|
+
matchBrackets: true,
|
193
|
+
mode: "text/x-csrc"
|
194
|
+
});
|
195
|
+
var cppEditor = CodeMirror.fromTextArea(document.getElementById("cpp-code"), {
|
196
|
+
lineNumbers: true,
|
197
|
+
matchBrackets: true,
|
198
|
+
mode: "text/x-c++src"
|
199
|
+
});
|
200
|
+
var javaEditor = CodeMirror.fromTextArea(document.getElementById("java-code"), {
|
201
|
+
lineNumbers: true,
|
202
|
+
matchBrackets: true,
|
203
|
+
mode: "text/x-java"
|
204
|
+
});
|
205
|
+
var scalaEditor = CodeMirror.fromTextArea(document.getElementById("scala-code"), {
|
206
|
+
lineNumbers: true,
|
207
|
+
matchBrackets: true,
|
208
|
+
mode: "text/x-scala"
|
209
|
+
});
|
210
|
+
var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;
|
211
|
+
CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";
|
212
|
+
</script>
|
213
|
+
|
214
|
+
<p>Simple mode that tries to handle C-like languages as well as it
|
215
|
+
can. Takes two configuration parameters: <code>keywords</code>, an
|
216
|
+
object whose property names are the keywords in the language,
|
217
|
+
and <code>useCPP</code>, which determines whether C preprocessor
|
218
|
+
directives are recognized.</p>
|
219
|
+
|
220
|
+
<p><strong>MIME types defined:</strong> <code>text/x-csrc</code>
|
221
|
+
(C), <code>text/x-c++src</code> (C++), <code>text/x-java</code>
|
222
|
+
(Java), <code>text/x-csharp</code> (C#),
|
223
|
+
<code>text/x-scala</code> (Scala), <code>text/x-vertex</code>
|
224
|
+
and <code>x-shader/x-fragment</code> (shader programs).</p>
|
225
|
+
</article>
|