-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
134 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,135 @@ | ||
# Quasi | ||
# Quasi Studio | ||
|
||
The monorepo for Quasi Studio. | ||
A [structure-oriented](https://github.com/Structure-oriented-Framework/SOF) and unprecedented LCDP (Low-Code Development Platform). | ||
|
||
**Licensed under GNU GPL v3** | ||
|
||
- Designed for professional developers | ||
- Intuitive and easy to use | ||
- Build with [Refina.js](https://refina.vercel.app) | ||
|
||
## Preview | ||
|
||
| Quasi Graph | ![example-graph](./docs/media/example-graph.png) | | ||
| -------------- | -------------------------------------------------- | | ||
| Output Preview | ![example-output](./docs/media/example-output.png) | | ||
|
||
## Features | ||
|
||
### 📦 Block | ||
|
||
- **Special Blocks**: Used to process data and control the flow of the application. | ||
- **Component Blocks**: Used to build the layout of the application. | ||
- **View Blocks**: Used to split and reuse the layout of the application. | ||
|
||
### 🔌 Socket | ||
|
||
There are several sockets in a block, and they are used to connect to other blocks. | ||
|
||
### 🧵 Line | ||
|
||
Connect one socket to another. | ||
|
||
### Different Types of Sockets and Lines | ||
|
||
> Only the same type of Socket and Line can be connected to each other. | ||
#### 🌳Layout Line / Layout Socket | ||
|
||
Control the layout. | ||
|
||
The socket is square, and the line is brown. | ||
|
||
#### 🧳Data Line / Data Socket | ||
|
||
"Pull" data from one block to another. | ||
|
||
The socket is semi-circular, and the line is blue. | ||
|
||
#### ⚡Event Line / Event Socket | ||
|
||
"Push" an event from one block to another. | ||
|
||
The socket is triangular, and the line is green. | ||
|
||
### So, How to Use Quasi Studio? | ||
|
||
1. Think about the layout and logic of your app | ||
2. Drag the corresponding Component Block to the graph | ||
3. Connect these blocks with Layout Line | ||
4. Handle events. Connect the event from the Component Block to the block that handles the event | ||
5. Get data. Connect the data from the Component Block to the block that needs the data | ||
|
||
### Other Functions | ||
|
||
👁 Quick preview | ||
|
||
↩️ Undo /↪️ Redo | ||
|
||
⬇️ Import / ⬆️ Export / 🔄️ Autosave | ||
|
||
✏️ Embed Monaco Editor | ||
|
||
📸 Generate high-resolution images of your design graph | ||
|
||
## Design Principles | ||
|
||
### Fine-grained or coarse-grained? | ||
|
||
- Most of the low-code platforms are coarse-grained, which means they provide a set of predefined components and you can only use them to build your app. | ||
- Quasi Studio is fine-grained, which means you can build your own components and use them in the graph. | ||
- However, unlike Scratch, Quasi Studio is designed for professional developers and focuses on development efficiency. | ||
|
||
### Mix Layout and Logic | ||
|
||
- Traditional low-code platforms separate layout and logic, which means you can only use the visual editor to design the layout and write code to implement the logic. | ||
- Quasi Studio mixes layout and logic, which means you can use the visual editor to design the layout and implement the logic at the same time. | ||
|
||
## Development | ||
|
||
### Directory Structure | ||
|
||
This is a monorepo, and the directory structure is as follows: | ||
|
||
1. `browser-tailwind`: Tailwind Compiler for the browser. | ||
2. `compiler`: Compile the graph to the runnable code. | ||
3. `mdui2-dts`: Generate a single DTS file of MdUI | ||
4. `monaco-editor`: Monaco Editor as a Refina component. | ||
5. ⭐`northstar`: The major part of Quasi Studio. | ||
6. `runtime`: Runtime for the Quasi Studio generated app. | ||
7. ⭐`visual-flow`: DnD library for building blocks, lines, and sockets. | ||
|
||
### Dependency Graph | ||
|
||
> Together with [Refina.js](https://refina.vercel.app). | ||
```mermaid | ||
graph LR | ||
A(refina/core) --> B(refina/fluentui) | ||
M(quasi-dev/monaco-editor) ---> G | ||
A ---> M | ||
A --> C(refina/mdui) | ||
A --> D(refina/router) | ||
B --> E(quasi-dev/visual-flow) | ||
B --> F(quasi-dev/block-data) | ||
E --> G("quasi-dev/northstar (LCDP)") | ||
F --> G | ||
F --Provide data--> H(quasi-dev/compiler) | ||
T(quasi-dev/browser-tailwind) --Invoked by--> H | ||
H --Invoked by--> G | ||
H -.Generate.-> I([User's App]) | ||
A --Runtime dep----> I | ||
B --Runtime dep----> I | ||
C ---> R(quasi-dev/runtime) --Runtime dep--> I | ||
D --Runtime dep----> I | ||
class A,B,C,D refina; | ||
classDef refina stroke:#ff0; | ||
style G stroke-width:3px,stroke:#91C1EB; | ||
style I stroke-width:3px,stroke:lightgreen; | ||
``` | ||
|
||
### Start Development | ||
|
||
```bash | ||
pnpm dev | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.