Skip to content

Commit ea5b77a

Browse files
committed
add youer
1 parent 9f46c68 commit ea5b77a

10 files changed

Lines changed: 2968 additions & 703 deletions

File tree

Cargo.lock

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

backend/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ utoipa-axum = "0.2.0"
1717
chrono = { version = "0.4.40", features = ["serde"] }
1818
indexmap = { version = "2.7.1", features = ["serde"] }
1919
tower-http = { version = "0.6.2", features = ["catch-panic", "cors", "normalize-path"] }
20-
sentry = { version = "0.42.0", default-features = false, features = ["rustls", "reqwest", "backtrace", "contexts", "debug-images", "panic"] }
20+
sentry = { version = "0.45.0", default-features = false, features = ["rustls", "reqwest", "backtrace", "contexts", "debug-images", "panic"] }
2121
reqwest = { version = "0.12.12", default-features = false, features = ["json", "rustls-tls"] }
2222
sha2 = "0.10.8"
23-
sentry-tower = { version = "0.42.0", default-features = false, features = ["http", "axum-matched-path"] }
23+
sentry-tower = { version = "0.45.0", default-features = false, features = ["http", "axum-matched-path"] }
2424
rand = "0.9.0"
2525
serde_yaml = "0.9.34"
2626
toml = "0.9.4"
2727
image = "0.25.5"
2828
tower-cookies = "0.11.0"
29-
rust-s3 = { version = "0.35.1", default-features = false, features = ["tokio-rustls-tls"] }
29+
rust-s3 = { version = "0.37.0", default-features = false, features = ["tokio-rustls-tls"] }
3030
futures-util = "0.3.31"
3131
tower = "0.5.2"
3232
include_dir = "0.7.4"
@@ -35,4 +35,4 @@ json5 = "0.4.1"
3535
serde_arrays = "0.2.0"
3636
human_bytes = "0.4.3"
3737
tokio-util = { version = "0.7.16", features = ["full"] }
38-
clickhouse = { version = "0.13.3", features = ["rustls-tls", "inserter", "chrono"] }
38+
clickhouse = { version = "0.14.0", features = ["rustls-tls", "inserter", "chrono"] }

backend/src/models/type.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ pub enum ServerType {
8686
Magma,
8787
Leaf,
8888
VelocityCtd,
89+
Youer,
8990
}
9091

9192
impl FromStr for ServerType {
@@ -128,6 +129,7 @@ impl FromStr for ServerType {
128129
"VELOCITYCTD" => Ok(ServerType::VelocityCtd),
129130
"VELOCITY-CTD" => Ok(ServerType::VelocityCtd),
130131
"VELOCITY_CTD" => Ok(ServerType::VelocityCtd),
132+
"YOUER" => Ok(ServerType::Youer),
131133
_ => Err(format!("Unknown server type: {s}")),
132134
}
133135
}
@@ -725,5 +727,24 @@ static TYPE_INFOS: LazyLock<IndexMap<ServerType, ServerTypeInfo>> = LazyLock::ne
725727
},
726728
},
727729
),
730+
(
731+
ServerType::Youer,
732+
ServerTypeInfo {
733+
name: "Youer".to_string(),
734+
icon: format!("{}/icons/youer.png", env.s3_url),
735+
color: "#2A3294".to_string(),
736+
homepage: "https://mohistmc.com/software/youer".to_string(),
737+
deprecated: false,
738+
experimental: false,
739+
description: "A variation of NeoForge that allows loading Spigot plugins next to mods.".to_string(),
740+
categories: vec!["modded".to_string(), "plugins".to_string()],
741+
compatibility: vec!["neoforge".to_string(), "spigot".to_string(), "paper".to_string()],
742+
builds: 0,
743+
versions: ServerTypeVersions {
744+
minecraft: 0,
745+
project: 0,
746+
},
747+
},
748+
),
728749
])
729750
});

backend/src/routes/api/v2/requests/_type_/history.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ mod get {
1313
use sqlx::Row;
1414
use utoipa::ToSchema;
1515

16-
#[derive(sqlx::FromRow, Serialize, Deserialize)]
17-
struct Id {
18-
id: String,
19-
}
20-
2116
#[derive(ToSchema, Serialize, Deserialize)]
2217
#[serde(rename_all = "camelCase")]
2318
struct TypeStats {

backend/src/routes/api/v2/requests/_type_/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ mod get {
1111
use sqlx::Row;
1212
use utoipa::ToSchema;
1313

14-
#[derive(sqlx::FromRow, Serialize, Deserialize)]
15-
struct Id {
16-
id: String,
17-
}
18-
1914
#[derive(ToSchema, Serialize, Deserialize)]
2015
#[serde(rename_all = "camelCase")]
2116
struct TypeStats {

backend/src/routes/api/v2/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ mod get {
7171
ServerType::VelocityCtd,
7272
ServerType::Arclight,
7373
ServerType::Mohist,
74+
ServerType::Youer,
7475
ServerType::Magma,
7576
ServerType::Divinemc,
7677
ServerType::Leaf,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TYPE "public"."server_type" ADD VALUE 'YOUER';--> statement-breakpoint
2+
ALTER TABLE "webhooks" ALTER COLUMN "types" SET DEFAULT '["VANILLA","PAPER","PUFFERFISH","SPIGOT","FOLIA","PURPUR","WATERFALL","VELOCITY","FABRIC","BUNGEECORD","QUILT","FORGE","NEOFORGE","MOHIST","ARCLIGHT","SPONGE","LEAVES","CANVAS","ASPAPER","LEGACY_FABRIC","LOOHP_LIMBO","NANOLIMBO","DIVINEMC","MAGMA","LEAF","VELOCITY_CTD","YOUER"]'::jsonb;

0 commit comments

Comments
 (0)