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,175 @@
|
|
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("apl", function() {
|
15
|
+
var builtInOps = {
|
16
|
+
".": "innerProduct",
|
17
|
+
"\\": "scan",
|
18
|
+
"/": "reduce",
|
19
|
+
"⌿": "reduce1Axis",
|
20
|
+
"⍀": "scan1Axis",
|
21
|
+
"¨": "each",
|
22
|
+
"⍣": "power"
|
23
|
+
};
|
24
|
+
var builtInFuncs = {
|
25
|
+
"+": ["conjugate", "add"],
|
26
|
+
"−": ["negate", "subtract"],
|
27
|
+
"×": ["signOf", "multiply"],
|
28
|
+
"÷": ["reciprocal", "divide"],
|
29
|
+
"⌈": ["ceiling", "greaterOf"],
|
30
|
+
"⌊": ["floor", "lesserOf"],
|
31
|
+
"∣": ["absolute", "residue"],
|
32
|
+
"⍳": ["indexGenerate", "indexOf"],
|
33
|
+
"?": ["roll", "deal"],
|
34
|
+
"⋆": ["exponentiate", "toThePowerOf"],
|
35
|
+
"⍟": ["naturalLog", "logToTheBase"],
|
36
|
+
"○": ["piTimes", "circularFuncs"],
|
37
|
+
"!": ["factorial", "binomial"],
|
38
|
+
"⌹": ["matrixInverse", "matrixDivide"],
|
39
|
+
"<": [null, "lessThan"],
|
40
|
+
"≤": [null, "lessThanOrEqual"],
|
41
|
+
"=": [null, "equals"],
|
42
|
+
">": [null, "greaterThan"],
|
43
|
+
"≥": [null, "greaterThanOrEqual"],
|
44
|
+
"≠": [null, "notEqual"],
|
45
|
+
"≡": ["depth", "match"],
|
46
|
+
"≢": [null, "notMatch"],
|
47
|
+
"∈": ["enlist", "membership"],
|
48
|
+
"⍷": [null, "find"],
|
49
|
+
"∪": ["unique", "union"],
|
50
|
+
"∩": [null, "intersection"],
|
51
|
+
"∼": ["not", "without"],
|
52
|
+
"∨": [null, "or"],
|
53
|
+
"∧": [null, "and"],
|
54
|
+
"⍱": [null, "nor"],
|
55
|
+
"⍲": [null, "nand"],
|
56
|
+
"⍴": ["shapeOf", "reshape"],
|
57
|
+
",": ["ravel", "catenate"],
|
58
|
+
"⍪": [null, "firstAxisCatenate"],
|
59
|
+
"⌽": ["reverse", "rotate"],
|
60
|
+
"⊖": ["axis1Reverse", "axis1Rotate"],
|
61
|
+
"⍉": ["transpose", null],
|
62
|
+
"↑": ["first", "take"],
|
63
|
+
"↓": [null, "drop"],
|
64
|
+
"⊂": ["enclose", "partitionWithAxis"],
|
65
|
+
"⊃": ["diclose", "pick"],
|
66
|
+
"⌷": [null, "index"],
|
67
|
+
"⍋": ["gradeUp", null],
|
68
|
+
"⍒": ["gradeDown", null],
|
69
|
+
"⊤": ["encode", null],
|
70
|
+
"⊥": ["decode", null],
|
71
|
+
"⍕": ["format", "formatByExample"],
|
72
|
+
"⍎": ["execute", null],
|
73
|
+
"⊣": ["stop", "left"],
|
74
|
+
"⊢": ["pass", "right"]
|
75
|
+
};
|
76
|
+
|
77
|
+
var isOperator = /[\.\/⌿⍀¨⍣]/;
|
78
|
+
var isNiladic = /⍬/;
|
79
|
+
var isFunction = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;
|
80
|
+
var isArrow = /←/;
|
81
|
+
var isComment = /[⍝#].*$/;
|
82
|
+
|
83
|
+
var stringEater = function(type) {
|
84
|
+
var prev;
|
85
|
+
prev = false;
|
86
|
+
return function(c) {
|
87
|
+
prev = c;
|
88
|
+
if (c === type) {
|
89
|
+
return prev === "\\";
|
90
|
+
}
|
91
|
+
return true;
|
92
|
+
};
|
93
|
+
};
|
94
|
+
return {
|
95
|
+
startState: function() {
|
96
|
+
return {
|
97
|
+
prev: false,
|
98
|
+
func: false,
|
99
|
+
op: false,
|
100
|
+
string: false,
|
101
|
+
escape: false
|
102
|
+
};
|
103
|
+
},
|
104
|
+
token: function(stream, state) {
|
105
|
+
var ch, funcName, word;
|
106
|
+
if (stream.eatSpace()) {
|
107
|
+
return null;
|
108
|
+
}
|
109
|
+
ch = stream.next();
|
110
|
+
if (ch === '"' || ch === "'") {
|
111
|
+
stream.eatWhile(stringEater(ch));
|
112
|
+
stream.next();
|
113
|
+
state.prev = true;
|
114
|
+
return "string";
|
115
|
+
}
|
116
|
+
if (/[\[{\(]/.test(ch)) {
|
117
|
+
state.prev = false;
|
118
|
+
return null;
|
119
|
+
}
|
120
|
+
if (/[\]}\)]/.test(ch)) {
|
121
|
+
state.prev = true;
|
122
|
+
return null;
|
123
|
+
}
|
124
|
+
if (isNiladic.test(ch)) {
|
125
|
+
state.prev = false;
|
126
|
+
return "niladic";
|
127
|
+
}
|
128
|
+
if (/[¯\d]/.test(ch)) {
|
129
|
+
if (state.func) {
|
130
|
+
state.func = false;
|
131
|
+
state.prev = false;
|
132
|
+
} else {
|
133
|
+
state.prev = true;
|
134
|
+
}
|
135
|
+
stream.eatWhile(/[\w\.]/);
|
136
|
+
return "number";
|
137
|
+
}
|
138
|
+
if (isOperator.test(ch)) {
|
139
|
+
return "operator apl-" + builtInOps[ch];
|
140
|
+
}
|
141
|
+
if (isArrow.test(ch)) {
|
142
|
+
return "apl-arrow";
|
143
|
+
}
|
144
|
+
if (isFunction.test(ch)) {
|
145
|
+
funcName = "apl-";
|
146
|
+
if (builtInFuncs[ch] != null) {
|
147
|
+
if (state.prev) {
|
148
|
+
funcName += builtInFuncs[ch][1];
|
149
|
+
} else {
|
150
|
+
funcName += builtInFuncs[ch][0];
|
151
|
+
}
|
152
|
+
}
|
153
|
+
state.func = true;
|
154
|
+
state.prev = false;
|
155
|
+
return "function " + funcName;
|
156
|
+
}
|
157
|
+
if (isComment.test(ch)) {
|
158
|
+
stream.skipToEnd();
|
159
|
+
return "comment";
|
160
|
+
}
|
161
|
+
if (ch === "∘" && stream.peek() === ".") {
|
162
|
+
stream.next();
|
163
|
+
return "function jot-dot";
|
164
|
+
}
|
165
|
+
stream.eatWhile(/[\w\$_]/);
|
166
|
+
word = stream.current();
|
167
|
+
state.prev = true;
|
168
|
+
return "keyword";
|
169
|
+
}
|
170
|
+
};
|
171
|
+
});
|
172
|
+
|
173
|
+
CodeMirror.defineMIME("text/apl", "apl");
|
174
|
+
|
175
|
+
});
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: APL 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
|
+
<script src="./apl.js"></script>
|
11
|
+
<style>
|
12
|
+
.CodeMirror { border: 2px inset #dee; }
|
13
|
+
</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="#">APL</a>
|
25
|
+
</ul>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<article>
|
29
|
+
<h2>APL mode</h2>
|
30
|
+
<form><textarea id="code" name="code">
|
31
|
+
⍝ Conway's game of life
|
32
|
+
|
33
|
+
⍝ This example was inspired by the impressive demo at
|
34
|
+
⍝ http://www.youtube.com/watch?v=a9xAKttWgP4
|
35
|
+
|
36
|
+
⍝ Create a matrix:
|
37
|
+
⍝ 0 1 1
|
38
|
+
⍝ 1 1 0
|
39
|
+
⍝ 0 1 0
|
40
|
+
creature ← (3 3 ⍴ ⍳ 9) ∈ 1 2 3 4 7 ⍝ Original creature from demo
|
41
|
+
creature ← (3 3 ⍴ ⍳ 9) ∈ 1 3 6 7 8 ⍝ Glider
|
42
|
+
|
43
|
+
⍝ Place the creature on a larger board, near the centre
|
44
|
+
board ← ¯1 ⊖ ¯2 ⌽ 5 7 ↑ creature
|
45
|
+
|
46
|
+
⍝ A function to move from one generation to the next
|
47
|
+
life ← {∨/ 1 ⍵ ∧ 3 4 = ⊂+/ +⌿ 1 0 ¯1 ∘.⊖ 1 0 ¯1 ⌽¨ ⊂⍵}
|
48
|
+
|
49
|
+
⍝ Compute n-th generation and format it as a
|
50
|
+
⍝ character matrix
|
51
|
+
gen ← {' #'[(life ⍣ ⍵) board]}
|
52
|
+
|
53
|
+
⍝ Show first three generations
|
54
|
+
(gen 1) (gen 2) (gen 3)
|
55
|
+
</textarea></form>
|
56
|
+
|
57
|
+
<script>
|
58
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
59
|
+
lineNumbers: true,
|
60
|
+
matchBrackets: true,
|
61
|
+
mode: "text/apl"
|
62
|
+
});
|
63
|
+
</script>
|
64
|
+
|
65
|
+
<p>Simple mode that tries to handle APL as well as it can.</p>
|
66
|
+
<p>It attempts to label functions/operators based upon
|
67
|
+
monadic/dyadic usage (but this is far from fully fleshed out).
|
68
|
+
This means there are meaningful classnames so hover states can
|
69
|
+
have popups etc.</p>
|
70
|
+
|
71
|
+
<p><strong>MIME types defined:</strong> <code>text/apl</code> (APL code)</p>
|
72
|
+
</article>
|
@@ -0,0 +1,198 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
/*
|
5
|
+
* =====================================================================================
|
6
|
+
*
|
7
|
+
* Filename: mode/asterisk/asterisk.js
|
8
|
+
*
|
9
|
+
* Description: CodeMirror mode for Asterisk dialplan
|
10
|
+
*
|
11
|
+
* Created: 05/17/2012 09:20:25 PM
|
12
|
+
* Revision: none
|
13
|
+
*
|
14
|
+
* Author: Stas Kobzar (stas@modulis.ca),
|
15
|
+
* Company: Modulis.ca Inc.
|
16
|
+
*
|
17
|
+
* =====================================================================================
|
18
|
+
*/
|
19
|
+
|
20
|
+
(function(mod) {
|
21
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
22
|
+
mod(require("../../lib/codemirror"));
|
23
|
+
else if (typeof define == "function" && define.amd) // AMD
|
24
|
+
define(["../../lib/codemirror"], mod);
|
25
|
+
else // Plain browser env
|
26
|
+
mod(CodeMirror);
|
27
|
+
})(function(CodeMirror) {
|
28
|
+
"use strict";
|
29
|
+
|
30
|
+
CodeMirror.defineMode("asterisk", function() {
|
31
|
+
var atoms = ["exten", "same", "include","ignorepat","switch"],
|
32
|
+
dpcmd = ["#include","#exec"],
|
33
|
+
apps = [
|
34
|
+
"addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi",
|
35
|
+
"alarmreceiver","amd","answer","authenticate","background","backgrounddetect",
|
36
|
+
"bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent",
|
37
|
+
"changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge",
|
38
|
+
"congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge",
|
39
|
+
"dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility",
|
40
|
+
"datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa",
|
41
|
+
"dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy",
|
42
|
+
"externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif",
|
43
|
+
"goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete",
|
44
|
+
"ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus",
|
45
|
+
"jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme",
|
46
|
+
"meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete",
|
47
|
+
"minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode",
|
48
|
+
"mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish",
|
49
|
+
"originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce",
|
50
|
+
"parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones",
|
51
|
+
"privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten",
|
52
|
+
"readfile","receivefax","receivefax","receivefax","record","removequeuemember",
|
53
|
+
"resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun",
|
54
|
+
"saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax",
|
55
|
+
"sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags",
|
56
|
+
"setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel",
|
57
|
+
"slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground",
|
58
|
+
"speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound",
|
59
|
+
"speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor",
|
60
|
+
"stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec",
|
61
|
+
"trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate",
|
62
|
+
"vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring",
|
63
|
+
"waitforsilence","waitmusiconhold","waituntil","while","zapateller"
|
64
|
+
];
|
65
|
+
|
66
|
+
function basicToken(stream,state){
|
67
|
+
var cur = '';
|
68
|
+
var ch = '';
|
69
|
+
ch = stream.next();
|
70
|
+
// comment
|
71
|
+
if(ch == ";") {
|
72
|
+
stream.skipToEnd();
|
73
|
+
return "comment";
|
74
|
+
}
|
75
|
+
// context
|
76
|
+
if(ch == '[') {
|
77
|
+
stream.skipTo(']');
|
78
|
+
stream.eat(']');
|
79
|
+
return "header";
|
80
|
+
}
|
81
|
+
// string
|
82
|
+
if(ch == '"') {
|
83
|
+
stream.skipTo('"');
|
84
|
+
return "string";
|
85
|
+
}
|
86
|
+
if(ch == "'") {
|
87
|
+
stream.skipTo("'");
|
88
|
+
return "string-2";
|
89
|
+
}
|
90
|
+
// dialplan commands
|
91
|
+
if(ch == '#') {
|
92
|
+
stream.eatWhile(/\w/);
|
93
|
+
cur = stream.current();
|
94
|
+
if(dpcmd.indexOf(cur) !== -1) {
|
95
|
+
stream.skipToEnd();
|
96
|
+
return "strong";
|
97
|
+
}
|
98
|
+
}
|
99
|
+
// application args
|
100
|
+
if(ch == '$'){
|
101
|
+
var ch1 = stream.peek();
|
102
|
+
if(ch1 == '{'){
|
103
|
+
stream.skipTo('}');
|
104
|
+
stream.eat('}');
|
105
|
+
return "variable-3";
|
106
|
+
}
|
107
|
+
}
|
108
|
+
// extension
|
109
|
+
stream.eatWhile(/\w/);
|
110
|
+
cur = stream.current();
|
111
|
+
if(atoms.indexOf(cur) !== -1) {
|
112
|
+
state.extenStart = true;
|
113
|
+
switch(cur) {
|
114
|
+
case 'same': state.extenSame = true; break;
|
115
|
+
case 'include':
|
116
|
+
case 'switch':
|
117
|
+
case 'ignorepat':
|
118
|
+
state.extenInclude = true;break;
|
119
|
+
default:break;
|
120
|
+
}
|
121
|
+
return "atom";
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
return {
|
126
|
+
startState: function() {
|
127
|
+
return {
|
128
|
+
extenStart: false,
|
129
|
+
extenSame: false,
|
130
|
+
extenInclude: false,
|
131
|
+
extenExten: false,
|
132
|
+
extenPriority: false,
|
133
|
+
extenApplication: false
|
134
|
+
};
|
135
|
+
},
|
136
|
+
token: function(stream, state) {
|
137
|
+
|
138
|
+
var cur = '';
|
139
|
+
var ch = '';
|
140
|
+
if(stream.eatSpace()) return null;
|
141
|
+
// extension started
|
142
|
+
if(state.extenStart){
|
143
|
+
stream.eatWhile(/[^\s]/);
|
144
|
+
cur = stream.current();
|
145
|
+
if(/^=>?$/.test(cur)){
|
146
|
+
state.extenExten = true;
|
147
|
+
state.extenStart = false;
|
148
|
+
return "strong";
|
149
|
+
} else {
|
150
|
+
state.extenStart = false;
|
151
|
+
stream.skipToEnd();
|
152
|
+
return "error";
|
153
|
+
}
|
154
|
+
} else if(state.extenExten) {
|
155
|
+
// set exten and priority
|
156
|
+
state.extenExten = false;
|
157
|
+
state.extenPriority = true;
|
158
|
+
stream.eatWhile(/[^,]/);
|
159
|
+
if(state.extenInclude) {
|
160
|
+
stream.skipToEnd();
|
161
|
+
state.extenPriority = false;
|
162
|
+
state.extenInclude = false;
|
163
|
+
}
|
164
|
+
if(state.extenSame) {
|
165
|
+
state.extenPriority = false;
|
166
|
+
state.extenSame = false;
|
167
|
+
state.extenApplication = true;
|
168
|
+
}
|
169
|
+
return "tag";
|
170
|
+
} else if(state.extenPriority) {
|
171
|
+
state.extenPriority = false;
|
172
|
+
state.extenApplication = true;
|
173
|
+
ch = stream.next(); // get comma
|
174
|
+
if(state.extenSame) return null;
|
175
|
+
stream.eatWhile(/[^,]/);
|
176
|
+
return "number";
|
177
|
+
} else if(state.extenApplication) {
|
178
|
+
stream.eatWhile(/,/);
|
179
|
+
cur = stream.current();
|
180
|
+
if(cur === ',') return null;
|
181
|
+
stream.eatWhile(/\w/);
|
182
|
+
cur = stream.current().toLowerCase();
|
183
|
+
state.extenApplication = false;
|
184
|
+
if(apps.indexOf(cur) !== -1){
|
185
|
+
return "def strong";
|
186
|
+
}
|
187
|
+
} else{
|
188
|
+
return basicToken(stream,state);
|
189
|
+
}
|
190
|
+
|
191
|
+
return null;
|
192
|
+
}
|
193
|
+
};
|
194
|
+
});
|
195
|
+
|
196
|
+
CodeMirror.defineMIME("text/x-asterisk", "asterisk");
|
197
|
+
|
198
|
+
});
|
@@ -0,0 +1,154 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Asterisk dialplan 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="asterisk.js"></script>
|
10
|
+
<style>
|
11
|
+
.CodeMirror {border: 1px solid #999;}
|
12
|
+
.cm-s-default span.cm-arrow { color: red; }
|
13
|
+
</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="#">Asterisk dialplan</a>
|
25
|
+
</ul>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<article>
|
29
|
+
<h2>Asterisk dialplan mode</h2>
|
30
|
+
<form><textarea id="code" name="code">
|
31
|
+
; extensions.conf - the Asterisk dial plan
|
32
|
+
;
|
33
|
+
|
34
|
+
[general]
|
35
|
+
;
|
36
|
+
; If static is set to no, or omitted, then the pbx_config will rewrite
|
37
|
+
; this file when extensions are modified. Remember that all comments
|
38
|
+
; made in the file will be lost when that happens.
|
39
|
+
static=yes
|
40
|
+
|
41
|
+
#include "/etc/asterisk/additional_general.conf
|
42
|
+
|
43
|
+
[iaxprovider]
|
44
|
+
switch => IAX2/user:[key]@myserver/mycontext
|
45
|
+
|
46
|
+
[dynamic]
|
47
|
+
#exec /usr/bin/dynamic-peers.pl
|
48
|
+
|
49
|
+
[trunkint]
|
50
|
+
;
|
51
|
+
; International long distance through trunk
|
52
|
+
;
|
53
|
+
exten => _9011.,1,Macro(dundi-e164,${EXTEN:4})
|
54
|
+
exten => _9011.,n,Dial(${GLOBAL(TRUNK)}/${FILTER(0-9,${EXTEN:${GLOBAL(TRUNKMSD)}})})
|
55
|
+
|
56
|
+
[local]
|
57
|
+
;
|
58
|
+
; Master context for local, toll-free, and iaxtel calls only
|
59
|
+
;
|
60
|
+
ignorepat => 9
|
61
|
+
include => default
|
62
|
+
|
63
|
+
[demo]
|
64
|
+
include => stdexten
|
65
|
+
;
|
66
|
+
; We start with what to do when a call first comes in.
|
67
|
+
;
|
68
|
+
exten => s,1,Wait(1) ; Wait a second, just for fun
|
69
|
+
same => n,Answer ; Answer the line
|
70
|
+
same => n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
|
71
|
+
same => n,Set(TIMEOUT(response)=10) ; Set Response Timeout to 10 seconds
|
72
|
+
same => n(restart),BackGround(demo-congrats) ; Play a congratulatory message
|
73
|
+
same => n(instruct),BackGround(demo-instruct) ; Play some instructions
|
74
|
+
same => n,WaitExten ; Wait for an extension to be dialed.
|
75
|
+
|
76
|
+
exten => 2,1,BackGround(demo-moreinfo) ; Give some more information.
|
77
|
+
exten => 2,n,Goto(s,instruct)
|
78
|
+
|
79
|
+
exten => 3,1,Set(LANGUAGE()=fr) ; Set language to french
|
80
|
+
exten => 3,n,Goto(s,restart) ; Start with the congratulations
|
81
|
+
|
82
|
+
exten => 1000,1,Goto(default,s,1)
|
83
|
+
;
|
84
|
+
; We also create an example user, 1234, who is on the console and has
|
85
|
+
; voicemail, etc.
|
86
|
+
;
|
87
|
+
exten => 1234,1,Playback(transfer,skip) ; "Please hold while..."
|
88
|
+
; (but skip if channel is not up)
|
89
|
+
exten => 1234,n,Gosub(${EXTEN},stdexten(${GLOBAL(CONSOLE)}))
|
90
|
+
exten => 1234,n,Goto(default,s,1) ; exited Voicemail
|
91
|
+
|
92
|
+
exten => 1235,1,Voicemail(1234,u) ; Right to voicemail
|
93
|
+
|
94
|
+
exten => 1236,1,Dial(Console/dsp) ; Ring forever
|
95
|
+
exten => 1236,n,Voicemail(1234,b) ; Unless busy
|
96
|
+
|
97
|
+
;
|
98
|
+
; # for when they're done with the demo
|
99
|
+
;
|
100
|
+
exten => #,1,Playback(demo-thanks) ; "Thanks for trying the demo"
|
101
|
+
exten => #,n,Hangup ; Hang them up.
|
102
|
+
|
103
|
+
;
|
104
|
+
; A timeout and "invalid extension rule"
|
105
|
+
;
|
106
|
+
exten => t,1,Goto(#,1) ; If they take too long, give up
|
107
|
+
exten => i,1,Playback(invalid) ; "That's not valid, try again"
|
108
|
+
|
109
|
+
;
|
110
|
+
; Create an extension, 500, for dialing the
|
111
|
+
; Asterisk demo.
|
112
|
+
;
|
113
|
+
exten => 500,1,Playback(demo-abouttotry); Let them know what's going on
|
114
|
+
exten => 500,n,Dial(IAX2/guest@pbx.digium.com/s@default) ; Call the Asterisk demo
|
115
|
+
exten => 500,n,Playback(demo-nogo) ; Couldn't connect to the demo site
|
116
|
+
exten => 500,n,Goto(s,6) ; Return to the start over message.
|
117
|
+
|
118
|
+
;
|
119
|
+
; Create an extension, 600, for evaluating echo latency.
|
120
|
+
;
|
121
|
+
exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
|
122
|
+
exten => 600,n,Echo ; Do the echo test
|
123
|
+
exten => 600,n,Playback(demo-echodone) ; Let them know it's over
|
124
|
+
exten => 600,n,Goto(s,6) ; Start over
|
125
|
+
|
126
|
+
;
|
127
|
+
; You can use the Macro Page to intercom a individual user
|
128
|
+
exten => 76245,1,Macro(page,SIP/Grandstream1)
|
129
|
+
; or if your peernames are the same as extensions
|
130
|
+
exten => _7XXX,1,Macro(page,SIP/${EXTEN})
|
131
|
+
;
|
132
|
+
;
|
133
|
+
; System Wide Page at extension 7999
|
134
|
+
;
|
135
|
+
exten => 7999,1,Set(TIMEOUT(absolute)=60)
|
136
|
+
exten => 7999,2,Page(Local/Grandstream1@page&Local/Xlite1@page&Local/1234@page/n,d)
|
137
|
+
|
138
|
+
; Give voicemail at extension 8500
|
139
|
+
;
|
140
|
+
exten => 8500,1,VoicemailMain
|
141
|
+
exten => 8500,n,Goto(s,6)
|
142
|
+
|
143
|
+
</textarea></form>
|
144
|
+
<script>
|
145
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
146
|
+
mode: "text/x-asterisk",
|
147
|
+
matchBrackets: true,
|
148
|
+
lineNumber: true
|
149
|
+
});
|
150
|
+
</script>
|
151
|
+
|
152
|
+
<p><strong>MIME types defined:</strong> <code>text/x-asterisk</code>.</p>
|
153
|
+
|
154
|
+
</article>
|