Skip to content

Commit 393ab87

Browse files
merged Shlomo deletions
2 parents 7e6fd25 + 29d9df5 commit 393ab87

32 files changed

+21
-815
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# ReacType
22

3-
43
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/team-reactype/ReacType/pulls)
54
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
65

76
**ReacType** is a visual prototyping tool for developers employing **React** component architecture alongside the comprehensive type checking of **TypeScript**.
87

98
**ReacType** allows the user to _visualize_ their application architecture dynamically, employing a _canvas display_, an _application tree_, and a _component code preview_. The user can create components and load _instances_ of these components, as well as nested HTML elements, onto the canvas. This architecture can then be _exported_ as TypeScript application files to be used as a starter template for any repository.
109

11-
Download for [MacOS](), [Windows](), [Linux]().
10+
Download for [MacOS](), [Windows](), [Linux]().
11+
12+
![Image of ReacType Application](src/public/images/TreeImageComponent.png)
1213

1314
### How to use
1415

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.

0 commit comments

Comments
 (0)