diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-08-24 11:12:46 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-08-24 11:12:46 -0400 |
| commit | 2d92955cd59f1d5a70b75e66d7133872d395f561 (patch) | |
| tree | a736045b5469ac52be31a8d13a4ba4caa4fcf019 /cmd | |
| parent | 155fdc36a3df67cfc49b4700c009d18a71d31b24 (diff) | |
| download | x-2d92955cd59f1d5a70b75e66d7133872d395f561.tar.xz x-2d92955cd59f1d5a70b75e66d7133872d395f561.zip | |
cmd/hdrwtch: don't double-print the breadcrumbs
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/hdrwtch/docs_templ.go | 4 | ||||
| -rw-r--r-- | cmd/hdrwtch/probes.templ | 46 | ||||
| -rw-r--r-- | cmd/hdrwtch/probes_templ.go | 6 | ||||
| -rw-r--r-- | cmd/hdrwtch/web_templ.go | 4 |
4 files changed, 33 insertions, 27 deletions
diff --git a/cmd/hdrwtch/docs_templ.go b/cmd/hdrwtch/docs_templ.go index 8c94fd2..2134d2a 100644 --- a/cmd/hdrwtch/docs_templ.go +++ b/cmd/hdrwtch/docs_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.771 package main //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -90,3 +90,5 @@ func docRender(d Doc) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/cmd/hdrwtch/probes.templ b/cmd/hdrwtch/probes.templ index 2f42364..22d27d8 100644 --- a/cmd/hdrwtch/probes.templ +++ b/cmd/hdrwtch/probes.templ @@ -6,30 +6,30 @@ import ( ) templ probeListPage(probes []Probe) { - <div class="flex p-4 mt-4" aria-label="Breadcrumb"> - <ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse"> - <li class="inline-flex items-center"> - <a href="/" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600"> - <svg class="w-3 h-3 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"> - <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"></path> - </svg> - Home - </a> - </li> - <li aria-current="page"> - <div class="flex items-center"> - <svg class="rtl:rotate-180 w-3 h-3 text-gray-400 mx-1" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10"> - <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"></path> - </svg> - <span class="ms-1 text-sm font-medium text-gray-500 md:ms-2">Probes</span> - </div> - </li> - </ol> - </div> - <h1 class="my-2 pt-4 mt-0 text-3xl font-medium leading-tight text-primary"> - Probes - </h1> <div id="parent"> + <div class="flex p-4 mt-4" aria-label="Breadcrumb"> + <ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse"> + <li class="inline-flex items-center"> + <a href="/" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600"> + <svg class="w-3 h-3 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"> + <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"></path> + </svg> + Home + </a> + </li> + <li aria-current="page"> + <div class="flex items-center"> + <svg class="rtl:rotate-180 w-3 h-3 text-gray-400 mx-1" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10"> + <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"></path> + </svg> + <span class="ms-1 text-sm font-medium text-gray-500 md:ms-2">Probes</span> + </div> + </li> + </ol> + </div> + <h1 class="my-2 pt-4 mt-0 text-3xl font-medium leading-tight text-primary"> + Probes + </h1> <div class="mt-8 flow-root"> <div class="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"> <div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"> diff --git a/cmd/hdrwtch/probes_templ.go b/cmd/hdrwtch/probes_templ.go index f8ecd63..2d9619e 100644 --- a/cmd/hdrwtch/probes_templ.go +++ b/cmd/hdrwtch/probes_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.771 package main //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -31,7 +31,7 @@ func probeListPage(probes []Probe) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"flex p-4 mt-4\" aria-label=\"Breadcrumb\"><ol class=\"inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse\"><li class=\"inline-flex items-center\"><a href=\"/\" class=\"inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600\"><svg class=\"w-3 h-3 me-2.5\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" viewBox=\"0 0 20 20\"><path d=\"m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z\"></path></svg> Home</a></li><li aria-current=\"page\"><div class=\"flex items-center\"><svg class=\"rtl:rotate-180 w-3 h-3 text-gray-400 mx-1\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 6 10\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m1 9 4-4-4-4\"></path></svg> <span class=\"ms-1 text-sm font-medium text-gray-500 md:ms-2\">Probes</span></div></li></ol></div><h1 class=\"my-2 pt-4 mt-0 text-3xl font-medium leading-tight text-primary\">Probes</h1><div id=\"parent\"><div class=\"mt-8 flow-root\"><div class=\"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8\"><div class=\"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8\"><table class=\"min-w-full divide-y divide-gray-300 table-auto\"><thead><tr><th scope=\"col\" class=\"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0\">Name</th><th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900\">URL</th><th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900\">Last Result</th><th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900\"></th></tr></thead> <tbody class=\"divide-y divide-gray-200\" hx-target=\"closest tr\" hx-swap=\"outerHTML\">") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div id=\"parent\"><div class=\"flex p-4 mt-4\" aria-label=\"Breadcrumb\"><ol class=\"inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse\"><li class=\"inline-flex items-center\"><a href=\"/\" class=\"inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600\"><svg class=\"w-3 h-3 me-2.5\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" viewBox=\"0 0 20 20\"><path d=\"m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z\"></path></svg> Home</a></li><li aria-current=\"page\"><div class=\"flex items-center\"><svg class=\"rtl:rotate-180 w-3 h-3 text-gray-400 mx-1\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 6 10\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m1 9 4-4-4-4\"></path></svg> <span class=\"ms-1 text-sm font-medium text-gray-500 md:ms-2\">Probes</span></div></li></ol></div><h1 class=\"my-2 pt-4 mt-0 text-3xl font-medium leading-tight text-primary\">Probes</h1><div class=\"mt-8 flow-root\"><div class=\"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8\"><div class=\"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8\"><table class=\"min-w-full divide-y divide-gray-300 table-auto\"><thead><tr><th scope=\"col\" class=\"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0\">Name</th><th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900\">URL</th><th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900\">Last Result</th><th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900\"></th></tr></thead> <tbody class=\"divide-y divide-gray-200\" hx-target=\"closest tr\" hx-swap=\"outerHTML\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -678,3 +678,5 @@ func probeRunPage(probe Probe, result ProbeResult) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/cmd/hdrwtch/web_templ.go b/cmd/hdrwtch/web_templ.go index bbc419e..eec868f 100644 --- a/cmd/hdrwtch/web_templ.go +++ b/cmd/hdrwtch/web_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.771 package main //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -531,3 +531,5 @@ func userPage(tu *TelegramUser, probeCount int64) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate |
