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,18 +0,0 @@
1
- var _ = require('../util')
2
- var addClass = _.addClass
3
- var removeClass = _.removeClass
4
-
5
- module.exports = function (value) {
6
- if (this.arg) {
7
- var method = value ? addClass : removeClass
8
- method(this.el, this.arg)
9
- } else {
10
- if (this.lastVal) {
11
- removeClass(this.el, this.lastVal)
12
- }
13
- if (value) {
14
- addClass(this.el, value)
15
- this.lastVal = value
16
- }
17
- }
18
- }
@@ -1,12 +0,0 @@
1
- var config = require('../config')
2
-
3
- module.exports = {
4
-
5
- bind: function () {
6
- var el = this.el
7
- this.vm.$once('hook:compiled', function () {
8
- el.removeAttribute(config.prefix + 'cloak')
9
- })
10
- }
11
-
12
- }
@@ -1,196 +0,0 @@
1
- var _ = require('../util')
2
- var templateParser = require('../parsers/template')
3
-
4
- module.exports = {
5
-
6
- isLiteral: true,
7
-
8
- /**
9
- * Setup. Two possible usages:
10
- *
11
- * - static:
12
- * v-component="comp"
13
- *
14
- * - dynamic:
15
- * v-component="{{currentView}}"
16
- */
17
-
18
- bind: function () {
19
- if (!this.el.__vue__) {
20
- // create a ref anchor
21
- this.ref = document.createComment('v-component')
22
- _.replace(this.el, this.ref)
23
- // check keep-alive options.
24
- // If yes, instead of destroying the active vm when
25
- // hiding (v-if) or switching (dynamic literal) it,
26
- // we simply remove it from the DOM and save it in a
27
- // cache object, with its constructor id as the key.
28
- this.keepAlive = this._checkParam('keep-alive') != null
29
- if (this.keepAlive) {
30
- this.cache = {}
31
- }
32
- // if static, build right now.
33
- if (!this._isDynamicLiteral) {
34
- this.resolveCtor(this.expression)
35
- this.childVM = this.build()
36
- this.childVM.$before(this.ref)
37
- } else {
38
- // check dynamic component params
39
- this.readyEvent = this._checkParam('wait-for')
40
- this.transMode = this._checkParam('transition-mode')
41
- }
42
- } else {
43
- _.warn(
44
- 'v-component="' + this.expression + '" cannot be ' +
45
- 'used on an already mounted instance.'
46
- )
47
- }
48
- },
49
-
50
- /**
51
- * Resolve the component constructor to use when creating
52
- * the child vm.
53
- */
54
-
55
- resolveCtor: function (id) {
56
- this.ctorId = id
57
- this.Ctor = this.vm.$options.components[id]
58
- _.assertAsset(this.Ctor, 'component', id)
59
- },
60
-
61
- /**
62
- * Instantiate/insert a new child vm.
63
- * If keep alive and has cached instance, insert that
64
- * instance; otherwise build a new one and cache it.
65
- *
66
- * @return {Vue} - the created instance
67
- */
68
-
69
- build: function () {
70
- if (this.keepAlive) {
71
- var cached = this.cache[this.ctorId]
72
- if (cached) {
73
- return cached
74
- }
75
- }
76
- var vm = this.vm
77
- var el = templateParser.clone(this.el)
78
- if (this.Ctor) {
79
- var child = vm.$addChild({
80
- el: el,
81
- _asComponent: true
82
- }, this.Ctor)
83
- if (this.keepAlive) {
84
- this.cache[this.ctorId] = child
85
- }
86
- return child
87
- }
88
- },
89
-
90
- /**
91
- * Teardown the current child, but defers cleanup so
92
- * that we can separate the destroy and removal steps.
93
- */
94
-
95
- unbuild: function () {
96
- var child = this.childVM
97
- if (!child || this.keepAlive) {
98
- return
99
- }
100
- // the sole purpose of `deferCleanup` is so that we can
101
- // "deactivate" the vm right now and perform DOM removal
102
- // later.
103
- child.$destroy(false, true)
104
- },
105
-
106
- /**
107
- * Remove current destroyed child and manually do
108
- * the cleanup after removal.
109
- *
110
- * @param {Function} cb
111
- */
112
-
113
- removeCurrent: function (cb) {
114
- var child = this.childVM
115
- var keepAlive = this.keepAlive
116
- if (child) {
117
- child.$remove(function () {
118
- if (!keepAlive) child._cleanup()
119
- if (cb) cb()
120
- })
121
- } else if (cb) {
122
- cb()
123
- }
124
- },
125
-
126
- /**
127
- * Update callback for the dynamic literal scenario,
128
- * e.g. v-component="{{view}}"
129
- */
130
-
131
- update: function (value) {
132
- if (!value) {
133
- // just destroy and remove current
134
- this.unbuild()
135
- this.removeCurrent()
136
- this.childVM = null
137
- } else {
138
- this.resolveCtor(value)
139
- this.unbuild()
140
- var newComponent = this.build()
141
- var self = this
142
- if (this.readyEvent) {
143
- newComponent.$once(this.readyEvent, function () {
144
- self.swapTo(newComponent)
145
- })
146
- } else {
147
- this.swapTo(newComponent)
148
- }
149
- }
150
- },
151
-
152
- /**
153
- * Actually swap the components, depending on the
154
- * transition mode. Defaults to simultaneous.
155
- *
156
- * @param {Vue} target
157
- */
158
-
159
- swapTo: function (target) {
160
- var self = this
161
- switch (self.transMode) {
162
- case 'in-out':
163
- target.$before(self.ref, function () {
164
- self.removeCurrent()
165
- self.childVM = target
166
- })
167
- break
168
- case 'out-in':
169
- self.removeCurrent(function () {
170
- target.$before(self.ref)
171
- self.childVM = target
172
- })
173
- break
174
- default:
175
- self.removeCurrent()
176
- target.$before(self.ref)
177
- self.childVM = target
178
- }
179
- },
180
-
181
- /**
182
- * Unbind.
183
- */
184
-
185
- unbind: function () {
186
- this.unbuild()
187
- // destroy all keep-alive cached instances
188
- if (this.cache) {
189
- for (var key in this.cache) {
190
- this.cache[key].$destroy()
191
- }
192
- this.cache = null
193
- }
194
- }
195
-
196
- }
@@ -1,13 +0,0 @@
1
- module.exports = {
2
-
3
- isLiteral: true,
4
-
5
- bind: function () {
6
- this.vm.$$[this.expression] = this.el
7
- },
8
-
9
- unbind: function () {
10
- delete this.vm.$$[this.expression]
11
- }
12
-
13
- }
@@ -1,38 +0,0 @@
1
- var _ = require('../util')
2
- var templateParser = require('../parsers/template')
3
-
4
- module.exports = {
5
-
6
- bind: function () {
7
- // a comment node means this is a binding for
8
- // {{{ inline unescaped html }}}
9
- if (this.el.nodeType === 8) {
10
- // hold nodes
11
- this.nodes = []
12
- }
13
- },
14
-
15
- update: function (value) {
16
- value = _.toString(value)
17
- if (this.nodes) {
18
- this.swap(value)
19
- } else {
20
- this.el.innerHTML = value
21
- }
22
- },
23
-
24
- swap: function (value) {
25
- // remove old nodes
26
- var i = this.nodes.length
27
- while (i--) {
28
- _.remove(this.nodes[i])
29
- }
30
- // convert new value to a fragment
31
- // do not attempt to retrieve from id selector
32
- var frag = templateParser.parse(value, true, true)
33
- // save a reference to these nodes so we can remove later
34
- this.nodes = _.toArray(frag.childNodes)
35
- _.before(frag, this.el)
36
- }
37
-
38
- }
@@ -1,87 +0,0 @@
1
- var _ = require('../util')
2
- var compile = require('../compiler/compile')
3
- var templateParser = require('../parsers/template')
4
- var transition = require('../transition')
5
-
6
- module.exports = {
7
-
8
- bind: function () {
9
- var el = this.el
10
- if (!el.__vue__) {
11
- this.start = document.createComment('v-if-start')
12
- this.end = document.createComment('v-if-end')
13
- _.replace(el, this.end)
14
- _.before(this.start, this.end)
15
- if (el.tagName === 'TEMPLATE') {
16
- this.template = templateParser.parse(el, true)
17
- } else {
18
- this.template = document.createDocumentFragment()
19
- this.template.appendChild(el)
20
- }
21
- // compile the nested partial
22
- this.linker = compile(
23
- this.template,
24
- this.vm.$options,
25
- true
26
- )
27
- } else {
28
- this.invalid = true
29
- _.warn(
30
- 'v-if="' + this.expression + '" cannot be ' +
31
- 'used on an already mounted instance.'
32
- )
33
- }
34
- },
35
-
36
- update: function (value) {
37
- if (this.invalid) return
38
- if (value) {
39
- this.insert()
40
- } else {
41
- this.teardown()
42
- }
43
- },
44
-
45
- insert: function () {
46
- // avoid duplicate inserts, since update() can be
47
- // called with different truthy values
48
- if (!this.unlink) {
49
- this.compile(this.template)
50
- }
51
- },
52
-
53
- compile: function (template) {
54
- var vm = this.vm
55
- var frag = templateParser.clone(template)
56
- var originalChildLength = vm._children
57
- ? vm._children.length
58
- : 0
59
- this.unlink = this.linker
60
- ? this.linker(vm, frag)
61
- : vm.$compile(frag)
62
- transition.blockAppend(frag, this.end, vm)
63
- this.children = vm._children
64
- ? vm._children.slice(originalChildLength)
65
- : null
66
- if (this.children && _.inDoc(vm.$el)) {
67
- this.children.forEach(function (child) {
68
- child._callHook('attached')
69
- })
70
- }
71
- },
72
-
73
- teardown: function () {
74
- if (!this.unlink) return
75
- transition.blockRemove(this.start, this.end, this.vm)
76
- if (this.children && _.inDoc(this.vm.$el)) {
77
- this.children.forEach(function (child) {
78
- if (!child._isDestroyed) {
79
- child._callHook('detached')
80
- }
81
- })
82
- }
83
- this.unlink()
84
- this.unlink = null
85
- }
86
-
87
- }
@@ -1,22 +0,0 @@
1
- // manipulation directives
2
- exports.text = require('./text')
3
- exports.html = require('./html')
4
- exports.attr = require('./attr')
5
- exports.show = require('./show')
6
- exports['class'] = require('./class')
7
- exports.el = require('./el')
8
- exports.ref = require('./ref')
9
- exports.cloak = require('./cloak')
10
- exports.style = require('./style')
11
- exports.partial = require('./partial')
12
- exports.transition = require('./transition')
13
-
14
- // event listener directives
15
- exports.on = require('./on')
16
- exports.model = require('./model')
17
-
18
- // child vm directives
19
- exports.component = require('./component')
20
- exports.repeat = require('./repeat')
21
- exports['if'] = require('./if')
22
- exports['with'] = require('./with')
@@ -1,25 +0,0 @@
1
- var _ = require('../../util')
2
-
3
- module.exports = {
4
-
5
- bind: function () {
6
- var self = this
7
- var el = this.el
8
- this.listener = function () {
9
- self.set(el.checked, true)
10
- }
11
- _.on(el, 'change', this.listener)
12
- if (el.checked) {
13
- this._initValue = el.checked
14
- }
15
- },
16
-
17
- update: function (value) {
18
- this.el.checked = !!value
19
- },
20
-
21
- unbind: function () {
22
- _.off(this.el, 'change', this.listener)
23
- }
24
-
25
- }
@@ -1,123 +0,0 @@
1
- var _ = require('../../util')
2
-
3
- module.exports = {
4
-
5
- bind: function () {
6
- var self = this
7
- var el = this.el
8
-
9
- // check params
10
- // - lazy: update model on "change" instead of "input"
11
- var lazy = this._checkParam('lazy') != null
12
- // - number: cast value into number when updating model.
13
- var number = this._checkParam('number') != null
14
-
15
- // handle composition events.
16
- // http://blog.evanyou.me/2014/01/03/composition-event/
17
- var cpLocked = false
18
- this.cpLock = function () {
19
- cpLocked = true
20
- }
21
- this.cpUnlock = function () {
22
- cpLocked = false
23
- // in IE11 the "compositionend" event fires AFTER
24
- // the "input" event, so the input handler is blocked
25
- // at the end... have to call it here.
26
- set()
27
- }
28
- _.on(el,'compositionstart', this.cpLock)
29
- _.on(el,'compositionend', this.cpUnlock)
30
-
31
- // shared setter
32
- function set () {
33
- self.set(
34
- number ? _.toNumber(el.value) : el.value,
35
- true
36
- )
37
- }
38
-
39
- // if the directive has filters, we need to
40
- // record cursor position and restore it after updating
41
- // the input with the filtered value.
42
- // also force update for type="range" inputs to enable
43
- // "lock in range" (see #506)
44
- this.listener = this.filters || el.type === 'range'
45
- ? function textInputListener () {
46
- if (cpLocked) return
47
- var charsOffset
48
- // some HTML5 input types throw error here
49
- try {
50
- // record how many chars from the end of input
51
- // the cursor was at
52
- charsOffset = el.value.length - el.selectionStart
53
- } catch (e) {}
54
- // Fix IE10/11 infinite update cycle
55
- // https://github.com/yyx990803/vue/issues/592
56
- /* istanbul ignore if */
57
- if (charsOffset < 0) {
58
- return
59
- }
60
- set()
61
- _.nextTick(function () {
62
- // force a value update, because in
63
- // certain cases the write filters output the
64
- // same result for different input values, and
65
- // the Observer set events won't be triggered.
66
- var newVal = self._watcher.value
67
- self.update(newVal)
68
- if (charsOffset != null) {
69
- var cursorPos =
70
- _.toString(newVal).length - charsOffset
71
- el.setSelectionRange(cursorPos, cursorPos)
72
- }
73
- })
74
- }
75
- : function textInputListener () {
76
- if (cpLocked) return
77
- set()
78
- }
79
-
80
- this.event = lazy ? 'change' : 'input'
81
- _.on(el, this.event, this.listener)
82
-
83
- // IE9 doesn't fire input event on backspace/del/cut
84
- if (!lazy && _.isIE9) {
85
- this.onCut = function () {
86
- _.nextTick(self.listener)
87
- }
88
- this.onDel = function (e) {
89
- if (e.keyCode === 46 || e.keyCode === 8) {
90
- self.listener()
91
- }
92
- }
93
- _.on(el, 'cut', this.onCut)
94
- _.on(el, 'keyup', this.onDel)
95
- }
96
-
97
- // set initial value if present
98
- if (
99
- el.hasAttribute('value') ||
100
- (el.tagName === 'TEXTAREA' && el.value.trim())
101
- ) {
102
- this._initValue = number
103
- ? _.toNumber(el.value)
104
- : el.value
105
- }
106
- },
107
-
108
- update: function (value) {
109
- this.el.value = _.toString(value)
110
- },
111
-
112
- unbind: function () {
113
- var el = this.el
114
- _.off(el, this.event, this.listener)
115
- _.off(el,'compositionstart', this.cpLock)
116
- _.off(el,'compositionend', this.cpUnlock)
117
- if (this.onCut) {
118
- _.off(el,'cut', this.onCut)
119
- _.off(el,'keyup', this.onDel)
120
- }
121
- }
122
-
123
- }