fix(openapi-ts): first pass for replacing with openapi-ts
This commit is contained in:
@@ -7,7 +7,8 @@ import Results from "@/components/Results.vue";
|
||||
import Winners from "@/components/Winners.vue";
|
||||
import PuzzleResults from "@/components/PuzzleResults.vue";
|
||||
import TopUsersLeaderboard from "@/components/TopUsersLeaderboard.vue";
|
||||
import { apiService, errorHelpers } from "@/services/apiService";
|
||||
import { polylanSubmitterApiGetUserInfo, submissionsApiGetCollection } from "@/api";
|
||||
import { errorHelpers } from "@/services/apiService";
|
||||
import { usePuzzlesStore } from "@/stores/puzzles";
|
||||
import { useSubmissionsStore } from "@/stores/submissions";
|
||||
import type { PuzzleResponse, UserInfo, SteamCollection } from "@/types";
|
||||
@@ -66,9 +67,9 @@ async function initialize() {
|
||||
|
||||
// Load user info
|
||||
console.log("Loading user info...");
|
||||
const userResponse = await apiService.getUserInfo();
|
||||
const userResponse = await polylanSubmitterApiGetUserInfo();
|
||||
if (userResponse.data) {
|
||||
userInfo.value = userResponse.data;
|
||||
userInfo.value = userResponse.data as UserInfo;
|
||||
console.log("User info loaded:", userResponse.data);
|
||||
} else if (userResponse.error) {
|
||||
console.warn("User info error:", userResponse.error);
|
||||
@@ -76,9 +77,9 @@ async function initialize() {
|
||||
|
||||
// Load collection data
|
||||
console.log("Loading collection...");
|
||||
const collectionResponse = await apiService.getCollection();
|
||||
const collectionResponse = await submissionsApiGetCollection();
|
||||
if (collectionResponse.data) {
|
||||
collection.value = collectionResponse.data;
|
||||
collection.value = collectionResponse.data as SteamCollection;
|
||||
console.log("Collection loaded:", collectionResponse.data);
|
||||
} else if (collectionResponse.error) {
|
||||
console.warn("Collection error:", collectionResponse.error);
|
||||
|
||||
Reference in New Issue
Block a user