🚚 Refactor modules to packages to avoid Rust clash

This commit is contained in:
Manuel Cillero 2024-01-07 00:18:54 +01:00
parent 98fa367ebc
commit 89f78a1aff
35 changed files with 125 additions and 123 deletions

View file

@ -8,13 +8,13 @@ mod migration;
#[derive(AssignHandle)]
pub struct Node;
impl ModuleTrait for Node {
impl PackageTrait for Node {
fn name(&self) -> L10n {
L10n::t("module_name", &LOCALES_NODE)
L10n::t("package_name", &LOCALES_NODE)
}
fn description(&self) -> L10n {
L10n::t("module_description", &LOCALES_NODE)
L10n::t("package_description", &LOCALES_NODE)
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {

View file

@ -1,2 +1,2 @@
module_name = Node
module_description = Allows content to be submitted to the site and displayed on pages.
package_name = Node
package_description = Allows content to be submitted to the site and displayed on pages.

View file

@ -1,2 +1,2 @@
module_name = Nodo
module_description = Permite enviar contenidos al sitio y mostrarlos en páginas.
package_name = Nodo
package_description = Permite enviar contenidos al sitio y mostrarlos en páginas.