Skip to content

Commit af9ea7f

Browse files
committed
Merge branch 'development' of https://github.com/team-reactype/ReacType
2 parents fde1c53 + d2e8b5f commit af9ea7f

32 files changed

+358
-1102
lines changed

src/actions/components.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import {
22
ComponentInt,
3-
ChildInt,
4-
ApplicationStateInt,
53
ComponentsInt,
64
PropInt
75
} from "../utils/interfaces";

src/components/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { Component } from 'react';
22
import '../public/styles/style.css';
3-
// import { MuiThemeProvider } from '@material-ui/core/styles';
43
import AppContainer from '../containers/AppContainer';
54

65
export const App: React.SFC = () => (

src/components/BottomPanel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ interface PropsInt {
3131
}
3232

3333
class BottomPanel extends Component<PropsInt> {
34-
// viewAppDir = () => {
35-
// IPC.send('view_app_dir', this.props.appDir);
36-
// };
3734

3835
render() {
3936
const {

src/components/BottomTabs.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Props from "./Props.tsx";
77
import HtmlAttr from "./HtmlAttr.tsx";
88
import CodePreview from "./CodePreview.tsx";
99
import { ComponentInt, ComponentsInt, ChildInt } from "../utils/interfaces";
10-
// import Tree from "./Tree.jsx";
1110

1211
interface PropsInt {
1312
focusChild: ChildInt;
@@ -18,11 +17,6 @@ interface PropsInt {
1817
classes: any;
1918
}
2019

21-
// interface TreeAttributesInt {
22-
// key: string;
23-
// value: string;
24-
// }
25-
2620
interface TreeInt {
2721
name: string;
2822
attributes: { [key: string]: { value: string } };
@@ -32,15 +26,13 @@ interface TreeInt {
3226
const styles = (theme: any): any => ({
3327
root: {
3428
flexGrow: 1,
35-
// backgroundColor: "#212121",
3629
backgroundColor: "#333333",
3730
height: "100%",
3831
color: "#fff",
3932
boxShadow: "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)"
4033
},
4134
tabsRoot: {
4235
borderBottom: "0.5px solid #424242"
43-
// backgroundColor: "#424242"
4436
},
4537
tabsIndicator: {
4638
backgroundColor: "#1de9b6"

src/components/CodePreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { Component, Fragment } from "react";
2-
import { withStyles } from "@material-ui/core/styles";
32
import { format } from "prettier";
43
import componentRender from "../utils/componentRender.util";
54
import { ComponentInt, ComponentsInt } from "../utils/interfaces";
6-
// import SortChildren from './SortChildren.jsx';
5+
/**** SortCHildren will be fixed , dont XXX the file *** */
6+
import SortChildren from './SortChildren.jsx';
77

88
type Props = {
99
focusComponent: ComponentInt;

src/components/DataTable.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import React from "react";
2-
// import PropTypes from 'prop-types';
32
import { withStyles } from "@material-ui/core/styles";
43
import Table from "@material-ui/core/Table";
54
import TableBody from "@material-ui/core/TableBody";
65
import TableCell from "@material-ui/core/TableCell";
76
import TableHead from "@material-ui/core/TableHead";
87
import TableRow from "@material-ui/core/TableRow";
98
import Paper from "@material-ui/core/Paper";
10-
import Button from "@material-ui/core/Button";
119
import DeleteIcon from "@material-ui/icons/Delete";
1210
import { IconButton } from "@material-ui/core";
1311

@@ -74,8 +72,4 @@ function dataTable(props: any) {
7472
);
7573
}
7674

77-
// dataTable.propTypes = {
78-
// classes: PropTypes.object.isRequired,
79-
// };
80-
8175
export default withStyles(styles)(dataTable);

src/components/GrandchildRectangle.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { Component } from "react";
22
import { Rect, Group } from "react-konva";
3-
// import findComponentById from '../utils/findComponentById.ts';
4-
import { ComponentInt, ComponentsInt, ChildInt } from "../utils/interfaces";
3+
import { ComponentsInt } from "../utils/interfaces";
54

65
interface PropsInt {
76
x: number;
@@ -34,7 +33,6 @@ class GrandchildRectangle extends Component<PropsInt, StateInt> {
3433
};
3534

3635
getComponentColor(componentId: number) {
37-
// const color = findComponentById(componentId, this.props.components).color;
3836
const color = this.props.components.find(comp => comp.id === componentId)
3937
.color;
4038
return color;

src/components/HTMLComponentPanel.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
import React, { Component } from "react";
2-
import { connect } from "react-redux";
3-
import { compose } from "redux";
42
import { withStyles } from "@material-ui/core/styles";
5-
// import TextField from '@material-ui/core/TextField';
63
import IconButton from "@material-ui/core/IconButton";
74
import ImageIcon from "@material-ui/icons/Image";
85
import FormIcon from "@material-ui/icons/Description";
96
import ButtonIcon from "@material-ui/icons/EditAttributes";
107
import LinkIcon from "@material-ui/icons/Link";
118
import ListIcon from "@material-ui/icons/List";
129
import ParagraphIcon from "@material-ui/icons/LocalParking";
13-
// import Typography from '@material-ui/core/Typography';
1410
import Grid from "@material-ui/core/Grid";
15-
// import Paper from '@material-ui/core/Paper';
1611
import Tab from "@material-ui/core/Tab";
1712
import Chip from "@material-ui/core/Chip";
18-
// import theme from './theme.ts';
13+
1914

2015
interface PropsInt {
2116
classes: any;

src/components/HtmlAttr.jsx

Lines changed: 0 additions & 129 deletions
This file was deleted.

src/components/HtmlAttr.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ import { connect } from "react-redux";
33
import { withStyles } from "@material-ui/core/styles";
44
import Grid from "@material-ui/core/Grid";
55
import TextField from "@material-ui/core/TextField";
6-
import IconButton from "@material-ui/core/IconButton";
7-
import Typography from "@material-ui/core/Typography";
86
import SaveIcon from "@material-ui/icons/Save";
97
import Paper from "@material-ui/core/Paper";
108
import Fab from "@material-ui/core/Fab";
119
import { updateHtmlAttr } from "../actions/components.ts";
12-
import { HTMLelements, getSize } from "../utils/htmlElements.util.ts";
13-
import { ComponentInt, ComponentsInt, ChildInt } from "../utils/interfaces";
10+
import { HTMLelements } from "../utils/htmlElements.util.ts";
11+
import { ComponentInt, ChildInt } from "../utils/interfaces";
1412

1513
interface PropsInt {
1614
updateHtmlAttr: any;
@@ -62,7 +60,6 @@ class HtmlAttr extends Component<PropsInt, StateInt> {
6260
);
6361

6462
handleSave = (attr: string) => {
65-
console.log(attr, this.state[attr]);
6663
this.props.updateHtmlAttr({ attr, value: this.state[attr] });
6764
this.setState({
6865
[attr]: ""
@@ -77,12 +74,8 @@ class HtmlAttr extends Component<PropsInt, StateInt> {
7774

7875
render() {
7976
const {
80-
focusComponent,
8177
classes,
82-
deleteProp,
83-
addProp,
8478
focusChild,
85-
updateHtmlAttr
8679
} = this.props;
8780

8881
const focusChildType = focusChild.htmlElement;

0 commit comments

Comments
 (0)