- É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:
@@ -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?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user