Skip to content

Commit 70bac4a

Browse files
committed
重构版
1 parent edc39d8 commit 70bac4a

File tree

134 files changed

+9172
-5530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+9172
-5530
lines changed

.env

-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
# title
22
VITE_GLOB_APP_TITLE=lowflow-design
3-
4-
# 本地运行端口号
5-
VITE_PORT=8848
6-
7-
# 启动时自动打开浏览器
8-
VITE_OPEN=true

.env.development

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# 本地环境
2-
VITE_USER_NODE_ENV=development
3-
41
# 公共基础路径
52
VITE_PUBLIC_PATH=/
63

.env.test

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# 本地环境
2-
VITE_USER_NODE_ENV=development
3-
41
# 公共基础路径
52
VITE_PUBLIC_PATH=/
63

.eslintrc-auto-import.json

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"globals": {
3+
"Component": true,
4+
"ComponentPublicInstance": true,
5+
"ComputedRef": true,
6+
"EffectScope": true,
7+
"ExtractDefaultPropTypes": true,
8+
"ExtractPropTypes": true,
9+
"ExtractPublicPropTypes": true,
10+
"InjectionKey": true,
11+
"PropType": true,
12+
"Ref": true,
13+
"VNode": true,
14+
"WritableComputedRef": true,
15+
"computed": true,
16+
"createApp": true,
17+
"customRef": true,
18+
"defineAsyncComponent": true,
19+
"defineComponent": true,
20+
"effectScope": true,
21+
"getCurrentInstance": true,
22+
"getCurrentScope": true,
23+
"h": true,
24+
"inject": true,
25+
"isProxy": true,
26+
"isReactive": true,
27+
"isReadonly": true,
28+
"isRef": true,
29+
"markRaw": true,
30+
"nextTick": true,
31+
"onActivated": true,
32+
"onBeforeMount": true,
33+
"onBeforeRouteLeave": true,
34+
"onBeforeRouteUpdate": true,
35+
"onBeforeUnmount": true,
36+
"onBeforeUpdate": true,
37+
"onDeactivated": true,
38+
"onErrorCaptured": true,
39+
"onMounted": true,
40+
"onRenderTracked": true,
41+
"onRenderTriggered": true,
42+
"onScopeDispose": true,
43+
"onServerPrefetch": true,
44+
"onUnmounted": true,
45+
"onUpdated": true,
46+
"provide": true,
47+
"reactive": true,
48+
"readonly": true,
49+
"ref": true,
50+
"resolveComponent": true,
51+
"shallowReactive": true,
52+
"shallowReadonly": true,
53+
"shallowRef": true,
54+
"toRaw": true,
55+
"toRef": true,
56+
"toRefs": true,
57+
"toValue": true,
58+
"triggerRef": true,
59+
"unref": true,
60+
"useAttrs": true,
61+
"useCssModule": true,
62+
"useCssVars": true,
63+
"useLink": true,
64+
"useRoute": true,
65+
"useRouter": true,
66+
"useSlots": true,
67+
"watch": true,
68+
"watchEffect": true,
69+
"watchPostEffect": true,
70+
"watchSyncEffect": true,
71+
"ElCheckbox": true,
72+
"ElInput": true,
73+
"ElInputNumber": true,
74+
"ElRadio": true,
75+
"ElSelect": true,
76+
"ElDivider": true
77+
}
78+
}

.eslintrc.cjs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
'@vue/eslint-config-prettier/skip-formatting'
11+
],
12+
parserOptions: {
13+
ecmaVersion: 'latest'
14+
},
15+
rules: {
16+
'vue/no-mutating-props': ['error', {
17+
'shallowOnly': true
18+
}],
19+
'vue/multi-word-component-names': 'off'
20+
}
21+
}

.gitignore

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
1-
.vite-ssg-temp
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
29

310
node_modules
411
.DS_Store
512
dist
613
dist-ssr
14+
coverage
715
*.local
816

9-
# lock
10-
yarn.lock
11-
package-lock.json
17+
/cypress/videos/
18+
/cypress/screenshots/
1219

13-
*.log
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
*.tsbuildinfo

.npmrc

-2
This file was deleted.

.prettierrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

.vscode/extensions.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
21
{
3-
"recommendations": ["Vue.volar"]
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode"
6+
]
47
}

LICENSE

-21
This file was deleted.

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
## 介绍
77
lowflow-design是一个基于`Vue3``Vite``TypeScript``Element-Plus`等技术栈开发的,适用于低代码或无代码开发平台的流程设计器。
8-
让普通人也能通过简单配置快速搭建流程。
8+
让普通人也能通过简单配置快速搭建流程。 <br />
9+
并提供了将json转xml的后端代码:[lowflow-design-converter](https://github.com/tsai996/lowflow-design-converter)
910
## 在线预览
1011
https://tsai996.github.io/lowflow-design/
1112
### 成品案例
@@ -23,8 +24,9 @@ https://www.666cxf.com/
2324

2425
## 扫码加入群聊,如果失效加微信拉入群聊(备注:加群)
2526
<p>
26-
<img alt="微信群" src="public/wxq.png" width="240" style="display: inline-block"/>
27-
<img alt="微信" src="public/wx.png" width="240" style="display: inline-block"/>
27+
<img alt="QQ群" src="public/qq_qun.jpg" width="240" height="400" style="display: inline-block"/>
28+
<img alt="微信群" src="public/wx_qun.jpg" width="240" height="400" style="display: inline-block"/>
29+
<img alt="微信" src="public/wx.jpg" width="240" style="display: inline-block"/>
2830
</p>
2931

3032
## 赞助

env.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/// <reference types="vite/client" />
2+
3+
interface ImportMetaEnv {
4+
readonly VITE_API_URL: string;
5+
readonly VITE_PUBLIC_PATH: string;
6+
}
7+
8+
interface ImportMeta {
9+
readonly env: ImportMetaEnv
10+
}

index.html

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>lowflow-design</title>
8-
<!-- element css cdn, if you use custom theme, remove it. -->
9-
<!-- <link
10-
rel="stylesheet"
11-
href="https://cdn.jsdelivr.net/npm/element-plus/dist/index.css"
12-
/> -->
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
138
</head>
149
<body>
1510
<div id="app"></div>
1611
<script type="module" src="/src/main.ts"></script>
17-
<script>
18-
window.setInterval(function(){
19-
new Function('debugger')();
20-
}, 100);
21-
</script>
2212
</body>
2313
</html>

mock/index.ts

-11
This file was deleted.

mock/role.ts

-68
This file was deleted.

0 commit comments

Comments
 (0)