app : écran de gestion des mods via Modrinth
Build APK / build (push) Successful in 3m6s

- Écran Mods (recherche Modrinth + liste installée) accessible depuis le détail d_un serveur Minecraft
- Ajout/retrait réservés aux admins (bouton masqué/averti sinon), via l_API gamepanel
- Service API : role(), mods(), searchMods(), addMod(), removeMod() + modèle ModHit
This commit is contained in:
neckfire
2026-10-09 18:34:31 +02:00
parent e9de38091e
commit 851a55cf38
4 changed files with 344 additions and 0 deletions
+19
View File
@@ -153,3 +153,22 @@ class ConnectInfo {
);
}
}
/// Résultat de recherche Modrinth (proxy backend /api/modrinth/search).
class ModHit {
ModHit({required this.slug, required this.title, this.description, this.downloads, this.iconUrl});
final String slug;
final String title;
final String? description;
final int? downloads;
final String? iconUrl;
factory ModHit.fromJson(Map<String, dynamic> j) => ModHit(
slug: (j['slug'] as String?) ?? '',
title: (j['title'] as String?) ?? (j['slug'] as String?) ?? '',
description: j['description'] as String?,
downloads: j['downloads'] as int?,
iconUrl: j['icon_url'] as String?,
);
}