aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-01 09:48:17 -0500
committerbob <bcz@cs.brown.edu>2019-02-01 09:48:17 -0500
commit38bd04e67c13d073057321c5ba89a1e1aef02179 (patch)
tree388dcd014d786dd913c1e2810593606afdba5be7 /src
parent4b1e7b1e71f8dbd7a54e2e2f03fcbf813288bc5c (diff)
fixed compile errors.
Diffstat (limited to 'src')
-rw-r--r--src/Main.tsx4
-rw-r--r--src/fields/DocumentReference.ts5
-rw-r--r--src/fields/Field.ts4
-rw-r--r--src/stores/RootStore.ts1
-rw-r--r--src/views/nodes/NodeView.scss23
5 files changed, 24 insertions, 13 deletions
diff --git a/src/Main.tsx b/src/Main.tsx
index 8c91399b1..cc0f9f9cb 100644
--- a/src/Main.tsx
+++ b/src/Main.tsx
@@ -2,14 +2,10 @@ import * as React from 'react';
import * as ReactDOM from 'react-dom';
import "./Main.scss";
import "normalize.css"
-import { NodeCollectionStore } from './stores/NodeCollectionStore';
-import { StaticTextNodeStore } from './stores/StaticTextNodeStore';
-import { VideoNodeStore } from './stores/VideoNodeStore';
import { Key, KeyStore as KS, KeyStore } from './fields/Key';
import { NumberField } from './fields/NumberField';
import { Document } from './fields/Document';
import { configure, runInAction, action } from 'mobx';
-import { NodeStore } from './stores/NodeStore';
import { Documents } from './documents/Documents';
import { DocumentDecorations } from './DocumentDecorations';
import { CollectionFreeFormView } from './views/collections/CollectionFreeFormView';
diff --git a/src/fields/DocumentReference.ts b/src/fields/DocumentReference.ts
index f8be335ef..f4f933848 100644
--- a/src/fields/DocumentReference.ts
+++ b/src/fields/DocumentReference.ts
@@ -1,7 +1,6 @@
import { Field, Opt } from "./Field";
import { Document } from "./Document";
import { Key } from "./Key";
-import { DocumentUpdatedArgs } from "./FieldUpdatedArgs";
export class DocumentReference extends Field {
get Key(): Key {
@@ -16,10 +15,6 @@ export class DocumentReference extends Field {
super();
}
- private DocFieldUpdated(args: DocumentUpdatedArgs): void {
- // this.FieldUpdated.emit(args.fieldArgs);
- }
-
Dereference(): Opt<Field> {
return this.document.GetField(this.key);
}
diff --git a/src/fields/Field.ts b/src/fields/Field.ts
index 46f92f203..1453e52a4 100644
--- a/src/fields/Field.ts
+++ b/src/fields/Field.ts
@@ -1,6 +1,4 @@
-import { TypedEvent } from "../util/TypedEvent";
-import { FieldUpdatedArgs } from "./FieldUpdatedArgs";
-import { DocumentReference } from "./DocumentReference";
+
import { Utils } from "../Utils";
export function Cast<T extends Field>(field: Opt<Field>, ctor: { new(): T }): Opt<T> {
diff --git a/src/stores/RootStore.ts b/src/stores/RootStore.ts
index 393c52d57..847fb6807 100644
--- a/src/stores/RootStore.ts
+++ b/src/stores/RootStore.ts
@@ -1,5 +1,4 @@
import { action, observable } from "mobx";
-import { NodeStore } from "./NodeStore";
// This globally accessible store might come in handy, although you may decide that you don't need it.
export class RootStore {
diff --git a/src/views/nodes/NodeView.scss b/src/views/nodes/NodeView.scss
new file mode 100644
index 000000000..dac1c0a8e
--- /dev/null
+++ b/src/views/nodes/NodeView.scss
@@ -0,0 +1,23 @@
+.node {
+ position: absolute;
+ background: #cdcdcd;
+ overflow: hidden;
+ &.minimized {
+ width: 30px;
+ height: 30px;
+ }
+ .top {
+ background: #232323;
+ height: 20px;
+ cursor: pointer;
+ }
+ .content {
+ padding: 20px 20px;
+ height: auto;
+ box-sizing: border-box;
+ }
+ .scroll-box {
+ overflow-y: scroll;
+ height: calc(100% - 20px);
+ }
+} \ No newline at end of file