Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Support editing the radicle id
Alexis Sellier committed 4 years ago
commit 85165783c6bdd0b305d4ece26339f2bc21fb26b4
parent 217bd814a64c4c79e1105b63f35db962d08c0a40
3 files changed +6 -0
modified src/Form.svelte
@@ -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>
modified src/base/registrations/View.svelte
@@ -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. " +
modified src/base/registrations/resolver.ts
@@ -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":