Skip to content

Commit 7b97111

Browse files
committedDec 21, 2017
More 'type' => 'op'.
1 parent f15a1c5 commit 7b97111

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed
 

‎src/constants/task-info.js

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,234 +1,234 @@
1-
import * as types from './task-op'
1+
import * as ops from './task-op'
22

33
/* task info */
44

55
const CALC_FIELD = {
66
name: 'Calculation',
7-
type: types.TASK_OP_CALC,
7+
op: ops.TASK_OP_CALC,
88
icon: 'flash_on',
99
bg_color: 'bg-task-green'
1010
}
1111

1212
const COMMENT = {
1313
name: 'Comment',
14-
type: types.TASK_OP_COMMENT,
14+
op: ops.TASK_OP_COMMENT,
1515
icon: 'comment',
1616
bg_color: 'bg-task-blue'
1717
}
1818

1919
const CONVERT = {
2020
name: 'Convert',
21-
type: types.TASK_OP_CONVERT,
21+
op: ops.TASK_OP_CONVERT,
2222
icon: 'settings',
2323
bg_color: 'bg-task-blue'
2424
}
2525

2626
const COPY = {
2727
name: 'Copy',
28-
type: types.TASK_OP_COPY,
28+
op: ops.TASK_OP_COPY,
2929
icon: 'content_copy',
3030
bg_color: 'bg-task-orange'
3131
}
3232

3333
const CREATE = {
3434
name: 'Copy',
35-
type: types.TASK_OP_CREATE,
35+
op: ops.TASK_OP_CREATE,
3636
icon: 'content_copy',
3737
bg_color: 'bg-task-orange'
3838
}
3939

4040
const CUSTOM = {
4141
name: 'Custom',
42-
type: types.TASK_OP_CUSTOM,
42+
op: ops.TASK_OP_CUSTOM,
4343
icon: 'build',
4444
bg_color: 'bg-task-orange'
4545
}
4646

4747
const DISTINCT = {
4848
name: 'Distinct',
49-
type: types.TASK_OP_DISTINCT,
49+
op: ops.TASK_OP_DISTINCT,
5050
icon: 'clear_all',
5151
bg_color: 'bg-task-green'
5252
}
5353

5454
const DUPLICATE = {
5555
name: 'Duplicate',
56-
type: types.TASK_OP_DUPLICATE,
56+
op: ops.TASK_OP_DUPLICATE,
5757
icon: 'content_copy',
5858
bg_color: 'bg-task-green'
5959
}
6060

6161
const EMAIL_SEND = {
6262
name: 'Email',
63-
type: types.TASK_OP_EMAIL_SEND,
63+
op: ops.TASK_OP_EMAIL_SEND,
6464
icon: 'mail_outline',
6565
bg_color: 'bg-task-blue'
6666
}
6767

6868
const EXECUTE = {
6969
name: 'Execute',
70-
type: types.TASK_OP_EXECUTE,
70+
op: ops.TASK_OP_EXECUTE,
7171
icon: 'code',
7272
bg_color: 'bg-task-purple'
7373
}
7474

7575
const FIND_REPLACE = {
7676
name: 'Find/Replace',
77-
type: types.TASK_OP_FIND_REPLACE,
77+
op: ops.TASK_OP_FIND_REPLACE,
7878
icon: 'find_replace',
7979
bg_color: 'bg-task-orange'
8080
}
8181

8282
const FILTER = {
8383
name: 'Filter',
84-
type: types.TASK_OP_FILTER,
84+
op: ops.TASK_OP_FILTER,
8585
icon: 'filter_list',
8686
bg_color: 'bg-task-green'
8787
}
8888

8989
const GROUP = {
9090
name: 'Group',
91-
type: types.TASK_OP_GROUP,
91+
op: ops.TASK_OP_GROUP,
9292
icon: 'functions',
9393
bg_color: 'bg-task-green'
9494
}
9595

9696
const INPUT = {
9797
name: 'Input',
98-
type: types.TASK_OP_INPUT,
98+
op: ops.TASK_OP_INPUT,
9999
icon: 'input',
100100
bg_color: 'bg-task-blue'
101101
}
102102

103103
const INSERT = {
104104
name: 'Input',
105-
type: types.TASK_OP_INSERT,
105+
op: ops.TASK_OP_INSERT,
106106
icon: 'input',
107107
bg_color: 'bg-task-blue'
108108
}
109109

110110
const LIMIT = {
111111
name: 'Limit',
112-
type: types.TASK_OP_LIMIT,
112+
op: ops.TASK_OP_LIMIT,
113113
icon: 'play_for_work',
114114
bg_color: 'bg-task-green'
115115
}
116116

117117
const LIST = {
118118
name: 'List',
119-
type: types.TASK_OP_LIST,
119+
op: ops.TASK_OP_LIST,
120120
icon: 'play_for_work',
121121
bg_color: 'bg-task-green'
122122
}
123123

124124
const MERGE = {
125125
name: 'Merge',
126-
type: types.TASK_OP_MERGE,
126+
op: ops.TASK_OP_MERGE,
127127
icon: 'call_merge',
128128
bg_color: 'bg-task-green'
129129
}
130130

131131
const NOP = {
132132
name: 'No Op.',
133-
type: types.TASK_OP_NOP,
133+
op: ops.TASK_OP_NOP,
134134
icon: 'build',
135135
bg_color: 'bg-task-orange'
136136
}
137137

138138
const OUTPUT = {
139139
name: 'Output',
140-
type: types.TASK_OP_OUTPUT,
140+
op: ops.TASK_OP_OUTPUT,
141141
icon: 'input',
142142
bg_color: 'bg-task-blue'
143143
}
144144

145145
const PROMPT = {
146146
name: 'Prompt',
147-
type: types.TASK_OP_PROMPT,
147+
op: ops.TASK_OP_PROMPT,
148148
icon: 'info_outline',
149149
bg_color: 'bg-task-blue'
150150
}
151151

152152
const R = {
153153
name: 'R',
154-
type: types.TASK_OP_R,
154+
op: ops.TASK_OP_R,
155155
icon: '',
156156
bg_color: 'bg-task-purple'
157157
}
158158

159159
const READ = {
160160
name: 'Rename',
161-
type: types.TASK_OP_READ,
161+
op: ops.TASK_OP_READ,
162162
icon: 'input',
163163
bg_color: 'bg-task-orange'
164164
}
165165

166166
const RENAME = {
167167
name: 'Rename',
168-
type: types.TASK_OP_RENAME,
168+
op: ops.TASK_OP_RENAME,
169169
icon: 'edit',
170170
bg_color: 'bg-task-orange'
171171
}
172172

173173
const RENDER = {
174174
name: 'Render',
175-
type: types.TASK_OP_RENDER,
175+
op: ops.TASK_OP_RENDER,
176176
icon: 'web',
177177
bg_color: 'bg-task-orange'
178178
}
179179

180180
const REQUEST = {
181181
name: 'Request',
182-
type: types.TASK_OP_REQUEST,
182+
op: ops.TASK_OP_REQUEST,
183183
icon: 'http',
184184
bg_color: 'bg-task-blue'
185185
}
186186

187187
const SEARCH = {
188188
name: 'Search',
189-
type: types.TASK_OP_SEARCH,
189+
op: ops.TASK_OP_SEARCH,
190190
icon: 'search',
191191
bg_color: 'bg-task-green'
192192
}
193193

194194
const SELECT = {
195195
name: 'Select',
196-
type: types.TASK_OP_SELECT,
196+
op: ops.TASK_OP_SELECT,
197197
icon: 'view_carousel',
198198
bg_color: 'bg-task-orange'
199199
}
200200

201201
const SEQUENCE = {
202202
name: 'Sequence',
203-
type: types.TASK_OP_SEQUENCE,
203+
op: ops.TASK_OP_SEQUENCE,
204204
icon: 'view_carousel',
205205
bg_color: 'bg-task-orange'
206206
}
207207

208208
const SET = {
209209
name: 'Select',
210-
type: types.TASK_OP_SET,
210+
op: ops.TASK_OP_SET,
211211
icon: 'view_carousel',
212212
bg_color: 'bg-task-orange'
213213
}
214214

215215
const SORT = {
216216
name: 'Sort',
217-
type: types.TASK_OP_SORT,
217+
op: ops.TASK_OP_SORT,
218218
icon: 'sort_by_alpha',
219219
bg_color: 'bg-task-green'
220220
}
221221

222222
const TRANSFORM = {
223223
name: 'Transform',
224-
type: types.TASK_OP_TRANSFORM,
224+
op: ops.TASK_OP_TRANSFORM,
225225
icon: 'transform',
226226
bg_color: 'bg-task-orange'
227227
}
228228

229229
const WRITE = {
230230
name: 'Rename',
231-
type: types.TASK_OP_WRITE,
231+
op: ops.TASK_OP_WRITE,
232232
icon: 'input',
233233
bg_color: 'bg-task-orange'
234234
}

‎src/task/output.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ var connTypes = require('../constants/connection-type') // import * as connTypes
55

66
// task definition function
77
var output = function() {
8-
var type = taskOps.TASK_OP_OUTPUT
98
var args = Array.from(arguments)
109
var connection_type = _.get(args, '[0]', '')
1110
var connection = undefined

0 commit comments

Comments
 (0)
Please sign in to comment.