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,100 +0,0 @@
1
- // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
- // Distributed under an MIT license: http://codemirror.net/LICENSE
3
-
4
- (function(mod) {
5
- if (typeof exports == "object" && typeof module == "object") // CommonJS
6
- mod(require("../../lib/codemirror"));
7
- else if (typeof define == "function" && define.amd) // AMD
8
- define(["../../lib/codemirror"], mod);
9
- else // Plain browser env
10
- mod(CodeMirror);
11
- })(function(CodeMirror) {
12
- "use strict";
13
-
14
- CodeMirror.defineMode('z80', function() {
15
- var keywords1 = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i;
16
- var keywords2 = /^(call|j[pr]|ret[in]?)\b/i;
17
- var keywords3 = /^b_?(call|jump)\b/i;
18
- var variables1 = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i;
19
- var variables2 = /^(n?[zc]|p[oe]?|m)\b/i;
20
- var errors = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i;
21
- var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+)\b/i;
22
-
23
- return {
24
- startState: function() {
25
- return {context: 0};
26
- },
27
- token: function(stream, state) {
28
- if (!stream.column())
29
- state.context = 0;
30
-
31
- if (stream.eatSpace())
32
- return null;
33
-
34
- var w;
35
-
36
- if (stream.eatWhile(/\w/)) {
37
- w = stream.current();
38
-
39
- if (stream.indentation()) {
40
- if (state.context == 1 && variables1.test(w))
41
- return 'variable-2';
42
-
43
- if (state.context == 2 && variables2.test(w))
44
- return 'variable-3';
45
-
46
- if (keywords1.test(w)) {
47
- state.context = 1;
48
- return 'keyword';
49
- } else if (keywords2.test(w)) {
50
- state.context = 2;
51
- return 'keyword';
52
- } else if (keywords3.test(w)) {
53
- state.context = 3;
54
- return 'keyword';
55
- }
56
-
57
- if (errors.test(w))
58
- return 'error';
59
- } else if (numbers.test(w)) {
60
- return 'number';
61
- } else {
62
- return null;
63
- }
64
- } else if (stream.eat(';')) {
65
- stream.skipToEnd();
66
- return 'comment';
67
- } else if (stream.eat('"')) {
68
- while (w = stream.next()) {
69
- if (w == '"')
70
- break;
71
-
72
- if (w == '\\')
73
- stream.next();
74
- }
75
- return 'string';
76
- } else if (stream.eat('\'')) {
77
- if (stream.match(/\\?.'/))
78
- return 'number';
79
- } else if (stream.eat('.') || stream.sol() && stream.eat('#')) {
80
- state.context = 4;
81
-
82
- if (stream.eatWhile(/\w/))
83
- return 'def';
84
- } else if (stream.eat('$')) {
85
- if (stream.eatWhile(/[\da-f]/i))
86
- return 'number';
87
- } else if (stream.eat('%')) {
88
- if (stream.eatWhile(/[01]/))
89
- return 'number';
90
- } else {
91
- stream.next();
92
- }
93
- return null;
94
- }
95
- };
96
- });
97
-
98
- CodeMirror.defineMIME("text/x-z80", "z80");
99
-
100
- });
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2013-2014 Yuxi Evan You
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,53 +0,0 @@
1
- var _ = require('../util')
2
-
3
- /**
4
- * Create a child instance that prototypally inehrits
5
- * data on parent. To achieve that we create an intermediate
6
- * constructor with its prototype pointing to parent.
7
- *
8
- * @param {Object} opts
9
- * @param {Function} [BaseCtor]
10
- * @return {Vue}
11
- * @public
12
- */
13
-
14
- exports.$addChild = function (opts, BaseCtor) {
15
- BaseCtor = BaseCtor || _.Vue
16
- opts = opts || {}
17
- var parent = this
18
- var ChildVue
19
- var inherit = opts.inherit !== undefined
20
- ? opts.inherit
21
- : BaseCtor.options.inherit
22
- if (inherit) {
23
- var ctors = parent._childCtors
24
- if (!ctors) {
25
- ctors = parent._childCtors = {}
26
- }
27
- ChildVue = ctors[BaseCtor.cid]
28
- if (!ChildVue) {
29
- var optionName = BaseCtor.options.name
30
- var className = optionName
31
- ? _.camelize(optionName, true)
32
- : 'VueComponent'
33
- ChildVue = new Function(
34
- 'return function ' + className + ' (options) {' +
35
- 'this.constructor = ' + className + ';' +
36
- 'this._init(options) }'
37
- )()
38
- ChildVue.options = BaseCtor.options
39
- ChildVue.prototype = this
40
- ctors[BaseCtor.cid] = ChildVue
41
- }
42
- } else {
43
- ChildVue = BaseCtor
44
- }
45
- opts._parent = parent
46
- opts._root = parent.$root
47
- var child = new ChildVue(opts)
48
- if (!this._children) {
49
- this._children = []
50
- }
51
- this._children.push(child)
52
- return child
53
- }
@@ -1,161 +0,0 @@
1
- var _ = require('../util')
2
- var Watcher = require('../watcher')
3
- var Path = require('../parsers/path')
4
- var textParser = require('../parsers/text')
5
- var dirParser = require('../parsers/directive')
6
- var expParser = require('../parsers/expression')
7
- var filterRE = /[^|]\|[^|]/
8
-
9
- /**
10
- * Get the value from an expression on this vm.
11
- *
12
- * @param {String} exp
13
- * @return {*}
14
- */
15
-
16
- exports.$get = function (exp) {
17
- var res = expParser.parse(exp)
18
- if (res) {
19
- return res.get.call(this, this)
20
- }
21
- }
22
-
23
- /**
24
- * Set the value from an expression on this vm.
25
- * The expression must be a valid left-hand
26
- * expression in an assignment.
27
- *
28
- * @param {String} exp
29
- * @param {*} val
30
- */
31
-
32
- exports.$set = function (exp, val) {
33
- var res = expParser.parse(exp, true)
34
- if (res && res.set) {
35
- res.set.call(this, this, val)
36
- }
37
- }
38
-
39
- /**
40
- * Add a property on the VM
41
- *
42
- * @param {String} key
43
- * @param {*} val
44
- */
45
-
46
- exports.$add = function (key, val) {
47
- this._data.$add(key, val)
48
- }
49
-
50
- /**
51
- * Delete a property on the VM
52
- *
53
- * @param {String} key
54
- */
55
-
56
- exports.$delete = function (key) {
57
- this._data.$delete(key)
58
- }
59
-
60
- /**
61
- * Watch an expression, trigger callback when its
62
- * value changes.
63
- *
64
- * @param {String} exp
65
- * @param {Function} cb
66
- * @param {Boolean} [deep]
67
- * @param {Boolean} [immediate]
68
- * @return {Function} - unwatchFn
69
- */
70
-
71
- exports.$watch = function (exp, cb, deep, immediate) {
72
- var vm = this
73
- var key = deep ? exp + '**deep**' : exp
74
- var watcher = vm._userWatchers[key]
75
- var wrappedCb = function (val, oldVal) {
76
- cb.call(vm, val, oldVal)
77
- }
78
- if (!watcher) {
79
- watcher = vm._userWatchers[key] =
80
- new Watcher(vm, exp, wrappedCb, null, false, deep)
81
- } else {
82
- watcher.addCb(wrappedCb)
83
- }
84
- if (immediate) {
85
- wrappedCb(watcher.value)
86
- }
87
- return function unwatchFn () {
88
- watcher.removeCb(wrappedCb)
89
- if (!watcher.active) {
90
- vm._userWatchers[key] = null
91
- }
92
- }
93
- }
94
-
95
- /**
96
- * Evaluate a text directive, including filters.
97
- *
98
- * @param {String} text
99
- * @return {String}
100
- */
101
-
102
- exports.$eval = function (text) {
103
- // check for filters.
104
- if (filterRE.test(text)) {
105
- var dir = dirParser.parse(text)[0]
106
- // the filter regex check might give false positive
107
- // for pipes inside strings, so it's possible that
108
- // we don't get any filters here
109
- return dir.filters
110
- ? _.applyFilters(
111
- this.$get(dir.expression),
112
- _.resolveFilters(this, dir.filters).read,
113
- this
114
- )
115
- : this.$get(dir.expression)
116
- } else {
117
- // no filter
118
- return this.$get(text)
119
- }
120
- }
121
-
122
- /**
123
- * Interpolate a piece of template text.
124
- *
125
- * @param {String} text
126
- * @return {String}
127
- */
128
-
129
- exports.$interpolate = function (text) {
130
- var tokens = textParser.parse(text)
131
- var vm = this
132
- if (tokens) {
133
- return tokens.length === 1
134
- ? vm.$eval(tokens[0].value)
135
- : tokens.map(function (token) {
136
- return token.tag
137
- ? vm.$eval(token.value)
138
- : token.value
139
- }).join('')
140
- } else {
141
- return text
142
- }
143
- }
144
-
145
- /**
146
- * Log instance data as a plain JS object
147
- * so that it is easier to inspect in console.
148
- * This method assumes console is available.
149
- *
150
- * @param {String} [path]
151
- */
152
-
153
- exports.$log = function (path) {
154
- var data = path
155
- ? Path.get(this._data, path)
156
- : this._data
157
- if (data) {
158
- data = JSON.parse(JSON.stringify(data))
159
- }
160
- console.log(data)
161
- }
@@ -1,211 +0,0 @@
1
- var _ = require('../util')
2
- var transition = require('../transition')
3
-
4
- /**
5
- * Append instance to target
6
- *
7
- * @param {Node} target
8
- * @param {Function} [cb]
9
- * @param {Boolean} [withTransition] - defaults to true
10
- */
11
-
12
- exports.$appendTo = function (target, cb, withTransition) {
13
- return insert(
14
- this, target, cb, withTransition,
15
- append, transition.append
16
- )
17
- }
18
-
19
- /**
20
- * Prepend instance to target
21
- *
22
- * @param {Node} target
23
- * @param {Function} [cb]
24
- * @param {Boolean} [withTransition] - defaults to true
25
- */
26
-
27
- exports.$prependTo = function (target, cb, withTransition) {
28
- target = query(target)
29
- if (target.hasChildNodes()) {
30
- this.$before(target.firstChild, cb, withTransition)
31
- } else {
32
- this.$appendTo(target, cb, withTransition)
33
- }
34
- return this
35
- }
36
-
37
- /**
38
- * Insert instance before target
39
- *
40
- * @param {Node} target
41
- * @param {Function} [cb]
42
- * @param {Boolean} [withTransition] - defaults to true
43
- */
44
-
45
- exports.$before = function (target, cb, withTransition) {
46
- return insert(
47
- this, target, cb, withTransition,
48
- before, transition.before
49
- )
50
- }
51
-
52
- /**
53
- * Insert instance after target
54
- *
55
- * @param {Node} target
56
- * @param {Function} [cb]
57
- * @param {Boolean} [withTransition] - defaults to true
58
- */
59
-
60
- exports.$after = function (target, cb, withTransition) {
61
- target = query(target)
62
- if (target.nextSibling) {
63
- this.$before(target.nextSibling, cb, withTransition)
64
- } else {
65
- this.$appendTo(target.parentNode, cb, withTransition)
66
- }
67
- return this
68
- }
69
-
70
- /**
71
- * Remove instance from DOM
72
- *
73
- * @param {Function} [cb]
74
- * @param {Boolean} [withTransition] - defaults to true
75
- */
76
-
77
- exports.$remove = function (cb, withTransition) {
78
- var inDoc = this._isAttached && _.inDoc(this.$el)
79
- // if we are not in document, no need to check
80
- // for transitions
81
- if (!inDoc) withTransition = false
82
- var op
83
- var self = this
84
- var realCb = function () {
85
- if (inDoc) self._callHook('detached')
86
- if (cb) cb()
87
- }
88
- if (
89
- this._isBlock &&
90
- !this._blockFragment.hasChildNodes()
91
- ) {
92
- op = withTransition === false
93
- ? append
94
- : transition.removeThenAppend
95
- blockOp(this, this._blockFragment, op, realCb)
96
- } else {
97
- op = withTransition === false
98
- ? remove
99
- : transition.remove
100
- op(this.$el, this, realCb)
101
- }
102
- return this
103
- }
104
-
105
- /**
106
- * Shared DOM insertion function.
107
- *
108
- * @param {Vue} vm
109
- * @param {Element} target
110
- * @param {Function} [cb]
111
- * @param {Boolean} [withTransition]
112
- * @param {Function} op1 - op for non-transition insert
113
- * @param {Function} op2 - op for transition insert
114
- * @return vm
115
- */
116
-
117
- function insert (vm, target, cb, withTransition, op1, op2) {
118
- target = query(target)
119
- var targetIsDetached = !_.inDoc(target)
120
- var op = withTransition === false || targetIsDetached
121
- ? op1
122
- : op2
123
- var shouldCallHook =
124
- !targetIsDetached &&
125
- !vm._isAttached &&
126
- !_.inDoc(vm.$el)
127
- if (vm._isBlock) {
128
- blockOp(vm, target, op, cb)
129
- } else {
130
- op(vm.$el, target, vm, cb)
131
- }
132
- if (shouldCallHook) {
133
- vm._callHook('attached')
134
- }
135
- return vm
136
- }
137
-
138
- /**
139
- * Execute a transition operation on a block instance,
140
- * iterating through all its block nodes.
141
- *
142
- * @param {Vue} vm
143
- * @param {Node} target
144
- * @param {Function} op
145
- * @param {Function} cb
146
- */
147
-
148
- function blockOp (vm, target, op, cb) {
149
- var current = vm._blockStart
150
- var end = vm._blockEnd
151
- var next
152
- while (next !== end) {
153
- next = current.nextSibling
154
- op(current, target, vm)
155
- current = next
156
- }
157
- op(end, target, vm, cb)
158
- }
159
-
160
- /**
161
- * Check for selectors
162
- *
163
- * @param {String|Element} el
164
- */
165
-
166
- function query (el) {
167
- return typeof el === 'string'
168
- ? document.querySelector(el)
169
- : el
170
- }
171
-
172
- /**
173
- * Append operation that takes a callback.
174
- *
175
- * @param {Node} el
176
- * @param {Node} target
177
- * @param {Vue} vm - unused
178
- * @param {Function} [cb]
179
- */
180
-
181
- function append (el, target, vm, cb) {
182
- target.appendChild(el)
183
- if (cb) cb()
184
- }
185
-
186
- /**
187
- * InsertBefore operation that takes a callback.
188
- *
189
- * @param {Node} el
190
- * @param {Node} target
191
- * @param {Vue} vm - unused
192
- * @param {Function} [cb]
193
- */
194
-
195
- function before (el, target, vm, cb) {
196
- _.before(el, target)
197
- if (cb) cb()
198
- }
199
-
200
- /**
201
- * Remove operation that takes a callback.
202
- *
203
- * @param {Node} el
204
- * @param {Vue} vm - unused
205
- * @param {Function} [cb]
206
- */
207
-
208
- function remove (el, vm, cb) {
209
- _.remove(el)
210
- if (cb) cb()
211
- }