🔥 (config): Elimina la opción app.description
This commit is contained in:
parent
eb3157c4a4
commit
82e64238bd
3 changed files with 5 additions and 10 deletions
|
|
@ -102,11 +102,6 @@ impl Application {
|
||||||
print!("\n{app_ff}");
|
print!("\n{app_ff}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Descripción de la aplicación.
|
|
||||||
if !global::SETTINGS.app.description.is_empty() {
|
|
||||||
println!("{}", global::SETTINGS.app.description.cyan());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Versión de PageTop.
|
// Versión de PageTop.
|
||||||
println!(
|
println!(
|
||||||
"{} {}\n",
|
"{} {}\n",
|
||||||
|
|
|
||||||
|
|
@ -92,18 +92,21 @@
|
||||||
//!
|
//!
|
||||||
//! # Usando tus opciones de configuración
|
//! # Usando tus opciones de configuración
|
||||||
//!
|
//!
|
||||||
|
//! Los ajustes de cada extensión y los globales de PageTop
|
||||||
|
//! ([`global::SETTINGS`](crate::global::SETTINGS)) conviven sin conflicto: cada cual vive en su
|
||||||
|
//! propia sección del TOML y pueden combinarse libremente cuando se necesiten.
|
||||||
|
//!
|
||||||
//! ```rust,ignore
|
//! ```rust,ignore
|
||||||
//! use pagetop::prelude::*;
|
//! use pagetop::prelude::*;
|
||||||
//! use crate::config;
|
//! use crate::config;
|
||||||
//!
|
//!
|
||||||
//! fn global_settings() {
|
//! fn global_settings() {
|
||||||
//! println!("Nombre de la app: {}", &global::SETTINGS.app.name);
|
//! println!("Nombre de la app: {}", &global::SETTINGS.app.name);
|
||||||
//! println!("Descripción: {}", &global::SETTINGS.app.description);
|
|
||||||
//! println!("Run mode: {}", &global::SETTINGS.app.run_mode);
|
//! println!("Run mode: {}", &global::SETTINGS.app.run_mode);
|
||||||
//! }
|
//! }
|
||||||
//!
|
//!
|
||||||
//! fn extension_settings() {
|
//! fn extension_settings() {
|
||||||
//! println!("{} - {:?}", &config::SETTINGS.myapp.name, &config::SETTINGS.myapp.description);
|
//! println!("{}", &config::SETTINGS.myapp.name);
|
||||||
//! println!("{}", &config::SETTINGS.myapp.width);
|
//! println!("{}", &config::SETTINGS.myapp.width);
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ pub use log_format::LogFormat;
|
||||||
include_config!(SETTINGS: Settings => [
|
include_config!(SETTINGS: Settings => [
|
||||||
// [app]
|
// [app]
|
||||||
"app.name" => "PageTop App",
|
"app.name" => "PageTop App",
|
||||||
"app.description" => "Developed with the amazing PageTop framework.",
|
|
||||||
"app.theme" => "Basic",
|
"app.theme" => "Basic",
|
||||||
"app.lang_negotiation" => "Full",
|
"app.lang_negotiation" => "Full",
|
||||||
"app.startup_banner" => "Slant",
|
"app.startup_banner" => "Slant",
|
||||||
|
|
@ -58,8 +57,6 @@ pub struct Settings {
|
||||||
pub struct App {
|
pub struct App {
|
||||||
/// Nombre de la aplicación.
|
/// Nombre de la aplicación.
|
||||||
pub name: String,
|
pub name: String,
|
||||||
/// Breve descripción de la aplicación.
|
|
||||||
pub description: String,
|
|
||||||
/// Tema predeterminado.
|
/// Tema predeterminado.
|
||||||
pub theme: String,
|
pub theme: String,
|
||||||
/// Idioma predeterminado de la aplicación (p. ej., *"es-ES"* o *"en-US"*).
|
/// Idioma predeterminado de la aplicación (p. ej., *"es-ES"* o *"en-US"*).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue