-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: make UI dev easier #1478
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6689441
chore: generate index.html
markphelps a07fb6f
chore: add index.html to .gitignore
markphelps 2db68a8
chore: error msgs; dont clean cache
markphelps dc730fb
chore: go workspace
markphelps 9d08521
chore: add instructions after build
markphelps 3f99216
chore: update Develoment.md
markphelps f9d670f
chore: add back ui/index.html for passing dev build
markphelps bf5fb18
chore: re-add index.html to .gitignore
markphelps fc81852
Merge branch 'main' into ui-dev
markphelps File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,6 @@ dist-ssr | |
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
|
||
# Generated | ||
index.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ package ui | |
import "embed" | ||
|
||
var ( | ||
//go:embed dev.html | ||
//go:embed index.html | ||
UI embed.FS | ||
Mount = "." | ||
) |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="h-full w-auto bg-white"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Flipt</title> | ||
</head> | ||
<body class="h-full antialiased"> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Flipt</title> | ||
|
||
<script type="module"> | ||
import RefreshRuntime from 'http://localhost:5173/@react-refresh'; | ||
RefreshRuntime.injectIntoGlobalHook(window); | ||
window.$RefreshReg$ = () => { }; | ||
window.$RefreshSig$ = () => (type) => type; | ||
window.__vite_plugin_react_preamble_installed__ = true; | ||
</script> | ||
<script type="module" src="http://localhost:5173/@vite/client"></script> | ||
|
||
</head> | ||
|
||
<body class="h-full antialiased"> | ||
<div id="root"></div> | ||
|
||
<script type="module" src="http://localhost:5173/src/main.tsx"></script> | ||
|
||
</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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="h-full w-auto bg-white"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Flipt</title> | ||
{{if .IsDev}} | ||
<script type="module"> | ||
import RefreshRuntime from 'http://localhost:5173/@react-refresh'; | ||
RefreshRuntime.injectIntoGlobalHook(window); | ||
window.$RefreshReg$ = () => { }; | ||
window.$RefreshSig$ = () => (type) => type; | ||
window.__vite_plugin_react_preamble_installed__ = true; | ||
</script> | ||
<script type="module" src="http://localhost:5173/@vite/client"></script> | ||
{{end}} | ||
</head> | ||
|
||
<body class="h-full antialiased"> | ||
<div id="root"></div> | ||
{{if .IsDev}} | ||
<script type="module" src="http://localhost:5173/src/main.tsx"></script> | ||
{{else}} | ||
<script type="module" src="/src/main.tsx"></script> | ||
{{end}} | ||
</body> | ||
|
||
</html> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is simply to get unit tests/etc to pass as our build expects this file to be here. it will get overwritten during the
mage
ormage dev
tasks and is added to .gitignore so any changes will not be committed to git