配置前端
技术选型
Vue mvvm框架
Es6 ECMAScript 6.0
Ans-ui Analysys-ui
D3 可视化库图表库
Jsplumb 连线插件库
Lodash 高性能的 JavaScript 实用工具库
用命令行模式 cd
进入 dolphinscheduler-ui
项目目录并执行 npm install
拉取项目依赖包
如果
npm install
速度非常慢 可以转淘宝镜像命令行输入npm install -g cnpm --registry=https://registry.npm.taobao.org
运行cnpm install
编译前端遇到的问题:
Vue packages version mismatch:
- vue@2.5.17 (/Users/taoshilei/Documents/develop/incubator-dolphinscheduler/dolphinscheduler-ui/node_modules/vue/dist/vue.runtime.common.js)
- vue-template-compiler@2.6.11 (/Users/taoshilei/Documents/develop/incubator-dolphinscheduler/dolphinscheduler-ui/node_modules/vue-template-compiler/package.json)
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
FlinkX 数据同步插件开发
- 增加节点样式
/Users/taoshilei/Documents/develop/incubator-dolphinscheduler/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
.icos-FLINKX {
background: url("../img/toolbar_FLINKX.png") no-repeat 50% 50%;
}
- 增加节点篇配置
/Users/taoshilei/Documents/develop/incubator-dolphinscheduler/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js
在 tasktype 里面新增:
FLINKX: {
desc: 'FLINKX',
color: '#E46F13'
}
- 添加页面
添加 dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flinkx.vue