diff --git a/frontend/src/components/NavBar.vue b/frontend/src/components/NavBar.vue index d8bc0a9..8a061f9 100644 --- a/frontend/src/components/NavBar.vue +++ b/frontend/src/components/NavBar.vue @@ -11,6 +11,7 @@ const links = [ { to: '/join', label: 'FIGHT!' }, { to: '/fight-card', label: 'FIGHT CARD' }, { to: '/arena', label: 'WATCH' }, + { to: '/feed', label: 'FEED' }, { to: '/leaderboard', label: 'RANKINGS' }, { to: '/docs', label: 'DOCS' }, ] diff --git a/frontend/src/pages/FeedPage.vue b/frontend/src/pages/FeedPage.vue new file mode 100644 index 0000000..ab738ee --- /dev/null +++ b/frontend/src/pages/FeedPage.vue @@ -0,0 +1,192 @@ + + + + + FIGHT FEED + + + + + + + {{ t === null ? 'ALL' : `T${t}` }} + + + + + + + + + + + + + {{ fights.length === 0 ? 'No fights yet.' : 'No fights match your filters.' }} + + + + + + + + + + {{ resultType(f) }} + + + + + + {{ f.botA?.name || '???' }} + vs + {{ f.botB?.name || '???' }} + + + + {{ f.winner.name }} wins + + + {{ f.arenaInfo.name }} + + + {{ f.potSats }} SATS + + + + + + + R{{ f.totalRounds }} + {{ timeAgo(f.createdAt) }} + + + + + + + + + + + diff --git a/frontend/src/router.ts b/frontend/src/router.ts index a6a0d0d..a52bafc 100644 --- a/frontend/src/router.ts +++ b/frontend/src/router.ts @@ -66,6 +66,11 @@ const routes = [ name: 'soundboard', component: () => import('./pages/SoundboardPage.vue'), }, + { + path: '/feed', + name: 'feed', + component: () => import('./pages/FeedPage.vue'), + }, ] export const router = createRouter({
+ {{ fights.length === 0 ? 'No fights yet.' : 'No fights match your filters.' }} +
R{{ f.totalRounds }}
{{ timeAgo(f.createdAt) }}