Add seeds page

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2021-12-07 11:11:34 +01:00
parent 68395bceb2
commit 72d5b3b34c
13 changed files with 275 additions and 40 deletions
+3 -1
View File
@@ -417,8 +417,10 @@ export function isMarkdownPath(path: string): boolean {
}
// Check whether the given input string is a domain, eg. `alt-clients.radicle.xyz.
// Also accepts in dev env 0.0.0.0 as domain
export function isDomain(input: string): boolean {
return /^[a-z][a-z0-9.-]+$/.test(input) && /\.[a-z]+$/.test(input);
return (/^[a-z][a-z0-9.-]+$/.test(input) && /\.[a-z]+$/.test(input))
|| (!import.meta.env.PROD && /^0.0.0.0$/.test(input)) ;
}
// Propose a Gnosis Safe multi-sig transaction.