mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-04 03:00:32 +08:00
Support editing the radicle id
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
"URN": "eip155:1:0xd1bb21bd5a432d2919c82bcefe1bc7f8cc9207d9",
|
||||
"handle": "acme",
|
||||
"id": "hydkkcf6k9be5fuszdhpqbctu3q3fuwagj874wx2puia8ti8coygh1",
|
||||
"identity": "rad:git:hnrkqdpm9ub19oc8dccx44echy75hzfsezyio",
|
||||
"domain": "seed.acme.xyz",
|
||||
"address": "0x17a8c096733BD5F87aD43D7A2A4d1C42ab8A2A70",
|
||||
};
|
||||
@@ -37,6 +38,7 @@
|
||||
handle: /^[a-zA-Z0-9-_]{1,39}$/,
|
||||
address: /^0x[a-zA-Z0-9]{40}$/,
|
||||
id: /^[a-z0-9]+$/,
|
||||
identity: /^rad:git:[a-z0-9]{37}$/,
|
||||
domain: /^[^/:$!_;,@#]+\.[a-z]{2,}$/,
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -77,6 +77,9 @@
|
||||
{ name: "github", validate: "handle", label: "GitHub", placeholder: "GitHub username, eg. 'acme'",
|
||||
description: "The GitHub username associated with this name.",
|
||||
value: r.profile.github, editable: true },
|
||||
{ name: "id", label: "Radicle", validate: "identity", placeholder: "Radicle URN, eg. rad:git:hnrkqdpm9ub19oc8d...",
|
||||
description: "The local radicle identity associated with this name.",
|
||||
value: r.profile.id, editable: true },
|
||||
{ name: "seed.host", label: "Seed Host", validate: "domain", placeholder: "seed.acme.org",
|
||||
url: r.profile.seed && `/seeds/${r.profile.seed.host}`,
|
||||
description: "The seed host address. " +
|
||||
|
||||
@@ -34,6 +34,7 @@ export async function setRecords(name: string, records: EnsRecord[], resolver: E
|
||||
iface.encodeFunctionData("setText", [node, "com." + r.name, r.value])
|
||||
);
|
||||
break;
|
||||
case "id":
|
||||
case "seed.id":
|
||||
case "seed.host":
|
||||
case "seed.git":
|
||||
|
||||
Reference in New Issue
Block a user