aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/Main.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-16 12:46:06 -0400
committerbob <bcz@cs.brown.edu>2019-04-16 12:46:06 -0400
commita4122573367ef36a9725e09b8447f3edfaa5c6a1 (patch)
tree76fec7e0f5f964efc0af0957681d63fde309e5cc /src/client/views/Main.tsx
parentc6360fb4aed348f6f6a3c7412b6acc0d1990c239 (diff)
parentfeae8f4d314ef389cc544fd3ad0792a6bb04832c (diff)
Merge branch 'master' into presentation_view
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r--src/client/views/Main.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index 4a12b0015..d8e429ad1 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -16,7 +16,7 @@ import { CurrentUserUtils } from '../../server/authentication/models/current_use
import { MessageStore } from '../../server/Message';
import { RouteStore } from '../../server/RouteStore';
import { ServerUtils } from '../../server/ServerUtil';
-import { emptyDocFunction, emptyFunction, returnTrue, Utils } from '../../Utils';
+import { emptyDocFunction, emptyFunction, returnTrue, Utils, returnOne } from '../../Utils';
import { Documents } from '../documents/Documents';
import { ColumnAttributeModel } from '../northstar/core/attribute/AttributeModel';
import { AttributeTransformationModel } from '../northstar/core/attribute/AttributeTransformationModel';
@@ -88,7 +88,11 @@ export class Main extends React.Component {
this.initEventListeners();
this.initAuthenticationRouters();
- this.initializeNorthstar();
+ try {
+ this.initializeNorthstar();
+ } catch (e) {
+
+ }
}
componentDidMount() { window.onpopstate = this.onHistory; }
@@ -196,7 +200,6 @@ export class Main extends React.Component {
Document={mainCont}
addDocument={undefined}
removeDocument={undefined}
- opacity={1}
ScreenToLocalTransform={Transform.Identity}
ContentScaling={noScaling}
PanelWidth={pwidthFunc}
@@ -228,7 +231,7 @@ export class Main extends React.Component {
let addSchemaNode = action(() => Documents.SchemaDocument([], { width: 200, height: 200, title: "a schema collection" }));
let addTreeNode = action(() => Documents.TreeDocument(this._northstarSchemas, { width: 250, height: 400, title: "northstar schemas", copyDraggedItems: true }));
let addVideoNode = action(() => Documents.VideoDocument(videourl, { width: 200, height: 200, title: "video node" }));
- let addPDFNode = action(() => Documents.PdfDocument(pdfurl, { width: 200, height: 200, title: "a schema collection" }));
+ let addPDFNode = action(() => Documents.PdfDocument(pdfurl, { width: 200, height: 200, title: "a pdf doc" }));
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" }));
let addAudioNode = action(() => Documents.AudioDocument(audiourl, { width: 200, height: 200, title: "audio node" }));