Compare commits
195 Commits
master
...
release/11
Author | SHA1 | Date |
---|---|---|
superman | 26510cffb8 | 1 week ago |
LyKay-王积凯 | 5a967e3edb | 1 week ago |
Afly-储泓飞 | ebb561fd36 | 2 weeks ago |
Afly | 65099c738d | 2 weeks ago |
Afly | 17514e7efb | 2 weeks ago |
Afly | 44a345b372 | 2 weeks ago |
superman | d1ad81a9e8 | 2 months ago |
LyKay-王积凯 | 0f5c47c6ff | 2 months ago |
Afly-储泓飞 | f7ac7f6d31 | 2 months ago |
Afly | fe89ed9439 | 2 months ago |
Afly | e7ef7f5871 | 2 months ago |
inter | 532f488a8a | 3 months ago |
Cici.Liu | 9f4e97ad6e | 3 months ago |
Afly-储泓飞 | 856f7c5131 | 4 months ago |
Afly | 01468c0949 | 4 months ago |
Afly | 51d1a38276 | 4 months ago |
Afly-储泓飞 | 6cdfcab3bf | 6 months ago |
Afly | c28babacf8 | 6 months ago |
Afly | 53a4373973 | 6 months ago |
Afly | aed6673e94 | 6 months ago |
inter | 19ff6ecf3f | 8 months ago |
inter | e30f6ba0ba | 8 months ago |
Caroline | 8555366f91 | 9 months ago |
superman | 14b2a65bda | 10 months ago |
LyKay-王积凯 | b9e346241f | 10 months ago |
inter | 8981a0fecf | 10 months ago |
inter | b1eee3977c | 10 months ago |
inter | bbe4ba9c99 | 10 months ago |
inter | 7a61b91bda | 10 months ago |
Chauvet | 450d70a096 | 10 months ago |
Lauren.Wu | ebdd5284bc | 10 months ago |
inter | 2e022dfbe9 | 10 months ago |
inter | 46c7dce450 | 10 months ago |
inter | 11da18fc2d | 10 months ago |
inter | 395cbb7e64 | 10 months ago |
inter | c5aa4f6d4e | 10 months ago |
inter | fc73eda3f8 | 10 months ago |
inter | afef09b0ca | 10 months ago |
superman | d3e4aa839b | 11 months ago |
LyKay-王积凯 | 3b492bac70 | 11 months ago |
Afly-储泓飞 | b3caf72fb9 | 11 months ago |
Afly | f0809bb516 | 11 months ago |
Afly | 2e2ffa713d | 11 months ago |
Afly | 32d148cbb2 | 11 months ago |
Afly-储泓飞 | a64686a904 | 1 year ago |
Afly | 1db7d2bc1d | 1 year ago |
Afly | aa27d922ab | 1 year ago |
superman | c4f8ba5179 | 1 year ago |
Lipei-李培 | c557fa2045 | 1 year ago |
Afly-储泓飞 | 5557571834 | 1 year ago |
Afly | 347f02c22b | 1 year ago |
Afly-储泓飞 | 05785ebf85 | 1 year ago |
Afly | af3030e1d4 | 1 year ago |
Afly | e697d57598 | 1 year ago |
superman | a0d5c1ebfb | 1 year ago |
Icey.Zhang-张洁 | 80f7e61d92 | 1 year ago |
Afly-储泓飞 | c6d22f38b6 | 1 year ago |
Afly | 550382e28e | 1 year ago |
Afly | 07ab867c26 | 1 year ago |
superman | fa3cdc7a71 | 1 year ago |
Icey.Zhang-张洁 | f5a08831a9 | 1 year ago |
Afly-储泓飞 | 3a89ec51f6 | 1 year ago |
AeolusZane | 74c4068979 | 1 year ago |
Afly | 687c1715aa | 1 year ago |
Afly | e569e0e87a | 1 year ago |
Afly-储泓飞 | cfc791698d | 1 year ago |
Afly | 8051a92c88 | 1 year ago |
Afly | 0ae4e3674b | 1 year ago |
Aeolus.Zhang-张敬峥 | b502148359 | 2 years ago |
Aeolus.Zhang-张敬峥 | ce9b12a50b | 2 years ago |
Aeolus.Zhang-张敬峥 | d7357e83d9 | 2 years ago |
Aeolus.Zhang-张敬峥 | 3213faf55a | 2 years ago |
superman | 3ad30598dc | 2 years ago |
Icey.Zhang-张洁 | 923dd4261a | 2 years ago |
Afly-储泓飞 | 3cf593f1c9 | 2 years ago |
Afly | 42bc64567d | 2 years ago |
Afly | d4e744b798 | 2 years ago |
Afly | 047402bc02 | 2 years ago |
Aeolus.Zhang-张敬峥 | 68aaa757c2 | 2 years ago |
Aeolus.Zhang-张敬峥 | e6d47da394 | 2 years ago |
Afly-储泓飞 | 27e7887de1 | 2 years ago |
Afly | a80537696d | 2 years ago |
Afly | 9c5b9ffcc0 | 2 years ago |
Afly-储泓飞 | 020abae898 | 2 years ago |
Afly | 2bd592e352 | 2 years ago |
Aeolus.Zhang-张敬峥 | 526508dd27 | 2 years ago |
Aeolus.Zhang-张敬峥 | 2c8bab646c | 2 years ago |
Afly-储泓飞 | 79b214854e | 2 years ago |
Afly | 974c7e2b42 | 2 years ago |
Afly | d5e6992dda | 2 years ago |
Aeolus.Zhang-张敬峥 | 729dadf90d | 2 years ago |
Aeolus.Zhang-张敬峥 | 983bb3bee4 | 2 years ago |
Aeolus.Zhang-张敬峥 | 5693ab13b7 | 2 years ago |
Aeolus.Zhang-张敬峥 | 8ad56d3eb3 | 2 years ago |
superman | 3fefcd51e3 | 2 years ago |
Icey.Zhang-张洁 | 4425926cd5 | 2 years ago |
Aeolus.Zhang-张敬峥 | 706604a5af | 2 years ago |
Aeolus.Zhang-张敬峥 | 883e5c77a1 | 2 years ago |
Afly-储泓飞 | 62429affc9 | 2 years ago |
Afly | 23d0b22f85 | 2 years ago |
Afly | 380c2dbe73 | 2 years ago |
Aeolus.Zhang-张敬峥 | dfdb4f73c5 | 2 years ago |
Ocean.Hu-胡浩 | 4709bb13c7 | 2 years ago |
Ocean.Hu | 66033cd226 | 2 years ago |
Ocean.Hu | 1e383f96f0 | 2 years ago |
Ocean.Hu-胡浩 | 69e19ba838 | 2 years ago |
Ocean.Hu | 9776c12c71 | 2 years ago |
Afly-储泓飞 | 70b124bab9 | 2 years ago |
Afly | 9905ff5db6 | 2 years ago |
superman | 5ec30e6b98 | 2 years ago |
Aeolus.Zhang-张敬峥 | 600f1ebd33 | 2 years ago |
Icey.Zhang-张洁 | ac42ffa4d1 | 2 years ago |
Afly-储泓飞 | b4efb4c951 | 2 years ago |
Afly | 9df410a237 | 2 years ago |
Afly | da7ee21d50 | 2 years ago |
Freddy-李飞宇 | cbf0a67324 | 2 years ago |
Freddy | 39f1bea676 | 2 years ago |
Freddy-李飞宇 | fc9189fc75 | 2 years ago |
Freddy | c4cfbc8033 | 2 years ago |
Afly-储泓飞 | e0bb7ccb9b | 2 years ago |
Afly | 582fd2d3c0 | 2 years ago |
tennyC-谭聪聪 | 27a8714b3f | 2 years ago |
Afly-储泓飞 | 13332af770 | 2 years ago |
Afly | 9ecfeaed5c | 2 years ago |
Afly-储泓飞 | 1e89092317 | 2 years ago |
Afly | 8b110c2425 | 2 years ago |
Icey.Zhang | f3b8700e52 | 3 years ago |
Icey.Zhang | 3c088feaad | 3 years ago |
Ocean | c25ba7c870 | 3 years ago |
Ocean | 2bfac99c98 | 3 years ago |
Ocean.Hu | 4f1873fbfc | 3 years ago |
Ocean | 2d554e9a25 | 3 years ago |
Icey.Zhang | de64b3a6cf | 3 years ago |
Afly | 77ee1d9227 | 3 years ago |
Afly | a3901cd06e | 3 years ago |
Icey.Zhang | a4b800248b | 3 years ago |
Afly | 6563376e98 | 3 years ago |
Afly | c98a45e637 | 3 years ago |
Afly | 9580221e24 | 3 years ago |
Afly | 1dd2dcbe67 | 3 years ago |
Afly | 0516aa2837 | 3 years ago |
Icey.Zhang | ecfe0eec98 | 3 years ago |
Afly | 96077f1bbf | 3 years ago |
Afly | ecd2da9775 | 3 years ago |
Icey.Zhang | 3ace1f233f | 3 years ago |
lidongy | 51c5478b2d | 3 years ago |
lidongy | b8c38aaa18 | 3 years ago |
lidongy | 7b3ee6b47a | 3 years ago |
lidongy | d7c7630d03 | 3 years ago |
lidongy | 4c5cb1a7d6 | 3 years ago |
Icey.Zhang | 102dc533e4 | 3 years ago |
lidongy | 6d75e6924c | 3 years ago |
lidongy | 0bb59dd318 | 3 years ago |
lidongy | 2537e05725 | 3 years ago |
lidongy | 0e76c422b6 | 3 years ago |
Dylan.Liu | 2c042df4bd | 3 years ago |
Dylan.Liu | b84845ee29 | 3 years ago |
ju|剧浩宇 | 19dc9ba92e | 4 years ago |
Joe.Jiang | 8911690304 | 4 years ago |
Roger.Chen | 41d0c61f78 | 4 years ago |
Roger.Chen | 533df83872 | 4 years ago |
Feng | b6d9f00336 | 4 years ago |
Feng | 4623bd97c8 | 4 years ago |
Feng | 8834f03f2b | 4 years ago |
Feng | cc8efcd603 | 4 years ago |
Feng | 39b51beaf8 | 4 years ago |
Feng | 3ddfba09e2 | 4 years ago |
Feng | 222b8c93e2 | 4 years ago |
Frank.Qiu | f5146deee0 | 4 years ago |
Frank.Qiu | afbeeb7da0 | 4 years ago |
Feng | 7d2a958e8a | 4 years ago |
Feng | 3c1eb94de7 | 4 years ago |
Feng | 4a0f1369d1 | 4 years ago |
Feng | a56cdef22c | 4 years ago |
Feng | 41d31de6e6 | 4 years ago |
Feng | 9395670690 | 4 years ago |
Feng | 893bbae5b4 | 4 years ago |
Dylan.Liu | 06689bd208 | 4 years ago |
Dylan.Liu | 0402aa3a9e | 4 years ago |
Dylan.Liu | ac8ee784fe | 4 years ago |
Feng | 0506f22a5d | 4 years ago |
Feng | b3beded0f2 | 4 years ago |
Feng | f16a557bf0 | 4 years ago |
Feng | 2c5773904b | 4 years ago |
Feng | 19a499536b | 4 years ago |
Feng | 39e97de37f | 4 years ago |
Feng | d797433f1a | 4 years ago |
Feng | 1c342df1e0 | 4 years ago |
Feng | 5724103649 | 4 years ago |
Feng | dee24ab76e | 4 years ago |
Feng | 4bf15d218c | 4 years ago |
Feng | b0a6e35c7c | 4 years ago |
Feng | bba598df12 | 4 years ago |
Feng | ad2da13ab2 | 4 years ago |
Feng | ab60e1c61f | 4 years ago |
39 changed files with 1015 additions and 329 deletions
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
<project basedir="." default="jar" name="plugin-repository-s3"> |
||||
<!-- JDK路径,根据自己机器上实际位置修改--> |
||||
<property name="jdk.home" value="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home"/> |
||||
|
||||
<property name="libs" value="${basedir}/lib"/> |
||||
<property name="publicLibs" value=""/> |
||||
<property name="destLoc" value="."/> |
||||
<property name="classes" value="classes"/> |
||||
<xmlproperty file="${basedir}/plugin.xml"/> |
||||
<property name="current-version" value="${plugin.version}"/> |
||||
|
||||
<!-- 插件版本--> |
||||
<property name="plugin-version" value="${current-version}"/> |
||||
<!-- 插件名字--> |
||||
<property name="plugin-name" value="s3-repository"/> |
||||
<property name="plugin-jar" value="fr-plugin-${plugin-name}-${plugin-version}.jar"/> |
||||
|
||||
<target name="prepare"> |
||||
<delete dir="${classes}"/> |
||||
<delete dir="fr-plugin-${plugin-name}-${plugin-version}"/> |
||||
<xmlproperty file="${basedir}/plugin.xml"/> |
||||
<delete dir="${destLoc}/${plugin.name}"/> |
||||
</target> |
||||
<path id="compile.classpath"> |
||||
<fileset dir="${libs}"> |
||||
<include name="**/*.jar"/> |
||||
</fileset> |
||||
<fileset dir="${publicLibs}"> |
||||
<include name="**/*.jar"/> |
||||
</fileset> |
||||
</path> |
||||
<patternset id="resources4Jar"> |
||||
<exclude name="**/.settings/**"/> |
||||
<exclude name=".classpath"/> |
||||
<exclude name=".project"/> |
||||
|
||||
<exclude name="**/*.java"/> |
||||
<exclude name="**/*.db"/> |
||||
<exclude name="**/*.g"/> |
||||
<exclude name="**/package.html"/> |
||||
</patternset> |
||||
<target name="copy_resources"> |
||||
<echo message="从${resources_from}拷贝图片,JS,CSS等资源文件"/> |
||||
<delete dir="tmp"/> |
||||
<copy todir="tmp"> |
||||
<fileset dir="${resources_from}/src/main/resources"> |
||||
<patternset refid="resources4Jar"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${classes}"> |
||||
<fileset dir="tmp"/> |
||||
</copy> |
||||
<delete dir="tmp"/> |
||||
</target> |
||||
<target name="compile_javas"> |
||||
<echo message="编译${compile_files}下的Java文件"/> |
||||
<javac destdir="${classes}" debug="false" optimize="on" source="${source_jdk_version}" |
||||
target="${target_jdk_version}" |
||||
fork="true" memoryMaximumSize="512m" listfiles="false" srcdir="${basedir}" |
||||
executable="${compile_jdk_version}/bin/javac"> |
||||
<src path="${basedir}/src/main/java"/> |
||||
<exclude name="**/.svn/**"/> |
||||
<compilerarg line="-encoding UTF8 "/> |
||||
<classpath refid="compile.classpath"/> |
||||
</javac> |
||||
</target> |
||||
|
||||
<target name="jar_classes"> |
||||
<echo message="打Jar包:${jar_name}"/> |
||||
<delete file="${basedir}/${jar_name}"/> |
||||
<jar jarfile="${basedir}/${jar_name}"> |
||||
<fileset dir="${classes}"> |
||||
</fileset> |
||||
</jar> |
||||
</target> |
||||
|
||||
<target name="super_jar" depends="prepare"> |
||||
<antcall target="copy_resources"> |
||||
<param name="resources_from" value="${basedir}"/> |
||||
</antcall> |
||||
<antcall target="compile_javas"> |
||||
<param name="source_jdk_version" value="1.8"/> |
||||
<param name="target_jdk_version" value="1.8"/> |
||||
<param name="compile_jdk_version" value="${jdk.home}"/> |
||||
<param name="compile_files" value="${basedir}/src"/> |
||||
</antcall> |
||||
<echo message="compile plugin success!"/> |
||||
|
||||
<antcall target="jar_classes"> |
||||
<param name="jar_name" value="${plugin-jar}"/> |
||||
</antcall> |
||||
<delete dir="${classes}"/> |
||||
</target> |
||||
|
||||
<target name="jar" depends="super_jar"> |
||||
<antcall target="zip"/> |
||||
</target> |
||||
|
||||
<target name="zip"> |
||||
<property name="plugin-folder" value="fr-plugin-${plugin-name}-${plugin-version}"/> |
||||
<echo message="----------zip files----------"/> |
||||
<mkdir dir="${plugin-folder}"/> |
||||
<copy todir="${plugin-folder}"> |
||||
<fileset dir="."> |
||||
<include name="${plugin-jar}"/> |
||||
<include name="plugin.xml"/> |
||||
</fileset> |
||||
<fileset dir="${libs}"> |
||||
<include name="*.jar"/> |
||||
<include name="*.dll"/> |
||||
</fileset> |
||||
</copy> |
||||
<zip destfile="${basedir}/${plugin-folder}.zip" basedir="."> |
||||
<include name="${plugin-folder}/*.jar"/> |
||||
<include name="${plugin-folder}/*.dll"/> |
||||
<include name="${plugin-folder}/plugin.xml"/> |
||||
</zip> |
||||
<xmlproperty file="${basedir}/plugin.xml"/> |
||||
<move file="${plugin-folder}.zip" todir="${destLoc}/${plugin.name}"/> |
||||
<delete dir="${plugin-folder}"/> |
||||
</target> |
||||
</project> |
@ -0,0 +1,309 @@
|
||||
BI.config("dec.constant.intelligence.cluster.file.server", function (items) { |
||||
items.push({ |
||||
value: "S3", // 地址栏显示的hash值
|
||||
id: "decision-intelligence-cluster-file-s3", // id
|
||||
text: "S3", // 文字
|
||||
cardType: "dec.intelligence.cluster.file.s3", |
||||
workRoot: false, |
||||
}); |
||||
|
||||
return items; |
||||
}); |
||||
|
||||
|
||||
!(function () { |
||||
var LABEL_WIDTH = 107, EDITOR_WIDTH = 393; |
||||
var S3 = BI.inherit(BI.Widget, { |
||||
|
||||
props: { |
||||
baseCls: "dec-cluster-ftp", |
||||
value: {}, |
||||
}, |
||||
|
||||
_store: function () { |
||||
return BI.Models.getModel("dec.model.intelligence.cluster.file.s3", { |
||||
value: this.options.value, |
||||
}); |
||||
}, |
||||
|
||||
render: function () { |
||||
var self = this, o = this.options; |
||||
|
||||
return { |
||||
type: "bi.vertical", |
||||
tgap: 15, |
||||
items: [ |
||||
{ |
||||
type: "dec.label.editor.item", |
||||
textWidth: LABEL_WIDTH, |
||||
editorWidth: EDITOR_WIDTH, |
||||
watermark: BI.i18nText("Plugin-S3_Input"), |
||||
text: BI.i18nText("Plugin-S3_End_Point"), |
||||
value: this.model.endPoint, |
||||
el: { |
||||
disabled: !o.editable, |
||||
}, |
||||
ref: function (_ref) { |
||||
self.endPointRow = _ref; |
||||
}, |
||||
listeners: [{ |
||||
eventName: BI.Editor.EVENT_CHANGE, |
||||
action: function () { |
||||
self.store.setEndPoint(this.getValue()); |
||||
}, |
||||
}], |
||||
}, { |
||||
type: "dec.label.editor.item", |
||||
textWidth: LABEL_WIDTH, |
||||
editorWidth: EDITOR_WIDTH, |
||||
watermark: BI.i18nText("Plugin-S3_Input"), |
||||
text: BI.i18nText("Plugin-S3_Region"), |
||||
value: this.model.region, |
||||
el: { |
||||
disabled: !o.editable, |
||||
}, |
||||
ref: function (_ref) { |
||||
self.regionRow = _ref; |
||||
}, |
||||
listeners: [{ |
||||
eventName: BI.Editor.EVENT_CHANGE, |
||||
action: function () { |
||||
self.store.setRegion(this.getValue()); |
||||
}, |
||||
}], |
||||
}, { |
||||
type: "dec.label.editor.item", |
||||
textWidth: LABEL_WIDTH, |
||||
editorWidth: EDITOR_WIDTH, |
||||
watermark: BI.i18nText("Plugin-S3_Input"), |
||||
text: BI.i18nText("Plugin-S3_Access_Key_Id"), |
||||
value: this.model.accessKeyId, |
||||
el: { |
||||
disabled: !o.editable, |
||||
}, |
||||
ref: function (_ref) { |
||||
self.portRow = _ref; |
||||
}, |
||||
listeners: [{ |
||||
eventName: BI.Editor.EVENT_CHANGE, |
||||
action: function () { |
||||
self.store.setAccessKeyId(this.getValue()); |
||||
}, |
||||
}], |
||||
}, |
||||
{ |
||||
type: "dec.common.cipher.editor", |
||||
textWidth: LABEL_WIDTH, |
||||
editorWidth: EDITOR_WIDTH, |
||||
watermark: BI.i18nText("Plugin-S3_Access_Key_Secret"), |
||||
text: BI.i18nText("Plugin-S3_Access_Key_Secret"), |
||||
value: this.model.password, |
||||
el: { |
||||
disabled: !o.editable, |
||||
}, |
||||
ref: function (_ref) { |
||||
self.passwordRow = _ref; |
||||
}, |
||||
}, |
||||
{ |
||||
type: "dec.label.editor.item", |
||||
textWidth: LABEL_WIDTH, |
||||
editorWidth: EDITOR_WIDTH, |
||||
watermark: BI.i18nText("Plugin-S3_Bucket"), |
||||
text: BI.i18nText("Plugin-S3_Bucket"), |
||||
value: this.model.bucket, |
||||
el: { |
||||
disabled: !o.editable, |
||||
}, |
||||
listeners: [{ |
||||
eventName: BI.Editor.EVENT_CHANGE, |
||||
action: function () { |
||||
self.store.setBucket(this.getValue()); |
||||
}, |
||||
}], |
||||
}, |
||||
{ |
||||
type: "dec.label.editor.item", |
||||
el: { |
||||
disabled: !o.editable, |
||||
}, |
||||
textWidth: LABEL_WIDTH, |
||||
editorWidth: EDITOR_WIDTH, |
||||
watermark: BI.i18nText("Dec-Please_Input"), |
||||
text: BI.i18nText("Dec-Basic_Path"), |
||||
value: this.model.workRoot, |
||||
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", |
||||
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, |
||||
ref: function (_ref) { |
||||
self.enablePathStyleAccessRow = _ref; |
||||
}, |
||||
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()); |
||||
} |
||||
}] |
||||
}], |
||||
} |
||||
] |
||||
}; |
||||
}, |
||||
|
||||
getValue: function () { |
||||
var enablePathStyleAccess = false; |
||||
if (this.model.enablePathStyleAccess === 'true') { |
||||
enablePathStyleAccess = true; |
||||
} |
||||
|
||||
return { |
||||
endPoint: this.model.endPoint, |
||||
region: this.model.region, |
||||
accessKeyId: this.model.accessKeyId, |
||||
password: this.passwordRow.getCompleteCipher(), |
||||
bucket: this.model.bucket, |
||||
workRoot: this.filePathRow.getValue(), |
||||
enablePathStyleAccess, |
||||
signerOverride: this.model.signerOverride, |
||||
}; |
||||
}, |
||||
|
||||
validation: function () { |
||||
var valid = true; |
||||
var path = this.filePathRow.getValue(); |
||||
if (Dec.Utils.strLength(path) > DecCst.STRING_SHORT_TEXT_LENGTH) { |
||||
this.filePathRow.showError(BI.i18nText("Dec-Error_Length_Greater_Than_Short_Text")); |
||||
valid = false; |
||||
} |
||||
if (BI.startWith(path, "/") || !BI.endWith(path, "/")) { |
||||
this.filePathRow.showError(BI.i18nText("Dec-Error_Start_With_Slash_Or_End_Without_Slash")); |
||||
valid = false; |
||||
} |
||||
if (!BI.isKey(path)) { |
||||
this.filePathRow.showError(BI.i18nText("Dec-Error_Null")); |
||||
valid = false; |
||||
} |
||||
if (!(this.model.enablePathStyleAccess === 'false' || this.model.enablePathStyleAccess === 'true')) { |
||||
this.enablePathStyleAccessRow.showError(BI.i18nText("Plugin-S3_EnablePathStyleAccess_Error_Tip")); |
||||
valid = false; |
||||
} |
||||
|
||||
return valid; |
||||
}, |
||||
|
||||
}); |
||||
BI.shortcut("dec.intelligence.cluster.file.s3", S3); |
||||
}()); |
||||
|
||||
|
||||
!(function () { |
||||
var Model = BI.inherit(Fix.Model, { |
||||
|
||||
state: function () { |
||||
var val = this.options.value; |
||||
|
||||
return { |
||||
endPoint: val.endPoint, |
||||
region: val.region, |
||||
accessKeyId: val.accessKeyId, |
||||
password: val.password, |
||||
bucket: val.bucket, |
||||
workRoot: val.workRoot, |
||||
isOpen: false, |
||||
enablePathStyleAccess: String(Boolean(val.enablePathStyleAccess)), |
||||
signerOverride: val.signerOverride, |
||||
}; |
||||
}, |
||||
|
||||
computed: { |
||||
encodingArray: function () { |
||||
return BI.map(DecCst.EncodeConstants.ENCODING_ARRAY, function (i, v) { |
||||
return { |
||||
value: v, |
||||
}; |
||||
}); |
||||
}, |
||||
}, |
||||
|
||||
actions: { |
||||
setEndPoint: function (v) { |
||||
this.model.endPoint = v; |
||||
}, |
||||
|
||||
setRegion: function (v) { |
||||
this.model.region = v; |
||||
}, |
||||
|
||||
setAccessKeyId: function (v) { |
||||
this.model.accessKeyId = v; |
||||
}, |
||||
|
||||
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); |
||||
}()); |
@ -0,0 +1,10 @@
|
||||
const gulp = require('gulp'); |
||||
const uglify = require('gulp-uglify'); |
||||
|
||||
function build() { |
||||
return gulp.src('./bundle.js') |
||||
.pipe(uglify()) |
||||
.pipe(gulp.dest('../src/main/resources/com/fanruan/fs/s3/repository/web/js')); |
||||
} |
||||
|
||||
exports.default = build; |
@ -0,0 +1,13 @@
|
||||
{ |
||||
"name": "front", |
||||
"version": "1.0.0", |
||||
"main": "index.js", |
||||
"license": "MIT", |
||||
"scripts": { |
||||
"build": "gulp" |
||||
}, |
||||
"dependencies": { |
||||
"gulp": "^4.0.2", |
||||
"gulp-uglify": "^3.0.2" |
||||
} |
||||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
Dec-Error_Start_With_Slash_Or_End_Without_Slash=The path cannot start with slashes (/) and must end with slashes (/). |
||||
Plugin-S3_Access_Key_Id=Access Key ID |
||||
Plugin-S3_Access_Key_Secret=Access Key Secret |
||||
Plugin-S3_Bucket=Bucket |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Input=Enter a value here. |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Other_Config=More Settings |
||||
Plugin-S3_EnablePathStyleAccess_Error_Tip=Enter true or false. |
||||
Plugin-Xml-I18n-S3repository_Name=S3 Resource Warehouse |
||||
Plugin-Xml-I18n-S3repository_Description=This plugin allows you to use a cloud storage file system that supports the S3 protocol as a file server. |
||||
Plugin-Xml-I18n-S3repository_Change_Notes=\u0020 |
@ -1,6 +0,0 @@
|
||||
Plugin-S3_Input=Please Input |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Access_Key_Id=AccessKeyId |
||||
Plugin-S3_Access_Key_Secret=AccessKeySecret |
||||
Plugin-S3_Bucket=Bucket |
@ -0,0 +1,12 @@
|
||||
Dec-Error_Start_With_Slash_Or_End_Without_Slash=\u30D1\u30B9\u306F\u300C/\u300D\u3067\u59CB\u307E\u308B\u3053\u3068\u304C\u3067\u304D\u306A\u3044\u3002\u300C/\u300D\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308B\u3002 |
||||
Plugin-S3_Access_Key_Id=AccessKeyId |
||||
Plugin-S3_Access_Key_Secret=AccessKeySecret |
||||
Plugin-S3_Bucket=Bucket |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Input=\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002 |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Other_Config=\u3088\u308A\u591A\u304F\u306E\u8A2D\u5B9A |
||||
Plugin-S3_EnablePathStyleAccess_Error_Tip=true\u304Bfalse\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044 |
||||
Plugin-Xml-I18n-S3repository_Name=S3\u30EA\u30BD\u30FC\u30B9\u30A6\u30A7\u30A2\u30CF\u30A6\u30B9 |
||||
Plugin-Xml-I18n-S3repository_Change_Notes=\u0020 |
||||
Plugin-Xml-I18n-S3repository_Description=\u3053\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u306F\u3001S3\u30D7\u30ED\u30C8\u30B3\u30EB\u3092\u30B5\u30DD\u30FC\u30C8\u3059\u308B\u30AF\u30E9\u30A6\u30C9\u30B9\u30C8\u30EC\u30FC\u30B8\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u3092\u30D5\u30A1\u30A4\u30EB\u30B5\u30FC\u30D0\u30FC\u3068\u3057\u3066\u4F7F\u7528\u3067\u304D\u308B\u3088\u3046\u306B\u3057\u307E\u3059\u3002 |
@ -0,0 +1,12 @@
|
||||
Dec-Error_Start_With_Slash_Or_End_Without_Slash=\uACBD\uB85C\uC758 \uC2DC\uC791 \uBD80\uBD84\uC5D0 \uC2AC\uB798\uC2DC\uB97C \uAC00\uD560 \uC218 \uC5C6\uC73C\uBA70, \uBC18\uB4DC\uC2DC \uC2AC\uB798\uC2DC\uB85C \uB9C8\uBB34\uB9AC\uD574\uC57C \uD569\uB2C8\uB2E4 |
||||
Plugin-S3_Access_Key_Id=AccessKeyId |
||||
Plugin-S3_Access_Key_Secret=AccessKeySecret |
||||
Plugin-S3_Bucket=Bucket |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Input=\uC785\uB825\uD574 \uC8FC\uC138\uC694 |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Other_Config=\uB354 \uB9CE\uC740 \uC124\uC815 |
||||
Plugin-S3_EnablePathStyleAccess_Error_Tip=true \uB610\uB294 false\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624 |
||||
Plugin-Xml-I18n-S3repository_Name=S3 \uC800\uC7A5\uC18C |
||||
Plugin-Xml-I18n-S3repository_Description=s3 \uD504\uB85C\uD1A0\uCF5C\uC744 \uC9C0\uC6D0\uD558\uB294 \uD074\uB77C\uC6B0\uB4DC \uC2A4\uD1A0\uB9AC\uC9C0 \uD30C\uC77C \uC2DC\uC2A4\uD15C\uC744 \uD30C\uC77C \uC11C\uBC84\uB85C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. |
||||
Plugin-Xml-I18n-S3repository_Change_Notes=\u0020 |
@ -0,0 +1,12 @@
|
||||
Dec-Error_Start_With_Slash_Or_End_Without_Slash=\u8DEF\u5F84\u5F00\u5934\u4E0D\u80FD\u52A0\u659C\u6760\uFF0C\u5FC5\u987B\u4EE5\u659C\u6760\u7ED3\u5C3E |
||||
Plugin-S3_Access_Key_Id=AccessKeyId |
||||
Plugin-S3_Access_Key_Secret=AccessKeySecret |
||||
Plugin-S3_Bucket=Bucket |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Input=\u8BF7\u8F93\u5165 |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Other_Config=\u66f4\u591a\u8bbe\u7f6e |
||||
Plugin-S3_EnablePathStyleAccess_Error_Tip=\u8bf7\u8f93\u5165true\u6216false |
||||
Plugin-Xml-I18n-S3repository_Name=S3\u8d44\u6e90\u4ed3\u5e93 |
||||
Plugin-Xml-I18n-S3repository_Description=\u4f7f\u7528\u652f\u6301s3\u534f\u8bae\u7684\u4e91\u5b58\u50a8\u6587\u4ef6\u7cfb\u7edf\u4f5c\u4e3a\u6587\u4ef6\u670d\u52a1\u5668\u3002 |
||||
Plugin-Xml-I18n-S3repository_Change_Notes=\u0020 |
@ -1,6 +0,0 @@
|
||||
Plugin-S3_Input=\u8BF7\u8F93\u5165 |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Access_Key_Id=AccessKeyId |
||||
Plugin-S3_Access_Key_Secret=AccessKeySecret |
||||
Plugin-S3_Bucket=Bucket |
@ -0,0 +1,12 @@
|
||||
Dec-Error_Start_With_Slash_Or_End_Without_Slash=\u8DEF\u5F91\u958B\u982D\u4E0D\u80FD\u52A0\u659C\u69D3\uFF0C\u5FC5\u9808\u4EE5\u659C\u69D3\u7D50\u5C3E |
||||
Plugin-S3_Access_Key_Id=AccessKeyId |
||||
Plugin-S3_Access_Key_Secret=AccessKeySecret |
||||
Plugin-S3_Bucket=Bucket |
||||
Plugin-S3_End_Point=Endpoint |
||||
Plugin-S3_Input=\u8ACB\u8F38\u5165 |
||||
Plugin-S3_Region=Region |
||||
Plugin-S3_Other_Config=\u66F4\u591A\u8A2D\u5B9A |
||||
Plugin-S3_EnablePathStyleAccess_Error_Tip=\u8ACB\u8F38\u5165true\u6216false |
||||
Plugin-Xml-I18n-S3repository_Name=S3\u8CC7\u6E90\u5009\u5EAB |
||||
Plugin-Xml-I18n-S3repository_Description=\u4F7F\u7528\u652F\u63F4s3\u5354\u5B9A\u7684\u96F2\u5132\u5B58\u6A94\u6848\u7CFB\u7D71\u4F5C\u70BA\u6A94\u6848\u4F3A\u670D\u5668\u3002 |
||||
Plugin-Xml-I18n-S3repository_Change_Notes=\u0020 |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue