From 332bbade5ead71f1209777e28b4ca6a6c7ad5f4d Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 30 Sep 2023 00:19:53 +0200 Subject: [PATCH] feat: add links to package definitions --- pages/_app.tsx | 8 ++------ pages/registry/list.tsx | 23 +++++++++++++++-------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/pages/_app.tsx b/pages/_app.tsx index ca71d8a..25158a9 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -22,14 +22,10 @@ export default function App({ Component, pageProps }: AppProps) { Package list
  • - - mason.nvim - + mason.nvim
  • - - mason-registry - + mason-registry
  • diff --git a/pages/registry/list.tsx b/pages/registry/list.tsx index 02ae1ae..314b03a 100644 --- a/pages/registry/list.tsx +++ b/pages/registry/list.tsx @@ -91,9 +91,9 @@ export default function RegistryList({ packages, checksum, timestamp, version }: } else { return false } - }) - ) - ) + }), + ), + ), ) }, [search, packages]) @@ -126,7 +126,16 @@ export default function RegistryList({ packages, checksum, timestamp, version }: return (

    - # {pkg.name} + + # + +   + + {pkg.name} +

    {pkg.description}

    @@ -141,9 +150,7 @@ export default function RegistryList({ packages, checksum, timestamp, version }: @@ -241,7 +248,7 @@ export const getStaticProps: GetStaticProps = async () => { const version = latestRelease.tag_name const registryZip = await fetch( - `https://github.com/mason-org/mason-registry/releases/download/${version}/registry.json.zip` + `https://github.com/mason-org/mason-registry/releases/download/${version}/registry.json.zip`, ) const zip = new AdmZip(Buffer.from(await registryZip.arrayBuffer()))
    Homepage - - {pkg.homepage} - + {pkg.homepage}