1 Star 0 Fork 0

acrowise / ReacType

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ReacType

PRs Welcome License: MIT Version 8.0.0

ReacType is a rapid prototyping tool for developers employing React component architecture alongside the comprehensive type-checking of TypeScript. In other words, you can draw prototypes and export React / TypeScript code!

ReacType allows users to visualize their application architecture dynamically, employing a drag-and-drop canvas display , a real-time demo render , a real-time component code preview. Users can create components and drag instances of these components, as well as 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.

Download for MacOS, Windows, Linux.

  • Mac users: After opening the dmg and dragging ReacType into your Applications folder, ctrl+click the icon and select 'Open' from the context menu to run the app. This extra step is necessary since we don't have an Apple developer license yet.

  • Windows users: Install the application by running ReacType Setup 8.0.0.exe.

  • Linux users: Run the application as a super user in order to read and write files.

openingGif

How to use

  • Sign-in page: Sign up for an account, sign in via Github, or just continue as a guest. Registered users enjoy additional project-saving functionality.

  • Tutorial: Click ‘Tutorial’ from the Help tab’s dropdown menu (at the top left of the application) to view a tutorial.

  • Start a project (only after registration): Registered users can create a new project and select whether they want their project to be a Next.js, Gatsby.js, or classic React project. Also, registered users can save projects to return to them at a later time.

  • Add Components: Create components on the right panel. Components can be associated with a route, or they can be used within other components.

  • Delete Components: Delete components after focusing on them in the right panel. Be careful when deleting components: Upon deletion, all instances of the component will be removed within the application/project.

  • Add Custom Elements: Create custom elements or add provided HTML elements into the application. Once the project is exported, the HTML tags generated in the code preview will function as expected. You can specify functionality for custom elements in the code preview. The tutorial on HTML Elements explains more on how to do this.

  • Delete Custom HTML Elements: Delete custom HTML elements by clicking on the ‘X’ button adjacent to the element. Be careful when deleting custom elements: All instances of the element will be deleted within the application/project.

  • Create Instances on the Canvas: Each component has its own canvas. Add an element to a component by dragging it onto the canvas. Div components are arbitrarily nestable and useful for complex layouts. Next.js and Gatsby.js projects have Link components to enable client-side navigation to other routes.

  • Component Tree: Click on the Component Tree tab next to the Code Preview tab to view the component tree hierarchy.

  • Update Styling: Select an element on the canvas to update its basic style attributes on the right panel. As you create new instances and add styling, watch as your code dynamically generates in the code preview in the bottom panel.

  • User Preference Features: With the click of a button, toggle between light mode and dark mode, depending on your preference.

  • Export project: Click the “Export Project’ button to export the project’s application files into a TypeScript file. The exported project is fully functional with Webpack, Express server, routing, etc., and will match what is mocked on the canvas.

  • Export project with Tests: Click the "includes tests" checkbox while exporting to include pre-configured Webpack, Jest, and Typescript files along with tests for your project.

  • Elements may be added to components in any location, rather than only at the bottom

  • Compatibility with Gatsby.js

  • Modernized and cleaner UI, including enhanced dark mode

  • Tutorial has been updated to reflect other modifications

New with version 8.0.0:

CSSEditor

Features

  • OAuth via Github: Sign up with your github accounts.

  • Live Render Demo: Live render demo in React using Electron's sandbox environment. Updates in realtime to reflect canvas structure and customization options.

  • Annotations: Provide design notes directly on the canvas and have these persist while sharing designs with other engineers.

  • CSS Editor: Copy and paste custom css styles and classes into the editor and save to use personal or company designs in an instant.

  • State & Props Creator: Create custom state hooks with real-time updates in the code preview.

  • Application Style Update: Complete redesign of the entire application for enhanced user experience to maintain a single view application

  • Dashboard: Click the 'Dashboard' button to view the Public Dashboard and User Dashboard.

  • Like: Like other people's templates by clicking on the thumbs up icon.

  • Comment: Comment on other templates by typing in the input field and clicking the comment icon.

  • Download: Save any public template by clicking the download icon to save a copy as your own.

  • Publish: Publish any template to the Public Dashboard for other users to download, like, or comment on. Click again to unpublish projects.

  • Sort By: Click the 'Sort By' button to choose different metrics to sort the Public Dashboard by.

  • Form Nesting: Nesting within form tags is now fully functional

  • Added Undo and Redo functionality

  • Test Suite Export: pre-configured configuration & test file exports with application files.

  • Dark mode: change the theme of the app for a different asthetic.

AddAnnotations

Keyboard Shortcuts

Mac:

  • Export Project: Command + e
  • Undo: Command + z
  • Redo: Command + Shift + z
  • Save Project As: Command + s
  • Save Project: Command + shift + s
  • Delete HTML Tag on Canvas: Backspace
  • Delete Project: Command + Backspace
  • Open Project: Command + o

Windows:

  • Export Project: Control + e
  • Undo: Control + z
  • Redo: Control + Shift + z
  • Save Project As: Control + s
  • Save Project: Control + shift + s
  • Delete HTML Tag on Canvas: Backspace
  • Delete Project: Control + Backspace
  • Open Project: Control + o

Contributors

Alex Yu @buddhajjigae

Aaron Bumanglag @akbuma

Adam Singer @spincycle01

Alex Wolinsky @aw2934

Andrew Cho @andrewjcho84

Anthony Torrero @Anthonytorrero

Brian Han @brianjshan

Charles Finocchiaro @null267

Chelsey Fewer @chelseyeslehc

Christian Padilla @ChristianEdwardPadilla

Danial Reilley @dreille

Daryl Foster @MadinventorZero

Diego Vazquez @diegovazquezny

Edward Park @eddypjr

Elena Conn @elenaconn

Eliot Nguyen @ibeeliot

Fredo Chen @fredosauce

Jonathan Calvo Ramirez @jonocr

Jesse Zuniga @jzuniga206

Jin Soo Lim @jinsoolim

Julie Wu @yutingwu4

Kevin Park @xkevinpark

Khuong Nguyen @khuongdn16

Linh Tran @Linhatran

Luke Madden @lukemadden

Miles Wright @Miles818

Mitchel Severe @mitchelsevere

Natalie Vick @natattackvick

Nel Malikova @gmal1

Philip Hua @pmhua

Sean Sadykoff @sean1292

Shana Hoehn @slhoehn

Shlomo Porges @shlomoporges

Sophia Huttner @sophjean

Stormi Hashimoto @stormikph

Tolga Mizrakci @tolgamizrakci

Tony Ito-Cole @tonyito

Tyler Sullberg @tsully

William Rittwage @wbrittwage

William Yoon @williamdyoon

To Run Your Own Version

  • Fork and Clone Repository.
  • Open project directory
  • Install dependencies
npm install
  • To run the production build
npm run prod
  • To run the development build
npm run dev
  • Please note that the development build is not connected to the production server. npm run dev should spin up the development server from the server folder of this repo. For additional information, the readme is here. Alternatively, you can select "Continue as guest" on the login page of the app, which will not use any features that rely on the server (authentication and saving project data.)

To Run Your Exported Next.js or Gatsby.js Project

  • Open exported project directory
  • Install dependencies
npm install
  • Build the app
npm run build
  • Start an instance
npm run start
  • Open browser and navigate to localhost at specified port

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

MIT License Copyright (c) 2021 ReacType 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: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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.

简介

🧪 Prototyping Tool for exporting React/Typescript Applications! 展开 收起
TypeScript 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/acrowise/ReacType.git
git@gitee.com:acrowise/ReacType.git
acrowise
ReacType
ReacType
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891