-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: generate index.html * chore: add index.html to .gitignore * chore: error msgs; dont clean cache * chore: go workspace * chore: add instructions after build * chore: update Develoment.md * chore: add back ui/index.html for passing dev build * chore: re-add index.html to .gitignore
- Loading branch information
1 parent
be09e4e
commit f81670c
Showing
8 changed files
with
149 additions
and
158 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
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> |