Comments (6)
能再进一步描述下问题吗?这个静态资源指的是什么。
from gaea-editor.
没有弄清楚问题的先关闭。
from gaea-editor.
子毅大神,这么问吧。你这个项目跑build命令产出的文件到底是什么?怎么用呢?我最近想开发一个基于react组件拖拽式的可视化开发,类似于阿里巴巴的飞冰项目。只不过我是想针对移动端的web App开发而已。
from gaea-editor.
-
前端如何安装并使用 gaea-editor:
npm install gaea-editor
,详情见文档:https://github.com/ascoders/gaea-editor#quick-start -
编辑状态:通过
onSave
回调拿到当前编辑字符串,保存在服务器端,下次刷新页面时通过 request 拿到上次编辑的字符串,赋给value
就可以恢复上次编辑状态,详细文档:https://github.com/ascoders/gaea-editor#options -
发布:
通过请求或者 vm 变量拿到用户在 gaea-editor
保存的 value,传给 gaea-app
即可渲染完整项目。
import { gaeaApp } from 'gaea-app'
class Test extends React.Component {
render() {
return gaeaApp(value)
}
}
这块文档是比较欠缺,我抽空补上。
from gaea-editor.
哦,大概懂了。你这里提到的value是json格式的抽象语法树?这么说,在“gaea-editor”项目下跑build命令产出的一大文件都是没用的?
from gaea-editor.
哦,大概懂了。你这里提到的value是json格式的抽象语法树?
是 gzip 后的字符串,原格式是 json。
在“gaea-editor”项目下跑build命令产出的一大文件都是没用的?
gaea-editor
提供的是 npm 包的使用方式,你不需要 fork gaea-editor 再跑 build 命令,这些我都在发布 npm 的时候做好了,你只需要 npm i gaea-editor
使用。
from gaea-editor.
Related Issues (20)
- 克隆项目 npm run start 报错 HOT 2
- Uncaught ReferenceError: Save is not defined HOT 2
- preComponents有什么作用呢? HOT 3
- src/components/box-editor/src/box-editor/box-editor.component.tsx报错 HOT 1
- npm run docs 后浏览器提示https不安全 HOT 1
- Local development run,got a mistake HOT 1
- 给组件设置margin后,hover框偏移
- [教程-图文] 关于在Window里面使用WSL(Liunx子系统)来开发gaea-editor HOT 2
- [BUG] 当属性过多的时候,无法点击到对应的添加事件的按钮 HOT 1
- window安装了包之后,启动 HOT 3
- npm run docs运行不起来 HOT 2
- 引入Editor报错,Xe.create is not a function HOT 5
- 如何初始化编辑器布局? HOT 2
- 代码没法运行 , 但是不知道什么报错 HOT 3
- 请问 container 组件的 Grow参数是什么用的 ? HOT 1
- 钉钉二维码过期 HOT 1
- npm run start 报错
- 有没有用 JavaScript 或 vue 写的类似可视化搭建库
- 源码代码找半天
- 请问如何获取editor component onchange event?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gaea-editor.