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,175 +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("apl", function() {
15
- var builtInOps = {
16
- ".": "innerProduct",
17
- "\\": "scan",
18
- "/": "reduce",
19
- "⌿": "reduce1Axis",
20
- "⍀": "scan1Axis",
21
- "¨": "each",
22
- "⍣": "power"
23
- };
24
- var builtInFuncs = {
25
- "+": ["conjugate", "add"],
26
- "−": ["negate", "subtract"],
27
- "×": ["signOf", "multiply"],
28
- "÷": ["reciprocal", "divide"],
29
- "⌈": ["ceiling", "greaterOf"],
30
- "⌊": ["floor", "lesserOf"],
31
- "∣": ["absolute", "residue"],
32
- "⍳": ["indexGenerate", "indexOf"],
33
- "?": ["roll", "deal"],
34
- "⋆": ["exponentiate", "toThePowerOf"],
35
- "⍟": ["naturalLog", "logToTheBase"],
36
- "○": ["piTimes", "circularFuncs"],
37
- "!": ["factorial", "binomial"],
38
- "⌹": ["matrixInverse", "matrixDivide"],
39
- "<": [null, "lessThan"],
40
- "≤": [null, "lessThanOrEqual"],
41
- "=": [null, "equals"],
42
- ">": [null, "greaterThan"],
43
- "≥": [null, "greaterThanOrEqual"],
44
- "≠": [null, "notEqual"],
45
- "≡": ["depth", "match"],
46
- "≢": [null, "notMatch"],
47
- "∈": ["enlist", "membership"],
48
- "⍷": [null, "find"],
49
- "∪": ["unique", "union"],
50
- "∩": [null, "intersection"],
51
- "∼": ["not", "without"],
52
- "∨": [null, "or"],
53
- "∧": [null, "and"],
54
- "⍱": [null, "nor"],
55
- "⍲": [null, "nand"],
56
- "⍴": ["shapeOf", "reshape"],
57
- ",": ["ravel", "catenate"],
58
- "⍪": [null, "firstAxisCatenate"],
59
- "⌽": ["reverse", "rotate"],
60
- "⊖": ["axis1Reverse", "axis1Rotate"],
61
- "⍉": ["transpose", null],
62
- "↑": ["first", "take"],
63
- "↓": [null, "drop"],
64
- "⊂": ["enclose", "partitionWithAxis"],
65
- "⊃": ["diclose", "pick"],
66
- "⌷": [null, "index"],
67
- "⍋": ["gradeUp", null],
68
- "⍒": ["gradeDown", null],
69
- "⊤": ["encode", null],
70
- "⊥": ["decode", null],
71
- "⍕": ["format", "formatByExample"],
72
- "⍎": ["execute", null],
73
- "⊣": ["stop", "left"],
74
- "⊢": ["pass", "right"]
75
- };
76
-
77
- var isOperator = /[\.\/⌿⍀¨⍣]/;
78
- var isNiladic = /⍬/;
79
- var isFunction = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;
80
- var isArrow = /←/;
81
- var isComment = /[⍝#].*$/;
82
-
83
- var stringEater = function(type) {
84
- var prev;
85
- prev = false;
86
- return function(c) {
87
- prev = c;
88
- if (c === type) {
89
- return prev === "\\";
90
- }
91
- return true;
92
- };
93
- };
94
- return {
95
- startState: function() {
96
- return {
97
- prev: false,
98
- func: false,
99
- op: false,
100
- string: false,
101
- escape: false
102
- };
103
- },
104
- token: function(stream, state) {
105
- var ch, funcName, word;
106
- if (stream.eatSpace()) {
107
- return null;
108
- }
109
- ch = stream.next();
110
- if (ch === '"' || ch === "'") {
111
- stream.eatWhile(stringEater(ch));
112
- stream.next();
113
- state.prev = true;
114
- return "string";
115
- }
116
- if (/[\[{\(]/.test(ch)) {
117
- state.prev = false;
118
- return null;
119
- }
120
- if (/[\]}\)]/.test(ch)) {
121
- state.prev = true;
122
- return null;
123
- }
124
- if (isNiladic.test(ch)) {
125
- state.prev = false;
126
- return "niladic";
127
- }
128
- if (/[¯\d]/.test(ch)) {
129
- if (state.func) {
130
- state.func = false;
131
- state.prev = false;
132
- } else {
133
- state.prev = true;
134
- }
135
- stream.eatWhile(/[\w\.]/);
136
- return "number";
137
- }
138
- if (isOperator.test(ch)) {
139
- return "operator apl-" + builtInOps[ch];
140
- }
141
- if (isArrow.test(ch)) {
142
- return "apl-arrow";
143
- }
144
- if (isFunction.test(ch)) {
145
- funcName = "apl-";
146
- if (builtInFuncs[ch] != null) {
147
- if (state.prev) {
148
- funcName += builtInFuncs[ch][1];
149
- } else {
150
- funcName += builtInFuncs[ch][0];
151
- }
152
- }
153
- state.func = true;
154
- state.prev = false;
155
- return "function " + funcName;
156
- }
157
- if (isComment.test(ch)) {
158
- stream.skipToEnd();
159
- return "comment";
160
- }
161
- if (ch === "∘" && stream.peek() === ".") {
162
- stream.next();
163
- return "function jot-dot";
164
- }
165
- stream.eatWhile(/[\w\$_]/);
166
- word = stream.current();
167
- state.prev = true;
168
- return "keyword";
169
- }
170
- };
171
- });
172
-
173
- CodeMirror.defineMIME("text/apl", "apl");
174
-
175
- });
@@ -1,198 +0,0 @@
1
- // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
- // Distributed under an MIT license: http://codemirror.net/LICENSE
3
-
4
- /*
5
- * =====================================================================================
6
- *
7
- * Filename: mode/asterisk/asterisk.js
8
- *
9
- * Description: CodeMirror mode for Asterisk dialplan
10
- *
11
- * Created: 05/17/2012 09:20:25 PM
12
- * Revision: none
13
- *
14
- * Author: Stas Kobzar (stas@modulis.ca),
15
- * Company: Modulis.ca Inc.
16
- *
17
- * =====================================================================================
18
- */
19
-
20
- (function(mod) {
21
- if (typeof exports == "object" && typeof module == "object") // CommonJS
22
- mod(require("../../lib/codemirror"));
23
- else if (typeof define == "function" && define.amd) // AMD
24
- define(["../../lib/codemirror"], mod);
25
- else // Plain browser env
26
- mod(CodeMirror);
27
- })(function(CodeMirror) {
28
- "use strict";
29
-
30
- CodeMirror.defineMode("asterisk", function() {
31
- var atoms = ["exten", "same", "include","ignorepat","switch"],
32
- dpcmd = ["#include","#exec"],
33
- apps = [
34
- "addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi",
35
- "alarmreceiver","amd","answer","authenticate","background","backgrounddetect",
36
- "bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent",
37
- "changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge",
38
- "congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge",
39
- "dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility",
40
- "datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa",
41
- "dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy",
42
- "externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif",
43
- "goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete",
44
- "ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus",
45
- "jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme",
46
- "meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete",
47
- "minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode",
48
- "mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish",
49
- "originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce",
50
- "parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones",
51
- "privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten",
52
- "readfile","receivefax","receivefax","receivefax","record","removequeuemember",
53
- "resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun",
54
- "saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax",
55
- "sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags",
56
- "setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel",
57
- "slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground",
58
- "speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound",
59
- "speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor",
60
- "stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec",
61
- "trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate",
62
- "vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring",
63
- "waitforsilence","waitmusiconhold","waituntil","while","zapateller"
64
- ];
65
-
66
- function basicToken(stream,state){
67
- var cur = '';
68
- var ch = '';
69
- ch = stream.next();
70
- // comment
71
- if(ch == ";") {
72
- stream.skipToEnd();
73
- return "comment";
74
- }
75
- // context
76
- if(ch == '[') {
77
- stream.skipTo(']');
78
- stream.eat(']');
79
- return "header";
80
- }
81
- // string
82
- if(ch == '"') {
83
- stream.skipTo('"');
84
- return "string";
85
- }
86
- if(ch == "'") {
87
- stream.skipTo("'");
88
- return "string-2";
89
- }
90
- // dialplan commands
91
- if(ch == '#') {
92
- stream.eatWhile(/\w/);
93
- cur = stream.current();
94
- if(dpcmd.indexOf(cur) !== -1) {
95
- stream.skipToEnd();
96
- return "strong";
97
- }
98
- }
99
- // application args
100
- if(ch == '$'){
101
- var ch1 = stream.peek();
102
- if(ch1 == '{'){
103
- stream.skipTo('}');
104
- stream.eat('}');
105
- return "variable-3";
106
- }
107
- }
108
- // extension
109
- stream.eatWhile(/\w/);
110
- cur = stream.current();
111
- if(atoms.indexOf(cur) !== -1) {
112
- state.extenStart = true;
113
- switch(cur) {
114
- case 'same': state.extenSame = true; break;
115
- case 'include':
116
- case 'switch':
117
- case 'ignorepat':
118
- state.extenInclude = true;break;
119
- default:break;
120
- }
121
- return "atom";
122
- }
123
- }
124
-
125
- return {
126
- startState: function() {
127
- return {
128
- extenStart: false,
129
- extenSame: false,
130
- extenInclude: false,
131
- extenExten: false,
132
- extenPriority: false,
133
- extenApplication: false
134
- };
135
- },
136
- token: function(stream, state) {
137
-
138
- var cur = '';
139
- var ch = '';
140
- if(stream.eatSpace()) return null;
141
- // extension started
142
- if(state.extenStart){
143
- stream.eatWhile(/[^\s]/);
144
- cur = stream.current();
145
- if(/^=>?$/.test(cur)){
146
- state.extenExten = true;
147
- state.extenStart = false;
148
- return "strong";
149
- } else {
150
- state.extenStart = false;
151
- stream.skipToEnd();
152
- return "error";
153
- }
154
- } else if(state.extenExten) {
155
- // set exten and priority
156
- state.extenExten = false;
157
- state.extenPriority = true;
158
- stream.eatWhile(/[^,]/);
159
- if(state.extenInclude) {
160
- stream.skipToEnd();
161
- state.extenPriority = false;
162
- state.extenInclude = false;
163
- }
164
- if(state.extenSame) {
165
- state.extenPriority = false;
166
- state.extenSame = false;
167
- state.extenApplication = true;
168
- }
169
- return "tag";
170
- } else if(state.extenPriority) {
171
- state.extenPriority = false;
172
- state.extenApplication = true;
173
- ch = stream.next(); // get comma
174
- if(state.extenSame) return null;
175
- stream.eatWhile(/[^,]/);
176
- return "number";
177
- } else if(state.extenApplication) {
178
- stream.eatWhile(/,/);
179
- cur = stream.current();
180
- if(cur === ',') return null;
181
- stream.eatWhile(/\w/);
182
- cur = stream.current().toLowerCase();
183
- state.extenApplication = false;
184
- if(apps.indexOf(cur) !== -1){
185
- return "def strong";
186
- }
187
- } else{
188
- return basicToken(stream,state);
189
- }
190
-
191
- return null;
192
- }
193
- };
194
- });
195
-
196
- CodeMirror.defineMIME("text/x-asterisk", "asterisk");
197
-
198
- });
@@ -1,489 +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("clike", function(config, parserConfig) {
15
- var indentUnit = config.indentUnit,
16
- statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
17
- dontAlignCalls = parserConfig.dontAlignCalls,
18
- keywords = parserConfig.keywords || {},
19
- builtin = parserConfig.builtin || {},
20
- blockKeywords = parserConfig.blockKeywords || {},
21
- atoms = parserConfig.atoms || {},
22
- hooks = parserConfig.hooks || {},
23
- multiLineStrings = parserConfig.multiLineStrings,
24
- indentStatements = parserConfig.indentStatements !== false;
25
- var isOperatorChar = /[+\-*&%=<>!?|\/]/;
26
-
27
- var curPunc;
28
-
29
- function tokenBase(stream, state) {
30
- var ch = stream.next();
31
- if (hooks[ch]) {
32
- var result = hooks[ch](stream, state);
33
- if (result !== false) return result;
34
- }
35
- if (ch == '"' || ch == "'") {
36
- state.tokenize = tokenString(ch);
37
- return state.tokenize(stream, state);
38
- }
39
- if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
40
- curPunc = ch;
41
- return null;
42
- }
43
- if (/\d/.test(ch)) {
44
- stream.eatWhile(/[\w\.]/);
45
- return "number";
46
- }
47
- if (ch == "/") {
48
- if (stream.eat("*")) {
49
- state.tokenize = tokenComment;
50
- return tokenComment(stream, state);
51
- }
52
- if (stream.eat("/")) {
53
- stream.skipToEnd();
54
- return "comment";
55
- }
56
- }
57
- if (isOperatorChar.test(ch)) {
58
- stream.eatWhile(isOperatorChar);
59
- return "operator";
60
- }
61
- stream.eatWhile(/[\w\$_\xa1-\uffff]/);
62
- var cur = stream.current();
63
- if (keywords.propertyIsEnumerable(cur)) {
64
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
65
- return "keyword";
66
- }
67
- if (builtin.propertyIsEnumerable(cur)) {
68
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
69
- return "builtin";
70
- }
71
- if (atoms.propertyIsEnumerable(cur)) return "atom";
72
- return "variable";
73
- }
74
-
75
- function tokenString(quote) {
76
- return function(stream, state) {
77
- var escaped = false, next, end = false;
78
- while ((next = stream.next()) != null) {
79
- if (next == quote && !escaped) {end = true; break;}
80
- escaped = !escaped && next == "\\";
81
- }
82
- if (end || !(escaped || multiLineStrings))
83
- state.tokenize = null;
84
- return "string";
85
- };
86
- }
87
-
88
- function tokenComment(stream, state) {
89
- var maybeEnd = false, ch;
90
- while (ch = stream.next()) {
91
- if (ch == "/" && maybeEnd) {
92
- state.tokenize = null;
93
- break;
94
- }
95
- maybeEnd = (ch == "*");
96
- }
97
- return "comment";
98
- }
99
-
100
- function Context(indented, column, type, align, prev) {
101
- this.indented = indented;
102
- this.column = column;
103
- this.type = type;
104
- this.align = align;
105
- this.prev = prev;
106
- }
107
- function pushContext(state, col, type) {
108
- var indent = state.indented;
109
- if (state.context && state.context.type == "statement")
110
- indent = state.context.indented;
111
- return state.context = new Context(indent, col, type, null, state.context);
112
- }
113
- function popContext(state) {
114
- var t = state.context.type;
115
- if (t == ")" || t == "]" || t == "}")
116
- state.indented = state.context.indented;
117
- return state.context = state.context.prev;
118
- }
119
-
120
- // Interface
121
-
122
- return {
123
- startState: function(basecolumn) {
124
- return {
125
- tokenize: null,
126
- context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
127
- indented: 0,
128
- startOfLine: true
129
- };
130
- },
131
-
132
- token: function(stream, state) {
133
- var ctx = state.context;
134
- if (stream.sol()) {
135
- if (ctx.align == null) ctx.align = false;
136
- state.indented = stream.indentation();
137
- state.startOfLine = true;
138
- }
139
- if (stream.eatSpace()) return null;
140
- curPunc = null;
141
- var style = (state.tokenize || tokenBase)(stream, state);
142
- if (style == "comment" || style == "meta") return style;
143
- if (ctx.align == null) ctx.align = true;
144
-
145
- if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") popContext(state);
146
- else if (curPunc == "{") pushContext(state, stream.column(), "}");
147
- else if (curPunc == "[") pushContext(state, stream.column(), "]");
148
- else if (curPunc == "(") pushContext(state, stream.column(), ")");
149
- else if (curPunc == "}") {
150
- while (ctx.type == "statement") ctx = popContext(state);
151
- if (ctx.type == "}") ctx = popContext(state);
152
- while (ctx.type == "statement") ctx = popContext(state);
153
- }
154
- else if (curPunc == ctx.type) popContext(state);
155
- else if (indentStatements &&
156
- (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') ||
157
- (ctx.type == "statement" && curPunc == "newstatement")))
158
- pushContext(state, stream.column(), "statement");
159
- state.startOfLine = false;
160
- return style;
161
- },
162
-
163
- indent: function(state, textAfter) {
164
- if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass;
165
- var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
166
- if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
167
- var closing = firstChar == ctx.type;
168
- if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit);
169
- else if (ctx.align && (!dontAlignCalls || ctx.type != ")")) return ctx.column + (closing ? 0 : 1);
170
- else if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit;
171
- else return ctx.indented + (closing ? 0 : indentUnit);
172
- },
173
-
174
- electricChars: "{}",
175
- blockCommentStart: "/*",
176
- blockCommentEnd: "*/",
177
- lineComment: "//",
178
- fold: "brace"
179
- };
180
- });
181
-
182
- function words(str) {
183
- var obj = {}, words = str.split(" ");
184
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
185
- return obj;
186
- }
187
- var cKeywords = "auto if break int case long char register continue return default short do sizeof " +
188
- "double static else struct entry switch extern typedef float union for unsigned " +
189
- "goto while enum void const signed volatile";
190
-
191
- function cppHook(stream, state) {
192
- if (!state.startOfLine) return false;
193
- for (;;) {
194
- if (stream.skipTo("\\")) {
195
- stream.next();
196
- if (stream.eol()) {
197
- state.tokenize = cppHook;
198
- break;
199
- }
200
- } else {
201
- stream.skipToEnd();
202
- state.tokenize = null;
203
- break;
204
- }
205
- }
206
- return "meta";
207
- }
208
-
209
- function cpp11StringHook(stream, state) {
210
- stream.backUp(1);
211
- // Raw strings.
212
- if (stream.match(/(R|u8R|uR|UR|LR)/)) {
213
- var match = stream.match(/"([^\s\\()]{0,16})\(/);
214
- if (!match) {
215
- return false;
216
- }
217
- state.cpp11RawStringDelim = match[1];
218
- state.tokenize = tokenRawString;
219
- return tokenRawString(stream, state);
220
- }
221
- // Unicode strings/chars.
222
- if (stream.match(/(u8|u|U|L)/)) {
223
- if (stream.match(/["']/, /* eat */ false)) {
224
- return "string";
225
- }
226
- return false;
227
- }
228
- // Ignore this hook.
229
- stream.next();
230
- return false;
231
- }
232
-
233
- // C#-style strings where "" escapes a quote.
234
- function tokenAtString(stream, state) {
235
- var next;
236
- while ((next = stream.next()) != null) {
237
- if (next == '"' && !stream.eat('"')) {
238
- state.tokenize = null;
239
- break;
240
- }
241
- }
242
- return "string";
243
- }
244
-
245
- // C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
246
- // <delim> can be a string up to 16 characters long.
247
- function tokenRawString(stream, state) {
248
- // Escape characters that have special regex meanings.
249
- var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&');
250
- var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
251
- if (match)
252
- state.tokenize = null;
253
- else
254
- stream.skipToEnd();
255
- return "string";
256
- }
257
-
258
- function def(mimes, mode) {
259
- if (typeof mimes == "string") mimes = [mimes];
260
- var words = [];
261
- function add(obj) {
262
- if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop))
263
- words.push(prop);
264
- }
265
- add(mode.keywords);
266
- add(mode.builtin);
267
- add(mode.atoms);
268
- if (words.length) {
269
- mode.helperType = mimes[0];
270
- CodeMirror.registerHelper("hintWords", mimes[0], words);
271
- }
272
-
273
- for (var i = 0; i < mimes.length; ++i)
274
- CodeMirror.defineMIME(mimes[i], mode);
275
- }
276
-
277
- def(["text/x-csrc", "text/x-c", "text/x-chdr"], {
278
- name: "clike",
279
- keywords: words(cKeywords),
280
- blockKeywords: words("case do else for if switch while struct"),
281
- atoms: words("null"),
282
- hooks: {"#": cppHook},
283
- modeProps: {fold: ["brace", "include"]}
284
- });
285
-
286
- def(["text/x-c++src", "text/x-c++hdr"], {
287
- name: "clike",
288
- keywords: words(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " +
289
- "static_cast typeid catch operator template typename class friend private " +
290
- "this using const_cast inline public throw virtual delete mutable protected " +
291
- "wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final " +
292
- "static_assert override"),
293
- blockKeywords: words("catch class do else finally for if struct switch try while"),
294
- atoms: words("true false null"),
295
- hooks: {
296
- "#": cppHook,
297
- "u": cpp11StringHook,
298
- "U": cpp11StringHook,
299
- "L": cpp11StringHook,
300
- "R": cpp11StringHook
301
- },
302
- modeProps: {fold: ["brace", "include"]}
303
- });
304
-
305
- def("text/x-java", {
306
- name: "clike",
307
- keywords: words("abstract assert boolean break byte case catch char class const continue default " +
308
- "do double else enum extends final finally float for goto if implements import " +
309
- "instanceof int interface long native new package private protected public " +
310
- "return short static strictfp super switch synchronized this throw throws transient " +
311
- "try void volatile while"),
312
- blockKeywords: words("catch class do else finally for if switch try while"),
313
- atoms: words("true false null"),
314
- hooks: {
315
- "@": function(stream) {
316
- stream.eatWhile(/[\w\$_]/);
317
- return "meta";
318
- }
319
- },
320
- modeProps: {fold: ["brace", "import"]}
321
- });
322
-
323
- def("text/x-csharp", {
324
- name: "clike",
325
- keywords: words("abstract as base break case catch checked class const continue" +
326
- " default delegate do else enum event explicit extern finally fixed for" +
327
- " foreach goto if implicit in interface internal is lock namespace new" +
328
- " operator out override params private protected public readonly ref return sealed" +
329
- " sizeof stackalloc static struct switch this throw try typeof unchecked" +
330
- " unsafe using virtual void volatile while add alias ascending descending dynamic from get" +
331
- " global group into join let orderby partial remove select set value var yield"),
332
- blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
333
- builtin: words("Boolean Byte Char DateTime DateTimeOffset Decimal Double" +
334
- " Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32" +
335
- " UInt64 bool byte char decimal double short int long object" +
336
- " sbyte float string ushort uint ulong"),
337
- atoms: words("true false null"),
338
- hooks: {
339
- "@": function(stream, state) {
340
- if (stream.eat('"')) {
341
- state.tokenize = tokenAtString;
342
- return tokenAtString(stream, state);
343
- }
344
- stream.eatWhile(/[\w\$_]/);
345
- return "meta";
346
- }
347
- }
348
- });
349
-
350
- function tokenTripleString(stream, state) {
351
- var escaped = false;
352
- while (!stream.eol()) {
353
- if (!escaped && stream.match('"""')) {
354
- state.tokenize = null;
355
- break;
356
- }
357
- escaped = stream.next() != "\\" && !escaped;
358
- }
359
- return "string";
360
- }
361
-
362
- def("text/x-scala", {
363
- name: "clike",
364
- keywords: words(
365
-
366
- /* scala */
367
- "abstract case catch class def do else extends false final finally for forSome if " +
368
- "implicit import lazy match new null object override package private protected return " +
369
- "sealed super this throw trait try trye type val var while with yield _ : = => <- <: " +
370
- "<% >: # @ " +
371
-
372
- /* package scala */
373
- "assert assume require print println printf readLine readBoolean readByte readShort " +
374
- "readChar readInt readLong readFloat readDouble " +
375
-
376
- "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
377
- "Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable " +
378
- "Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
379
- "Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
380
- "StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: " +
381
-
382
- /* package java.lang */
383
- "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
384
- "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
385
- "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
386
- "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
387
- ),
388
- multiLineStrings: true,
389
- blockKeywords: words("catch class do else finally for forSome if match switch try while"),
390
- atoms: words("true false null"),
391
- indentStatements: false,
392
- hooks: {
393
- "@": function(stream) {
394
- stream.eatWhile(/[\w\$_]/);
395
- return "meta";
396
- },
397
- '"': function(stream, state) {
398
- if (!stream.match('""')) return false;
399
- state.tokenize = tokenTripleString;
400
- return state.tokenize(stream, state);
401
- }
402
- }
403
- });
404
-
405
- def(["x-shader/x-vertex", "x-shader/x-fragment"], {
406
- name: "clike",
407
- keywords: words("float int bool void " +
408
- "vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " +
409
- "mat2 mat3 mat4 " +
410
- "sampler1D sampler2D sampler3D samplerCube " +
411
- "sampler1DShadow sampler2DShadow" +
412
- "const attribute uniform varying " +
413
- "break continue discard return " +
414
- "for while do if else struct " +
415
- "in out inout"),
416
- blockKeywords: words("for while do if else struct"),
417
- builtin: words("radians degrees sin cos tan asin acos atan " +
418
- "pow exp log exp2 sqrt inversesqrt " +
419
- "abs sign floor ceil fract mod min max clamp mix step smootstep " +
420
- "length distance dot cross normalize ftransform faceforward " +
421
- "reflect refract matrixCompMult " +
422
- "lessThan lessThanEqual greaterThan greaterThanEqual " +
423
- "equal notEqual any all not " +
424
- "texture1D texture1DProj texture1DLod texture1DProjLod " +
425
- "texture2D texture2DProj texture2DLod texture2DProjLod " +
426
- "texture3D texture3DProj texture3DLod texture3DProjLod " +
427
- "textureCube textureCubeLod " +
428
- "shadow1D shadow2D shadow1DProj shadow2DProj " +
429
- "shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " +
430
- "dFdx dFdy fwidth " +
431
- "noise1 noise2 noise3 noise4"),
432
- atoms: words("true false " +
433
- "gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " +
434
- "gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " +
435
- "gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " +
436
- "gl_FogCoord " +
437
- "gl_Position gl_PointSize gl_ClipVertex " +
438
- "gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " +
439
- "gl_TexCoord gl_FogFragCoord " +
440
- "gl_FragCoord gl_FrontFacing " +
441
- "gl_FragColor gl_FragData gl_FragDepth " +
442
- "gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " +
443
- "gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " +
444
- "gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " +
445
- "gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose " +
446
- "gl_ProjectionMatrixInverseTranspose " +
447
- "gl_ModelViewProjectionMatrixInverseTranspose " +
448
- "gl_TextureMatrixInverseTranspose " +
449
- "gl_NormalScale gl_DepthRange gl_ClipPlane " +
450
- "gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " +
451
- "gl_FrontLightModelProduct gl_BackLightModelProduct " +
452
- "gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " +
453
- "gl_FogParameters " +
454
- "gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " +
455
- "gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " +
456
- "gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " +
457
- "gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " +
458
- "gl_MaxDrawBuffers"),
459
- hooks: {"#": cppHook},
460
- modeProps: {fold: ["brace", "include"]}
461
- });
462
-
463
- def("text/x-nesc", {
464
- name: "clike",
465
- keywords: words(cKeywords + "as atomic async call command component components configuration event generic " +
466
- "implementation includes interface module new norace nx_struct nx_union post provides " +
467
- "signal task uses abstract extends"),
468
- blockKeywords: words("case do else for if switch while struct"),
469
- atoms: words("null"),
470
- hooks: {"#": cppHook},
471
- modeProps: {fold: ["brace", "include"]}
472
- });
473
-
474
- def("text/x-objectivec", {
475
- name: "clike",
476
- keywords: words(cKeywords + "inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in " +
477
- "inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),
478
- atoms: words("YES NO NULL NILL ON OFF"),
479
- hooks: {
480
- "@": function(stream) {
481
- stream.eatWhile(/[\w\$]/);
482
- return "keyword";
483
- },
484
- "#": cppHook
485
- },
486
- modeProps: {fold: "brace"}
487
- });
488
-
489
- });