karma: karmaweb command + web-board link on top lists, via configurable karma_url
All checks were successful
ci / check (push) Successful in 47s

This commit is contained in:
Jean Chevronnet 2026-07-30 00:39:06 +00:00
parent 739fc8ad94
commit 7f6327270b
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
6 changed files with 92 additions and 7 deletions

View file

@ -13,12 +13,12 @@ pub mod wiki;
use super::module::Module;
use crate::i18n::Locale;
pub fn all(network: &str, locale: Locale) -> Vec<Box<dyn Module>> {
pub fn all(network: &str, locale: Locale, karma_url: Option<String>) -> Vec<Box<dyn Module>> {
vec![
Box::new(builtins::Builtins),
Box::new(dice::Dice::new()),
Box::new(hash::Hash),
Box::new(karma::Karma::new(network, locale)),
Box::new(karma::Karma::new(network, locale, karma_url)),
Box::new(crypto::Crypto),
Box::new(define::Define),
Box::new(down::Down),