starting request service
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -26,8 +26,8 @@ import com.vaadin.flow.theme.lumo.LumoUtility.Padding;
|
||||
import com.vaadin.flow.theme.lumo.LumoUtility.TextColor;
|
||||
import com.vaadin.flow.theme.lumo.LumoUtility.Whitespace;
|
||||
import com.vaadin.flow.theme.lumo.LumoUtility.Width;
|
||||
import dev.mars3142.fhq.views.checkoutform.CheckoutFormView;
|
||||
import dev.mars3142.fhq.views.myview.MyViewView;
|
||||
import dev.mars3142.fhq.views.checkout_form.CheckoutFormView;
|
||||
import dev.mars3142.fhq.views.my_view.MyViewView;
|
||||
import org.vaadin.lineawesome.LineAwesomeIcon;
|
||||
|
||||
/**
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package dev.mars3142.fhq.views.checkoutform;
|
||||
package dev.mars3142.fhq.views.checkout_form;
|
||||
|
||||
import com.vaadin.flow.component.Component;
|
||||
import com.vaadin.flow.component.button.Button;
|
@@ -1,4 +1,4 @@
|
||||
package dev.mars3142.fhq.views.landingpage;
|
||||
package dev.mars3142.fhq.views.landing_page;
|
||||
|
||||
import com.vaadin.flow.component.applayout.AppLayout;
|
||||
import com.vaadin.flow.component.html.Div;
|
@@ -0,0 +1,17 @@
|
||||
package dev.mars3142.fhq.views.landing_page;
|
||||
|
||||
import com.vaadin.flow.component.Composite;
|
||||
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
||||
import com.vaadin.flow.router.PageTitle;
|
||||
import com.vaadin.flow.router.Route;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@PageTitle("Firmware HQ")
|
||||
@Route(value = "", layout = LandingPageLayout.class)
|
||||
@Slf4j
|
||||
public class LandingPageView extends Composite<VerticalLayout> {
|
||||
|
||||
public LandingPageView() {
|
||||
|
||||
}
|
||||
}
|
@@ -1,26 +0,0 @@
|
||||
package dev.mars3142.fhq.views.landingpage;
|
||||
|
||||
import com.vaadin.flow.component.Composite;
|
||||
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
||||
import com.vaadin.flow.router.PageTitle;
|
||||
import com.vaadin.flow.router.Route;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import lombok.val;
|
||||
import org.springframework.web.client.RestClient;
|
||||
|
||||
@PageTitle("Firmware HQ")
|
||||
@Route(value = "", layout = LandingPageLayout.class)
|
||||
@Slf4j
|
||||
public class LandingPageView extends Composite<VerticalLayout> {
|
||||
public LandingPageView() {
|
||||
val client = RestClient
|
||||
.builder()
|
||||
.baseUrl("https://user-service-ggxookssmq-ew.a.run.app/v1")
|
||||
.build();
|
||||
val response = client.get()
|
||||
.uri("/users")
|
||||
.retrieve()
|
||||
.body(String.class);
|
||||
log.info("Response: {}", response);
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package dev.mars3142.fhq.views.myview;
|
||||
package dev.mars3142.fhq.views.my_view;
|
||||
|
||||
import com.vaadin.flow.component.Composite;
|
||||
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
|
Reference in New Issue
Block a user