From f6d02c730ceb2bc41be01564f9cce024c0c26927 Mon Sep 17 00:00:00 2001 From: Fayzan Naufal Suparjo <68143025+ryoojiz@users.noreply.github.com> Date: Mon, 30 Jun 2025 11:25:31 +0700 Subject: [PATCH] Refactor code structure for improved readability and maintainability --- src/components/location/LocationInfo.tsx | 2 +- src/components/nav/PlatformNav.tsx | 4 ++-- src/pages/api/v1/locations/[locationId]/starter-pack.ts | 2 +- src/pages/organizations/index.tsx | 4 ++-- xcs-starter.rbxmx => wyre-starter.rbxmx | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename xcs-starter.rbxmx => wyre-starter.rbxmx (100%) diff --git a/src/components/location/LocationInfo.tsx b/src/components/location/LocationInfo.tsx index a97c31e..1953b24 100644 --- a/src/components/location/LocationInfo.tsx +++ b/src/components/location/LocationInfo.tsx @@ -119,7 +119,7 @@ export default function LocationInfo({ location, query, idToken, refreshData }: const url = window.URL.createObjectURL(new Blob([blob])); const link = document.createElement('a'); link.href = url; - link.setAttribute('download', `xcs-template-${locationName}.rbxmx`); + link.setAttribute('download', `wyre-template-${locationName}.rbxmx`); document.body.appendChild(link); link.click(); link.parentNode?.removeChild(link); diff --git a/src/components/nav/PlatformNav.tsx b/src/components/nav/PlatformNav.tsx index a7301ae..a5337ad 100644 --- a/src/components/nav/PlatformNav.tsx +++ b/src/components/nav/PlatformNav.tsx @@ -464,7 +464,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st Settings } @@ -472,7 +472,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st Help & Information } diff --git a/src/pages/api/v1/locations/[locationId]/starter-pack.ts b/src/pages/api/v1/locations/[locationId]/starter-pack.ts index f7c2ab6..245bdb0 100644 --- a/src/pages/api/v1/locations/[locationId]/starter-pack.ts +++ b/src/pages/api/v1/locations/[locationId]/starter-pack.ts @@ -46,7 +46,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) if (req.method === 'GET') { // Prepare file - const filePath = path.join(process.cwd(), 'xcs-starter.rbxmx'); + const filePath = path.join(process.cwd(), 'wyre-starter.rbxmx'); let buffer = fs.readFileSync(filePath); // Check if API Key already exists for this location that hasn't been used yet diff --git a/src/pages/organizations/index.tsx b/src/pages/organizations/index.tsx index 8997d4d..597b6ce 100644 --- a/src/pages/organizations/index.tsx +++ b/src/pages/organizations/index.tsx @@ -392,14 +392,14 @@ export default function PlatformOrganizations() { leftIcon={} onClick={onCreateOrganizationModalOpen} > - New + New Organization