Added static content, favicon and titles

This commit is contained in:
Andrey Terentev 2023-11-16 23:07:28 +07:00
parent f1b2eb3519
commit 82ba4e83bb
4 changed files with 7 additions and 5 deletions

View File

@ -1,12 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- <html lang="en">
This file is auto-generated by Vaadin.
-->
<html>
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/static/icon.png">
<style> <style>
body, #outlet { body, #outlet {
height: 100vh; height: 100vh;
@ -14,6 +11,7 @@ This file is auto-generated by Vaadin.
margin: 0; margin: 0;
} }
</style> </style>
<title>Dragonestia LoadBalancer</title>
<!-- index.ts is included here automatically (either by the dev server or during the build) --> <!-- index.ts is included here automatically (either by the dev server or during the build) -->
</head> </head>
<body> <body>

View File

@ -1,6 +1,7 @@
package ru.dragonestia.loadbalancer.web.page; package ru.dragonestia.loadbalancer.web.page;
import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route; import com.vaadin.flow.router.Route;
import lombok.Getter; import lombok.Getter;
import ru.dragonestia.loadbalancer.web.component.NodeList; import ru.dragonestia.loadbalancer.web.component.NodeList;
@ -9,6 +10,7 @@ import ru.dragonestia.loadbalancer.web.component.RegisterNode;
import java.util.List; import java.util.List;
@Getter @Getter
@PageTitle("Nodes")
@Route("/nodes") @Route("/nodes")
public class NodesPage extends VerticalLayout { public class NodesPage extends VerticalLayout {

View File

@ -1 +1,3 @@
server.port=8090 server.port=8090
vaadin.exclude-urls=/static/**
spring.mvc.static-path-pattern=/static/**

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB