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,176 +0,0 @@
1
- var _ = require('../util')
2
-
3
- /**
4
- * Listen on the given `event` with `fn`.
5
- *
6
- * @param {String} event
7
- * @param {Function} fn
8
- */
9
-
10
- exports.$on = function (event, fn) {
11
- (this._events[event] || (this._events[event] = []))
12
- .push(fn)
13
- modifyListenerCount(this, event, 1)
14
- return this
15
- }
16
-
17
- /**
18
- * Adds an `event` listener that will be invoked a single
19
- * time then automatically removed.
20
- *
21
- * @param {String} event
22
- * @param {Function} fn
23
- */
24
-
25
- exports.$once = function (event, fn) {
26
- var self = this
27
- function on () {
28
- self.$off(event, on)
29
- fn.apply(this, arguments)
30
- }
31
- on.fn = fn
32
- this.$on(event, on)
33
- return this
34
- }
35
-
36
- /**
37
- * Remove the given callback for `event` or all
38
- * registered callbacks.
39
- *
40
- * @param {String} event
41
- * @param {Function} fn
42
- */
43
-
44
- exports.$off = function (event, fn) {
45
- var cbs
46
- // all
47
- if (!arguments.length) {
48
- if (this.$parent) {
49
- for (event in this._events) {
50
- cbs = this._events[event]
51
- if (cbs) {
52
- modifyListenerCount(this, event, -cbs.length)
53
- }
54
- }
55
- }
56
- this._events = {}
57
- return this
58
- }
59
- // specific event
60
- cbs = this._events[event]
61
- if (!cbs) {
62
- return this
63
- }
64
- if (arguments.length === 1) {
65
- modifyListenerCount(this, event, -cbs.length)
66
- this._events[event] = null
67
- return this
68
- }
69
- // specific handler
70
- var cb
71
- var i = cbs.length
72
- while (i--) {
73
- cb = cbs[i]
74
- if (cb === fn || cb.fn === fn) {
75
- modifyListenerCount(this, event, -1)
76
- cbs.splice(i, 1)
77
- break
78
- }
79
- }
80
- return this
81
- }
82
-
83
- /**
84
- * Trigger an event on self.
85
- *
86
- * @param {String} event
87
- */
88
-
89
- exports.$emit = function (event) {
90
- this._eventCancelled = false
91
- var cbs = this._events[event]
92
- if (cbs) {
93
- // avoid leaking arguments:
94
- // http://jsperf.com/closure-with-arguments
95
- var i = arguments.length - 1
96
- var args = new Array(i)
97
- while (i--) {
98
- args[i] = arguments[i + 1]
99
- }
100
- i = 0
101
- cbs = cbs.length > 1
102
- ? _.toArray(cbs)
103
- : cbs
104
- for (var l = cbs.length; i < l; i++) {
105
- if (cbs[i].apply(this, args) === false) {
106
- this._eventCancelled = true
107
- }
108
- }
109
- }
110
- return this
111
- }
112
-
113
- /**
114
- * Recursively broadcast an event to all children instances.
115
- *
116
- * @param {String} event
117
- * @param {...*} additional arguments
118
- */
119
-
120
- exports.$broadcast = function (event) {
121
- // if no child has registered for this event,
122
- // then there's no need to broadcast.
123
- if (!this._eventsCount[event]) return
124
- var children = this._children
125
- if (children) {
126
- for (var i = 0, l = children.length; i < l; i++) {
127
- var child = children[i]
128
- child.$emit.apply(child, arguments)
129
- if (!child._eventCancelled) {
130
- child.$broadcast.apply(child, arguments)
131
- }
132
- }
133
- }
134
- return this
135
- }
136
-
137
- /**
138
- * Recursively propagate an event up the parent chain.
139
- *
140
- * @param {String} event
141
- * @param {...*} additional arguments
142
- */
143
-
144
- exports.$dispatch = function () {
145
- var parent = this.$parent
146
- while (parent) {
147
- parent.$emit.apply(parent, arguments)
148
- parent = parent._eventCancelled
149
- ? null
150
- : parent.$parent
151
- }
152
- return this
153
- }
154
-
155
- /**
156
- * Modify the listener counts on all parents.
157
- * This bookkeeping allows $broadcast to return early when
158
- * no child has listened to a certain event.
159
- *
160
- * @param {Vue} vm
161
- * @param {String} event
162
- * @param {Number} count
163
- */
164
-
165
- var hookRE = /^hook:/
166
- function modifyListenerCount (vm, event, count) {
167
- var parent = vm.$parent
168
- // hooks do not get broadcasted so no need
169
- // to do bookkeeping for them
170
- if (!parent || !count || hookRE.test(event)) return
171
- while (parent) {
172
- parent._eventsCount[event] =
173
- (parent._eventsCount[event] || 0) + count
174
- parent = parent.$parent
175
- }
176
- }
@@ -1,146 +0,0 @@
1
- var _ = require('../util')
2
- var mergeOptions = require('../util/merge-option')
3
-
4
- /**
5
- * Expose useful internals
6
- */
7
-
8
- exports.util = _
9
- exports.nextTick = _.nextTick
10
- exports.config = require('../config')
11
-
12
- exports.compiler = {
13
- compile: require('../compiler/compile'),
14
- transclude: require('../compiler/transclude')
15
- }
16
-
17
- exports.parsers = {
18
- path: require('../parsers/path'),
19
- text: require('../parsers/text'),
20
- template: require('../parsers/template'),
21
- directive: require('../parsers/directive'),
22
- expression: require('../parsers/expression')
23
- }
24
-
25
- /**
26
- * Each instance constructor, including Vue, has a unique
27
- * cid. This enables us to create wrapped "child
28
- * constructors" for prototypal inheritance and cache them.
29
- */
30
-
31
- exports.cid = 0
32
- var cid = 1
33
-
34
- /**
35
- * Class inehritance
36
- *
37
- * @param {Object} extendOptions
38
- */
39
-
40
- exports.extend = function (extendOptions) {
41
- extendOptions = extendOptions || {}
42
- var Super = this
43
- var Sub = createClass(extendOptions.name || 'VueComponent')
44
- Sub.prototype = Object.create(Super.prototype)
45
- Sub.prototype.constructor = Sub
46
- Sub.cid = cid++
47
- Sub.options = mergeOptions(
48
- Super.options,
49
- extendOptions
50
- )
51
- Sub['super'] = Super
52
- // allow further extension
53
- Sub.extend = Super.extend
54
- // create asset registers, so extended classes
55
- // can have their private assets too.
56
- createAssetRegisters(Sub)
57
- return Sub
58
- }
59
-
60
- /**
61
- * A function that returns a sub-class constructor with the
62
- * given name. This gives us much nicer output when
63
- * logging instances in the console.
64
- *
65
- * @param {String} name
66
- * @return {Function}
67
- */
68
-
69
- function createClass (name) {
70
- return new Function(
71
- 'return function ' + _.camelize(name, true) +
72
- ' (options) { this._init(options) }'
73
- )()
74
- }
75
-
76
- /**
77
- * Plugin system
78
- *
79
- * @param {Object} plugin
80
- */
81
-
82
- exports.use = function (plugin) {
83
- // additional parameters
84
- var args = _.toArray(arguments, 1)
85
- args.unshift(this)
86
- if (typeof plugin.install === 'function') {
87
- plugin.install.apply(plugin, args)
88
- } else {
89
- plugin.apply(null, args)
90
- }
91
- return this
92
- }
93
-
94
- /**
95
- * Define asset registration methods on a constructor.
96
- *
97
- * @param {Function} Constructor
98
- */
99
-
100
- var assetTypes = [
101
- 'directive',
102
- 'filter',
103
- 'partial',
104
- 'transition'
105
- ]
106
-
107
- function createAssetRegisters (Constructor) {
108
-
109
- /* Asset registration methods share the same signature:
110
- *
111
- * @param {String} id
112
- * @param {*} definition
113
- */
114
-
115
- assetTypes.forEach(function (type) {
116
- Constructor[type] = function (id, definition) {
117
- if (!definition) {
118
- return this.options[type + 's'][id]
119
- } else {
120
- this.options[type + 's'][id] = definition
121
- }
122
- }
123
- })
124
-
125
- /**
126
- * Component registration needs to automatically invoke
127
- * Vue.extend on object values.
128
- *
129
- * @param {String} id
130
- * @param {Object|Function} definition
131
- */
132
-
133
- Constructor.component = function (id, definition) {
134
- if (!definition) {
135
- return this.options.components[id]
136
- } else {
137
- if (_.isPlainObject(definition)) {
138
- definition.name = id
139
- definition = _.Vue.extend(definition)
140
- }
141
- this.options.components[id] = definition
142
- }
143
- }
144
- }
145
-
146
- createAssetRegisters(exports)
@@ -1,72 +0,0 @@
1
- var _ = require('../util')
2
- var compile = require('../compiler/compile')
3
-
4
- /**
5
- * Set instance target element and kick off the compilation
6
- * process. The passed in `el` can be a selector string, an
7
- * existing Element, or a DocumentFragment (for block
8
- * instances).
9
- *
10
- * @param {Element|DocumentFragment|string} el
11
- * @public
12
- */
13
-
14
- exports.$mount = function (el) {
15
- if (this._isCompiled) {
16
- _.warn('$mount() should be called only once.')
17
- return
18
- }
19
- if (!el) {
20
- el = document.createElement('div')
21
- } else if (typeof el === 'string') {
22
- var selector = el
23
- el = document.querySelector(el)
24
- if (!el) {
25
- _.warn('Cannot find element: ' + selector)
26
- return
27
- }
28
- }
29
- this._compile(el)
30
- this._isCompiled = true
31
- this._callHook('compiled')
32
- if (_.inDoc(this.$el)) {
33
- this._callHook('attached')
34
- this._initDOMHooks()
35
- ready.call(this)
36
- } else {
37
- this._initDOMHooks()
38
- this.$once('hook:attached', ready)
39
- }
40
- return this
41
- }
42
-
43
- /**
44
- * Mark an instance as ready.
45
- */
46
-
47
- function ready () {
48
- this._isAttached = true
49
- this._isReady = true
50
- this._callHook('ready')
51
- }
52
-
53
- /**
54
- * Teardown the instance, simply delegate to the internal
55
- * _destroy.
56
- */
57
-
58
- exports.$destroy = function (remove, deferCleanup) {
59
- this._destroy(remove, deferCleanup)
60
- }
61
-
62
- /**
63
- * Partially compile a piece of DOM and return a
64
- * decompile function.
65
- *
66
- * @param {Element|DocumentFragment} el
67
- * @return {Function}
68
- */
69
-
70
- exports.$compile = function (el) {
71
- return compile(el, this.$options, true)(this, el)
72
- }
@@ -1,65 +0,0 @@
1
- var _ = require('./util')
2
-
3
- /**
4
- * The Batcher maintains a job queue to be run
5
- * async on the next event loop.
6
- */
7
-
8
- function Batcher () {
9
- this.reset()
10
- }
11
-
12
- var p = Batcher.prototype
13
-
14
- /**
15
- * Push a job into the job queue.
16
- * Jobs with duplicate IDs will be skipped unless it's
17
- * pushed when the queue is being flushed.
18
- *
19
- * @param {Object} job
20
- * properties:
21
- * - {String|Number} id
22
- * - {Function} run
23
- */
24
-
25
- p.push = function (job) {
26
- if (!job.id || !this.has[job.id] || this.flushing) {
27
- this.queue.push(job)
28
- this.has[job.id] = job
29
- if (!this.waiting) {
30
- this.waiting = true
31
- _.nextTick(this.flush, this)
32
- }
33
- }
34
- }
35
-
36
- /**
37
- * Flush the queue and run the jobs.
38
- * Will call a preFlush hook if has one.
39
- */
40
-
41
- p.flush = function () {
42
- this.flushing = true
43
- // do not cache length because more jobs might be pushed
44
- // as we run existing jobs
45
- for (var i = 0; i < this.queue.length; i++) {
46
- var job = this.queue[i]
47
- if (!job.cancelled) {
48
- job.run()
49
- }
50
- }
51
- this.reset()
52
- }
53
-
54
- /**
55
- * Reset the batcher's state.
56
- */
57
-
58
- p.reset = function () {
59
- this.has = {}
60
- this.queue = []
61
- this.waiting = false
62
- this.flushing = false
63
- }
64
-
65
- module.exports = Batcher