From 6a631744d9c80ff9a1a9f4b278bc0337ecdb494e Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:51:31 +0400 Subject: chore/frontend: semicolon linting (#287) --- frontend/src/api/Api.ts | 2 +- frontend/src/api/Auth.ts | 2 +- frontend/src/api/Games.ts | 8 ++++---- frontend/src/api/Maps.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'frontend/src/api') diff --git a/frontend/src/api/Api.ts b/frontend/src/api/Api.ts index 19ece86..dd5076a 100644 --- a/frontend/src/api/Api.ts +++ b/frontend/src/api/Api.ts @@ -51,7 +51,7 @@ export const API = { const BASE_API_URL: string = import.meta.env.DEV ? "https://lp.portal2.sr/api/v1/" - : "/api/v1/" + : "/api/v1/"; export function url(path: string): string { return BASE_API_URL + path; diff --git a/frontend/src/api/Auth.ts b/frontend/src/api/Auth.ts index 56e0f6a..426bea5 100644 --- a/frontend/src/api/Auth.ts +++ b/frontend/src/api/Auth.ts @@ -2,7 +2,7 @@ import axios from "axios"; import { url } from "@api/Api"; export const get_token = async (): Promise => { - const response = await axios.get(url("token")) + const response = await axios.get(url("token")); if (!response.data.success) { return undefined; } diff --git a/frontend/src/api/Games.ts b/frontend/src/api/Games.ts index 98c65e7..a66902d 100644 --- a/frontend/src/api/Games.ts +++ b/frontend/src/api/Games.ts @@ -6,14 +6,14 @@ import { Map } from "@customTypes/Map"; import { Search } from "@customTypes/Search"; export const get_games = async (): Promise => { - const response = await axios.get(url("games")) + const response = await axios.get(url("games")); return response.data.data; }; export const get_chapters = async (chapter_id: string): Promise => { const response = await axios.get(url(`chapters/${chapter_id}`)); return response.data.data; -} +}; export const get_games_chapters = async (game_id: string): Promise => { const response = await axios.get(url(`games/${game_id}`)); @@ -21,11 +21,11 @@ export const get_games_chapters = async (game_id: string): Promise => { - const response = await axios.get(url(`games/${game_id}/maps`)) + const response = await axios.get(url(`games/${game_id}/maps`)); return response.data.data.maps; }; export const get_search = async (q: string): Promise => { - const response = await axios.get(url(`search?q=${q}`)) + const response = await axios.get(url(`search?q=${q}`)); return response.data.data; }; diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts index 8d29f84..7cbd70c 100644 --- a/frontend/src/api/Maps.ts +++ b/frontend/src/api/Maps.ts @@ -4,7 +4,7 @@ import { MapDiscussionContent, UploadRunContent } from "@customTypes/Content"; import { MapSummary, MapLeaderboard, MapDiscussions, MapDiscussion } from "@customTypes/Map"; export const get_map_summary = async (map_id: string): Promise => { - const response = await axios.get(url(`maps/${map_id}/summary`)) + const response = await axios.get(url(`maps/${map_id}/summary`)); return response.data.data; }; @@ -94,7 +94,7 @@ export const post_record = async (token: string, run: UploadRunContent, map_id: }); return [response.data.success, response.data.message]; } -} +}; export const delete_map_record = async (token: string, map_id: number, record_id: number): Promise => { const response = await axios.delete(url(`maps/${map_id}/record/${record_id}`), { -- cgit v1.2.3