Adding basic file browsing support
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Fabian Stamm
2020-10-14 02:52:02 +02:00
parent 78c40e4819
commit 46d8f8b289
48 changed files with 1097 additions and 70 deletions

View File

@ -0,0 +1,20 @@
/// <reference path="../types/jsx.d.ts" />
import { React, Fragment, Marked } from "../deps.ts";
import type { IPackage } from "../db.ts";
export default async function index({
pkg,
version,
}: {
pkg: IPackage;
version?: string;
}) {
return (
<>
<h2 style="margin-bottom: 0">Package: {pkg.name}</h2>
<h4 class="text-muted" style="margin-top: 0; margin-left: .5rem">
By {pkg.owner}
</h4>
</>
);
}