Skip to content

Commit

Permalink
fix: too large range of path Api
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjunyu19 committed Aug 8, 2022
1 parent af4cc8d commit 360f792
Show file tree
Hide file tree
Showing 55 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/AppNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
mdiWrenchOutline,
} from '@mdi/js'
import { Icon } from '@mdi/react'
import api, { Role } from '@Api/Api'
import api, { Role } from '@Api'
import MainIcon from './icon/MainIcon'

const useStyles = createStyles((theme, _param, getRef) => {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ChallengeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FC } from 'react'
import { Card, createStyles, Divider, Group, Tooltip, Stack, Text, Title } from '@mantine/core'
import { mdiFlag } from '@mdi/js'
import { Icon } from '@mdi/react'
import { ChallengeInfo, SubmissionType } from '@Api/Api'
import { ChallengeInfo, SubmissionType } from '@Api'
import { BloodsTypes, ChallengeTagLabelMap } from './ChallengeItem'

const useStyles = createStyles((_theme, _param, getRef) => {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ChallengeDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { mdiCheck, mdiClose, mdiDownload, mdiLightbulbOnOutline, mdiLoading } fr
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import { useTypographyStyles } from '@Utils/ThemeOverride'
import api, { AnswerResult, ChallengeType } from '@Api/Api'
import api, { AnswerResult, ChallengeType } from '@Api'
import { ChallengeTagItemProps } from './ChallengeItem'

interface ChallengeDetailModalProps extends ModalProps {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ChallengeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
mdiWeb,
} from '@mdi/js'
import { Icon } from '@mdi/react'
import { ChallengeTag, ChallengeType, NoticeType, SubmissionType } from '@Api/Api'
import { ChallengeTag, ChallengeType, NoticeType, SubmissionType } from '@Api'

export const ChallengeTypeLabelMap = new Map<ChallengeType, ChallengeTypeItemProps>([
[ChallengeType.StaticAttachment, { label: '静态附件', desrc: '共用附件,任意 flag 均可提交' }],
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ChallengeNoticePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Card, List, ScrollArea } from '@mantine/core'
import { showNotification } from '@mantine/notifications'
import { mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import api, { GameNotice, NoticeType } from '@Api/Api'
import api, { GameNotice, NoticeType } from '@Api'
import { NoticTypeIconMap } from './ChallengeItem'

const ChallengeNoticePanel: FC = () => {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ChallengePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useParams } from 'react-router-dom'
import { Group, ScrollArea, SimpleGrid, Tabs, Text } from '@mantine/core'
import { mdiPuzzle } from '@mdi/js'
import { Icon } from '@mdi/react'
import api, { ChallengeInfo, ChallengeTag, SubmissionType } from '@Api/Api'
import api, { ChallengeInfo, ChallengeTag, SubmissionType } from '@Api'
import ChallengeCard from './ChallengeCard'
import ChallengeDetailModal from './ChallengeDetailModal'
import { ChallengeTagLabelMap, SubmissionTypeIconMap } from './ChallengeItem'
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/GameCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@mantine/core'
import { mdiChevronTripleRight, mdiFlagOutline } from '@mdi/js'
import { Icon } from '@mdi/react'
import { BasicGameInfoModel } from '@Api/Api'
import { BasicGameInfoModel } from '@Api'

export enum GameStatus {
Coming = 'coming',
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/NoticeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TypographyStylesProvider,
} from '@mantine/core'
import { useTypographyStyles } from '@Utils/ThemeOverride'
import { Notice } from '@Api/Api'
import { Notice } from '@Api'

const NoticeCard: FC<Notice> = (notice) => {
const theme = useMantineTheme()
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/PasswordChangeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api from '@Api/Api'
import api from '@Api'
import StrengthPasswordInput from './StrengthPasswordInput'

const PasswordChangeModal: FC<ModalProps> = (props) => {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/RecentGame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@mantine/core'
import { mdiFlagOutline } from '@mdi/js'
import { Icon } from '@mdi/react'
import { BasicGameInfoModel } from '@Api/Api'
import { BasicGameInfoModel } from '@Api'
import { getGameStatus, GameColorMap, GameStatus } from './GameCard'

interface RecentGameProps {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ScoreboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Pagination,
} from '@mantine/core'
import { Icon } from '@mdi/react'
import api, { ChallengeInfo, ChallengeTag, ScoreboardItem, SubmissionType } from '@Api/Api'
import api, { ChallengeInfo, ChallengeTag, ScoreboardItem, SubmissionType } from '@Api'
import { BloodsTypes, ChallengeTagLabelMap, SubmissionTypeIconMap } from './ChallengeItem'

const useStyles = createStyles((theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/TeamCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiLockOutline, mdiPower, mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { TeamInfoModel } from '@Api/Api'
import api, { TeamInfoModel } from '@Api'

interface TeamCardProps {
team: TeamInfoModel
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/TeamCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCloseCircle, mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { TeamUpdateModel } from '@Api/Api'
import api, { TeamUpdateModel } from '@Api'

interface TeamEditModalProps extends ModalProps {
isOwnTeam: boolean
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/TeamEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose, mdiCloseCircle, mdiRefresh, mdiCrown } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { TeamInfoModel, TeamUserInfoModel } from '@Api/Api'
import api, { TeamInfoModel, TeamUserInfoModel } from '@Api'

interface TeamEditModalProps extends ModalProps {
team: TeamInfoModel | null
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/TeamRank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
createStyles,
Progress,
} from '@mantine/core'
import api, { SubmissionType } from '@Api/Api'
import api, { SubmissionType } from '@Api'

const useStyle = createStyles((theme) => ({
number: {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/TimeLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReactEcharts from 'echarts-for-react'
import { FC } from 'react'
import { useParams } from 'react-router-dom'
import { useMantineTheme } from '@mantine/core'
import api from '@Api/Api'
import api from '@Api'

const TimeLine: FC = () => {
const { id } = useParams()
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/WithGameTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { useInterval } from '@mantine/hooks'
import { mdiFlagOutline, mdiGauge, mdiMedalOutline } from '@mdi/js'
import { Icon } from '@mdi/react'
import api, { GameDetailModel, ParticipationStatus, Role } from '@Api/Api'
import api, { GameDetailModel, ParticipationStatus, Role } from '@Api'
import IconTabs from './IconTabs'
import { RoleMap } from './WithRole'

Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/WithRole.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC, useEffect } from 'react'
import { useNavigate, useLocation } from 'react-router-dom'
import { Center, Loader } from '@mantine/core'
import api, { Role } from '@Api/Api'
import api, { Role } from '@Api'

interface WithRoleProps {
requiredRole: Role
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/AdminPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC } from 'react'
import WithNavBar from '@Components/WithNavbar'
import WithRole from '@Components/WithRole'
import { Role } from '@Api/Api'
import { Role } from '@Api'
import WithAdminTab from './WithAdminTab'
import { AdminTabProps } from './WithAdminTab'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { FileType, FlagCreateModel } from '@Api/Api'
import api, { FileType, FlagCreateModel } from '@Api'

const AttachmentRemoteEditModal: FC<ModalProps> = (props) => {
const { id, chalId } = useParams()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { FileType } from '@Api/Api'
import api, { FileType } from '@Api'

export const useUploadStyles = createStyles(() => ({
uploadButton: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { ChallengeInfoModel, ChallengeTag, ChallengeType } from '@Api/Api'
import api, { ChallengeInfoModel, ChallengeTag, ChallengeType } from '@Api'
import {
ChallengeTagItem,
ChallengeTagLabelMap,
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/ChallengeEditCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '@mantine/core'
import { mdiDatabaseEditOutline, mdiPuzzleEditOutline } from '@mdi/js'
import { Icon } from '@mdi/react'
import { ChallengeInfoModel, ChallengeTag } from '@Api/Api'
import { ChallengeInfoModel, ChallengeTag } from '@Api'
import { ChallengeTagLabelMap } from '../ChallengeItem'

interface ChallengeEditCardProps {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/FlagCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api from '@Api/Api'
import api from '@Api'

const FlagCreateModal: FC<ModalProps> = (props) => {
const [disabled, setDisabled] = useState(false)
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/FlagEditPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FC } from 'react'
import { ActionIcon, Group, Stack, Text, Card, useMantineTheme, SimpleGrid } from '@mantine/core'
import { mdiDeleteOutline } from '@mdi/js'
import { Icon } from '@mdi/react'
import { Attachment, FlagInfoModel } from '@Api/Api'
import { Attachment, FlagInfoModel } from '@Api'

interface FlagCardProps {
flag: FlagInfoModel
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/GameCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { GameInfoModel } from '@Api/Api'
import api, { GameInfoModel } from '@Api'

interface GameCreateModalProps extends ModalProps {
onAddGame: (game: GameInfoModel) => void
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/NoticeEditCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { mdiPinOffOutline, mdiPinOutline, mdiDeleteOutline, mdiPencilOutline } from '@mdi/js'
import { Icon } from '@mdi/react'
import { useTypographyStyles } from '@Utils/ThemeOverride'
import { Notice } from '@Api/Api'
import { Notice } from '@Api'

interface NoticeEditCardProps extends PaperProps {
notice: Notice
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/NoticeEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { Notice } from '@Api/Api'
import api, { Notice } from '@Api'

interface NoticeEditModalProps extends ModalProps {
notice?: Notice | null
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/admin/UserEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { UserInfoModel, UpdateUserInfoModel, Role } from '@Api/Api'
import api, { UserInfoModel, UpdateUserInfoModel, Role } from '@Api'

export const RoleColorMap = new Map<Role, string>([
[Role.Admin, 'blue'],
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import LogoHeader from '@Components/LogoHeader'
import NoticeCard from '@Components/NoticeCard'
import RecentGame from '@Components/RecentGame'
import WithNavBar from '@Components/WithNavbar'
import api from '@Api/Api'
import api from '@Api'

const useStyles = createStyles((theme) => ({
notices: {
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import TeamEditModal from '@Components/TeamEditModal'
import WithNavBar from '@Components/WithNavbar'
import WithRole from '@Components/WithRole'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { TeamInfoModel, Role } from '@Api/Api'
import api, { TeamInfoModel, Role } from '@Api'

const Teams: FC = () => {
const { data: user, error: userError } = api.account.useAccountProfile({
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import AccountView from '@Components/AccountView'
import api from '@Api/Api'
import api from '@Api'

const Confirm: FC = () => {
const navigate = useNavigate()
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import AccountView from '@Components/AccountView'
import api from '@Api/Api'
import api from '@Api'

const Login: FC = () => {
const params = useParams()
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Icon } from '@mdi/react'
import PasswordChangeModal from '@Components/PasswordChangeModal'
import WithNavBar from '@Components/WithNavbar'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { ProfileUpdateModel } from '@Api/Api'
import api, { ProfileUpdateModel } from '@Api'

const Profile: FC = () => {
const [dropzoneOpened, setDropzoneOpened] = useState(false)
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Recovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { mdiCheck } from '@mdi/js'
import { Icon } from '@mdi/react'
import AccountView from '@Components/AccountView'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api from '@Api/Api'
import api from '@Api'

const Recovery: FC = () => {
const [email, setEmail] = useInputState('')
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Icon } from '@mdi/react'
import AccountView from '@Components/AccountView'
import StrengthPasswordInput from '@Components/StrengthPasswordInput'
import { useReCaptcha } from '@Utils/Recaptcha'
import api from '@Api/Api'
import api from '@Api'

const Register: FC = () => {
const [pwd, setPwd] = useInputState('')
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Reset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Icon } from '@mdi/react'
import AccountView from '@Components/AccountView'
import StrengthPasswordInput from '@Components/StrengthPasswordInput'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api from '@Api/Api'
import api from '@Api'

const Reset: FC = () => {
const location = useLocation()
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/account/Verify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import AccountView from '@Components/AccountView'
import api from '@Api/Api'
import api from '@Api'

const Verify: FC = () => {
const location = useLocation()
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/admin/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { showNotification } from '@mantine/notifications'
import { mdiClose, mdiCheck, mdiArrowLeftBold, mdiArrowRightBold } from '@mdi/js'
import { Icon } from '@mdi/react'
import AdminPage from '@Components/admin/AdminPage'
import api, { LogMessageModel } from '@Api/Api'
import api, { LogMessageModel } from '@Api'

const ITEM_COUNT_PER_PAGE = 30

Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/admin/Notices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AdminPage from '@Components/admin/AdminPage'
import NoticeEditCard from '@Components/admin/NoticeEditCard'
import NoticeEditModal from '@Components/admin/NoticeEditModal'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { Notice } from '@Api/Api'
import api, { Notice } from '@Api'

const Notices: FC = () => {
const { data: notices, mutate } = api.edit.useEditGetNotices({
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/admin/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { mdiMagnify, mdiArrowLeftBold, mdiArrowRightBold, mdiLockOutline } from
import { Icon } from '@mdi/react'
import AdminPage from '@Components/admin/AdminPage'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { TeamInfoModel } from '@Api/Api'
import api, { TeamInfoModel } from '@Api'

const ITEM_COUNT_PER_PAGE = 30

Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/admin/Users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Icon } from '@mdi/react'
import AdminPage from '@Components/admin/AdminPage'
import UserEditModal, { RoleColorMap } from '@Components/admin/UserEditModal'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { Role, UserInfoModel } from '@Api/Api'
import api, { Role, UserInfoModel } from '@Api'

const ITEM_COUNT_PER_PAGE = 30

Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/admin/games/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Icon } from '@mdi/react'
import { GameColorMap, getGameStatus } from '@Components/GameCard'
import AdminPage from '@Components/admin/AdminPage'
import GameCreateModal from '@Components/admin/GameCreateModal'
import api, { GameInfoModel } from '@Api/Api'
import api, { GameInfoModel } from '@Api'

const ITEM_COUNT_PER_PAGE = 30

Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/pages/admin/games/[id]/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { mdiBackburger, mdiCheck, mdiClose } from '@mdi/js'
import { Icon } from '@mdi/react'
import WithGameEditTab from '@Components/admin/WithGameEditTab'
import { showErrorNotification } from '@Utils/ApiErrorHandler'
import api, { GameInfoModel } from '@Api/Api'
import api, { GameInfoModel } from '@Api'

const GameInfoEdit: FC = () => {
const { id } = useParams()
Expand Down
Loading

0 comments on commit 360f792

Please sign in to comment.