Skip to content

Commit 7472fe1

Browse files
matifaliclaude
andcommitted
fix: hide token input text and fix plugin installation path
- 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 <noreply@anthropic.com>
1 parent f42f9f5 commit 7472fe1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ private fun getPluginInstallDir(): Path {
119119
} / "JetBrains" / "Toolbox"
120120

121121
val pluginsDir = when {
122-
SystemInfoRt.isWindows -> toolboxCachesDir / "cache"
123-
SystemInfoRt.isLinux || SystemInfoRt.isMac -> toolboxCachesDir
122+
SystemInfoRt.isWindows -> toolboxCachesDir / "cache" / "plugins"
123+
SystemInfoRt.isLinux || SystemInfoRt.isMac -> toolboxCachesDir / "plugins"
124124
else -> error("Unknown os")
125-
} / "plugins"
125+
}
126126

127127
return pluginsDir / pluginId
128128
}

src/main/kotlin/com/coder/toolbox/views/TokenPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TokenPage(
2121
private val token: Pair<String, Source>?,
2222
private val onToken: ((token: String) -> Unit),
2323
) : CoderPage() {
24-
private val tokenField = TextField("Token", token?.first ?: "", TextType.General)
24+
private val tokenField = TextField("Token", token?.first ?: "", TextType.Password)
2525

2626
override fun getTitle(): String = "Enter your token"
2727

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy