Skip to content

Commit

Permalink
Delete deprecated entity and sample data files
Browse files Browse the repository at this point in the history
Removed `AbstractEntity.java`, `data.sql`, and the `dev.nathanlively.data` package-info file as they were no longer used. This cleanup helps to streamline the codebase and remove clutter.
  • Loading branch information
LiveNathan committed Aug 16, 2024
1 parent 244b209 commit d847618
Show file tree
Hide file tree
Showing 16 changed files with 16,787 additions and 311 deletions.
2 changes: 2 additions & 0 deletions .flow-node-tasks.lock

Large diffs are not rendered by default.

16,584 changes: 16,584 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

114 changes: 114 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"name": "no-name",
"license": "UNLICENSED",
"type": "module",
"dependencies": {
"@fontsource/anton": "4.5.0",
"@polymer/polymer": "3.5.1",
"@vaadin/bundles": "24.4.5",
"@vaadin/common-frontend": "0.0.19",
"@vaadin/polymer-legacy-adapter": "24.4.5",
"@vaadin/react-components": "24.4.5",
"@vaadin/react-components-pro": "24.4.5",
"@vaadin/router": "1.7.5",
"@vaadin/vaadin-development-mode-detector": "2.0.7",
"@vaadin/vaadin-lumo-styles": "24.4.5",
"@vaadin/vaadin-material-styles": "24.4.5",
"@vaadin/vaadin-themable-mixin": "24.4.5",
"@vaadin/vaadin-usage-statistics": "2.1.2",
"construct-style-sheets-polyfill": "3.1.0",
"date-fns": "2.29.3",
"lit": "3.1.4",
"proj4": "2.11.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.23.1"
},
"devDependencies": {
"@babel/preset-react": "7.24.7",
"@rollup/plugin-replace": "5.0.7",
"@rollup/pluginutils": "5.1.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.3.1",
"async": "3.2.5",
"glob": "10.4.1",
"rollup-plugin-brotli": "3.1.0",
"rollup-plugin-visualizer": "5.12.0",
"strip-css-comments": "5.0.0",
"transform-ast": "2.4.4",
"typescript": "5.4.5",
"vite": "5.3.3",
"vite-plugin-checker": "0.6.4",
"workbox-build": "7.1.1",
"workbox-core": "7.1.0",
"workbox-precaching": "7.1.0"
},
"vaadin": {
"dependencies": {
"@fontsource/anton": "4.5.0",
"@polymer/polymer": "3.5.1",
"@vaadin/bundles": "24.4.5",
"@vaadin/common-frontend": "0.0.19",
"@vaadin/polymer-legacy-adapter": "24.4.5",
"@vaadin/react-components": "24.4.5",
"@vaadin/react-components-pro": "24.4.5",
"@vaadin/router": "1.7.5",
"@vaadin/vaadin-development-mode-detector": "2.0.7",
"@vaadin/vaadin-lumo-styles": "24.4.5",
"@vaadin/vaadin-material-styles": "24.4.5",
"@vaadin/vaadin-themable-mixin": "24.4.5",
"@vaadin/vaadin-usage-statistics": "2.1.2",
"construct-style-sheets-polyfill": "3.1.0",
"date-fns": "2.29.3",
"lit": "3.1.4",
"proj4": "2.11.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.23.1"
},
"devDependencies": {
"@babel/preset-react": "7.24.7",
"@rollup/plugin-replace": "5.0.7",
"@rollup/pluginutils": "5.1.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.3.1",
"async": "3.2.5",
"glob": "10.4.1",
"rollup-plugin-brotli": "3.1.0",
"rollup-plugin-visualizer": "5.12.0",
"strip-css-comments": "5.0.0",
"transform-ast": "2.4.4",
"typescript": "5.4.5",
"vite": "5.3.3",
"vite-plugin-checker": "0.6.4",
"workbox-build": "7.1.1",
"workbox-core": "7.1.0",
"workbox-precaching": "7.1.0"
},
"hash": "d99bc693155381096ae73eb7ca6447f37c9a082ee16fce07ccc1911cbbef19aa"
},
"overrides": {
"@vaadin/bundles": "$@vaadin/bundles",
"@vaadin/polymer-legacy-adapter": "$@vaadin/polymer-legacy-adapter",
"@vaadin/vaadin-development-mode-detector": "$@vaadin/vaadin-development-mode-detector",
"@vaadin/router": "$@vaadin/router",
"@vaadin/vaadin-usage-statistics": "$@vaadin/vaadin-usage-statistics",
"@vaadin/react-components": "$@vaadin/react-components",
"@vaadin/react-components-pro": "$@vaadin/react-components-pro",
"@vaadin/common-frontend": "$@vaadin/common-frontend",
"react-dom": "$react-dom",
"construct-style-sheets-polyfill": "$construct-style-sheets-polyfill",
"react-router-dom": "$react-router-dom",
"lit": "$lit",
"@polymer/polymer": "$@polymer/polymer",
"react": "$react",
"date-fns": "$date-fns",
"proj4": "$proj4",
"@vaadin/vaadin-themable-mixin": "$@vaadin/vaadin-themable-mixin",
"@vaadin/vaadin-lumo-styles": "$@vaadin/vaadin-lumo-styles",
"@fontsource/anton": "$@fontsource/anton",
"@vaadin/vaadin-material-styles": "$@vaadin/vaadin-material-styles"
}
}
11 changes: 0 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@
<version>2.0.0</version>
</dependency>

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
Expand Down
23 changes: 23 additions & 0 deletions src/main/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<!--
This file is auto-generated by Vaadin.
-->

<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body, #outlet {
height: 100vh;
width: 100%;
margin: 0;
}
</style>
<!-- index.ts is included here automatically (either by the dev server or during the build) -->
</head>
<body>
<!-- This outlet div is where the views are rendered -->
<div id="outlet"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion src/main/java/dev/nathanlively/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.vaadin.flow.component.page.AppShellConfigurator;
import com.vaadin.flow.theme.Theme;
import com.vaadin.flow.theme.lumo.Lumo;
import dev.nathanlively.data.SamplePersonRepository;

import javax.sql.DataSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
52 changes: 0 additions & 52 deletions src/main/java/dev/nathanlively/data/AbstractEntity.java

This file was deleted.

69 changes: 0 additions & 69 deletions src/main/java/dev/nathanlively/data/SamplePerson.java

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/dev/nathanlively/data/SamplePersonRepository.java

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/java/dev/nathanlively/data/package-info.java

This file was deleted.

44 changes: 0 additions & 44 deletions src/main/java/dev/nathanlively/services/SamplePersonService.java

This file was deleted.

16 changes: 6 additions & 10 deletions src/main/java/dev/nathanlively/views/clock/ClockView.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.router.RouteAlias;
import com.vaadin.flow.spring.data.VaadinSpringDataHelpers;
import com.vaadin.flow.theme.lumo.LumoUtility.Gap;
import dev.nathanlively.data.SamplePerson;
import dev.nathanlively.services.SamplePersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;

@PageTitle("clock")
@Route(value = "")
Expand All @@ -33,7 +29,7 @@ public ClockView() {
Button buttonPrimary = new Button();
Button buttonSecondary = new Button();
VerticalLayout layoutColumn3 = new VerticalLayout();
Grid basicGrid = new Grid(SamplePerson.class);
Grid basicGrid = new Grid(); // SamplePerson.class
getContent().setWidth("100%");
getContent().getStyle().set("flex-grow", "1");
layoutRow.addClassName(Gap.MEDIUM);
Expand Down Expand Up @@ -64,11 +60,11 @@ public ClockView() {
}

private void setGridSampleData(Grid grid) {
grid.setItems(query -> samplePersonService.list(
PageRequest.of(query.getPage(), query.getPageSize(), VaadinSpringDataHelpers.toSpringDataSort(query)))
.stream());
// grid.setItems(query -> samplePersonService.list(
// PageRequest.of(query.getPage(), query.getPageSize(), VaadinSpringDataHelpers.toSpringDataSort(query)))
// .stream());
}

@Autowired()
private SamplePersonService samplePersonService;
// @Autowired()
// private SamplePersonService samplePersonService;
}
Loading

0 comments on commit d847618

Please sign in to comment.