-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* trying to get the JSs to work * finally got the highlight working and the copy
- Loading branch information
Showing
7 changed files
with
103 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const cacheName = "app-" + "e31aa1c4d4bf560a2b0d649865fab57a2bf48d9c"; | ||
const resourcesToCache = ["/","/app.css","/app.js","/manifest.webmanifest","/wasm_exec.js","/web/app.wasm","/web/css/alert.css","/web/img/logo.png","https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js","https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/yaml.min.js","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"]; | ||
const cacheName = "app-" + "15bb89e03821d00f824b9b5cbea7b5b036e6fe2a"; | ||
const resourcesToCache = ["/","/app.css","/app.js","/manifest.webmanifest","/wasm_exec.js","/web/app.wasm","/web/css/alert.css","/web/img/logo.png","https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js","https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css","https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css"]; | ||
|
||
self.addEventListener("install", (event) => { | ||
console.log("installing app worker e31aa1c4d4bf560a2b0d649865fab57a2bf48d9c"); | ||
console.log("installing app worker 15bb89e03821d00f824b9b5cbea7b5b036e6fe2a"); | ||
|
||
event.waitUntil( | ||
caches | ||
|
@@ -28,7 +28,7 @@ self.addEventListener("activate", (event) => { | |
); | ||
}) | ||
); | ||
console.log("app worker e31aa1c4d4bf560a2b0d649865fab57a2bf48d9c is activated"); | ||
console.log("app worker 15bb89e03821d00f824b9b5cbea7b5b036e6fe2a is activated"); | ||
}); | ||
|
||
self.addEventListener("fetch", (event) => { | ||
|
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 |
---|---|---|
|
@@ -3,69 +3,67 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="author" content="Gergely Brautigam"> | ||
<meta content name="description"> | ||
<meta name="description" content> | ||
<meta name="keywords" content> | ||
<meta name="theme-color" content="#2d2c2c"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover"> | ||
<meta property="og:url" content="http://127.0.0.1:49600/"> | ||
<meta property="og:url" content="http://127.0.0.1:55692/"> | ||
<meta property="og:title" content="Preview CRDs"> | ||
<meta property="og:description" content> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:image" content> | ||
<meta content property="og:image"> | ||
<title>Preview CRDs</title> | ||
<link href="/app.css" as="style" type="text/css" rel="preload"> | ||
<link type="text/css" rel="preload" href="/web/css/alert.css" as="style"> | ||
<link type="text/css" rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" as="style"> | ||
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css" as="style" type="text/css"> | ||
<link type="text/css" rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" as="style"> | ||
<link href="https://raw.githubusercontent.com/maxence-charriere/go-app/master/docs/web/icon.svg" rel="icon"> | ||
<link as="style" type="text/css" rel="preload" href="/app.css"> | ||
<link as="style" type="text/css" rel="preload" href="/web/css/alert.css"> | ||
<link type="text/css" rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css" as="style"> | ||
<link type="text/css" rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css" as="style"> | ||
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" as="style" type="text/css"> | ||
<link rel="icon" href="https://raw.githubusercontent.com/maxence-charriere/go-app/master/docs/web/icon.svg"> | ||
<link rel="apple-touch-icon" href="/web/img/logo.png"> | ||
<link rel="manifest" href="/manifest.webmanifest"> | ||
<link rel="stylesheet" type="text/css" href="/app.css"> | ||
<link rel="stylesheet" type="text/css" href="/web/css/alert.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"> | ||
<link href="/web/css/alert.css" rel="stylesheet" type="text/css"> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css"> | ||
<link type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<script defer src="/wasm_exec.js"></script> | ||
<script defer src="/app.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/yaml.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
<script>hljs.highlightAll();</script> | ||
<meta charset="utf-8"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js"></script> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
header{ | ||
margin: 0px; | ||
padding: 20px 20px 0px ; | ||
border-bottom: 1px solid black; | ||
} | ||
nav{ | ||
display: flex; | ||
} | ||
.title{ | ||
position: relative; | ||
top: -5px; | ||
margin-right: auto; | ||
font-size: 25px; | ||
} | ||
.title:hover{ | ||
color: rgb(0, 0, 164); | ||
cursor: pointer; | ||
} | ||
li{ | ||
width: 50px; | ||
margin-left: 20px; | ||
display: inline-block; | ||
list-style: none; | ||
} | ||
</style> | ||
header{ | ||
margin: 0px; | ||
padding: 20px 20px 0px ; | ||
border-bottom: 1px solid black; | ||
} | ||
nav{ | ||
display: flex; | ||
} | ||
.title{ | ||
position: relative; | ||
top: -5px; | ||
margin-right: auto; | ||
font-size: 25px; | ||
} | ||
.title:hover{ | ||
color: rgb(0, 0, 164); | ||
cursor: pointer; | ||
} | ||
li{ | ||
width: 50px; | ||
margin-left: 20px; | ||
display: inline-block; | ||
list-style: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<main></main> | ||
<aside id="app-wasm-loader" class="goapp-app-info"> | ||
<img class="goapp-logo goapp-spin" src="/web/img/logo.png" id="app-wasm-loader-icon"> | ||
<p id="app-wasm-loader-label" class="goapp-label">0%</p> | ||
<img id="app-wasm-loader-icon" class="goapp-logo goapp-spin" src="/web/img/logo.png"> | ||
<p class="goapp-label" id="app-wasm-loader-label">0%</p> | ||
</aside> | ||
</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 |
---|---|---|
|
@@ -49,46 +49,44 @@ func main() { | |
HTML: func() app.HTMLHtml { return app.Html().DataSet("bs-core", "modern").DataSet("bs-theme", "dark") }, | ||
Styles: []string{ | ||
"web/css/alert.css", | ||
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css", | ||
"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css", | ||
"https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css", | ||
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css", | ||
}, | ||
RawHeaders: []string{ | ||
` | ||
<script>hljs.highlightAll();</script> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
header{ | ||
margin: 0px; | ||
padding: 20px 20px 0px ; | ||
border-bottom: 1px solid black; | ||
} | ||
nav{ | ||
display: flex; | ||
} | ||
.title{ | ||
position: relative; | ||
top: -5px; | ||
margin-right: auto; | ||
font-size: 25px; | ||
} | ||
.title:hover{ | ||
color: rgb(0, 0, 164); | ||
cursor: pointer; | ||
} | ||
li{ | ||
width: 50px; | ||
margin-left: 20px; | ||
display: inline-block; | ||
list-style: none; | ||
} | ||
</style>`, | ||
header{ | ||
margin: 0px; | ||
padding: 20px 20px 0px ; | ||
border-bottom: 1px solid black; | ||
} | ||
nav{ | ||
display: flex; | ||
} | ||
.title{ | ||
position: relative; | ||
top: -5px; | ||
margin-right: auto; | ||
font-size: 25px; | ||
} | ||
.title:hover{ | ||
color: rgb(0, 0, 164); | ||
cursor: pointer; | ||
} | ||
li{ | ||
width: 50px; | ||
margin-left: 20px; | ||
display: inline-block; | ||
list-style: none; | ||
} | ||
</style>`, | ||
}, | ||
Scripts: []string{ | ||
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js", | ||
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/yaml.min.js", | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js", | ||
"https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js", | ||
}, | ||
Icon: app.Icon{ | ||
Default: "/web/img/logo.png", | ||
|
Binary file not shown.
Oops, something went wrong.