mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-02 16:26:56 +00:00
fix not able to star repos
This commit is contained in:
Generated
+9
@@ -9,6 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"actor-typeahead": "^0.1.2",
|
||||
"htmx-ext-json-enc": "^2.0.3",
|
||||
"htmx.org": "^2.0.8",
|
||||
"lucide": "^0.562.0"
|
||||
},
|
||||
@@ -1212,6 +1213,14 @@
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/htmx-ext-json-enc": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/htmx-ext-json-enc/-/htmx-ext-json-enc-2.0.3.tgz",
|
||||
"integrity": "sha512-8Oc6MNOvhSXR78dY7CoiYU3ZgaCPNfE9UHXbHg4g6pd+8fqbZIVFxg9XVijxtGYoF/irf3eTOnEgIPV0KVX7Iw==",
|
||||
"dependencies": {
|
||||
"htmx.org": "^2.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/htmx.org": {
|
||||
"version": "2.0.8",
|
||||
"resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-2.0.8.tgz",
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"actor-typeahead": "^0.1.2",
|
||||
"htmx-ext-json-enc": "^2.0.3",
|
||||
"htmx.org": "^2.0.8",
|
||||
"lucide": "^0.562.0"
|
||||
}
|
||||
|
||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
@@ -1,5 +1,6 @@
|
||||
// HTMX
|
||||
import htmx from 'htmx.org';
|
||||
import 'htmx-ext-json-enc';
|
||||
window.htmx = htmx;
|
||||
|
||||
// Actor Typeahead (web component, auto-registers on import)
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
{{ if .Interactive }}
|
||||
<button class="btn btn-sm gap-2 btn-ghost group border border-transparent hover:border-primary{{ if .IsStarred }} border-amber-400!{{ end }}"
|
||||
id="star-btn"
|
||||
hx-ext="json-enc"
|
||||
{{ if .IsStarred }}
|
||||
hx-delete="/api/stars"
|
||||
{{ else }}
|
||||
|
||||
@@ -48,6 +48,18 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{{ if not .User }}
|
||||
<!-- Preload LCP hero image -->
|
||||
<link rel="preload" as="image"
|
||||
href="/amathea_manatee-768w.webp"
|
||||
imagesrcset="/amathea_manatee-384w.webp 384w,
|
||||
/amathea_manatee-576w.webp 576w,
|
||||
/amathea_manatee-768w.webp 768w,
|
||||
/amathea_manatee-1152w.webp 1152w"
|
||||
imagesizes="(max-width: 767px) 384px, (max-width: 1023px) 448px, 576px"
|
||||
fetchpriority="high"
|
||||
type="image/webp">
|
||||
{{ end }}
|
||||
{{ template "head" . }}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -170,6 +170,7 @@
|
||||
</time>
|
||||
{{ if $.IsOwner }}
|
||||
<button class="btn btn-ghost btn-sm text-error"
|
||||
hx-ext="json-enc"
|
||||
hx-delete="/api/tags"
|
||||
hx-vals='{"repo": "{{ $.Repository.Name }}", "tag": "{{ .Tag.Tag }}"}'
|
||||
hx-confirm="Delete tag {{ .Tag.Tag }}?"
|
||||
|
||||
Reference in New Issue
Block a user