From 55bd063852ffa432a51ed0a3101f4c939ffaee62 Mon Sep 17 00:00:00 2001 From: Andrew Kim Date: Tue, 5 Mar 2019 19:00:55 -0500 Subject: pdf --- src/client/views/Main.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client') diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index d845fa7a3..bbf315052 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -51,11 +51,13 @@ Documents.initProtos(mainDocId, (res?: Document) => { } let imgurl = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg"; + let pdfurl = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg" let weburl = "https://cs.brown.edu/courses/cs166/"; let clearDatabase = action(() => Utils.Emit(Server.Socket, MessageStore.DeleteAll, {})) let addTextNode = action(() => Documents.TextDocument({ width: 200, height: 200, title: "a text note" })) let addColNode = action(() => Documents.FreeformDocument([], { width: 200, height: 200, title: "a freeform collection" })); let addSchemaNode = action(() => Documents.SchemaDocument([Documents.TextDocument()], { width: 200, height: 200, title: "a schema collection" })); + let addPDFNode = action(() => Documents.PdfDocument(pdfurl, { width: 200, height: 200, title: "a schema collection" })); let addImageNode = action(() => Documents.ImageDocument(imgurl, { width: 200, height: 200, title: "an image of a cat" })); let addWebNode = action(() => Documents.WebDocument(weburl, { width: 200, height: 200, title: "a sample web page" })); @@ -64,6 +66,7 @@ Documents.initProtos(mainDocId, (res?: Document) => { ); let imgRef = React.createRef(); + let pdfRef = React.createRef(); let webRef = React.createRef(); let textRef = React.createRef(); let schemaRef = React.createRef(); @@ -94,6 +97,8 @@ Documents.initProtos(mainDocId, (res?: Document) => {
+
+
), -- cgit v1.2.3-70-g09d2