mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 19:06:12 +02:00
Move parse plugin config under plugin_config
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
e7580f42f9
commit
404f2929f8
@ -19,7 +19,7 @@ class ApiController < ApplicationController
|
||||
end
|
||||
|
||||
def regexp_preview
|
||||
preview = RegexpPreview.processor(params[:parse_type]).new(params[:file], params[:parse_type], params)
|
||||
preview = RegexpPreview.processor(params[:parse_type]).new(params[:file], params[:parse_type], params[:plugin_config])
|
||||
|
||||
render json: preview.matches
|
||||
end
|
||||
|
||||
@ -26,7 +26,7 @@ $(document).ready(() => {
|
||||
},
|
||||
watch: {
|
||||
'parse.expression': function() {
|
||||
console.log('parse.expression')
|
||||
console.log(`parse.expression: ${this.parse.expression}`)
|
||||
this.preview()
|
||||
},
|
||||
'parse.time_format': function() {
|
||||
@ -53,7 +53,7 @@ $(document).ready(() => {
|
||||
this.parseType = name
|
||||
},
|
||||
onChangeParseConfig: function(data) {
|
||||
console.log("onChangeParseConfig")
|
||||
console.log(`onChangeParseConfig: ${data}`)
|
||||
_.merge(this.parse, data)
|
||||
this.preview()
|
||||
},
|
||||
@ -132,8 +132,6 @@ $(document).ready(() => {
|
||||
'X-CSRF-Token': this.token
|
||||
},
|
||||
data: {
|
||||
expression: this.parse.expression,
|
||||
time_format: this.parse.timeFormat,
|
||||
parse_type: _.isEmpty(this.parseType) ? "regexp" : this.parseType,
|
||||
file: this.path,
|
||||
plugin_config: this.parse
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user