This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
server/frontend/ui/src/routes/+layout.js

21 lines
615 B
JavaScript

import { challengeInfo } from '$lib/stores/challengeinfo.js';
import { issuesStore } from '$lib/stores/issues.js';
import { my } from '$lib/stores/my.js';
import { teamsStore } from '$lib/stores/teams.js';
import { themesStore } from '$lib/stores/themes.js';
import { settings, time } from '$lib/stores/settings.js';
export const ssr = false;
export async function load() {
await challengeInfo.refresh();
await settings.refresh();
await themesStore.refresh();
teamsStore.refresh();
my.refresh((my) => {
if (my && my.team_id === 0) {
stop_refresh = true;
}
});
issuesStore.refresh();
}