Git Product home page Git Product logo

turbo-client's Introduction

Turbo Client

turbo执行引擎对应前端项目。

使用方式

在本地启动turbo项目后,将.env.development中的VITE_SERVER_ADDR地址改成后端服务地址。一般后端默认就是8080, 也可以不改。

演示效果

1

2

turboAdapter

由于logicflow默认的数据格式和turbo默认的数据格式存在一定差异。所以我们需要使用turboAdapter来实现将logicflow的数据格式与turbo数据格式的相互转换。turboAdapter已经被封装为一个插件,所以直接当做插件使用即可。使用方式

import LogicFlow from '@logicflow/core'
import { BpmnElement } from '@logicflow/extension'
import '@logicflow/core/dist/style/index.css'
import '@logicflow/extension/lib/style/index.css'
import turboAdapter from './turboAdapter'

this.lf = new LogicFlow({
  // ...
  plugins: [
    BpmnElement,
    turboAdapter,
  ]
})

如上源码所示:turboAdapter默认将turbo数据转换为bpmn节点,在实际项目中,可以完全自定义节点,而不是使用bpmn节点。具体用法请参考LogicFlow自定义节点

启动遇到问题

如果没有nodejs环境,可以直接复制dist里面的静态文档到后端项目的静态资源服务器即可,如tomcat。

turbo-client's People

Contributors

towersxu 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.