diff --git a/shared/embeds/index.tsx b/shared/embeds/index.tsx index 9ec9a8f39..43e6c7562 100644 --- a/shared/embeds/index.tsx +++ b/shared/embeds/index.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { EmbedDescriptor } from "rich-markdown-editor/dist/types"; import styled from "styled-components"; +import { cdnPath } from "@shared/utils/urls"; import Abstract from "./Abstract"; import Airtable from "./Airtable"; import Bilibili from "./Bilibili"; @@ -72,14 +73,14 @@ const embeds: EmbedDescriptor[] = [ title: "Abstract", keywords: "design", defaultHidden: true, - icon: () => Abstract, + icon: () => Abstract, component: Abstract, matcher: matcher(Abstract), }, { title: "Airtable", keywords: "spreadsheet", - icon: () => Airtable, + icon: () => Airtable, component: Airtable, matcher: matcher(Airtable), }, @@ -87,7 +88,7 @@ const embeds: EmbedDescriptor[] = [ title: "Bilibili", keywords: "video", defaultHidden: true, - icon: () => Bilibili, + icon: () => Bilibili, component: Bilibili, matcher: matcher(Bilibili), }, @@ -95,98 +96,112 @@ const embeds: EmbedDescriptor[] = [ title: "Cawemo", keywords: "bpmn process", defaultHidden: true, - icon: () => Cawemo, + icon: () => Cawemo, component: Cawemo, matcher: matcher(Cawemo), }, { title: "ClickUp", keywords: "project", - icon: () => ClickUp, + icon: () => ClickUp, component: ClickUp, matcher: matcher(ClickUp), }, { title: "Codepen", keywords: "code editor", - icon: () => Codepen, + icon: () => Codepen, component: Codepen, matcher: matcher(Codepen), }, { title: "Descript", keywords: "audio", - icon: () => Descript, + icon: () => Descript, component: Descript, matcher: matcher(Descript), }, { title: "Figma", keywords: "design svg vector", - icon: () => Figma, + icon: () => Figma, component: Figma, matcher: matcher(Figma), }, { title: "Framer", keywords: "design prototyping", - icon: () => Framer, + icon: () => Framer, component: Framer, matcher: matcher(Framer), }, { title: "GitHub Gist", keywords: "code", - icon: () => GitHub, + icon: () => GitHub, component: Gist, matcher: matcher(Gist), }, { title: "Diagrams.net", keywords: "diagrams drawio", - icon: () => Diagrams.net, + icon: () => ( + Diagrams.net + ), component: Diagrams, matcher: matcher(Diagrams), }, { title: "Google Drawings", keywords: "drawings", - icon: () => Google Drawings, + icon: () => ( + Google Drawings + ), component: GoogleDrawings, matcher: matcher(GoogleDrawings), }, { title: "Google Drive", keywords: "drive", - icon: () => Google Drive, + icon: () => ( + Google Drive + ), component: GoogleDrive, matcher: matcher(GoogleDrive), }, { title: "Google Docs", keywords: "documents word", - icon: () => Google Docs, + icon: () => ( + Google Docs + ), component: GoogleDocs, matcher: matcher(GoogleDocs), }, { title: "Google Sheets", keywords: "excel spreadsheet", - icon: () => Google Sheets, + icon: () => ( + Google Sheets + ), component: GoogleSheets, matcher: matcher(GoogleSheets), }, { title: "Google Slides", keywords: "presentation slideshow", - icon: () => Google Slides, + icon: () => ( + Google Slides + ), component: GoogleSlides, matcher: matcher(GoogleSlides), }, { title: "Google Calendar", keywords: "calendar", - icon: () => Google Calendar, + icon: () => ( + Google Calendar + ), component: GoogleCalendar, matcher: matcher(GoogleCalendar), }, @@ -194,7 +209,10 @@ const embeds: EmbedDescriptor[] = [ title: "Google Data Studio", keywords: "bi business intelligence", icon: () => ( - Google Data Studio + Google Data Studio ), component: GoogleDataStudio, matcher: matcher(GoogleDataStudio), @@ -203,42 +221,46 @@ const embeds: EmbedDescriptor[] = [ title: "InVision", keywords: "design prototype", defaultHidden: true, - icon: () => InVision, + icon: () => InVision, component: InVision, matcher: matcher(InVision), }, { title: "Loom", keywords: "video screencast", - icon: () => Loom, + icon: () => Loom, component: Loom, matcher: matcher(Loom), }, { title: "Lucidchart", keywords: "chart", - icon: () => Lucidchart, + icon: () => ( + Lucidchart + ), component: Lucidchart, matcher: matcher(Lucidchart), }, { title: "Marvel", keywords: "design prototype", - icon: () => Marvel, + icon: () => Marvel, component: Marvel, matcher: matcher(Marvel), }, { title: "Mindmeister", keywords: "mindmap", - icon: () => Mindmeister, + icon: () => ( + Mindmeister + ), component: Mindmeister, matcher: matcher(Mindmeister), }, { title: "Miro", keywords: "whiteboard", - icon: () => Miro, + icon: () => Miro, component: Miro, matcher: matcher(Miro), }, @@ -246,7 +268,7 @@ const embeds: EmbedDescriptor[] = [ title: "Mode", keywords: "analytics", defaultHidden: true, - icon: () => Mode, + icon: () => Mode, component: ModeAnalytics, matcher: matcher(ModeAnalytics), }, @@ -254,56 +276,56 @@ const embeds: EmbedDescriptor[] = [ title: "Pitch", keywords: "presentation", defaultHidden: true, - icon: () => Pitch, + icon: () => Pitch, component: Pitch, matcher: matcher(Pitch), }, { title: "Prezi", keywords: "presentation", - icon: () => Prezi, + icon: () => Prezi, component: Prezi, matcher: matcher(Prezi), }, { title: "Spotify", keywords: "music", - icon: () => Spotify, + icon: () => Spotify, component: Spotify, matcher: matcher(Spotify), }, { title: "Trello", keywords: "kanban", - icon: () => Trello, + icon: () => Trello, component: Trello, matcher: matcher(Trello), }, { title: "Typeform", keywords: "form survey", - icon: () => Typeform, + icon: () => Typeform, component: Typeform, matcher: matcher(Typeform), }, { title: "Vimeo", keywords: "video", - icon: () => Vimeo, + icon: () => Vimeo, component: Vimeo, matcher: matcher(Vimeo), }, { title: "Whimsical", keywords: "whiteboard", - icon: () => Whimsical, + icon: () => Whimsical, component: Whimsical, matcher: matcher(Whimsical), }, { title: "YouTube", keywords: "google video", - icon: () => YouTube, + icon: () => YouTube, component: YouTube, matcher: matcher(YouTube), },