From 670cf766c99a8a5de806fd7d6f1d9e357a55071a Mon Sep 17 00:00:00 2001 From: laurawilsonri Date: Mon, 18 Mar 2019 18:29:10 -0400 Subject: not sure --- .../views/collections/CollectionSchemaView.tsx | 80 ++++++++-------------- 1 file changed, 30 insertions(+), 50 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 2598dd3a9..da38d54c4 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -1,10 +1,5 @@ -<<<<<<< HEAD -import React = require("react"); -import { action, observable } from "mobx"; -======= import React = require("react") import { action, observable, ObservableMap, computed } from "mobx"; ->>>>>>> f70ad315167b714f11f7d68f35a46abe9e525a4d import { observer } from "mobx-react"; import Measure from "react-measure"; import ReactTable, { CellInfo, ComponentPropsGetterR, ReactTableDefaults } from "react-table"; @@ -22,23 +17,13 @@ import "./CollectionSchemaView.scss"; import { COLLECTION_BORDER_WIDTH, CollectionView } from "./CollectionView"; import { CollectionViewBase } from "./CollectionViewBase"; import { setupDrag } from "../../util/DragManager"; -<<<<<<< HEAD import '../DocumentDecorations.scss'; import { Flyout, anchorPoints } from "../DocumentDecorations"; import { DropdownButton, Dropdown } from 'react-bootstrap'; import { ListField } from "../../../fields/ListField"; import { Key } from "../../../fields/Key"; -//import { Server } from "http"; -//import { Server } from "http"; import { Server } from "../../Server"; -//import { MenuItem } from 'react-bootstrap'; -======= -import { Key } from "./../../../fields/Key"; -import { Server } from "../../Server"; -import { ListField } from "../../../fields/ListField"; - ->>>>>>> f70ad315167b714f11f7d68f35a46abe9e525a4d // bcz: need to add drag and drop of rows and columns. This seems like it might work for rows: https://codesandbox.io/s/l94mn1q657 @@ -349,18 +334,10 @@ export class CollectionSchemaView extends CollectionViewBase {
); let dividerDragger = this.splitPercentage == 0 ? (null) :
-<<<<<<< HEAD //get the union of all childrens' keys let addFields: { id: string, name: string }[] = []; let removeFields: { id: string, name: string }[] = []; - //children.forEach((child) => { - // for (var keyId in fields.keys) { - // if (!allFields.includes(keyId)) { - // allFields.push(keyId); - // } - // } - // }); let optionsMenu = null; if (this.props.active()) { let protos = this.props.Document.GetAllPrototypes(); @@ -372,28 +349,32 @@ export class CollectionSchemaView extends CollectionViewBase { } }) } - optionsMenu = !this.props.active() ? (null) : (
Options
- + /* {addFields.map(({ id, name }) => (
{name}
))}
{addFields.map(({ id, name }) => (
{name}
))} -
+
*/ + optionsMenu = !this.props.active() ? (null) : (
Options
+
+
    + {Array.from(Object.keys(allKeys)).map(item => { + return () + })} +
+
}>
); } - -======= let colDividerDragger = this._columnsPercentage == 0 ? (null) :
->>>>>>> f70ad315167b714f11f7d68f35a46abe9e525a4d return (
@@ -424,19 +405,6 @@ export class CollectionSchemaView extends CollectionViewBase { getTrProps={this.getTrProps} />
- {colDividerDragger} -
- {/* - */} - -
-
    - {Array.from(Object.keys(allKeys)).map(item => { - return () - })} -
-
-
} @@ -445,14 +413,26 @@ export class CollectionSchemaView extends CollectionViewBase { {content}
{previewHandle} -<<<<<<< HEAD - {optionsMenu} -======= - {columnsHandle} ->>>>>>> f70ad315167b714f11f7d68f35a46abe9e525a4d + {columnsHandle} + {optionsMenu}
) } -} \ No newline at end of file +} +/* +{colDividerDragger} +
+ {/* + } + +
+
    + {Array.from(Object.keys(allKeys)).map(item => { + return () + })} +
+
+
+ */ \ No newline at end of file -- cgit v1.2.3-70-g09d2