mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
feat(frontend): improve mobile voice controls and TTS playback
This commit is contained in:
1 parent
dad1a608a1
commit
29b9d028c7
14 files changed
+1434
-142
No files matched your search
@@ -116,17 +116,6 @@ export function findGitHubCredential(credentials: GitCredential[]): GitCredentia
|
||||
}) || null
|
||||
}
|
||||
|
||||
export function getCredentialForHost(credentials: GitCredential[], host: string): GitCredential | undefined {
|
||||
return credentials.find(cred => {
|
||||
try {
|
||||
const parsed = new URL(cred.host)
|
||||
return parsed.hostname.toLowerCase() === host.toLowerCase()
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function getSSHCredentialsForHost(credentials: GitCredential[], host: string): GitCredential[] {
|
||||
return credentials.filter(cred => {
|
||||
if (cred.type !== 'ssh') return false
|
||||
|
||||
Reference in new issue
Block a user