👽️ Apply last macro names changes
This commit is contained in:
parent
5f366d3617
commit
238e92689a
16 changed files with 23 additions and 23 deletions
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(MODULE_ADMIN);
|
new_handle!(MODULE_ADMIN);
|
||||||
|
|
||||||
static_locales!(LOCALES_ADMIN);
|
new_static_locales!(LOCALES_ADMIN);
|
||||||
|
|
||||||
mod summary;
|
mod summary;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(THEME_ALINER);
|
new_handle!(THEME_ALINER);
|
||||||
|
|
||||||
static_files!(aliner);
|
new_static_files!(aliner);
|
||||||
|
|
||||||
pub struct Aliner;
|
pub struct Aliner;
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@ impl ModuleTrait for Aliner {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
||||||
static_files_service!(scfg, "/aliner", aliner);
|
service_for_static_files!(scfg, "/aliner", aliner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(THEME_BOOTSIER);
|
new_handle!(THEME_BOOTSIER);
|
||||||
|
|
||||||
static_locales!(LOCALES_BOOTSIER);
|
new_static_locales!(LOCALES_BOOTSIER);
|
||||||
|
|
||||||
static_files!(bootsier);
|
new_static_files!(bootsier);
|
||||||
|
|
||||||
pub struct Bootsier;
|
pub struct Bootsier;
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ impl ModuleTrait for Bootsier {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
||||||
static_files_service!(scfg, "/bootsier", bootsier);
|
service_for_static_files!(scfg, "/bootsier", bootsier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
//! ```rust#ignore
|
//! ```rust#ignore
|
||||||
//! use pagetop::prelude::*;
|
//! 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:
|
//! Also you can get the bundle as a static reference to the generated HashMap resources collection:
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
//! ```rust#ignore
|
//! ```rust#ignore
|
||||||
//! use pagetop::prelude::*;
|
//! 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.
|
//! You can build more than one resources file to compile with your project.
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(THEME_BULMIX);
|
new_handle!(THEME_BULMIX);
|
||||||
|
|
||||||
static_files!(bulmix);
|
new_static_files!(bulmix);
|
||||||
|
|
||||||
pub struct Bulmix;
|
pub struct Bulmix;
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@ impl ModuleTrait for Bulmix {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
||||||
static_files_service!(scfg, "/bulmix", bulmix);
|
service_for_static_files!(scfg, "/bulmix", bulmix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(MODULE_HOMEDEMO);
|
new_handle!(MODULE_HOMEDEMO);
|
||||||
|
|
||||||
static_locales!(LOCALES_HOMEDEMO);
|
new_static_locales!(LOCALES_HOMEDEMO);
|
||||||
|
|
||||||
static_files!(homedemo);
|
new_static_files!(homedemo);
|
||||||
|
|
||||||
pub struct HomeDemo;
|
pub struct HomeDemo;
|
||||||
|
|
||||||
|
|
@ -22,7 +22,7 @@ impl ModuleTrait for HomeDemo {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
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));
|
scfg.route("/", service::web::get().to(demo));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(MODULE_NODE);
|
new_handle!(MODULE_NODE);
|
||||||
|
|
||||||
static_locales!(LOCALES_NODE);
|
new_static_locales!(LOCALES_NODE);
|
||||||
|
|
||||||
//mod entity;
|
//mod entity;
|
||||||
mod migration;
|
mod migration;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ enum NodeType {
|
||||||
// different from the current type name if the locked field is 0.
|
// different from the current type name if the locked field is 0.
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ enum Node {
|
||||||
Translate, // A boolean indicating whether this translation page needs to be updated.
|
Translate, // A boolean indicating whether this translation page needs to be updated.
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ enum NodeAccess {
|
||||||
// this node.
|
// this node.
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ enum NodeRevision {
|
||||||
// be displayed at the top of lists in which it appears.
|
// be displayed at the top of lists in which it appears.
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(MODULE_USER);
|
new_handle!(MODULE_USER);
|
||||||
|
|
||||||
static_locales!(LOCALES_USER);
|
new_static_locales!(LOCALES_USER);
|
||||||
|
|
||||||
mod migration;
|
mod migration;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ enum Role {
|
||||||
Weight, // The weight of this role in listings and the user interface.
|
Weight, // The weight of this role in listings and the user interface.
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ enum Role {
|
||||||
/* ... */
|
/* ... */
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ enum User {
|
||||||
Timezone, // User's time zone.
|
Timezone, // User's time zone.
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ enum Role {
|
||||||
/* ... */
|
/* ... */
|
||||||
}
|
}
|
||||||
|
|
||||||
pub_migration!(Migration);
|
new_migration!(Migration);
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl MigrationTrait for Migration {
|
impl MigrationTrait for Migration {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue