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,245 +0,0 @@
|
|
1
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
-
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
-
|
4
|
-
// Modelica support for CodeMirror, copyright (c) by Lennart Ochel
|
5
|
-
|
6
|
-
(function(mod) {
|
7
|
-
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
8
|
-
mod(require("../../lib/codemirror"));
|
9
|
-
else if (typeof define == "function" && define.amd) // AMD
|
10
|
-
define(["../../lib/codemirror"], mod);
|
11
|
-
else // Plain browser env
|
12
|
-
mod(CodeMirror);
|
13
|
-
})
|
14
|
-
|
15
|
-
(function(CodeMirror) {
|
16
|
-
"use strict";
|
17
|
-
|
18
|
-
CodeMirror.defineMode("modelica", function(config, parserConfig) {
|
19
|
-
|
20
|
-
var indentUnit = config.indentUnit;
|
21
|
-
var keywords = parserConfig.keywords || {};
|
22
|
-
var builtin = parserConfig.builtin || {};
|
23
|
-
var atoms = parserConfig.atoms || {};
|
24
|
-
|
25
|
-
var isSingleOperatorChar = /[;=\(:\),{}.*<>+\-\/^\[\]]/;
|
26
|
-
var isDoubleOperatorChar = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/;
|
27
|
-
var isDigit = /[0-9]/;
|
28
|
-
var isNonDigit = /[_a-zA-Z]/;
|
29
|
-
|
30
|
-
function tokenLineComment(stream, state) {
|
31
|
-
stream.skipToEnd();
|
32
|
-
state.tokenize = null;
|
33
|
-
return "comment";
|
34
|
-
}
|
35
|
-
|
36
|
-
function tokenBlockComment(stream, state) {
|
37
|
-
var maybeEnd = false, ch;
|
38
|
-
while (ch = stream.next()) {
|
39
|
-
if (maybeEnd && ch == "/") {
|
40
|
-
state.tokenize = null;
|
41
|
-
break;
|
42
|
-
}
|
43
|
-
maybeEnd = (ch == "*");
|
44
|
-
}
|
45
|
-
return "comment";
|
46
|
-
}
|
47
|
-
|
48
|
-
function tokenString(stream, state) {
|
49
|
-
var escaped = false, ch;
|
50
|
-
while ((ch = stream.next()) != null) {
|
51
|
-
if (ch == '"' && !escaped) {
|
52
|
-
state.tokenize = null;
|
53
|
-
state.sol = false;
|
54
|
-
break;
|
55
|
-
}
|
56
|
-
escaped = !escaped && ch == "\\";
|
57
|
-
}
|
58
|
-
|
59
|
-
return "string";
|
60
|
-
}
|
61
|
-
|
62
|
-
function tokenIdent(stream, state) {
|
63
|
-
stream.eatWhile(isDigit);
|
64
|
-
while (stream.eat(isDigit) || stream.eat(isNonDigit)) { }
|
65
|
-
|
66
|
-
|
67
|
-
var cur = stream.current();
|
68
|
-
|
69
|
-
if(state.sol && (cur == "package" || cur == "model" || cur == "when" || cur == "connector")) state.level++;
|
70
|
-
else if(state.sol && cur == "end" && state.level > 0) state.level--;
|
71
|
-
|
72
|
-
state.tokenize = null;
|
73
|
-
state.sol = false;
|
74
|
-
|
75
|
-
if (keywords.propertyIsEnumerable(cur)) return "keyword";
|
76
|
-
else if (builtin.propertyIsEnumerable(cur)) return "builtin";
|
77
|
-
else if (atoms.propertyIsEnumerable(cur)) return "atom";
|
78
|
-
else return "variable";
|
79
|
-
}
|
80
|
-
|
81
|
-
function tokenQIdent(stream, state) {
|
82
|
-
while (stream.eat(/[^']/)) { }
|
83
|
-
|
84
|
-
state.tokenize = null;
|
85
|
-
state.sol = false;
|
86
|
-
|
87
|
-
if(stream.eat("'"))
|
88
|
-
return "variable";
|
89
|
-
else
|
90
|
-
return "error";
|
91
|
-
}
|
92
|
-
|
93
|
-
function tokenUnsignedNuber(stream, state) {
|
94
|
-
stream.eatWhile(isDigit);
|
95
|
-
if (stream.eat('.')) {
|
96
|
-
stream.eatWhile(isDigit);
|
97
|
-
}
|
98
|
-
if (stream.eat('e') || stream.eat('E')) {
|
99
|
-
if (!stream.eat('-'))
|
100
|
-
stream.eat('+');
|
101
|
-
stream.eatWhile(isDigit);
|
102
|
-
}
|
103
|
-
|
104
|
-
state.tokenize = null;
|
105
|
-
state.sol = false;
|
106
|
-
return "number";
|
107
|
-
}
|
108
|
-
|
109
|
-
// Interface
|
110
|
-
return {
|
111
|
-
startState: function() {
|
112
|
-
return {
|
113
|
-
tokenize: null,
|
114
|
-
level: 0,
|
115
|
-
sol: true
|
116
|
-
};
|
117
|
-
},
|
118
|
-
|
119
|
-
token: function(stream, state) {
|
120
|
-
if(state.tokenize != null) {
|
121
|
-
return state.tokenize(stream, state);
|
122
|
-
}
|
123
|
-
|
124
|
-
if(stream.sol()) {
|
125
|
-
state.sol = true;
|
126
|
-
}
|
127
|
-
|
128
|
-
// WHITESPACE
|
129
|
-
if(stream.eatSpace()) {
|
130
|
-
state.tokenize = null;
|
131
|
-
return null;
|
132
|
-
}
|
133
|
-
|
134
|
-
var ch = stream.next();
|
135
|
-
|
136
|
-
// LINECOMMENT
|
137
|
-
if(ch == '/' && stream.eat('/')) {
|
138
|
-
state.tokenize = tokenLineComment;
|
139
|
-
}
|
140
|
-
// BLOCKCOMMENT
|
141
|
-
else if(ch == '/' && stream.eat('*')) {
|
142
|
-
state.tokenize = tokenBlockComment;
|
143
|
-
}
|
144
|
-
// TWO SYMBOL TOKENS
|
145
|
-
else if(isDoubleOperatorChar.test(ch+stream.peek())) {
|
146
|
-
stream.next();
|
147
|
-
state.tokenize = null;
|
148
|
-
return "operator";
|
149
|
-
}
|
150
|
-
// SINGLE SYMBOL TOKENS
|
151
|
-
else if(isSingleOperatorChar.test(ch)) {
|
152
|
-
state.tokenize = null;
|
153
|
-
return "operator";
|
154
|
-
}
|
155
|
-
// IDENT
|
156
|
-
else if(isNonDigit.test(ch)) {
|
157
|
-
state.tokenize = tokenIdent;
|
158
|
-
}
|
159
|
-
// Q-IDENT
|
160
|
-
else if(ch == "'" && stream.peek() && stream.peek() != "'") {
|
161
|
-
state.tokenize = tokenQIdent;
|
162
|
-
}
|
163
|
-
// STRING
|
164
|
-
else if(ch == '"') {
|
165
|
-
state.tokenize = tokenString;
|
166
|
-
}
|
167
|
-
// UNSIGNED_NUBER
|
168
|
-
else if(isDigit.test(ch)) {
|
169
|
-
state.tokenize = tokenUnsignedNuber;
|
170
|
-
}
|
171
|
-
// ERROR
|
172
|
-
else {
|
173
|
-
state.tokenize = null;
|
174
|
-
return "error";
|
175
|
-
}
|
176
|
-
|
177
|
-
return state.tokenize(stream, state);
|
178
|
-
},
|
179
|
-
|
180
|
-
indent: function(state, textAfter) {
|
181
|
-
if (state.tokenize != null) return CodeMirror.Pass;
|
182
|
-
|
183
|
-
var level = state.level;
|
184
|
-
if(/(algorithm)/.test(textAfter)) level--;
|
185
|
-
if(/(equation)/.test(textAfter)) level--;
|
186
|
-
if(/(initial algorithm)/.test(textAfter)) level--;
|
187
|
-
if(/(initial equation)/.test(textAfter)) level--;
|
188
|
-
if(/(end)/.test(textAfter)) level--;
|
189
|
-
|
190
|
-
if(level > 0)
|
191
|
-
return indentUnit*level;
|
192
|
-
else
|
193
|
-
return 0;
|
194
|
-
},
|
195
|
-
|
196
|
-
blockCommentStart: "/*",
|
197
|
-
blockCommentEnd: "*/",
|
198
|
-
lineComment: "//"
|
199
|
-
};
|
200
|
-
});
|
201
|
-
|
202
|
-
function words(str) {
|
203
|
-
var obj = {}, words = str.split(" ");
|
204
|
-
for (var i=0; i<words.length; ++i)
|
205
|
-
obj[words[i]] = true;
|
206
|
-
return obj;
|
207
|
-
}
|
208
|
-
|
209
|
-
var modelicaKeywords = "algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within";
|
210
|
-
var modelicaBuiltin = "abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh";
|
211
|
-
var modelicaAtoms = "Real Boolean Integer String";
|
212
|
-
|
213
|
-
function def(mimes, mode) {
|
214
|
-
if (typeof mimes == "string")
|
215
|
-
mimes = [mimes];
|
216
|
-
|
217
|
-
var words = [];
|
218
|
-
|
219
|
-
function add(obj) {
|
220
|
-
if (obj)
|
221
|
-
for (var prop in obj)
|
222
|
-
if (obj.hasOwnProperty(prop))
|
223
|
-
words.push(prop);
|
224
|
-
}
|
225
|
-
|
226
|
-
add(mode.keywords);
|
227
|
-
add(mode.builtin);
|
228
|
-
add(mode.atoms);
|
229
|
-
|
230
|
-
if (words.length) {
|
231
|
-
mode.helperType = mimes[0];
|
232
|
-
CodeMirror.registerHelper("hintWords", mimes[0], words);
|
233
|
-
}
|
234
|
-
|
235
|
-
for (var i=0; i<mimes.length; ++i)
|
236
|
-
CodeMirror.defineMIME(mimes[i], mode);
|
237
|
-
}
|
238
|
-
|
239
|
-
def(["text/x-modelica"], {
|
240
|
-
name: "modelica",
|
241
|
-
keywords: words(modelicaKeywords),
|
242
|
-
builtin: words(modelicaBuiltin),
|
243
|
-
atoms: words(modelicaAtoms)
|
244
|
-
});
|
245
|
-
});
|
@@ -1,178 +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("nginx", function(config) {
|
15
|
-
|
16
|
-
function words(str) {
|
17
|
-
var obj = {}, words = str.split(" ");
|
18
|
-
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
19
|
-
return obj;
|
20
|
-
}
|
21
|
-
|
22
|
-
var keywords = words(
|
23
|
-
/* ngxDirectiveControl */ "break return rewrite set" +
|
24
|
-
/* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"
|
25
|
-
);
|
26
|
-
|
27
|
-
var keywords_block = words(
|
28
|
-
/* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map"
|
29
|
-
);
|
30
|
-
|
31
|
-
var keywords_important = words(
|
32
|
-
/* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"
|
33
|
-
);
|
34
|
-
|
35
|
-
var indentUnit = config.indentUnit, type;
|
36
|
-
function ret(style, tp) {type = tp; return style;}
|
37
|
-
|
38
|
-
function tokenBase(stream, state) {
|
39
|
-
|
40
|
-
|
41
|
-
stream.eatWhile(/[\w\$_]/);
|
42
|
-
|
43
|
-
var cur = stream.current();
|
44
|
-
|
45
|
-
|
46
|
-
if (keywords.propertyIsEnumerable(cur)) {
|
47
|
-
return "keyword";
|
48
|
-
}
|
49
|
-
else if (keywords_block.propertyIsEnumerable(cur)) {
|
50
|
-
return "variable-2";
|
51
|
-
}
|
52
|
-
else if (keywords_important.propertyIsEnumerable(cur)) {
|
53
|
-
return "string-2";
|
54
|
-
}
|
55
|
-
/**/
|
56
|
-
|
57
|
-
var ch = stream.next();
|
58
|
-
if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());}
|
59
|
-
else if (ch == "/" && stream.eat("*")) {
|
60
|
-
state.tokenize = tokenCComment;
|
61
|
-
return tokenCComment(stream, state);
|
62
|
-
}
|
63
|
-
else if (ch == "<" && stream.eat("!")) {
|
64
|
-
state.tokenize = tokenSGMLComment;
|
65
|
-
return tokenSGMLComment(stream, state);
|
66
|
-
}
|
67
|
-
else if (ch == "=") ret(null, "compare");
|
68
|
-
else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
|
69
|
-
else if (ch == "\"" || ch == "'") {
|
70
|
-
state.tokenize = tokenString(ch);
|
71
|
-
return state.tokenize(stream, state);
|
72
|
-
}
|
73
|
-
else if (ch == "#") {
|
74
|
-
stream.skipToEnd();
|
75
|
-
return ret("comment", "comment");
|
76
|
-
}
|
77
|
-
else if (ch == "!") {
|
78
|
-
stream.match(/^\s*\w*/);
|
79
|
-
return ret("keyword", "important");
|
80
|
-
}
|
81
|
-
else if (/\d/.test(ch)) {
|
82
|
-
stream.eatWhile(/[\w.%]/);
|
83
|
-
return ret("number", "unit");
|
84
|
-
}
|
85
|
-
else if (/[,.+>*\/]/.test(ch)) {
|
86
|
-
return ret(null, "select-op");
|
87
|
-
}
|
88
|
-
else if (/[;{}:\[\]]/.test(ch)) {
|
89
|
-
return ret(null, ch);
|
90
|
-
}
|
91
|
-
else {
|
92
|
-
stream.eatWhile(/[\w\\\-]/);
|
93
|
-
return ret("variable", "variable");
|
94
|
-
}
|
95
|
-
}
|
96
|
-
|
97
|
-
function tokenCComment(stream, state) {
|
98
|
-
var maybeEnd = false, ch;
|
99
|
-
while ((ch = stream.next()) != null) {
|
100
|
-
if (maybeEnd && ch == "/") {
|
101
|
-
state.tokenize = tokenBase;
|
102
|
-
break;
|
103
|
-
}
|
104
|
-
maybeEnd = (ch == "*");
|
105
|
-
}
|
106
|
-
return ret("comment", "comment");
|
107
|
-
}
|
108
|
-
|
109
|
-
function tokenSGMLComment(stream, state) {
|
110
|
-
var dashes = 0, ch;
|
111
|
-
while ((ch = stream.next()) != null) {
|
112
|
-
if (dashes >= 2 && ch == ">") {
|
113
|
-
state.tokenize = tokenBase;
|
114
|
-
break;
|
115
|
-
}
|
116
|
-
dashes = (ch == "-") ? dashes + 1 : 0;
|
117
|
-
}
|
118
|
-
return ret("comment", "comment");
|
119
|
-
}
|
120
|
-
|
121
|
-
function tokenString(quote) {
|
122
|
-
return function(stream, state) {
|
123
|
-
var escaped = false, ch;
|
124
|
-
while ((ch = stream.next()) != null) {
|
125
|
-
if (ch == quote && !escaped)
|
126
|
-
break;
|
127
|
-
escaped = !escaped && ch == "\\";
|
128
|
-
}
|
129
|
-
if (!escaped) state.tokenize = tokenBase;
|
130
|
-
return ret("string", "string");
|
131
|
-
};
|
132
|
-
}
|
133
|
-
|
134
|
-
return {
|
135
|
-
startState: function(base) {
|
136
|
-
return {tokenize: tokenBase,
|
137
|
-
baseIndent: base || 0,
|
138
|
-
stack: []};
|
139
|
-
},
|
140
|
-
|
141
|
-
token: function(stream, state) {
|
142
|
-
if (stream.eatSpace()) return null;
|
143
|
-
type = null;
|
144
|
-
var style = state.tokenize(stream, state);
|
145
|
-
|
146
|
-
var context = state.stack[state.stack.length-1];
|
147
|
-
if (type == "hash" && context == "rule") style = "atom";
|
148
|
-
else if (style == "variable") {
|
149
|
-
if (context == "rule") style = "number";
|
150
|
-
else if (!context || context == "@media{") style = "tag";
|
151
|
-
}
|
152
|
-
|
153
|
-
if (context == "rule" && /^[\{\};]$/.test(type))
|
154
|
-
state.stack.pop();
|
155
|
-
if (type == "{") {
|
156
|
-
if (context == "@media") state.stack[state.stack.length-1] = "@media{";
|
157
|
-
else state.stack.push("{");
|
158
|
-
}
|
159
|
-
else if (type == "}") state.stack.pop();
|
160
|
-
else if (type == "@media") state.stack.push("@media");
|
161
|
-
else if (context == "{" && type != "comment") state.stack.push("rule");
|
162
|
-
return style;
|
163
|
-
},
|
164
|
-
|
165
|
-
indent: function(state, textAfter) {
|
166
|
-
var n = state.stack.length;
|
167
|
-
if (/^\}/.test(textAfter))
|
168
|
-
n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
|
169
|
-
return state.baseIndent + n * indentUnit;
|
170
|
-
},
|
171
|
-
|
172
|
-
electricChars: "}"
|
173
|
-
};
|
174
|
-
});
|
175
|
-
|
176
|
-
CodeMirror.defineMIME("text/nginx", "text/x-nginx-conf");
|
177
|
-
|
178
|
-
});
|
@@ -1,186 +0,0 @@
|
|
1
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
-
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
-
|
4
|
-
/**********************************************************
|
5
|
-
* This script provides syntax highlighting support for
|
6
|
-
* the Ntriples format.
|
7
|
-
* Ntriples format specification:
|
8
|
-
* http://www.w3.org/TR/rdf-testcases/#ntriples
|
9
|
-
***********************************************************/
|
10
|
-
|
11
|
-
/*
|
12
|
-
The following expression defines the defined ASF grammar transitions.
|
13
|
-
|
14
|
-
pre_subject ->
|
15
|
-
{
|
16
|
-
( writing_subject_uri | writing_bnode_uri )
|
17
|
-
-> pre_predicate
|
18
|
-
-> writing_predicate_uri
|
19
|
-
-> pre_object
|
20
|
-
-> writing_object_uri | writing_object_bnode |
|
21
|
-
(
|
22
|
-
writing_object_literal
|
23
|
-
-> writing_literal_lang | writing_literal_type
|
24
|
-
)
|
25
|
-
-> post_object
|
26
|
-
-> BEGIN
|
27
|
-
} otherwise {
|
28
|
-
-> ERROR
|
29
|
-
}
|
30
|
-
*/
|
31
|
-
|
32
|
-
(function(mod) {
|
33
|
-
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
34
|
-
mod(require("../../lib/codemirror"));
|
35
|
-
else if (typeof define == "function" && define.amd) // AMD
|
36
|
-
define(["../../lib/codemirror"], mod);
|
37
|
-
else // Plain browser env
|
38
|
-
mod(CodeMirror);
|
39
|
-
})(function(CodeMirror) {
|
40
|
-
"use strict";
|
41
|
-
|
42
|
-
CodeMirror.defineMode("ntriples", function() {
|
43
|
-
|
44
|
-
var Location = {
|
45
|
-
PRE_SUBJECT : 0,
|
46
|
-
WRITING_SUB_URI : 1,
|
47
|
-
WRITING_BNODE_URI : 2,
|
48
|
-
PRE_PRED : 3,
|
49
|
-
WRITING_PRED_URI : 4,
|
50
|
-
PRE_OBJ : 5,
|
51
|
-
WRITING_OBJ_URI : 6,
|
52
|
-
WRITING_OBJ_BNODE : 7,
|
53
|
-
WRITING_OBJ_LITERAL : 8,
|
54
|
-
WRITING_LIT_LANG : 9,
|
55
|
-
WRITING_LIT_TYPE : 10,
|
56
|
-
POST_OBJ : 11,
|
57
|
-
ERROR : 12
|
58
|
-
};
|
59
|
-
function transitState(currState, c) {
|
60
|
-
var currLocation = currState.location;
|
61
|
-
var ret;
|
62
|
-
|
63
|
-
// Opening.
|
64
|
-
if (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI;
|
65
|
-
else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI;
|
66
|
-
else if(currLocation == Location.PRE_PRED && c == '<') ret = Location.WRITING_PRED_URI;
|
67
|
-
else if(currLocation == Location.PRE_OBJ && c == '<') ret = Location.WRITING_OBJ_URI;
|
68
|
-
else if(currLocation == Location.PRE_OBJ && c == '_') ret = Location.WRITING_OBJ_BNODE;
|
69
|
-
else if(currLocation == Location.PRE_OBJ && c == '"') ret = Location.WRITING_OBJ_LITERAL;
|
70
|
-
|
71
|
-
// Closing.
|
72
|
-
else if(currLocation == Location.WRITING_SUB_URI && c == '>') ret = Location.PRE_PRED;
|
73
|
-
else if(currLocation == Location.WRITING_BNODE_URI && c == ' ') ret = Location.PRE_PRED;
|
74
|
-
else if(currLocation == Location.WRITING_PRED_URI && c == '>') ret = Location.PRE_OBJ;
|
75
|
-
else if(currLocation == Location.WRITING_OBJ_URI && c == '>') ret = Location.POST_OBJ;
|
76
|
-
else if(currLocation == Location.WRITING_OBJ_BNODE && c == ' ') ret = Location.POST_OBJ;
|
77
|
-
else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '"') ret = Location.POST_OBJ;
|
78
|
-
else if(currLocation == Location.WRITING_LIT_LANG && c == ' ') ret = Location.POST_OBJ;
|
79
|
-
else if(currLocation == Location.WRITING_LIT_TYPE && c == '>') ret = Location.POST_OBJ;
|
80
|
-
|
81
|
-
// Closing typed and language literal.
|
82
|
-
else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '@') ret = Location.WRITING_LIT_LANG;
|
83
|
-
else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '^') ret = Location.WRITING_LIT_TYPE;
|
84
|
-
|
85
|
-
// Spaces.
|
86
|
-
else if( c == ' ' &&
|
87
|
-
(
|
88
|
-
currLocation == Location.PRE_SUBJECT ||
|
89
|
-
currLocation == Location.PRE_PRED ||
|
90
|
-
currLocation == Location.PRE_OBJ ||
|
91
|
-
currLocation == Location.POST_OBJ
|
92
|
-
)
|
93
|
-
) ret = currLocation;
|
94
|
-
|
95
|
-
// Reset.
|
96
|
-
else if(currLocation == Location.POST_OBJ && c == '.') ret = Location.PRE_SUBJECT;
|
97
|
-
|
98
|
-
// Error
|
99
|
-
else ret = Location.ERROR;
|
100
|
-
|
101
|
-
currState.location=ret;
|
102
|
-
}
|
103
|
-
|
104
|
-
return {
|
105
|
-
startState: function() {
|
106
|
-
return {
|
107
|
-
location : Location.PRE_SUBJECT,
|
108
|
-
uris : [],
|
109
|
-
anchors : [],
|
110
|
-
bnodes : [],
|
111
|
-
langs : [],
|
112
|
-
types : []
|
113
|
-
};
|
114
|
-
},
|
115
|
-
token: function(stream, state) {
|
116
|
-
var ch = stream.next();
|
117
|
-
if(ch == '<') {
|
118
|
-
transitState(state, ch);
|
119
|
-
var parsedURI = '';
|
120
|
-
stream.eatWhile( function(c) { if( c != '#' && c != '>' ) { parsedURI += c; return true; } return false;} );
|
121
|
-
state.uris.push(parsedURI);
|
122
|
-
if( stream.match('#', false) ) return 'variable';
|
123
|
-
stream.next();
|
124
|
-
transitState(state, '>');
|
125
|
-
return 'variable';
|
126
|
-
}
|
127
|
-
if(ch == '#') {
|
128
|
-
var parsedAnchor = '';
|
129
|
-
stream.eatWhile(function(c) { if(c != '>' && c != ' ') { parsedAnchor+= c; return true; } return false;});
|
130
|
-
state.anchors.push(parsedAnchor);
|
131
|
-
return 'variable-2';
|
132
|
-
}
|
133
|
-
if(ch == '>') {
|
134
|
-
transitState(state, '>');
|
135
|
-
return 'variable';
|
136
|
-
}
|
137
|
-
if(ch == '_') {
|
138
|
-
transitState(state, ch);
|
139
|
-
var parsedBNode = '';
|
140
|
-
stream.eatWhile(function(c) { if( c != ' ' ) { parsedBNode += c; return true; } return false;});
|
141
|
-
state.bnodes.push(parsedBNode);
|
142
|
-
stream.next();
|
143
|
-
transitState(state, ' ');
|
144
|
-
return 'builtin';
|
145
|
-
}
|
146
|
-
if(ch == '"') {
|
147
|
-
transitState(state, ch);
|
148
|
-
stream.eatWhile( function(c) { return c != '"'; } );
|
149
|
-
stream.next();
|
150
|
-
if( stream.peek() != '@' && stream.peek() != '^' ) {
|
151
|
-
transitState(state, '"');
|
152
|
-
}
|
153
|
-
return 'string';
|
154
|
-
}
|
155
|
-
if( ch == '@' ) {
|
156
|
-
transitState(state, '@');
|
157
|
-
var parsedLang = '';
|
158
|
-
stream.eatWhile(function(c) { if( c != ' ' ) { parsedLang += c; return true; } return false;});
|
159
|
-
state.langs.push(parsedLang);
|
160
|
-
stream.next();
|
161
|
-
transitState(state, ' ');
|
162
|
-
return 'string-2';
|
163
|
-
}
|
164
|
-
if( ch == '^' ) {
|
165
|
-
stream.next();
|
166
|
-
transitState(state, '^');
|
167
|
-
var parsedType = '';
|
168
|
-
stream.eatWhile(function(c) { if( c != '>' ) { parsedType += c; return true; } return false;} );
|
169
|
-
state.types.push(parsedType);
|
170
|
-
stream.next();
|
171
|
-
transitState(state, '>');
|
172
|
-
return 'variable';
|
173
|
-
}
|
174
|
-
if( ch == ' ' ) {
|
175
|
-
transitState(state, ch);
|
176
|
-
}
|
177
|
-
if( ch == '.' ) {
|
178
|
-
transitState(state, ch);
|
179
|
-
}
|
180
|
-
}
|
181
|
-
};
|
182
|
-
});
|
183
|
-
|
184
|
-
CodeMirror.defineMIME("text/n-triples", "ntriples");
|
185
|
-
|
186
|
-
});
|