From 58c7742c18f82fe854784b083dfa723a8f256b72 Mon Sep 17 00:00:00 2001
From: bob <bcz@cs.brown.edu>
Date: Tue, 5 Feb 2019 11:22:10 -0500
Subject: lots of reorganization

---
 src/Main.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'src/Main.tsx')

diff --git a/src/Main.tsx b/src/Main.tsx
index cbdf0ae98..7618630f8 100644
--- a/src/Main.tsx
+++ b/src/Main.tsx
@@ -11,7 +11,7 @@ import { NumberField } from './fields/NumberField';
 import { TextField } from './fields/TextField';
 import "./Main.scss";
 import { ContextMenu } from './views/ContextMenu';
-import { DocumentView, DocumentContentsView } from './views/nodes/DocumentView';
+import { DocumentView } from './views/nodes/DocumentView';
 
 configure({
     enforceActions: "observed"
@@ -51,14 +51,14 @@ document.addEventListener("pointerdown", action(function (e: PointerEvent) {
     schemaDocs[4].SetFieldValue(KS.Author, "Bob", TextField);
     schemaDocs.push(doc2);
     const doc7 = Documents.SchemaDocument(schemaDocs)
-    const docset = [doc3];//[doc1, doc2, doc3, doc7];
+    const docset = [doc1, doc2, doc3, doc7];
     let doc4 = Documents.CollectionDocument(docset, {
         x: 0, y: 400, title: "mini collection"
     });
     let doc5 = Documents.ImageDocument("https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg", {
         x: 650, y: 500, width: 600, height: 600, title: "cat 2"
     });
-    let docset2 = new Array<Document>(doc4, doc1, doc3);
+    let docset2 = new Array<Document>(doc4);//, doc1, doc3);
     let doc6 = Documents.CollectionDocument(docset2, {
         x: 350, y: 100, width: 600, height: 600, title: "docking collection"
     });
@@ -66,21 +66,21 @@ document.addEventListener("pointerdown", action(function (e: PointerEvent) {
     if (!mainNodes) {
         mainNodes = new ListField<Document>();
     }
-    // mainNodes.Data.push(doc1);
+    mainNodes.Data.push(doc1);
     // mainNodes.Data.push(doc2);
     mainNodes.Data.push(doc4);
     // mainNodes.Data.push(doc3);
-    //mainNodes.Data.push(doc5);
+    // mainNodes.Data.push(doc5);
     // mainNodes.Data.push(doc1);
     //mainNodes.Data.push(doc2);
-    //mainNodes.Data.push(doc6);
+    mainNodes.Data.push(doc7);
     mainContainer.SetField(KeyStore.Data, mainNodes);
 }
 //);
 
 ReactDOM.render((
     <div style={{ position: "absolute", width: "100%", height: "100%" }}>
-        <DocumentContentsView Document={mainContainer} ContainingCollectionView={undefined} ContainingDocumentContentsView={undefined} />
+        <DocumentView Document={mainContainer} ContainingCollectionView={undefined} DocumentContentsView={undefined} />
         <DocumentDecorations />
         <ContextMenu />
     </div>),
-- 
cgit v1.2.3-70-g09d2

