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,262 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
/*
|
5
|
+
* Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de)
|
6
|
+
* Licence: MIT
|
7
|
+
*/
|
8
|
+
|
9
|
+
(function(mod) {
|
10
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
11
|
+
mod(require("../../lib/codemirror"));
|
12
|
+
else if (typeof define == "function" && define.amd) // AMD
|
13
|
+
define(["../../lib/codemirror"], mod);
|
14
|
+
else // Plain browser env
|
15
|
+
mod(CodeMirror);
|
16
|
+
})(function(CodeMirror) {
|
17
|
+
"use strict";
|
18
|
+
|
19
|
+
CodeMirror.defineMode("stex", function() {
|
20
|
+
"use strict";
|
21
|
+
|
22
|
+
function pushCommand(state, command) {
|
23
|
+
state.cmdState.push(command);
|
24
|
+
}
|
25
|
+
|
26
|
+
function peekCommand(state) {
|
27
|
+
if (state.cmdState.length > 0) {
|
28
|
+
return state.cmdState[state.cmdState.length - 1];
|
29
|
+
} else {
|
30
|
+
return null;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
function popCommand(state) {
|
35
|
+
var plug = state.cmdState.pop();
|
36
|
+
if (plug) {
|
37
|
+
plug.closeBracket();
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
// returns the non-default plugin closest to the end of the list
|
42
|
+
function getMostPowerful(state) {
|
43
|
+
var context = state.cmdState;
|
44
|
+
for (var i = context.length - 1; i >= 0; i--) {
|
45
|
+
var plug = context[i];
|
46
|
+
if (plug.name == "DEFAULT") {
|
47
|
+
continue;
|
48
|
+
}
|
49
|
+
return plug;
|
50
|
+
}
|
51
|
+
return { styleIdentifier: function() { return null; } };
|
52
|
+
}
|
53
|
+
|
54
|
+
function addPluginPattern(pluginName, cmdStyle, styles) {
|
55
|
+
return function () {
|
56
|
+
this.name = pluginName;
|
57
|
+
this.bracketNo = 0;
|
58
|
+
this.style = cmdStyle;
|
59
|
+
this.styles = styles;
|
60
|
+
this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin
|
61
|
+
|
62
|
+
this.styleIdentifier = function() {
|
63
|
+
return this.styles[this.bracketNo - 1] || null;
|
64
|
+
};
|
65
|
+
this.openBracket = function() {
|
66
|
+
this.bracketNo++;
|
67
|
+
return "bracket";
|
68
|
+
};
|
69
|
+
this.closeBracket = function() {};
|
70
|
+
};
|
71
|
+
}
|
72
|
+
|
73
|
+
var plugins = {};
|
74
|
+
|
75
|
+
plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]);
|
76
|
+
plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]);
|
77
|
+
plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]);
|
78
|
+
plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]);
|
79
|
+
plugins["end"] = addPluginPattern("end", "tag", ["atom"]);
|
80
|
+
|
81
|
+
plugins["DEFAULT"] = function () {
|
82
|
+
this.name = "DEFAULT";
|
83
|
+
this.style = "tag";
|
84
|
+
|
85
|
+
this.styleIdentifier = this.openBracket = this.closeBracket = function() {};
|
86
|
+
};
|
87
|
+
|
88
|
+
function setState(state, f) {
|
89
|
+
state.f = f;
|
90
|
+
}
|
91
|
+
|
92
|
+
// called when in a normal (no environment) context
|
93
|
+
function normal(source, state) {
|
94
|
+
var plug;
|
95
|
+
// Do we look like '\command' ? If so, attempt to apply the plugin 'command'
|
96
|
+
if (source.match(/^\\[a-zA-Z@]+/)) {
|
97
|
+
var cmdName = source.current().slice(1);
|
98
|
+
plug = plugins[cmdName] || plugins["DEFAULT"];
|
99
|
+
plug = new plug();
|
100
|
+
pushCommand(state, plug);
|
101
|
+
setState(state, beginParams);
|
102
|
+
return plug.style;
|
103
|
+
}
|
104
|
+
|
105
|
+
// escape characters
|
106
|
+
if (source.match(/^\\[$&%#{}_]/)) {
|
107
|
+
return "tag";
|
108
|
+
}
|
109
|
+
|
110
|
+
// white space control characters
|
111
|
+
if (source.match(/^\\[,;!\/\\]/)) {
|
112
|
+
return "tag";
|
113
|
+
}
|
114
|
+
|
115
|
+
// find if we're starting various math modes
|
116
|
+
if (source.match("\\[")) {
|
117
|
+
setState(state, function(source, state){ return inMathMode(source, state, "\\]"); });
|
118
|
+
return "keyword";
|
119
|
+
}
|
120
|
+
if (source.match("$$")) {
|
121
|
+
setState(state, function(source, state){ return inMathMode(source, state, "$$"); });
|
122
|
+
return "keyword";
|
123
|
+
}
|
124
|
+
if (source.match("$")) {
|
125
|
+
setState(state, function(source, state){ return inMathMode(source, state, "$"); });
|
126
|
+
return "keyword";
|
127
|
+
}
|
128
|
+
|
129
|
+
var ch = source.next();
|
130
|
+
if (ch == "%") {
|
131
|
+
// special case: % at end of its own line; stay in same state
|
132
|
+
if (!source.eol()) {
|
133
|
+
setState(state, inCComment);
|
134
|
+
}
|
135
|
+
return "comment";
|
136
|
+
}
|
137
|
+
else if (ch == '}' || ch == ']') {
|
138
|
+
plug = peekCommand(state);
|
139
|
+
if (plug) {
|
140
|
+
plug.closeBracket(ch);
|
141
|
+
setState(state, beginParams);
|
142
|
+
} else {
|
143
|
+
return "error";
|
144
|
+
}
|
145
|
+
return "bracket";
|
146
|
+
} else if (ch == '{' || ch == '[') {
|
147
|
+
plug = plugins["DEFAULT"];
|
148
|
+
plug = new plug();
|
149
|
+
pushCommand(state, plug);
|
150
|
+
return "bracket";
|
151
|
+
}
|
152
|
+
else if (/\d/.test(ch)) {
|
153
|
+
source.eatWhile(/[\w.%]/);
|
154
|
+
return "atom";
|
155
|
+
}
|
156
|
+
else {
|
157
|
+
source.eatWhile(/[\w\-_]/);
|
158
|
+
plug = getMostPowerful(state);
|
159
|
+
if (plug.name == 'begin') {
|
160
|
+
plug.argument = source.current();
|
161
|
+
}
|
162
|
+
return plug.styleIdentifier();
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
function inCComment(source, state) {
|
167
|
+
source.skipToEnd();
|
168
|
+
setState(state, normal);
|
169
|
+
return "comment";
|
170
|
+
}
|
171
|
+
|
172
|
+
function inMathMode(source, state, endModeSeq) {
|
173
|
+
if (source.eatSpace()) {
|
174
|
+
return null;
|
175
|
+
}
|
176
|
+
if (source.match(endModeSeq)) {
|
177
|
+
setState(state, normal);
|
178
|
+
return "keyword";
|
179
|
+
}
|
180
|
+
if (source.match(/^\\[a-zA-Z@]+/)) {
|
181
|
+
return "tag";
|
182
|
+
}
|
183
|
+
if (source.match(/^[a-zA-Z]+/)) {
|
184
|
+
return "variable-2";
|
185
|
+
}
|
186
|
+
// escape characters
|
187
|
+
if (source.match(/^\\[$&%#{}_]/)) {
|
188
|
+
return "tag";
|
189
|
+
}
|
190
|
+
// white space control characters
|
191
|
+
if (source.match(/^\\[,;!\/]/)) {
|
192
|
+
return "tag";
|
193
|
+
}
|
194
|
+
// special math-mode characters
|
195
|
+
if (source.match(/^[\^_&]/)) {
|
196
|
+
return "tag";
|
197
|
+
}
|
198
|
+
// non-special characters
|
199
|
+
if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) {
|
200
|
+
return null;
|
201
|
+
}
|
202
|
+
if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) {
|
203
|
+
return "number";
|
204
|
+
}
|
205
|
+
var ch = source.next();
|
206
|
+
if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") {
|
207
|
+
return "bracket";
|
208
|
+
}
|
209
|
+
|
210
|
+
// eat comments here, because inCComment returns us to normal state!
|
211
|
+
if (ch == "%") {
|
212
|
+
if (!source.eol()) {
|
213
|
+
source.skipToEnd();
|
214
|
+
}
|
215
|
+
return "comment";
|
216
|
+
}
|
217
|
+
return "error";
|
218
|
+
}
|
219
|
+
|
220
|
+
function beginParams(source, state) {
|
221
|
+
var ch = source.peek(), lastPlug;
|
222
|
+
if (ch == '{' || ch == '[') {
|
223
|
+
lastPlug = peekCommand(state);
|
224
|
+
lastPlug.openBracket(ch);
|
225
|
+
source.eat(ch);
|
226
|
+
setState(state, normal);
|
227
|
+
return "bracket";
|
228
|
+
}
|
229
|
+
if (/[ \t\r]/.test(ch)) {
|
230
|
+
source.eat(ch);
|
231
|
+
return null;
|
232
|
+
}
|
233
|
+
setState(state, normal);
|
234
|
+
popCommand(state);
|
235
|
+
|
236
|
+
return normal(source, state);
|
237
|
+
}
|
238
|
+
|
239
|
+
return {
|
240
|
+
startState: function() {
|
241
|
+
return {
|
242
|
+
cmdState: [],
|
243
|
+
f: normal
|
244
|
+
};
|
245
|
+
},
|
246
|
+
copyState: function(s) {
|
247
|
+
return {
|
248
|
+
cmdState: s.cmdState.slice(),
|
249
|
+
f: s.f
|
250
|
+
};
|
251
|
+
},
|
252
|
+
token: function(stream, state) {
|
253
|
+
return state.f(stream, state);
|
254
|
+
},
|
255
|
+
lineComment: "%"
|
256
|
+
};
|
257
|
+
});
|
258
|
+
|
259
|
+
CodeMirror.defineMIME("text/x-stex", "stex");
|
260
|
+
CodeMirror.defineMIME("text/x-latex", "stex");
|
261
|
+
|
262
|
+
});
|
@@ -0,0 +1,123 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function() {
|
5
|
+
var mode = CodeMirror.getMode({tabSize: 4}, "stex");
|
6
|
+
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
|
7
|
+
|
8
|
+
MT("word",
|
9
|
+
"foo");
|
10
|
+
|
11
|
+
MT("twoWords",
|
12
|
+
"foo bar");
|
13
|
+
|
14
|
+
MT("beginEndDocument",
|
15
|
+
"[tag \\begin][bracket {][atom document][bracket }]",
|
16
|
+
"[tag \\end][bracket {][atom document][bracket }]");
|
17
|
+
|
18
|
+
MT("beginEndEquation",
|
19
|
+
"[tag \\begin][bracket {][atom equation][bracket }]",
|
20
|
+
" E=mc^2",
|
21
|
+
"[tag \\end][bracket {][atom equation][bracket }]");
|
22
|
+
|
23
|
+
MT("beginModule",
|
24
|
+
"[tag \\begin][bracket {][atom module][bracket }[[]]]");
|
25
|
+
|
26
|
+
MT("beginModuleId",
|
27
|
+
"[tag \\begin][bracket {][atom module][bracket }[[]id=bbt-size[bracket ]]]");
|
28
|
+
|
29
|
+
MT("importModule",
|
30
|
+
"[tag \\importmodule][bracket [[][string b-b-t][bracket ]]{][builtin b-b-t][bracket }]");
|
31
|
+
|
32
|
+
MT("importModulePath",
|
33
|
+
"[tag \\importmodule][bracket [[][tag \\KWARCslides][bracket {][string dmath/en/cardinality][bracket }]]{][builtin card][bracket }]");
|
34
|
+
|
35
|
+
MT("psForPDF",
|
36
|
+
"[tag \\PSforPDF][bracket [[][atom 1][bracket ]]{]#1[bracket }]");
|
37
|
+
|
38
|
+
MT("comment",
|
39
|
+
"[comment % foo]");
|
40
|
+
|
41
|
+
MT("tagComment",
|
42
|
+
"[tag \\item][comment % bar]");
|
43
|
+
|
44
|
+
MT("commentTag",
|
45
|
+
" [comment % \\item]");
|
46
|
+
|
47
|
+
MT("commentLineBreak",
|
48
|
+
"[comment %]",
|
49
|
+
"foo");
|
50
|
+
|
51
|
+
MT("tagErrorCurly",
|
52
|
+
"[tag \\begin][error }][bracket {]");
|
53
|
+
|
54
|
+
MT("tagErrorSquare",
|
55
|
+
"[tag \\item][error ]]][bracket {]");
|
56
|
+
|
57
|
+
MT("commentCurly",
|
58
|
+
"[comment % }]");
|
59
|
+
|
60
|
+
MT("tagHash",
|
61
|
+
"the [tag \\#] key");
|
62
|
+
|
63
|
+
MT("tagNumber",
|
64
|
+
"a [tag \\$][atom 5] stetson");
|
65
|
+
|
66
|
+
MT("tagPercent",
|
67
|
+
"[atom 100][tag \\%] beef");
|
68
|
+
|
69
|
+
MT("tagAmpersand",
|
70
|
+
"L [tag \\&] N");
|
71
|
+
|
72
|
+
MT("tagUnderscore",
|
73
|
+
"foo[tag \\_]bar");
|
74
|
+
|
75
|
+
MT("tagBracketOpen",
|
76
|
+
"[tag \\emph][bracket {][tag \\{][bracket }]");
|
77
|
+
|
78
|
+
MT("tagBracketClose",
|
79
|
+
"[tag \\emph][bracket {][tag \\}][bracket }]");
|
80
|
+
|
81
|
+
MT("tagLetterNumber",
|
82
|
+
"section [tag \\S][atom 1]");
|
83
|
+
|
84
|
+
MT("textTagNumber",
|
85
|
+
"para [tag \\P][atom 2]");
|
86
|
+
|
87
|
+
MT("thinspace",
|
88
|
+
"x[tag \\,]y");
|
89
|
+
|
90
|
+
MT("thickspace",
|
91
|
+
"x[tag \\;]y");
|
92
|
+
|
93
|
+
MT("negativeThinspace",
|
94
|
+
"x[tag \\!]y");
|
95
|
+
|
96
|
+
MT("periodNotSentence",
|
97
|
+
"J.\\ L.\\ is");
|
98
|
+
|
99
|
+
MT("periodSentence",
|
100
|
+
"X[tag \\@]. The");
|
101
|
+
|
102
|
+
MT("italicCorrection",
|
103
|
+
"[bracket {][tag \\em] If[tag \\/][bracket }] I");
|
104
|
+
|
105
|
+
MT("tagBracket",
|
106
|
+
"[tag \\newcommand][bracket {][tag \\pop][bracket }]");
|
107
|
+
|
108
|
+
MT("inlineMathTagFollowedByNumber",
|
109
|
+
"[keyword $][tag \\pi][number 2][keyword $]");
|
110
|
+
|
111
|
+
MT("inlineMath",
|
112
|
+
"[keyword $][number 3][variable-2 x][tag ^][number 2.45]-[tag \\sqrt][bracket {][tag \\$\\alpha][bracket }] = [number 2][keyword $] other text");
|
113
|
+
|
114
|
+
MT("displayMath",
|
115
|
+
"More [keyword $$]\t[variable-2 S][tag ^][variable-2 n][tag \\sum] [variable-2 i][keyword $$] other text");
|
116
|
+
|
117
|
+
MT("mathWithComment",
|
118
|
+
"[keyword $][variable-2 x] [comment % $]",
|
119
|
+
"[variable-2 y][keyword $] other text");
|
120
|
+
|
121
|
+
MT("lineBreakArgument",
|
122
|
+
"[tag \\\\][bracket [[][atom 1cm][bracket ]]]");
|
123
|
+
})();
|
@@ -0,0 +1,142 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Tcl 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
|
+
<link rel="stylesheet" href="../../theme/night.css">
|
9
|
+
<script src="../../lib/codemirror.js"></script>
|
10
|
+
<script src="tcl.js"></script>
|
11
|
+
<script src="../../addon/scroll/scrollpastend.js"></script>
|
12
|
+
<div id=nav>
|
13
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
14
|
+
|
15
|
+
<ul>
|
16
|
+
<li><a href="../../index.html">Home</a>
|
17
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
18
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
19
|
+
</ul>
|
20
|
+
<ul>
|
21
|
+
<li><a href="../index.html">Language modes</a>
|
22
|
+
<li><a class=active href="#">Tcl</a>
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<article>
|
27
|
+
<h2>Tcl mode</h2>
|
28
|
+
<form><textarea id="code" name="code">
|
29
|
+
##############################################################################################
|
30
|
+
## ## whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help ## ##
|
31
|
+
##############################################################################################
|
32
|
+
## To use this script you must set channel flag +whois (ie .chanset #chan +whois) ##
|
33
|
+
##############################################################################################
|
34
|
+
## ____ __ ########################################### ##
|
35
|
+
## / __/___ _ ___ _ ___/ /____ ___ ___ ########################################### ##
|
36
|
+
## / _/ / _ `// _ `// _ // __// _ \ / _ \ ########################################### ##
|
37
|
+
## /___/ \_, / \_, / \_,_//_/ \___// .__/ ########################################### ##
|
38
|
+
## /___/ /___/ /_/ ########################################### ##
|
39
|
+
## ########################################### ##
|
40
|
+
##############################################################################################
|
41
|
+
## ## Start Setup. ## ##
|
42
|
+
##############################################################################################
|
43
|
+
namespace eval whois {
|
44
|
+
## change cmdchar to the trigger you want to use ## ##
|
45
|
+
variable cmdchar "!"
|
46
|
+
## change command to the word trigger you would like to use. ## ##
|
47
|
+
## Keep in mind, This will also change the .chanset +/-command ## ##
|
48
|
+
variable command "whois"
|
49
|
+
## change textf to the colors you want for the text. ## ##
|
50
|
+
variable textf "\017\00304"
|
51
|
+
## change tagf to the colors you want for tags: ## ##
|
52
|
+
variable tagf "\017\002"
|
53
|
+
## Change logo to the logo you want at the start of the line. ## ##
|
54
|
+
variable logo "\017\00304\002\[\00306W\003hois\00304\]\017"
|
55
|
+
## Change lineout to the results you want. Valid results are channel users modes topic ## ##
|
56
|
+
variable lineout "channel users modes topic"
|
57
|
+
##############################################################################################
|
58
|
+
## ## End Setup. ## ##
|
59
|
+
##############################################################################################
|
60
|
+
variable channel ""
|
61
|
+
setudef flag $whois::command
|
62
|
+
bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list
|
63
|
+
bind raw -|- "311" whois::311
|
64
|
+
bind raw -|- "312" whois::312
|
65
|
+
bind raw -|- "319" whois::319
|
66
|
+
bind raw -|- "317" whois::317
|
67
|
+
bind raw -|- "313" whois::multi
|
68
|
+
bind raw -|- "310" whois::multi
|
69
|
+
bind raw -|- "335" whois::multi
|
70
|
+
bind raw -|- "301" whois::301
|
71
|
+
bind raw -|- "671" whois::multi
|
72
|
+
bind raw -|- "320" whois::multi
|
73
|
+
bind raw -|- "401" whois::multi
|
74
|
+
bind raw -|- "318" whois::318
|
75
|
+
bind raw -|- "307" whois::307
|
76
|
+
}
|
77
|
+
proc whois::311 {from key text} {
|
78
|
+
if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} {
|
79
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \
|
80
|
+
$nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
proc whois::multi {from key text} {
|
84
|
+
if {[regexp {\:(.*)$} $text match $key]} {
|
85
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]"
|
86
|
+
return 1
|
87
|
+
}
|
88
|
+
}
|
89
|
+
proc whois::312 {from key text} {
|
90
|
+
regexp {([^\s]+)\s\:} $text match server
|
91
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server"
|
92
|
+
}
|
93
|
+
proc whois::319 {from key text} {
|
94
|
+
if {[regexp {.+\:(.+)$} $text match channels]} {
|
95
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels"
|
96
|
+
}
|
97
|
+
}
|
98
|
+
proc whois::317 {from key text} {
|
99
|
+
if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} {
|
100
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \
|
101
|
+
[ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]"
|
102
|
+
}
|
103
|
+
}
|
104
|
+
proc whois::301 {from key text} {
|
105
|
+
if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} {
|
106
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
proc whois::318 {from key text} {
|
110
|
+
namespace eval whois {
|
111
|
+
variable channel ""
|
112
|
+
}
|
113
|
+
variable whois::channel ""
|
114
|
+
}
|
115
|
+
proc whois::307 {from key text} {
|
116
|
+
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick"
|
117
|
+
}
|
118
|
+
proc whois::list {nick host hand chan text} {
|
119
|
+
if {[lsearch -exact [channel info $chan] "+${whois::command}"] != -1} {
|
120
|
+
namespace eval whois {
|
121
|
+
variable channel ""
|
122
|
+
}
|
123
|
+
variable whois::channel $chan
|
124
|
+
putserv "WHOIS $text"
|
125
|
+
}
|
126
|
+
}
|
127
|
+
putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \
|
128
|
+
Ford_Lawnmower irc.GeekShed.net #Script-Help"
|
129
|
+
</textarea></form>
|
130
|
+
<script>
|
131
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
132
|
+
theme: "night",
|
133
|
+
lineNumbers: true,
|
134
|
+
indentUnit: 2,
|
135
|
+
scrollPastEnd: true,
|
136
|
+
mode: "text/x-tcl"
|
137
|
+
});
|
138
|
+
</script>
|
139
|
+
|
140
|
+
<p><strong>MIME types defined:</strong> <code>text/x-tcl</code>.</p>
|
141
|
+
|
142
|
+
</article>
|
@@ -0,0 +1,147 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
//tcl mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara
|
5
|
+
|
6
|
+
(function(mod) {
|
7
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
8
|
+
mod(require("../../lib/codemirror"));
|
9
|
+
else if (typeof define == "function" && define.amd) // AMD
|
10
|
+
define(["../../lib/codemirror"], mod);
|
11
|
+
else // Plain browser env
|
12
|
+
mod(CodeMirror);
|
13
|
+
})(function(CodeMirror) {
|
14
|
+
"use strict";
|
15
|
+
|
16
|
+
CodeMirror.defineMode("tcl", function() {
|
17
|
+
function parseWords(str) {
|
18
|
+
var obj = {}, words = str.split(" ");
|
19
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
20
|
+
return obj;
|
21
|
+
}
|
22
|
+
var keywords = parseWords("Tcl safe after append array auto_execok auto_import auto_load " +
|
23
|
+
"auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror " +
|
24
|
+
"binary break catch cd close concat continue dde eof encoding error " +
|
25
|
+
"eval exec exit expr fblocked fconfigure fcopy file fileevent filename " +
|
26
|
+
"filename flush for foreach format gets glob global history http if " +
|
27
|
+
"incr info interp join lappend lindex linsert list llength load lrange " +
|
28
|
+
"lreplace lsearch lset lsort memory msgcat namespace open package parray " +
|
29
|
+
"pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp " +
|
30
|
+
"registry regsub rename resource return scan seek set socket source split " +
|
31
|
+
"string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord " +
|
32
|
+
"tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest " +
|
33
|
+
"tclvars tell time trace unknown unset update uplevel upvar variable " +
|
34
|
+
"vwait");
|
35
|
+
var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch");
|
36
|
+
var isOperatorChar = /[+\-*&%=<>!?^\/\|]/;
|
37
|
+
function chain(stream, state, f) {
|
38
|
+
state.tokenize = f;
|
39
|
+
return f(stream, state);
|
40
|
+
}
|
41
|
+
function tokenBase(stream, state) {
|
42
|
+
var beforeParams = state.beforeParams;
|
43
|
+
state.beforeParams = false;
|
44
|
+
var ch = stream.next();
|
45
|
+
if ((ch == '"' || ch == "'") && state.inParams)
|
46
|
+
return chain(stream, state, tokenString(ch));
|
47
|
+
else if (/[\[\]{}\(\),;\.]/.test(ch)) {
|
48
|
+
if (ch == "(" && beforeParams) state.inParams = true;
|
49
|
+
else if (ch == ")") state.inParams = false;
|
50
|
+
return null;
|
51
|
+
}
|
52
|
+
else if (/\d/.test(ch)) {
|
53
|
+
stream.eatWhile(/[\w\.]/);
|
54
|
+
return "number";
|
55
|
+
}
|
56
|
+
else if (ch == "#" && stream.eat("*")) {
|
57
|
+
return chain(stream, state, tokenComment);
|
58
|
+
}
|
59
|
+
else if (ch == "#" && stream.match(/ *\[ *\[/)) {
|
60
|
+
return chain(stream, state, tokenUnparsed);
|
61
|
+
}
|
62
|
+
else if (ch == "#" && stream.eat("#")) {
|
63
|
+
stream.skipToEnd();
|
64
|
+
return "comment";
|
65
|
+
}
|
66
|
+
else if (ch == '"') {
|
67
|
+
stream.skipTo(/"/);
|
68
|
+
return "comment";
|
69
|
+
}
|
70
|
+
else if (ch == "$") {
|
71
|
+
stream.eatWhile(/[$_a-z0-9A-Z\.{:]/);
|
72
|
+
stream.eatWhile(/}/);
|
73
|
+
state.beforeParams = true;
|
74
|
+
return "builtin";
|
75
|
+
}
|
76
|
+
else if (isOperatorChar.test(ch)) {
|
77
|
+
stream.eatWhile(isOperatorChar);
|
78
|
+
return "comment";
|
79
|
+
}
|
80
|
+
else {
|
81
|
+
stream.eatWhile(/[\w\$_{}\xa1-\uffff]/);
|
82
|
+
var word = stream.current().toLowerCase();
|
83
|
+
if (keywords && keywords.propertyIsEnumerable(word))
|
84
|
+
return "keyword";
|
85
|
+
if (functions && functions.propertyIsEnumerable(word)) {
|
86
|
+
state.beforeParams = true;
|
87
|
+
return "keyword";
|
88
|
+
}
|
89
|
+
return null;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
function tokenString(quote) {
|
93
|
+
return function(stream, state) {
|
94
|
+
var escaped = false, next, end = false;
|
95
|
+
while ((next = stream.next()) != null) {
|
96
|
+
if (next == quote && !escaped) {
|
97
|
+
end = true;
|
98
|
+
break;
|
99
|
+
}
|
100
|
+
escaped = !escaped && next == "\\";
|
101
|
+
}
|
102
|
+
if (end) state.tokenize = tokenBase;
|
103
|
+
return "string";
|
104
|
+
};
|
105
|
+
}
|
106
|
+
function tokenComment(stream, state) {
|
107
|
+
var maybeEnd = false, ch;
|
108
|
+
while (ch = stream.next()) {
|
109
|
+
if (ch == "#" && maybeEnd) {
|
110
|
+
state.tokenize = tokenBase;
|
111
|
+
break;
|
112
|
+
}
|
113
|
+
maybeEnd = (ch == "*");
|
114
|
+
}
|
115
|
+
return "comment";
|
116
|
+
}
|
117
|
+
function tokenUnparsed(stream, state) {
|
118
|
+
var maybeEnd = 0, ch;
|
119
|
+
while (ch = stream.next()) {
|
120
|
+
if (ch == "#" && maybeEnd == 2) {
|
121
|
+
state.tokenize = tokenBase;
|
122
|
+
break;
|
123
|
+
}
|
124
|
+
if (ch == "]")
|
125
|
+
maybeEnd++;
|
126
|
+
else if (ch != " ")
|
127
|
+
maybeEnd = 0;
|
128
|
+
}
|
129
|
+
return "meta";
|
130
|
+
}
|
131
|
+
return {
|
132
|
+
startState: function() {
|
133
|
+
return {
|
134
|
+
tokenize: tokenBase,
|
135
|
+
beforeParams: false,
|
136
|
+
inParams: false
|
137
|
+
};
|
138
|
+
},
|
139
|
+
token: function(stream, state) {
|
140
|
+
if (stream.eatSpace()) return null;
|
141
|
+
return state.tokenize(stream, state);
|
142
|
+
}
|
143
|
+
};
|
144
|
+
});
|
145
|
+
CodeMirror.defineMIME("text/x-tcl", "tcl");
|
146
|
+
|
147
|
+
});
|