fluentd-ui 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd-ui might be problematic. Click here for more details.

Files changed (287) hide show
  1. data/ChangeLog +9 -0
  2. data/Gemfile.lock +47 -44
  3. data/README.md +4 -4
  4. data/app/assets/javascripts/vue/in_tail_format.js +7 -2
  5. data/app/assets/stylesheets/common.css.scss +16 -0
  6. data/app/controllers/concerns/setting_history_concern.rb +6 -0
  7. data/app/controllers/fluentd/settings_controller.rb +37 -8
  8. data/app/models/fluent_gem.rb +6 -3
  9. data/app/models/fluentd/agent.rb +1 -0
  10. data/app/models/fluentd/agent/common.rb +4 -0
  11. data/app/models/fluentd/agent/fluentd_gem.rb +9 -13
  12. data/app/models/fluentd/agent/local_common.rb +23 -0
  13. data/app/models/fluentd/agent/td_agent.rb +4 -0
  14. data/app/models/fluentd/agent/td_agent/macosx.rb +0 -4
  15. data/app/models/fluentd/agent/td_agent/unix.rb +0 -4
  16. data/app/views/fluentd/settings/edit.html.haml +1 -3
  17. data/app/views/fluentd/settings/histories/show.html.haml +10 -0
  18. data/app/views/fluentd/settings/running_backup/show.html.haml +11 -0
  19. data/app/views/shared/settings/_diff.html.erb +21 -0
  20. data/circle.yml +5 -0
  21. data/config/application.rb +1 -0
  22. data/config/locales/translation_en.yml +7 -0
  23. data/config/locales/translation_ja.yml +7 -0
  24. data/fluentd-ui.gemspec +1 -0
  25. data/lib/fluentd-ui.rb +5 -1
  26. data/lib/fluentd-ui/version.rb +1 -1
  27. data/spec/features/fluentd/setting/histories_spec.rb +23 -1
  28. data/spec/features/fluentd/setting/running_backup_spec.rb +22 -1
  29. data/spec/models/fluentd/agent/local_common_spec.rb +4 -2
  30. data/spec/models/fluentd/agent_spec.rb +1 -48
  31. data/spec/models/plugin_spec.rb +2 -2
  32. data/spec/spec_helper.rb +10 -0
  33. data/spec/support/fluentd_agent_common_behavior.rb +53 -0
  34. data/vendor/assets/javascripts/bower/.gitignore +10 -0
  35. data/vendor/assets/javascripts/bower/vue/.bower.json +4 -4
  36. data/vendor/assets/javascripts/bower/vue/bower.json +17 -0
  37. data/vendor/assets/javascripts/bower/vue/dist/vue.js +329 -198
  38. data/vendor/assets/javascripts/bower/vue/dist/vue.min.js +3 -3
  39. metadata +107 -291
  40. checksums.yaml +0 -7
  41. data/vendor/assets/javascripts/bower/codemirror/AUTHORS +0 -423
  42. data/vendor/assets/javascripts/bower/codemirror/CONTRIBUTING.md +0 -76
  43. data/vendor/assets/javascripts/bower/codemirror/LICENSE +0 -19
  44. data/vendor/assets/javascripts/bower/codemirror/README.md +0 -11
  45. data/vendor/assets/javascripts/bower/codemirror/addon/comment/comment.js +0 -183
  46. data/vendor/assets/javascripts/bower/codemirror/addon/comment/continuecomment.js +0 -85
  47. data/vendor/assets/javascripts/bower/codemirror/addon/dialog/dialog.css +0 -32
  48. data/vendor/assets/javascripts/bower/codemirror/addon/dialog/dialog.js +0 -155
  49. data/vendor/assets/javascripts/bower/codemirror/addon/display/fullscreen.css +0 -6
  50. data/vendor/assets/javascripts/bower/codemirror/addon/display/fullscreen.js +0 -41
  51. data/vendor/assets/javascripts/bower/codemirror/addon/display/panel.js +0 -94
  52. data/vendor/assets/javascripts/bower/codemirror/addon/display/placeholder.js +0 -58
  53. data/vendor/assets/javascripts/bower/codemirror/addon/display/rulers.js +0 -64
  54. data/vendor/assets/javascripts/bower/codemirror/addon/edit/closebrackets.js +0 -159
  55. data/vendor/assets/javascripts/bower/codemirror/addon/edit/closetag.js +0 -159
  56. data/vendor/assets/javascripts/bower/codemirror/addon/edit/continuelist.js +0 -51
  57. data/vendor/assets/javascripts/bower/codemirror/addon/edit/matchbrackets.js +0 -120
  58. data/vendor/assets/javascripts/bower/codemirror/addon/edit/matchtags.js +0 -66
  59. data/vendor/assets/javascripts/bower/codemirror/addon/edit/trailingspace.js +0 -27
  60. data/vendor/assets/javascripts/bower/codemirror/addon/fold/brace-fold.js +0 -105
  61. data/vendor/assets/javascripts/bower/codemirror/addon/fold/comment-fold.js +0 -57
  62. data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldcode.js +0 -145
  63. data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldgutter.css +0 -20
  64. data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldgutter.js +0 -134
  65. data/vendor/assets/javascripts/bower/codemirror/addon/fold/indent-fold.js +0 -44
  66. data/vendor/assets/javascripts/bower/codemirror/addon/fold/markdown-fold.js +0 -49
  67. data/vendor/assets/javascripts/bower/codemirror/addon/fold/xml-fold.js +0 -182
  68. data/vendor/assets/javascripts/bower/codemirror/addon/hint/anyword-hint.js +0 -41
  69. data/vendor/assets/javascripts/bower/codemirror/addon/hint/css-hint.js +0 -56
  70. data/vendor/assets/javascripts/bower/codemirror/addon/hint/html-hint.js +0 -348
  71. data/vendor/assets/javascripts/bower/codemirror/addon/hint/javascript-hint.js +0 -146
  72. data/vendor/assets/javascripts/bower/codemirror/addon/hint/show-hint.css +0 -38
  73. data/vendor/assets/javascripts/bower/codemirror/addon/hint/show-hint.js +0 -389
  74. data/vendor/assets/javascripts/bower/codemirror/addon/hint/sql-hint.js +0 -197
  75. data/vendor/assets/javascripts/bower/codemirror/addon/hint/xml-hint.js +0 -110
  76. data/vendor/assets/javascripts/bower/codemirror/addon/lint/coffeescript-lint.js +0 -41
  77. data/vendor/assets/javascripts/bower/codemirror/addon/lint/css-lint.js +0 -35
  78. data/vendor/assets/javascripts/bower/codemirror/addon/lint/javascript-lint.js +0 -136
  79. data/vendor/assets/javascripts/bower/codemirror/addon/lint/json-lint.js +0 -31
  80. data/vendor/assets/javascripts/bower/codemirror/addon/lint/lint.css +0 -73
  81. data/vendor/assets/javascripts/bower/codemirror/addon/lint/lint.js +0 -204
  82. data/vendor/assets/javascripts/bower/codemirror/addon/lint/yaml-lint.js +0 -28
  83. data/vendor/assets/javascripts/bower/codemirror/addon/merge/merge.css +0 -112
  84. data/vendor/assets/javascripts/bower/codemirror/addon/merge/merge.js +0 -643
  85. data/vendor/assets/javascripts/bower/codemirror/addon/mode/loadmode.js +0 -64
  86. data/vendor/assets/javascripts/bower/codemirror/addon/mode/multiplex.js +0 -118
  87. data/vendor/assets/javascripts/bower/codemirror/addon/mode/multiplex_test.js +0 -33
  88. data/vendor/assets/javascripts/bower/codemirror/addon/mode/overlay.js +0 -85
  89. data/vendor/assets/javascripts/bower/codemirror/addon/mode/simple.js +0 -213
  90. data/vendor/assets/javascripts/bower/codemirror/addon/runmode/colorize.js +0 -40
  91. data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode-standalone.js +0 -157
  92. data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode.js +0 -72
  93. data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode.node.js +0 -120
  94. data/vendor/assets/javascripts/bower/codemirror/addon/scroll/annotatescrollbar.js +0 -76
  95. data/vendor/assets/javascripts/bower/codemirror/addon/scroll/scrollpastend.js +0 -46
  96. data/vendor/assets/javascripts/bower/codemirror/addon/scroll/simplescrollbars.css +0 -66
  97. data/vendor/assets/javascripts/bower/codemirror/addon/scroll/simplescrollbars.js +0 -139
  98. data/vendor/assets/javascripts/bower/codemirror/addon/search/match-highlighter.js +0 -128
  99. data/vendor/assets/javascripts/bower/codemirror/addon/search/matchesonscrollbar.css +0 -8
  100. data/vendor/assets/javascripts/bower/codemirror/addon/search/matchesonscrollbar.js +0 -90
  101. data/vendor/assets/javascripts/bower/codemirror/addon/search/search.js +0 -164
  102. data/vendor/assets/javascripts/bower/codemirror/addon/search/searchcursor.js +0 -189
  103. data/vendor/assets/javascripts/bower/codemirror/addon/selection/active-line.js +0 -71
  104. data/vendor/assets/javascripts/bower/codemirror/addon/selection/mark-selection.js +0 -118
  105. data/vendor/assets/javascripts/bower/codemirror/addon/tern/tern.css +0 -86
  106. data/vendor/assets/javascripts/bower/codemirror/addon/tern/tern.js +0 -670
  107. data/vendor/assets/javascripts/bower/codemirror/addon/tern/worker.js +0 -44
  108. data/vendor/assets/javascripts/bower/codemirror/addon/wrap/hardwrap.js +0 -139
  109. data/vendor/assets/javascripts/bower/codemirror/keymap/emacs.js +0 -411
  110. data/vendor/assets/javascripts/bower/codemirror/keymap/sublime.js +0 -540
  111. data/vendor/assets/javascripts/bower/codemirror/keymap/vim.js +0 -4901
  112. data/vendor/assets/javascripts/bower/codemirror/mode/apl/apl.js +0 -175
  113. data/vendor/assets/javascripts/bower/codemirror/mode/asterisk/asterisk.js +0 -198
  114. data/vendor/assets/javascripts/bower/codemirror/mode/clike/clike.js +0 -489
  115. data/vendor/assets/javascripts/bower/codemirror/mode/clike/scala.html +0 -767
  116. data/vendor/assets/javascripts/bower/codemirror/mode/clojure/clojure.js +0 -243
  117. data/vendor/assets/javascripts/bower/codemirror/mode/cobol/cobol.js +0 -255
  118. data/vendor/assets/javascripts/bower/codemirror/mode/coffeescript/coffeescript.js +0 -369
  119. data/vendor/assets/javascripts/bower/codemirror/mode/commonlisp/commonlisp.js +0 -122
  120. data/vendor/assets/javascripts/bower/codemirror/mode/css/css.js +0 -717
  121. data/vendor/assets/javascripts/bower/codemirror/mode/css/less.html +0 -152
  122. data/vendor/assets/javascripts/bower/codemirror/mode/css/less_test.js +0 -51
  123. data/vendor/assets/javascripts/bower/codemirror/mode/css/scss.html +0 -157
  124. data/vendor/assets/javascripts/bower/codemirror/mode/css/scss_test.js +0 -110
  125. data/vendor/assets/javascripts/bower/codemirror/mode/css/test.js +0 -135
  126. data/vendor/assets/javascripts/bower/codemirror/mode/cypher/cypher.js +0 -146
  127. data/vendor/assets/javascripts/bower/codemirror/mode/d/d.js +0 -218
  128. data/vendor/assets/javascripts/bower/codemirror/mode/dart/dart.js +0 -50
  129. data/vendor/assets/javascripts/bower/codemirror/mode/diff/diff.js +0 -47
  130. data/vendor/assets/javascripts/bower/codemirror/mode/django/django.js +0 -67
  131. data/vendor/assets/javascripts/bower/codemirror/mode/dockerfile/dockerfile.js +0 -76
  132. data/vendor/assets/javascripts/bower/codemirror/mode/dtd/dtd.js +0 -142
  133. data/vendor/assets/javascripts/bower/codemirror/mode/dylan/dylan.js +0 -299
  134. data/vendor/assets/javascripts/bower/codemirror/mode/ebnf/ebnf.js +0 -195
  135. data/vendor/assets/javascripts/bower/codemirror/mode/ecl/ecl.js +0 -207
  136. data/vendor/assets/javascripts/bower/codemirror/mode/eiffel/eiffel.js +0 -162
  137. data/vendor/assets/javascripts/bower/codemirror/mode/erlang/erlang.js +0 -622
  138. data/vendor/assets/javascripts/bower/codemirror/mode/fortran/fortran.js +0 -188
  139. data/vendor/assets/javascripts/bower/codemirror/mode/gas/gas.js +0 -345
  140. data/vendor/assets/javascripts/bower/codemirror/mode/gfm/gfm.js +0 -123
  141. data/vendor/assets/javascripts/bower/codemirror/mode/gfm/test.js +0 -213
  142. data/vendor/assets/javascripts/bower/codemirror/mode/gherkin/gherkin.js +0 -178
  143. data/vendor/assets/javascripts/bower/codemirror/mode/go/go.js +0 -184
  144. data/vendor/assets/javascripts/bower/codemirror/mode/groovy/groovy.js +0 -226
  145. data/vendor/assets/javascripts/bower/codemirror/mode/haml/haml.js +0 -159
  146. data/vendor/assets/javascripts/bower/codemirror/mode/haml/test.js +0 -97
  147. data/vendor/assets/javascripts/bower/codemirror/mode/haskell/haskell.js +0 -267
  148. data/vendor/assets/javascripts/bower/codemirror/mode/haxe/haxe.js +0 -518
  149. data/vendor/assets/javascripts/bower/codemirror/mode/htmlembedded/htmlembedded.js +0 -86
  150. data/vendor/assets/javascripts/bower/codemirror/mode/htmlmixed/htmlmixed.js +0 -121
  151. data/vendor/assets/javascripts/bower/codemirror/mode/http/http.js +0 -113
  152. data/vendor/assets/javascripts/bower/codemirror/mode/idl/idl.js +0 -290
  153. data/vendor/assets/javascripts/bower/codemirror/mode/jade/jade.js +0 -590
  154. data/vendor/assets/javascripts/bower/codemirror/mode/javascript/javascript.js +0 -686
  155. data/vendor/assets/javascripts/bower/codemirror/mode/javascript/json-ld.html +0 -72
  156. data/vendor/assets/javascripts/bower/codemirror/mode/javascript/test.js +0 -200
  157. data/vendor/assets/javascripts/bower/codemirror/mode/javascript/typescript.html +0 -61
  158. data/vendor/assets/javascripts/bower/codemirror/mode/jinja2/jinja2.js +0 -142
  159. data/vendor/assets/javascripts/bower/codemirror/mode/julia/julia.js +0 -301
  160. data/vendor/assets/javascripts/bower/codemirror/mode/kotlin/kotlin.js +0 -280
  161. data/vendor/assets/javascripts/bower/codemirror/mode/livescript/livescript.js +0 -280
  162. data/vendor/assets/javascripts/bower/codemirror/mode/lua/lua.js +0 -159
  163. data/vendor/assets/javascripts/bower/codemirror/mode/markdown/markdown.js +0 -765
  164. data/vendor/assets/javascripts/bower/codemirror/mode/markdown/test.js +0 -754
  165. data/vendor/assets/javascripts/bower/codemirror/mode/meta.js +0 -165
  166. data/vendor/assets/javascripts/bower/codemirror/mode/mirc/mirc.js +0 -193
  167. data/vendor/assets/javascripts/bower/codemirror/mode/mllike/mllike.js +0 -205
  168. data/vendor/assets/javascripts/bower/codemirror/mode/modelica/modelica.js +0 -245
  169. data/vendor/assets/javascripts/bower/codemirror/mode/nginx/nginx.js +0 -178
  170. data/vendor/assets/javascripts/bower/codemirror/mode/ntriples/ntriples.js +0 -186
  171. data/vendor/assets/javascripts/bower/codemirror/mode/octave/octave.js +0 -135
  172. data/vendor/assets/javascripts/bower/codemirror/mode/pascal/pascal.js +0 -109
  173. data/vendor/assets/javascripts/bower/codemirror/mode/pegjs/pegjs.js +0 -114
  174. data/vendor/assets/javascripts/bower/codemirror/mode/perl/perl.js +0 -832
  175. data/vendor/assets/javascripts/bower/codemirror/mode/php/php.js +0 -226
  176. data/vendor/assets/javascripts/bower/codemirror/mode/php/test.js +0 -154
  177. data/vendor/assets/javascripts/bower/codemirror/mode/pig/pig.js +0 -188
  178. data/vendor/assets/javascripts/bower/codemirror/mode/properties/properties.js +0 -78
  179. data/vendor/assets/javascripts/bower/codemirror/mode/puppet/puppet.js +0 -220
  180. data/vendor/assets/javascripts/bower/codemirror/mode/python/python.js +0 -359
  181. data/vendor/assets/javascripts/bower/codemirror/mode/q/q.js +0 -139
  182. data/vendor/assets/javascripts/bower/codemirror/mode/r/r.js +0 -162
  183. data/vendor/assets/javascripts/bower/codemirror/mode/rpm/rpm.js +0 -101
  184. data/vendor/assets/javascripts/bower/codemirror/mode/rst/rst.js +0 -557
  185. data/vendor/assets/javascripts/bower/codemirror/mode/ruby/ruby.js +0 -285
  186. data/vendor/assets/javascripts/bower/codemirror/mode/ruby/test.js +0 -14
  187. data/vendor/assets/javascripts/bower/codemirror/mode/rust/rust.js +0 -451
  188. data/vendor/assets/javascripts/bower/codemirror/mode/sass/sass.js +0 -327
  189. data/vendor/assets/javascripts/bower/codemirror/mode/scheme/scheme.js +0 -248
  190. data/vendor/assets/javascripts/bower/codemirror/mode/shell/shell.js +0 -139
  191. data/vendor/assets/javascripts/bower/codemirror/mode/shell/test.js +0 -58
  192. data/vendor/assets/javascripts/bower/codemirror/mode/sieve/sieve.js +0 -193
  193. data/vendor/assets/javascripts/bower/codemirror/mode/slim/slim.js +0 -575
  194. data/vendor/assets/javascripts/bower/codemirror/mode/slim/test.js +0 -96
  195. data/vendor/assets/javascripts/bower/codemirror/mode/smalltalk/smalltalk.js +0 -168
  196. data/vendor/assets/javascripts/bower/codemirror/mode/smarty/smarty.js +0 -221
  197. data/vendor/assets/javascripts/bower/codemirror/mode/smartymixed/smartymixed.js +0 -197
  198. data/vendor/assets/javascripts/bower/codemirror/mode/solr/solr.js +0 -104
  199. data/vendor/assets/javascripts/bower/codemirror/mode/soy/soy.js +0 -198
  200. data/vendor/assets/javascripts/bower/codemirror/mode/sparql/sparql.js +0 -174
  201. data/vendor/assets/javascripts/bower/codemirror/mode/spreadsheet/spreadsheet.js +0 -109
  202. data/vendor/assets/javascripts/bower/codemirror/mode/sql/sql.js +0 -391
  203. data/vendor/assets/javascripts/bower/codemirror/mode/stex/stex.js +0 -251
  204. data/vendor/assets/javascripts/bower/codemirror/mode/stex/test.js +0 -123
  205. data/vendor/assets/javascripts/bower/codemirror/mode/tcl/tcl.js +0 -147
  206. data/vendor/assets/javascripts/bower/codemirror/mode/textile/test.js +0 -417
  207. data/vendor/assets/javascripts/bower/codemirror/mode/textile/textile.js +0 -469
  208. data/vendor/assets/javascripts/bower/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
  209. data/vendor/assets/javascripts/bower/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -369
  210. data/vendor/assets/javascripts/bower/codemirror/mode/tiki/tiki.css +0 -26
  211. data/vendor/assets/javascripts/bower/codemirror/mode/tiki/tiki.js +0 -323
  212. data/vendor/assets/javascripts/bower/codemirror/mode/toml/toml.js +0 -88
  213. data/vendor/assets/javascripts/bower/codemirror/mode/tornado/tornado.js +0 -68
  214. data/vendor/assets/javascripts/bower/codemirror/mode/turtle/turtle.js +0 -162
  215. data/vendor/assets/javascripts/bower/codemirror/mode/vb/vb.js +0 -274
  216. data/vendor/assets/javascripts/bower/codemirror/mode/vbscript/vbscript.js +0 -350
  217. data/vendor/assets/javascripts/bower/codemirror/mode/velocity/velocity.js +0 -201
  218. data/vendor/assets/javascripts/bower/codemirror/mode/verilog/test.js +0 -273
  219. data/vendor/assets/javascripts/bower/codemirror/mode/verilog/verilog.js +0 -364
  220. data/vendor/assets/javascripts/bower/codemirror/mode/xml/test.js +0 -51
  221. data/vendor/assets/javascripts/bower/codemirror/mode/xml/xml.js +0 -384
  222. data/vendor/assets/javascripts/bower/codemirror/mode/xquery/test.js +0 -67
  223. data/vendor/assets/javascripts/bower/codemirror/mode/xquery/xquery.js +0 -447
  224. data/vendor/assets/javascripts/bower/codemirror/mode/yaml/yaml.js +0 -117
  225. data/vendor/assets/javascripts/bower/codemirror/mode/z80/z80.js +0 -100
  226. data/vendor/assets/javascripts/bower/vue/LICENSE +0 -21
  227. data/vendor/assets/javascripts/bower/vue/src/api/child.js +0 -53
  228. data/vendor/assets/javascripts/bower/vue/src/api/data.js +0 -161
  229. data/vendor/assets/javascripts/bower/vue/src/api/dom.js +0 -211
  230. data/vendor/assets/javascripts/bower/vue/src/api/events.js +0 -176
  231. data/vendor/assets/javascripts/bower/vue/src/api/global.js +0 -146
  232. data/vendor/assets/javascripts/bower/vue/src/api/lifecycle.js +0 -72
  233. data/vendor/assets/javascripts/bower/vue/src/batcher.js +0 -65
  234. data/vendor/assets/javascripts/bower/vue/src/cache.js +0 -112
  235. data/vendor/assets/javascripts/bower/vue/src/compiler/compile.js +0 -549
  236. data/vendor/assets/javascripts/bower/vue/src/compiler/transclude.js +0 -146
  237. data/vendor/assets/javascripts/bower/vue/src/config.js +0 -79
  238. data/vendor/assets/javascripts/bower/vue/src/directive.js +0 -219
  239. data/vendor/assets/javascripts/bower/vue/src/directives/attr.js +0 -32
  240. data/vendor/assets/javascripts/bower/vue/src/directives/class.js +0 -18
  241. data/vendor/assets/javascripts/bower/vue/src/directives/cloak.js +0 -12
  242. data/vendor/assets/javascripts/bower/vue/src/directives/component.js +0 -196
  243. data/vendor/assets/javascripts/bower/vue/src/directives/el.js +0 -13
  244. data/vendor/assets/javascripts/bower/vue/src/directives/html.js +0 -38
  245. data/vendor/assets/javascripts/bower/vue/src/directives/if.js +0 -87
  246. data/vendor/assets/javascripts/bower/vue/src/directives/index.js +0 -22
  247. data/vendor/assets/javascripts/bower/vue/src/directives/model/checkbox.js +0 -25
  248. data/vendor/assets/javascripts/bower/vue/src/directives/model/default.js +0 -123
  249. data/vendor/assets/javascripts/bower/vue/src/directives/model/index.js +0 -56
  250. data/vendor/assets/javascripts/bower/vue/src/directives/model/radio.js +0 -26
  251. data/vendor/assets/javascripts/bower/vue/src/directives/model/select.js +0 -166
  252. data/vendor/assets/javascripts/bower/vue/src/directives/on.js +0 -59
  253. data/vendor/assets/javascripts/bower/vue/src/directives/partial.js +0 -44
  254. data/vendor/assets/javascripts/bower/vue/src/directives/ref.js +0 -24
  255. data/vendor/assets/javascripts/bower/vue/src/directives/repeat.js +0 -503
  256. data/vendor/assets/javascripts/bower/vue/src/directives/show.js +0 -8
  257. data/vendor/assets/javascripts/bower/vue/src/directives/style.js +0 -58
  258. data/vendor/assets/javascripts/bower/vue/src/directives/text.js +0 -15
  259. data/vendor/assets/javascripts/bower/vue/src/directives/transition.js +0 -12
  260. data/vendor/assets/javascripts/bower/vue/src/directives/with.js +0 -47
  261. data/vendor/assets/javascripts/bower/vue/src/filters/array-filters.js +0 -87
  262. data/vendor/assets/javascripts/bower/vue/src/filters/index.js +0 -135
  263. data/vendor/assets/javascripts/bower/vue/src/instance/compile.js +0 -179
  264. data/vendor/assets/javascripts/bower/vue/src/instance/events.js +0 -122
  265. data/vendor/assets/javascripts/bower/vue/src/instance/init.js +0 -76
  266. data/vendor/assets/javascripts/bower/vue/src/instance/scope.js +0 -217
  267. data/vendor/assets/javascripts/bower/vue/src/observer/array.js +0 -90
  268. data/vendor/assets/javascripts/bower/vue/src/observer/dep.js +0 -50
  269. data/vendor/assets/javascripts/bower/vue/src/observer/index.js +0 -235
  270. data/vendor/assets/javascripts/bower/vue/src/observer/object.js +0 -66
  271. data/vendor/assets/javascripts/bower/vue/src/parsers/directive.js +0 -159
  272. data/vendor/assets/javascripts/bower/vue/src/parsers/expression.js +0 -226
  273. data/vendor/assets/javascripts/bower/vue/src/parsers/path.js +0 -300
  274. data/vendor/assets/javascripts/bower/vue/src/parsers/template.js +0 -248
  275. data/vendor/assets/javascripts/bower/vue/src/parsers/text.js +0 -178
  276. data/vendor/assets/javascripts/bower/vue/src/transition/css.js +0 -189
  277. data/vendor/assets/javascripts/bower/vue/src/transition/index.js +0 -151
  278. data/vendor/assets/javascripts/bower/vue/src/transition/js.js +0 -43
  279. data/vendor/assets/javascripts/bower/vue/src/util/debug.js +0 -50
  280. data/vendor/assets/javascripts/bower/vue/src/util/dom.js +0 -197
  281. data/vendor/assets/javascripts/bower/vue/src/util/env.js +0 -74
  282. data/vendor/assets/javascripts/bower/vue/src/util/filter.js +0 -72
  283. data/vendor/assets/javascripts/bower/vue/src/util/index.js +0 -8
  284. data/vendor/assets/javascripts/bower/vue/src/util/lang.js +0 -175
  285. data/vendor/assets/javascripts/bower/vue/src/util/merge-option.js +0 -255
  286. data/vendor/assets/javascripts/bower/vue/src/vue.js +0 -84
  287. data/vendor/assets/javascripts/bower/vue/src/watcher.js +0 -240
@@ -1,86 +0,0 @@
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
- });
@@ -1,121 +0,0 @@
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 null;
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 null;
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
- });
@@ -1,113 +0,0 @@
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
- });
@@ -1,290 +0,0 @@
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
- function wordRegexp(words) {
15
- return new RegExp('^((' + words.join(')|(') + '))\\b', 'i');
16
- };
17
-
18
- var builtinArray = [
19
- 'a_correlate', 'abs', 'acos', 'adapt_hist_equal', 'alog',
20
- 'alog2', 'alog10', 'amoeba', 'annotate', 'app_user_dir',
21
- 'app_user_dir_query', 'arg_present', 'array_equal', 'array_indices',
22
- 'arrow', 'ascii_template', 'asin', 'assoc', 'atan',
23
- 'axis', 'axis', 'bandpass_filter', 'bandreject_filter', 'barplot',
24
- 'bar_plot', 'beseli', 'beselj', 'beselk', 'besely',
25
- 'beta', 'biginteger', 'bilinear', 'bin_date', 'binary_template',
26
- 'bindgen', 'binomial', 'bit_ffs', 'bit_population', 'blas_axpy',
27
- 'blk_con', 'boolarr', 'boolean', 'boxplot', 'box_cursor',
28
- 'breakpoint', 'broyden', 'bubbleplot', 'butterworth', 'bytarr',
29
- 'byte', 'byteorder', 'bytscl', 'c_correlate', 'calendar',
30
- 'caldat', 'call_external', 'call_function', 'call_method',
31
- 'call_procedure', 'canny', 'catch', 'cd', 'cdf', 'ceil',
32
- 'chebyshev', 'check_math', 'chisqr_cvf', 'chisqr_pdf', 'choldc',
33
- 'cholsol', 'cindgen', 'cir_3pnt', 'clipboard', 'close',
34
- 'clust_wts', 'cluster', 'cluster_tree', 'cmyk_convert', 'code_coverage',
35
- 'color_convert', 'color_exchange', 'color_quan', 'color_range_map',
36
- 'colorbar', 'colorize_sample', 'colormap_applicable',
37
- 'colormap_gradient', 'colormap_rotation', 'colortable',
38
- 'comfit', 'command_line_args', 'common', 'compile_opt', 'complex',
39
- 'complexarr', 'complexround', 'compute_mesh_normals', 'cond', 'congrid',
40
- 'conj', 'constrained_min', 'contour', 'contour', 'convert_coord',
41
- 'convol', 'convol_fft', 'coord2to3', 'copy_lun', 'correlate',
42
- 'cos', 'cosh', 'cpu', 'cramer', 'createboxplotdata',
43
- 'create_cursor', 'create_struct', 'create_view', 'crossp', 'crvlength',
44
- 'ct_luminance', 'cti_test', 'cursor', 'curvefit', 'cv_coord',
45
- 'cvttobm', 'cw_animate', 'cw_animate_getp', 'cw_animate_load',
46
- 'cw_animate_run', 'cw_arcball', 'cw_bgroup', 'cw_clr_index',
47
- 'cw_colorsel', 'cw_defroi', 'cw_field', 'cw_filesel', 'cw_form',
48
- 'cw_fslider', 'cw_light_editor', 'cw_light_editor_get',
49
- 'cw_light_editor_set', 'cw_orient', 'cw_palette_editor',
50
- 'cw_palette_editor_get', 'cw_palette_editor_set', 'cw_pdmenu',
51
- 'cw_rgbslider', 'cw_tmpl', 'cw_zoom', 'db_exists',
52
- 'dblarr', 'dcindgen', 'dcomplex', 'dcomplexarr', 'define_key',
53
- 'define_msgblk', 'define_msgblk_from_file', 'defroi', 'defsysv',
54
- 'delvar', 'dendro_plot', 'dendrogram', 'deriv', 'derivsig',
55
- 'determ', 'device', 'dfpmin', 'diag_matrix', 'dialog_dbconnect',
56
- 'dialog_message', 'dialog_pickfile', 'dialog_printersetup',
57
- 'dialog_printjob', 'dialog_read_image',
58
- 'dialog_write_image', 'dictionary', 'digital_filter', 'dilate', 'dindgen',
59
- 'dissolve', 'dist', 'distance_measure', 'dlm_load', 'dlm_register',
60
- 'doc_library', 'double', 'draw_roi', 'edge_dog', 'efont',
61
- 'eigenql', 'eigenvec', 'ellipse', 'elmhes', 'emboss',
62
- 'empty', 'enable_sysrtn', 'eof', 'eos', 'erase',
63
- 'erf', 'erfc', 'erfcx', 'erode', 'errorplot',
64
- 'errplot', 'estimator_filter', 'execute', 'exit', 'exp',
65
- 'expand', 'expand_path', 'expint', 'extrac', 'extract_slice',
66
- 'f_cvf', 'f_pdf', 'factorial', 'fft', 'file_basename',
67
- 'file_chmod', 'file_copy', 'file_delete', 'file_dirname',
68
- 'file_expand_path', 'file_gunzip', 'file_gzip', 'file_info',
69
- 'file_lines', 'file_link', 'file_mkdir', 'file_move',
70
- 'file_poll_input', 'file_readlink', 'file_same',
71
- 'file_search', 'file_tar', 'file_test', 'file_untar', 'file_unzip',
72
- 'file_which', 'file_zip', 'filepath', 'findgen', 'finite',
73
- 'fix', 'flick', 'float', 'floor', 'flow3',
74
- 'fltarr', 'flush', 'format_axis_values', 'forward_function', 'free_lun',
75
- 'fstat', 'fulstr', 'funct', 'function', 'fv_test',
76
- 'fx_root', 'fz_roots', 'gamma', 'gamma_ct', 'gauss_cvf',
77
- 'gauss_pdf', 'gauss_smooth', 'gauss2dfit', 'gaussfit',
78
- 'gaussian_function', 'gaussint', 'get_drive_list', 'get_dxf_objects',
79
- 'get_kbrd', 'get_login_info',
80
- 'get_lun', 'get_screen_size', 'getenv', 'getwindows', 'greg2jul',
81
- 'grib', 'grid_input', 'grid_tps', 'grid3', 'griddata',
82
- 'gs_iter', 'h_eq_ct', 'h_eq_int', 'hanning', 'hash',
83
- 'hdf', 'hdf5', 'heap_free', 'heap_gc', 'heap_nosave',
84
- 'heap_refcount', 'heap_save', 'help', 'hilbert', 'hist_2d',
85
- 'hist_equal', 'histogram', 'hls', 'hough', 'hqr',
86
- 'hsv', 'i18n_multibytetoutf8',
87
- 'i18n_multibytetowidechar', 'i18n_utf8tomultibyte',
88
- 'i18n_widechartomultibyte',
89
- 'ibeta', 'icontour', 'iconvertcoord', 'idelete', 'identity',
90
- 'idl_base64', 'idl_container', 'idl_validname',
91
- 'idlexbr_assistant', 'idlitsys_createtool',
92
- 'idlunit', 'iellipse', 'igamma', 'igetcurrent', 'igetdata',
93
- 'igetid', 'igetproperty', 'iimage', 'image', 'image_cont',
94
- 'image_statistics', 'image_threshold', 'imaginary', 'imap', 'indgen',
95
- 'int_2d', 'int_3d', 'int_tabulated', 'intarr', 'interpol',
96
- 'interpolate', 'interval_volume', 'invert', 'ioctl', 'iopen',
97
- 'ir_filter', 'iplot', 'ipolygon', 'ipolyline', 'iputdata',
98
- 'iregister', 'ireset', 'iresolve', 'irotate', 'isa',
99
- 'isave', 'iscale', 'isetcurrent', 'isetproperty', 'ishft',
100
- 'isocontour', 'isosurface', 'isurface', 'itext', 'itranslate',
101
- 'ivector', 'ivolume', 'izoom', 'journal', 'json_parse',
102
- 'json_serialize', 'jul2greg', 'julday', 'keyword_set', 'krig2d',
103
- 'kurtosis', 'kw_test', 'l64indgen', 'la_choldc', 'la_cholmprove',
104
- 'la_cholsol', 'la_determ', 'la_eigenproblem', 'la_eigenql', 'la_eigenvec',
105
- 'la_elmhes', 'la_gm_linear_model', 'la_hqr', 'la_invert',
106
- 'la_least_square_equality', 'la_least_squares', 'la_linear_equation',
107
- 'la_ludc', 'la_lumprove', 'la_lusol',
108
- 'la_svd', 'la_tridc', 'la_trimprove', 'la_triql', 'la_trired',
109
- 'la_trisol', 'label_date', 'label_region', 'ladfit', 'laguerre',
110
- 'lambda', 'lambdap', 'lambertw', 'laplacian', 'least_squares_filter',
111
- 'leefilt', 'legend', 'legendre', 'linbcg', 'lindgen',
112
- 'linfit', 'linkimage', 'list', 'll_arc_distance', 'lmfit',
113
- 'lmgr', 'lngamma', 'lnp_test', 'loadct', 'locale_get',
114
- 'logical_and', 'logical_or', 'logical_true', 'lon64arr', 'lonarr',
115
- 'long', 'long64', 'lsode', 'lu_complex', 'ludc',
116
- 'lumprove', 'lusol', 'm_correlate', 'machar', 'make_array',
117
- 'make_dll', 'make_rt', 'map', 'mapcontinents', 'mapgrid',
118
- 'map_2points', 'map_continents', 'map_grid', 'map_image', 'map_patch',
119
- 'map_proj_forward', 'map_proj_image', 'map_proj_info',
120
- 'map_proj_init', 'map_proj_inverse',
121
- 'map_set', 'matrix_multiply', 'matrix_power', 'max', 'md_test',
122
- 'mean', 'meanabsdev', 'mean_filter', 'median', 'memory',
123
- 'mesh_clip', 'mesh_decimate', 'mesh_issolid',
124
- 'mesh_merge', 'mesh_numtriangles',
125
- 'mesh_obj', 'mesh_smooth', 'mesh_surfacearea',
126
- 'mesh_validate', 'mesh_volume',
127
- 'message', 'min', 'min_curve_surf', 'mk_html_help', 'modifyct',
128
- 'moment', 'morph_close', 'morph_distance',
129
- 'morph_gradient', 'morph_hitormiss',
130
- 'morph_open', 'morph_thin', 'morph_tophat', 'multi', 'n_elements',
131
- 'n_params', 'n_tags', 'ncdf', 'newton', 'noise_hurl',
132
- 'noise_pick', 'noise_scatter', 'noise_slur', 'norm', 'obj_class',
133
- 'obj_destroy', 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid',
134
- 'objarr', 'on_error', 'on_ioerror', 'online_help', 'openr',
135
- 'openu', 'openw', 'oplot', 'oploterr', 'orderedhash',
136
- 'p_correlate', 'parse_url', 'particle_trace', 'path_cache', 'path_sep',
137
- 'pcomp', 'plot', 'plot3d', 'plot', 'plot_3dbox',
138
- 'plot_field', 'ploterr', 'plots', 'polar_contour', 'polar_surface',
139
- 'polyfill', 'polyshade', 'pnt_line', 'point_lun', 'polarplot',
140
- 'poly', 'poly_2d', 'poly_area', 'poly_fit', 'polyfillv',
141
- 'polygon', 'polyline', 'polywarp', 'popd', 'powell',
142
- 'pref_commit', 'pref_get', 'pref_set', 'prewitt', 'primes',
143
- 'print', 'printf', 'printd', 'pro', 'product',
144
- 'profile', 'profiler', 'profiles', 'project_vol', 'ps_show_fonts',
145
- 'psafm', 'pseudo', 'ptr_free', 'ptr_new', 'ptr_valid',
146
- 'ptrarr', 'pushd', 'qgrid3', 'qhull', 'qromb',
147
- 'qromo', 'qsimp', 'query_*', 'query_ascii', 'query_bmp',
148
- 'query_csv', 'query_dicom', 'query_gif', 'query_image', 'query_jpeg',
149
- 'query_jpeg2000', 'query_mrsid', 'query_pict', 'query_png', 'query_ppm',
150
- 'query_srf', 'query_tiff', 'query_video', 'query_wav', 'r_correlate',
151
- 'r_test', 'radon', 'randomn', 'randomu', 'ranks',
152
- 'rdpix', 'read', 'readf', 'read_ascii', 'read_binary',
153
- 'read_bmp', 'read_csv', 'read_dicom', 'read_gif', 'read_image',
154
- 'read_interfile', 'read_jpeg', 'read_jpeg2000', 'read_mrsid', 'read_pict',
155
- 'read_png', 'read_ppm', 'read_spr', 'read_srf', 'read_sylk',
156
- 'read_tiff', 'read_video', 'read_wav', 'read_wave', 'read_x11_bitmap',
157
- 'read_xwd', 'reads', 'readu', 'real_part', 'rebin',
158
- 'recall_commands', 'recon3', 'reduce_colors', 'reform', 'region_grow',
159
- 'register_cursor', 'regress', 'replicate',
160
- 'replicate_inplace', 'resolve_all',
161
- 'resolve_routine', 'restore', 'retall', 'return', 'reverse',
162
- 'rk4', 'roberts', 'rot', 'rotate', 'round',
163
- 'routine_filepath', 'routine_info', 'rs_test', 's_test', 'save',
164
- 'savgol', 'scale3', 'scale3d', 'scatterplot', 'scatterplot3d',
165
- 'scope_level', 'scope_traceback', 'scope_varfetch',
166
- 'scope_varname', 'search2d',
167
- 'search3d', 'sem_create', 'sem_delete', 'sem_lock', 'sem_release',
168
- 'set_plot', 'set_shading', 'setenv', 'sfit', 'shade_surf',
169
- 'shade_surf_irr', 'shade_volume', 'shift', 'shift_diff', 'shmdebug',
170
- 'shmmap', 'shmunmap', 'shmvar', 'show3', 'showfont',
171
- 'signum', 'simplex', 'sin', 'sindgen', 'sinh',
172
- 'size', 'skewness', 'skip_lun', 'slicer3', 'slide_image',
173
- 'smooth', 'sobel', 'socket', 'sort', 'spawn',
174
- 'sph_4pnt', 'sph_scat', 'spher_harm', 'spl_init', 'spl_interp',
175
- 'spline', 'spline_p', 'sprsab', 'sprsax', 'sprsin',
176
- 'sprstp', 'sqrt', 'standardize', 'stddev', 'stop',
177
- 'strarr', 'strcmp', 'strcompress', 'streamline', 'streamline',
178
- 'stregex', 'stretch', 'string', 'strjoin', 'strlen',
179
- 'strlowcase', 'strmatch', 'strmessage', 'strmid', 'strpos',
180
- 'strput', 'strsplit', 'strtrim', 'struct_assign', 'struct_hide',
181
- 'strupcase', 'surface', 'surface', 'surfr', 'svdc',
182
- 'svdfit', 'svsol', 'swap_endian', 'swap_endian_inplace', 'symbol',
183
- 'systime', 't_cvf', 't_pdf', 't3d', 'tag_names',
184
- 'tan', 'tanh', 'tek_color', 'temporary', 'terminal_size',
185
- 'tetra_clip', 'tetra_surface', 'tetra_volume', 'text', 'thin',
186
- 'thread', 'threed', 'tic', 'time_test2', 'timegen',
187
- 'timer', 'timestamp', 'timestamptovalues', 'tm_test', 'toc',
188
- 'total', 'trace', 'transpose', 'tri_surf', 'triangulate',
189
- 'trigrid', 'triql', 'trired', 'trisol', 'truncate_lun',
190
- 'ts_coef', 'ts_diff', 'ts_fcast', 'ts_smooth', 'tv',
191
- 'tvcrs', 'tvlct', 'tvrd', 'tvscl', 'typename',
192
- 'uindgen', 'uint', 'uintarr', 'ul64indgen', 'ulindgen',
193
- 'ulon64arr', 'ulonarr', 'ulong', 'ulong64', 'uniq',
194
- 'unsharp_mask', 'usersym', 'value_locate', 'variance', 'vector',
195
- 'vector_field', 'vel', 'velovect', 'vert_t3d', 'voigt',
196
- 'volume', 'voronoi', 'voxel_proj', 'wait', 'warp_tri',
197
- 'watershed', 'wdelete', 'wf_draw', 'where', 'widget_base',
198
- 'widget_button', 'widget_combobox', 'widget_control',
199
- 'widget_displaycontextmenu', 'widget_draw',
200
- 'widget_droplist', 'widget_event', 'widget_info',
201
- 'widget_label', 'widget_list',
202
- 'widget_propertysheet', 'widget_slider', 'widget_tab',
203
- 'widget_table', 'widget_text',
204
- 'widget_tree', 'widget_tree_move', 'widget_window',
205
- 'wiener_filter', 'window',
206
- 'window', 'write_bmp', 'write_csv', 'write_gif', 'write_image',
207
- 'write_jpeg', 'write_jpeg2000', 'write_nrif', 'write_pict', 'write_png',
208
- 'write_ppm', 'write_spr', 'write_srf', 'write_sylk', 'write_tiff',
209
- 'write_video', 'write_wav', 'write_wave', 'writeu', 'wset',
210
- 'wshow', 'wtn', 'wv_applet', 'wv_cwt', 'wv_cw_wavelet',
211
- 'wv_denoise', 'wv_dwt', 'wv_fn_coiflet',
212
- 'wv_fn_daubechies', 'wv_fn_gaussian',
213
- 'wv_fn_haar', 'wv_fn_morlet', 'wv_fn_paul',
214
- 'wv_fn_symlet', 'wv_import_data',
215
- 'wv_import_wavelet', 'wv_plot3d_wps', 'wv_plot_multires',
216
- 'wv_pwt', 'wv_tool_denoise',
217
- 'xbm_edit', 'xdisplayfile', 'xdxf', 'xfont', 'xinteranimate',
218
- 'xloadct', 'xmanager', 'xmng_tmpl', 'xmtool', 'xobjview',
219
- 'xobjview_rotate', 'xobjview_write_image',
220
- 'xpalette', 'xpcolor', 'xplot3d',
221
- 'xregistered', 'xroi', 'xsq_test', 'xsurface', 'xvaredit',
222
- 'xvolume', 'xvolume_rotate', 'xvolume_write_image',
223
- 'xyouts', 'zlib_compress', 'zlib_uncompress', 'zoom', 'zoom_24'
224
- ];
225
- var builtins = wordRegexp(builtinArray);
226
-
227
- var keywordArray = [
228
- 'begin', 'end', 'endcase', 'endfor',
229
- 'endwhile', 'endif', 'endrep', 'endforeach',
230
- 'break', 'case', 'continue', 'for',
231
- 'foreach', 'goto', 'if', 'then', 'else',
232
- 'repeat', 'until', 'switch', 'while',
233
- 'do', 'pro', 'function'
234
- ];
235
- var keywords = wordRegexp(keywordArray);
236
-
237
- CodeMirror.registerHelper("hintWords", "idl", builtinArray.concat(keywordArray));
238
-
239
- var identifiers = new RegExp('^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*', 'i');
240
-
241
- var singleOperators = /[+\-*&=<>\/@#~$]/;
242
- var boolOperators = new RegExp('(and|or|eq|lt|le|gt|ge|ne|not)', 'i');
243
-
244
- function tokenBase(stream) {
245
- // whitespaces
246
- if (stream.eatSpace()) return null;
247
-
248
- // Handle one line Comments
249
- if (stream.match(';')) {
250
- stream.skipToEnd();
251
- return 'comment';
252
- }
253
-
254
- // Handle Number Literals
255
- if (stream.match(/^[0-9\.+-]/, false)) {
256
- if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
257
- return 'number';
258
- if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
259
- return 'number';
260
- if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
261
- return 'number';
262
- }
263
-
264
- // Handle Strings
265
- if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; }
266
- if (stream.match(/^'([^']|(''))*'/)) { return 'string'; }
267
-
268
- // Handle words
269
- if (stream.match(keywords)) { return 'keyword'; }
270
- if (stream.match(builtins)) { return 'builtin'; }
271
- if (stream.match(identifiers)) { return 'variable'; }
272
-
273
- if (stream.match(singleOperators) || stream.match(boolOperators)) {
274
- return 'operator'; }
275
-
276
- // Handle non-detected items
277
- stream.next();
278
- return 'error';
279
- };
280
-
281
- CodeMirror.defineMode('idl', function() {
282
- return {
283
- token: function(stream) {
284
- return tokenBase(stream);
285
- }
286
- };
287
- });
288
-
289
- CodeMirror.defineMIME('text/x-idl', 'idl');
290
- });