testing inter service communication
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
package dev.mars3142.fhq.views.landing_page;
|
||||
|
||||
import com.vaadin.flow.component.Composite;
|
||||
import com.vaadin.flow.component.Text;
|
||||
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
||||
import com.vaadin.flow.router.PageTitle;
|
||||
import com.vaadin.flow.router.Route;
|
||||
import dev.mars3142.fhq.client.TimeZoneClient;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import lombok.val;
|
||||
|
||||
@PageTitle("Firmware HQ")
|
||||
@Route(value = "", layout = LandingPageLayout.class)
|
||||
@Slf4j
|
||||
public class LandingPageView extends Composite<VerticalLayout> {
|
||||
|
||||
public LandingPageView() {
|
||||
|
||||
public LandingPageView(TimeZoneClient client) {
|
||||
val timeZone = client.getTimeZone();
|
||||
val verticalLayout = new VerticalLayout();
|
||||
verticalLayout.setSizeFull();
|
||||
verticalLayout.add(new Text(timeZone));
|
||||
getContent().add(verticalLayout);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user