All checks were successful
SteamWarCI Build successful
- Introduced a new events collection in config.ts with schema validation. - Created a new event markdown file for the WarGear event. - Updated German translations to include new event-related strings. - Modified PageLayout to support a wide layout option. - Enhanced announcements page to improve tag filtering and post rendering. - Implemented dynamic event pages with detailed event information and fight plans. - Added an index page for events to list all upcoming events.
20 lines
565 B
TypeScript
20 lines
565 B
TypeScript
import { get, writable } from "svelte/store";
|
|
import { fightConnector } from "./connections.svelte";
|
|
|
|
class TeamHoverService {
|
|
public currentHover = $state<number | undefined>(undefined);
|
|
private fightConnector = get(fightConnector);
|
|
|
|
setHover(teamId: number): void {
|
|
this.currentHover = teamId;
|
|
this.fightConnector.addTeamConnection(teamId);
|
|
}
|
|
|
|
clearHover(): void {
|
|
this.currentHover = undefined;
|
|
this.fightConnector.clearConnections();
|
|
}
|
|
}
|
|
|
|
export const teamHoverService = writable(new TeamHoverService());
|