Compare commits

...

3 Commits

Author SHA1 Message Date
Anna 4089eca884
fix: text wrap inactive questions 2023-12-23 15:37:20 -05:00
Anna 7f7ea80a3d
refactor: update dependencies 2023-12-18 14:11:10 -05:00
Anna 14602cc5b7
chore: remove comment 2023-12-18 14:08:56 -05:00
4 changed files with 311 additions and 197 deletions

View File

@ -86,6 +86,9 @@ internal class QuestionsTab {
return;
}
ImGui.PushTextWrapPos();
using var pop = new OnDispose(ImGui.PopTextWrapPos);
foreach (var question in this.Plugin.Manager) {
if (question.Active || question is not FullQuestion full) {
continue;

497
server/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
anyhow = "1"
axum = { version = "0.6", features = ["json"] }
axum = { version = "0.7", features = ["json"] }
blake3 = { version = "1", features = ["traits-preview"] }
chrono = { version = "0.4", features = ["serde"]}
mimalloc = "0.1"

View File

@ -63,15 +63,13 @@ async fn main() -> Result<()> {
.route("/questions", get(get_data))
.route("/question/:id/breakdown/:stat", get(stat_breakdown))
.route("/vote", post(vote))
// .route("/question")
.with_state(Arc::new(AppState {
config,
pool,
}));
axum::Server::bind(&address)
.serve(app.into_make_service())
.await?;
let listener = tokio::net::TcpListener::bind(&address).await?;
axum::serve(listener, app).await?;
Ok(())
}