Skip to content

Commit fe867b8

Browse files
committed
feat(traffic): sort challenge & teams
1 parent 540793c commit fe867b8

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

src/GZCTF/ClientApp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"@vitejs/plugin-react": "^4.2.1",
6666
"axios": "^1.6.8",
6767
"babel-plugin-prismjs": "^2.1.0",
68-
"eslint": "^8.0.0",
69-
"eslint-plugin-react-hooks": "^4.6.0",
68+
"eslint": "^8.57.0",
69+
"eslint-plugin-react-hooks": "^4.6.2",
7070
"form-data": "~4.0.0",
7171
"lodash": "^4.17.21",
7272
"prettier": "~3.2.5",
@@ -77,7 +77,7 @@
7777
"vite": "^5.2.10",
7878
"vite-plugin-pages": "^0.32.1",
7979
"vite-plugin-prismjs": "^0.0.11",
80-
"vite-plugin-webfont-dl": "^3.9.3",
80+
"vite-plugin-webfont-dl": "^3.9.4",
8181
"vite-tsconfig-paths": "^4.3.2"
8282
}
8383
}

src/GZCTF/ClientApp/pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GZCTF/ClientApp/src/pages/games/[id]/monitor/Traffic.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ const Traffic: FC = () => {
135135
const srollHeight = 'calc(100vh - 174px)'
136136
const headerHeight = rem(32)
137137

138+
challengeTraffic?.sort((a, b) => a.tag?.localeCompare(b.tag ?? '') ?? 0)
139+
teamTraffic?.sort((a, b) => (a.teamId ?? 0) - (b.teamId ?? 0))
140+
138141
return (
139142
<WithGameMonitorTab>
140143
{!challengeTraffic || challengeTraffic?.length === 0 ? (

0 commit comments

Comments
 (0)