remove getVersions call

This commit is contained in:
llama 2025-10-18 10:01:38 +08:00
parent 9434499e7a
commit b97b8462d9
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -1,10 +1,9 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { getLangs, getMirrors, getOptions, getVersions } from "@generated/backend-launcher";
import { getLangs, getMirrors, getOptions } from "@generated/backend-launcher";
import { ModuleName, setupI18n } from "@tslib/i18n";
import type { PageLoad } from "./$types";
import { versionsStore } from "./stores";
export const load = (async () => {
const i18nPromise = setupI18n({ modules: [ModuleName.LAUNCHER] }, true);
@ -12,10 +11,6 @@ export const load = (async () => {
const optionsPromise = getOptions({});
const mirrorsPromise = getMirrors({});
getVersions({}).then((res) => {
versionsStore.set(res);
});
const [_, { userLocale, langs }, options, { mirrors }] = await Promise.all([
i18nPromise,
langsPromise,