-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5.0.1
- Loading branch information
Showing
51 changed files
with
1,062 additions
and
391 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 @@ | ||
kotlin version: 2.0.21 | ||
error message: The daemon has terminated unexpectedly on startup attempt #1 with error code: 0. The daemon process output: | ||
1. Kotlin compile daemon is ready | ||
|
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,4 @@ | ||
kotlin version: 2.0.21 | ||
error message: The daemon has terminated unexpectedly on startup attempt #1 with error code: 0. The daemon process output: | ||
1. Kotlin compile daemon is ready | ||
|
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,4 @@ | ||
kotlin version: 2.0.21 | ||
error message: The daemon has terminated unexpectedly on startup attempt #1 with error code: 0. The daemon process output: | ||
1. Kotlin compile daemon is ready | ||
|
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
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
13 changes: 12 additions & 1 deletion
13
src/main/kotlin/shop/itbug/fluttercheckversionx/constance/StringConstance.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 |
---|---|---|
@@ -1,4 +1,15 @@ | ||
package shop.itbug.fluttercheckversionx.constance | ||
|
||
|
||
const val discordUrl = "https://discord.gg/ethKNxKRcZ" | ||
const val discordUrl = "https://discord.gg/ethKNxKRcZ" | ||
const val qqGroup = "https://qm.qq.com/q/3zYRrSC7zW" | ||
|
||
|
||
object Links { | ||
const val riverpod = "https://flutterx.itbug.shop/riverpod.html" | ||
const val openIn = | ||
"https://flutterx.itbug.shop/%E5%BF%AB%E9%80%9F%E6%89%93%E5%BC%80%E5%AD%90%E7%9B%AE%E5%BD%95%E6%96%87%E4%BB%B6%E5%A4%B9.html" | ||
|
||
const val link = "https://flutterx.itbug.shop/links.html" | ||
const val icons = "https://flutterx.itbug.shop/%E5%86%85%E8%81%94%E8%B5%84%E4%BA%A7%E6%98%BE%E7%A4%BA.html" | ||
} |
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
56 changes: 56 additions & 0 deletions
56
src/main/kotlin/shop/itbug/fluttercheckversionx/document/DartImageDocumentProvider.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,56 @@ | ||
package shop.itbug.fluttercheckversionx.document | ||
|
||
import com.intellij.ide.projectView.ProjectView | ||
import com.intellij.lang.documentation.AbstractDocumentationProvider | ||
import com.intellij.lang.documentation.ExternalDocumentationHandler | ||
import com.intellij.openapi.application.runReadAction | ||
import com.intellij.openapi.editor.Editor | ||
import com.intellij.openapi.vfs.LocalFileSystem | ||
import com.intellij.psi.PsiElement | ||
import com.intellij.psi.PsiFile | ||
import com.intellij.psi.PsiManager | ||
import org.jetbrains.annotations.Nls | ||
import shop.itbug.fluttercheckversionx.util.DartPsiElementHelper | ||
import java.io.File | ||
import java.net.URI | ||
|
||
/** | ||
* dart文件中对字符串进行本机文件解析. | ||
*/ | ||
class DartImageDocumentProvider : AbstractDocumentationProvider(), ExternalDocumentationHandler { | ||
|
||
override fun generateDoc(element: PsiElement?, originalElement: PsiElement?): @Nls String? { | ||
element ?: return null | ||
originalElement ?: return null | ||
return DartPsiElementHelper.generateLocalImageDocument(element) | ||
} | ||
|
||
override fun getCustomDocumentationElement( | ||
editor: Editor, | ||
file: PsiFile, | ||
contextElement: PsiElement?, | ||
targetOffset: Int | ||
): PsiElement? { | ||
contextElement ?: return null | ||
return DartPsiElementHelper.findTargetFilePsiElement(contextElement) | ||
} | ||
|
||
|
||
///处理图片链接点击 | ||
override fun handleExternalLink(psiManager: PsiManager?, link: String?, context: PsiElement?): Boolean { | ||
if (link != null && context != null && psiManager != null && link.startsWith("file:")) { | ||
try { | ||
val project = context.project | ||
val uri = URI.create(link) | ||
val file = runReadAction { LocalFileSystem.getInstance().findFileByIoFile(File(uri.path)) } | ||
if (file != null) { | ||
ProjectView.getInstance(project).select(null, file, true) //文件浏览器中打开 | ||
return true | ||
} | ||
} catch (_: Exception) { | ||
} | ||
} | ||
return false | ||
} | ||
|
||
} |
Oops, something went wrong.