mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
Split the crate in 3, introduce JS frontend
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
use lldap_model::*;
|
||||
use yew::prelude::*;
|
||||
|
||||
pub struct App {}
|
||||
|
||||
pub enum Msg {
|
||||
BindRequest(BindRequest),
|
||||
ListUsersRequest(ListUsersRequest),
|
||||
}
|
||||
|
||||
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>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user