mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
Remove an unused file
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
fad62d812f
commit
b642961fdb
@ -1,62 +0,0 @@
|
||||
import "lodash/lodash"
|
||||
$(document).ready(() => {
|
||||
let configUrl = (name) => {
|
||||
return `/daemon/setting/${name}/configure`
|
||||
}
|
||||
function ownedSectionOnChange() {
|
||||
const pluginName = _.last(document.documentURI.replace(/\/configure$/, "").split("/"))
|
||||
$("#buffer-section select").on("change", (event) => {
|
||||
$.ajax({
|
||||
url: configUrl(pluginName),
|
||||
method: "GET",
|
||||
data: {
|
||||
buffer_type: $(event.target).val()
|
||||
}
|
||||
}).then((data) => {
|
||||
$("#buffer-section").html($(data).find("#buffer-section").html())
|
||||
ownedSectionOnChange()
|
||||
})
|
||||
})
|
||||
|
||||
$("#storage-section select").on("change", (event) => {
|
||||
$.ajax({
|
||||
url: configUrl(pluginName),
|
||||
method: "GET",
|
||||
data: {
|
||||
storage_type: $(event.target).val()
|
||||
}
|
||||
}).then((data) => {
|
||||
$("#storage-section").html($(data).find("#storage-section").html())
|
||||
ownedSectionOnChange()
|
||||
})
|
||||
})
|
||||
|
||||
$("#parse-section select").on("change", (event) => {
|
||||
$.ajax({
|
||||
url: configUrl(pluginName),
|
||||
method: "GET",
|
||||
data: {
|
||||
parse_type: $(event.target).val()
|
||||
}
|
||||
}).then((data) => {
|
||||
$("#parse-section").html($(data).find("#parse-section").html())
|
||||
ownedSectionOnChange()
|
||||
})
|
||||
})
|
||||
|
||||
$("#format-section select").on("change", (event) => {
|
||||
$.ajax({
|
||||
url: configUrl(pluginName),
|
||||
method: "GET",
|
||||
data: {
|
||||
format_type: $(event.target).val()
|
||||
}
|
||||
}).then((data) => {
|
||||
$("#format-section").html($(data).find("#format-section").html())
|
||||
ownedSectionOnChange()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
ownedSectionOnChange()
|
||||
})
|
@ -1,6 +1,5 @@
|
||||
- page_title t("fluentd.settings.#{target_plugin_name}.show.page_title")
|
||||
- add_javascript_pack_tag("nested_settings")
|
||||
- add_javascript_pack_tag("owned_plugin_section")
|
||||
|
||||
.card.mb-3
|
||||
.card-body.bg-light
|
||||
|
Loading…
Reference in New Issue
Block a user