Compare commits

...

2 Commits

Author SHA1 Message Date
50a42227b6 feat: 兼容大显示器无法登录功能 2024-01-07 14:06:04 +08:00
79391f30e3 feat: 兼容大显示器无法登录功能 2024-01-07 14:05:56 +08:00
8 changed files with 8 additions and 7 deletions

View File

@ -32,7 +32,7 @@ class MyToolWindowFactory : ToolWindowFactory {
val noSupportLabel = JBLabel(MyBundle.message("noSupport")) val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
if (JBCefApp.isSupported()) { if (JBCefApp.isSupported()) {
val jbcef = JBCefBrowser() val jbcef = JBCefBrowser()
jbcef.component.preferredSize = Dimension(800,900) jbcef.component.preferredSize = Dimension(900,900)
add(jbcef.component, BorderLayout.CENTER) add(jbcef.component, BorderLayout.CENTER)
jbcef.loadURL("https://weread.qq.com/") jbcef.loadURL("https://weread.qq.com/")
} else { } else {

View File

@ -1,6 +1,6 @@
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html --> <!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
<idea-plugin> <idea-plugin>
<id>com.github.cirry.wereadjetbrainsplugin</id> <id>com.github.cirry.wxreaderjetbrainsplugin</id>
<name>Weread</name> <name>Weread</name>

View File

@ -1 +1,2 @@
noSupport=Your IDEA doesn't support it, please enable JCEF. noSupport=Your IDEA doesn't support it, please enable JCEF.
projectService=Project service: {0}

View File

@ -29,11 +29,11 @@ class MyPluginTest : BasePlatformTestCase() {
// myFixture.testRename("foo.xml", "foo_after.xml", "a2") // myFixture.testRename("foo.xml", "foo_after.xml", "a2")
// } // }
// fun testProjectService() { fun testProjectService() {
// val projectService = project.service<MyProjectService>() val projectService = project.service<MyProjectService>()
//
// assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber()) assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber())
// } }
override fun getTestDataPath() = "src/test/testData/rename" override fun getTestDataPath() = "src/test/testData/rename"
} }