|
|
|
@ -137,7 +137,66 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.filePathRow = _ref; |
|
|
|
|
}, |
|
|
|
|
}], |
|
|
|
|
}, { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.icon_change_button", |
|
|
|
|
iconCls: this.model.isOpen ? "expander-down-font" : "expander-right-font", |
|
|
|
|
ref: (_ref) => { |
|
|
|
|
this.OtherConfigButton = _ref; |
|
|
|
|
}, |
|
|
|
|
handler: () => { |
|
|
|
|
this.store.setIsOpen(!this.model.isOpen); |
|
|
|
|
this.OtherConfigButton.setIcon(this.model.isOpen ? "expander-down-font" : "expander-right-font"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
cls: "bi-high-light", |
|
|
|
|
text: BI.i18nText('Plugin-S3_Other_Config'), |
|
|
|
|
handler: () => { |
|
|
|
|
this.store.setIsOpen(!this.model.isOpen); |
|
|
|
|
this.OtherConfigButton.setIcon(this.model.isOpen ? "expander-down-font" : "expander-right-font"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: 'bi.vertical', |
|
|
|
|
invisible: () => !this.model.isOpen, |
|
|
|
|
items: [{ |
|
|
|
|
type: "dec.label.editor.item", |
|
|
|
|
textWidth: LABEL_WIDTH, |
|
|
|
|
editorWidth: EDITOR_WIDTH, |
|
|
|
|
watermark: BI.i18nText("Plugin-S3_Input"), |
|
|
|
|
text: "PathStyleAccess", |
|
|
|
|
value: this.model.enablePathStyleAccess, |
|
|
|
|
el: { |
|
|
|
|
disabled: !o.editable, |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.store.setEnablePathStyleAccess(this.getValue()); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "dec.label.editor.item", |
|
|
|
|
textWidth: LABEL_WIDTH, |
|
|
|
|
editorWidth: EDITOR_WIDTH, |
|
|
|
|
watermark: BI.i18nText("Plugin-S3_Input"), |
|
|
|
|
text: "SignerOverride", |
|
|
|
|
value: this.model.signerOverride, |
|
|
|
|
el: { |
|
|
|
|
disabled: !o.editable, |
|
|
|
|
}, |
|
|
|
|
tgap: 15, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self.store.setSignerOverride(this.getValue()); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -149,6 +208,8 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
password: this.passwordRow.getCipher(), |
|
|
|
|
bucket: this.model.bucket, |
|
|
|
|
workRoot: this.filePathRow.getValue(), |
|
|
|
|
enablePathStyleAccess: this.model.enablePathStyleAccess, |
|
|
|
|
signerOverride: this.model.signerOverride, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -189,6 +250,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
password: val.password, |
|
|
|
|
bucket: val.bucket, |
|
|
|
|
workRoot: val.workRoot, |
|
|
|
|
isOpen: false, |
|
|
|
|
enablePathStyleAccess: false, |
|
|
|
|
signerOverride: "", |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -218,6 +282,18 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
setBucket: function (v) { |
|
|
|
|
this.model.bucket = v; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setEnablePathStyleAccess: function (v) { |
|
|
|
|
this.model.enablePathStyleAccess = v; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setSignerOverride: function (v) { |
|
|
|
|
this.model.signerOverride = v; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setIsOpen: function (v) { |
|
|
|
|
this.model.isOpen = v; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
BI.model("dec.model.intelligence.cluster.file.s3", Model); |
|
|
|
|