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.
- data/ChangeLog +9 -0
- data/Gemfile.lock +47 -44
- data/README.md +4 -4
- data/app/assets/javascripts/vue/in_tail_format.js +7 -2
- data/app/assets/stylesheets/common.css.scss +16 -0
- data/app/controllers/concerns/setting_history_concern.rb +6 -0
- data/app/controllers/fluentd/settings_controller.rb +37 -8
- data/app/models/fluent_gem.rb +6 -3
- data/app/models/fluentd/agent.rb +1 -0
- data/app/models/fluentd/agent/common.rb +4 -0
- data/app/models/fluentd/agent/fluentd_gem.rb +9 -13
- data/app/models/fluentd/agent/local_common.rb +23 -0
- data/app/models/fluentd/agent/td_agent.rb +4 -0
- data/app/models/fluentd/agent/td_agent/macosx.rb +0 -4
- data/app/models/fluentd/agent/td_agent/unix.rb +0 -4
- data/app/views/fluentd/settings/edit.html.haml +1 -3
- data/app/views/fluentd/settings/histories/show.html.haml +10 -0
- data/app/views/fluentd/settings/running_backup/show.html.haml +11 -0
- data/app/views/shared/settings/_diff.html.erb +21 -0
- data/circle.yml +5 -0
- data/config/application.rb +1 -0
- data/config/locales/translation_en.yml +7 -0
- data/config/locales/translation_ja.yml +7 -0
- data/fluentd-ui.gemspec +1 -0
- data/lib/fluentd-ui.rb +5 -1
- data/lib/fluentd-ui/version.rb +1 -1
- data/spec/features/fluentd/setting/histories_spec.rb +23 -1
- data/spec/features/fluentd/setting/running_backup_spec.rb +22 -1
- data/spec/models/fluentd/agent/local_common_spec.rb +4 -2
- data/spec/models/fluentd/agent_spec.rb +1 -48
- data/spec/models/plugin_spec.rb +2 -2
- data/spec/spec_helper.rb +10 -0
- data/spec/support/fluentd_agent_common_behavior.rb +53 -0
- data/vendor/assets/javascripts/bower/.gitignore +10 -0
- data/vendor/assets/javascripts/bower/vue/.bower.json +4 -4
- data/vendor/assets/javascripts/bower/vue/bower.json +17 -0
- data/vendor/assets/javascripts/bower/vue/dist/vue.js +329 -198
- data/vendor/assets/javascripts/bower/vue/dist/vue.min.js +3 -3
- metadata +107 -291
- checksums.yaml +0 -7
- data/vendor/assets/javascripts/bower/codemirror/AUTHORS +0 -423
- data/vendor/assets/javascripts/bower/codemirror/CONTRIBUTING.md +0 -76
- data/vendor/assets/javascripts/bower/codemirror/LICENSE +0 -19
- data/vendor/assets/javascripts/bower/codemirror/README.md +0 -11
- data/vendor/assets/javascripts/bower/codemirror/addon/comment/comment.js +0 -183
- data/vendor/assets/javascripts/bower/codemirror/addon/comment/continuecomment.js +0 -85
- data/vendor/assets/javascripts/bower/codemirror/addon/dialog/dialog.css +0 -32
- data/vendor/assets/javascripts/bower/codemirror/addon/dialog/dialog.js +0 -155
- data/vendor/assets/javascripts/bower/codemirror/addon/display/fullscreen.css +0 -6
- data/vendor/assets/javascripts/bower/codemirror/addon/display/fullscreen.js +0 -41
- data/vendor/assets/javascripts/bower/codemirror/addon/display/panel.js +0 -94
- data/vendor/assets/javascripts/bower/codemirror/addon/display/placeholder.js +0 -58
- data/vendor/assets/javascripts/bower/codemirror/addon/display/rulers.js +0 -64
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/closebrackets.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/closetag.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/continuelist.js +0 -51
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/matchbrackets.js +0 -120
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/matchtags.js +0 -66
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/trailingspace.js +0 -27
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/brace-fold.js +0 -105
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/comment-fold.js +0 -57
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldcode.js +0 -145
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldgutter.css +0 -20
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldgutter.js +0 -134
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/indent-fold.js +0 -44
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/markdown-fold.js +0 -49
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/xml-fold.js +0 -182
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/anyword-hint.js +0 -41
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/css-hint.js +0 -56
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/html-hint.js +0 -348
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/javascript-hint.js +0 -146
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/show-hint.css +0 -38
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/show-hint.js +0 -389
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/sql-hint.js +0 -197
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/xml-hint.js +0 -110
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/coffeescript-lint.js +0 -41
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/css-lint.js +0 -35
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/javascript-lint.js +0 -136
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/json-lint.js +0 -31
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/lint.css +0 -73
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/lint.js +0 -204
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/yaml-lint.js +0 -28
- data/vendor/assets/javascripts/bower/codemirror/addon/merge/merge.css +0 -112
- data/vendor/assets/javascripts/bower/codemirror/addon/merge/merge.js +0 -643
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/loadmode.js +0 -64
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/multiplex.js +0 -118
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/multiplex_test.js +0 -33
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/overlay.js +0 -85
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/simple.js +0 -213
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/colorize.js +0 -40
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode-standalone.js +0 -157
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode.js +0 -72
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode.node.js +0 -120
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/annotatescrollbar.js +0 -76
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/scrollpastend.js +0 -46
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/simplescrollbars.css +0 -66
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/simplescrollbars.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/addon/search/match-highlighter.js +0 -128
- data/vendor/assets/javascripts/bower/codemirror/addon/search/matchesonscrollbar.css +0 -8
- data/vendor/assets/javascripts/bower/codemirror/addon/search/matchesonscrollbar.js +0 -90
- data/vendor/assets/javascripts/bower/codemirror/addon/search/search.js +0 -164
- data/vendor/assets/javascripts/bower/codemirror/addon/search/searchcursor.js +0 -189
- data/vendor/assets/javascripts/bower/codemirror/addon/selection/active-line.js +0 -71
- data/vendor/assets/javascripts/bower/codemirror/addon/selection/mark-selection.js +0 -118
- data/vendor/assets/javascripts/bower/codemirror/addon/tern/tern.css +0 -86
- data/vendor/assets/javascripts/bower/codemirror/addon/tern/tern.js +0 -670
- data/vendor/assets/javascripts/bower/codemirror/addon/tern/worker.js +0 -44
- data/vendor/assets/javascripts/bower/codemirror/addon/wrap/hardwrap.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/keymap/emacs.js +0 -411
- data/vendor/assets/javascripts/bower/codemirror/keymap/sublime.js +0 -540
- data/vendor/assets/javascripts/bower/codemirror/keymap/vim.js +0 -4901
- data/vendor/assets/javascripts/bower/codemirror/mode/apl/apl.js +0 -175
- data/vendor/assets/javascripts/bower/codemirror/mode/asterisk/asterisk.js +0 -198
- data/vendor/assets/javascripts/bower/codemirror/mode/clike/clike.js +0 -489
- data/vendor/assets/javascripts/bower/codemirror/mode/clike/scala.html +0 -767
- data/vendor/assets/javascripts/bower/codemirror/mode/clojure/clojure.js +0 -243
- data/vendor/assets/javascripts/bower/codemirror/mode/cobol/cobol.js +0 -255
- data/vendor/assets/javascripts/bower/codemirror/mode/coffeescript/coffeescript.js +0 -369
- data/vendor/assets/javascripts/bower/codemirror/mode/commonlisp/commonlisp.js +0 -122
- data/vendor/assets/javascripts/bower/codemirror/mode/css/css.js +0 -717
- data/vendor/assets/javascripts/bower/codemirror/mode/css/less.html +0 -152
- data/vendor/assets/javascripts/bower/codemirror/mode/css/less_test.js +0 -51
- data/vendor/assets/javascripts/bower/codemirror/mode/css/scss.html +0 -157
- data/vendor/assets/javascripts/bower/codemirror/mode/css/scss_test.js +0 -110
- data/vendor/assets/javascripts/bower/codemirror/mode/css/test.js +0 -135
- data/vendor/assets/javascripts/bower/codemirror/mode/cypher/cypher.js +0 -146
- data/vendor/assets/javascripts/bower/codemirror/mode/d/d.js +0 -218
- data/vendor/assets/javascripts/bower/codemirror/mode/dart/dart.js +0 -50
- data/vendor/assets/javascripts/bower/codemirror/mode/diff/diff.js +0 -47
- data/vendor/assets/javascripts/bower/codemirror/mode/django/django.js +0 -67
- data/vendor/assets/javascripts/bower/codemirror/mode/dockerfile/dockerfile.js +0 -76
- data/vendor/assets/javascripts/bower/codemirror/mode/dtd/dtd.js +0 -142
- data/vendor/assets/javascripts/bower/codemirror/mode/dylan/dylan.js +0 -299
- data/vendor/assets/javascripts/bower/codemirror/mode/ebnf/ebnf.js +0 -195
- data/vendor/assets/javascripts/bower/codemirror/mode/ecl/ecl.js +0 -207
- data/vendor/assets/javascripts/bower/codemirror/mode/eiffel/eiffel.js +0 -162
- data/vendor/assets/javascripts/bower/codemirror/mode/erlang/erlang.js +0 -622
- data/vendor/assets/javascripts/bower/codemirror/mode/fortran/fortran.js +0 -188
- data/vendor/assets/javascripts/bower/codemirror/mode/gas/gas.js +0 -345
- data/vendor/assets/javascripts/bower/codemirror/mode/gfm/gfm.js +0 -123
- data/vendor/assets/javascripts/bower/codemirror/mode/gfm/test.js +0 -213
- data/vendor/assets/javascripts/bower/codemirror/mode/gherkin/gherkin.js +0 -178
- data/vendor/assets/javascripts/bower/codemirror/mode/go/go.js +0 -184
- data/vendor/assets/javascripts/bower/codemirror/mode/groovy/groovy.js +0 -226
- data/vendor/assets/javascripts/bower/codemirror/mode/haml/haml.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/mode/haml/test.js +0 -97
- data/vendor/assets/javascripts/bower/codemirror/mode/haskell/haskell.js +0 -267
- data/vendor/assets/javascripts/bower/codemirror/mode/haxe/haxe.js +0 -518
- data/vendor/assets/javascripts/bower/codemirror/mode/htmlembedded/htmlembedded.js +0 -86
- data/vendor/assets/javascripts/bower/codemirror/mode/htmlmixed/htmlmixed.js +0 -121
- data/vendor/assets/javascripts/bower/codemirror/mode/http/http.js +0 -113
- data/vendor/assets/javascripts/bower/codemirror/mode/idl/idl.js +0 -290
- data/vendor/assets/javascripts/bower/codemirror/mode/jade/jade.js +0 -590
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/javascript.js +0 -686
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/json-ld.html +0 -72
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/test.js +0 -200
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/typescript.html +0 -61
- data/vendor/assets/javascripts/bower/codemirror/mode/jinja2/jinja2.js +0 -142
- data/vendor/assets/javascripts/bower/codemirror/mode/julia/julia.js +0 -301
- data/vendor/assets/javascripts/bower/codemirror/mode/kotlin/kotlin.js +0 -280
- data/vendor/assets/javascripts/bower/codemirror/mode/livescript/livescript.js +0 -280
- data/vendor/assets/javascripts/bower/codemirror/mode/lua/lua.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/mode/markdown/markdown.js +0 -765
- data/vendor/assets/javascripts/bower/codemirror/mode/markdown/test.js +0 -754
- data/vendor/assets/javascripts/bower/codemirror/mode/meta.js +0 -165
- data/vendor/assets/javascripts/bower/codemirror/mode/mirc/mirc.js +0 -193
- data/vendor/assets/javascripts/bower/codemirror/mode/mllike/mllike.js +0 -205
- data/vendor/assets/javascripts/bower/codemirror/mode/modelica/modelica.js +0 -245
- data/vendor/assets/javascripts/bower/codemirror/mode/nginx/nginx.js +0 -178
- data/vendor/assets/javascripts/bower/codemirror/mode/ntriples/ntriples.js +0 -186
- data/vendor/assets/javascripts/bower/codemirror/mode/octave/octave.js +0 -135
- data/vendor/assets/javascripts/bower/codemirror/mode/pascal/pascal.js +0 -109
- data/vendor/assets/javascripts/bower/codemirror/mode/pegjs/pegjs.js +0 -114
- data/vendor/assets/javascripts/bower/codemirror/mode/perl/perl.js +0 -832
- data/vendor/assets/javascripts/bower/codemirror/mode/php/php.js +0 -226
- data/vendor/assets/javascripts/bower/codemirror/mode/php/test.js +0 -154
- data/vendor/assets/javascripts/bower/codemirror/mode/pig/pig.js +0 -188
- data/vendor/assets/javascripts/bower/codemirror/mode/properties/properties.js +0 -78
- data/vendor/assets/javascripts/bower/codemirror/mode/puppet/puppet.js +0 -220
- data/vendor/assets/javascripts/bower/codemirror/mode/python/python.js +0 -359
- data/vendor/assets/javascripts/bower/codemirror/mode/q/q.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/mode/r/r.js +0 -162
- data/vendor/assets/javascripts/bower/codemirror/mode/rpm/rpm.js +0 -101
- data/vendor/assets/javascripts/bower/codemirror/mode/rst/rst.js +0 -557
- data/vendor/assets/javascripts/bower/codemirror/mode/ruby/ruby.js +0 -285
- data/vendor/assets/javascripts/bower/codemirror/mode/ruby/test.js +0 -14
- data/vendor/assets/javascripts/bower/codemirror/mode/rust/rust.js +0 -451
- data/vendor/assets/javascripts/bower/codemirror/mode/sass/sass.js +0 -327
- data/vendor/assets/javascripts/bower/codemirror/mode/scheme/scheme.js +0 -248
- data/vendor/assets/javascripts/bower/codemirror/mode/shell/shell.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/mode/shell/test.js +0 -58
- data/vendor/assets/javascripts/bower/codemirror/mode/sieve/sieve.js +0 -193
- data/vendor/assets/javascripts/bower/codemirror/mode/slim/slim.js +0 -575
- data/vendor/assets/javascripts/bower/codemirror/mode/slim/test.js +0 -96
- data/vendor/assets/javascripts/bower/codemirror/mode/smalltalk/smalltalk.js +0 -168
- data/vendor/assets/javascripts/bower/codemirror/mode/smarty/smarty.js +0 -221
- data/vendor/assets/javascripts/bower/codemirror/mode/smartymixed/smartymixed.js +0 -197
- data/vendor/assets/javascripts/bower/codemirror/mode/solr/solr.js +0 -104
- data/vendor/assets/javascripts/bower/codemirror/mode/soy/soy.js +0 -198
- data/vendor/assets/javascripts/bower/codemirror/mode/sparql/sparql.js +0 -174
- data/vendor/assets/javascripts/bower/codemirror/mode/spreadsheet/spreadsheet.js +0 -109
- data/vendor/assets/javascripts/bower/codemirror/mode/sql/sql.js +0 -391
- data/vendor/assets/javascripts/bower/codemirror/mode/stex/stex.js +0 -251
- data/vendor/assets/javascripts/bower/codemirror/mode/stex/test.js +0 -123
- data/vendor/assets/javascripts/bower/codemirror/mode/tcl/tcl.js +0 -147
- data/vendor/assets/javascripts/bower/codemirror/mode/textile/test.js +0 -417
- data/vendor/assets/javascripts/bower/codemirror/mode/textile/textile.js +0 -469
- data/vendor/assets/javascripts/bower/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/vendor/assets/javascripts/bower/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -369
- data/vendor/assets/javascripts/bower/codemirror/mode/tiki/tiki.css +0 -26
- data/vendor/assets/javascripts/bower/codemirror/mode/tiki/tiki.js +0 -323
- data/vendor/assets/javascripts/bower/codemirror/mode/toml/toml.js +0 -88
- data/vendor/assets/javascripts/bower/codemirror/mode/tornado/tornado.js +0 -68
- data/vendor/assets/javascripts/bower/codemirror/mode/turtle/turtle.js +0 -162
- data/vendor/assets/javascripts/bower/codemirror/mode/vb/vb.js +0 -274
- data/vendor/assets/javascripts/bower/codemirror/mode/vbscript/vbscript.js +0 -350
- data/vendor/assets/javascripts/bower/codemirror/mode/velocity/velocity.js +0 -201
- data/vendor/assets/javascripts/bower/codemirror/mode/verilog/test.js +0 -273
- data/vendor/assets/javascripts/bower/codemirror/mode/verilog/verilog.js +0 -364
- data/vendor/assets/javascripts/bower/codemirror/mode/xml/test.js +0 -51
- data/vendor/assets/javascripts/bower/codemirror/mode/xml/xml.js +0 -384
- data/vendor/assets/javascripts/bower/codemirror/mode/xquery/test.js +0 -67
- data/vendor/assets/javascripts/bower/codemirror/mode/xquery/xquery.js +0 -447
- data/vendor/assets/javascripts/bower/codemirror/mode/yaml/yaml.js +0 -117
- data/vendor/assets/javascripts/bower/codemirror/mode/z80/z80.js +0 -100
- data/vendor/assets/javascripts/bower/vue/LICENSE +0 -21
- data/vendor/assets/javascripts/bower/vue/src/api/child.js +0 -53
- data/vendor/assets/javascripts/bower/vue/src/api/data.js +0 -161
- data/vendor/assets/javascripts/bower/vue/src/api/dom.js +0 -211
- data/vendor/assets/javascripts/bower/vue/src/api/events.js +0 -176
- data/vendor/assets/javascripts/bower/vue/src/api/global.js +0 -146
- data/vendor/assets/javascripts/bower/vue/src/api/lifecycle.js +0 -72
- data/vendor/assets/javascripts/bower/vue/src/batcher.js +0 -65
- data/vendor/assets/javascripts/bower/vue/src/cache.js +0 -112
- data/vendor/assets/javascripts/bower/vue/src/compiler/compile.js +0 -549
- data/vendor/assets/javascripts/bower/vue/src/compiler/transclude.js +0 -146
- data/vendor/assets/javascripts/bower/vue/src/config.js +0 -79
- data/vendor/assets/javascripts/bower/vue/src/directive.js +0 -219
- data/vendor/assets/javascripts/bower/vue/src/directives/attr.js +0 -32
- data/vendor/assets/javascripts/bower/vue/src/directives/class.js +0 -18
- data/vendor/assets/javascripts/bower/vue/src/directives/cloak.js +0 -12
- data/vendor/assets/javascripts/bower/vue/src/directives/component.js +0 -196
- data/vendor/assets/javascripts/bower/vue/src/directives/el.js +0 -13
- data/vendor/assets/javascripts/bower/vue/src/directives/html.js +0 -38
- data/vendor/assets/javascripts/bower/vue/src/directives/if.js +0 -87
- data/vendor/assets/javascripts/bower/vue/src/directives/index.js +0 -22
- data/vendor/assets/javascripts/bower/vue/src/directives/model/checkbox.js +0 -25
- data/vendor/assets/javascripts/bower/vue/src/directives/model/default.js +0 -123
- data/vendor/assets/javascripts/bower/vue/src/directives/model/index.js +0 -56
- data/vendor/assets/javascripts/bower/vue/src/directives/model/radio.js +0 -26
- data/vendor/assets/javascripts/bower/vue/src/directives/model/select.js +0 -166
- data/vendor/assets/javascripts/bower/vue/src/directives/on.js +0 -59
- data/vendor/assets/javascripts/bower/vue/src/directives/partial.js +0 -44
- data/vendor/assets/javascripts/bower/vue/src/directives/ref.js +0 -24
- data/vendor/assets/javascripts/bower/vue/src/directives/repeat.js +0 -503
- data/vendor/assets/javascripts/bower/vue/src/directives/show.js +0 -8
- data/vendor/assets/javascripts/bower/vue/src/directives/style.js +0 -58
- data/vendor/assets/javascripts/bower/vue/src/directives/text.js +0 -15
- data/vendor/assets/javascripts/bower/vue/src/directives/transition.js +0 -12
- data/vendor/assets/javascripts/bower/vue/src/directives/with.js +0 -47
- data/vendor/assets/javascripts/bower/vue/src/filters/array-filters.js +0 -87
- data/vendor/assets/javascripts/bower/vue/src/filters/index.js +0 -135
- data/vendor/assets/javascripts/bower/vue/src/instance/compile.js +0 -179
- data/vendor/assets/javascripts/bower/vue/src/instance/events.js +0 -122
- data/vendor/assets/javascripts/bower/vue/src/instance/init.js +0 -76
- data/vendor/assets/javascripts/bower/vue/src/instance/scope.js +0 -217
- data/vendor/assets/javascripts/bower/vue/src/observer/array.js +0 -90
- data/vendor/assets/javascripts/bower/vue/src/observer/dep.js +0 -50
- data/vendor/assets/javascripts/bower/vue/src/observer/index.js +0 -235
- data/vendor/assets/javascripts/bower/vue/src/observer/object.js +0 -66
- data/vendor/assets/javascripts/bower/vue/src/parsers/directive.js +0 -159
- data/vendor/assets/javascripts/bower/vue/src/parsers/expression.js +0 -226
- data/vendor/assets/javascripts/bower/vue/src/parsers/path.js +0 -300
- data/vendor/assets/javascripts/bower/vue/src/parsers/template.js +0 -248
- data/vendor/assets/javascripts/bower/vue/src/parsers/text.js +0 -178
- data/vendor/assets/javascripts/bower/vue/src/transition/css.js +0 -189
- data/vendor/assets/javascripts/bower/vue/src/transition/index.js +0 -151
- data/vendor/assets/javascripts/bower/vue/src/transition/js.js +0 -43
- data/vendor/assets/javascripts/bower/vue/src/util/debug.js +0 -50
- data/vendor/assets/javascripts/bower/vue/src/util/dom.js +0 -197
- data/vendor/assets/javascripts/bower/vue/src/util/env.js +0 -74
- data/vendor/assets/javascripts/bower/vue/src/util/filter.js +0 -72
- data/vendor/assets/javascripts/bower/vue/src/util/index.js +0 -8
- data/vendor/assets/javascripts/bower/vue/src/util/lang.js +0 -175
- data/vendor/assets/javascripts/bower/vue/src/util/merge-option.js +0 -255
- data/vendor/assets/javascripts/bower/vue/src/vue.js +0 -84
- data/vendor/assets/javascripts/bower/vue/src/watcher.js +0 -240
@@ -1,151 +0,0 @@
|
|
1
|
-
var _ = require('../util')
|
2
|
-
var applyCSSTransition = require('./css')
|
3
|
-
var applyJSTransition = require('./js')
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Append with transition.
|
7
|
-
*
|
8
|
-
* @oaram {Element} el
|
9
|
-
* @param {Element} target
|
10
|
-
* @param {Vue} vm
|
11
|
-
* @param {Function} [cb]
|
12
|
-
*/
|
13
|
-
|
14
|
-
exports.append = function (el, target, vm, cb) {
|
15
|
-
apply(el, 1, function () {
|
16
|
-
target.appendChild(el)
|
17
|
-
}, vm, cb)
|
18
|
-
}
|
19
|
-
|
20
|
-
/**
|
21
|
-
* InsertBefore with transition.
|
22
|
-
*
|
23
|
-
* @oaram {Element} el
|
24
|
-
* @param {Element} target
|
25
|
-
* @param {Vue} vm
|
26
|
-
* @param {Function} [cb]
|
27
|
-
*/
|
28
|
-
|
29
|
-
exports.before = function (el, target, vm, cb) {
|
30
|
-
apply(el, 1, function () {
|
31
|
-
_.before(el, target)
|
32
|
-
}, vm, cb)
|
33
|
-
}
|
34
|
-
|
35
|
-
/**
|
36
|
-
* Remove with transition.
|
37
|
-
*
|
38
|
-
* @oaram {Element} el
|
39
|
-
* @param {Vue} vm
|
40
|
-
* @param {Function} [cb]
|
41
|
-
*/
|
42
|
-
|
43
|
-
exports.remove = function (el, vm, cb) {
|
44
|
-
apply(el, -1, function () {
|
45
|
-
_.remove(el)
|
46
|
-
}, vm, cb)
|
47
|
-
}
|
48
|
-
|
49
|
-
/**
|
50
|
-
* Remove by appending to another parent with transition.
|
51
|
-
* This is only used in block operations.
|
52
|
-
*
|
53
|
-
* @oaram {Element} el
|
54
|
-
* @param {Element} target
|
55
|
-
* @param {Vue} vm
|
56
|
-
* @param {Function} [cb]
|
57
|
-
*/
|
58
|
-
|
59
|
-
exports.removeThenAppend = function (el, target, vm, cb) {
|
60
|
-
apply(el, -1, function () {
|
61
|
-
target.appendChild(el)
|
62
|
-
}, vm, cb)
|
63
|
-
}
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Append the childNodes of a fragment to target.
|
67
|
-
*
|
68
|
-
* @param {DocumentFragment} block
|
69
|
-
* @param {Node} target
|
70
|
-
* @param {Vue} vm
|
71
|
-
*/
|
72
|
-
|
73
|
-
exports.blockAppend = function (block, target, vm) {
|
74
|
-
var nodes = _.toArray(block.childNodes)
|
75
|
-
for (var i = 0, l = nodes.length; i < l; i++) {
|
76
|
-
exports.before(nodes[i], target, vm)
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
/**
|
81
|
-
* Remove a block of nodes between two edge nodes.
|
82
|
-
*
|
83
|
-
* @param {Node} start
|
84
|
-
* @param {Node} end
|
85
|
-
* @param {Vue} vm
|
86
|
-
*/
|
87
|
-
|
88
|
-
exports.blockRemove = function (start, end, vm) {
|
89
|
-
var node = start.nextSibling
|
90
|
-
var next
|
91
|
-
while (node !== end) {
|
92
|
-
next = node.nextSibling
|
93
|
-
exports.remove(node, vm)
|
94
|
-
node = next
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
/**
|
99
|
-
* Apply transitions with an operation callback.
|
100
|
-
*
|
101
|
-
* @oaram {Element} el
|
102
|
-
* @param {Number} direction
|
103
|
-
* 1: enter
|
104
|
-
* -1: leave
|
105
|
-
* @param {Function} op - the actual DOM operation
|
106
|
-
* @param {Vue} vm
|
107
|
-
* @param {Function} [cb]
|
108
|
-
*/
|
109
|
-
|
110
|
-
var apply = exports.apply = function (el, direction, op, vm, cb) {
|
111
|
-
var transData = el.__v_trans
|
112
|
-
if (
|
113
|
-
!transData ||
|
114
|
-
!vm._isCompiled ||
|
115
|
-
// if the vm is being manipulated by a parent directive
|
116
|
-
// during the parent's compilation phase, skip the
|
117
|
-
// animation.
|
118
|
-
(vm.$parent && !vm.$parent._isCompiled)
|
119
|
-
) {
|
120
|
-
op()
|
121
|
-
if (cb) cb()
|
122
|
-
return
|
123
|
-
}
|
124
|
-
// determine the transition type on the element
|
125
|
-
var jsTransition = vm.$options.transitions[transData.id]
|
126
|
-
if (jsTransition) {
|
127
|
-
// js
|
128
|
-
applyJSTransition(
|
129
|
-
el,
|
130
|
-
direction,
|
131
|
-
op,
|
132
|
-
transData,
|
133
|
-
jsTransition,
|
134
|
-
vm,
|
135
|
-
cb
|
136
|
-
)
|
137
|
-
} else if (_.transitionEndEvent) {
|
138
|
-
// css
|
139
|
-
applyCSSTransition(
|
140
|
-
el,
|
141
|
-
direction,
|
142
|
-
op,
|
143
|
-
transData,
|
144
|
-
cb
|
145
|
-
)
|
146
|
-
} else {
|
147
|
-
// not applicable
|
148
|
-
op()
|
149
|
-
if (cb) cb()
|
150
|
-
}
|
151
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Apply JavaScript enter/leave functions.
|
3
|
-
*
|
4
|
-
* @param {Element} el
|
5
|
-
* @param {Number} direction - 1: enter, -1: leave
|
6
|
-
* @param {Function} op - the actual DOM operation
|
7
|
-
* @param {Object} data - target element's transition data
|
8
|
-
* @param {Object} def - transition definition object
|
9
|
-
* @param {Vue} vm - the owner vm of the element
|
10
|
-
* @param {Function} [cb]
|
11
|
-
*/
|
12
|
-
|
13
|
-
module.exports = function (el, direction, op, data, def, vm, cb) {
|
14
|
-
if (data.cancel) {
|
15
|
-
data.cancel()
|
16
|
-
data.cancel = null
|
17
|
-
}
|
18
|
-
if (direction > 0) { // enter
|
19
|
-
if (def.beforeEnter) {
|
20
|
-
def.beforeEnter.call(vm, el)
|
21
|
-
}
|
22
|
-
op()
|
23
|
-
if (def.enter) {
|
24
|
-
data.cancel = def.enter.call(vm, el, function () {
|
25
|
-
data.cancel = null
|
26
|
-
if (cb) cb()
|
27
|
-
})
|
28
|
-
} else if (cb) {
|
29
|
-
cb()
|
30
|
-
}
|
31
|
-
} else { // leave
|
32
|
-
if (def.leave) {
|
33
|
-
data.cancel = def.leave.call(vm, el, function () {
|
34
|
-
data.cancel = null
|
35
|
-
op()
|
36
|
-
if (cb) cb()
|
37
|
-
})
|
38
|
-
} else {
|
39
|
-
op()
|
40
|
-
if (cb) cb()
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
@@ -1,50 +0,0 @@
|
|
1
|
-
var config = require('../config')
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Enable debug utilities. The enableDebug() function and
|
5
|
-
* all _.log() & _.warn() calls will be dropped in the
|
6
|
-
* minified production build.
|
7
|
-
*/
|
8
|
-
|
9
|
-
enableDebug()
|
10
|
-
|
11
|
-
function enableDebug () {
|
12
|
-
var hasConsole = typeof console !== 'undefined'
|
13
|
-
|
14
|
-
/**
|
15
|
-
* Log a message.
|
16
|
-
*
|
17
|
-
* @param {String} msg
|
18
|
-
*/
|
19
|
-
|
20
|
-
exports.log = function (msg) {
|
21
|
-
if (hasConsole && config.debug) {
|
22
|
-
console.log('[Vue info]: ' + msg)
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
/**
|
27
|
-
* We've got a problem here.
|
28
|
-
*
|
29
|
-
* @param {String} msg
|
30
|
-
*/
|
31
|
-
|
32
|
-
exports.warn = function (msg) {
|
33
|
-
if (hasConsole && !config.silent) {
|
34
|
-
console.warn('[Vue warn]: ' + msg)
|
35
|
-
if (config.debug && console.trace) {
|
36
|
-
console.trace()
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
/**
|
42
|
-
* Assert asset exists
|
43
|
-
*/
|
44
|
-
|
45
|
-
exports.assertAsset = function (val, type, id) {
|
46
|
-
if (!val) {
|
47
|
-
exports.warn('Failed to resolve ' + type + ': ' + id)
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
@@ -1,197 +0,0 @@
|
|
1
|
-
var config = require('../config')
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Check if a node is in the document.
|
5
|
-
*
|
6
|
-
* @param {Node} node
|
7
|
-
* @return {Boolean}
|
8
|
-
*/
|
9
|
-
|
10
|
-
var doc =
|
11
|
-
typeof document !== 'undefined' &&
|
12
|
-
document.documentElement
|
13
|
-
|
14
|
-
exports.inDoc = function (node) {
|
15
|
-
return doc && doc.contains(node)
|
16
|
-
}
|
17
|
-
|
18
|
-
/**
|
19
|
-
* Extract an attribute from a node.
|
20
|
-
*
|
21
|
-
* @param {Node} node
|
22
|
-
* @param {String} attr
|
23
|
-
*/
|
24
|
-
|
25
|
-
exports.attr = function (node, attr) {
|
26
|
-
attr = config.prefix + attr
|
27
|
-
var val = node.getAttribute(attr)
|
28
|
-
if (val !== null) {
|
29
|
-
node.removeAttribute(attr)
|
30
|
-
}
|
31
|
-
return val
|
32
|
-
}
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Insert el before target
|
36
|
-
*
|
37
|
-
* @param {Element} el
|
38
|
-
* @param {Element} target
|
39
|
-
*/
|
40
|
-
|
41
|
-
exports.before = function (el, target) {
|
42
|
-
target.parentNode.insertBefore(el, target)
|
43
|
-
}
|
44
|
-
|
45
|
-
/**
|
46
|
-
* Insert el after target
|
47
|
-
*
|
48
|
-
* @param {Element} el
|
49
|
-
* @param {Element} target
|
50
|
-
*/
|
51
|
-
|
52
|
-
exports.after = function (el, target) {
|
53
|
-
if (target.nextSibling) {
|
54
|
-
exports.before(el, target.nextSibling)
|
55
|
-
} else {
|
56
|
-
target.parentNode.appendChild(el)
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Remove el from DOM
|
62
|
-
*
|
63
|
-
* @param {Element} el
|
64
|
-
*/
|
65
|
-
|
66
|
-
exports.remove = function (el) {
|
67
|
-
el.parentNode.removeChild(el)
|
68
|
-
}
|
69
|
-
|
70
|
-
/**
|
71
|
-
* Prepend el to target
|
72
|
-
*
|
73
|
-
* @param {Element} el
|
74
|
-
* @param {Element} target
|
75
|
-
*/
|
76
|
-
|
77
|
-
exports.prepend = function (el, target) {
|
78
|
-
if (target.firstChild) {
|
79
|
-
exports.before(el, target.firstChild)
|
80
|
-
} else {
|
81
|
-
target.appendChild(el)
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
/**
|
86
|
-
* Replace target with el
|
87
|
-
*
|
88
|
-
* @param {Element} target
|
89
|
-
* @param {Element} el
|
90
|
-
*/
|
91
|
-
|
92
|
-
exports.replace = function (target, el) {
|
93
|
-
var parent = target.parentNode
|
94
|
-
if (parent) {
|
95
|
-
parent.replaceChild(el, target)
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
/**
|
100
|
-
* Copy attributes from one element to another.
|
101
|
-
*
|
102
|
-
* @param {Element} from
|
103
|
-
* @param {Element} to
|
104
|
-
*/
|
105
|
-
|
106
|
-
exports.copyAttributes = function (from, to) {
|
107
|
-
if (from.hasAttributes()) {
|
108
|
-
var attrs = from.attributes
|
109
|
-
for (var i = 0, l = attrs.length; i < l; i++) {
|
110
|
-
var attr = attrs[i]
|
111
|
-
to.setAttribute(attr.name, attr.value)
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
/**
|
117
|
-
* Add event listener shorthand.
|
118
|
-
*
|
119
|
-
* @param {Element} el
|
120
|
-
* @param {String} event
|
121
|
-
* @param {Function} cb
|
122
|
-
*/
|
123
|
-
|
124
|
-
exports.on = function (el, event, cb) {
|
125
|
-
el.addEventListener(event, cb)
|
126
|
-
}
|
127
|
-
|
128
|
-
/**
|
129
|
-
* Remove event listener shorthand.
|
130
|
-
*
|
131
|
-
* @param {Element} el
|
132
|
-
* @param {String} event
|
133
|
-
* @param {Function} cb
|
134
|
-
*/
|
135
|
-
|
136
|
-
exports.off = function (el, event, cb) {
|
137
|
-
el.removeEventListener(event, cb)
|
138
|
-
}
|
139
|
-
|
140
|
-
/**
|
141
|
-
* Add class with compatibility for IE & SVG
|
142
|
-
*
|
143
|
-
* @param {Element} el
|
144
|
-
* @param {Strong} cls
|
145
|
-
*/
|
146
|
-
|
147
|
-
exports.addClass = function (el, cls) {
|
148
|
-
if (el.classList) {
|
149
|
-
el.classList.add(cls)
|
150
|
-
} else {
|
151
|
-
var cur = ' ' + (el.getAttribute('class') || '') + ' '
|
152
|
-
if (cur.indexOf(' ' + cls + ' ') < 0) {
|
153
|
-
el.setAttribute('class', (cur + cls).trim())
|
154
|
-
}
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
/**
|
159
|
-
* Remove class with compatibility for IE & SVG
|
160
|
-
*
|
161
|
-
* @param {Element} el
|
162
|
-
* @param {Strong} cls
|
163
|
-
*/
|
164
|
-
|
165
|
-
exports.removeClass = function (el, cls) {
|
166
|
-
if (el.classList) {
|
167
|
-
el.classList.remove(cls)
|
168
|
-
} else {
|
169
|
-
var cur = ' ' + (el.getAttribute('class') || '') + ' '
|
170
|
-
var tar = ' ' + cls + ' '
|
171
|
-
while (cur.indexOf(tar) >= 0) {
|
172
|
-
cur = cur.replace(tar, ' ')
|
173
|
-
}
|
174
|
-
el.setAttribute('class', cur.trim())
|
175
|
-
}
|
176
|
-
}
|
177
|
-
|
178
|
-
/**
|
179
|
-
* Extract raw content inside an element into a temporary
|
180
|
-
* container div
|
181
|
-
*
|
182
|
-
* @param {Element} el
|
183
|
-
* @return {Element}
|
184
|
-
*/
|
185
|
-
|
186
|
-
exports.extractContent = function (el) {
|
187
|
-
var child
|
188
|
-
var rawContent
|
189
|
-
if (el.hasChildNodes()) {
|
190
|
-
rawContent = document.createElement('div')
|
191
|
-
/* jshint boss:true */
|
192
|
-
while (child = el.firstChild) {
|
193
|
-
rawContent.appendChild(child)
|
194
|
-
}
|
195
|
-
}
|
196
|
-
return rawContent
|
197
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Can we use __proto__?
|
3
|
-
*
|
4
|
-
* @type {Boolean}
|
5
|
-
*/
|
6
|
-
|
7
|
-
exports.hasProto = '__proto__' in {}
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Indicates we have a window
|
11
|
-
*
|
12
|
-
* @type {Boolean}
|
13
|
-
*/
|
14
|
-
|
15
|
-
var toString = Object.prototype.toString
|
16
|
-
var inBrowser = exports.inBrowser =
|
17
|
-
typeof window !== 'undefined' &&
|
18
|
-
toString.call(window) !== '[object Object]'
|
19
|
-
|
20
|
-
/**
|
21
|
-
* Defer a task to the start of the next event loop
|
22
|
-
*
|
23
|
-
* @param {Function} cb
|
24
|
-
* @param {Object} ctx
|
25
|
-
*/
|
26
|
-
|
27
|
-
var defer = inBrowser
|
28
|
-
? (window.requestAnimationFrame ||
|
29
|
-
window.webkitRequestAnimationFrame ||
|
30
|
-
setTimeout)
|
31
|
-
: setTimeout
|
32
|
-
|
33
|
-
exports.nextTick = function (cb, ctx) {
|
34
|
-
if (ctx) {
|
35
|
-
defer(function () { cb.call(ctx) }, 0)
|
36
|
-
} else {
|
37
|
-
defer(cb, 0)
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
/**
|
42
|
-
* Detect if we are in IE9...
|
43
|
-
*
|
44
|
-
* @type {Boolean}
|
45
|
-
*/
|
46
|
-
|
47
|
-
exports.isIE9 =
|
48
|
-
inBrowser &&
|
49
|
-
navigator.userAgent.indexOf('MSIE 9.0') > 0
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Sniff transition/animation events
|
53
|
-
*/
|
54
|
-
|
55
|
-
if (inBrowser && !exports.isIE9) {
|
56
|
-
var isWebkitTrans =
|
57
|
-
window.ontransitionend === undefined &&
|
58
|
-
window.onwebkittransitionend !== undefined
|
59
|
-
var isWebkitAnim =
|
60
|
-
window.onanimationend === undefined &&
|
61
|
-
window.onwebkitanimationend !== undefined
|
62
|
-
exports.transitionProp = isWebkitTrans
|
63
|
-
? 'WebkitTransition'
|
64
|
-
: 'transition'
|
65
|
-
exports.transitionEndEvent = isWebkitTrans
|
66
|
-
? 'webkitTransitionEnd'
|
67
|
-
: 'transitionend'
|
68
|
-
exports.animationProp = isWebkitAnim
|
69
|
-
? 'WebkitAnimation'
|
70
|
-
: 'animation'
|
71
|
-
exports.animationEndEvent = isWebkitAnim
|
72
|
-
? 'webkitAnimationEnd'
|
73
|
-
: 'animationend'
|
74
|
-
}
|