fix: dont import node:path in clientside components

This commit is contained in:
Max Richter
2025-10-31 15:41:46 +01:00
parent 7e60327940
commit 79d692c2c6
21 changed files with 68 additions and 67 deletions

View File

@@ -7,7 +7,7 @@ import { KMenu } from "@islands/KMenu.tsx";
import { RedirectSearchHandler } from "@islands/Search.tsx";
import { GenericResource } from "@lib/types.ts";
import { PageProps } from "$fresh/server.ts";
import { fetchResource } from "@lib/resources.ts";
import { fetchResource } from "@lib/marka.ts";
import { parseResourceUrl, searchResource } from "@lib/search.ts";
export default async function Greet(
@@ -20,7 +20,10 @@ export default async function Greet(
const searchResults = searchParams &&
await searchResource({ ...searchParams, types: ["movie"] });
const movies = allMovies.sort((a, b) =>
a?.content?.reviewRating?.ratingValue > b?.content?.reviewRating?.ratingValue ? -1 : 1
a?.content?.reviewRating?.ratingValue >
b?.content?.reviewRating?.ratingValue
? -1
: 1
);
return (