Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostya Bats committed Nov 4, 2024
1 parent 139ff23 commit 53f240b
Show file tree
Hide file tree
Showing 6 changed files with 965 additions and 351 deletions.
9 changes: 9 additions & 0 deletions src/backend/src/main/kotlin/org/icpclive/admin/Routing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ fun Route.configureAdminApiRouting() {
}
}


get("/contestInfo") {
run {
call.respondText(contentType = ContentType.Application.Json) {
Json.encodeToString(DataBus.currentContestInfo())
}
}
}

webSocket("/backendLog") { sendFlow(DataBus.loggerFlow) }
webSocket("/adminActions") { sendFlow(DataBus.adminActionsFlow) }

Expand Down
4 changes: 2 additions & 2 deletions src/frontend/admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Advertisement from "./components/Advertisement";
import Title from "./components/Title";
import Picture from "./components/Picture";
import TeamView from "./components/pages/TeamView";
import ContestLog from "./components/ContestLog"
import ContestLog from "./components/pages/ContestInfo";
import { SnackbarProvider } from "notistack";
import BackendLog from "./components/BackendLog";
import Dashboard from "./components/Dashboard";
Expand Down Expand Up @@ -101,7 +101,7 @@ function App() {
<Route path="/scoreboard" element={<ScoreboardPage/>}/>
<Route path="/ticker" element={<TickerMessage/>}/>
<Route path="/log" element={<BackendLog/>}/>
<Route path="/contest" element={<ContestLog/>}/>
<Route path="/contestInfo" element={<ContestLog/>}/>
<Route path="/analytics" element={<Analytics/>}/>
<Route path="/teamSpotlight" element={<TeamSpotlight/>}/>
<Route path="/advancedJson" element={<AdvancedJson/>}/>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/admin/src/AppNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const defaultPages = {
"Spotlight": "teamSpotlight",
"Advanced": "advancedJson",
"Media": "media",
"Contest": "contest",
"Info": "contestInfo",
"Backend Log": "log",
};

Expand Down
335 changes: 0 additions & 335 deletions src/frontend/admin/src/components/ContestLog.tsx

This file was deleted.

Loading

0 comments on commit 53f240b

Please sign in to comment.