Skip to content

Commit

Permalink
Add recent and sigle query
Browse files Browse the repository at this point in the history
  • Loading branch information
BakerNet committed Oct 12, 2024
1 parent 39e952f commit 3ba08bf
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 174 deletions.
1 change: 0 additions & 1 deletion web/src/app.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod active;
mod auth;
mod error_template;
mod footer;
Expand Down
141 changes: 0 additions & 141 deletions web/src/app/active.rs

This file was deleted.

3 changes: 3 additions & 0 deletions web/src/app/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ pub fn Header(user: Resource<Option<FrontendUser>, JsonSerdeCodec>) -> impl Into
<A href="/active" attr:class=format!("{} flex items-center space-x-2 text-lg", aclass)>
"Active Games"
</A>
<A href="/recent" attr:class=format!("{} flex items-center space-x-2 text-lg", aclass)>
"Recent Games"
</A>
<div class="flex grow justify-end items-center space-x-2">
<Transition fallback=move || ()>
{move || Suspend::new(async move {
Expand Down
2 changes: 2 additions & 0 deletions web/src/app/minesweeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ mod cell;
mod client;
mod entry;
mod game;
mod games;
mod players;
mod replay;
mod widgets;

use chrono::{DateTime, Utc};
pub use entry::{GameMode, JoinOrCreateGame};
pub use game::{GameView, GameWrapper, ReplayView};
pub use games::{ActiveGames, RecentGames};

use serde::{Deserialize, Serialize};

Expand Down
Loading

0 comments on commit 3ba08bf

Please sign in to comment.