From b256e0b827ef2fdd4c8c7063c450834c7512d1f3 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 23 Mar 2025 18:16:11 -0600 Subject: [PATCH] feat: enhance LicenseCard and ViewLicensePage --- .../app/[locale]/license/view/page.tsx | 133 +++++++++++------- 1 file changed, 82 insertions(+), 51 deletions(-) diff --git a/apps/website/app/[locale]/license/view/page.tsx b/apps/website/app/[locale]/license/view/page.tsx index 89d5c0b..48c22f3 100644 --- a/apps/website/app/[locale]/license/view/page.tsx +++ b/apps/website/app/[locale]/license/view/page.tsx @@ -8,49 +8,73 @@ export const SERVER_LICENSE_URL = const LicenseCard = ({ license, stripeSuscription }: any) => { return ( -
License ID
-{license.id}
++ License ID +
+{license.id}
License Key
-{license.licenseKey}
++ License Key +
+{license.licenseKey}
+
Activation Status
-+
{license.activatedAt ? "Activated" : "Not Activated"}
+
+ Server IPs +
+ {license.serverIps && license.serverIps.length > 0 ? ( ++ {ip} +
+ ))} ++ Not activated on any machine +
+ )} +Last Verification
-+
{license.lastVerifiedAt || "Not Verified"}
Created At
-+
+ Created At +
+{new Date(license.createdAt).toLocaleDateString()}
+
Last Updated
-+
{new Date(license.updatedAt).toLocaleDateString()}
+
Subscription ID
-{stripeSuscription.id}
+{stripeSuscription.id}
Quantity
-+
+ Quantity +
+{stripeSuscription.quantity} licenses
+
Billing Type
-+
{stripeSuscription.billingType}
+
Stripe Customer ID
-{license.stripeCustomerId}
+{license.stripeCustomerId}