slate/scenes/SceneSentinel.js

42 lines
1.2 KiB
JavaScript
Raw Normal View History

import * as React from "react";
import * as System from "~/components/system";
import Section from "~/components/core/Section";
import ScenePage from "~/components/core/ScenePage";
import ScenePageHeader from "~/components/core/ScenePageHeader";
export default class SceneSentinel extends React.Component {
render() {
return (
2020-11-16 00:54:14 +03:00
<React.Fragment>
<ScenePageHeader>
Slate provides access to recent data on the Filecoin Network through Sentinel. Each of
these API endpoints can be used programatically.
</ScenePageHeader>
<Section title="Filecoin API routes" style={{ maxWidth: 960, minWidth: "auto" }}>
<System.Table
data={{
columns: [
{
key: "route",
name: "Route",
width: "100%",
2020-09-03 10:50:36 +03:00
name: "URL",
type: "NEW_WINDOW",
},
],
2020-11-16 00:54:14 +03:00
rows: this.props.routes.map((r) => {
const route = `https://sentinel.slate.host${r}?offset=0&limit=200`;
return {
2020-09-03 10:50:36 +03:00
route,
};
}),
}}
/>
</Section>
2020-11-16 00:54:14 +03:00
</React.Fragment>
);
}
}