-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Use RoutesBuilder API * feat: Use RoutesBuilder API * Add view configs * update with the latest changes in Hilla * use at not $ * Upgrade to alpha 21 * Update package files * update branch settings * Apply suggestions from code review Co-authored-by: Tomi Virtanen <[email protected]> * hide hilla or flow views if they aren't in the role * fix compile error * Handle generated files --------- Co-authored-by: Tomi Virtanen <[email protected]> Co-authored-by: Luciano Vernaschi <[email protected]>
- Loading branch information
1 parent
d5a47e9
commit 5ac9643
Showing
12 changed files
with
3,246 additions
and
3,034 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<!-- | ||
This file is auto-generated by Vaadin. | ||
--> | ||
|
||
<html> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<title>###Project Name###</title> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<style> | ||
body { | ||
body, #outlet { | ||
height: 100vh; | ||
width: 100%; | ||
margin: 0; | ||
} | ||
|
||
#outlet { | ||
height: 100%; | ||
} | ||
</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> |
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
/****************************************************************************** | ||
* Copied from generated file to wrap in AuthProvider | ||
******************************************************************************/ | ||
|
||
import { createElement } from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { RouterProvider } from 'react-router-dom'; | ||
import { AuthProvider} from "./auth"; | ||
import router from 'Frontend/routes.js'; | ||
import { router } from 'Frontend/generated/routes.js'; | ||
import { AuthProvider } from './auth'; | ||
|
||
function App() { | ||
return ( | ||
<AuthProvider> | ||
<RouterProvider router={router} /> | ||
</AuthProvider> | ||
); | ||
return <AuthProvider> | ||
<RouterProvider router={router} /> | ||
</AuthProvider>; | ||
} | ||
|
||
createRoot(document.getElementById('outlet')!).render(createElement(App)); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Oops, something went wrong.