tangled
alpha
login
or
join now
arabica.social
/
arabica
7
fork
atom
Coffee journaling on ATProto (alpha)
alpha.arabica.social
coffee
7
fork
atom
overview
issues
pulls
pipelines
fix: fix new/edit brew submission
pdewey.com
1 month ago
7cacd7ae
bc6b00ab
verified
This commit was signed with the committer's
known signature
.
pdewey.com
SSH Key Fingerprint:
SHA256:ePOVkJstqVLchGK8m9/OGQG+aFNHD5XN3xjvW9wKCA4=
+16
-15
6 changed files
expand all
collapse all
unified
split
templates
brew_form.tmpl
home.tmpl
layout.tmpl
manage.tmpl
profile.tmpl
web
static
js
back-button.js
+2
-3
templates/brew_form.tmpl
reviewed
···
1
1
{{define "content"}}
2
2
-
<script src="/static/js/brew-form.js"></script>
2
2
+
<script src="/static/js/brew-form.js?v=0.2.0"></script>
3
3
4
4
<div class="max-w-2xl mx-auto" x-data="brewForm()">
5
5
<div class="bg-gradient-to-br from-brown-100 to-brown-200 rounded-xl shadow-xl p-8 border border-brown-300">
···
29
29
{{if and .Brew .Brew.Pours}}
30
30
data-pours='{{.Brew.PoursJSON}}'
31
31
{{end}}
32
32
-
x-init="init()"
33
33
-
@submit="$el.submit()">
32
32
+
x-init="init()">
34
33
35
34
<!-- Bean Selection -->
36
35
<div>
+1
-1
templates/home.tmpl
reviewed
···
49
49
</button>
50
50
</form>
51
51
52
52
-
<script src="/static/js/handle-autocomplete.js"></script>
52
52
+
<script src="/static/js/handle-autocomplete.js?v=0.2.0"></script>
53
53
</div>
54
54
{{end}}
55
55
</div>
+5
-5
templates/layout.tmpl
reviewed
···
16
16
<link rel="stylesheet" href="/static/css/output.css?v=0.2.0" />
17
17
<style>[x-cloak] { display: none !important; }</style>
18
18
<link rel="manifest" href="/static/manifest.json" />
19
19
-
<script src="/static/js/alpine.min.js" defer></script>
20
20
-
<script src="/static/js/htmx.min.js"></script>
19
19
+
<script src="/static/js/alpine.min.js?v=0.2.0" defer></script>
20
20
+
<script src="/static/js/htmx.min.js?v=0.2.0"></script>
21
21
{{if .IsAuthenticated}}
22
22
-
<script src="/static/js/data-cache.js"></script>
22
22
+
<script src="/static/js/data-cache.js?v=0.2.0"></script>
23
23
{{end}}
24
24
-
<script src="/static/js/back-button.js"></script>
25
25
-
<script src="/static/js/sw-register.js"></script>
24
24
+
<script src="/static/js/back-button.js?v=0.2.0"></script>
25
25
+
<script src="/static/js/sw-register.js?v=0.2.0"></script>
26
26
</head>
27
27
<body class="bg-brown-50 min-h-full flex flex-col"{{if .UserDID}} data-user-did="{{.UserDID}}"{{end}}>
28
28
{{template "header" .}}
+1
-1
templates/manage.tmpl
reviewed
···
1
1
{{define "content"}}
2
2
-
<script src="/static/js/manage-page.js"></script>
2
2
+
<script src="/static/js/manage-page.js?v=0.2.0"></script>
3
3
4
4
<div class="max-w-6xl mx-auto" x-data="managePage()">
5
5
<div class="flex items-center gap-3 mb-6">
+2
-2
templates/profile.tmpl
reviewed
···
1
1
{{define "content"}}
2
2
{{if .IsOwnProfile}}
3
3
<!-- Load manage page JavaScript before Alpine.js processes the page -->
4
4
-
<script src="/static/js/manage-page.js"></script>
4
4
+
<script src="/static/js/manage-page.js?v=0.2.0"></script>
5
5
{{end}}
6
6
<!-- Load profile stats updater -->
7
7
-
<script src="/static/js/profile-stats.js"></script>
7
7
+
<script src="/static/js/profile-stats.js?v=0.2.0"></script>
8
8
{{if .IsOwnProfile}}
9
9
<div class="max-w-4xl mx-auto" x-data="managePage()">
10
10
{{else}}
+5
-3
web/static/js/back-button.js
reviewed
···
58
58
}
59
59
60
60
// Re-initialize after HTMX swaps (for dynamic content)
61
61
-
document.body.addEventListener('htmx:afterSwap', function() {
62
62
-
initAllBackButtons();
63
63
-
});
61
61
+
if (document.body) {
62
62
+
document.body.addEventListener('htmx:afterSwap', function() {
63
63
+
initAllBackButtons();
64
64
+
});
65
65
+
}