starting request service

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-08-03 10:18:42 +02:00
parent 64f4ab247b
commit bb92409fda
24 changed files with 255 additions and 35 deletions

View File

@@ -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;
/**

View File

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

View File

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

View File

@@ -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() {
}
}

View File

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

View File

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