chaskiq 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (365) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -0
  3. data/lib/chaskiq/version.rb +1 -1
  4. data/vendor/assets/images/animated-overlay.gif +0 -0
  5. data/vendor/assets/images/blueimp/img/error.png +0 -0
  6. data/vendor/assets/images/blueimp/img/error.svg +5 -0
  7. data/vendor/assets/images/blueimp/img/loading.gif +0 -0
  8. data/vendor/assets/images/blueimp/img/play-pause.png +0 -0
  9. data/vendor/assets/images/blueimp/img/play-pause.svg +6 -0
  10. data/vendor/assets/images/blueimp/img/video-play.png +0 -0
  11. data/vendor/assets/images/blueimp/img/video-play.svg +5 -0
  12. data/vendor/assets/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
  13. data/vendor/assets/images/bootstrap-colorpicker/alpha.png +0 -0
  14. data/vendor/assets/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
  15. data/vendor/assets/images/bootstrap-colorpicker/hue.png +0 -0
  16. data/vendor/assets/images/bootstrap-colorpicker/saturation.png +0 -0
  17. data/vendor/assets/images/chosen-sprite.png +0 -0
  18. data/vendor/assets/images/chosen-sprite@2x.png +0 -0
  19. data/vendor/assets/images/green.png +0 -0
  20. data/vendor/assets/images/green@2x.png +0 -0
  21. data/vendor/assets/images/images/animated-overlay.gif +0 -0
  22. data/vendor/assets/images/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  23. data/vendor/assets/images/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  24. data/vendor/assets/images/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  25. data/vendor/assets/images/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/vendor/assets/images/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  27. data/vendor/assets/images/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  28. data/vendor/assets/images/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  29. data/vendor/assets/images/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  30. data/vendor/assets/images/images/ui-icons_222222_256x240.png +0 -0
  31. data/vendor/assets/images/images/ui-icons_2e83ff_256x240.png +0 -0
  32. data/vendor/assets/images/images/ui-icons_454545_256x240.png +0 -0
  33. data/vendor/assets/images/images/ui-icons_888888_256x240.png +0 -0
  34. data/vendor/assets/images/images/ui-icons_cd0a0a_256x240.png +0 -0
  35. data/vendor/assets/images/sort.png +0 -0
  36. data/vendor/assets/images/sort_asc.png +0 -0
  37. data/vendor/assets/images/sort_desc.png +0 -0
  38. data/vendor/assets/images/sprite-skin-flat.png +0 -0
  39. data/vendor/assets/images/sprite-skin-flat2.png +0 -0
  40. data/vendor/assets/images/sprite-skin-nice.png +0 -0
  41. data/vendor/assets/images/sprite-skin-simple.png +0 -0
  42. data/vendor/assets/images/spritemap.png +0 -0
  43. data/vendor/assets/images/spritemap@2x.png +0 -0
  44. data/vendor/assets/javascripts/backbone/backbone.min.js +2 -0
  45. data/vendor/assets/javascripts/backbone/underscore.min.js +6 -0
  46. data/vendor/assets/javascripts/chartjs/Chart.min.js +11 -0
  47. data/vendor/assets/javascripts/codemirror/codemirror.js +7830 -0
  48. data/vendor/assets/javascripts/codemirror/mode/apl/apl.js +175 -0
  49. data/vendor/assets/javascripts/codemirror/mode/apl/index.html +72 -0
  50. data/vendor/assets/javascripts/codemirror/mode/asterisk/asterisk.js +198 -0
  51. data/vendor/assets/javascripts/codemirror/mode/asterisk/index.html +154 -0
  52. data/vendor/assets/javascripts/codemirror/mode/clike/clike.js +474 -0
  53. data/vendor/assets/javascripts/codemirror/mode/clike/index.html +225 -0
  54. data/vendor/assets/javascripts/codemirror/mode/clike/scala.html +767 -0
  55. data/vendor/assets/javascripts/codemirror/mode/clojure/clojure.js +243 -0
  56. data/vendor/assets/javascripts/codemirror/mode/clojure/index.html +88 -0
  57. data/vendor/assets/javascripts/codemirror/mode/cobol/cobol.js +255 -0
  58. data/vendor/assets/javascripts/codemirror/mode/cobol/index.html +210 -0
  59. data/vendor/assets/javascripts/codemirror/mode/coffeescript/coffeescript.js +369 -0
  60. data/vendor/assets/javascripts/codemirror/mode/coffeescript/index.html +740 -0
  61. data/vendor/assets/javascripts/codemirror/mode/commonlisp/commonlisp.js +120 -0
  62. data/vendor/assets/javascripts/codemirror/mode/commonlisp/index.html +177 -0
  63. data/vendor/assets/javascripts/codemirror/mode/css/css.js +717 -0
  64. data/vendor/assets/javascripts/codemirror/mode/css/index.html +70 -0
  65. data/vendor/assets/javascripts/codemirror/mode/css/less.html +152 -0
  66. data/vendor/assets/javascripts/codemirror/mode/css/less_test.js +51 -0
  67. data/vendor/assets/javascripts/codemirror/mode/css/scss.html +157 -0
  68. data/vendor/assets/javascripts/codemirror/mode/css/scss_test.js +110 -0
  69. data/vendor/assets/javascripts/codemirror/mode/css/test.js +135 -0
  70. data/vendor/assets/javascripts/codemirror/mode/cypher/cypher.js +146 -0
  71. data/vendor/assets/javascripts/codemirror/mode/cypher/index.html +63 -0
  72. data/vendor/assets/javascripts/codemirror/mode/d/d.js +218 -0
  73. data/vendor/assets/javascripts/codemirror/mode/d/index.html +273 -0
  74. data/vendor/assets/javascripts/codemirror/mode/diff/diff.js +47 -0
  75. data/vendor/assets/javascripts/codemirror/mode/diff/index.html +117 -0
  76. data/vendor/assets/javascripts/codemirror/mode/django/django.js +67 -0
  77. data/vendor/assets/javascripts/codemirror/mode/django/index.html +63 -0
  78. data/vendor/assets/javascripts/codemirror/mode/dtd/dtd.js +142 -0
  79. data/vendor/assets/javascripts/codemirror/mode/dtd/index.html +89 -0
  80. data/vendor/assets/javascripts/codemirror/mode/dylan/dylan.js +299 -0
  81. data/vendor/assets/javascripts/codemirror/mode/dylan/index.html +407 -0
  82. data/vendor/assets/javascripts/codemirror/mode/ecl/ecl.js +207 -0
  83. data/vendor/assets/javascripts/codemirror/mode/ecl/index.html +52 -0
  84. data/vendor/assets/javascripts/codemirror/mode/eiffel/eiffel.js +162 -0
  85. data/vendor/assets/javascripts/codemirror/mode/eiffel/index.html +429 -0
  86. data/vendor/assets/javascripts/codemirror/mode/erlang/erlang.js +622 -0
  87. data/vendor/assets/javascripts/codemirror/mode/erlang/index.html +76 -0
  88. data/vendor/assets/javascripts/codemirror/mode/fortran/fortran.js +188 -0
  89. data/vendor/assets/javascripts/codemirror/mode/fortran/index.html +81 -0
  90. data/vendor/assets/javascripts/codemirror/mode/gas/gas.js +345 -0
  91. data/vendor/assets/javascripts/codemirror/mode/gas/index.html +68 -0
  92. data/vendor/assets/javascripts/codemirror/mode/gfm/gfm.js +122 -0
  93. data/vendor/assets/javascripts/codemirror/mode/gfm/index.html +82 -0
  94. data/vendor/assets/javascripts/codemirror/mode/gfm/test.js +164 -0
  95. data/vendor/assets/javascripts/codemirror/mode/gherkin/gherkin.js +178 -0
  96. data/vendor/assets/javascripts/codemirror/mode/gherkin/index.html +48 -0
  97. data/vendor/assets/javascripts/codemirror/mode/go/go.js +184 -0
  98. data/vendor/assets/javascripts/codemirror/mode/go/index.html +85 -0
  99. data/vendor/assets/javascripts/codemirror/mode/groovy/groovy.js +226 -0
  100. data/vendor/assets/javascripts/codemirror/mode/groovy/index.html +84 -0
  101. data/vendor/assets/javascripts/codemirror/mode/haml/haml.js +159 -0
  102. data/vendor/assets/javascripts/codemirror/mode/haml/index.html +79 -0
  103. data/vendor/assets/javascripts/codemirror/mode/haml/test.js +97 -0
  104. data/vendor/assets/javascripts/codemirror/mode/haskell/haskell.js +267 -0
  105. data/vendor/assets/javascripts/codemirror/mode/haskell/index.html +73 -0
  106. data/vendor/assets/javascripts/codemirror/mode/haxe/haxe.js +518 -0
  107. data/vendor/assets/javascripts/codemirror/mode/haxe/index.html +124 -0
  108. data/vendor/assets/javascripts/codemirror/mode/htmlembedded/htmlembedded.js +86 -0
  109. data/vendor/assets/javascripts/codemirror/mode/htmlembedded/index.html +58 -0
  110. data/vendor/assets/javascripts/codemirror/mode/htmlmixed/htmlmixed.js +121 -0
  111. data/vendor/assets/javascripts/codemirror/mode/htmlmixed/index.html +85 -0
  112. data/vendor/assets/javascripts/codemirror/mode/http/http.js +113 -0
  113. data/vendor/assets/javascripts/codemirror/mode/http/index.html +45 -0
  114. data/vendor/assets/javascripts/codemirror/mode/index.html +125 -0
  115. data/vendor/assets/javascripts/codemirror/mode/jade/index.html +70 -0
  116. data/vendor/assets/javascripts/codemirror/mode/jade/jade.js +590 -0
  117. data/vendor/assets/javascripts/codemirror/mode/javascript/index.html +114 -0
  118. data/vendor/assets/javascripts/codemirror/mode/javascript/javascript.js +684 -0
  119. data/vendor/assets/javascripts/codemirror/mode/javascript/json-ld.html +72 -0
  120. data/vendor/assets/javascripts/codemirror/mode/javascript/test.js +194 -0
  121. data/vendor/assets/javascripts/codemirror/mode/javascript/typescript.html +61 -0
  122. data/vendor/assets/javascripts/codemirror/mode/jinja2/index.html +54 -0
  123. data/vendor/assets/javascripts/codemirror/mode/jinja2/jinja2.js +142 -0
  124. data/vendor/assets/javascripts/codemirror/mode/julia/index.html +195 -0
  125. data/vendor/assets/javascripts/codemirror/mode/julia/julia.js +301 -0
  126. data/vendor/assets/javascripts/codemirror/mode/kotlin/index.html +89 -0
  127. data/vendor/assets/javascripts/codemirror/mode/kotlin/kotlin.js +280 -0
  128. data/vendor/assets/javascripts/codemirror/mode/livescript/index.html +459 -0
  129. data/vendor/assets/javascripts/codemirror/mode/livescript/livescript.js +280 -0
  130. data/vendor/assets/javascripts/codemirror/mode/lua/index.html +85 -0
  131. data/vendor/assets/javascripts/codemirror/mode/lua/lua.js +159 -0
  132. data/vendor/assets/javascripts/codemirror/mode/markdown/index.html +359 -0
  133. data/vendor/assets/javascripts/codemirror/mode/markdown/markdown.js +758 -0
  134. data/vendor/assets/javascripts/codemirror/mode/markdown/test.js +754 -0
  135. data/vendor/assets/javascripts/codemirror/mode/meta.js +144 -0
  136. data/vendor/assets/javascripts/codemirror/mode/mirc/index.html +160 -0
  137. data/vendor/assets/javascripts/codemirror/mode/mirc/mirc.js +193 -0
  138. data/vendor/assets/javascripts/codemirror/mode/mllike/index.html +179 -0
  139. data/vendor/assets/javascripts/codemirror/mode/mllike/mllike.js +205 -0
  140. data/vendor/assets/javascripts/codemirror/mode/modelica/index.html +67 -0
  141. data/vendor/assets/javascripts/codemirror/mode/modelica/modelica.js +245 -0
  142. data/vendor/assets/javascripts/codemirror/mode/nginx/index.html +181 -0
  143. data/vendor/assets/javascripts/codemirror/mode/nginx/nginx.js +178 -0
  144. data/vendor/assets/javascripts/codemirror/mode/ntriples/index.html +45 -0
  145. data/vendor/assets/javascripts/codemirror/mode/ntriples/ntriples.js +186 -0
  146. data/vendor/assets/javascripts/codemirror/mode/octave/index.html +83 -0
  147. data/vendor/assets/javascripts/codemirror/mode/octave/octave.js +135 -0
  148. data/vendor/assets/javascripts/codemirror/mode/pascal/index.html +61 -0
  149. data/vendor/assets/javascripts/codemirror/mode/pascal/pascal.js +109 -0
  150. data/vendor/assets/javascripts/codemirror/mode/pegjs/index.html +66 -0
  151. data/vendor/assets/javascripts/codemirror/mode/pegjs/pegjs.js +114 -0
  152. data/vendor/assets/javascripts/codemirror/mode/perl/index.html +75 -0
  153. data/vendor/assets/javascripts/codemirror/mode/perl/perl.js +832 -0
  154. data/vendor/assets/javascripts/codemirror/mode/php/index.html +64 -0
  155. data/vendor/assets/javascripts/codemirror/mode/php/php.js +226 -0
  156. data/vendor/assets/javascripts/codemirror/mode/php/test.js +154 -0
  157. data/vendor/assets/javascripts/codemirror/mode/pig/index.html +55 -0
  158. data/vendor/assets/javascripts/codemirror/mode/pig/pig.js +188 -0
  159. data/vendor/assets/javascripts/codemirror/mode/properties/index.html +53 -0
  160. data/vendor/assets/javascripts/codemirror/mode/properties/properties.js +78 -0
  161. data/vendor/assets/javascripts/codemirror/mode/puppet/index.html +121 -0
  162. data/vendor/assets/javascripts/codemirror/mode/puppet/puppet.js +220 -0
  163. data/vendor/assets/javascripts/codemirror/mode/python/index.html +198 -0
  164. data/vendor/assets/javascripts/codemirror/mode/python/python.js +359 -0
  165. data/vendor/assets/javascripts/codemirror/mode/q/index.html +144 -0
  166. data/vendor/assets/javascripts/codemirror/mode/q/q.js +139 -0
  167. data/vendor/assets/javascripts/codemirror/mode/r/index.html +85 -0
  168. data/vendor/assets/javascripts/codemirror/mode/r/r.js +162 -0
  169. data/vendor/assets/javascripts/codemirror/mode/rpm/changes/index.html +66 -0
  170. data/vendor/assets/javascripts/codemirror/mode/rpm/index.html +149 -0
  171. data/vendor/assets/javascripts/codemirror/mode/rpm/rpm.js +101 -0
  172. data/vendor/assets/javascripts/codemirror/mode/rst/index.html +535 -0
  173. data/vendor/assets/javascripts/codemirror/mode/rst/rst.js +557 -0
  174. data/vendor/assets/javascripts/codemirror/mode/ruby/index.html +184 -0
  175. data/vendor/assets/javascripts/codemirror/mode/ruby/ruby.js +285 -0
  176. data/vendor/assets/javascripts/codemirror/mode/ruby/test.js +14 -0
  177. data/vendor/assets/javascripts/codemirror/mode/rust/index.html +60 -0
  178. data/vendor/assets/javascripts/codemirror/mode/rust/rust.js +451 -0
  179. data/vendor/assets/javascripts/codemirror/mode/sass/index.html +66 -0
  180. data/vendor/assets/javascripts/codemirror/mode/sass/sass.js +327 -0
  181. data/vendor/assets/javascripts/codemirror/mode/scheme/index.html +77 -0
  182. data/vendor/assets/javascripts/codemirror/mode/scheme/scheme.js +248 -0
  183. data/vendor/assets/javascripts/codemirror/mode/shell/index.html +66 -0
  184. data/vendor/assets/javascripts/codemirror/mode/shell/shell.js +138 -0
  185. data/vendor/assets/javascripts/codemirror/mode/shell/test.js +58 -0
  186. data/vendor/assets/javascripts/codemirror/mode/sieve/index.html +93 -0
  187. data/vendor/assets/javascripts/codemirror/mode/sieve/sieve.js +193 -0
  188. data/vendor/assets/javascripts/codemirror/mode/slim/index.html +96 -0
  189. data/vendor/assets/javascripts/codemirror/mode/slim/slim.js +575 -0
  190. data/vendor/assets/javascripts/codemirror/mode/slim/test.js +96 -0
  191. data/vendor/assets/javascripts/codemirror/mode/smalltalk/index.html +68 -0
  192. data/vendor/assets/javascripts/codemirror/mode/smalltalk/smalltalk.js +168 -0
  193. data/vendor/assets/javascripts/codemirror/mode/smarty/index.html +136 -0
  194. data/vendor/assets/javascripts/codemirror/mode/smarty/smarty.js +221 -0
  195. data/vendor/assets/javascripts/codemirror/mode/smartymixed/index.html +114 -0
  196. data/vendor/assets/javascripts/codemirror/mode/smartymixed/smartymixed.js +197 -0
  197. data/vendor/assets/javascripts/codemirror/mode/solr/index.html +57 -0
  198. data/vendor/assets/javascripts/codemirror/mode/solr/solr.js +104 -0
  199. data/vendor/assets/javascripts/codemirror/mode/sparql/index.html +53 -0
  200. data/vendor/assets/javascripts/codemirror/mode/sparql/sparql.js +160 -0
  201. data/vendor/assets/javascripts/codemirror/mode/sql/index.html +84 -0
  202. data/vendor/assets/javascripts/codemirror/mode/sql/sql.js +393 -0
  203. data/vendor/assets/javascripts/codemirror/mode/stex/index.html +110 -0
  204. data/vendor/assets/javascripts/codemirror/mode/stex/stex.js +262 -0
  205. data/vendor/assets/javascripts/codemirror/mode/stex/test.js +123 -0
  206. data/vendor/assets/javascripts/codemirror/mode/tcl/index.html +142 -0
  207. data/vendor/assets/javascripts/codemirror/mode/tcl/tcl.js +147 -0
  208. data/vendor/assets/javascripts/codemirror/mode/textile/index.html +191 -0
  209. data/vendor/assets/javascripts/codemirror/mode/textile/test.js +406 -0
  210. data/vendor/assets/javascripts/codemirror/mode/textile/textile.js +553 -0
  211. data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/index.html +154 -0
  212. data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  213. data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.js +369 -0
  214. data/vendor/assets/javascripts/codemirror/mode/tiki/index.html +95 -0
  215. data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.css +26 -0
  216. data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.js +323 -0
  217. data/vendor/assets/javascripts/codemirror/mode/toml/index.html +73 -0
  218. data/vendor/assets/javascripts/codemirror/mode/toml/toml.js +88 -0
  219. data/vendor/assets/javascripts/codemirror/mode/tornado/index.html +63 -0
  220. data/vendor/assets/javascripts/codemirror/mode/tornado/tornado.js +68 -0
  221. data/vendor/assets/javascripts/codemirror/mode/turtle/index.html +50 -0
  222. data/vendor/assets/javascripts/codemirror/mode/turtle/turtle.js +160 -0
  223. data/vendor/assets/javascripts/codemirror/mode/vb/index.html +102 -0
  224. data/vendor/assets/javascripts/codemirror/mode/vb/vb.js +274 -0
  225. data/vendor/assets/javascripts/codemirror/mode/vbscript/index.html +55 -0
  226. data/vendor/assets/javascripts/codemirror/mode/vbscript/vbscript.js +350 -0
  227. data/vendor/assets/javascripts/codemirror/mode/velocity/index.html +118 -0
  228. data/vendor/assets/javascripts/codemirror/mode/velocity/velocity.js +201 -0
  229. data/vendor/assets/javascripts/codemirror/mode/verilog/index.html +120 -0
  230. data/vendor/assets/javascripts/codemirror/mode/verilog/test.js +273 -0
  231. data/vendor/assets/javascripts/codemirror/mode/verilog/verilog.js +364 -0
  232. data/vendor/assets/javascripts/codemirror/mode/xml/index.html +57 -0
  233. data/vendor/assets/javascripts/codemirror/mode/xml/test.js +51 -0
  234. data/vendor/assets/javascripts/codemirror/mode/xml/xml.js +384 -0
  235. data/vendor/assets/javascripts/codemirror/mode/xquery/index.html +210 -0
  236. data/vendor/assets/javascripts/codemirror/mode/xquery/test.js +67 -0
  237. data/vendor/assets/javascripts/codemirror/mode/xquery/xquery.js +447 -0
  238. data/vendor/assets/javascripts/codemirror/mode/yaml/index.html +80 -0
  239. data/vendor/assets/javascripts/codemirror/mode/yaml/yaml.js +112 -0
  240. data/vendor/assets/javascripts/codemirror/mode/z80/index.html +52 -0
  241. data/vendor/assets/javascripts/codemirror/mode/z80/z80.js +100 -0
  242. data/vendor/assets/javascripts/datapicker/bootstrap-datepicker.js +1671 -0
  243. data/vendor/assets/javascripts/flot/curvedLines.js +315 -0
  244. data/vendor/assets/javascripts/flot/excanvas.min.js +1 -0
  245. data/vendor/assets/javascripts/flot/jquery.flot.js +3168 -0
  246. data/vendor/assets/javascripts/flot/jquery.flot.pie.js +820 -0
  247. data/vendor/assets/javascripts/flot/jquery.flot.resize.js +59 -0
  248. data/vendor/assets/javascripts/flot/jquery.flot.spline.js +212 -0
  249. data/vendor/assets/javascripts/flot/jquery.flot.symbol.js +71 -0
  250. data/vendor/assets/javascripts/flot/jquery.flot.time.js +432 -0
  251. data/vendor/assets/javascripts/flot/jquery.flot.tooltip.min.js +12 -0
  252. data/vendor/assets/javascripts/jquery/jquery-2.1.1.js +4 -0
  253. data/vendor/assets/javascripts/jquery-ui/i18n/jquery-ui-i18n.min.js +6 -0
  254. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +4 -0
  255. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +4 -0
  256. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +4 -0
  257. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +4 -0
  258. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +4 -0
  259. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +4 -0
  260. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +4 -0
  261. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +4 -0
  262. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +4 -0
  263. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +4 -0
  264. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +4 -0
  265. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +4 -0
  266. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +4 -0
  267. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +4 -0
  268. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +4 -0
  269. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +4 -0
  270. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +4 -0
  271. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +4 -0
  272. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +4 -0
  273. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +4 -0
  274. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +4 -0
  275. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +4 -0
  276. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +4 -0
  277. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +4 -0
  278. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +4 -0
  279. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +4 -0
  280. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +4 -0
  281. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +4 -0
  282. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +4 -0
  283. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +4 -0
  284. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +4 -0
  285. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +4 -0
  286. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +4 -0
  287. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +4 -0
  288. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +4 -0
  289. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +4 -0
  290. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +4 -0
  291. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +4 -0
  292. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +4 -0
  293. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +4 -0
  294. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +4 -0
  295. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +4 -0
  296. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +4 -0
  297. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +4 -0
  298. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +4 -0
  299. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +4 -0
  300. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +4 -0
  301. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +4 -0
  302. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +4 -0
  303. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +4 -0
  304. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +4 -0
  305. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +4 -0
  306. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +4 -0
  307. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +4 -0
  308. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +4 -0
  309. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +4 -0
  310. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +4 -0
  311. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +4 -0
  312. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +4 -0
  313. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +4 -0
  314. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +4 -0
  315. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +4 -0
  316. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +4 -0
  317. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +4 -0
  318. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +4 -0
  319. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +4 -0
  320. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +4 -0
  321. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +4 -0
  322. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +4 -0
  323. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +4 -0
  324. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +4 -0
  325. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +4 -0
  326. data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +4 -0
  327. data/vendor/assets/javascripts/jquery-ui/images/animated-overlay.gif +0 -0
  328. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  329. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  330. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  331. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  332. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  333. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  334. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  335. data/vendor/assets/javascripts/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  336. data/vendor/assets/javascripts/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
  337. data/vendor/assets/javascripts/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
  338. data/vendor/assets/javascripts/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
  339. data/vendor/assets/javascripts/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
  340. data/vendor/assets/javascripts/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
  341. data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.custom.min.css +7 -0
  342. data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.min.js +7 -0
  343. data/vendor/assets/javascripts/jquery-ui/jquery-ui.css +1189 -0
  344. data/vendor/assets/javascripts/jquery-ui/jquery-ui.js +15040 -0
  345. data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.css +4 -0
  346. data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.js +12 -0
  347. data/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js +120 -0
  348. data/vendor/assets/javascripts/morris/morris.js +1888 -0
  349. data/vendor/assets/javascripts/morris/raphael-2.1.0.min.js +10 -0
  350. data/vendor/assets/javascripts/pace/pace.min.js +2 -0
  351. data/vendor/assets/javascripts/peity/jquery.peity.min.js +13 -0
  352. data/vendor/assets/javascripts/radioactive/radioactive.min.js +1 -0
  353. data/vendor/assets/javascripts/rickshaw/rickshaw.min.js +3 -0
  354. data/vendor/assets/javascripts/rickshaw/vendor/d3.v3.js +5 -0
  355. data/vendor/assets/javascripts/sparkline/jquery.sparkline.min.js +5 -0
  356. data/vendor/assets/javascripts/summernote/summernote.min.js +6331 -0
  357. data/vendor/assets/javascripts/toastr/toastr.min.js +2 -0
  358. data/vendor/assets/stylesheets/codemirror/codemirror.css +309 -0
  359. data/vendor/assets/stylesheets/codemirror/elegant.css +13 -0
  360. data/vendor/assets/stylesheets/datapicker/datepicker3.css +789 -0
  361. data/vendor/assets/stylesheets/summernote/summernote-bs3.css +5970 -0
  362. data/vendor/assets/stylesheets/summernote/summernote.css +446 -0
  363. data/vendor/assets/stylesheets/toastr/toastr.css +222 -0
  364. metadata +362 -3
  365. data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -0,0 +1,86 @@
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"), require("../htmlmixed/htmlmixed"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror", "../htmlmixed/htmlmixed"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
15
+
16
+ //config settings
17
+ var scriptStartRegex = parserConfig.scriptStartRegex || /^<%/i,
18
+ scriptEndRegex = parserConfig.scriptEndRegex || /^%>/i;
19
+
20
+ //inner modes
21
+ var scriptingMode, htmlMixedMode;
22
+
23
+ //tokenizer when in html mode
24
+ function htmlDispatch(stream, state) {
25
+ if (stream.match(scriptStartRegex, false)) {
26
+ state.token=scriptingDispatch;
27
+ return scriptingMode.token(stream, state.scriptState);
28
+ }
29
+ else
30
+ return htmlMixedMode.token(stream, state.htmlState);
31
+ }
32
+
33
+ //tokenizer when in scripting mode
34
+ function scriptingDispatch(stream, state) {
35
+ if (stream.match(scriptEndRegex, false)) {
36
+ state.token=htmlDispatch;
37
+ return htmlMixedMode.token(stream, state.htmlState);
38
+ }
39
+ else
40
+ return scriptingMode.token(stream, state.scriptState);
41
+ }
42
+
43
+
44
+ return {
45
+ startState: function() {
46
+ scriptingMode = scriptingMode || CodeMirror.getMode(config, parserConfig.scriptingModeSpec);
47
+ htmlMixedMode = htmlMixedMode || CodeMirror.getMode(config, "htmlmixed");
48
+ return {
49
+ token : parserConfig.startOpen ? scriptingDispatch : htmlDispatch,
50
+ htmlState : CodeMirror.startState(htmlMixedMode),
51
+ scriptState : CodeMirror.startState(scriptingMode)
52
+ };
53
+ },
54
+
55
+ token: function(stream, state) {
56
+ return state.token(stream, state);
57
+ },
58
+
59
+ indent: function(state, textAfter) {
60
+ if (state.token == htmlDispatch)
61
+ return htmlMixedMode.indent(state.htmlState, textAfter);
62
+ else if (scriptingMode.indent)
63
+ return scriptingMode.indent(state.scriptState, textAfter);
64
+ },
65
+
66
+ copyState: function(state) {
67
+ return {
68
+ token : state.token,
69
+ htmlState : CodeMirror.copyState(htmlMixedMode, state.htmlState),
70
+ scriptState : CodeMirror.copyState(scriptingMode, state.scriptState)
71
+ };
72
+ },
73
+
74
+ innerMode: function(state) {
75
+ if (state.token == scriptingDispatch) return {state: state.scriptState, mode: scriptingMode};
76
+ else return {state: state.htmlState, mode: htmlMixedMode};
77
+ }
78
+ };
79
+ }, "htmlmixed");
80
+
81
+ CodeMirror.defineMIME("application/x-ejs", { name: "htmlembedded", scriptingModeSpec:"javascript"});
82
+ CodeMirror.defineMIME("application/x-aspx", { name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
83
+ CodeMirror.defineMIME("application/x-jsp", { name: "htmlembedded", scriptingModeSpec:"text/x-java"});
84
+ CodeMirror.defineMIME("application/x-erb", { name: "htmlembedded", scriptingModeSpec:"ruby"});
85
+
86
+ });
@@ -0,0 +1,58 @@
1
+ <!doctype html>
2
+
3
+ <title>CodeMirror: Html Embedded Scripts 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="../xml/xml.js"></script>
10
+ <script src="../javascript/javascript.js"></script>
11
+ <script src="../css/css.js"></script>
12
+ <script src="../htmlmixed/htmlmixed.js"></script>
13
+ <script src="htmlembedded.js"></script>
14
+ <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
15
+ <div id=nav>
16
+ <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
17
+
18
+ <ul>
19
+ <li><a href="../../index.html">Home</a>
20
+ <li><a href="../../doc/manual.html">Manual</a>
21
+ <li><a href="https://github.com/codemirror/codemirror">Code</a>
22
+ </ul>
23
+ <ul>
24
+ <li><a href="../index.html">Language modes</a>
25
+ <li><a class=active href="#">Html Embedded Scripts</a>
26
+ </ul>
27
+ </div>
28
+
29
+ <article>
30
+ <h2>Html Embedded Scripts mode</h2>
31
+ <form><textarea id="code" name="code">
32
+ <%
33
+ function hello(who) {
34
+ return "Hello " + who;
35
+ }
36
+ %>
37
+ This is an example of EJS (embedded javascript)
38
+ <p>The program says <%= hello("world") %>.</p>
39
+ <script>
40
+ alert("And here is some normal JS code"); // also colored
41
+ </script>
42
+ </textarea></form>
43
+
44
+ <script>
45
+ var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
46
+ lineNumbers: true,
47
+ mode: "application/x-ejs",
48
+ indentUnit: 4,
49
+ indentWithTabs: true
50
+ });
51
+ </script>
52
+
53
+ <p>Mode for html embedded scripts like JSP and ASP.NET. Depends on HtmlMixed which in turn depends on
54
+ JavaScript, CSS and XML.<br />Other dependancies include those of the scriping language chosen.</p>
55
+
56
+ <p><strong>MIME types defined:</strong> <code>application/x-aspx</code> (ASP.NET),
57
+ <code>application/x-ejs</code> (Embedded Javascript), <code>application/x-jsp</code> (JavaServer Pages)</p>
58
+ </article>
@@ -0,0 +1,121 @@
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"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
15
+ var htmlMode = CodeMirror.getMode(config, {name: "xml",
16
+ htmlMode: true,
17
+ multilineTagIndentFactor: parserConfig.multilineTagIndentFactor,
18
+ multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag});
19
+ var cssMode = CodeMirror.getMode(config, "css");
20
+
21
+ var scriptTypes = [], scriptTypesConf = parserConfig && parserConfig.scriptTypes;
22
+ scriptTypes.push({matches: /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,
23
+ mode: CodeMirror.getMode(config, "javascript")});
24
+ if (scriptTypesConf) for (var i = 0; i < scriptTypesConf.length; ++i) {
25
+ var conf = scriptTypesConf[i];
26
+ scriptTypes.push({matches: conf.matches, mode: conf.mode && CodeMirror.getMode(config, conf.mode)});
27
+ }
28
+ scriptTypes.push({matches: /./,
29
+ mode: CodeMirror.getMode(config, "text/plain")});
30
+
31
+ function html(stream, state) {
32
+ var tagName = state.htmlState.tagName;
33
+ if (tagName) tagName = tagName.toLowerCase();
34
+ var style = htmlMode.token(stream, state.htmlState);
35
+ if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") {
36
+ // Script block: mode to change to depends on type attribute
37
+ var scriptType = stream.string.slice(Math.max(0, stream.pos - 100), stream.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);
38
+ scriptType = scriptType ? scriptType[1] : "";
39
+ if (scriptType && /[\"\']/.test(scriptType.charAt(0))) scriptType = scriptType.slice(1, scriptType.length - 1);
40
+ for (var i = 0; i < scriptTypes.length; ++i) {
41
+ var tp = scriptTypes[i];
42
+ if (typeof tp.matches == "string" ? scriptType == tp.matches : tp.matches.test(scriptType)) {
43
+ if (tp.mode) {
44
+ state.token = script;
45
+ state.localMode = tp.mode;
46
+ state.localState = tp.mode.startState && tp.mode.startState(htmlMode.indent(state.htmlState, ""));
47
+ }
48
+ break;
49
+ }
50
+ }
51
+ } else if (tagName == "style" && /\btag\b/.test(style) && stream.current() == ">") {
52
+ state.token = css;
53
+ state.localMode = cssMode;
54
+ state.localState = cssMode.startState(htmlMode.indent(state.htmlState, ""));
55
+ }
56
+ return style;
57
+ }
58
+ function maybeBackup(stream, pat, style) {
59
+ var cur = stream.current();
60
+ var close = cur.search(pat), m;
61
+ if (close > -1) stream.backUp(cur.length - close);
62
+ else if (m = cur.match(/<\/?$/)) {
63
+ stream.backUp(cur.length);
64
+ if (!stream.match(pat, false)) stream.match(cur);
65
+ }
66
+ return style;
67
+ }
68
+ function script(stream, state) {
69
+ if (stream.match(/^<\/\s*script\s*>/i, false)) {
70
+ state.token = html;
71
+ state.localState = state.localMode = null;
72
+ return html(stream, state);
73
+ }
74
+ return maybeBackup(stream, /<\/\s*script\s*>/,
75
+ state.localMode.token(stream, state.localState));
76
+ }
77
+ function css(stream, state) {
78
+ if (stream.match(/^<\/\s*style\s*>/i, false)) {
79
+ state.token = html;
80
+ state.localState = state.localMode = null;
81
+ return html(stream, state);
82
+ }
83
+ return maybeBackup(stream, /<\/\s*style\s*>/,
84
+ cssMode.token(stream, state.localState));
85
+ }
86
+
87
+ return {
88
+ startState: function() {
89
+ var state = htmlMode.startState();
90
+ return {token: html, localMode: null, localState: null, htmlState: state};
91
+ },
92
+
93
+ copyState: function(state) {
94
+ if (state.localState)
95
+ var local = CodeMirror.copyState(state.localMode, state.localState);
96
+ return {token: state.token, localMode: state.localMode, localState: local,
97
+ htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};
98
+ },
99
+
100
+ token: function(stream, state) {
101
+ return state.token(stream, state);
102
+ },
103
+
104
+ indent: function(state, textAfter) {
105
+ if (!state.localMode || /^\s*<\//.test(textAfter))
106
+ return htmlMode.indent(state.htmlState, textAfter);
107
+ else if (state.localMode.indent)
108
+ return state.localMode.indent(state.localState, textAfter);
109
+ else
110
+ return CodeMirror.Pass;
111
+ },
112
+
113
+ innerMode: function(state) {
114
+ return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode};
115
+ }
116
+ };
117
+ }, "xml", "javascript", "css");
118
+
119
+ CodeMirror.defineMIME("text/html", "htmlmixed");
120
+
121
+ });
@@ -0,0 +1,85 @@
1
+ <!doctype html>
2
+
3
+ <title>CodeMirror: HTML mixed 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="../xml/xml.js"></script>
10
+ <script src="../javascript/javascript.js"></script>
11
+ <script src="../css/css.js"></script>
12
+ <script src="../vbscript/vbscript.js"></script>
13
+ <script src="htmlmixed.js"></script>
14
+ <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
15
+ <div id=nav>
16
+ <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
17
+
18
+ <ul>
19
+ <li><a href="../../index.html">Home</a>
20
+ <li><a href="../../doc/manual.html">Manual</a>
21
+ <li><a href="https://github.com/codemirror/codemirror">Code</a>
22
+ </ul>
23
+ <ul>
24
+ <li><a href="../index.html">Language modes</a>
25
+ <li><a class=active href="#">HTML mixed</a>
26
+ </ul>
27
+ </div>
28
+
29
+ <article>
30
+ <h2>HTML mixed mode</h2>
31
+ <form><textarea id="code" name="code">
32
+ <html style="color: green">
33
+ <!-- this is a comment -->
34
+ <head>
35
+ <title>Mixed HTML Example</title>
36
+ <style type="text/css">
37
+ h1 {font-family: comic sans; color: #f0f;}
38
+ div {background: yellow !important;}
39
+ body {
40
+ max-width: 50em;
41
+ margin: 1em 2em 1em 5em;
42
+ }
43
+ </style>
44
+ </head>
45
+ <body>
46
+ <h1>Mixed HTML Example</h1>
47
+ <script>
48
+ function jsFunc(arg1, arg2) {
49
+ if (arg1 && arg2) document.body.innerHTML = "achoo";
50
+ }
51
+ </script>
52
+ </body>
53
+ </html>
54
+ </textarea></form>
55
+ <script>
56
+ // Define an extended mixed-mode that understands vbscript and
57
+ // leaves mustache/handlebars embedded templates in html mode
58
+ var mixedMode = {
59
+ name: "htmlmixed",
60
+ scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i,
61
+ mode: null},
62
+ {matches: /(text|application)\/(x-)?vb(a|script)/i,
63
+ mode: "vbscript"}]
64
+ };
65
+ var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: mixedMode});
66
+ </script>
67
+
68
+ <p>The HTML mixed mode depends on the XML, JavaScript, and CSS modes.</p>
69
+
70
+ <p>It takes an optional mode configuration
71
+ option, <code>scriptTypes</code>, which can be used to add custom
72
+ behavior for specific <code>&lt;script type="..."></code> tags. If
73
+ given, it should hold an array of <code>{matches, mode}</code>
74
+ objects, where <code>matches</code> is a string or regexp that
75
+ matches the script type, and <code>mode</code> is
76
+ either <code>null</code>, for script types that should stay in
77
+ HTML mode, or a <a href="../../doc/manual.html#option_mode">mode
78
+ spec</a> corresponding to the mode that should be used for the
79
+ script.</p>
80
+
81
+ <p><strong>MIME types defined:</strong> <code>text/html</code>
82
+ (redefined, only takes effect if you load this parser after the
83
+ XML parser).</p>
84
+
85
+ </article>
@@ -0,0 +1,113 @@
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("http", function() {
15
+ function failFirstLine(stream, state) {
16
+ stream.skipToEnd();
17
+ state.cur = header;
18
+ return "error";
19
+ }
20
+
21
+ function start(stream, state) {
22
+ if (stream.match(/^HTTP\/\d\.\d/)) {
23
+ state.cur = responseStatusCode;
24
+ return "keyword";
25
+ } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) {
26
+ state.cur = requestPath;
27
+ return "keyword";
28
+ } else {
29
+ return failFirstLine(stream, state);
30
+ }
31
+ }
32
+
33
+ function responseStatusCode(stream, state) {
34
+ var code = stream.match(/^\d+/);
35
+ if (!code) return failFirstLine(stream, state);
36
+
37
+ state.cur = responseStatusText;
38
+ var status = Number(code[0]);
39
+ if (status >= 100 && status < 200) {
40
+ return "positive informational";
41
+ } else if (status >= 200 && status < 300) {
42
+ return "positive success";
43
+ } else if (status >= 300 && status < 400) {
44
+ return "positive redirect";
45
+ } else if (status >= 400 && status < 500) {
46
+ return "negative client-error";
47
+ } else if (status >= 500 && status < 600) {
48
+ return "negative server-error";
49
+ } else {
50
+ return "error";
51
+ }
52
+ }
53
+
54
+ function responseStatusText(stream, state) {
55
+ stream.skipToEnd();
56
+ state.cur = header;
57
+ return null;
58
+ }
59
+
60
+ function requestPath(stream, state) {
61
+ stream.eatWhile(/\S/);
62
+ state.cur = requestProtocol;
63
+ return "string-2";
64
+ }
65
+
66
+ function requestProtocol(stream, state) {
67
+ if (stream.match(/^HTTP\/\d\.\d$/)) {
68
+ state.cur = header;
69
+ return "keyword";
70
+ } else {
71
+ return failFirstLine(stream, state);
72
+ }
73
+ }
74
+
75
+ function header(stream) {
76
+ if (stream.sol() && !stream.eat(/[ \t]/)) {
77
+ if (stream.match(/^.*?:/)) {
78
+ return "atom";
79
+ } else {
80
+ stream.skipToEnd();
81
+ return "error";
82
+ }
83
+ } else {
84
+ stream.skipToEnd();
85
+ return "string";
86
+ }
87
+ }
88
+
89
+ function body(stream) {
90
+ stream.skipToEnd();
91
+ return null;
92
+ }
93
+
94
+ return {
95
+ token: function(stream, state) {
96
+ var cur = state.cur;
97
+ if (cur != header && cur != body && stream.eatSpace()) return null;
98
+ return cur(stream, state);
99
+ },
100
+
101
+ blankLine: function(state) {
102
+ state.cur = body;
103
+ },
104
+
105
+ startState: function() {
106
+ return {cur: start};
107
+ }
108
+ };
109
+ });
110
+
111
+ CodeMirror.defineMIME("message/http", "http");
112
+
113
+ });
@@ -0,0 +1,45 @@
1
+ <!doctype html>
2
+
3
+ <title>CodeMirror: HTTP 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="http.js"></script>
10
+ <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11
+ <div id=nav>
12
+ <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
13
+
14
+ <ul>
15
+ <li><a href="../../index.html">Home</a>
16
+ <li><a href="../../doc/manual.html">Manual</a>
17
+ <li><a href="https://github.com/codemirror/codemirror">Code</a>
18
+ </ul>
19
+ <ul>
20
+ <li><a href="../index.html">Language modes</a>
21
+ <li><a class=active href="#">HTTP</a>
22
+ </ul>
23
+ </div>
24
+
25
+ <article>
26
+ <h2>HTTP mode</h2>
27
+
28
+
29
+ <div><textarea id="code" name="code">
30
+ POST /somewhere HTTP/1.1
31
+ Host: example.com
32
+ If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
33
+ Content-Type: application/x-www-form-urlencoded;
34
+ charset=utf-8
35
+ User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
36
+
37
+ This is the request body!
38
+ </textarea></div>
39
+
40
+ <script>
41
+ var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
42
+ </script>
43
+
44
+ <p><strong>MIME types defined:</strong> <code>message/http</code>.</p>
45
+ </article>
@@ -0,0 +1,125 @@
1
+ <!doctype html>
2
+
3
+ <title>CodeMirror: Language Modes</title>
4
+ <meta charset="utf-8"/>
5
+ <link rel=stylesheet href="../doc/docs.css">
6
+
7
+ <div id=nav>
8
+ <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../doc/logo.png"></a>
9
+
10
+ <ul>
11
+ <li><a href="../index.html">Home</a>
12
+ <li><a href="../doc/manual.html">Manual</a>
13
+ <li><a href="https://github.com/codemirror/codemirror">Code</a>
14
+ </ul>
15
+ <ul>
16
+ <li><a class=active href="#">Language modes</a>
17
+ </ul>
18
+ </div>
19
+
20
+ <article>
21
+
22
+ <h2>Language modes</h2>
23
+
24
+ <p>This is a list of every mode in the distribution. Each mode lives
25
+ in a subdirectory of the <code>mode/</code> directory, and typically
26
+ defines a single JavaScript file that implements the mode. Loading
27
+ such file will make the language available to CodeMirror, through
28
+ the <a href="manual.html#option_mode"><code>mode</code></a>
29
+ option.</p>
30
+
31
+ <div style="-webkit-columns: 100px 2; -moz-columns: 100px 2; columns: 100px 2;">
32
+ <ul style="margin-top: 0">
33
+ <li><a href="apl/index.html">APL</a></li>
34
+ <li><a href="asterisk/index.html">Asterisk dialplan</a></li>
35
+ <li><a href="clike/index.html">C, C++, C#</a></li>
36
+ <li><a href="clojure/index.html">Clojure</a></li>
37
+ <li><a href="cobol/index.html">COBOL</a></li>
38
+ <li><a href="coffeescript/index.html">CoffeeScript</a></li>
39
+ <li><a href="commonlisp/index.html">Common Lisp</a></li>
40
+ <li><a href="css/index.html">CSS</a></li>
41
+ <li><a href="cypher/index.html">Cypher</a></li>
42
+ <li><a href="python/index.html">Cython</a></li>
43
+ <li><a href="d/index.html">D</a></li>
44
+ <li><a href="django/index.html">Django</a> (templating language)</li>
45
+ <li><a href="diff/index.html">diff</a></li>
46
+ <li><a href="dtd/index.html">DTD</a></li>
47
+ <li><a href="dylan/index.html">Dylan</a></li>
48
+ <li><a href="ecl/index.html">ECL</a></li>
49
+ <li><a href="eiffel/index.html">Eiffel</a></li>
50
+ <li><a href="erlang/index.html">Erlang</a></li>
51
+ <li><a href="fortran/index.html">Fortran</a></li>
52
+ <li><a href="mllike/index.html">F#</a></li>
53
+ <li><a href="gas/index.html">Gas</a> (AT&amp;T-style assembly)</li>
54
+ <li><a href="gherkin/index.html">Gherkin</a></li>
55
+ <li><a href="go/index.html">Go</a></li>
56
+ <li><a href="groovy/index.html">Groovy</a></li>
57
+ <li><a href="haml/index.html">HAML</a></li>
58
+ <li><a href="haskell/index.html">Haskell</a></li>
59
+ <li><a href="haxe/index.html">Haxe</a></li>
60
+ <li><a href="htmlembedded/index.html">HTML embedded scripts</a></li>
61
+ <li><a href="htmlmixed/index.html">HTML mixed-mode</a></li>
62
+ <li><a href="http/index.html">HTTP</a></li>
63
+ <li><a href="clike/index.html">Java</a></li>
64
+ <li><a href="jade/index.html">Jade</a></li>
65
+ <li><a href="javascript/index.html">JavaScript</a></li>
66
+ <li><a href="jinja2/index.html">Jinja2</a></li>
67
+ <li><a href="julia/index.html">Julia</a></li>
68
+ <li><a href="kotlin/index.html">Kotlin</a></li>
69
+ <li><a href="css/less.html">LESS</a></li>
70
+ <li><a href="livescript/index.html">LiveScript</a></li>
71
+ <li><a href="lua/index.html">Lua</a></li>
72
+ <li><a href="markdown/index.html">Markdown</a> (<a href="gfm/index.html">GitHub-flavour</a>)</li>
73
+ <li><a href="mirc/index.html">mIRC</a></li>
74
+ <li><a href="modelica/index.html">Modelica</a></li>
75
+ <li><a href="nginx/index.html">Nginx</a></li>
76
+ <li><a href="ntriples/index.html">NTriples</a></li>
77
+ <li><a href="mllike/index.html">OCaml</a></li>
78
+ <li><a href="octave/index.html">Octave</a> (MATLAB)</li>
79
+ <li><a href="pascal/index.html">Pascal</a></li>
80
+ <li><a href="pegjs/index.html">PEG.js</a></li>
81
+ <li><a href="perl/index.html">Perl</a></li>
82
+ <li><a href="php/index.html">PHP</a></li>
83
+ <li><a href="pig/index.html">Pig Latin</a></li>
84
+ <li><a href="properties/index.html">Properties files</a></li>
85
+ <li><a href="puppet/index.html">Puppet</a></li>
86
+ <li><a href="python/index.html">Python</a></li>
87
+ <li><a href="q/index.html">Q</a></li>
88
+ <li><a href="r/index.html">R</a></li>
89
+ <li><a href="rpm/index.html">RPM</a></li>
90
+ <li><a href="rst/index.html">reStructuredText</a></li>
91
+ <li><a href="ruby/index.html">Ruby</a></li>
92
+ <li><a href="rust/index.html">Rust</a></li>
93
+ <li><a href="sass/index.html">Sass</a></li>
94
+ <li><a href="clike/scala.html">Scala</a></li>
95
+ <li><a href="scheme/index.html">Scheme</a></li>
96
+ <li><a href="css/scss.html">SCSS</a></li>
97
+ <li><a href="shell/index.html">Shell</a></li>
98
+ <li><a href="sieve/index.html">Sieve</a></li>
99
+ <li><a href="slim/index.html">Slim</a></li>
100
+ <li><a href="smalltalk/index.html">Smalltalk</a></li>
101
+ <li><a href="smarty/index.html">Smarty</a></li>
102
+ <li><a href="smartymixed/index.html">Smarty/HTML mixed</a></li>
103
+ <li><a href="solr/index.html">Solr</a></li>
104
+ <li><a href="sql/index.html">SQL</a> (several dialects)</li>
105
+ <li><a href="sparql/index.html">SPARQL</a></li>
106
+ <li><a href="stex/index.html">sTeX, LaTeX</a></li>
107
+ <li><a href="tcl/index.html">Tcl</a></li>
108
+ <li><a href="textile/index.html">Textile</a></li>
109
+ <li><a href="tiddlywiki/index.html">Tiddlywiki</a></li>
110
+ <li><a href="tiki/index.html">Tiki wiki</a></li>
111
+ <li><a href="toml/index.html">TOML</a></li>
112
+ <li><a href="tornado/index.html">Tornado</a> (templating language)</li>
113
+ <li><a href="turtle/index.html">Turtle</a></li>
114
+ <li><a href="vb/index.html">VB.NET</a></li>
115
+ <li><a href="vbscript/index.html">VBScript</a></li>
116
+ <li><a href="velocity/index.html">Velocity</a></li>
117
+ <li><a href="verilog/index.html">Verilog/SystemVerilog</a></li>
118
+ <li><a href="xml/index.html">XML/HTML</a></li>
119
+ <li><a href="xquery/index.html">XQuery</a></li>
120
+ <li><a href="yaml/index.html">YAML</a></li>
121
+ <li><a href="z80/index.html">Z80</a></li>
122
+ </ul>
123
+ </div>
124
+
125
+ </article>