From 018d92a8a49e7e1a3a41ae87e24a9a8ba60619d6 Mon Sep 17 00:00:00 2001 From: Hannah Chow Date: Sun, 10 Mar 2019 22:43:35 -0400 Subject: almost done --- src/client/views/DocumentDecorations.tsx | 6 +++++- src/client/views/nodes/LinkBox.tsx | 32 ++++++++++++++------------- src/client/views/nodes/LinkEditor.scss | 16 ++++++++++++++ src/client/views/nodes/LinkEditor.tsx | 37 ++++++++++++++++++++++++++++++++ src/client/views/nodes/LinkMenu.tsx | 1 + 5 files changed, 76 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 22d34127d..8c3913232 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -184,6 +184,10 @@ export class DocumentDecorations extends React.Component { document.removeEventListener("pointerup", this.onPointerUp); } } + + changeFlyoutContent = (): void => { + + } // buttonOnPointerUp = (e: React.PointerEvent): void => { // e.stopPropagation(); // } @@ -203,7 +207,7 @@ export class DocumentDecorations extends React.Component { linkButton = ( + }>
diff --git a/src/client/views/nodes/LinkBox.tsx b/src/client/views/nodes/LinkBox.tsx index 25556d5be..fcfb2fcb5 100644 --- a/src/client/views/nodes/LinkBox.tsx +++ b/src/client/views/nodes/LinkBox.tsx @@ -9,6 +9,7 @@ import { DocumentView } from "./DocumentView"; import { Document } from "../../../fields/Document"; import { ListField } from "../../../fields/ListField"; import { DocumentManager } from "../../util/DocumentManager"; +import { LinkEditor } from "./LinkEditor"; interface Props { linkDoc: Document; @@ -60,22 +61,23 @@ export class LinkBox extends React.Component { render() { return ( -
-
-
-

{this.props.linkName}

-
-
-

{this.props.type}{this.props.pairedDoc.Title}

-
-
+ + //
+ //
+ //
+ //

{this.props.linkName}

+ //
+ //
+ //

{this.props.type}{this.props.pairedDoc.Title}

+ //
+ //
-
-
-
-
-
-
+ //
+ //
+ //
+ //
+ //
+ //
) } } \ No newline at end of file diff --git a/src/client/views/nodes/LinkEditor.scss b/src/client/views/nodes/LinkEditor.scss index e69de29bb..b5db19b65 100644 --- a/src/client/views/nodes/LinkEditor.scss +++ b/src/client/views/nodes/LinkEditor.scss @@ -0,0 +1,16 @@ +.edit-container { + width: 100%; + height: auto; + display: flex; + flex-direction: column; +} + +.name-input { + margin-bottom: 10px; + font-size: 12px; +} + +.description-input { + height: 100px; + font-size: 10px; +} \ No newline at end of file diff --git a/src/client/views/nodes/LinkEditor.tsx b/src/client/views/nodes/LinkEditor.tsx index e69de29bb..38cfef239 100644 --- a/src/client/views/nodes/LinkEditor.tsx +++ b/src/client/views/nodes/LinkEditor.tsx @@ -0,0 +1,37 @@ +import { observable, computed, action } from "mobx"; +import React = require("react"); +import { SelectionManager } from "../../util/SelectionManager"; +import { observer } from "mobx-react"; +import './LinkBox.scss' +import { KeyStore } from '../../../fields/KeyStore' +import { props } from "bluebird"; +import { DocumentView } from "./DocumentView"; +import { Document } from "../../../fields/Document"; +import { ListField } from "../../../fields/ListField"; +import { DocumentManager } from "../../util/DocumentManager"; +import { LinkBox } from "./LinkBox"; + +interface Props { + linkBox: LinkBox; +} + +@observer +export class LinkEditor extends React.Component { + + onSaveButtonPressed = (e: React.PointerEvent): void => { + console.log("view down"); + e.stopPropagation(); + + } + + render() { + + return ( +
+ + +
+ + ) + } +} \ No newline at end of file diff --git a/src/client/views/nodes/LinkMenu.tsx b/src/client/views/nodes/LinkMenu.tsx index c01e26b62..577aba398 100644 --- a/src/client/views/nodes/LinkMenu.tsx +++ b/src/client/views/nodes/LinkMenu.tsx @@ -14,6 +14,7 @@ import { FieldWaiting } from "../../../fields/Field"; interface Props { docView: DocumentView; + changeFlyout: () => void } @observer -- cgit v1.2.3-70-g09d2