generated from vaadin/addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
103 additions
and
989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"lumoImports" : [ "typography", "color", "spacing", "badge", "utility" ] | ||
} |
23 changes: 23 additions & 0 deletions
23
demo/src/main/java/com/example/application/Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.example.application; | ||
|
||
import com.vaadin.flow.component.page.AppShellConfigurator; | ||
import com.vaadin.flow.theme.Theme; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
/** | ||
* The entry point of the Spring Boot application. | ||
* | ||
* Use the @PWA annotation make the application installable on phones, tablets | ||
* and some desktop browsers. | ||
* | ||
*/ | ||
@SpringBootApplication | ||
@Theme(value = "myapp") | ||
public class Application implements AppShellConfigurator { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(Application.class, args); | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
demo/src/main/java/com/example/application/views/empty/EmptyView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.example.application.views.empty; | ||
|
||
import com.vaadin.flow.component.html.H2; | ||
import com.vaadin.flow.component.html.Image; | ||
import com.vaadin.flow.component.html.Paragraph; | ||
import com.vaadin.flow.component.orderedlayout.VerticalLayout; | ||
import com.vaadin.flow.router.PageTitle; | ||
import com.vaadin.flow.router.Route; | ||
import com.vaadin.flow.theme.lumo.LumoUtility.Margin; | ||
|
||
@PageTitle("Empty") | ||
@Route(value = "") | ||
public class EmptyView extends VerticalLayout { | ||
|
||
public EmptyView() { | ||
setSpacing(false); | ||
|
||
Image img = new Image("images/empty-plant.png", "placeholder plant"); | ||
img.setWidth("200px"); | ||
add(img); | ||
|
||
H2 header = new H2("This place intentionally left empty"); | ||
header.addClassNames(Margin.Top.XLARGE, Margin.Bottom.MEDIUM); | ||
add(header); | ||
add(new Paragraph("It’s a place where you can grow your own UI 🤗")); | ||
|
||
setSizeFull(); | ||
setJustifyContentMode(JustifyContentMode.CENTER); | ||
setDefaultHorizontalComponentAlignment(Alignment.CENTER); | ||
getStyle().set("text-align", "center"); | ||
} | ||
|
||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
server.port=${PORT:8080} | ||
logging.level.org.atmosphere = warn | ||
spring.mustache.check-template-location = false | ||
|
||
# Launch the default browser when starting the application in development mode | ||
vaadin.launch-browser=true | ||
# To improve the performance during development. | ||
# For more information https://vaadin.com/docs/flow/spring/tutorial-spring-configuration.html#special-configuration-parameters | ||
vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,com.example.application | ||
spring.jpa.defer-datasource-initialization = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
__ __ _ | ||
| \/ |_ _ / \ _ __ _ __ | ||
| |\/| | | | | / _ \ | '_ \| '_ \ | ||
| | | | |_| | / ___ \| |_) | |_) | | ||
|_| |_|\__, | /_/ \_\ .__/| .__/ | ||
|___/ |_| |_| |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.