Giter Site home page Giter Site logo

shjiang / bodylight-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from creative-connections/bodylight-editor

0.0 0.0 0.0 99.8 MB

Optional interactive Markdown editor with enhanced support of Bodylight web components and live preview. Use this to build web simulators using bodylight components v2.0.

Home Page: https://bodylight.physiome.cz/Bodylight-Editor/

JavaScript 73.08% HTML 16.25% Shell 1.91% CSS 0.93% TypeScript 7.63% EJS 0.21%

bodylight-editor's Introduction

Bodylight Editor

Project stage: Development

Web editor to facilitate creation of web simulators. Employs ACE editor using markdown/xml mode and generates preview using markdown-it and bodylight web components.

Development

This project is bootstrapped by aurelia-cli.

  • Run dev app - npm start, then open http://localhost:8080
  • Build for production - npm run build, or the old way au build --env prod.
  • Unit tests - npm run test or au test (or au jest).

Publish release

Use np from https://www.npmjs.com/package/np as follows:

np 1.0.0 --no-publish

This won't publish to NPM, but will create release, check git repo, run tests, create release tags and draft in github.

Publish GH pages

using scripts in bin/ directory

au build; cd bin; ./publishsite.sh

will deploy the dist folder into Github Pages.

Usage

  1. Create new project OR load existing project using Project menu.
  2. Create new file OR upload existing files
    • MD file - contains document with Bodylight components
    • ZIP file - it is expected to be output of FMU Compiler - JS with WebAssembly and FMU, modelDescription.XML),
    • JS file - it is expected to be Adobe Animate project exported to CreateJS,EaselJS library
    • other file (PNG,GIF,JPG) - it is expected as static or animated images
  3. Edit text in middle pane (Editor). Use toolbar to add bodylight components or standard tags. See preview in the right panel.
    • component-name inserts component into the cursor position of editor
    • shows help for particular component
    • undo the operation of addin the item
    • redo the operation of addin the item
    • H1 H2 ... - adds bold,italic, header 1, header 2, ...
    • Preview is rendered when
      • creating new line by pressing Enter
      • deleting line by Delete or BackSpace
  4. Save project or export project (HTML with bodylight.bundle.js) using Project menu.

Other tools

Sample web simulators

bodylight-editor's People

Contributors

actions-user avatar tomaskulhanek avatar

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.