Merge pull request #116 from nklmantey/incorrect-domain-verification-records

Incorrect domain verification records
This commit is contained in:
Dries Augustyns
2024-10-28 10:38:01 +01:00
committed by GitHub
2 changed files with 280 additions and 277 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "plunk",
"version": "1.0.8",
"version": "1.0.9",
"private": true,
"license": "agpl-3.0",
"workspaces": {
@@ -123,6 +123,9 @@ export default function Index() {
window.location.reload();
};
const domain = activeProject.email?.split("@")[1] ?? "";
const subdomain = domain.split(".").length > 2 ? domain.split(".")[0] : "";
return (
<>
<Dashboard>
@@ -219,11 +222,11 @@ export default function Index() {
<div
className={"flex cursor-pointer items-center gap-3"}
onClick={() => {
void navigator.clipboard.writeText(`${token}._domainkey`);
void navigator.clipboard.writeText(`${token}._domainkey${subdomain ? '.' + subdomain : ''}`);
toast.success("Copied key to clipboard");
}}
>
<p className={"font-mono text-sm"}>{token}._domainkey</p>
<p className={"font-mono text-sm"}>{token}._domainkey{subdomain ? '.' + subdomain : ''}</p>
<Copy size={14} />
</div>
),