mirror of
https://github.com/Amperra-Group/xcs.git
synced 2025-08-16 05:12: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 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);
|
||||
|
|
|
@ -464,7 +464,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st
|
|||
Settings
|
||||
</NavLink>
|
||||
<NavLink
|
||||
href={'https://xcs-docs.restrafes.co/'}
|
||||
href={'https://wyre.gitbook.io/wyre-docs'}
|
||||
target={'_blank'}
|
||||
pathname={pathname}
|
||||
leftIcon={<AiFillInfoCircle />}
|
||||
|
@ -472,7 +472,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st
|
|||
Help & Information
|
||||
</NavLink>
|
||||
<NavLink
|
||||
href={'https://xcs-docs.restrafes.co/'}
|
||||
href={'https://wyre.gitbook.io/wyre-docs'}
|
||||
target={'_blank'}
|
||||
pathname={pathname}
|
||||
leftIcon={<BiSolidStoreAlt />}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -392,14 +392,14 @@ export default function PlatformOrganizations() {
|
|||
leftIcon={<MdOutlineAddCircle />}
|
||||
onClick={onCreateOrganizationModalOpen}
|
||||
>
|
||||
New
|
||||
New Organization
|
||||
</Button>
|
||||
<Button
|
||||
variant={'solid'}
|
||||
leftIcon={<MdOutlineJoinRight />}
|
||||
onClick={onJoinOrganizationModalOpen}
|
||||
>
|
||||
Join
|
||||
Join Organization
|
||||
</Button>
|
||||
<Button
|
||||
variant={'solid'}
|
||||
|
|
Loading…
Reference in a new issue