feat: Implement service worker for IPFS vault

This commit is contained in:
Prad Nukala
2024-10-07 20:13:38 -04:00
parent fa7b11198e
commit c608a067ed
34 changed files with 740 additions and 758 deletions
+29
View File
@@ -0,0 +1,29 @@
package cdn
const (
CDNPath = "https://cdn.sonr.id"
)
var (
stylesHandle = templ.NewOnceHandle()
alpineHandle = templ.NewOnceHandle()
htmxHandle = templ.NewOnceHandle()
)
templ Styles() {
@stylesHandle.Once() {
<link href={ "/assets/css/styles.css" } rel="stylesheet"/>
}
}
templ Alpine() {
@alpineHandle.Once() {
<script src={ "/js/alpine.min.js" } defer></script>
}
}
templ Htmx() {
@htmxHandle.Once() {
<script src={ "/js/htmx.min.js" }></script>
}
}