@@ -29,7 +29,7 @@ import {
2929} from "solid-js"
3030import { createStore , produce } from "solid-js/store"
3131import { useParams } from "@solidjs/router"
32- import { ExternalLink } from "@/components/external- link"
32+ import { Link } from "@/components/link"
3333import { useServerSDK } from "@/context/server-sdk"
3434import { useServerSync } from "@/context/server-sync"
3535import { useLanguage } from "@/context/language"
@@ -389,7 +389,7 @@ function ProviderConnection(props: {
389389 const settings = useSettings ( )
390390 const newLayout = settings . general . newLayoutDesigns
391391 const providers = useProviders ( ( ) => props . directory ?.( ) )
392- const directory = ( ) => props . directory ?. ( ) ?? decode64 ( params . dir )
392+ const directory = ( ) => ( props . directory ? props . directory ( ) : decode64 ( params . dir ) )
393393 const location = ( ) => {
394394 const value = directory ( )
395395 return value ? { directory : value } : undefined
@@ -509,12 +509,7 @@ function ProviderConnection(props: {
509509 const hint = suffix ?. [ 1 ]
510510 return {
511511 label : suffix ? label . slice ( 0 , - suffix [ 0 ] . length ) : label ,
512- hint :
513- hint ?. toLowerCase ( ) === "headless"
514- ? language . t ( "provider.connect.method.headless" )
515- : hint ?. toLowerCase ( ) === "browser" || ( ! hint && value ?. type === "key" )
516- ? language . t ( "provider.connect.method.browser" )
517- : undefined ,
512+ hint : hint ? hint [ 0 ] . toUpperCase ( ) + hint . slice ( 1 ) : value ?. type === "key" ? "Browser" : undefined ,
518513 }
519514 }
520515
@@ -841,12 +836,12 @@ function ProviderConnection(props: {
841836 < div > { language . t ( "provider.connect.opencodeZen.line2" ) } </ div >
842837 < div >
843838 { language . t ( "provider.connect.opencodeZen.visit.prefix" ) }
844- < ExternalLink
839+ < Link
845840 href = "https://opencode.ai/zen"
846841 class = "text-v2-text-text-base focus-visible:rounded-xs focus-visible:outline-2 focus-visible:outline-v2-border-border-focus"
847842 >
848843 { language . t ( "provider.connect.opencodeZen.visit.link" ) }
849- </ ExternalLink >
844+ </ Link >
850845 { language . t ( "provider.connect.opencodeZen.visit.suffix" ) }
851846 </ div >
852847 </ div >
@@ -891,9 +886,9 @@ function ProviderConnection(props: {
891886 < div class = "text-14-regular text-text-base" > { language . t ( "provider.connect.opencodeZen.line2" ) } </ div >
892887 < div class = "text-14-regular text-text-base" >
893888 { language . t ( "provider.connect.opencodeZen.visit.prefix" ) }
894- < ExternalLink href = "https://opencode.ai/zen" tabIndex = { - 1 } >
889+ < Link href = "https://opencode.ai/zen" tabIndex = { - 1 } >
895890 { language . t ( "provider.connect.opencodeZen.visit.link" ) }
896- </ ExternalLink >
891+ </ Link >
897892 { language . t ( "provider.connect.opencodeZen.visit.suffix" ) }
898893 </ div >
899894 </ div >
@@ -972,9 +967,9 @@ function ProviderConnection(props: {
972967 < div class = "flex flex-col gap-5 px-3 text-[13px] font-[440] leading-5 tracking-[-0.04px] text-v2-text-text-muted" >
973968 < div >
974969 { language . t ( "provider.connect.oauth.code.visit.prefix" ) }
975- < ExternalLink href = { store . authorization ! . url } class = "text-v2-text-text-base" >
970+ < Link href = { store . authorization ! . url } class = "text-v2-text-text-base" >
976971 { language . t ( "provider.connect.oauth.code.visit.link" ) }
977- </ ExternalLink >
972+ </ Link >
978973 { language . t ( "provider.connect.oauth.code.visit.suffix" , { provider : provider ( ) . name } ) }
979974 </ div >
980975 < form onSubmit = { handleSubmit } class = "flex flex-col items-start gap-5 self-stretch" >
@@ -1011,9 +1006,7 @@ function ProviderConnection(props: {
10111006 < div class = "flex flex-col gap-6" >
10121007 < div class = "text-14-regular text-text-base" >
10131008 { language . t ( "provider.connect.oauth.code.visit.prefix" ) }
1014- < ExternalLink href = { store . authorization ! . url } >
1015- { language . t ( "provider.connect.oauth.code.visit.link" ) }
1016- </ ExternalLink >
1009+ < Link href = { store . authorization ! . url } > { language . t ( "provider.connect.oauth.code.visit.link" ) } </ Link >
10171010 { language . t ( "provider.connect.oauth.code.visit.suffix" , { provider : provider ( ) . name } ) }
10181011 </ div >
10191012 < form onSubmit = { handleSubmit } class = "flex flex-col items-start gap-4" >
@@ -1084,9 +1077,7 @@ function ProviderConnection(props: {
10841077 < div class = "flex flex-col gap-6" >
10851078 < div class = "text-14-regular text-text-base" >
10861079 { language . t ( "provider.connect.oauth.auto.visit.prefix" ) }
1087- < ExternalLink href = { store . authorization ! . url } >
1088- { language . t ( "provider.connect.oauth.auto.visit.link" ) }
1089- </ ExternalLink >
1080+ < Link href = { store . authorization ! . url } > { language . t ( "provider.connect.oauth.auto.visit.link" ) } </ Link >
10901081 { language . t ( "provider.connect.oauth.auto.visit.suffix" , { provider : provider ( ) . name } ) }
10911082 </ div >
10921083 < TextField
0 commit comments