diff options
Diffstat (limited to 'frontend/src/components')
| -rw-r--r-- | frontend/src/components/ConfirmDialog.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/components/Discussions.tsx | 12 | ||||
| -rw-r--r-- | frontend/src/components/GameCategory.tsx | 4 | ||||
| -rw-r--r-- | frontend/src/components/GameEntry.tsx | 6 | ||||
| -rw-r--r-- | frontend/src/components/Leaderboards.tsx | 10 | ||||
| -rw-r--r-- | frontend/src/components/Login.tsx | 8 | ||||
| -rw-r--r-- | frontend/src/components/MessageDialog.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/components/MessageDialogLoad.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/components/ModMenu.tsx | 10 | ||||
| -rw-r--r-- | frontend/src/components/RankingEntry.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/components/Sidebar.tsx | 12 | ||||
| -rw-r--r-- | frontend/src/components/Summary.tsx | 4 | ||||
| -rw-r--r-- | frontend/src/components/UploadRunDialog.tsx | 16 |
13 files changed, 45 insertions, 45 deletions
diff --git a/frontend/src/components/ConfirmDialog.tsx b/frontend/src/components/ConfirmDialog.tsx index c4299fd..44a653b 100644 --- a/frontend/src/components/ConfirmDialog.tsx +++ b/frontend/src/components/ConfirmDialog.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | 2 | ||
| 3 | import "../css/Dialog.css" | 3 | import "@css/Dialog.css" |
| 4 | 4 | ||
| 5 | interface ConfirmDialogProps { | 5 | interface ConfirmDialogProps { |
| 6 | title: string; | 6 | title: string; |
diff --git a/frontend/src/components/Discussions.tsx b/frontend/src/components/Discussions.tsx index 0522910..17ae586 100644 --- a/frontend/src/components/Discussions.tsx +++ b/frontend/src/components/Discussions.tsx | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | 2 | ||
| 3 | import { MapDiscussion, MapDiscussions, MapDiscussionsDetail } from '../types/Map'; | 3 | import { MapDiscussion, MapDiscussions, MapDiscussionsDetail } from '@customTypes/Map'; |
| 4 | import { MapDiscussionCommentContent, MapDiscussionContent } from '../types/Content'; | 4 | import { MapDiscussionCommentContent, MapDiscussionContent } from '@customTypes/Content'; |
| 5 | import { time_ago } from '../utils/Time'; | 5 | import { time_ago } from '@utils/Time'; |
| 6 | import { API } from '../api/Api'; | 6 | import { API } from '@api/Api'; |
| 7 | import "../css/Maps.css" | 7 | import "@css/Maps.css" |
| 8 | import { Link } from 'react-router-dom'; | 8 | import { Link } from 'react-router-dom'; |
| 9 | import useConfirm from '../hooks/UseConfirm'; | 9 | import useConfirm from '@hooks/UseConfirm'; |
| 10 | 10 | ||
| 11 | interface DiscussionsProps { | 11 | interface DiscussionsProps { |
| 12 | token?: string | 12 | token?: string |
diff --git a/frontend/src/components/GameCategory.tsx b/frontend/src/components/GameCategory.tsx index 3291e09..d8879ef 100644 --- a/frontend/src/components/GameCategory.tsx +++ b/frontend/src/components/GameCategory.tsx | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link } from "react-router-dom"; | 2 | import { Link } from "react-router-dom"; |
| 3 | 3 | ||
| 4 | import { Game, GameCategoryPortals } from '../types/Game'; | 4 | import { Game, GameCategoryPortals } from '@customTypes/Game'; |
| 5 | import "../css/Games.css" | 5 | import "@css/Games.css" |
| 6 | 6 | ||
| 7 | interface GameCategoryProps { | 7 | interface GameCategoryProps { |
| 8 | game: Game; | 8 | game: Game; |
diff --git a/frontend/src/components/GameEntry.tsx b/frontend/src/components/GameEntry.tsx index ced40ee..3bd2842 100644 --- a/frontend/src/components/GameEntry.tsx +++ b/frontend/src/components/GameEntry.tsx | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link } from "react-router-dom"; | 2 | import { Link } from "react-router-dom"; |
| 3 | 3 | ||
| 4 | import { Game, GameCategoryPortals } from '../types/Game'; | 4 | import { Game, GameCategoryPortals } from '@customTypes/Game'; |
| 5 | import "../css/Games.css" | 5 | import "@css/Games.css" |
| 6 | 6 | ||
| 7 | import GameCategory from './GameCategory'; | 7 | import GameCategory from '@components/GameCategory'; |
| 8 | 8 | ||
| 9 | interface GameEntryProps { | 9 | interface GameEntryProps { |
| 10 | game: Game; | 10 | game: Game; |
diff --git a/frontend/src/components/Leaderboards.tsx b/frontend/src/components/Leaderboards.tsx index aaaee62..4a8b463 100644 --- a/frontend/src/components/Leaderboards.tsx +++ b/frontend/src/components/Leaderboards.tsx | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link } from 'react-router-dom'; | 2 | import { Link } from 'react-router-dom'; |
| 3 | 3 | ||
| 4 | import { DownloadIcon, ThreedotIcon } from '../images/Images'; | 4 | import { DownloadIcon, ThreedotIcon } from '@images/Images'; |
| 5 | import { MapLeaderboard } from '../types/Map'; | 5 | import { MapLeaderboard } from '@customTypes/Map'; |
| 6 | import { ticks_to_time, time_ago } from '../utils/Time'; | 6 | import { ticks_to_time, time_ago } from '@utils/Time'; |
| 7 | import useMessage from "../hooks/UseMessage"; | 7 | import useMessage from "@hooks/UseMessage"; |
| 8 | import "../css/Maps.css" | 8 | import "@css/Maps.css" |
| 9 | 9 | ||
| 10 | interface LeaderboardsProps { | 10 | interface LeaderboardsProps { |
| 11 | data?: MapLeaderboard; | 11 | data?: MapLeaderboard; |
diff --git a/frontend/src/components/Login.tsx b/frontend/src/components/Login.tsx index 545f724..f1628b2 100644 --- a/frontend/src/components/Login.tsx +++ b/frontend/src/components/Login.tsx | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link, useNavigate } from 'react-router-dom'; | 2 | import { Link, useNavigate } from 'react-router-dom'; |
| 3 | 3 | ||
| 4 | import { ExitIcon, UserIcon, LoginIcon } from '../images/Images'; | 4 | import { ExitIcon, UserIcon, LoginIcon } from '@images/Images'; |
| 5 | import { UserProfile } from '../types/Profile'; | 5 | import { UserProfile } from '@customTypes/Profile'; |
| 6 | import { API } from '../api/Api'; | 6 | import { API } from '@api/Api'; |
| 7 | import "../css/Login.css"; | 7 | import "@css/Login.css"; |
| 8 | 8 | ||
| 9 | interface LoginProps { | 9 | interface LoginProps { |
| 10 | setToken: React.Dispatch<React.SetStateAction<string | undefined>>; | 10 | setToken: React.Dispatch<React.SetStateAction<string | undefined>>; |
diff --git a/frontend/src/components/MessageDialog.tsx b/frontend/src/components/MessageDialog.tsx index 17b1258..5c85189 100644 --- a/frontend/src/components/MessageDialog.tsx +++ b/frontend/src/components/MessageDialog.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | 2 | ||
| 3 | import "../css/Dialog.css" | 3 | import "@css/Dialog.css" |
| 4 | 4 | ||
| 5 | interface MessageDialogProps { | 5 | interface MessageDialogProps { |
| 6 | title: string; | 6 | title: string; |
diff --git a/frontend/src/components/MessageDialogLoad.tsx b/frontend/src/components/MessageDialogLoad.tsx index 381a4a4..966e064 100644 --- a/frontend/src/components/MessageDialogLoad.tsx +++ b/frontend/src/components/MessageDialogLoad.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | 2 | ||
| 3 | import "../css/Dialog.css" | 3 | import "@css/Dialog.css" |
| 4 | 4 | ||
| 5 | interface MessageDialogLoadProps { | 5 | interface MessageDialogLoadProps { |
| 6 | title: string; | 6 | title: string; |
diff --git a/frontend/src/components/ModMenu.tsx b/frontend/src/components/ModMenu.tsx index 2fb1737..925b8a8 100644 --- a/frontend/src/components/ModMenu.tsx +++ b/frontend/src/components/ModMenu.tsx | |||
| @@ -2,11 +2,11 @@ import React from 'react'; | |||
| 2 | import ReactMarkdown from 'react-markdown'; | 2 | import ReactMarkdown from 'react-markdown'; |
| 3 | import { useNavigate } from 'react-router-dom'; | 3 | import { useNavigate } from 'react-router-dom'; |
| 4 | 4 | ||
| 5 | import { MapSummary } from '../types/Map'; | 5 | import { MapSummary } from '@customTypes/Map'; |
| 6 | import { ModMenuContent } from '../types/Content'; | 6 | import { ModMenuContent } from '@customTypes/Content'; |
| 7 | import { API } from '../api/Api'; | 7 | import { API } from '@api/Api'; |
| 8 | import "../css/ModMenu.css" | 8 | import "@css/ModMenu.css" |
| 9 | import useConfirm from '../hooks/UseConfirm'; | 9 | import useConfirm from '@hooks/UseConfirm'; |
| 10 | 10 | ||
| 11 | interface ModMenuProps { | 11 | interface ModMenuProps { |
| 12 | token?: string; | 12 | token?: string; |
diff --git a/frontend/src/components/RankingEntry.tsx b/frontend/src/components/RankingEntry.tsx index 25b0201..b899965 100644 --- a/frontend/src/components/RankingEntry.tsx +++ b/frontend/src/components/RankingEntry.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link } from "react-router-dom"; | 2 | import { Link } from "react-router-dom"; |
| 3 | import { RankingType, SteamRanking, SteamRankingType } from '../types/Ranking'; | 3 | import { RankingType, SteamRanking, SteamRankingType } from '@customTypes/Ranking'; |
| 4 | 4 | ||
| 5 | enum RankingCategories { | 5 | enum RankingCategories { |
| 6 | rankings_overall, | 6 | rankings_overall, |
diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 5757183..67f7f3d 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link, useLocation } from 'react-router-dom'; | 2 | import { Link, useLocation } from 'react-router-dom'; |
| 3 | 3 | ||
| 4 | import { BookIcon, FlagIcon, HelpIcon, HomeIcon, LogoIcon, PortalIcon, SearchIcon, UploadIcon } from '../images/Images'; | 4 | import { BookIcon, FlagIcon, HelpIcon, HomeIcon, LogoIcon, PortalIcon, SearchIcon, UploadIcon } from '@images/Images'; |
| 5 | import Login from './Login'; | 5 | import Login from '@components/Login'; |
| 6 | import { UserProfile } from '../types/Profile'; | 6 | import { UserProfile } from '@customTypes/Profile'; |
| 7 | import { Search } from '../types/Search'; | 7 | import { Search } from '@customTypes/Search'; |
| 8 | import { API } from '../api/Api'; | 8 | import { API } from '@api/Api'; |
| 9 | import "../css/Sidebar.css"; | 9 | import "@css/Sidebar.css"; |
| 10 | 10 | ||
| 11 | interface SidebarProps { | 11 | interface SidebarProps { |
| 12 | setToken: React.Dispatch<React.SetStateAction<string | undefined>>; | 12 | setToken: React.Dispatch<React.SetStateAction<string | undefined>>; |
diff --git a/frontend/src/components/Summary.tsx b/frontend/src/components/Summary.tsx index 79e989f..14b02ac 100644 --- a/frontend/src/components/Summary.tsx +++ b/frontend/src/components/Summary.tsx | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import ReactMarkdown from 'react-markdown'; | 2 | import ReactMarkdown from 'react-markdown'; |
| 3 | 3 | ||
| 4 | import { MapSummary } from '../types/Map'; | 4 | import { MapSummary } from '@customTypes/Map'; |
| 5 | import "../css/Maps.css" | 5 | import "@css/Maps.css" |
| 6 | 6 | ||
| 7 | interface SummaryProps { | 7 | interface SummaryProps { |
| 8 | selectedRun: number | 8 | selectedRun: number |
diff --git a/frontend/src/components/UploadRunDialog.tsx b/frontend/src/components/UploadRunDialog.tsx index 0610377..118b589 100644 --- a/frontend/src/components/UploadRunDialog.tsx +++ b/frontend/src/components/UploadRunDialog.tsx | |||
| @@ -1,15 +1,15 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { UploadRunContent } from '../types/Content'; | 2 | import { UploadRunContent } from '@customTypes/Content'; |
| 3 | import { ScoreboardTempUpdate, SourceDemoParser, NetMessages } from '@nekz/sdp'; | 3 | import { ScoreboardTempUpdate, SourceDemoParser, NetMessages } from '@nekz/sdp'; |
| 4 | 4 | ||
| 5 | import '../css/UploadRunDialog.css'; | 5 | import '@css/UploadRunDialog.css'; |
| 6 | import { Game } from '../types/Game'; | 6 | import { Game } from '@customTypes/Game'; |
| 7 | import { Map } from '../types/Map'; | 7 | import { Map } from '@customTypes/Map'; |
| 8 | import { API } from '../api/Api'; | 8 | import { API } from '@api/Api'; |
| 9 | import { useNavigate } from 'react-router-dom'; | 9 | import { useNavigate } from 'react-router-dom'; |
| 10 | import useMessage from '../hooks/UseMessage'; | 10 | import useMessage from '@hooks/UseMessage'; |
| 11 | import useConfirm from '../hooks/UseConfirm'; | 11 | import useConfirm from '@hooks/UseConfirm'; |
| 12 | import useMessageLoad from "../hooks/UseMessageLoad"; | 12 | import useMessageLoad from "@hooks/UseMessageLoad"; |
| 13 | 13 | ||
| 14 | interface UploadRunDialogProps { | 14 | interface UploadRunDialogProps { |
| 15 | token?: string; | 15 | token?: string; |