initial commit

This commit is contained in:
JJ Kasper
2018-05-17 14:31:05 -05:00
commit 2c90d2e7dd
79 changed files with 10684 additions and 0 deletions

20
comps/DocItem.js Normal file
View File

@@ -0,0 +1,20 @@
import Link from 'next/link';
import getUrl from '../util/getUrl';
const DocItem = ({ id, name, dir, updated }) => {
name = dir + (dir.length > 0 ? '/' : '') + name;
const as = getUrl('k/' + id);
const href = { pathname: '/k', query: { id } };
return (<tr>
<td><Link {...{href, as}}>
<a><p className='noMargin'>
{ name }
<span className='float-right'>
{new Date(updated).toLocaleDateString('en-US')}
</span>
</p></a>
</Link></td>
</tr>);
};
export default DocItem;