File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
scriptis/module/workbench Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 74
74
"svg-sprite-loader" : " 5.0.0" ,
75
75
"vue-cli-plugin-mockjs" : " 0.1.3" ,
76
76
"vue-template-compiler" : " 2.6.12" ,
77
+ "webpack" : " 4.46.0" ,
77
78
"webpack-virtual-modules" : " 0.3.2"
78
79
}
79
80
}
Original file line number Diff line number Diff line change @@ -456,8 +456,8 @@ export default {
456
456
const methodName = ' Workbench:add' ;
457
457
const supportModes = this .getSupportModes ();
458
458
const model = this .node .modelType ;
459
- const match = supportModes .find ((s ) => s .flowType && s .flowType .toLowerCase () == model);
460
- const name = ` ${ this .node .name || this .node .key }${ match .ext } ` ;
459
+ const match = supportModes .find ((s ) => ( s .flowType || s .scriptType || ' ' ) .toLowerCase () == model) || {} ;
460
+ const name = ` ${ this .node .name || this .node .key }${ match .ext || ' ' } ` ;
461
461
this [methodName]({
462
462
id: this .node .key ,
463
463
filename: this .node .jobContent && this .node .jobContent .script ? this .node .jobContent .script : name,
Original file line number Diff line number Diff line change @@ -55,15 +55,17 @@ const NODETYPE = {
55
55
EXCHANGE : 'linkis.data.exchange' ,
56
56
QUALITIS : 'linkis.appconn.qualitis' ,
57
57
PROJECTNODE : 'projectNode' ,
58
- MLSS : 'linkis.appconn.mlss'
58
+ MLSS : 'linkis.appconn.mlss' ,
59
+ JDBC : 'linkis.jdbc.jdbc' ,
59
60
}
60
61
const ext = {
61
62
[ NODETYPE . SHELL ] : 'shell' ,
62
63
[ NODETYPE . HQL ] : 'hql' ,
63
64
[ NODETYPE . SPARKSQL ] : 'sql' ,
64
65
[ NODETYPE . SPARKPY ] : 'pyspark' ,
65
66
[ NODETYPE . SCALA ] : 'scala' ,
66
- [ NODETYPE . PYTHON ] : 'python'
67
+ [ NODETYPE . PYTHON ] : 'python' ,
68
+ [ NODETYPE . JDBC ] : 'jdbc'
67
69
}
68
70
const NODEICON = {
69
71
[ NODETYPE . SHELL ] : {
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ function resolve(dir) {
107
107
module . exports = {
108
108
publicPath : './' ,
109
109
outputDir : 'dist/dist' ,
110
+ lintOnSave : process . env . NODE_ENV !== "production" , // build无需eslint
111
+ productionSourceMap : process . env . NODE_ENV === "dev" , // 生产环境无需source map加速构建
110
112
chainWebpack : ( config ) => {
111
113
// set svg-sprite-loader
112
114
config . module
@@ -168,4 +170,4 @@ module.exports = {
168
170
}
169
171
}
170
172
}
171
- }
173
+ }
You can’t perform that action at this time.
0 commit comments