fix: load scripts from dist/static
This commit is contained in:
@@ -14,7 +14,7 @@ templ InfiniteAnimeList(animes []jikan.Anime, watchlistStatuses map[int]string,
|
|||||||
if hasNext {
|
if hasNext {
|
||||||
<div class="col-span-full h-px w-full" hx-get={ nextURL } hx-trigger="revealed" hx-swap="outerHTML"></div>
|
<div class="col-span-full h-px w-full" hx-get={ nextURL } hx-trigger="revealed" hx-swap="outerHTML"></div>
|
||||||
}
|
}
|
||||||
<script src="/dist/dedupe.js" data-container={ containerID } defer></script>
|
<script src="/dist/static/dedupe.js" data-container={ containerID } defer></script>
|
||||||
}
|
}
|
||||||
|
|
||||||
templ CatalogItem(anime jikan.Anime, watchlistStatus string) {
|
templ CatalogItem(anime jikan.Anime, watchlistStatus string) {
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ templ SortFilter(opts SortFilterOptions) {
|
|||||||
<input type="hidden" name="status" value={ opts.Status }/>
|
<input type="hidden" name="status" value={ opts.Status }/>
|
||||||
}
|
}
|
||||||
</form>
|
</form>
|
||||||
<script src="/dist/sort_filter.js" defer></script>
|
<script src="/dist/static/sort_filter.js" defer></script>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,5 +90,5 @@ templ StudioAnimeItems(animes []jikan.Anime, watchlistStatuses map[int]string, h
|
|||||||
if hasNext {
|
if hasNext {
|
||||||
@StudioLoadMore(studioID, nextPage)
|
@StudioLoadMore(studioID, nextPage)
|
||||||
}
|
}
|
||||||
<script src="/dist/dedupe.js" data-container="studio-anime-content" defer></script>
|
<script src="/dist/static/dedupe.js" data-container="studio-anime-content" defer></script>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user