Skip to content

Commit 5a4a7db

Browse files
committed
feat: update getServer.ts and NavigationBar.tsx
1 parent 6ed9da7 commit 5a4a7db

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

resources/scripts/api/server/getServer.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export interface Server {
4444
variables: ServerEggVariable[];
4545
allocations: Allocation[];
4646

47+
// Define egg id from Blueprint
4748
BlueprintFramework: {
4849
eggId: number;
4950
};
@@ -69,12 +70,13 @@ export const rawDataToServerObject = ({ attributes: data }: FractalResponseData)
6970
featureLimits: { ...data.feature_limits },
7071
isTransferring: data.is_transferring,
7172
variables: ((data.relationships?.variables as FractalResponseList | undefined)?.data || []).map(
72-
rawDataToServerEggVariable
73+
rawDataToServerEggVariable,
7374
),
7475
allocations: ((data.relationships?.allocations as FractalResponseList | undefined)?.data || []).map(
75-
rawDataToServerAllocation
76+
rawDataToServerAllocation,
7677
),
7778

79+
// Get egg id from Blueprint
7880
BlueprintFramework: {
7981
eggId: data.BlueprintFramework.egg_id,
8082
},
@@ -89,8 +91,8 @@ export default (uuid: string): Promise<[Server, string[]]> => {
8991
rawDataToServerObject(data),
9092
// eslint-disable-next-line camelcase
9193
data.meta?.is_server_owner ? ['*'] : data.meta?.user_permissions || [],
92-
])
94+
]),
9395
)
9496
.catch(reject);
9597
});
96-
};
98+
};

resources/scripts/components/NavigationBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default () => {
5858
<Link
5959
to={'/'}
6060
className={
61-
'text-2xl font-header px-4 no-underline text-neutral-200 hover:text-neutral-100 transition-colors duration-150'
61+
'text-2xl font-header font-medium px-4 no-underline text-neutral-200 hover:text-neutral-100 transition-colors duration-150'
6262
}
6363
>
6464
{name}

0 commit comments

Comments
 (0)