- dev auth flow (side-step OAuth) - db event processing integration tests - dev scripts (eg Makefile) - db / test db migration setup scripts.
37 lines
677 B
Cheetah
37 lines
677 B
Cheetah
{{- $acctID := .Identity.Account.AccountID }}
|
|
|
|
<section
|
|
class="m-[1rem]"
|
|
hx-get="/ui/accounts/{{$acctID}}/mock-mode-section"
|
|
hx-trigger="sse:accounts_{{$acctID}}_mock-mode"
|
|
hx-swap="morph"
|
|
>
|
|
{{- $mockMode := .MockMode }}
|
|
|
|
<form id="mock-mode-form">
|
|
<label
|
|
class="
|
|
flex
|
|
items-center
|
|
gap-[0.5em]
|
|
font-display
|
|
text-[1.5em]
|
|
cursor-pointer
|
|
w-fit
|
|
"
|
|
>
|
|
Playground Mode
|
|
<input
|
|
type="checkbox"
|
|
{{- if $mockMode }}
|
|
checked
|
|
{{- end }}
|
|
class="h-[1em] w-[1em] cursor-pointer"
|
|
hx-put="/api/accounts/{{$acctID}}/mock-mode"
|
|
hx-vals='{"on": {{not $mockMode}}}'
|
|
hx-swap="none"
|
|
/>
|
|
</label>
|
|
</form>
|
|
</section>
|