Skip to content

Commit

Permalink
Merge branch 'main' into feat/1827/default-number-nan
Browse files Browse the repository at this point in the history
  • Loading branch information
cromoteca authored Jan 29, 2024
2 parents 145fe1a + 6def9a8 commit c9b8d8b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected void prepareEngineConfiguration()
try {
// Create a runner for Maven
MavenRunner
.forProject(projectDirectory, "-q", "hilla:configure")
.forProject(projectDirectory, "-q", "vaadin:configure")
// Create a runner for Gradle. Even if Gradle is not
// supported yet, this is useful to emit an error
// message if pom.xml is not found and build.gradle is
Expand Down
3 changes: 3 additions & 0 deletions packages/java/maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.8.2</version>
<configuration>
<goalPrefix>vaadin</goalPrefix>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export type ViewRouteMatch = Readonly<Override<RouteMatch, ViewMeta>>;

export const useViewMatches = useMatches as () => readonly ViewRouteMatch[];

export const routes: readonly ViewRouteObject[] = [
export const routes: ViewRouteObject[] = [
{
element: <MainLayout />,
handle: { icon: 'null', title: 'Main' },
children: [
{ path: '/', element: <HelloReactView />, handle: { icon: 'globe-solid', title: 'Hello React' } },
{ path: '/about', element: <AboutView />, handle: { icon: 'file', title: 'About' } },
{ path: '/about', element: <AboutView />, handle: { icon: 'file', title: 'About' } }
],
},
];
Expand Down
4 changes: 2 additions & 2 deletions packages/java/tests/gradle/single-module/frontend/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export type ViewRouteMatch = Readonly<Override<RouteMatch, ViewMeta>>;

export const useViewMatches = useMatches as () => readonly ViewRouteMatch[];

export const routes: readonly ViewRouteObject[] = [
export const routes: ViewRouteObject[] = [
{
element: <MainLayout />,
handle: { icon: 'null', title: 'Main' },
children: [
{ path: '/', element: <HelloReactView />, handle: { icon: 'globe-solid', title: 'Hello React' } },
{ path: '/about', element: <AboutView />, handle: { icon: 'file', title: 'About' } },
{ path: '/about', element: <AboutView />, handle: { icon: 'file', title: 'About' } }
],
},
];
Expand Down
6 changes: 6 additions & 0 deletions packages/java/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@
<groupId>com.vaadin.hilla</groupId>
<artifactId>hilla-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<reactRouterEnabled>false</reactRouterEnabled>
</configuration>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -255,6 +258,9 @@
<groupId>com.vaadin.hilla</groupId>
<artifactId>hilla-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<reactRouterEnabled>false</reactRouterEnabled>
</configuration>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const routes = [
{
path: '/auto-crud',
element: <AutoCrudView />,
},
}
],
},
];
Expand Down
3 changes: 3 additions & 0 deletions packages/java/tests/spring/react-grid-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<plugin>
<groupId>com.vaadin.hilla</groupId>
<artifactId>hilla-maven-plugin</artifactId>
<configuration>
<reactRouterEnabled>true</reactRouterEnabled>
</configuration>
</plugin>

<plugin>
Expand Down

0 comments on commit c9b8d8b

Please sign in to comment.