Coder Social home page Coder Social logo

Comments (6)

ascoders avatar ascoders commented on July 22, 2024

能再进一步描述下问题吗?这个静态资源指的是什么。

from gaea-editor.

ascoders avatar ascoders commented on July 22, 2024

没有弄清楚问题的先关闭。

from gaea-editor.

littlepoolshark avatar littlepoolshark commented on July 22, 2024

子毅大神,这么问吧。你这个项目跑build命令产出的文件到底是什么?怎么用呢?我最近想开发一个基于react组件拖拽式的可视化开发,类似于阿里巴巴的飞冰项目。只不过我是想针对移动端的web App开发而已。

from gaea-editor.

ascoders avatar ascoders commented on July 22, 2024
  1. 前端如何安装并使用 gaea-editor:npm install gaea-editor,详情见文档:https://github.com/ascoders/gaea-editor#quick-start

  2. 编辑状态:通过 onSave 回调拿到当前编辑字符串,保存在服务器端,下次刷新页面时通过 request 拿到上次编辑的字符串,赋给 value 就可以恢复上次编辑状态,详细文档:https://github.com/ascoders/gaea-editor#options

  3. 发布:

通过请求或者 vm 变量拿到用户在 gaea-editor 保存的 value,传给 gaea-app 即可渲染完整项目。

import { gaeaApp } from 'gaea-app'

class Test extends React.Component {
  render() {
    return gaeaApp(value)
  }
}

这块文档是比较欠缺,我抽空补上。

from gaea-editor.

littlepoolshark avatar littlepoolshark commented on July 22, 2024

哦,大概懂了。你这里提到的value是json格式的抽象语法树?这么说,在“gaea-editor”项目下跑build命令产出的一大文件都是没用的?

from gaea-editor.

ascoders avatar ascoders commented on July 22, 2024

哦,大概懂了。你这里提到的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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.