diff --git a/build.gradle.kts b/build.gradle.kts index cad00c9..e409673 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,7 +29,7 @@ plugins { } group = "com.github.wenzewoo.jetbrains.plugin" -version = "1.4-SNAPSHOT" +version = "1.4.1-SNAPSHOT" repositories { mavenCentral() diff --git a/src/main/java/com/github/wenzewoo/jetbrains/plugin/mis/design/MISConfigurationInterfaceForm.form b/src/main/java/com/github/wenzewoo/jetbrains/plugin/mis/design/MISConfigurationInterfaceForm.form index a04eab4..8773d4b 100644 --- a/src/main/java/com/github/wenzewoo/jetbrains/plugin/mis/design/MISConfigurationInterfaceForm.form +++ b/src/main/java/com/github/wenzewoo/jetbrains/plugin/mis/design/MISConfigurationInterfaceForm.form @@ -419,7 +419,7 @@ - + @@ -461,7 +461,7 @@ - + @@ -515,7 +515,7 @@ - + @@ -525,7 +525,7 @@ - + @@ -533,7 +533,7 @@ - + @@ -549,7 +549,7 @@ - + @@ -557,7 +557,7 @@ - + @@ -565,7 +565,7 @@ - + @@ -591,7 +591,7 @@ - + @@ -611,14 +611,6 @@ - - - - - - - - diff --git a/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/config/MISConfigView.kt b/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/config/MISConfigView.kt index 0a48ab4..78a645a 100644 --- a/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/config/MISConfigView.kt +++ b/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/config/MISConfigView.kt @@ -542,5 +542,4 @@ class MISConfigView : MISConfigurationInterfaceForm(), SearchableConfigurable, C } } } - } diff --git a/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/filestore/impl/MISAliyunOSSFileStore.kt b/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/filestore/impl/MISAliyunOSSFileStore.kt index 2c73dc6..e17be07 100644 --- a/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/filestore/impl/MISAliyunOSSFileStore.kt +++ b/src/main/kotlin/com/github/wenzewoo/jetbrains/plugin/mis/filestore/impl/MISAliyunOSSFileStore.kt @@ -68,12 +68,11 @@ class MISAliyunOSSFileStore : MISAbstractOSSFileStore() { } override fun previewUrl(fileKey: String, styleSuffix: Boolean): String { - MISConfigService.getInstance().state!!.aliyunCustomDomain - return if (MISConfigService.getInstance().state!!.aliyunCustomDomain.isEmpty()) { + val state = MISConfigService.getInstance().state!! + return if (state.aliyunCustomDomain.isEmpty()) { "https://${state.aliyunBucket}.${state.aliyunEndpoint}/${fileKey}${if (styleSuffix) state.aliyunStyleSuffix else ""}" } else { - "https://${state.aliyunCustomDomain}/${fileKey}${if (styleSuffix) - state.aliyunStyleSuffix else ""}" + "https://${state.aliyunCustomDomain}/${fileKey}${if (styleSuffix) state.aliyunStyleSuffix else ""}" } } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 8d6d1af..fd4ef2d 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -38,7 +38,7 @@ Markdown editor one click upload image support is applicable to common products of JetBrains series.

Features:

    -
  • Multiple storage support, such as local / qiniu / aliyun OSS / tencent OSS, etc.
  • +
  • Multiple storage support, such as local / qiniu / aliyun OSS / MinIO.
  • Customize the file name naming policy and provide a variety of preset schemes.
  • Provide picture compression function, compress pictures according to the set compression rate.
  • Directly from the paste image to the editor, automatically upload the image and convert it to the markdown tag.
  • @@ -51,7 +51,7 @@ Markdown编辑器一键上传图片支持,适用于Jetbrains系列的常见产品。

    特性:

      -
    • 多种存储支持,如本地/七牛/阿里云OSS/腾讯OSS等。
    • +
    • 多种存储支持,如本地/七牛/阿里云OSS/MinIO等。
    • 自定义文件名命名策略,并提供多种预设方案。
    • 提供图片压缩功能,按照设置的压缩率压缩图片。
    • 直接从粘贴图片到编辑器,自动上传图片并转换为Markdown标签。
    • @@ -67,6 +67,14 @@ 1.4.1-SNAPSHOT:2022/03/31

      +
        +
      • 阿里云OSS支持自定义域名
      • +
      • 修复了若干BUG
      • +
      • By @boatrainlsz
      • +
      +
      +

      1.4-SNAPSHOT:2022/02/11

      • Add MinIO support