feat: Native video display (#5866)

This commit is contained in:
Tom Moor
2023-09-28 20:28:09 -04:00
committed by GitHub
parent bd06e03b1e
commit f4fd9dae5f
24 changed files with 840 additions and 344 deletions

View File

@@ -244,6 +244,8 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
return triggerFilePick(
AttachmentValidation.imageContentTypes.join(", ")
);
case "video":
return triggerFilePick("video/*");
case "attachment":
return triggerFilePick("*");
case "embed":

View File

@@ -20,6 +20,7 @@ import {
CalendarIcon,
MathIcon,
DoneIcon,
EmbedIcon,
} from "outline-icons";
import * as React from "react";
import styled from "styled-components";
@@ -101,6 +102,12 @@ export default function blockMenuItems(dictionary: Dictionary): MenuItem[] {
shortcut: `${metaDisplay} k`,
keywords: "link url uri href",
},
{
name: "video",
title: dictionary.video,
icon: <EmbedIcon />,
keywords: "mov avi upload player",
},
{
name: "attachment",
title: dictionary.file,

View File

@@ -83,6 +83,8 @@ export default function useDictionary() {
insertDateTime: t("Current date and time"),
indent: t("Indent"),
outdent: t("Outdent"),
video: t("Video"),
untitled: t("Untitled"),
}),
[t]
);