Add website to mono repo, update packages to align with existing sub-packages, use new subscribeAsync 0x.js method

This commit is contained in:
Fabio Berger
2017-11-21 14:03:08 -06:00
parent 037f466e1f
commit 3660ba28d7
292 changed files with 26118 additions and 100 deletions

View File

@@ -0,0 +1,27 @@
import * as React from 'react';
import {colors} from 'material-ui/styles';
import {Source} from 'ts/types';
import {constants} from 'ts/utils/constants';
interface SourceLinkProps {
source: Source;
version: string;
}
export function SourceLink(props: SourceLinkProps) {
const source = props.source;
const githubUrl = constants.GITHUB_0X_JS_URL;
const sourceCodeUrl = `${githubUrl}/blob/v${props.version}/${source.fileName}#L${source.line}`;
return (
<div className="pt2" style={{fontSize: 14}}>
<a
href={sourceCodeUrl}
target="_blank"
className="underline"
style={{color: colors.grey500}}
>
Source
</a>
</div>
);
}