-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.5.1
- Loading branch information
Showing
27 changed files
with
309 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<p><b>SalvoRsTool</b></p> | ||
<br/> | ||
<p> | ||
<b> | ||
<a href="https://mdddj.github.io/SalvoRsToolDocument">Document</a> | | ||
<a href="https://github.com/mdddj/SalvoRsTool">Github</a> | | ||
<a href="https://mdddj.github.io/SalvoRsToolDocument/default-topic.html">Get Started</a> | | ||
<a href="https://mdddj.github.io/SalvoRsToolDocument/changelog%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97.html">Changelog</a> | | ||
<a href="https://mdddj.github.io/SalvoRsToolDocument/%E6%89%93%E8%B5%8F%E5%92%8C%E8%81%94%E7%B3%BB.html">Donate</a> | ||
</b> | ||
</p> | ||
<br/> | ||
<h2>Features</h2> | ||
<ul> | ||
<li>Salvo | ||
<ul> | ||
<li>Generate DTO</li> | ||
<li>Generate Router</li> | ||
<li>Generate Service</li> | ||
<li>Salvo Api Window</li> | ||
</ul> | ||
</li> | ||
<li>Antd | ||
<ul> | ||
<li>Struct generate Form</li> | ||
<li>Struct generate Table column properties</li> | ||
<li>Struct generate typescript interface</li> | ||
</ul> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/kotlin/shop/itbug/salvorstool/action/rightmenu/AntdRequestCopyAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package shop.itbug.salvorstool.action.rightmenu | ||
|
||
import com.intellij.icons.AllIcons | ||
import com.intellij.openapi.actionSystem.ActionUpdateThread | ||
import com.intellij.openapi.actionSystem.AnAction | ||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
import shop.itbug.salvorstool.i18n.MyI18n | ||
import shop.itbug.salvorstool.tool.copy | ||
import shop.itbug.salvorstool.window.ApiScanWindow.Companion.JListSelectItemDataKey | ||
|
||
/** | ||
* 拷贝antd request 请求 | ||
*/ | ||
class AntdRequestCopyAction : AnAction() { | ||
override fun actionPerformed(e: AnActionEvent) { | ||
val item = e.getData(JListSelectItemDataKey)!! | ||
val str = item.generateAntdRequest() | ||
str.copy() | ||
} | ||
|
||
override fun update(e: AnActionEvent) { | ||
super.update(e) | ||
e.presentation.text = "${MyI18n.getMessage("copy")} Antd Request" | ||
e.presentation.icon = AllIcons.Actions.Copy | ||
e.presentation.isEnabled = e.getData(JListSelectItemDataKey) != null | ||
} | ||
|
||
override fun getActionUpdateThread(): ActionUpdateThread { | ||
return ActionUpdateThread.BGT | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/kotlin/shop/itbug/salvorstool/action/rightmenu/CopyUrlAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package shop.itbug.salvorstool.action.rightmenu | ||
|
||
import com.intellij.icons.AllIcons | ||
import com.intellij.openapi.actionSystem.ActionUpdateThread | ||
import com.intellij.openapi.actionSystem.AnAction | ||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
import shop.itbug.salvorstool.i18n.MyI18n | ||
import shop.itbug.salvorstool.tool.copy | ||
import shop.itbug.salvorstool.window.ApiScanWindow.Companion.JListSelectItemDataKey | ||
|
||
class CopyUrlAction : AnAction() { | ||
|
||
override fun actionPerformed(e: AnActionEvent) { | ||
val item = e.getData(JListSelectItemDataKey)!! | ||
item.api.copy() | ||
} | ||
|
||
override fun update(e: AnActionEvent) { | ||
with(e.presentation) { | ||
isEnabled = e.getData(JListSelectItemDataKey) != null | ||
text = "${MyI18n.getMessage("copy")} URL" | ||
icon = AllIcons.Actions.Copy | ||
} | ||
super.update(e) | ||
} | ||
|
||
override fun getActionUpdateThread(): ActionUpdateThread { | ||
return ActionUpdateThread.BGT | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
src/main/kotlin/shop/itbug/salvorstool/widget/TypeJavaScriptEditor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.