From db136116d328dbc9ddb41214bb43e9db8a9e2ede Mon Sep 17 00:00:00 2001 From: "M. Sarmad Qadeer" Date: Mon, 6 May 2024 12:31:34 +0500 Subject: [PATCH 01/10] web: make image of full width for mobile screen (#4101) --- website/src/css/blog.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/src/css/blog.css b/website/src/css/blog.css index f3517958e2..c671e6e6ce 100644 --- a/website/src/css/blog.css +++ b/website/src/css/blog.css @@ -215,4 +215,10 @@ h6{ float: right; margin-left: 3rem; } +} + +@media (max-width:768px) { + img { + width: 100%; + } } \ No newline at end of file From 9615e525c0ee4b1fcb73cb425819e4c9eae21d4d Mon Sep 17 00:00:00 2001 From: "M. Sarmad Qadeer" Date: Mon, 6 May 2024 12:36:13 +0500 Subject: [PATCH 02/10] web: fix list numbering for safari (#4106) Co-authored-by: Evgeny Poberezkin --- ...istance-signal-double-ratchet-algorithm.md | 12 +++++------ website/src/css/blog.css | 21 ++++++++++++++----- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/blog/20240314-simplex-chat-v5-6-quantum-resistance-signal-double-ratchet-algorithm.md b/blog/20240314-simplex-chat-v5-6-quantum-resistance-signal-double-ratchet-algorithm.md index 219dd2d5fe..1e4c3adfb5 100644 --- a/blog/20240314-simplex-chat-v5-6-quantum-resistance-signal-double-ratchet-algorithm.md +++ b/blog/20240314-simplex-chat-v5-6-quantum-resistance-signal-double-ratchet-algorithm.md @@ -17,12 +17,12 @@ This post also covers various aspects of end-to-end encryption, compares differe - [Why do we need end-to-end encryption?](#why-do-we-need-end-to-end-encryption) - [Why is encryption even allowed?](#why-is-encryption-even-allowed) - [End-to-end encryption security: attacks and defense.](#end-to-end-encryption-security-attacks-and-defense) - - Compromised message size - mitigated by padding messages to a fixed block size. - - Compromised confidentiality - mitigated by repudiation (deniability). - - Compromised message keys - mitigated by forward secrecy. - - Compromised long-term or session - mitigated by break-in recovery. - - Man-in-the-middle attack - mitigated by two-factor key exchange. - - "Record now, decrypt later" attacks - mitigated by post-quantum cryptography. + 1. Compromised message size - mitigated by padding messages to a fixed block size. + 2. Compromised confidentiality - mitigated by repudiation (deniability). + 3. Compromised message keys - mitigated by forward secrecy. + 4. Compromised long-term or session - mitigated by break-in recovery. + 5. Man-in-the-middle attack - mitigated by two-factor key exchange. + 6. "Record now, decrypt later" attacks - mitigated by post-quantum cryptography. - [How secure is encryption in different messengers?](#how-secure-is-end-to-end-encryption-in-different-messengers) - [Adding quantum resistance to Signal double ratchet algorithm.](#adding-quantum-resistance-to-signal-double-ratchet-algorithm) - [When can you start using quantum resistant chats?](#when-can-you-start-using-quantum-resistant-chats) diff --git a/website/src/css/blog.css b/website/src/css/blog.css index c671e6e6ce..897fbafb10 100644 --- a/website/src/css/blog.css +++ b/website/src/css/blog.css @@ -85,7 +85,8 @@ section.container>div>p:nth-child(2) { } } -.dark #article h3, .dark #article h4 { +.dark #article h3, +.dark #article h4 { color: white; } @@ -112,7 +113,8 @@ section.container>div>p:nth-child(2) { #article ol li { margin-right: 0; margin-left: 0; - -webkit-margin-start: 1.1rem;; + -webkit-margin-start: 1.1rem; + ; color: #000; } @@ -193,7 +195,7 @@ h2, h3, h4, h5, -h6{ +h6 { clear: both; } @@ -206,12 +208,12 @@ h6{ } @media (min-width: 1024px) { - #article .float-to-left{ + #article .float-to-left { float: left; margin-right: 3rem; } - #article .float-to-right{ + #article .float-to-right { float: right; margin-left: 3rem; } @@ -221,4 +223,13 @@ h6{ img { width: 100%; } +} + +#article ol>li { + list-style-position: inside !important; + margin-left: -0px !important; +} + +#article ol>li::marker { + font-weight: 500; } \ No newline at end of file From 1b081197d42fcbcf3d05b010018f8248fbbb1977 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Mon, 6 May 2024 20:27:35 +0400 Subject: [PATCH 03/10] multiplatform: add error to response (#4140) --- .../commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt index 494f400fbc..b71610597e 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt @@ -4175,7 +4175,7 @@ sealed class CR { @Serializable @SerialName("rcvStandaloneFileComplete") class RcvStandaloneFileComplete(val user: UserRef, val targetPath: String, val rcvFileTransfer: RcvFileTransfer): CR() @Serializable @SerialName("rcvFileCancelled") class RcvFileCancelled(val user: UserRef, val chatItem_: AChatItem?, val rcvFileTransfer: RcvFileTransfer): CR() @Serializable @SerialName("rcvFileSndCancelled") class RcvFileSndCancelled(val user: UserRef, val chatItem: AChatItem, val rcvFileTransfer: RcvFileTransfer): CR() - @Serializable @SerialName("rcvFileError") class RcvFileError(val user: UserRef, val chatItem_: AChatItem?, val rcvFileTransfer: RcvFileTransfer): CR() + @Serializable @SerialName("rcvFileError") class RcvFileError(val user: UserRef, val chatItem_: AChatItem?, val agentError: AgentErrorType, val rcvFileTransfer: RcvFileTransfer): CR() // sending file events @Serializable @SerialName("sndFileStart") class SndFileStart(val user: UserRef, val chatItem: AChatItem, val sndFileTransfer: SndFileTransfer): CR() @Serializable @SerialName("sndFileComplete") class SndFileComplete(val user: UserRef, val chatItem: AChatItem, val sndFileTransfer: SndFileTransfer): CR() @@ -4501,7 +4501,7 @@ sealed class CR { is RcvFileSndCancelled -> withUser(user, json.encodeToString(chatItem)) is RcvFileProgressXFTP -> withUser(user, "chatItem: ${json.encodeToString(chatItem_)}\nreceivedSize: $receivedSize\ntotalSize: $totalSize") is RcvStandaloneFileComplete -> withUser(user, targetPath) - is RcvFileError -> withUser(user, json.encodeToString(chatItem_)) + is RcvFileError -> withUser(user, "chatItem_: ${json.encodeToString(chatItem_)}\nagentError: ${agentError.string}\nrcvFileTransfer: $rcvFileTransfer") is SndFileCancelled -> json.encodeToString(chatItem_) is SndStandaloneFileCreated -> noDetails() is SndFileStartXFTP -> withUser(user, json.encodeToString(chatItem)) From 10f41aa1c9af4696a5802ab97f0f9684eed3dd30 Mon Sep 17 00:00:00 2001 From: "M. Sarmad Qadeer" Date: Wed, 8 May 2024 13:31:02 +0500 Subject: [PATCH 04/10] web: add scroll to navbar (#4100) * web: add scroll to navbar * web: add scroll to whole navbar instead of scrolling the opened menu --- website/src/_includes/navbar.html | 4 ++-- website/src/css/style.css | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/website/src/_includes/navbar.html b/website/src/_includes/navbar.html index 89b3a122d8..5f9d4be3f3 100644 --- a/website/src/_includes/navbar.html +++ b/website/src/_includes/navbar.html @@ -13,7 +13,7 @@ -