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,20 +0,0 @@
1
- .CodeMirror-foldmarker {
2
- color: blue;
3
- text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
4
- font-family: arial;
5
- line-height: .3;
6
- cursor: pointer;
7
- }
8
- .CodeMirror-foldgutter {
9
- width: .7em;
10
- }
11
- .CodeMirror-foldgutter-open,
12
- .CodeMirror-foldgutter-folded {
13
- cursor: pointer;
14
- }
15
- .CodeMirror-foldgutter-open:after {
16
- content: "\25BE";
17
- }
18
- .CodeMirror-foldgutter-folded:after {
19
- content: "\25B8";
20
- }
@@ -1,134 +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("./foldcode"));
7
- else if (typeof define == "function" && define.amd) // AMD
8
- define(["../../lib/codemirror", "./foldcode"], mod);
9
- else // Plain browser env
10
- mod(CodeMirror);
11
- })(function(CodeMirror) {
12
- "use strict";
13
-
14
- CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
15
- if (old && old != CodeMirror.Init) {
16
- cm.clearGutter(cm.state.foldGutter.options.gutter);
17
- cm.state.foldGutter = null;
18
- cm.off("gutterClick", onGutterClick);
19
- cm.off("change", onChange);
20
- cm.off("viewportChange", onViewportChange);
21
- cm.off("fold", onFold);
22
- cm.off("unfold", onFold);
23
- cm.off("swapDoc", updateInViewport);
24
- }
25
- if (val) {
26
- cm.state.foldGutter = new State(parseOptions(val));
27
- updateInViewport(cm);
28
- cm.on("gutterClick", onGutterClick);
29
- cm.on("change", onChange);
30
- cm.on("viewportChange", onViewportChange);
31
- cm.on("fold", onFold);
32
- cm.on("unfold", onFold);
33
- cm.on("swapDoc", updateInViewport);
34
- }
35
- });
36
-
37
- var Pos = CodeMirror.Pos;
38
-
39
- function State(options) {
40
- this.options = options;
41
- this.from = this.to = 0;
42
- }
43
-
44
- function parseOptions(opts) {
45
- if (opts === true) opts = {};
46
- if (opts.gutter == null) opts.gutter = "CodeMirror-foldgutter";
47
- if (opts.indicatorOpen == null) opts.indicatorOpen = "CodeMirror-foldgutter-open";
48
- if (opts.indicatorFolded == null) opts.indicatorFolded = "CodeMirror-foldgutter-folded";
49
- return opts;
50
- }
51
-
52
- function isFolded(cm, line) {
53
- var marks = cm.findMarksAt(Pos(line));
54
- for (var i = 0; i < marks.length; ++i)
55
- if (marks[i].__isFold && marks[i].find().from.line == line) return true;
56
- }
57
-
58
- function marker(spec) {
59
- if (typeof spec == "string") {
60
- var elt = document.createElement("div");
61
- elt.className = spec + " CodeMirror-guttermarker-subtle";
62
- return elt;
63
- } else {
64
- return spec.cloneNode(true);
65
- }
66
- }
67
-
68
- function updateFoldInfo(cm, from, to) {
69
- var opts = cm.state.foldGutter.options, cur = from;
70
- cm.eachLine(from, to, function(line) {
71
- var mark = null;
72
- if (isFolded(cm, cur)) {
73
- mark = marker(opts.indicatorFolded);
74
- } else {
75
- var pos = Pos(cur, 0), func = opts.rangeFinder || CodeMirror.fold.auto;
76
- var range = func && func(cm, pos);
77
- if (range && range.from.line + 1 < range.to.line)
78
- mark = marker(opts.indicatorOpen);
79
- }
80
- cm.setGutterMarker(line, opts.gutter, mark);
81
- ++cur;
82
- });
83
- }
84
-
85
- function updateInViewport(cm) {
86
- var vp = cm.getViewport(), state = cm.state.foldGutter;
87
- if (!state) return;
88
- cm.operation(function() {
89
- updateFoldInfo(cm, vp.from, vp.to);
90
- });
91
- state.from = vp.from; state.to = vp.to;
92
- }
93
-
94
- function onGutterClick(cm, line, gutter) {
95
- var opts = cm.state.foldGutter.options;
96
- if (gutter != opts.gutter) return;
97
- cm.foldCode(Pos(line, 0), opts.rangeFinder);
98
- }
99
-
100
- function onChange(cm) {
101
- var state = cm.state.foldGutter, opts = cm.state.foldGutter.options;
102
- state.from = state.to = 0;
103
- clearTimeout(state.changeUpdate);
104
- state.changeUpdate = setTimeout(function() { updateInViewport(cm); }, opts.foldOnChangeTimeSpan || 600);
105
- }
106
-
107
- function onViewportChange(cm) {
108
- var state = cm.state.foldGutter, opts = cm.state.foldGutter.options;
109
- clearTimeout(state.changeUpdate);
110
- state.changeUpdate = setTimeout(function() {
111
- var vp = cm.getViewport();
112
- if (state.from == state.to || vp.from - state.to > 20 || state.from - vp.to > 20) {
113
- updateInViewport(cm);
114
- } else {
115
- cm.operation(function() {
116
- if (vp.from < state.from) {
117
- updateFoldInfo(cm, vp.from, state.from);
118
- state.from = vp.from;
119
- }
120
- if (vp.to > state.to) {
121
- updateFoldInfo(cm, state.to, vp.to);
122
- state.to = vp.to;
123
- }
124
- });
125
- }
126
- }, opts.updateViewportTimeSpan || 400);
127
- }
128
-
129
- function onFold(cm, from) {
130
- var state = cm.state.foldGutter, line = from.line;
131
- if (line >= state.from && line < state.to)
132
- updateFoldInfo(cm, line, line + 1);
133
- }
134
- });
@@ -1,44 +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.registerHelper("fold", "indent", function(cm, start) {
15
- var tabSize = cm.getOption("tabSize"), firstLine = cm.getLine(start.line);
16
- if (!/\S/.test(firstLine)) return;
17
- var getIndent = function(line) {
18
- return CodeMirror.countColumn(line, null, tabSize);
19
- };
20
- var myIndent = getIndent(firstLine);
21
- var lastLineInFold = null;
22
- // Go through lines until we find a line that definitely doesn't belong in
23
- // the block we're folding, or to the end.
24
- for (var i = start.line + 1, end = cm.lastLine(); i <= end; ++i) {
25
- var curLine = cm.getLine(i);
26
- var curIndent = getIndent(curLine);
27
- if (curIndent > myIndent) {
28
- // Lines with a greater indent are considered part of the block.
29
- lastLineInFold = i;
30
- } else if (!/\S/.test(curLine)) {
31
- // Empty lines might be breaks within the block we're trying to fold.
32
- } else {
33
- // A non-empty line at an indent equal to or less than ours marks the
34
- // start of another block.
35
- break;
36
- }
37
- }
38
- if (lastLineInFold) return {
39
- from: CodeMirror.Pos(start.line, firstLine.length),
40
- to: CodeMirror.Pos(lastLineInFold, cm.getLine(lastLineInFold).length)
41
- };
42
- });
43
-
44
- });
@@ -1,49 +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.registerHelper("fold", "markdown", function(cm, start) {
15
- var maxDepth = 100;
16
-
17
- function isHeader(lineNo) {
18
- var tokentype = cm.getTokenTypeAt(CodeMirror.Pos(lineNo, 0));
19
- return tokentype && /\bheader\b/.test(tokentype);
20
- }
21
-
22
- function headerLevel(lineNo, line, nextLine) {
23
- var match = line && line.match(/^#+/);
24
- if (match && isHeader(lineNo)) return match[0].length;
25
- match = nextLine && nextLine.match(/^[=\-]+\s*$/);
26
- if (match && isHeader(lineNo + 1)) return nextLine[0] == "=" ? 1 : 2;
27
- return maxDepth;
28
- }
29
-
30
- var firstLine = cm.getLine(start.line), nextLine = cm.getLine(start.line + 1);
31
- var level = headerLevel(start.line, firstLine, nextLine);
32
- if (level === maxDepth) return undefined;
33
-
34
- var lastLineNo = cm.lastLine();
35
- var end = start.line, nextNextLine = cm.getLine(end + 2);
36
- while (end < lastLineNo) {
37
- if (headerLevel(end + 1, nextLine, nextNextLine) <= level) break;
38
- ++end;
39
- nextLine = nextNextLine;
40
- nextNextLine = cm.getLine(end + 2);
41
- }
42
-
43
- return {
44
- from: CodeMirror.Pos(start.line, firstLine.length),
45
- to: CodeMirror.Pos(end, cm.getLine(end).length)
46
- };
47
- });
48
-
49
- });
@@ -1,182 +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
- var Pos = CodeMirror.Pos;
15
- function cmp(a, b) { return a.line - b.line || a.ch - b.ch; }
16
-
17
- var nameStartChar = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
18
- var nameChar = nameStartChar + "\-\:\.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
19
- var xmlTagStart = new RegExp("<(/?)([" + nameStartChar + "][" + nameChar + "]*)", "g");
20
-
21
- function Iter(cm, line, ch, range) {
22
- this.line = line; this.ch = ch;
23
- this.cm = cm; this.text = cm.getLine(line);
24
- this.min = range ? range.from : cm.firstLine();
25
- this.max = range ? range.to - 1 : cm.lastLine();
26
- }
27
-
28
- function tagAt(iter, ch) {
29
- var type = iter.cm.getTokenTypeAt(Pos(iter.line, ch));
30
- return type && /\btag\b/.test(type);
31
- }
32
-
33
- function nextLine(iter) {
34
- if (iter.line >= iter.max) return;
35
- iter.ch = 0;
36
- iter.text = iter.cm.getLine(++iter.line);
37
- return true;
38
- }
39
- function prevLine(iter) {
40
- if (iter.line <= iter.min) return;
41
- iter.text = iter.cm.getLine(--iter.line);
42
- iter.ch = iter.text.length;
43
- return true;
44
- }
45
-
46
- function toTagEnd(iter) {
47
- for (;;) {
48
- var gt = iter.text.indexOf(">", iter.ch);
49
- if (gt == -1) { if (nextLine(iter)) continue; else return; }
50
- if (!tagAt(iter, gt + 1)) { iter.ch = gt + 1; continue; }
51
- var lastSlash = iter.text.lastIndexOf("/", gt);
52
- var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
53
- iter.ch = gt + 1;
54
- return selfClose ? "selfClose" : "regular";
55
- }
56
- }
57
- function toTagStart(iter) {
58
- for (;;) {
59
- var lt = iter.ch ? iter.text.lastIndexOf("<", iter.ch - 1) : -1;
60
- if (lt == -1) { if (prevLine(iter)) continue; else return; }
61
- if (!tagAt(iter, lt + 1)) { iter.ch = lt; continue; }
62
- xmlTagStart.lastIndex = lt;
63
- iter.ch = lt;
64
- var match = xmlTagStart.exec(iter.text);
65
- if (match && match.index == lt) return match;
66
- }
67
- }
68
-
69
- function toNextTag(iter) {
70
- for (;;) {
71
- xmlTagStart.lastIndex = iter.ch;
72
- var found = xmlTagStart.exec(iter.text);
73
- if (!found) { if (nextLine(iter)) continue; else return; }
74
- if (!tagAt(iter, found.index + 1)) { iter.ch = found.index + 1; continue; }
75
- iter.ch = found.index + found[0].length;
76
- return found;
77
- }
78
- }
79
- function toPrevTag(iter) {
80
- for (;;) {
81
- var gt = iter.ch ? iter.text.lastIndexOf(">", iter.ch - 1) : -1;
82
- if (gt == -1) { if (prevLine(iter)) continue; else return; }
83
- if (!tagAt(iter, gt + 1)) { iter.ch = gt; continue; }
84
- var lastSlash = iter.text.lastIndexOf("/", gt);
85
- var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
86
- iter.ch = gt + 1;
87
- return selfClose ? "selfClose" : "regular";
88
- }
89
- }
90
-
91
- function findMatchingClose(iter, tag) {
92
- var stack = [];
93
- for (;;) {
94
- var next = toNextTag(iter), end, startLine = iter.line, startCh = iter.ch - (next ? next[0].length : 0);
95
- if (!next || !(end = toTagEnd(iter))) return;
96
- if (end == "selfClose") continue;
97
- if (next[1]) { // closing tag
98
- for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == next[2]) {
99
- stack.length = i;
100
- break;
101
- }
102
- if (i < 0 && (!tag || tag == next[2])) return {
103
- tag: next[2],
104
- from: Pos(startLine, startCh),
105
- to: Pos(iter.line, iter.ch)
106
- };
107
- } else { // opening tag
108
- stack.push(next[2]);
109
- }
110
- }
111
- }
112
- function findMatchingOpen(iter, tag) {
113
- var stack = [];
114
- for (;;) {
115
- var prev = toPrevTag(iter);
116
- if (!prev) return;
117
- if (prev == "selfClose") { toTagStart(iter); continue; }
118
- var endLine = iter.line, endCh = iter.ch;
119
- var start = toTagStart(iter);
120
- if (!start) return;
121
- if (start[1]) { // closing tag
122
- stack.push(start[2]);
123
- } else { // opening tag
124
- for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == start[2]) {
125
- stack.length = i;
126
- break;
127
- }
128
- if (i < 0 && (!tag || tag == start[2])) return {
129
- tag: start[2],
130
- from: Pos(iter.line, iter.ch),
131
- to: Pos(endLine, endCh)
132
- };
133
- }
134
- }
135
- }
136
-
137
- CodeMirror.registerHelper("fold", "xml", function(cm, start) {
138
- var iter = new Iter(cm, start.line, 0);
139
- for (;;) {
140
- var openTag = toNextTag(iter), end;
141
- if (!openTag || iter.line != start.line || !(end = toTagEnd(iter))) return;
142
- if (!openTag[1] && end != "selfClose") {
143
- var start = Pos(iter.line, iter.ch);
144
- var close = findMatchingClose(iter, openTag[2]);
145
- return close && {from: start, to: close.from};
146
- }
147
- }
148
- });
149
- CodeMirror.findMatchingTag = function(cm, pos, range) {
150
- var iter = new Iter(cm, pos.line, pos.ch, range);
151
- if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
152
- var end = toTagEnd(iter), to = end && Pos(iter.line, iter.ch);
153
- var start = end && toTagStart(iter);
154
- if (!end || !start || cmp(iter, pos) > 0) return;
155
- var here = {from: Pos(iter.line, iter.ch), to: to, tag: start[2]};
156
- if (end == "selfClose") return {open: here, close: null, at: "open"};
157
-
158
- if (start[1]) { // closing tag
159
- return {open: findMatchingOpen(iter, start[2]), close: here, at: "close"};
160
- } else { // opening tag
161
- iter = new Iter(cm, to.line, to.ch, range);
162
- return {open: here, close: findMatchingClose(iter, start[2]), at: "open"};
163
- }
164
- };
165
-
166
- CodeMirror.findEnclosingTag = function(cm, pos, range) {
167
- var iter = new Iter(cm, pos.line, pos.ch, range);
168
- for (;;) {
169
- var open = findMatchingOpen(iter);
170
- if (!open) break;
171
- var forward = new Iter(cm, pos.line, pos.ch, range);
172
- var close = findMatchingClose(forward, open.tag);
173
- if (close) return {open: open, close: close};
174
- }
175
- };
176
-
177
- // Used by addon/edit/closetag.js
178
- CodeMirror.scanForClosingTag = function(cm, pos, name, end) {
179
- var iter = new Iter(cm, pos.line, pos.ch, end ? {from: 0, to: end} : null);
180
- return findMatchingClose(iter, name);
181
- };
182
- });
@@ -1,41 +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
- var WORD = /[\w$]+/, RANGE = 500;
15
-
16
- CodeMirror.registerHelper("hint", "anyword", function(editor, options) {
17
- var word = options && options.word || WORD;
18
- var range = options && options.range || RANGE;
19
- var cur = editor.getCursor(), curLine = editor.getLine(cur.line);
20
- var end = cur.ch, start = end;
21
- while (start && word.test(curLine.charAt(start - 1))) --start;
22
- var curWord = start != end && curLine.slice(start, end);
23
-
24
- var list = [], seen = {};
25
- var re = new RegExp(word.source, "g");
26
- for (var dir = -1; dir <= 1; dir += 2) {
27
- var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir;
28
- for (; line != endLine; line += dir) {
29
- var text = editor.getLine(line), m;
30
- while (m = re.exec(text)) {
31
- if (line == cur.line && m[0] === curWord) continue;
32
- if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) {
33
- seen[m[0]] = true;
34
- list.push(m[0]);
35
- }
36
- }
37
- }
38
- }
39
- return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)};
40
- });
41
- });