Skip to content

Commit 563b4f3

Browse files
spincycle01ChristianEdwardPadilla
authored andcommitted
added in license, readme, added in zoom factor to electron
1 parent f9b6b40 commit 563b4f3

File tree

4 files changed

+89
-2
lines changed

4 files changed

+89
-2
lines changed

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2018 ReacType
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,70 @@
11
# ReacType
2-
Prototyping Tool for React/Typescript Applications
2+
3+
**ReacType** is a prototyping tool for developers employing **React** component architecture while utilizing the comprehensive type checking of **TypeScript**.
4+
5+
**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. These visual representations quickly reveal parent-child relationships between components and the embedded instances, with component views that can be toggled between and draggable representations that resized on the canvas itself. This architecture can then be _exported_ as TypeScript application files to be used as a starter template for any repository.
6+
7+
Download for [MacOS](), [Windows](), [Linux]().
8+
9+
### How to use
10+
11+
- Open the application to start a new project. It will open in the root App component, with its name listed in the left panel and the component represented by the white box on the canvas.
12+
- To add a new component, type its name in the upper right panel, in the field '**Add class component**', and press the plus button.
13+
- To render a component **_instance_** to the screen, first select the component, or _parent_, that the instance will be rendered within. This selected component will be represented in a new canvas view, with its own white box. Then press the plus button next to the component name. An instance, or _child_, representation will appear on the canvas.
14+
- To add draggable HTML elements, select the image icons on the lower left panel.
15+
- The bottom panel allows the user to toggle between 4 different views: a tree diagram of the application, a preview of the code, a form to enter component props, and a form to add HTML attributes.
16+
- **_Props_** can be added to each component within its tab on bottom panel. Enter in a _key-value pair_, select its data _type_ and press the bottom 'ADD PROP'.
17+
- **_HTML Element Attributes_** of class name and ID can be added to each HTML element after an HTML element has been rendered to the canvas.
18+
- To **_delete_** a _child_ or instance from the canvas, select the desired instance and either press the _delete_ key or click the 'DELETE CHILD' button.
19+
- To **_delete_** a _component_, click the 'DELETE' button of the desired component in the left panel.
20+
- To _start over_, select the blue 'CLEAR WORKSPACE' button in the left panel. This will **clear the entire application**.
21+
22+
### To Export Files
23+
24+
- Once finished setting up the application template, press the green 'EXPORT PROJECT' button at the bottom of the left panel and choose between two options to export your files:
25+
1. Export the component files into a src folder. This option will allow a developer to add these files to an existing project.
26+
1. Export a new project with TypeScript config files and the component files. This option will allow a developer to immediately begin a new project.
27+
28+
#### Authors
29+
30+
[Christian Padilla](linkedin.com/in/ChristianEdwardPadilla) [@ChristianEdwardPadilla](https://github.com/ChristianEdwardPadilla)
31+
32+
[Tolga Mizrakci](linkedin.com/in/tolga-mizrakci) [@tolgamizrakci](https://github.com/tolgamizrakci)
33+
34+
[Shlomo Porges](linkedin.com/shlomoporges) [@shlomoporges](https://github.com/ShlomoPorges)
35+
36+
[Adam Singer](linkedin.com/in/adsing) [@spincycle01](https://github.com/spincycle01)
37+
38+
## To Run Your Own Version
39+
40+
- **Fork** and **Clone** Repository.
41+
- Open project directory
42+
- Install dependencies
43+
44+
```bash
45+
yarn install
46+
```
47+
48+
- Run application
49+
50+
```bash
51+
yarn start
52+
```
53+
54+
- For development experience, in one terminal...
55+
56+
```bash
57+
yarn run dev
58+
```
59+
60+
- and on another terminal
61+
62+
```bash
63+
yarn run electron
64+
```
65+
66+
### Logo Design
67+
68+
## License
69+
70+
This project is licensed under the MIT License - see the [LICENSE.md]() file for details.

main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ const createWindow = () => {
6565
mainWindow = new BrowserWindow({
6666
width,
6767
height,
68+
webPreferences: {
69+
zoomFactor: 0.8,
70+
'node-Integration': false,
71+
},
6872
show: false,
6973
});
7074

src/public/styles/style.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ LEFT COLUMN
8080
.left {
8181
padding: 20px;
8282
width: 20%;
83-
/* min-width: 50px; */
83+
min-width: 350px;
8484
display: flex;
8585
flex-direction: column;
8686
position: relative;
@@ -282,3 +282,9 @@ div.rst__rowContents {
282282
.closeIcon:hover {
283283
cursor: pointer;
284284
}
285+
286+
/* @media only screen and (max-width: 560px) {
287+
.app-container {
288+
width: 80%;
289+
}
290+
} */

0 commit comments

Comments
 (0)