2021-05-08 09:34:55 +00:00
|
|
|
use lldap_model::*;
|
|
|
|
use yew::prelude::*;
|
|
|
|
|
|
|
|
pub struct App {}
|
|
|
|
|
|
|
|
pub enum Msg {
|
|
|
|
BindRequest(BindRequest),
|
|
|
|
ListUsersRequest(ListUsersRequest),
|
|
|
|
}
|
|
|
|
|
2021-05-09 09:52:53 +00:00
|
|
|
|
2021-05-08 09:34:55 +00:00
|
|
|
impl Component for App {
|
|
|
|
type Message = Msg;
|
|
|
|
type Properties = ();
|
|
|
|
|
|
|
|
fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
|
|
|
|
App {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn change(&mut self, _: Self::Properties) -> ShouldRender {
|
|
|
|
false
|
|
|
|
}
|
|
|
|
|
|
|
|
fn view(&self) -> Html {
|
|
|
|
html! {
|
|
|
|
<p>{ "Hello world!" }</p>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|