Compare commits

...

1 Commits

Author SHA1 Message Date
Tom Moor 6fde9b34b7 wip 2021-09-16 17:46:54 -07:00
2 changed files with 39 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
// @flow
import * as React from "react";
import Frame from "./components/Frame";
const URL_REGEX = /^https:\/\/www\.berrycast\.com\/conversations\/([0-9A-F-]*)(?:\/?)$/i;
type Props = {|
attrs: {|
href: string,
matches: string[],
|},
|};
export default class Berrycast extends React.Component<Props> {
static ENABLED = [URL_REGEX];
render() {
const { matches } = this.props.attrs;
const videoId = matches[1];
return (
<Frame
{...this.props}
height="465px"
src={`https://www.berrycast.com/conversations/${videoId}/video-player`}
title={`Berrycast Embed (${videoId})`}
/>
);
}
}
+9
View File
@@ -3,6 +3,7 @@ import * as React from "react";
import styled from "styled-components";
import Abstract from "./Abstract";
import Airtable from "./Airtable";
import Berrycast from "./Berrycast";
import Cawemo from "./Cawemo";
import ClickUp from "./ClickUp";
import Codepen from "./Codepen";
@@ -66,6 +67,14 @@ export default [
component: Airtable,
matcher: matcher(Airtable),
},
{
title: "Berrycast",
keywords: "video",
defaultHidden: true,
icon: () => <Img src="/images/berrycast.png" />,
component: Berrycast,
matcher: matcher(Berrycast),
},
{
title: "Cawemo",
keywords: "bpmn process",