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

advint-rule-engine

v0.0.4

Published

一个基于 Vue 3 + TypeScript + X6 的规则引擎组件库。

Downloads

260

Readme

Advint Rule Engine

一个基于 Vue 3 + TypeScript + X6 的规则引擎组件库。

特性

  • 🚀 基于 Vue 3 + TypeScript 开发
  • 📦 支持按需引入
  • 🎨 使用 Advint UI 组件库
  • 📝 集成 CodeMirror 代码编辑器
  • 🔄 基于 X6 的流程图编辑器
  • 🎯 支持规则引擎的可视化配置

安装

# 使用 pnpm
pnpm add advint-rule-engine

# 使用 npm
npm install advint-rule-engine

# 使用 yarn
yarn add advint-rule-engine

快速开始

import { createApp } from 'vue'
import { RuleEngine } from 'advint-rule-engine'
import 'advint-rule-engine/lib/style.css'

const app = createApp(App)
app.use(RuleEngine)

组件

RuleEngineDesigner

规则引擎设计器组件,用于可视化配置规则。

Props

| 名称 | 类型 | 默认值 | 说明 | |------|------|--------|------| | value | RuleConfig | {} | 规则配置数据 | | options | DesignerOptions | {} | 设计器配置选项 | | readonly | boolean | false | 是否只读模式 |

Events

| 名称 | 参数 | 说明 | |------|------|------| | save | (config: RuleConfig) | 保存配置时触发 | | change | (config: RuleConfig) | 配置变更时触发 |

CodeEditor

基于 CodeMirror 的代码编辑器组件。

Props

| 名称 | 类型 | 默认值 | 说明 | |------|------|--------|------| | value | string | '' | 编辑器内容 | | language | string | 'javascript' | 代码语言 | | theme | string | 'default' | 编辑器主题 |

开发

# 安装依赖
pnpm bootstrap

# 启动开发服务器
pnpm dev

# 构建库文件
pnpm lib

# 代码检查
pnpm lint

# 类型检查
pnpm type:check

目录结构

├── packages/               # 源码目录
│   ├── pages/             # 页面组件
│   └── components/        # 基础组件
├── playground/            # 开发调试环境
├── internal/             # 内部工具和配置
└── lib/                  # 构建输出目录

技术栈

  • Vue 3
  • TypeScript
  • Element Plus
  • CodeMirror 5
  • Antv X6
  • Vite
  • pnpm

浏览器支持

  • Chrome >= 87
  • Firefox >= 78
  • Safari >= 14
  • Edge >= 88

License

MIT