diff --git a/src/frame_view.rs b/src/frame_view.rs index f38c761..4e319d5 100644 --- a/src/frame_view.rs +++ b/src/frame_view.rs @@ -8,6 +8,7 @@ use yew::prelude::*; use crate::{ command_handler::command_handler, editor_view::CodeEditorView, + html_view::HtmlView, lineengine::line::{Readline, ReadlineEvent}, term_split::TermSplit, timer_host::TimerHost, @@ -76,6 +77,7 @@ pub struct FrameId(pub u64); pub enum FrameViewType { Terminal, Editor, + Html { inner: String }, } #[derive(Properties)] @@ -239,6 +241,9 @@ pub fn term_view(props: &TermViewProps) -> Html { global_memo={props.global_memo.clone()} global_layout={props.global_layout.clone()}/> }, + FrameViewType::Html { inner } => html! { + + }, } } diff --git a/src/html_view.rs b/src/html_view.rs new file mode 100644 index 0000000..74575e1 --- /dev/null +++ b/src/html_view.rs @@ -0,0 +1,12 @@ +use yew::prelude::*; +use yew::{function_component, Properties}; + +#[derive(Properties, PartialEq)] +pub struct HtmlViewProps { + pub inner: String, +} + +#[function_component(HtmlView)] +pub fn html_view(props: &HtmlViewProps) -> Html { + html! {