Refactor code structure for improved readability and maintainability

This commit is contained in:
Fayzan Naufal Suparjo 2025-06-30 11:25:31 +07:00
parent 50720d18e9
commit f6d02c730c
5 changed files with 6 additions and 6 deletions

View file

@ -119,7 +119,7 @@ export default function LocationInfo({ location, query, idToken, refreshData }:
const url = window.URL.createObjectURL(new Blob([blob])); const url = window.URL.createObjectURL(new Blob([blob]));
const link = document.createElement('a'); const link = document.createElement('a');
link.href = url; link.href = url;
link.setAttribute('download', `xcs-template-${locationName}.rbxmx`); link.setAttribute('download', `wyre-template-${locationName}.rbxmx`);
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
link.parentNode?.removeChild(link); link.parentNode?.removeChild(link);

View file

@ -464,7 +464,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st
Settings Settings
</NavLink> </NavLink>
<NavLink <NavLink
href={'https://xcs-docs.restrafes.co/'} href={'https://wyre.gitbook.io/wyre-docs'}
target={'_blank'} target={'_blank'}
pathname={pathname} pathname={pathname}
leftIcon={<AiFillInfoCircle />} leftIcon={<AiFillInfoCircle />}
@ -472,7 +472,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st
Help & Information Help & Information
</NavLink> </NavLink>
<NavLink <NavLink
href={'https://xcs-docs.restrafes.co/'} href={'https://wyre.gitbook.io/wyre-docs'}
target={'_blank'} target={'_blank'}
pathname={pathname} pathname={pathname}
leftIcon={<BiSolidStoreAlt />} leftIcon={<BiSolidStoreAlt />}

View file

@ -46,7 +46,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
if (req.method === 'GET') { if (req.method === 'GET') {
// Prepare file // 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); let buffer = fs.readFileSync(filePath);
// Check if API Key already exists for this location that hasn't been used yet // Check if API Key already exists for this location that hasn't been used yet

View file

@ -392,14 +392,14 @@ export default function PlatformOrganizations() {
leftIcon={<MdOutlineAddCircle />} leftIcon={<MdOutlineAddCircle />}
onClick={onCreateOrganizationModalOpen} onClick={onCreateOrganizationModalOpen}
> >
New New Organization
</Button> </Button>
<Button <Button
variant={'solid'} variant={'solid'}
leftIcon={<MdOutlineJoinRight />} leftIcon={<MdOutlineJoinRight />}
onClick={onJoinOrganizationModalOpen} onClick={onJoinOrganizationModalOpen}
> >
Join Join Organization
</Button> </Button>
<Button <Button
variant={'solid'} variant={'solid'}