Skip to content

Commit

Permalink
Biome formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hopperelec committed Aug 16, 2024
1 parent 8b3230d commit a9cc3b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/leaderboard/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import type { PlayerLabelProps } from "$lib/components/player-label/types";
export type PreorderedLeaderboardPlayer = PlayerLabelProps & { points: number };
export type LeaderboardPlayers = {
[key: number]: Omit<PreorderedLeaderboardPlayer, "id">;
};
};
2 changes: 1 addition & 1 deletion src/lib/components/player-label/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export type PlayerLabelProps = {
picture: string | null;
points?: number;
isHost: boolean;
};
};
2 changes: 1 addition & 1 deletion src/lib/components/split-panes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export function createPane<T extends SvelteComponent>(
showName: !!showName,
allowClosing: !!allowClosing,
};
}
}
16 changes: 6 additions & 10 deletions src/routes/(requires-login)/game/[gameId=id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import PlayableMap from "./PlayableMapPane.svelte";
import LeaderboardPane from "./ReactiveLeaderboardPane.svelte";
import Shop from "./ShopPane.svelte";
import "$lib/styles/status-bar.css";
import { type DefinitionDashPaneProps, createPane } from "$lib/components/split-panes/types";
import {
type DefinitionDashPaneProps,
createPane,
} from "$lib/components/split-panes/types";
import StatusBar from "$lib/components/status-bar/StatusBar.svelte";
import StatusBarSeparator from "$lib/components/status-bar/StatusBarSeparator.svelte";
import type { Doors } from "$lib/types";
Expand Down Expand Up @@ -88,14 +91,7 @@ let panes: DefinitionDashPaneProps[][] = [
true,
true,
),
createPane(
"Guide",
GuidePane,
{},
false,
true,
true,
),
createPane("Guide", GuidePane, {}, false, true, true),
],
];
Expand Down Expand Up @@ -155,7 +151,7 @@ onMount(async () => {
doors.set(
await fetch(`/maps/${data.map.id}/doors`)
.then((response) => response.arrayBuffer())
.then(decodeDoors)
.then(decodeDoors),
);
});
</script>
Expand Down

0 comments on commit a9cc3b9

Please sign in to comment.