mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-16 19:25:03 +01:00
Compare commits
2 commits
b213eec65d
...
6bff95d9bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bff95d9bb | |||
| 0f749df239 |
3 changed files with 929 additions and 631 deletions
1547
Cargo.lock
generated
1547
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -4,8 +4,8 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
askama = "0.12.1"
|
askama = "0.14.0"
|
||||||
axum = { version = "0.7.5", features = ["macros"] }
|
axum = { version = "0.8.6", features = ["macros"] }
|
||||||
color-eyre = "0.6.3"
|
color-eyre = "0.6.3"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
reqwest = { version = "0.12.7", features = [
|
reqwest = { version = "0.12.7", features = [
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ use axum::{
|
||||||
Router,
|
Router,
|
||||||
};
|
};
|
||||||
use color_eyre::{eyre::Context, Result};
|
use color_eyre::{eyre::Context, Result};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::Deserialize;
|
||||||
use tracing::{error, info};
|
use tracing::{error, info};
|
||||||
|
|
||||||
use crate::db::{BuildInfo, BuildMode, BuildStats, Db, Status};
|
use crate::db::{BuildInfo, BuildMode, BuildStats, Db, Status};
|
||||||
|
|
@ -325,13 +325,8 @@ async fn index_js() -> impl IntoResponse {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
|
||||||
struct TriggerBuildBody {
|
|
||||||
nightly: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Status {
|
impl Status {
|
||||||
fn to_emoji(&self) -> &'static str {
|
fn to_emoji(self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
Status::Pass => "✅",
|
Status::Pass => "✅",
|
||||||
Status::Error => "❌",
|
Status::Error => "❌",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue