From fa2a9c1af221e12f10b6297851846828c6c5110f Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Thu, 28 Feb 2019 13:31:04 -0500 Subject: minor cleanup and fixed transforms --- src/client/views/Main.tsx | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/client/views/Main.tsx') diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index 16e95ad82..24c2ea7f7 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -33,19 +33,16 @@ let mainContainer: Document; let mainfreeform: Document; console.log("HELLO WORLD") Documents.initProtos(mainDocId, (res?: Document) => { - console.log("Response => " + JSON.stringify(res as Document)) if (res instanceof Document) { mainContainer = res; mainContainer.GetAsync(KeyStore.ActiveFrame, field => mainfreeform = field as Document); } else { mainContainer = Documents.DockDocument(JSON.stringify({ content: [{ type: 'row', content: [] }] }), { title: "main container" }, mainDocId); - Utils.Emit(Server.Socket, MessageStore.AddDocument, new DocumentTransfer(mainContainer.ToJson())) // bcz: strangely, we need a timeout to prevent exceptions/issues initializing GoldenLayout (the rendering engine for Main Container) setTimeout(() => { mainfreeform = Documents.FreeformDocument([], { x: 0, y: 400, title: "mini collection" }); - Utils.Emit(Server.Socket, MessageStore.AddDocument, new DocumentTransfer(mainfreeform.ToJson())); var dockingLayout = { content: [{ type: 'row', content: [CollectionDockingView.makeDocumentConfig(mainfreeform)] }] }; mainContainer.SetText(KeyStore.Data, JSON.stringify(dockingLayout)); -- cgit v1.2.3-70-g09d2