Rename aux to Torch
This commit is contained in:
@@ -6,7 +6,7 @@ import kotlinx.serialization.json.Json
|
||||
import kotlin.time.Instant
|
||||
|
||||
class AuxConverters {
|
||||
val logger = Logger.withTag("AuxConverters")
|
||||
val logger = Logger.withTag("TorchConverters")
|
||||
|
||||
@TypeConverter
|
||||
fun fromTimestamp(value: Long?): Instant? {
|
||||
@@ -37,7 +37,7 @@ class AuxConverters {
|
||||
Json.encodeToString(it).lowercase()
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
logger.e("Failed to convert from HexArray $value", e)
|
||||
logger.e("Failed to convert from HexArray ${value.contentToString()}", e)
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ class AuxConverters {
|
||||
Json.encodeToString(it)
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
logger.e("Failed to convert from KindArray $value", e)
|
||||
logger.e("Failed to convert from KindArray ${value.contentToString()}", e)
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ class AuxConverters {
|
||||
Json.encodeToString(value)
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
logger.e("Failed to convert from FilterArray $value", e)
|
||||
logger.e("Failed to convert from FilterArray ${value.contentToString()}", e)
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package at.torch.compose.network
|
||||
|
||||
object UserAgent {
|
||||
const val APP_NAME = "Aux"
|
||||
const val CLIENT_NAME = "Aux"
|
||||
const val APP_NAME = "Torch"
|
||||
const val CLIENT_NAME = "Torch"
|
||||
}
|
||||
|
||||
fun String.asClientTag(): Array<String> = arrayOf(
|
||||
|
||||
@@ -95,7 +95,7 @@ fun HomeScreen(
|
||||
),
|
||||
title = {
|
||||
Text(
|
||||
"Aux"
|
||||
"Torch"
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
||||
@@ -68,7 +68,7 @@ fun LandingScreen(
|
||||
}
|
||||
|
||||
Text(
|
||||
text = "Sign in to Aux via nsec, or remote signer",
|
||||
text = "Sign in to Torch via nsec, or remote signer",
|
||||
modifier = Modifier.padding(10.dp),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
textAlign = TextAlign.Center
|
||||
@@ -88,7 +88,7 @@ fun LandingScreen(
|
||||
|
||||
}
|
||||
Text(
|
||||
text = "If you are new to Aux or just want to create a fresh profile",
|
||||
text = "If you are new to Torch or just want to create a fresh profile",
|
||||
modifier = Modifier.padding(10.dp),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
textAlign = TextAlign.Center
|
||||
|
||||
@@ -44,7 +44,7 @@ fun UnannouncedProfileScreen() {
|
||||
)
|
||||
|
||||
Text(
|
||||
text = "Aux will be broadcast what you publish to a distributed set of relays so that it's decentralized.",
|
||||
text = "Torch will be broadcast what you publish to a distributed set of relays so that it's decentralized.",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
textAlign = TextAlign.Center
|
||||
)
|
||||
|
||||
@@ -241,14 +241,14 @@ fun TorchNavHost(
|
||||
onNavigateToWalletLandingPage = {
|
||||
navController.navigate(
|
||||
route = LoadingRoute(
|
||||
text = "Loading... Aux"
|
||||
text = "Loading... Torch"
|
||||
)
|
||||
)
|
||||
},
|
||||
onNavigateToWalletIntroPage = {
|
||||
navController.navigate(
|
||||
route = LoadingRoute(
|
||||
text = "Introducing... Aux"
|
||||
text = "Introducing... Torch"
|
||||
)
|
||||
)
|
||||
applicationIOScope.launch {
|
||||
|
||||
@@ -7,7 +7,7 @@ import androidx.navigation.compose.rememberNavController
|
||||
fun main() = application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "Aux",
|
||||
title = "Torch",
|
||||
) {
|
||||
val navController = rememberNavController()
|
||||
AuxApp(
|
||||
|
||||
Reference in New Issue
Block a user