Skip to content

Commit

Permalink
Update version:: 1.3-SNAPSHOT
Browse files Browse the repository at this point in the history
<li>Add aliyun OSS support</li>
<li>Minimum supported version 2019.3</li>
<li>Upload dialog style adjustment</li>
  • Loading branch information
wenzewoo committed Sep 10, 2021
1 parent e8ade4d commit 47eb0d4
Show file tree
Hide file tree
Showing 19 changed files with 576 additions and 274 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plugins {
}

group = "com.github.wenzewoo.jetbrains.plugin"
version = "1.2-SNAPSHOT"
version = "1.3-SNAPSHOT"

repositories {
mavenCentral()
Expand All @@ -39,11 +39,12 @@ dependencies {
implementation(kotlin("stdlib-jdk8"))
compile("net.coobird", "thumbnailator", "0.4.8")
compile("com.qiniu", "qiniu-java-sdk", "7.2.28")
compile("com.aliyun.oss", "aliyun-sdk-oss", "3.13.0")
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = "IC-2018.3"
version = "IC-2019.3"
updateSinceUntilBuild = false
}
configure<JavaPluginConvention> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<item value="./assets/${MDFile}/"/>
<item value="./${MDFile}/"/>
<item value="./${MDFile}.assets/"/>
<item value="./"/>
<item value="Custom.."/>
</model>
</properties>
Expand Down Expand Up @@ -250,15 +251,19 @@
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
<properties>
<text value="http://qz7fmp0tv.hn-bkt.clouddn.com"/>
</properties>
</component>
<component id="1c502" class="javax.swing.JTextField" binding="textQiniuStyleSuffix">
<constraints>
<grid row="10" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
<properties>
<text value="?imageView2/0/interlace/1/q/50|imageslim"/>
</properties>
</component>
<component id="1cb13" class="javax.swing.JLabel">
<constraints>
Expand All @@ -274,8 +279,8 @@
</constraints>
<properties>
<model>
<item value="images/${MDFile}/${Timestamp}.${Suffix}"/>
<item value="images/${yyyyMMdd}/${UUID}.${Suffix}"/>
<item value="images/${MDFile}/${Timestamp}.${Suffix}"/>
<item value="${MDFile}-${Timestamp}.${Suffix}"/>
<item value="${yyyyMMdd}-${UUID}.${Suffix}"/>
<item value="${UUID}.${Suffix}"/>
Expand Down Expand Up @@ -414,58 +419,198 @@
</grid>
</children>
</grid>
<grid id="aa841" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="eaf14" layout-manager="GridLayoutManager" row-count="12" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<tabbedpane title="AliyunOSS"/>
<tabbedpane title="Aliyun OSS"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="27488" class="javax.swing.JLabel">
<component id="78b40" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Not yet realized."/>
<text value="Bucket"/>
</properties>
</component>
</children>
</grid>
<grid id="eec08" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<tabbedpane title="TencentOSS"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="326f4" class="javax.swing.JLabel">
<component id="ac067" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Not yet realized."/>
<text value="Access Key"/>
</properties>
</component>
</children>
</grid>
<grid id="9e260" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<tabbedpane title="Custom API"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="26249" class="javax.swing.JLabel">
<component id="45475" class="javax.swing.JLabel">
<constraints>
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Secret Key"/>
</properties>
</component>
<component id="8d348" class="javax.swing.JLabel">
<constraints>
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Endpoint"/>
</properties>
</component>
<component id="571c4" class="javax.swing.JLabel">
<constraints>
<grid row="9" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Style suffix"/>
</properties>
</component>
<component id="e6e24" class="javax.swing.JCheckBox" binding="checkAliyunEnable">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<enabled value="true"/>
<selected value="false"/>
<text value="Enable?"/>
</properties>
</component>
<component id="51972" class="javax.swing.JTextField" binding="textAliyunBucket">
<constraints>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
<component id="56069" class="javax.swing.JTextField" binding="textAliyunAccessKey">
<constraints>
<grid row="3" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties>
<text value=""/>
</properties>
</component>
<component id="94bd0" class="javax.swing.JTextField" binding="textAliyunSecretKey">
<constraints>
<grid row="4" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
<component id="48be6" class="javax.swing.JTextField" binding="textAliyunEndpoint">
<constraints>
<grid row="5" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties>
<text value="oss-cn-chengdu.aliyuncs.com"/>
</properties>
</component>
<component id="63ba9" class="javax.swing.JTextField" binding="textAliyunStyleSuffix">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
<grid row="9" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties>
<text value="Not yet realized."/>
<text value="?x-oss-process=image/auto-orient,1/interlace,1/quality,q_50/format,jpg"/>
</properties>
</component>
<component id="a86fc" class="javax.swing.JLabel">
<constraints>
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="New fileame"/>
</properties>
</component>
<component id="1932" class="javax.swing.JComboBox" binding="comboAliyunNewFilenameTemplate">
<constraints>
<grid row="6" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<model>
<item value="images/${yyyyMMdd}/${UUID}.${Suffix}"/>
<item value="images/${MDFile}/${Timestamp}.${Suffix}"/>
<item value="${MDFile}-${Timestamp}.${Suffix}"/>
<item value="${yyyyMMdd}-${UUID}.${Suffix}"/>
<item value="${UUID}.${Suffix}"/>
<item value="${Timestamp}.${Suffix}"/>
<item value="Custom.."/>
</model>
</properties>
</component>
<component id="27dfb" class="javax.swing.JTextField" binding="textAliyunNewFilenameCustomText">
<constraints>
<grid row="7" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
<component id="5c110" class="javax.swing.JLabel">
<constraints>
<grid row="8" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="&lt;html&gt;&#10;&lt;b&gt;Variable&lt;/b&gt;&lt;br/&gt; &#10;- &lt;code&gt;${MDFile}&lt;/code&gt;: Current markdown file name, such as &quot;example&quot; &lt;br/&gt;&#10;- &lt;code&gt;${Suffix}&lt;/code&gt;: Current image file suffix, such as &quot;png&quot; &lt;br/&gt;&#10;- &lt;code&gt;${yyyyMMdd}&lt;/code&gt;: Current date, such as &quot;20200401&quot; &lt;br/&gt;&#10;- &lt;code&gt;${Timestamp}&lt;/code&gt;: Current time stamp, such as &quot;1585819668627&quot; &lt;br/&gt;&#10;- &lt;code&gt;${UUID}&lt;/code&gt;: Random 32-bit string, such as &quot;67b52ab3e50643e08b8cb980c2ecdaed&quot; &lt;br/&gt;&#10;&lt;/html&gt;" noi18n="true"/>
</properties>
</component>
<component id="aeca0" class="javax.swing.JLabel">
<constraints>
<grid row="10" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="&lt;html&gt;&#10;If you need to, you can create a picture style or transcode style, and fill it in here. &lt;br/&gt;&#10;&lt;b&gt;Reference website:&lt;/b&gt;&#10;&lt;a href=&quot;https://help.aliyun.com/document_detail/44686.html?spm=5176.8466032.help.dexternal.1649145023i8ze&quot;&gt;https://help.aliyun.com/document_detail/44686.html&lt;a/&gt;&#10;&lt;html&gt;"/>
</properties>
</component>
<hspacer id="14856">
<constraints>
<grid row="0" column="0" row-span="1" col-span="2" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false">
<minimum-size width="-1" height="15"/>
</grid>
</constraints>
</hspacer>
<component id="ef987" class="javax.swing.JLabel">
<constraints>
<grid row="4" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false">
<preferred-size width="51" height="16"/>
</grid>
</constraints>
<properties>
<text value=""/>
</properties>
</component>
<grid id="77be" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="11" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="721ff" class="javax.swing.JButton" binding="buttonTestAliyun">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Test"/>
</properties>
</component>
<hspacer id="f11f9">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
</hspacer>
</children>
</grid>
</children>
</grid>
</children>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,22 @@ public class MISConfigurationInterfaceForm {
protected JTextField textQiniuStyleSuffix;
protected JButton buttonTestQiniu;
protected final JRadioButton[] radioQiniuBucketZones = { //
this.radioQiniuBucketZoneEastChina, //
this.radioQiniuBucketZoneNorthChina, //
this.radioQiniuBucketZoneSouthChina, //
this.radioQiniuBucketZoneNorthAmerica, //
this.radioQiniuBucketZoneSoutheastAsia//
this.radioQiniuBucketZoneEastChina, //
this.radioQiniuBucketZoneNorthChina, //
this.radioQiniuBucketZoneSouthChina, //
this.radioQiniuBucketZoneNorthAmerica, //
this.radioQiniuBucketZoneSoutheastAsia//
};


// aliyun oss config
protected JCheckBox checkAliyunEnable;
protected JTextField textAliyunBucket;
protected JTextField textAliyunAccessKey;
protected JTextField textAliyunSecretKey;
protected JTextField textAliyunEndpoint;
protected JComboBox comboAliyunNewFilenameTemplate;
protected JTextField textAliyunNewFilenameCustomText;
protected JTextField textAliyunStyleSuffix;
protected JButton buttonTestAliyun;
}
Loading

0 comments on commit 47eb0d4

Please sign in to comment.