2021-05-11 07:54:54 +00:00
|
|
|
use crate::user_table::UserTable;
|
2021-05-08 09:34:55 +00:00
|
|
|
use yew::prelude::*;
|
|
|
|
|
2021-05-11 07:54:54 +00:00
|
|
|
pub struct App {}
|
2021-05-08 09:34:55 +00:00
|
|
|
|
2021-05-11 07:54:54 +00:00
|
|
|
pub enum Msg {}
|
2021-05-08 09:34:55 +00:00
|
|
|
|
|
|
|
impl Component for App {
|
|
|
|
type Message = Msg;
|
|
|
|
type Properties = ();
|
|
|
|
|
2021-05-11 07:54:54 +00:00
|
|
|
fn create(_: Self::Properties, _link: ComponentLink<Self>) -> Self {
|
|
|
|
App {}
|
2021-05-08 09:34:55 +00:00
|
|
|
}
|
|
|
|
|
2021-05-11 07:54:54 +00:00
|
|
|
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
|
|
|
false
|
2021-05-08 09:34:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn change(&mut self, _: Self::Properties) -> ShouldRender {
|
|
|
|
false
|
|
|
|
}
|
|
|
|
|
|
|
|
fn view(&self) -> Html {
|
|
|
|
html! {
|
2021-05-09 11:26:50 +00:00
|
|
|
<div>
|
|
|
|
<h1>{ "LLDAP" }</h1>
|
2021-05-11 07:54:54 +00:00
|
|
|
<UserTable />
|
2021-05-09 11:26:50 +00:00
|
|
|
</div>
|
2021-05-08 09:34:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|