diff --git a/app/components/SitesCombobox.tsx b/app/components/SitesCombobox.tsx index 697d7c9..92a821f 100644 --- a/app/components/SitesCombobox.tsx +++ b/app/components/SitesCombobox.tsx @@ -16,7 +16,6 @@ import { } from "@/components/ui/popover"; import { ChevronDownIcon } from "@heroicons/react/24/solid"; import { SelectOptions, SiteList } from "@/types.js"; -import slugify from "slugify"; import { useEffect } from "react"; export function SitesCombobox({ @@ -29,7 +28,7 @@ export function SitesCombobox({ const sites = Object.entries(siteList).map((item) => { return { label: item[1].name, - value: slugify(item[0]), + value: item[0], }; }); const [open, setOpen] = React.useState(false); diff --git a/app/routes/api.events.siteUpdateReceived.ts b/app/routes/api.events.siteUpdateReceived.ts index ec5e9b0..7c4a9e5 100644 --- a/app/routes/api.events.siteUpdateReceived.ts +++ b/app/routes/api.events.siteUpdateReceived.ts @@ -7,7 +7,6 @@ import { import { S5Client } from "@lumeweb/s5-js"; import xml2js from "xml2js"; import { prisma } from "@/lib/prisma"; -import slugify from "slugify"; import path from "path"; import { getAvailableSites } from "@/utils.js"; import { CID } from "@lumeweb/libs5"; @@ -83,7 +82,6 @@ export async function action({ request }: ActionFunctionArgs) { cid: CID.decode(cid).toString(), createdAt: new Date(), updatedAt: new Date(), - slug: slugify(new URL(url).pathname), site: data.site, }; diff --git a/package-lock.json b/package-lock.json index a4c38c4..279375a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,6 @@ "meilisearch": "^0.36.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "slugify": "^1.6.6", "swr": "^2.2.4", "tailwind-merge": "^2.0.0", "xml2js": "^0.6.2" @@ -11452,14 +11451,6 @@ "node": ">=8" } }, - "node_modules/slugify": { - "version": "1.6.6", - "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz", - "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/source-map": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", diff --git a/package.json b/package.json index 68c714c..7a95f5a 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "meilisearch": "^0.36.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "slugify": "^1.6.6", "swr": "^2.2.4", "tailwind-merge": "^2.0.0", "xml2js": "^0.6.2"