testing inter service communication

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-16 21:48:24 +02:00
parent d6598742e9
commit 837d10a1b9
28 changed files with 89 additions and 229 deletions

View File

@@ -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);
}
}