import React from "react" import axios from "axios" import config from "@config" import "./index.less" async function readLicenses() { const { data } = await axios.get(config.ossLicensesUrl) return data } const PackageItem = (props) => { const { name, version, author, license } = props.pkg async function openLicenseView(id) { const { data } = await axios.get(`https://licenses.opendefinition.org/licenses/${id}.json`) window.open(data.url, "_blank") } return

{name}

Version: {version}

{ author && (author.name ?

Author: {author.name}

:

Author: {author}

) }

License: {license}

openLicenseView(license)}>View License
} const OpenSourceLibrariesPage = () => { const [libraries, setLibraries] = React.useState([]) async function initialize() { setLibraries(await readLicenses()) } React.useEffect(() => { initialize() }, []) return

Open Source Libraries

❤️ {config.app.siteName} works thanks to all the amazing following open source libraries. ❤️

{ libraries.map((pkg, index) => { return }) }
} export default OpenSourceLibrariesPage