mirror of
https://github.com/Amperra-Group/xcs.git
synced 2025-08-16 13:22:14 -06:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
50720d18e9
commit
f6d02c730c
|
@ -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);
|
||||||
|
|
|
@ -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 />}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'}
|
||||||
|
|
Loading…
Reference in a new issue