fix: break import cycle by moving Layout to shared package and fix import paths

This commit is contained in:
2026-04-20 16:59:55 +02:00
parent b57d689468
commit 8088ab7105
13 changed files with 60 additions and 48 deletions

View File

@@ -2,13 +2,14 @@ package templates
import (
"fmt"
"mal/internal/jikan"
"mal/internal/shared/ui"
"mal/integrations/jikan"
"mal/web/components"
"mal/web/shared/layout"
"net/url"
)
templ Search(q string) {
@Layout("mal - search", true) {
@layout.Layout("mal - search", true) {
if q != "" {
<div id="loading" class="hidden htmx-request:inline-flex">
@ui.LoadingIndicator("Searching...")