import { NextPage } from 'next' import dynamic from 'next/dynamic' import * as generateLicenseFile from 'generate-license-file' import { ILicense } from 'generate-license-file/dist/models/license.interface' import { readFileSync } from 'fs' const Docs = dynamic(() => import('@components/Docs')) const Segment = dynamic(() => import('@components/Segment')) const Markdown = dynamic(() => import('@components/Markdown')) const Opensource: NextPage = ({ packageJson, mainLicense, license }) => { return ( 한디리 {' '} 오픈소스 } subheader='한국 디스코드 리스트는 오픈소스 프로젝트이며, 다양한 오픈소스 프로젝트가 사용되었습니다.' >

소스코드

Github

라이선스

<>

타 소프트웨어 라이선스

다음 소프트웨어들이 사용되었습니다:
{Object.keys(packageJson.dependencies) .concat(Object.keys(packageJson.devDependencies)) .map((el) => ( {el} {' '} ))} {license.map((el, i) => (

{el.dependencies.join(', ')}

))}
) } interface OpensourceProps { mainLicense: string packageJson: { dependencies: Record devDependencies: Record } license: ILicense[] } export async function getStaticProps() { const license = await generateLicenseFile.getProjectLicenses('./').then((license) => license) return { props: { packageJson: require('package.json'), mainLicense: readFileSync('./LICENSE').toString(), license, }, } } export default Opensource