Skip to content

Commit

Permalink
build: release version 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lkqm committed Dec 8, 2021
1 parent c5bd89a commit b50c8fd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.github.jetplugins'
version '0.7.2'
version '0.8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = "UTF-8"
Expand Down
26 changes: 26 additions & 0 deletions src/main/java/io/yapix/action/YapixActionGroup.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package io.yapix.action;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NotNull;

/**
* Yapi X菜单分组
*/
public class YapixActionGroup extends DefaultActionGroup {

@Override
public void update(@NotNull AnActionEvent event) {
boolean visible = true;
// 编辑器上下文非java文件不展示
Editor editor = event.getDataContext().getData(CommonDataKeys.EDITOR);
VirtualFile file = event.getDataContext().getData(CommonDataKeys.VIRTUAL_FILE);
if (editor != null && file != null && !"java".equals(file.getExtension())) {
visible = false;
}
event.getPresentation().setVisible(visible);
}
}
12 changes: 5 additions & 7 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<idea-plugin>
<id>yapix</id>
<name>Yapi X</name>
<version>0.7.1</version>
<vendor url="https://github.com/jetplugins">Jetplugins</vendor>

<description><![CDATA[
Expand Down Expand Up @@ -56,7 +55,7 @@
<add-to-group group-id="EditorLangPopupMenu" anchor="first"/>
<keyboard-shortcut keymap="$default" first-keystroke="alt u"/>
</action>
<group id="yapix.ActionGroup" text="Yapi X" popup="true">
<group id="yapix.YapixActionGroup" class="io.yapix.action.YapixActionGroup" text="Yapi X" popup="true">
<add-to-group group-id="EditorLangPopupMenu" anchor="after" relative-to-action="yapix.YapixAction"/>
<add-to-group group-id="ProjectViewPopupMenu" anchor="last"/>
<action id="yapix.YapiUploadAction" class="io.yapix.process.yapi.YapiUploadAction"/>
Expand All @@ -75,16 +74,15 @@
</actions>

<change-notes><![CDATA[
<p>0.7.2</p>
<p>0.8</p>
<ul>
<li>Feat: Update only when API changes for yapi/rap2.</li>
<li>Feat: Add quick open settings action.</li>
<li>Fix http request timeout.</li>
<li>Fix unable parse when annotation @XxxMapping without any parameters.</li>
<li>Fix update eolinker default url.</li>
<li>Add quick open settings action.</li>
</ul>
<p>0.7.1</p>
<ul>
<li>Fix compatibility issues.</li>
<li>Remove support yapi.xml.</li>
</ul>
<p>0.7</p>
<ul>
Expand Down

0 comments on commit b50c8fd

Please sign in to comment.