This commit is contained in:
37
internal/views/web.html
Normal file
37
internal/views/web.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Calculate Negative Points</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
You need to enable JavaScript to run this app.
|
||||
</noscript>
|
||||
|
||||
<div id="root"></div>
|
||||
|
||||
{{ if .isDev }}
|
||||
<script type="module">
|
||||
import RefreshRuntime from "{{.baseAddress}}/@react-refresh"
|
||||
RefreshRuntime.injectIntoGlobalHook(window)
|
||||
window.$RefreshReg$ = () => {}
|
||||
window.$RefreshSig$ = () => (type) => type
|
||||
window.__vite_plugin_react_preamble_installed__ = true
|
||||
</script>
|
||||
|
||||
<script type="module" src="{{.baseAddress}}/@vite/client"></script>
|
||||
<script type="module" src="{{.jsFileAddress}}"></script>
|
||||
{{ else }}
|
||||
<script type="module" src="/{{.jsFileAddress}}"></script>
|
||||
{{ range .css }}
|
||||
<link rel="stylesheet" href="/{{.}}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user