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,369 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
/***
|
5
|
+
|''Name''|tiddlywiki.js|
|
6
|
+
|''Description''|Enables TiddlyWikiy syntax highlighting using CodeMirror|
|
7
|
+
|''Author''|PMario|
|
8
|
+
|''Version''|0.1.7|
|
9
|
+
|''Status''|''stable''|
|
10
|
+
|''Source''|[[GitHub|https://github.com/pmario/CodeMirror2/blob/tw-syntax/mode/tiddlywiki]]|
|
11
|
+
|''Documentation''|http://codemirror.tiddlyspace.com/|
|
12
|
+
|''License''|[[MIT License|http://www.opensource.org/licenses/mit-license.php]]|
|
13
|
+
|''CoreVersion''|2.5.0|
|
14
|
+
|''Requires''|codemirror.js|
|
15
|
+
|''Keywords''|syntax highlighting color code mirror codemirror|
|
16
|
+
! Info
|
17
|
+
CoreVersion parameter is needed for TiddlyWiki only!
|
18
|
+
***/
|
19
|
+
//{{{
|
20
|
+
|
21
|
+
(function(mod) {
|
22
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
23
|
+
mod(require("../../lib/codemirror"));
|
24
|
+
else if (typeof define == "function" && define.amd) // AMD
|
25
|
+
define(["../../lib/codemirror"], mod);
|
26
|
+
else // Plain browser env
|
27
|
+
mod(CodeMirror);
|
28
|
+
})(function(CodeMirror) {
|
29
|
+
"use strict";
|
30
|
+
|
31
|
+
CodeMirror.defineMode("tiddlywiki", function () {
|
32
|
+
// Tokenizer
|
33
|
+
var textwords = {};
|
34
|
+
|
35
|
+
var keywords = function () {
|
36
|
+
function kw(type) {
|
37
|
+
return { type: type, style: "macro"};
|
38
|
+
}
|
39
|
+
return {
|
40
|
+
"allTags": kw('allTags'), "closeAll": kw('closeAll'), "list": kw('list'),
|
41
|
+
"newJournal": kw('newJournal'), "newTiddler": kw('newTiddler'),
|
42
|
+
"permaview": kw('permaview'), "saveChanges": kw('saveChanges'),
|
43
|
+
"search": kw('search'), "slider": kw('slider'), "tabs": kw('tabs'),
|
44
|
+
"tag": kw('tag'), "tagging": kw('tagging'), "tags": kw('tags'),
|
45
|
+
"tiddler": kw('tiddler'), "timeline": kw('timeline'),
|
46
|
+
"today": kw('today'), "version": kw('version'), "option": kw('option'),
|
47
|
+
|
48
|
+
"with": kw('with'),
|
49
|
+
"filter": kw('filter')
|
50
|
+
};
|
51
|
+
}();
|
52
|
+
|
53
|
+
var isSpaceName = /[\w_\-]/i,
|
54
|
+
reHR = /^\-\-\-\-+$/, // <hr>
|
55
|
+
reWikiCommentStart = /^\/\*\*\*$/, // /***
|
56
|
+
reWikiCommentStop = /^\*\*\*\/$/, // ***/
|
57
|
+
reBlockQuote = /^<<<$/,
|
58
|
+
|
59
|
+
reJsCodeStart = /^\/\/\{\{\{$/, // //{{{ js block start
|
60
|
+
reJsCodeStop = /^\/\/\}\}\}$/, // //}}} js stop
|
61
|
+
reXmlCodeStart = /^<!--\{\{\{-->$/, // xml block start
|
62
|
+
reXmlCodeStop = /^<!--\}\}\}-->$/, // xml stop
|
63
|
+
|
64
|
+
reCodeBlockStart = /^\{\{\{$/, // {{{ TW text div block start
|
65
|
+
reCodeBlockStop = /^\}\}\}$/, // }}} TW text stop
|
66
|
+
|
67
|
+
reUntilCodeStop = /.*?\}\}\}/;
|
68
|
+
|
69
|
+
function chain(stream, state, f) {
|
70
|
+
state.tokenize = f;
|
71
|
+
return f(stream, state);
|
72
|
+
}
|
73
|
+
|
74
|
+
// Used as scratch variables to communicate multiple values without
|
75
|
+
// consing up tons of objects.
|
76
|
+
var type, content;
|
77
|
+
|
78
|
+
function ret(tp, style, cont) {
|
79
|
+
type = tp;
|
80
|
+
content = cont;
|
81
|
+
return style;
|
82
|
+
}
|
83
|
+
|
84
|
+
function jsTokenBase(stream, state) {
|
85
|
+
var sol = stream.sol(), ch;
|
86
|
+
|
87
|
+
state.block = false; // indicates the start of a code block.
|
88
|
+
|
89
|
+
ch = stream.peek(); // don't eat, to make matching simpler
|
90
|
+
|
91
|
+
// check start of blocks
|
92
|
+
if (sol && /[<\/\*{}\-]/.test(ch)) {
|
93
|
+
if (stream.match(reCodeBlockStart)) {
|
94
|
+
state.block = true;
|
95
|
+
return chain(stream, state, twTokenCode);
|
96
|
+
}
|
97
|
+
if (stream.match(reBlockQuote)) {
|
98
|
+
return ret('quote', 'quote');
|
99
|
+
}
|
100
|
+
if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop)) {
|
101
|
+
return ret('code', 'comment');
|
102
|
+
}
|
103
|
+
if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop)) {
|
104
|
+
return ret('code', 'comment');
|
105
|
+
}
|
106
|
+
if (stream.match(reHR)) {
|
107
|
+
return ret('hr', 'hr');
|
108
|
+
}
|
109
|
+
} // sol
|
110
|
+
ch = stream.next();
|
111
|
+
|
112
|
+
if (sol && /[\/\*!#;:>|]/.test(ch)) {
|
113
|
+
if (ch == "!") { // tw header
|
114
|
+
stream.skipToEnd();
|
115
|
+
return ret("header", "header");
|
116
|
+
}
|
117
|
+
if (ch == "*") { // tw list
|
118
|
+
stream.eatWhile('*');
|
119
|
+
return ret("list", "comment");
|
120
|
+
}
|
121
|
+
if (ch == "#") { // tw numbered list
|
122
|
+
stream.eatWhile('#');
|
123
|
+
return ret("list", "comment");
|
124
|
+
}
|
125
|
+
if (ch == ";") { // definition list, term
|
126
|
+
stream.eatWhile(';');
|
127
|
+
return ret("list", "comment");
|
128
|
+
}
|
129
|
+
if (ch == ":") { // definition list, description
|
130
|
+
stream.eatWhile(':');
|
131
|
+
return ret("list", "comment");
|
132
|
+
}
|
133
|
+
if (ch == ">") { // single line quote
|
134
|
+
stream.eatWhile(">");
|
135
|
+
return ret("quote", "quote");
|
136
|
+
}
|
137
|
+
if (ch == '|') {
|
138
|
+
return ret('table', 'header');
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
if (ch == '{' && stream.match(/\{\{/)) {
|
143
|
+
return chain(stream, state, twTokenCode);
|
144
|
+
}
|
145
|
+
|
146
|
+
// rudimentary html:// file:// link matching. TW knows much more ...
|
147
|
+
if (/[hf]/i.test(ch)) {
|
148
|
+
if (/[ti]/i.test(stream.peek()) && stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)) {
|
149
|
+
return ret("link", "link");
|
150
|
+
}
|
151
|
+
}
|
152
|
+
// just a little string indicator, don't want to have the whole string covered
|
153
|
+
if (ch == '"') {
|
154
|
+
return ret('string', 'string');
|
155
|
+
}
|
156
|
+
if (ch == '~') { // _no_ CamelCase indicator should be bold
|
157
|
+
return ret('text', 'brace');
|
158
|
+
}
|
159
|
+
if (/[\[\]]/.test(ch)) { // check for [[..]]
|
160
|
+
if (stream.peek() == ch) {
|
161
|
+
stream.next();
|
162
|
+
return ret('brace', 'brace');
|
163
|
+
}
|
164
|
+
}
|
165
|
+
if (ch == "@") { // check for space link. TODO fix @@...@@ highlighting
|
166
|
+
stream.eatWhile(isSpaceName);
|
167
|
+
return ret("link", "link");
|
168
|
+
}
|
169
|
+
if (/\d/.test(ch)) { // numbers
|
170
|
+
stream.eatWhile(/\d/);
|
171
|
+
return ret("number", "number");
|
172
|
+
}
|
173
|
+
if (ch == "/") { // tw invisible comment
|
174
|
+
if (stream.eat("%")) {
|
175
|
+
return chain(stream, state, twTokenComment);
|
176
|
+
}
|
177
|
+
else if (stream.eat("/")) { //
|
178
|
+
return chain(stream, state, twTokenEm);
|
179
|
+
}
|
180
|
+
}
|
181
|
+
if (ch == "_") { // tw underline
|
182
|
+
if (stream.eat("_")) {
|
183
|
+
return chain(stream, state, twTokenUnderline);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
// strikethrough and mdash handling
|
187
|
+
if (ch == "-") {
|
188
|
+
if (stream.eat("-")) {
|
189
|
+
// if strikethrough looks ugly, change CSS.
|
190
|
+
if (stream.peek() != ' ')
|
191
|
+
return chain(stream, state, twTokenStrike);
|
192
|
+
// mdash
|
193
|
+
if (stream.peek() == ' ')
|
194
|
+
return ret('text', 'brace');
|
195
|
+
}
|
196
|
+
}
|
197
|
+
if (ch == "'") { // tw bold
|
198
|
+
if (stream.eat("'")) {
|
199
|
+
return chain(stream, state, twTokenStrong);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
if (ch == "<") { // tw macro
|
203
|
+
if (stream.eat("<")) {
|
204
|
+
return chain(stream, state, twTokenMacro);
|
205
|
+
}
|
206
|
+
}
|
207
|
+
else {
|
208
|
+
return ret(ch);
|
209
|
+
}
|
210
|
+
|
211
|
+
// core macro handling
|
212
|
+
stream.eatWhile(/[\w\$_]/);
|
213
|
+
var word = stream.current(),
|
214
|
+
known = textwords.propertyIsEnumerable(word) && textwords[word];
|
215
|
+
|
216
|
+
return known ? ret(known.type, known.style, word) : ret("text", null, word);
|
217
|
+
|
218
|
+
} // jsTokenBase()
|
219
|
+
|
220
|
+
// tw invisible comment
|
221
|
+
function twTokenComment(stream, state) {
|
222
|
+
var maybeEnd = false,
|
223
|
+
ch;
|
224
|
+
while (ch = stream.next()) {
|
225
|
+
if (ch == "/" && maybeEnd) {
|
226
|
+
state.tokenize = jsTokenBase;
|
227
|
+
break;
|
228
|
+
}
|
229
|
+
maybeEnd = (ch == "%");
|
230
|
+
}
|
231
|
+
return ret("comment", "comment");
|
232
|
+
}
|
233
|
+
|
234
|
+
// tw strong / bold
|
235
|
+
function twTokenStrong(stream, state) {
|
236
|
+
var maybeEnd = false,
|
237
|
+
ch;
|
238
|
+
while (ch = stream.next()) {
|
239
|
+
if (ch == "'" && maybeEnd) {
|
240
|
+
state.tokenize = jsTokenBase;
|
241
|
+
break;
|
242
|
+
}
|
243
|
+
maybeEnd = (ch == "'");
|
244
|
+
}
|
245
|
+
return ret("text", "strong");
|
246
|
+
}
|
247
|
+
|
248
|
+
// tw code
|
249
|
+
function twTokenCode(stream, state) {
|
250
|
+
var ch, sb = state.block;
|
251
|
+
|
252
|
+
if (sb && stream.current()) {
|
253
|
+
return ret("code", "comment");
|
254
|
+
}
|
255
|
+
|
256
|
+
if (!sb && stream.match(reUntilCodeStop)) {
|
257
|
+
state.tokenize = jsTokenBase;
|
258
|
+
return ret("code", "comment");
|
259
|
+
}
|
260
|
+
|
261
|
+
if (sb && stream.sol() && stream.match(reCodeBlockStop)) {
|
262
|
+
state.tokenize = jsTokenBase;
|
263
|
+
return ret("code", "comment");
|
264
|
+
}
|
265
|
+
|
266
|
+
ch = stream.next();
|
267
|
+
return (sb) ? ret("code", "comment") : ret("code", "comment");
|
268
|
+
}
|
269
|
+
|
270
|
+
// tw em / italic
|
271
|
+
function twTokenEm(stream, state) {
|
272
|
+
var maybeEnd = false,
|
273
|
+
ch;
|
274
|
+
while (ch = stream.next()) {
|
275
|
+
if (ch == "/" && maybeEnd) {
|
276
|
+
state.tokenize = jsTokenBase;
|
277
|
+
break;
|
278
|
+
}
|
279
|
+
maybeEnd = (ch == "/");
|
280
|
+
}
|
281
|
+
return ret("text", "em");
|
282
|
+
}
|
283
|
+
|
284
|
+
// tw underlined text
|
285
|
+
function twTokenUnderline(stream, state) {
|
286
|
+
var maybeEnd = false,
|
287
|
+
ch;
|
288
|
+
while (ch = stream.next()) {
|
289
|
+
if (ch == "_" && maybeEnd) {
|
290
|
+
state.tokenize = jsTokenBase;
|
291
|
+
break;
|
292
|
+
}
|
293
|
+
maybeEnd = (ch == "_");
|
294
|
+
}
|
295
|
+
return ret("text", "underlined");
|
296
|
+
}
|
297
|
+
|
298
|
+
// tw strike through text looks ugly
|
299
|
+
// change CSS if needed
|
300
|
+
function twTokenStrike(stream, state) {
|
301
|
+
var maybeEnd = false, ch;
|
302
|
+
|
303
|
+
while (ch = stream.next()) {
|
304
|
+
if (ch == "-" && maybeEnd) {
|
305
|
+
state.tokenize = jsTokenBase;
|
306
|
+
break;
|
307
|
+
}
|
308
|
+
maybeEnd = (ch == "-");
|
309
|
+
}
|
310
|
+
return ret("text", "strikethrough");
|
311
|
+
}
|
312
|
+
|
313
|
+
// macro
|
314
|
+
function twTokenMacro(stream, state) {
|
315
|
+
var ch, word, known;
|
316
|
+
|
317
|
+
if (stream.current() == '<<') {
|
318
|
+
return ret('brace', 'macro');
|
319
|
+
}
|
320
|
+
|
321
|
+
ch = stream.next();
|
322
|
+
if (!ch) {
|
323
|
+
state.tokenize = jsTokenBase;
|
324
|
+
return ret(ch);
|
325
|
+
}
|
326
|
+
if (ch == ">") {
|
327
|
+
if (stream.peek() == '>') {
|
328
|
+
stream.next();
|
329
|
+
state.tokenize = jsTokenBase;
|
330
|
+
return ret("brace", "macro");
|
331
|
+
}
|
332
|
+
}
|
333
|
+
|
334
|
+
stream.eatWhile(/[\w\$_]/);
|
335
|
+
word = stream.current();
|
336
|
+
known = keywords.propertyIsEnumerable(word) && keywords[word];
|
337
|
+
|
338
|
+
if (known) {
|
339
|
+
return ret(known.type, known.style, word);
|
340
|
+
}
|
341
|
+
else {
|
342
|
+
return ret("macro", null, word);
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
// Interface
|
347
|
+
return {
|
348
|
+
startState: function () {
|
349
|
+
return {
|
350
|
+
tokenize: jsTokenBase,
|
351
|
+
indented: 0,
|
352
|
+
level: 0
|
353
|
+
};
|
354
|
+
},
|
355
|
+
|
356
|
+
token: function (stream, state) {
|
357
|
+
if (stream.eatSpace()) return null;
|
358
|
+
var style = state.tokenize(stream, state);
|
359
|
+
return style;
|
360
|
+
},
|
361
|
+
|
362
|
+
electricChars: ""
|
363
|
+
};
|
364
|
+
});
|
365
|
+
|
366
|
+
CodeMirror.defineMIME("text/x-tiddlywiki", "tiddlywiki");
|
367
|
+
});
|
368
|
+
|
369
|
+
//}}}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Tiki wiki 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="tiki.css">
|
9
|
+
<script src="../../lib/codemirror.js"></script>
|
10
|
+
<script src="tiki.js"></script>
|
11
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
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="#">Tiki wiki</a>
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<article>
|
27
|
+
<h2>Tiki wiki mode</h2>
|
28
|
+
|
29
|
+
|
30
|
+
<div><textarea id="code" name="code">
|
31
|
+
Headings
|
32
|
+
!Header 1
|
33
|
+
!!Header 2
|
34
|
+
!!!Header 3
|
35
|
+
!!!!Header 4
|
36
|
+
!!!!!Header 5
|
37
|
+
!!!!!!Header 6
|
38
|
+
|
39
|
+
Styling
|
40
|
+
-=titlebar=-
|
41
|
+
^^ Box on multi
|
42
|
+
lines
|
43
|
+
of content^^
|
44
|
+
__bold__
|
45
|
+
''italic''
|
46
|
+
===underline===
|
47
|
+
::center::
|
48
|
+
--Line Through--
|
49
|
+
|
50
|
+
Operators
|
51
|
+
~np~No parse~/np~
|
52
|
+
|
53
|
+
Link
|
54
|
+
[link|desc|nocache]
|
55
|
+
|
56
|
+
Wiki
|
57
|
+
((Wiki))
|
58
|
+
((Wiki|desc))
|
59
|
+
((Wiki|desc|timeout))
|
60
|
+
|
61
|
+
Table
|
62
|
+
||row1 col1|row1 col2|row1 col3
|
63
|
+
row2 col1|row2 col2|row2 col3
|
64
|
+
row3 col1|row3 col2|row3 col3||
|
65
|
+
|
66
|
+
Lists:
|
67
|
+
*bla
|
68
|
+
**bla-1
|
69
|
+
++continue-bla-1
|
70
|
+
***bla-2
|
71
|
+
++continue-bla-1
|
72
|
+
*bla
|
73
|
+
+continue-bla
|
74
|
+
#bla
|
75
|
+
** tra-la-la
|
76
|
+
+continue-bla
|
77
|
+
#bla
|
78
|
+
|
79
|
+
Plugin (standard):
|
80
|
+
{PLUGIN(attr="my attr")}
|
81
|
+
Plugin Body
|
82
|
+
{PLUGIN}
|
83
|
+
|
84
|
+
Plugin (inline):
|
85
|
+
{plugin attr="my attr"}
|
86
|
+
</textarea></div>
|
87
|
+
|
88
|
+
<script type="text/javascript">
|
89
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
90
|
+
mode: 'tiki',
|
91
|
+
lineNumbers: true
|
92
|
+
});
|
93
|
+
</script>
|
94
|
+
|
95
|
+
</article>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.cm-tw-syntaxerror {
|
2
|
+
color: #FFF;
|
3
|
+
background-color: #900;
|
4
|
+
}
|
5
|
+
|
6
|
+
.cm-tw-deleted {
|
7
|
+
text-decoration: line-through;
|
8
|
+
}
|
9
|
+
|
10
|
+
.cm-tw-header5 {
|
11
|
+
font-weight: bold;
|
12
|
+
}
|
13
|
+
.cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/
|
14
|
+
padding-left: 10px;
|
15
|
+
}
|
16
|
+
|
17
|
+
.cm-tw-box {
|
18
|
+
border-top-width: 0px ! important;
|
19
|
+
border-style: solid;
|
20
|
+
border-width: 1px;
|
21
|
+
border-color: inherit;
|
22
|
+
}
|
23
|
+
|
24
|
+
.cm-tw-underline {
|
25
|
+
text-decoration: underline;
|
26
|
+
}
|