Skip to content

Commit 51a5415

Browse files
authored
Merge pull request #149 from oslabs-beta/staging
Upgrading ReacType to version 2.0
2 parents 286a83e + 0c0b1b6 commit 51a5415

File tree

91 files changed

+7102
-23660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+7102
-23660
lines changed

.babelrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
}
88
],
99
"react",
10-
"stage-0"
10+
"stage-0",
1111
],
12-
"plugins": ["transform-es2015-modules-commonjs"]
12+
"plugins": ["transform-es2015-modules-commonjs"],
13+
"env": {
14+
"test": {
15+
"plugins": ["transform-es2015-modules-commonjs"]
16+
}
17+
}
1318
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Created by https://www.gitignore.io/api/node,linux,macos,windows,visualstudio,yarn
2-
2+
yarn.lock
3+
package-lock.json
4+
.prettierrc.json
35
### Linux ###
46
*~
57

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 80,
3+
"singleQuote": true,
4+
"trailingComma": "none"
5+
}

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
language: node_js
22
node_js:
3-
- "8"
4-
- "10"
3+
- 10

README.md

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<p align="center">
23
<img width="50" src="https://github.com/team-reactype/ReacType/blob/master/src/public/icons/png/256x256.png?raw=true">
34
<h1 align="center">ReacType </h1>
@@ -6,34 +7,44 @@
67
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/team-reactype/ReacType/pulls)
78
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
89

9-
**ReacType** is a visual prototyping tool for developers employing **React** component architecture alongside the comprehensive type checking of **TypeScript**.
10+
**ReacType** is a visual prototyping tool for developers employing **React** component architecture alongside the comprehensive type checking of **TypeScript**.
1011
In other words, **you can draw prototypes and export React / Typescript code!**
1112

1213
**ReacType** allows the user to _visualize_ their application architecture dynamically, employing a _canvas display_, an _application tree_, and a _real-time 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.
1314

14-
Download for [MacOS](https://github.com/team-reactype/ReacType/releases/tag/Mac.Version.1.0), [Windows](https://github.com/team-reactype/ReacType/releases/tag/Win.Version.1.0), [Linux](https://github.com/team-reactype/ReacType/releases/tag/Linux.Version.1.0).
15+
**New with version 2.0:**
16+
- React Native mode for iOS/Andoird app design
17+
- Hooks integration with functional components
18+
- History navigation
19+
- Tutorial mode
20+
- New keyboard shortcuts
21+
- Editable code preview
22+
- Prop value designation for component children
23+
24+
Download for [MacOS](https://github.com/team-reactype/ReacType/releases), [Windows](https://github.com/team-reactype/ReacType/releases/), [Linux](https://github.com/team-reactype/ReacType/releases/).
25+
26+
* **Mac users**: for now you might need to go to your security settings to allow the app run on your system as we do not have an Apple license yet.
1527

16-
- **Mac users**: for now you might need to go to your security settings to allow the app run on your system as we do not have an Apple license yet.
28+
* **Linux users**: run the application as a super user in order to read and write files.
1729

18-
![Image of ReacType Application](https://i.imgur.com/0wV7R1P.jpg)
30+
![Image of ReacType Application](https://i.imgur.com/OgcP9II.png)
1931

2032
### How to use
2133

2234
- 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.
35+
- Switch to React Native mode to change the interface to a mobile app development environment
2336
- To add a new component, type its name in the upper left panel, in the field '**Add class component**', and press enter.
2437
- 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.
2538
- To add draggable **HTML elements**, select the image icons on the lower left panel.
2639

27-
![Gif of adding](https://imgur.com/sZloD8o.gif)
40+
![Gif of adding](https://i.imgur.com/hdVTFcP.gif)
2841

2942
- The bottom panel allows the user to toggle between 4 different views: a **tree diagram of the application**, a **real-time preview of the exportable code**, a form to enter component props, and a form to add HTML attributes.
3043

31-
![Gif of code preview & tree](https://imgur.com/KZb2UTO.gif)
32-
3344
- **_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'.
3445
- **_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.
3546

36-
![Gif of attr & props](https://imgur.com/JgCiBE9.gif)
47+
![Gif of attr & props](https://i.imgur.com/cmgOLLN.gif)
3748

3849
- To **_delete_** a _child_ or instance from the canvas, select the desired instance and either press the _delete_ key.
3950
- To **_delete_** a _component_, click the 'DELETE' button of the desired component in the left panel.
@@ -46,6 +57,7 @@ Download for [MacOS](https://github.com/team-reactype/ReacType/releases/tag/Mac.
4657
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.
4758

4859
#### Contributors
60+
4961
[Adam Singer](https://linkedin.com/in/adsing) [@spincycle01](https://github.com/spincycle01)
5062

5163
[Charles Finocchiaro](https://www.linkedin.com/in/charles-finocchiaro-62440040/) [@null267](https://github.com/null267)
@@ -54,29 +66,56 @@ Download for [MacOS](https://github.com/team-reactype/ReacType/releases/tag/Mac.
5466

5567
[Christian Padilla](https://linkedin.com/in/ChristianEdwardPadilla) [@ChristianEdwardPadilla](https://github.com/ChristianEdwardPadilla)
5668

69+
[Eliot Nguyen](https://linkedin.com/in/ibeeliot) [@ibeeliot](https://github.com/ibeeliot)
70+
71+
[Jesse Zuniga](https://linkedin.com/in/jesse-zuniga) [@jzuniga206](https://github.com/jzuniga206)
72+
5773
[Mitchel Severe](https://www.linkedin.com/in/misevere/) [@mitchelsevere](https://github.com/mitchelsevere)
5874

5975
[Natalie Vick](https://www.linkedin.com/in/vicknatalie/) [@natattackvick](https://github.com/natattackvick)
6076

6177
[Nel Malikova](https://www.linkedin.com/in/gmalikova/) [@gmal1](https://github.com/gmal1)
6278

79+
[Sean Sadykoff](https://www.linkedin.com/in/sean-sadykoff/) [@sean1292](https://github.com/sean1292)
80+
6381
[Shlomo Porges](https://linkedin.com/shlomoporges) [@shlomoporges](https://github.com/ShlomoPorges)
6482

6583
[Sophia Huttner](https://www.linkedin.com/in/sophia-huttner-68315975/) [@sophjean](https://github.com/sophjean)
6684

6785
[Tolga Mizrakci](https://linkedin.com/in/tolga-mizrakci) [@tolgamizrakci](https://github.com/tolgamizrakci)
6886

87+
[Tony Ito-Cole](https://linkedin.com/in/tony-ito-cole) [@tonyito](https://github.com/tonyito)
6988

7089
## To Run Your Own Version
7190

7291
- **Fork** and **Clone** Repository.
7392
- Open project directory
7493
- Install dependencies
7594

76-
## License
95+
- npm works in place of yarn as well.
7796

78-
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/team-reactype/ReacType/blob/development/LICENSE.md) file for details.
97+
```bash
98+
yarn install
99+
```
100+
101+
- Run application
102+
103+
```bash
104+
yarn start
105+
```
106+
107+
- For development experience, in one terminal...
79108

109+
```bash
110+
yarn run dev
80111
```
81112

113+
- and on another terminal
114+
115+
```bash
116+
yarn run electron
82117
```
118+
119+
## License
120+
121+
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/team-reactype/ReacType/blob/development/LICENSE.md) file for details.

__mocks__/electron.js renamed to __mocks__/electron.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ const ipcRenderer = {
33
on: jest.fn(),
44
};
55

6-
export default ipcRenderer;
6+
module.exports = ipcRenderer;

electron-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ linux:
77
target:
88
- AppImage
99
- deb
10-
maintainer: spincycle01@yahoo.com
10+
maintainer: sean.sadykoff@gmail.com
1111
mac:
1212
category: public.app-category.developer-tools
1313
target: dmg
@@ -29,4 +29,4 @@ dmg:
2929
'y': 150
3030
type: link
3131
path: /Applications
32-
electronVersion: 2.0.7
32+
electronVersion: 3.0.0

0 commit comments

Comments
 (0)