release #306

Merged
b merged 25 commits from staging into main 2025-01-23 18:54:21 +00:00
2 changed files with 13 additions and 3 deletions
Showing only changes of commit f72fa1a886 - Show all commits

View File

@ -54,7 +54,10 @@ export const RelaysPage = () => {
const relayMap = useAppSelector((state) => state.relays?.map) const relayMap = useAppSelector((state) => state.relays?.map)
const relaysInfo = useAppSelector((state) => state.relays?.info) const relaysInfo = useAppSelector((state) => state.relays?.info)
const webSocketPrefix = 'wss://' const webSocketPrefix =
newRelayURI?.startsWith('wss://') || newRelayURI?.startsWith('ws://')
? ''
: 'wss://'
// fetch relay list from relays // fetch relay list from relays
useEffect(() => { useEffect(() => {
@ -197,7 +200,7 @@ export const RelaysPage = () => {
// Check if new relay URI is a valid string // Check if new relay URI is a valid string
if ( if (
relayURI && relayURI &&
!/^wss:\/\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}/.test( !/^wss?:\/\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}/.test(
relayURI relayURI
) )
) { ) {
@ -260,7 +263,13 @@ export const RelaysPage = () => {
}} }}
className={styles.relayURItextfield} className={styles.relayURItextfield}
/> />
<Button variant="contained" onClick={() => handleAddNewRelay()}> <Button
sx={{
height: '56px'
}}
variant="contained"
onClick={() => handleAddNewRelay()}
>
Add Add
</Button> </Button>
</Box> </Box>

View File

@ -12,6 +12,7 @@
flex-direction: row; flex-direction: row;
gap: 10px; gap: 10px;
width: 100%; width: 100%;
align-items: start;
} }
.sectionIcon { .sectionIcon {