remove --no-ignore-vcs from just dev (it was causing an infinite loop on mac)

This commit is contained in:
fiatjaf
2024-06-17 17:11:58 -03:00
parent 60a1514580
commit 2047f71dc3
2 changed files with 2 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
export PATH := "./node_modules/.bin:" + env_var('PATH')
dev:
fd --no-ignore-vcs 'go|templ|base.css' | entr -r bash -c 'TAILWIND_DEBUG=true SKIP_LANGUAGE_MODEL=true && templ generate && go build -tags=nsfw -o /tmp/njump && /tmp/njump'
fd 'go|templ|base.css' | entr -r bash -c 'TAILWIND_DEBUG=true SKIP_LANGUAGE_MODEL=true && templ generate && go build -tags=nsfw -o /tmp/njump && /tmp/njump'
build: templ tailwind
go build -o ./njump

View File

@@ -2,16 +2,12 @@ package main
templ topTemplate(params HeadParams) {
<header class="items-center p-4 pb-6 print:block flex flex-row text-base">
<div class="hidden sm:block sm:w-[14%]">
</div>
<div class="hidden sm:block sm:w-[14%]"></div>
<div class="w-[90%] sm:w-[72%] sm:text-right">
<div class="hidden">
<a href="/npubs-archive/">Nostr npubs archive</a>
<a href="/relays-archive/">Nostr relays archive</a>
</div>
if !(params.IsHome) {
<a href="/" class="mr-4">Why <span class="text-strongpink">Nostr</span>?</a>
}
@@ -24,7 +20,6 @@ templ topTemplate(params HeadParams) {
<a href="/about" class="mr-4">What is <span class="text-strongpink">Njump</span>?</a>
}
</div>
<div class="w-[10%] sm:w-[14%]">
<div
class="print:hidden; relative float-right h-4 w-4 cursor-pointer rounded-full text-gray-100 dark:text-gray-700 sm:fixed sm:right-4 sm:top-4 sm:float-none"
@@ -60,10 +55,8 @@ templ topTemplate(params HeadParams) {
</div>
</div>
</header>
<script type="text/hyperscript">
on beforeprint from window tell <html /> remove .theme--dark add .theme--default
on afterprint from window tell <html /> add .theme--dark remove .theme--default
</script>
}