mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-09-14 00:55:08 +00:00
fix(amethyst): use https in preview data and image-URL placeholders
Clears Sonar 'Using HTTP protocol is insecure' hits. None were real requests: six are @Preview dummy strings, four are picture-URL field hints that suggested http:// to users. The Namecoin RPC onion placeholder stays http:// on purpose (Tor encrypts; Namecoin Core RPC has no TLS).
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ fun RenderTopButtonsPreview() {
|
||||
ThemeComparisonColumn {
|
||||
Box(Modifier.background(BitcoinOrange)) {
|
||||
RenderTopButtons(
|
||||
mediaData = MediaItemData("http://test.mp4"),
|
||||
mediaData = MediaItemData("https://test.mp4"),
|
||||
hasMultipleQualities = false,
|
||||
qualityButton = {},
|
||||
controllerVisible = remember { mutableStateOf(true) },
|
||||
|
||||
+1
-1
@@ -214,7 +214,7 @@ private fun Picture(
|
||||
onValueChange = { bookmarkGroupInfoViewModel.picture.value = it },
|
||||
placeholder = {
|
||||
Text(
|
||||
text = "http://mygroup.com/logo.jpg",
|
||||
text = "https://mygroup.com/logo.jpg",
|
||||
color = MaterialTheme.colorScheme.placeholderText,
|
||||
)
|
||||
},
|
||||
|
||||
+1
-1
@@ -285,7 +285,7 @@ private fun Picture(
|
||||
onValueChange = { postViewModel.channelPicture.value = it },
|
||||
placeholder = {
|
||||
Text(
|
||||
text = "http://mygroup.com/logo.jpg",
|
||||
text = "https://mygroup.com/logo.jpg",
|
||||
color = MaterialTheme.colorScheme.placeholderText,
|
||||
)
|
||||
},
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ import com.vitorpamplona.amethyst.ui.theme.ThemeComparisonColumn
|
||||
|
||||
private const val PREVIEW_LIST_TITLE = "Sample List Title"
|
||||
private const val PREVIEW_LIST_DESCRIPTION = "Sample List Description"
|
||||
private const val PREVIEW_LIST_IMAGE = "http://some.com/image.png"
|
||||
private const val PREVIEW_LIST_IMAGE = "https://some.com/image.png"
|
||||
|
||||
@Preview()
|
||||
@Composable
|
||||
|
||||
+1
-1
@@ -238,7 +238,7 @@ private fun Picture(
|
||||
onValueChange = { postViewModel.picture.value = it },
|
||||
placeholder = {
|
||||
Text(
|
||||
text = "http://mygroup.com/logo.jpg",
|
||||
text = "https://mygroup.com/logo.jpg",
|
||||
color = MaterialTheme.colorScheme.placeholderText,
|
||||
)
|
||||
},
|
||||
|
||||
+1
-1
@@ -238,7 +238,7 @@ private fun Picture(
|
||||
onValueChange = { postViewModel.picture.value = it },
|
||||
placeholder = {
|
||||
Text(
|
||||
text = "http://mygroup.com/logo.jpg",
|
||||
text = "https://mygroup.com/logo.jpg",
|
||||
color = MaterialTheme.colorScheme.placeholderText,
|
||||
)
|
||||
},
|
||||
|
||||
+2
-2
@@ -85,8 +85,8 @@ fun ShowQRScreenPreview() {
|
||||
name = "My Name"
|
||||
picture = "Picture"
|
||||
nip05 = null
|
||||
banner = "http://banner.com/test"
|
||||
website = "http://mywebsite.com/test"
|
||||
banner = "https://banner.com/test"
|
||||
website = "https://mywebsite.com/test"
|
||||
about = "This is the about me"
|
||||
},
|
||||
MetadataEvent(
|
||||
|
||||
+2
-2
@@ -1677,8 +1677,8 @@ fun RelayHeaderPreview() {
|
||||
),
|
||||
SpamDebugMessage(
|
||||
time = TimeUtils.now() - 24000,
|
||||
link1 = "http://test1.com",
|
||||
link2 = "http://test2.com",
|
||||
link1 = "https://test1.com",
|
||||
link2 = "https://test2.com",
|
||||
),
|
||||
),
|
||||
accountViewModel = mockAccountViewModel(),
|
||||
|
||||
Reference in New Issue
Block a user