npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@unicom-blockchain/workflow-designer

v1.0.11

Published

```typescript // 双向绑定数据,数据保持以下格式 //待定 { "nodeList": Node[], // 节点列表 "linkList": Link[], // 连接线列表 "attr": [key: string]: any, // 其他冗余数据 "status": enum, // 全流程状态 "id": string; // 工作流id "name": string; // 工作流名称 }

Downloads

11

Readme

props

v-model:data

// 双向绑定数据,数据保持以下格式 //待定
{
  "nodeList": Node[], // 节点列表
  "linkList": Link[], // 连接线列表
  "attr": [key: string]: any, // 其他冗余数据
  "status": enum, // 全流程状态
  "id": string; // 工作流id
  "name": string; // 工作流名称
}

type Node {
    type: string, //节点类型
    nodeName: string, //节点唯一名称
    flowType: "action" | "trigger", // 节点功能 动作或触发器
    inputs: string[], // 工作流入
    outputs: string[], // 工作流出
    icon: string, // 图标
    description?: string, //节点描述
    disabled?: boolean, //是否禁用
    displayName: string, // 节点展示名称
    parameters: Schema, // 节点配置schema
    setting: [key: string]: any, // 节点基础设置 重试策略等
    value: [key: string]: any, // 节点属性值
    x: number, // 横坐标
    y: number, // 纵坐标
}

type Link {
  id: string, // 自动生成唯一id
  sourceId: string, // 源节点id
  targetId: string, // 目标节点id
  sourceOutput: string, // 源节点出参
  targetInput: string, //目标节点入参
  label: string, // 连线注释
}

v-model:select

当前选中节点

readOnly

// 设置工作流是否只读,默认false

methods

registNodes TODO

// 注册节点,节点格式保持以下格式
  type: string, //节点类型,用于区分,
  nodeName: string, // 节点唯一名称
  icon: string, //节点图标
  inputs: string[], // 入参,保持在4个以内
  outputs: string[], // 出参,保持在4个以内
  parameters: {}, // 低代码渲染json,目前保持与form-create(v3)保持一致

deleteNode TODO

删除节点

params:

| 参数 | 说明 | |-----|-----| | id | 节点唯一id |

testWorkflow TODO

测试工作流

| 参数 | 说明 | |----------|---------| | callback | 测试完成的回调 |

events

setNodeParams

点击节点设置按钮
function(node){
    // node: 点击的节点
}