update badge images, add public key

This commit is contained in:
Evgeny Poberezkin
2026-06-10 21:39:47 +01:00
parent df2226b58d
commit 556f99e029
4 changed files with 9 additions and 77 deletions
@@ -1,32 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="316.5" height="415.5" viewBox="0 0 316.5 415.5">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#ffee9a"/>
<stop offset="4%" stop-color="#ffec96"/>
<stop offset="8%" stop-color="#ffe990"/>
<stop offset="12%" stop-color="#ffe789"/>
<stop offset="16%" stop-color="#ffe580"/>
<stop offset="20%" stop-color="#ffe177"/>
<stop offset="24%" stop-color="#ffde6d"/>
<stop offset="28%" stop-color="#ffda63"/>
<stop offset="32%" stop-color="#ffd65a"/>
<stop offset="36%" stop-color="#ffd250"/>
<stop offset="40%" stop-color="#ffcd47"/>
<stop offset="44%" stop-color="#ffc93f"/>
<stop offset="48%" stop-color="#ffc538"/>
<stop offset="52%" stop-color="#ffc031"/>
<stop offset="56%" stop-color="#fdba2b"/>
<stop offset="60%" stop-color="#fcb426"/>
<stop offset="64%" stop-color="#faae20"/>
<stop offset="68%" stop-color="#f7a61b"/>
<stop offset="72%" stop-color="#f59f16"/>
<stop offset="76%" stop-color="#f29912"/>
<stop offset="80%" stop-color="#ef920f"/>
<stop offset="84%" stop-color="#ee8b0b"/>
<stop offset="88%" stop-color="#ea8508"/>
<stop offset="92%" stop-color="#e97f05"/>
<stop offset="96%" stop-color="#e77b02"/>
<stop offset="100%" stop-color="#e67701"/>
<stop offset="0%" stop-color="#ffee9b"/>
<stop offset="50%" stop-color="#ffc233"/>
<stop offset="100%" stop-color="#e67700"/>
</linearGradient>
</defs>
<path fill="url(#g)" d="M98.25,8.25h120a90,90,0,0,1,90,90v219a90,90,0,0,1-90,90h-120a90,90,0,0,1-90-90v-219a90,90,0,0,1,90-90Z"/>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -1,32 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="316.5" height="415.5" viewBox="0 0 316.5 415.5">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#29f4fe"/>
<stop offset="4%" stop-color="#2bedfb"/>
<stop offset="8%" stop-color="#2ce4f6"/>
<stop offset="12%" stop-color="#2fd7f0"/>
<stop offset="16%" stop-color="#31caea"/>
<stop offset="20%" stop-color="#33bce2"/>
<stop offset="24%" stop-color="#36adda"/>
<stop offset="28%" stop-color="#399dd2"/>
<stop offset="32%" stop-color="#3b8ec9"/>
<stop offset="36%" stop-color="#3d7fc1"/>
<stop offset="40%" stop-color="#3e71b8"/>
<stop offset="44%" stop-color="#3e63ae"/>
<stop offset="48%" stop-color="#3f57a5"/>
<stop offset="52%" stop-color="#3d4d9c"/>
<stop offset="56%" stop-color="#3b4490"/>
<stop offset="60%" stop-color="#363c85"/>
<stop offset="64%" stop-color="#323378"/>
<stop offset="68%" stop-color="#2c2c6b"/>
<stop offset="72%" stop-color="#26255d"/>
<stop offset="76%" stop-color="#201e4f"/>
<stop offset="80%" stop-color="#191842"/>
<stop offset="84%" stop-color="#131336"/>
<stop offset="88%" stop-color="#0d0e2a"/>
<stop offset="92%" stop-color="#080a1f"/>
<stop offset="96%" stop-color="#030517"/>
<stop offset="100%" stop-color="#010311"/>
<stop offset="0%" stop-color="#29f5ff"/>
<stop offset="50%" stop-color="#3e519f"/>
<stop offset="100%" stop-color="#000210"/>
</linearGradient>
</defs>
<path fill="url(#g)" d="M98.25,8.25h120a90,90,0,0,1,90,90v219a90,90,0,0,1-90,90h-120a90,90,0,0,1-90-90v-219a90,90,0,0,1,90-90Z"/>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -2,30 +2,6 @@
<defs>
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#29f5ff"/>
<stop offset="4%" stop-color="#2af2fe"/>
<stop offset="8%" stop-color="#2aeefe"/>
<stop offset="12%" stop-color="#2ae9fd"/>
<stop offset="16%" stop-color="#2ae4fc"/>
<stop offset="20%" stop-color="#2adffb"/>
<stop offset="24%" stop-color="#2ad9fb"/>
<stop offset="28%" stop-color="#2ad3fa"/>
<stop offset="32%" stop-color="#2bcdf9"/>
<stop offset="36%" stop-color="#2bc5f8"/>
<stop offset="40%" stop-color="#2cbff7"/>
<stop offset="44%" stop-color="#2bb7f6"/>
<stop offset="48%" stop-color="#2db1f5"/>
<stop offset="52%" stop-color="#2da9f4"/>
<stop offset="56%" stop-color="#2da2f3"/>
<stop offset="60%" stop-color="#2d9bf2"/>
<stop offset="64%" stop-color="#2e93f1"/>
<stop offset="68%" stop-color="#2e8df0"/>
<stop offset="72%" stop-color="#2f87ef"/>
<stop offset="76%" stop-color="#2f80ee"/>
<stop offset="80%" stop-color="#2f7aed"/>
<stop offset="84%" stop-color="#2f75ec"/>
<stop offset="88%" stop-color="#306feb"/>
<stop offset="92%" stop-color="#2f6beb"/>
<stop offset="96%" stop-color="#3068ea"/>
<stop offset="100%" stop-color="#3064ea"/>
</linearGradient>
</defs>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+3 -1
View File
@@ -21,6 +21,8 @@ import Control.Monad
import Control.Monad.Except
import Control.Monad.IO.Unlift
import Data.Bifunctor (bimap, second)
import qualified Data.ByteString.Base64.URL as U
import Data.Either (fromRight)
import Data.List (partition, sortOn)
import Data.List.NonEmpty (NonEmpty (..))
import qualified Data.List.NonEmpty as L
@@ -66,7 +68,7 @@ defaultChatConfig =
tbqSize = 1024
},
chatVRange = supportedChatVRange,
badgePublicKey = BBSPublicKey "",
badgePublicKey = BBSPublicKey $ fromRight (error "bad base64 in badge service key") $ U.decode "ugBHzTr4z1EOgczllk4ohrxhJv4afiDaUpuBQG8PDB9W8gXN0wiDQ5QfeDNt2QqoAtmIaBImMsy5WQrAxwNI-KL7tsN0vlriU2zab6qVjJjOYJ3YB3scYT1s9dGVMAXW",
confirmMigrations = MCConsole,
-- this property should NOT use operator = Nothing
-- non-operator servers can be passed via options