0.0.1 • Published 5 months ago

@easy-editor/datasource-engine v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@easy-editor/core

Core engine package for EasyEditor.

Features

  • Decoupling Design:Engine core is framework-independent, supporting multiple framework rendering extensions
  • Visual Design:Complete implementation of the designer, drag-and-drop layout, snapping alignment, multi-device preview, undo/redo stack...
  • Plugin Architecture:Flexible plugin system design, lifecycle management, hotkey binding, class extension mechanism, dependency injection...
  • Rendering Engine:Multi-framework support, real-time preview, Schema driven, component isolation sandbox
  • Enterprise-level Capabilities:Data source management, multi-language support, version control, online collaboration

Usage

Dashboard + React

  1. Install
pnpm install @easyeditor/core
  1. Init
import { createEditor } from '@easyeditor/core'

export const editor = createEasyEditor({
  setters,
  components,
  componentMetas,
})

// get core modules
export const designer = await editor.onceGot<Designer>('designer')
export const project = await editor.onceGot<Project>('project')
export const simulator = await editor.onceGot<Simulator>('simulator')