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,717 @@
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("css", function(config, parserConfig) {
15
+ if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
16
+
17
+ var indentUnit = config.indentUnit,
18
+ tokenHooks = parserConfig.tokenHooks,
19
+ mediaTypes = parserConfig.mediaTypes || {},
20
+ mediaFeatures = parserConfig.mediaFeatures || {},
21
+ propertyKeywords = parserConfig.propertyKeywords || {},
22
+ nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
23
+ colorKeywords = parserConfig.colorKeywords || {},
24
+ valueKeywords = parserConfig.valueKeywords || {},
25
+ fontProperties = parserConfig.fontProperties || {},
26
+ allowNested = parserConfig.allowNested;
27
+
28
+ var type, override;
29
+ function ret(style, tp) { type = tp; return style; }
30
+
31
+ // Tokenizers
32
+
33
+ function tokenBase(stream, state) {
34
+ var ch = stream.next();
35
+ if (tokenHooks[ch]) {
36
+ var result = tokenHooks[ch](stream, state);
37
+ if (result !== false) return result;
38
+ }
39
+ if (ch == "@") {
40
+ stream.eatWhile(/[\w\\\-]/);
41
+ return ret("def", stream.current());
42
+ } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
43
+ return ret(null, "compare");
44
+ } else if (ch == "\"" || ch == "'") {
45
+ state.tokenize = tokenString(ch);
46
+ return state.tokenize(stream, state);
47
+ } else if (ch == "#") {
48
+ stream.eatWhile(/[\w\\\-]/);
49
+ return ret("atom", "hash");
50
+ } else if (ch == "!") {
51
+ stream.match(/^\s*\w*/);
52
+ return ret("keyword", "important");
53
+ } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
54
+ stream.eatWhile(/[\w.%]/);
55
+ return ret("number", "unit");
56
+ } else if (ch === "-") {
57
+ if (/[\d.]/.test(stream.peek())) {
58
+ stream.eatWhile(/[\w.%]/);
59
+ return ret("number", "unit");
60
+ } else if (stream.match(/^\w+-/)) {
61
+ return ret("meta", "meta");
62
+ }
63
+ } else if (/[,+>*\/]/.test(ch)) {
64
+ return ret(null, "select-op");
65
+ } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
66
+ return ret("qualifier", "qualifier");
67
+ } else if (/[:;{}\[\]\(\)]/.test(ch)) {
68
+ return ret(null, ch);
69
+ } else if (ch == "u" && stream.match("rl(")) {
70
+ stream.backUp(1);
71
+ state.tokenize = tokenParenthesized;
72
+ return ret("property", "word");
73
+ } else if (/[\w\\\-]/.test(ch)) {
74
+ stream.eatWhile(/[\w\\\-]/);
75
+ return ret("property", "word");
76
+ } else {
77
+ return ret(null, null);
78
+ }
79
+ }
80
+
81
+ function tokenString(quote) {
82
+ return function(stream, state) {
83
+ var escaped = false, ch;
84
+ while ((ch = stream.next()) != null) {
85
+ if (ch == quote && !escaped) {
86
+ if (quote == ")") stream.backUp(1);
87
+ break;
88
+ }
89
+ escaped = !escaped && ch == "\\";
90
+ }
91
+ if (ch == quote || !escaped && quote != ")") state.tokenize = null;
92
+ return ret("string", "string");
93
+ };
94
+ }
95
+
96
+ function tokenParenthesized(stream, state) {
97
+ stream.next(); // Must be '('
98
+ if (!stream.match(/\s*[\"\')]/, false))
99
+ state.tokenize = tokenString(")");
100
+ else
101
+ state.tokenize = null;
102
+ return ret(null, "(");
103
+ }
104
+
105
+ // Context management
106
+
107
+ function Context(type, indent, prev) {
108
+ this.type = type;
109
+ this.indent = indent;
110
+ this.prev = prev;
111
+ }
112
+
113
+ function pushContext(state, stream, type) {
114
+ state.context = new Context(type, stream.indentation() + indentUnit, state.context);
115
+ return type;
116
+ }
117
+
118
+ function popContext(state) {
119
+ state.context = state.context.prev;
120
+ return state.context.type;
121
+ }
122
+
123
+ function pass(type, stream, state) {
124
+ return states[state.context.type](type, stream, state);
125
+ }
126
+ function popAndPass(type, stream, state, n) {
127
+ for (var i = n || 1; i > 0; i--)
128
+ state.context = state.context.prev;
129
+ return pass(type, stream, state);
130
+ }
131
+
132
+ // Parser
133
+
134
+ function wordAsValue(stream) {
135
+ var word = stream.current().toLowerCase();
136
+ if (valueKeywords.hasOwnProperty(word))
137
+ override = "atom";
138
+ else if (colorKeywords.hasOwnProperty(word))
139
+ override = "keyword";
140
+ else
141
+ override = "variable";
142
+ }
143
+
144
+ var states = {};
145
+
146
+ states.top = function(type, stream, state) {
147
+ if (type == "{") {
148
+ return pushContext(state, stream, "block");
149
+ } else if (type == "}" && state.context.prev) {
150
+ return popContext(state);
151
+ } else if (type == "@media") {
152
+ return pushContext(state, stream, "media");
153
+ } else if (type == "@font-face") {
154
+ return "font_face_before";
155
+ } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
156
+ return "keyframes";
157
+ } else if (type && type.charAt(0) == "@") {
158
+ return pushContext(state, stream, "at");
159
+ } else if (type == "hash") {
160
+ override = "builtin";
161
+ } else if (type == "word") {
162
+ override = "tag";
163
+ } else if (type == "variable-definition") {
164
+ return "maybeprop";
165
+ } else if (type == "interpolation") {
166
+ return pushContext(state, stream, "interpolation");
167
+ } else if (type == ":") {
168
+ return "pseudo";
169
+ } else if (allowNested && type == "(") {
170
+ return pushContext(state, stream, "parens");
171
+ }
172
+ return state.context.type;
173
+ };
174
+
175
+ states.block = function(type, stream, state) {
176
+ if (type == "word") {
177
+ var word = stream.current().toLowerCase();
178
+ if (propertyKeywords.hasOwnProperty(word)) {
179
+ override = "property";
180
+ return "maybeprop";
181
+ } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
182
+ override = "string-2";
183
+ return "maybeprop";
184
+ } else if (allowNested) {
185
+ override = stream.match(/^\s*:/, false) ? "property" : "tag";
186
+ return "block";
187
+ } else {
188
+ override += " error";
189
+ return "maybeprop";
190
+ }
191
+ } else if (type == "meta") {
192
+ return "block";
193
+ } else if (!allowNested && (type == "hash" || type == "qualifier")) {
194
+ override = "error";
195
+ return "block";
196
+ } else {
197
+ return states.top(type, stream, state);
198
+ }
199
+ };
200
+
201
+ states.maybeprop = function(type, stream, state) {
202
+ if (type == ":") return pushContext(state, stream, "prop");
203
+ return pass(type, stream, state);
204
+ };
205
+
206
+ states.prop = function(type, stream, state) {
207
+ if (type == ";") return popContext(state);
208
+ if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
209
+ if (type == "}" || type == "{") return popAndPass(type, stream, state);
210
+ if (type == "(") return pushContext(state, stream, "parens");
211
+
212
+ if (type == "hash" && !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())) {
213
+ override += " error";
214
+ } else if (type == "word") {
215
+ wordAsValue(stream);
216
+ } else if (type == "interpolation") {
217
+ return pushContext(state, stream, "interpolation");
218
+ }
219
+ return "prop";
220
+ };
221
+
222
+ states.propBlock = function(type, _stream, state) {
223
+ if (type == "}") return popContext(state);
224
+ if (type == "word") { override = "property"; return "maybeprop"; }
225
+ return state.context.type;
226
+ };
227
+
228
+ states.parens = function(type, stream, state) {
229
+ if (type == "{" || type == "}") return popAndPass(type, stream, state);
230
+ if (type == ")") return popContext(state);
231
+ if (type == "(") return pushContext(state, stream, "parens");
232
+ if (type == "word") wordAsValue(stream);
233
+ return "parens";
234
+ };
235
+
236
+ states.pseudo = function(type, stream, state) {
237
+ if (type == "word") {
238
+ override = "variable-3";
239
+ return state.context.type;
240
+ }
241
+ return pass(type, stream, state);
242
+ };
243
+
244
+ states.media = function(type, stream, state) {
245
+ if (type == "(") return pushContext(state, stream, "media_parens");
246
+ if (type == "}") return popAndPass(type, stream, state);
247
+ if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
248
+
249
+ if (type == "word") {
250
+ var word = stream.current().toLowerCase();
251
+ if (word == "only" || word == "not" || word == "and")
252
+ override = "keyword";
253
+ else if (mediaTypes.hasOwnProperty(word))
254
+ override = "attribute";
255
+ else if (mediaFeatures.hasOwnProperty(word))
256
+ override = "property";
257
+ else
258
+ override = "error";
259
+ }
260
+ return state.context.type;
261
+ };
262
+
263
+ states.media_parens = function(type, stream, state) {
264
+ if (type == ")") return popContext(state);
265
+ if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
266
+ return states.media(type, stream, state);
267
+ };
268
+
269
+ states.font_face_before = function(type, stream, state) {
270
+ if (type == "{")
271
+ return pushContext(state, stream, "font_face");
272
+ return pass(type, stream, state);
273
+ };
274
+
275
+ states.font_face = function(type, stream, state) {
276
+ if (type == "}") return popContext(state);
277
+ if (type == "word") {
278
+ if (!fontProperties.hasOwnProperty(stream.current().toLowerCase()))
279
+ override = "error";
280
+ else
281
+ override = "property";
282
+ return "maybeprop";
283
+ }
284
+ return "font_face";
285
+ };
286
+
287
+ states.keyframes = function(type, stream, state) {
288
+ if (type == "word") { override = "variable"; return "keyframes"; }
289
+ if (type == "{") return pushContext(state, stream, "top");
290
+ return pass(type, stream, state);
291
+ };
292
+
293
+ states.at = function(type, stream, state) {
294
+ if (type == ";") return popContext(state);
295
+ if (type == "{" || type == "}") return popAndPass(type, stream, state);
296
+ if (type == "word") override = "tag";
297
+ else if (type == "hash") override = "builtin";
298
+ return "at";
299
+ };
300
+
301
+ states.interpolation = function(type, stream, state) {
302
+ if (type == "}") return popContext(state);
303
+ if (type == "{" || type == ";") return popAndPass(type, stream, state);
304
+ if (type != "variable") override = "error";
305
+ return "interpolation";
306
+ };
307
+
308
+ return {
309
+ startState: function(base) {
310
+ return {tokenize: null,
311
+ state: "top",
312
+ context: new Context("top", base || 0, null)};
313
+ },
314
+
315
+ token: function(stream, state) {
316
+ if (!state.tokenize && stream.eatSpace()) return null;
317
+ var style = (state.tokenize || tokenBase)(stream, state);
318
+ if (style && typeof style == "object") {
319
+ type = style[1];
320
+ style = style[0];
321
+ }
322
+ override = style;
323
+ state.state = states[state.state](type, stream, state);
324
+ return override;
325
+ },
326
+
327
+ indent: function(state, textAfter) {
328
+ var cx = state.context, ch = textAfter && textAfter.charAt(0);
329
+ var indent = cx.indent;
330
+ if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
331
+ if (cx.prev &&
332
+ (ch == "}" && (cx.type == "block" || cx.type == "top" || cx.type == "interpolation" || cx.type == "font_face") ||
333
+ ch == ")" && (cx.type == "parens" || cx.type == "media_parens") ||
334
+ ch == "{" && (cx.type == "at" || cx.type == "media"))) {
335
+ indent = cx.indent - indentUnit;
336
+ cx = cx.prev;
337
+ }
338
+ return indent;
339
+ },
340
+
341
+ electricChars: "}",
342
+ blockCommentStart: "/*",
343
+ blockCommentEnd: "*/",
344
+ fold: "brace"
345
+ };
346
+ });
347
+
348
+ function keySet(array) {
349
+ var keys = {};
350
+ for (var i = 0; i < array.length; ++i) {
351
+ keys[array[i]] = true;
352
+ }
353
+ return keys;
354
+ }
355
+
356
+ var mediaTypes_ = [
357
+ "all", "aural", "braille", "handheld", "print", "projection", "screen",
358
+ "tty", "tv", "embossed"
359
+ ], mediaTypes = keySet(mediaTypes_);
360
+
361
+ var mediaFeatures_ = [
362
+ "width", "min-width", "max-width", "height", "min-height", "max-height",
363
+ "device-width", "min-device-width", "max-device-width", "device-height",
364
+ "min-device-height", "max-device-height", "aspect-ratio",
365
+ "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
366
+ "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
367
+ "max-color", "color-index", "min-color-index", "max-color-index",
368
+ "monochrome", "min-monochrome", "max-monochrome", "resolution",
369
+ "min-resolution", "max-resolution", "scan", "grid"
370
+ ], mediaFeatures = keySet(mediaFeatures_);
371
+
372
+ var propertyKeywords_ = [
373
+ "align-content", "align-items", "align-self", "alignment-adjust",
374
+ "alignment-baseline", "anchor-point", "animation", "animation-delay",
375
+ "animation-direction", "animation-duration", "animation-fill-mode",
376
+ "animation-iteration-count", "animation-name", "animation-play-state",
377
+ "animation-timing-function", "appearance", "azimuth", "backface-visibility",
378
+ "background", "background-attachment", "background-clip", "background-color",
379
+ "background-image", "background-origin", "background-position",
380
+ "background-repeat", "background-size", "baseline-shift", "binding",
381
+ "bleed", "bookmark-label", "bookmark-level", "bookmark-state",
382
+ "bookmark-target", "border", "border-bottom", "border-bottom-color",
383
+ "border-bottom-left-radius", "border-bottom-right-radius",
384
+ "border-bottom-style", "border-bottom-width", "border-collapse",
385
+ "border-color", "border-image", "border-image-outset",
386
+ "border-image-repeat", "border-image-slice", "border-image-source",
387
+ "border-image-width", "border-left", "border-left-color",
388
+ "border-left-style", "border-left-width", "border-radius", "border-right",
389
+ "border-right-color", "border-right-style", "border-right-width",
390
+ "border-spacing", "border-style", "border-top", "border-top-color",
391
+ "border-top-left-radius", "border-top-right-radius", "border-top-style",
392
+ "border-top-width", "border-width", "bottom", "box-decoration-break",
393
+ "box-shadow", "box-sizing", "break-after", "break-before", "break-inside",
394
+ "caption-side", "clear", "clip", "color", "color-profile", "column-count",
395
+ "column-fill", "column-gap", "column-rule", "column-rule-color",
396
+ "column-rule-style", "column-rule-width", "column-span", "column-width",
397
+ "columns", "content", "counter-increment", "counter-reset", "crop", "cue",
398
+ "cue-after", "cue-before", "cursor", "direction", "display",
399
+ "dominant-baseline", "drop-initial-after-adjust",
400
+ "drop-initial-after-align", "drop-initial-before-adjust",
401
+ "drop-initial-before-align", "drop-initial-size", "drop-initial-value",
402
+ "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis",
403
+ "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap",
404
+ "float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings",
405
+ "font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust",
406
+ "font-stretch", "font-style", "font-synthesis", "font-variant",
407
+ "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
408
+ "font-variant-ligatures", "font-variant-numeric", "font-variant-position",
409
+ "font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow",
410
+ "grid-auto-position", "grid-auto-rows", "grid-column", "grid-column-end",
411
+ "grid-column-start", "grid-row", "grid-row-end", "grid-row-start",
412
+ "grid-template", "grid-template-areas", "grid-template-columns",
413
+ "grid-template-rows", "hanging-punctuation", "height", "hyphens",
414
+ "icon", "image-orientation", "image-rendering", "image-resolution",
415
+ "inline-box-align", "justify-content", "left", "letter-spacing",
416
+ "line-break", "line-height", "line-stacking", "line-stacking-ruby",
417
+ "line-stacking-shift", "line-stacking-strategy", "list-style",
418
+ "list-style-image", "list-style-position", "list-style-type", "margin",
419
+ "margin-bottom", "margin-left", "margin-right", "margin-top",
420
+ "marker-offset", "marks", "marquee-direction", "marquee-loop",
421
+ "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
422
+ "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
423
+ "nav-left", "nav-right", "nav-up", "object-fit", "object-position",
424
+ "opacity", "order", "orphans", "outline",
425
+ "outline-color", "outline-offset", "outline-style", "outline-width",
426
+ "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y",
427
+ "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
428
+ "page", "page-break-after", "page-break-before", "page-break-inside",
429
+ "page-policy", "pause", "pause-after", "pause-before", "perspective",
430
+ "perspective-origin", "pitch", "pitch-range", "play-during", "position",
431
+ "presentation-level", "punctuation-trim", "quotes", "region-break-after",
432
+ "region-break-before", "region-break-inside", "region-fragment",
433
+ "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness",
434
+ "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang",
435
+ "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shape-margin",
436
+ "shape-outside", "size", "speak", "speak-as", "speak-header",
437
+ "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set",
438
+ "tab-size", "table-layout", "target", "target-name", "target-new",
439
+ "target-position", "text-align", "text-align-last", "text-decoration",
440
+ "text-decoration-color", "text-decoration-line", "text-decoration-skip",
441
+ "text-decoration-style", "text-emphasis", "text-emphasis-color",
442
+ "text-emphasis-position", "text-emphasis-style", "text-height",
443
+ "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow",
444
+ "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position",
445
+ "text-wrap", "top", "transform", "transform-origin", "transform-style",
446
+ "transition", "transition-delay", "transition-duration",
447
+ "transition-property", "transition-timing-function", "unicode-bidi",
448
+ "vertical-align", "visibility", "voice-balance", "voice-duration",
449
+ "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
450
+ "voice-volume", "volume", "white-space", "widows", "width", "word-break",
451
+ "word-spacing", "word-wrap", "z-index",
452
+ // SVG-specific
453
+ "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
454
+ "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
455
+ "color-interpolation", "color-interpolation-filters",
456
+ "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
457
+ "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke",
458
+ "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
459
+ "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
460
+ "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
461
+ "glyph-orientation-vertical", "text-anchor", "writing-mode"
462
+ ], propertyKeywords = keySet(propertyKeywords_);
463
+
464
+ var nonStandardPropertyKeywords_ = [
465
+ "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
466
+ "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
467
+ "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside",
468
+ "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button",
469
+ "searchfield-results-decoration", "zoom"
470
+ ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
471
+
472
+ var colorKeywords_ = [
473
+ "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
474
+ "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
475
+ "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
476
+ "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
477
+ "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
478
+ "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
479
+ "darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
480
+ "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
481
+ "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
482
+ "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
483
+ "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
484
+ "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
485
+ "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
486
+ "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
487
+ "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
488
+ "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
489
+ "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
490
+ "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
491
+ "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
492
+ "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
493
+ "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
494
+ "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
495
+ "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
496
+ "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
497
+ "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
498
+ "whitesmoke", "yellow", "yellowgreen"
499
+ ], colorKeywords = keySet(colorKeywords_);
500
+
501
+ var valueKeywords_ = [
502
+ "above", "absolute", "activeborder", "activecaption", "afar",
503
+ "after-white-space", "ahead", "alias", "all", "all-scroll", "alternate",
504
+ "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
505
+ "arabic-indic", "armenian", "asterisks", "auto", "avoid", "avoid-column", "avoid-page",
506
+ "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary",
507
+ "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
508
+ "both", "bottom", "break", "break-all", "break-word", "button", "button-bevel",
509
+ "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian",
510
+ "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
511
+ "cell", "center", "checkbox", "circle", "cjk-earthly-branch",
512
+ "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
513
+ "col-resize", "collapse", "column", "compact", "condensed", "contain", "content",
514
+ "content-box", "context-menu", "continuous", "copy", "cover", "crop",
515
+ "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal",
516
+ "decimal-leading-zero", "default", "default-button", "destination-atop",
517
+ "destination-in", "destination-out", "destination-over", "devanagari",
518
+ "disc", "discard", "document", "dot-dash", "dot-dot-dash", "dotted",
519
+ "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
520
+ "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
521
+ "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
522
+ "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
523
+ "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
524
+ "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
525
+ "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
526
+ "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et",
527
+ "ethiopic-halehame-tig", "ew-resize", "expanded", "extra-condensed",
528
+ "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "footnotes",
529
+ "forwards", "from", "geometricPrecision", "georgian", "graytext", "groove",
530
+ "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew",
531
+ "help", "hidden", "hide", "higher", "highlight", "highlighttext",
532
+ "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore",
533
+ "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
534
+ "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
535
+ "inline-block", "inline-table", "inset", "inside", "intrinsic", "invert",
536
+ "italic", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer",
537
+ "landscape", "lao", "large", "larger", "left", "level", "lighter",
538
+ "line-through", "linear", "lines", "list-item", "listbox", "listitem",
539
+ "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
540
+ "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
541
+ "lower-roman", "lowercase", "ltr", "malayalam", "match",
542
+ "media-controls-background", "media-current-time-display",
543
+ "media-fullscreen-button", "media-mute-button", "media-play-button",
544
+ "media-return-to-realtime-button", "media-rewind-button",
545
+ "media-seek-back-button", "media-seek-forward-button", "media-slider",
546
+ "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
547
+ "media-volume-slider-container", "media-volume-sliderthumb", "medium",
548
+ "menu", "menulist", "menulist-button", "menulist-text",
549
+ "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
550
+ "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize",
551
+ "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
552
+ "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
553
+ "ns-resize", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote",
554
+ "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
555
+ "outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
556
+ "painted", "page", "paused", "persian", "plus-darker", "plus-lighter", "pointer",
557
+ "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button",
558
+ "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region",
559
+ "relative", "repeat", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba",
560
+ "ridge", "right", "round", "row-resize", "rtl", "run-in", "running",
561
+ "s-resize", "sans-serif", "scroll", "scrollbar", "se-resize", "searchfield",
562
+ "searchfield-cancel-button", "searchfield-decoration",
563
+ "searchfield-results-button", "searchfield-results-decoration",
564
+ "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
565
+ "single", "skip-white-space", "slide", "slider-horizontal",
566
+ "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
567
+ "small", "small-caps", "small-caption", "smaller", "solid", "somali",
568
+ "source-atop", "source-in", "source-out", "source-over", "space", "square",
569
+ "square-button", "start", "static", "status-bar", "stretch", "stroke",
570
+ "sub", "subpixel-antialiased", "super", "sw-resize", "table",
571
+ "table-caption", "table-cell", "table-column", "table-column-group",
572
+ "table-footer-group", "table-header-group", "table-row", "table-row-group",
573
+ "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
574
+ "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
575
+ "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
576
+ "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
577
+ "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",
578
+ "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
579
+ "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
580
+ "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",
581
+ "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
582
+ "window", "windowframe", "windowtext", "x-large", "x-small", "xor",
583
+ "xx-large", "xx-small"
584
+ ], valueKeywords = keySet(valueKeywords_);
585
+
586
+ var fontProperties_ = [
587
+ "font-family", "src", "unicode-range", "font-variant", "font-feature-settings",
588
+ "font-stretch", "font-weight", "font-style"
589
+ ], fontProperties = keySet(fontProperties_);
590
+
591
+ var allWords = mediaTypes_.concat(mediaFeatures_).concat(propertyKeywords_)
592
+ .concat(nonStandardPropertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);
593
+ CodeMirror.registerHelper("hintWords", "css", allWords);
594
+
595
+ function tokenCComment(stream, state) {
596
+ var maybeEnd = false, ch;
597
+ while ((ch = stream.next()) != null) {
598
+ if (maybeEnd && ch == "/") {
599
+ state.tokenize = null;
600
+ break;
601
+ }
602
+ maybeEnd = (ch == "*");
603
+ }
604
+ return ["comment", "comment"];
605
+ }
606
+
607
+ function tokenSGMLComment(stream, state) {
608
+ if (stream.skipTo("-->")) {
609
+ stream.match("-->");
610
+ state.tokenize = null;
611
+ } else {
612
+ stream.skipToEnd();
613
+ }
614
+ return ["comment", "comment"];
615
+ }
616
+
617
+ CodeMirror.defineMIME("text/css", {
618
+ mediaTypes: mediaTypes,
619
+ mediaFeatures: mediaFeatures,
620
+ propertyKeywords: propertyKeywords,
621
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
622
+ colorKeywords: colorKeywords,
623
+ valueKeywords: valueKeywords,
624
+ fontProperties: fontProperties,
625
+ tokenHooks: {
626
+ "<": function(stream, state) {
627
+ if (!stream.match("!--")) return false;
628
+ state.tokenize = tokenSGMLComment;
629
+ return tokenSGMLComment(stream, state);
630
+ },
631
+ "/": function(stream, state) {
632
+ if (!stream.eat("*")) return false;
633
+ state.tokenize = tokenCComment;
634
+ return tokenCComment(stream, state);
635
+ }
636
+ },
637
+ name: "css"
638
+ });
639
+
640
+ CodeMirror.defineMIME("text/x-scss", {
641
+ mediaTypes: mediaTypes,
642
+ mediaFeatures: mediaFeatures,
643
+ propertyKeywords: propertyKeywords,
644
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
645
+ colorKeywords: colorKeywords,
646
+ valueKeywords: valueKeywords,
647
+ fontProperties: fontProperties,
648
+ allowNested: true,
649
+ tokenHooks: {
650
+ "/": function(stream, state) {
651
+ if (stream.eat("/")) {
652
+ stream.skipToEnd();
653
+ return ["comment", "comment"];
654
+ } else if (stream.eat("*")) {
655
+ state.tokenize = tokenCComment;
656
+ return tokenCComment(stream, state);
657
+ } else {
658
+ return ["operator", "operator"];
659
+ }
660
+ },
661
+ ":": function(stream) {
662
+ if (stream.match(/\s*\{/))
663
+ return [null, "{"];
664
+ return false;
665
+ },
666
+ "$": function(stream) {
667
+ stream.match(/^[\w-]+/);
668
+ if (stream.match(/^\s*:/, false))
669
+ return ["variable-2", "variable-definition"];
670
+ return ["variable-2", "variable"];
671
+ },
672
+ "#": function(stream) {
673
+ if (!stream.eat("{")) return false;
674
+ return [null, "interpolation"];
675
+ }
676
+ },
677
+ name: "css",
678
+ helperType: "scss"
679
+ });
680
+
681
+ CodeMirror.defineMIME("text/x-less", {
682
+ mediaTypes: mediaTypes,
683
+ mediaFeatures: mediaFeatures,
684
+ propertyKeywords: propertyKeywords,
685
+ nonStandardPropertyKeywords: nonStandardPropertyKeywords,
686
+ colorKeywords: colorKeywords,
687
+ valueKeywords: valueKeywords,
688
+ fontProperties: fontProperties,
689
+ allowNested: true,
690
+ tokenHooks: {
691
+ "/": function(stream, state) {
692
+ if (stream.eat("/")) {
693
+ stream.skipToEnd();
694
+ return ["comment", "comment"];
695
+ } else if (stream.eat("*")) {
696
+ state.tokenize = tokenCComment;
697
+ return tokenCComment(stream, state);
698
+ } else {
699
+ return ["operator", "operator"];
700
+ }
701
+ },
702
+ "@": function(stream) {
703
+ if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, false)) return false;
704
+ stream.eatWhile(/[\w\\\-]/);
705
+ if (stream.match(/^\s*:/, false))
706
+ return ["variable-2", "variable-definition"];
707
+ return ["variable-2", "variable"];
708
+ },
709
+ "&": function() {
710
+ return ["atom", "atom"];
711
+ }
712
+ },
713
+ name: "css",
714
+ helperType: "less"
715
+ });
716
+
717
+ });