🚚 Rename OptionTranslate to OptionTranslated
This commit is contained in:
parent
718bc5d769
commit
edd1c5cdc2
1 changed files with 6 additions and 7 deletions
|
|
@ -2,9 +2,8 @@ use crate::base::action::page::{run_actions_after_prepare_body, run_actions_befo
|
||||||
use crate::core::component::{ArcComponent, ComponentTrait};
|
use crate::core::component::{ArcComponent, ComponentTrait};
|
||||||
use crate::core::component::{Context, ContextOp};
|
use crate::core::component::{Context, ContextOp};
|
||||||
use crate::core::theme::ComponentsRegions;
|
use crate::core::theme::ComponentsRegions;
|
||||||
use crate::html::{
|
use crate::html::{html, Markup, DOCTYPE};
|
||||||
html, ClassesOp, Favicon, Markup, OptionClasses, OptionId, OptionTranslate, DOCTYPE,
|
use crate::html::{ClassesOp, Favicon, OptionClasses, OptionId, OptionTranslated};
|
||||||
};
|
|
||||||
use crate::locale::L10n;
|
use crate::locale::L10n;
|
||||||
use crate::response::fatal_error::FatalError;
|
use crate::response::fatal_error::FatalError;
|
||||||
use crate::{fn_builder, service};
|
use crate::{fn_builder, service};
|
||||||
|
|
@ -15,8 +14,8 @@ pub use actix_web::Result as ResultPage;
|
||||||
|
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
pub struct Page {
|
pub struct Page {
|
||||||
title : OptionTranslate,
|
title : OptionTranslated,
|
||||||
description : OptionTranslate,
|
description : OptionTranslated,
|
||||||
metadata : Vec<(&'static str, &'static str)>,
|
metadata : Vec<(&'static str, &'static str)>,
|
||||||
properties : Vec<(&'static str, &'static str)>,
|
properties : Vec<(&'static str, &'static str)>,
|
||||||
favicon : Option<Favicon>,
|
favicon : Option<Favicon>,
|
||||||
|
|
@ -30,8 +29,8 @@ impl Page {
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
pub fn new(request: service::HttpRequest) -> Self {
|
pub fn new(request: service::HttpRequest) -> Self {
|
||||||
Page {
|
Page {
|
||||||
title : OptionTranslate::new(),
|
title : OptionTranslated::new(),
|
||||||
description : OptionTranslate::new(),
|
description : OptionTranslated::new(),
|
||||||
metadata : Vec::new(),
|
metadata : Vec::new(),
|
||||||
properties : Vec::new(),
|
properties : Vec::new(),
|
||||||
favicon : None,
|
favicon : None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue