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 Information Section */}
-

+

License Information

-
+
-

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 ? ( +
+ {license.serverIps.map((ip: string, index: number) => ( +

+ {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()}

@@ -60,48 +84,50 @@ const LicenseCard = ({ license, stripeSuscription }: any) => { {/* Subscription Information Section */}
-

+

Subscription Information

-
-
+
-

+

Subscription ID

-

{stripeSuscription.id}

+

{stripeSuscription.id}

-

Quantity

-

+

+ Quantity +

+

{stripeSuscription.quantity} licenses

-

+

Billing Type

-

+

{stripeSuscription.billingType}

-

+

Stripe Customer ID

-

{license.stripeCustomerId}

+

{license.stripeCustomerId}

+ +
+ +
); @@ -127,13 +153,16 @@ export const ViewLicensePage = async ({ if (!data.success) { return ( -
-

+
+

License Details

- + {data.error}, Please try again in - + Reset License @@ -141,20 +170,22 @@ export const ViewLicensePage = async ({ ); } - console.log(data); - return ( -
-

- License Details -

- {data?.licenses?.map((item: any) => ( - - ))} +
+
+

+ License Details +

+
+ {data?.licenses?.map((item: any) => ( + + ))} +
+
); };