Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update article-23.md #1637

Open
wants to merge 61 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a631c3a
refactor: 重构 LogicFlow 项目结构,升级打包工具,使用 pnpm 做包管理工具
Jan 4, 2024
5049580
refactor: sites 中新增 docs 作为文档官网
Jan 4, 2024
f3ebf65
refactor: rename index.tsx -> index.ts, update dependencies and decla…
boyongjiong Jan 10, 2024
ab809ac
feat: 配置 husky pre-commit
boyongjiong Jan 10, 2024
43b173b
fix: fix type, 完善 LogicFlow.tsx 主文件类型定义
boyongjiong May 6, 2024
6c3ef48
refactor: 重构 engine 模块代码,使用 sandbox.js 解决 iframe 频繁 append 导致的性能问题
boyongjiong May 6, 2024
54facb2
feat: update 「sites/docs」更新官方文档
boyongjiong May 6, 2024
ff9f7f4
feat: update .gitignore
boyongjiong May 6, 2024
ae228b7
feat: git rm -r --cached sites/docs/.dumi/tmp
boyongjiong May 6, 2024
4306010
feat: add index.less
boyongjiong May 6, 2024
66cb19a
refactor: 解决项目中 core 包 TypeScript 类型错误导致打包失败的问题
boyongjiong May 8, 2024
10f63c8
refactor: core 包中 'preact' -> 'preact/compat' 解决 svg 属性问题
boyongjiong May 8, 2024
c461fc9
refactor: extension 包中代码重构,解决 TypeScript 类型定义的问题,完成打包改造
boyongjiong May 10, 2024
2e543b7
refactor: core 包中类型定义完善,解决在 extension 包重构过程中遇到的 Core 包问题
boyongjiong May 10, 2024
2202376
feat: @logicflow/engine 默认使用 browser 执行代码,node 端也使用 @nyariv/sandboxjs…
boyongjiong May 10, 2024
177498a
refactor: 代码重构过程中配置改造
boyongjiong May 10, 2024
4848f40
docs: update docs
boyongjiong May 10, 2024
2fe5eb8
docs: update examples
boyongjiong May 10, 2024
6be5a2c
refactor: 项目代码重构,包括 examples、extension 及 core 包
boyongjiong May 10, 2024
fa9f126
docs: add feature-examples DEMO 项目,用于汇总所有官方 demo,后续再 docs 中使用
boyongjiong May 10, 2024
2490cce
feat: 完成 feature-examples 中 demo 的改造,增加 graph 页面
boyongjiong May 10, 2024
e61626b
feat: 优化 DndPanel 的demo
boyongjiong May 11, 2024
fc72df9
feat: 开发 feature-examples 中 BPMN 插件 demo
boyongjiong May 13, 2024
427107a
feat: rename Control -> control, Node -> node
boyongjiong May 13, 2024
3212db3
feat: feature-examples 中增加 BPMN demo
boyongjiong May 15, 2024
15c6028
refactor: 文件夹重命名,将大驼峰命名修改为 小写+短横线
boyongjiong May 16, 2024
29a3eb0
refactor: 优化 bpmn 插件的导出内容
boyongjiong May 16, 2024
fc563ec
fix: 修复 GraphModel 中 getAreaElement 方法的 bug 及一些其他类型定义的优化
boyongjiong May 16, 2024
2fd2e0d
feat: engine-browser-examples bpmn demo 更新
boyongjiong May 16, 2024
4802f1e
fix: 修复 GroupNode 中 getNodeStyle 解构后调用,BaseNodeModel 中 getNodeStyle 方…
boyongjiong May 21, 2024
f9ea036
feat: 解决 git config core.ignorecase 为 true 导致修改文件夹名大小写不生效的问题
boyongjiong May 31, 2024
3dd79f9
feat: feature-examples 中增加 SelectionSelect demo
ChangeSuger May 30, 2024
22f46b2
fix: 通过 git rm --cached Xxxx 移除修改大小写的文件夹内容
May 31, 2024
59bcf8b
feat: update deprecated dependencies,fix vue3-memory-leak import error
boyongjiong May 31, 2024
a67306d
feat: 新增 next-app 用来测试服务端渲染项目中 window is not defined 的问题
boyongjiong Jun 4, 2024
e7b048b
fix: 修复 vue3-memory-leak 项目中引入 vue 文件报错的问题
boyongjiong Jun 4, 2024
0800bfb
fix: 主要修复 TextEditTool 无效的 bug,后注原因
boyongjiong Jun 4, 2024
e111348
docs: typo
May 31, 2024
aad9fd0
feat: 框选插件重构与示例内容丰富
ChangeSuger Jun 6, 2024
74a0882
feat: 小地图插件重构与相关示例增加
ChangeSuger Jun 6, 2024
9afcda9
feat: 开发 react-node-registry 包用于用户自定义 react 节点
boyongjiong Jun 6, 2024
e17dcf8
feat: react-node-registry 包增加 LICENSE 文件
boyongjiong Jun 12, 2024
1563166
feat: 开发 vue-node-registry 包用于用户自定义 vue 节点
boyongjiong Jun 12, 2024
a8b1c2e
feat: 新增 vue3-app 用于测试 vue-node-registry,后续使用该项目开发 vue 组件或 demo
boyongjiong Jun 12, 2024
07cfa0d
feat: selection-select 插件中 disabled 默认设置为 true
boyongjiong Jun 12, 2024
ef92a41
docs: 完善 README.md 以及 CONTRIBUTING 相关文档,解决 eslint 问题
boyongjiong Jun 13, 2024
20568e4
refactor(extension): 移除 extension 包中 examples 文件夹,已转移到 examples/featu…
boyongjiong Jun 13, 2024
dd6087a
refactor: 完善core包与group插件的类型定义
ChangeSuger Jun 8, 2024
9b30841
refactor: 完善与修正core包的部分类型定义
ChangeSuger Jun 14, 2024
5d16cab
feat: minimap插件功能完善与相关示例丰富
ChangeSuger Jun 14, 2024
349252c
refactor(core): 完善 BaseEdge 和 BaseNode 泛型类型,内置节点 props 定义更新
boyongjiong Jun 16, 2024
4f5d31f
refactor(core): 重构 LogicFlow.tsx 以及 GraphMode 代码,代码按功能分区管理
boyongjiong Jun 16, 2024
777e130
chore(.github): add update_contributors.yml to update contributors us…
boyongjiong Jun 17, 2024
0531894
refactor: core包类型定义完善
ChangeSuger Jun 15, 2024
82fa404
feat: 小地图插件新增功能与示例丰富
ChangeSuger Jun 15, 2024
dc40077
refactor: extension包的类型定义修复
ChangeSuger Jun 17, 2024
8072f89
fix: 修复小地图的预览视窗无法拖拽的问题
ChangeSuger Jun 18, 2024
995c41a
fix: cr问题修复
ChangeSuger Jun 18, 2024
c1f8ae4
fix: 小地图设置回调逻辑调整为抛出事件
ChangeSuger Jun 18, 2024
669e589
chore(.github): update update_contributors.yml and test
boyongjiong Jun 19, 2024
2be95f5
Update article-23.md
VarianLIn Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 9 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# don't ever lint node_modules
node_modules

# don't lint build output (make sure it's set to your correct build folder name)
dist
*.min.js
es/**
lib/**
dist/**

# don't lint nyc coverage output
coverage
types
Expand All @@ -10,4 +15,6 @@ packages/core/types
packages/extension/src/bpmn-adapter/xml2json.ts
packages/extension/src/bpmn-adapter/json2xml.ts

**/*.d.ts
examples/vue3-memory-leak

**/*.d.ts
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "import"],
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
73 changes: 0 additions & 73 deletions .eslintrc.js

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!--- Provide a general summary of your changes in the Title above --->

### Description

<!--- Describe your changes in detail --->

### Motivation and Context

<!--- Why is this change required? What problem does it solve? --->
<!--- If it fixes an open issue, please link to the issue here. --->
<!--- GIF or snapshot should be provided if includes UI/interactive modification. --->
<!--- How to fix the problem, and list final API implementation and usage sample if that is an new feature. --->

### Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Enhancement (changes that improvement of current feature or performance)
- [ ] Refactoring (changes that neither fixes a bug nor adds a feature)
- [ ] Test Case (changes that add missing tests or correct existing tests)
- [ ] Code style optimization (changes that do not affect the meaning of the code)
- [ ] Docs (changes that add or update documentation)
- [ ] Chore (changes that do not modify src or test files)

### Self Check before Merge

<!--- Go over all the following points, and put an `x` in all the boxes that apply. --->
<!--- If you're ensure about any of these, don't hesitate to ask. We're here to help! --->
- [ ] My code follows the code style of this project
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] I have read the [**CONTRIBUTING**](https://github.com/didi/LogicFlow/blob/next/CONTRUBUTING.en-US.md) document
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
23 changes: 23 additions & 0 deletions .github/workflows/update_contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🤝 Update Contributors
on:
schedule:
- cron: '0 1 * * *'
push:
branches:
- master
- next
- next-major
- alpha
- beta
jobs:
contrib-readme-job:
runs-on: ubuntu-latest
name: A job to automate contributors in readme
permissions:
contents: write
pull-requests: write
steps:
- name: Generate Contributors List
uses: akhilmhdh/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }}
38 changes: 24 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
.idea
# dependencies
node_modules
dist
coverage
types/*
types
*.DS_Store

# production
lib
!packages/mvp/lib
cjs
esm
es
site-build
dist
output

coverage
types/**

# misc
.DS_Store
.pnpm-*.log
.idea
.turbo
npm-debug.log
yarn-error.log

/.github_token
/TMP_CHANGELOG.md
/.openai_token
/.github_account

logic-flow-docs.tar.gz
*.log
*/.eslintcache
.eslintcache
~*

tmp
tmp-production
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1
npx --no -- commitlint --edit ${1}
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
npx lint-staged
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock=false
registry=https://registry.npmmirror.com/
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Ignore artifacts:
*.sh
*.yml
*.yaml
*.svg
*.gif
*.log
*.md

.next
.DS_Store
CNAME
AUTHORS
LICENSE
LICENSE

node_modules
es/
lib/
dist/
public/
16 changes: 12 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"semi": true,
"trailingComma": "all"
}
"printWidth": 80,
"trailingComma": "all",
"proseWrap": "never",
"endOfLine": "auto",
"useTabs": false,
"overrides": [
{ "files": ".eslintrc", "options": { "parser": "json" } },
{ "files": ".prettierrc", "options": { "parser": "json" } },
{ "files": ".stylelintrc", "options": { "parser": "json" } }
]
}
23 changes: 23 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-rational-order",
"stylelint-config-prettier"
],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-less",
"rules": {
"block-no-empty": null,
"function-name-case": "lower",
"comment-empty-line-before": null,
"no-invalid-double-slash-comments": null,
"no-descending-specificity": null,
"declaration-empty-line-before": null,
"no-duplicate-selectors": null,
"value-no-vendor-prefix": null,
"selector-pseudo-class-no-unknown": null,
"selector-class-pattern": null,
"keyframes-name-pattern": null,
"number-max-precision": null
}
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.words": ["Logicflow", "preact", "Snapline"]
}
Loading