From f42f9f5b604c27f51e10041a84c969d12cbf5a17 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 26 Feb 2025 14:57:20 +0500 Subject: [PATCH 1/2] Merge remote-tracking branch 'upstream/main' --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index bed6d8a..ca566ad 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -toolbox-plugin-api = "0.6.2.6.0.37447" +toolbox-plugin-api = "0.7.2.6.0.38311" kotlin = "2.0.10" coroutines = "1.7.3" serialization = "1.5.0" From 7472fe1b729c69ed0c9a5b876096528feaa5e078 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 11 Mar 2025 03:51:05 +0500 Subject: [PATCH 2/2] fix: hide token input text and fix plugin installation path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change token text field type from General to Password to hide sensitive token values - Fix plugin installation path for different operating systems - Resolves #3 📱 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- build.gradle.kts | 6 +++--- src/main/kotlin/com/coder/toolbox/views/TokenPage.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e0ca598..a36dd5d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -119,10 +119,10 @@ private fun getPluginInstallDir(): Path { } / "JetBrains" / "Toolbox" val pluginsDir = when { - SystemInfoRt.isWindows -> toolboxCachesDir / "cache" - SystemInfoRt.isLinux || SystemInfoRt.isMac -> toolboxCachesDir + SystemInfoRt.isWindows -> toolboxCachesDir / "cache" / "plugins" + SystemInfoRt.isLinux || SystemInfoRt.isMac -> toolboxCachesDir / "plugins" else -> error("Unknown os") - } / "plugins" + } return pluginsDir / pluginId } diff --git a/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt b/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt index 16f4231..a0803d4 100644 --- a/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt +++ b/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt @@ -21,7 +21,7 @@ class TokenPage( private val token: Pair?, private val onToken: ((token: String) -> Unit), ) : CoderPage() { - private val tokenField = TextField("Token", token?.first ?: "", TextType.General) + private val tokenField = TextField("Token", token?.first ?: "", TextType.Password) override fun getTitle(): String = "Enter your token"