👽️ Apply last macro names changes

This commit is contained in:
Manuel Cillero 2023-10-27 09:20:07 +02:00
parent 5f366d3617
commit 238e92689a
16 changed files with 23 additions and 23 deletions

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
new_handle!(MODULE_ADMIN);
static_locales!(LOCALES_ADMIN);
new_static_locales!(LOCALES_ADMIN);
mod summary;

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
new_handle!(THEME_ALINER);
static_files!(aliner);
new_static_files!(aliner);
pub struct Aliner;
@ -16,7 +16,7 @@ impl ModuleTrait for Aliner {
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
static_files_service!(scfg, "/aliner", aliner);
service_for_static_files!(scfg, "/aliner", aliner);
}
}

View file

@ -2,9 +2,9 @@ use pagetop::prelude::*;
new_handle!(THEME_BOOTSIER);
static_locales!(LOCALES_BOOTSIER);
new_static_locales!(LOCALES_BOOTSIER);
static_files!(bootsier);
new_static_files!(bootsier);
pub struct Bootsier;
@ -18,7 +18,7 @@ impl ModuleTrait for Bootsier {
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
static_files_service!(scfg, "/bootsier", bootsier);
service_for_static_files!(scfg, "/bootsier", bootsier);
}
}

View file

@ -59,7 +59,7 @@
//! ```rust#ignore
//! use pagetop::prelude::*;
//!
//! static_files!(guides);
//! new_static_files!(guides);
//! ```
//!
//! Also you can get the bundle as a static reference to the generated HashMap resources collection:
@ -67,7 +67,7 @@
//! ```rust#ignore
//! use pagetop::prelude::*;
//!
//! static_files!(guides => BUNDLE_GUIDES);
//! new_static_files!(guides => BUNDLE_GUIDES);
//! ```
//!
//! You can build more than one resources file to compile with your project.

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
new_handle!(THEME_BULMIX);
static_files!(bulmix);
new_static_files!(bulmix);
pub struct Bulmix;
@ -16,7 +16,7 @@ impl ModuleTrait for Bulmix {
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
static_files_service!(scfg, "/bulmix", bulmix);
service_for_static_files!(scfg, "/bulmix", bulmix);
}
}

View file

@ -2,9 +2,9 @@ use pagetop::prelude::*;
new_handle!(MODULE_HOMEDEMO);
static_locales!(LOCALES_HOMEDEMO);
new_static_locales!(LOCALES_HOMEDEMO);
static_files!(homedemo);
new_static_files!(homedemo);
pub struct HomeDemo;
@ -22,7 +22,7 @@ impl ModuleTrait for HomeDemo {
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
static_files_service!(scfg, "/homedemo", homedemo);
service_for_static_files!(scfg, "/homedemo", homedemo);
scfg.route("/", service::web::get().to(demo));
}
}

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
new_handle!(MODULE_NODE);
static_locales!(LOCALES_NODE);
new_static_locales!(LOCALES_NODE);
//mod entity;
mod migration;

View file

@ -20,7 +20,7 @@ enum NodeType {
// different from the current type name if the locked field is 0.
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -27,7 +27,7 @@ enum Node {
Translate, // A boolean indicating whether this translation page needs to be updated.
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -19,7 +19,7 @@ enum NodeAccess {
// this node.
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -21,7 +21,7 @@ enum NodeRevision {
// be displayed at the top of lists in which it appears.
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
new_handle!(MODULE_USER);
static_locales!(LOCALES_USER);
new_static_locales!(LOCALES_USER);
mod migration;

View file

@ -10,7 +10,7 @@ enum Role {
Weight, // The weight of this role in listings and the user interface.
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -16,7 +16,7 @@ enum Role {
/* ... */
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -17,7 +17,7 @@ enum User {
Timezone, // User's time zone.
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {

View file

@ -23,7 +23,7 @@ enum Role {
/* ... */
}
pub_migration!(Migration);
new_migration!(Migration);
#[async_trait::async_trait]
impl MigrationTrait for Migration {