|
1 |
| -import * as types from './task-op' |
| 1 | +import * as ops from './task-op' |
2 | 2 |
|
3 | 3 | /* task info */
|
4 | 4 |
|
5 | 5 | const CALC_FIELD = {
|
6 | 6 | name: 'Calculation',
|
7 |
| - type: types.TASK_OP_CALC, |
| 7 | + op: ops.TASK_OP_CALC, |
8 | 8 | icon: 'flash_on',
|
9 | 9 | bg_color: 'bg-task-green'
|
10 | 10 | }
|
11 | 11 |
|
12 | 12 | const COMMENT = {
|
13 | 13 | name: 'Comment',
|
14 |
| - type: types.TASK_OP_COMMENT, |
| 14 | + op: ops.TASK_OP_COMMENT, |
15 | 15 | icon: 'comment',
|
16 | 16 | bg_color: 'bg-task-blue'
|
17 | 17 | }
|
18 | 18 |
|
19 | 19 | const CONVERT = {
|
20 | 20 | name: 'Convert',
|
21 |
| - type: types.TASK_OP_CONVERT, |
| 21 | + op: ops.TASK_OP_CONVERT, |
22 | 22 | icon: 'settings',
|
23 | 23 | bg_color: 'bg-task-blue'
|
24 | 24 | }
|
25 | 25 |
|
26 | 26 | const COPY = {
|
27 | 27 | name: 'Copy',
|
28 |
| - type: types.TASK_OP_COPY, |
| 28 | + op: ops.TASK_OP_COPY, |
29 | 29 | icon: 'content_copy',
|
30 | 30 | bg_color: 'bg-task-orange'
|
31 | 31 | }
|
32 | 32 |
|
33 | 33 | const CREATE = {
|
34 | 34 | name: 'Copy',
|
35 |
| - type: types.TASK_OP_CREATE, |
| 35 | + op: ops.TASK_OP_CREATE, |
36 | 36 | icon: 'content_copy',
|
37 | 37 | bg_color: 'bg-task-orange'
|
38 | 38 | }
|
39 | 39 |
|
40 | 40 | const CUSTOM = {
|
41 | 41 | name: 'Custom',
|
42 |
| - type: types.TASK_OP_CUSTOM, |
| 42 | + op: ops.TASK_OP_CUSTOM, |
43 | 43 | icon: 'build',
|
44 | 44 | bg_color: 'bg-task-orange'
|
45 | 45 | }
|
46 | 46 |
|
47 | 47 | const DISTINCT = {
|
48 | 48 | name: 'Distinct',
|
49 |
| - type: types.TASK_OP_DISTINCT, |
| 49 | + op: ops.TASK_OP_DISTINCT, |
50 | 50 | icon: 'clear_all',
|
51 | 51 | bg_color: 'bg-task-green'
|
52 | 52 | }
|
53 | 53 |
|
54 | 54 | const DUPLICATE = {
|
55 | 55 | name: 'Duplicate',
|
56 |
| - type: types.TASK_OP_DUPLICATE, |
| 56 | + op: ops.TASK_OP_DUPLICATE, |
57 | 57 | icon: 'content_copy',
|
58 | 58 | bg_color: 'bg-task-green'
|
59 | 59 | }
|
60 | 60 |
|
61 | 61 | const EMAIL_SEND = {
|
62 | 62 | name: 'Email',
|
63 |
| - type: types.TASK_OP_EMAIL_SEND, |
| 63 | + op: ops.TASK_OP_EMAIL_SEND, |
64 | 64 | icon: 'mail_outline',
|
65 | 65 | bg_color: 'bg-task-blue'
|
66 | 66 | }
|
67 | 67 |
|
68 | 68 | const EXECUTE = {
|
69 | 69 | name: 'Execute',
|
70 |
| - type: types.TASK_OP_EXECUTE, |
| 70 | + op: ops.TASK_OP_EXECUTE, |
71 | 71 | icon: 'code',
|
72 | 72 | bg_color: 'bg-task-purple'
|
73 | 73 | }
|
74 | 74 |
|
75 | 75 | const FIND_REPLACE = {
|
76 | 76 | name: 'Find/Replace',
|
77 |
| - type: types.TASK_OP_FIND_REPLACE, |
| 77 | + op: ops.TASK_OP_FIND_REPLACE, |
78 | 78 | icon: 'find_replace',
|
79 | 79 | bg_color: 'bg-task-orange'
|
80 | 80 | }
|
81 | 81 |
|
82 | 82 | const FILTER = {
|
83 | 83 | name: 'Filter',
|
84 |
| - type: types.TASK_OP_FILTER, |
| 84 | + op: ops.TASK_OP_FILTER, |
85 | 85 | icon: 'filter_list',
|
86 | 86 | bg_color: 'bg-task-green'
|
87 | 87 | }
|
88 | 88 |
|
89 | 89 | const GROUP = {
|
90 | 90 | name: 'Group',
|
91 |
| - type: types.TASK_OP_GROUP, |
| 91 | + op: ops.TASK_OP_GROUP, |
92 | 92 | icon: 'functions',
|
93 | 93 | bg_color: 'bg-task-green'
|
94 | 94 | }
|
95 | 95 |
|
96 | 96 | const INPUT = {
|
97 | 97 | name: 'Input',
|
98 |
| - type: types.TASK_OP_INPUT, |
| 98 | + op: ops.TASK_OP_INPUT, |
99 | 99 | icon: 'input',
|
100 | 100 | bg_color: 'bg-task-blue'
|
101 | 101 | }
|
102 | 102 |
|
103 | 103 | const INSERT = {
|
104 | 104 | name: 'Input',
|
105 |
| - type: types.TASK_OP_INSERT, |
| 105 | + op: ops.TASK_OP_INSERT, |
106 | 106 | icon: 'input',
|
107 | 107 | bg_color: 'bg-task-blue'
|
108 | 108 | }
|
109 | 109 |
|
110 | 110 | const LIMIT = {
|
111 | 111 | name: 'Limit',
|
112 |
| - type: types.TASK_OP_LIMIT, |
| 112 | + op: ops.TASK_OP_LIMIT, |
113 | 113 | icon: 'play_for_work',
|
114 | 114 | bg_color: 'bg-task-green'
|
115 | 115 | }
|
116 | 116 |
|
117 | 117 | const LIST = {
|
118 | 118 | name: 'List',
|
119 |
| - type: types.TASK_OP_LIST, |
| 119 | + op: ops.TASK_OP_LIST, |
120 | 120 | icon: 'play_for_work',
|
121 | 121 | bg_color: 'bg-task-green'
|
122 | 122 | }
|
123 | 123 |
|
124 | 124 | const MERGE = {
|
125 | 125 | name: 'Merge',
|
126 |
| - type: types.TASK_OP_MERGE, |
| 126 | + op: ops.TASK_OP_MERGE, |
127 | 127 | icon: 'call_merge',
|
128 | 128 | bg_color: 'bg-task-green'
|
129 | 129 | }
|
130 | 130 |
|
131 | 131 | const NOP = {
|
132 | 132 | name: 'No Op.',
|
133 |
| - type: types.TASK_OP_NOP, |
| 133 | + op: ops.TASK_OP_NOP, |
134 | 134 | icon: 'build',
|
135 | 135 | bg_color: 'bg-task-orange'
|
136 | 136 | }
|
137 | 137 |
|
138 | 138 | const OUTPUT = {
|
139 | 139 | name: 'Output',
|
140 |
| - type: types.TASK_OP_OUTPUT, |
| 140 | + op: ops.TASK_OP_OUTPUT, |
141 | 141 | icon: 'input',
|
142 | 142 | bg_color: 'bg-task-blue'
|
143 | 143 | }
|
144 | 144 |
|
145 | 145 | const PROMPT = {
|
146 | 146 | name: 'Prompt',
|
147 |
| - type: types.TASK_OP_PROMPT, |
| 147 | + op: ops.TASK_OP_PROMPT, |
148 | 148 | icon: 'info_outline',
|
149 | 149 | bg_color: 'bg-task-blue'
|
150 | 150 | }
|
151 | 151 |
|
152 | 152 | const R = {
|
153 | 153 | name: 'R',
|
154 |
| - type: types.TASK_OP_R, |
| 154 | + op: ops.TASK_OP_R, |
155 | 155 | icon: '',
|
156 | 156 | bg_color: 'bg-task-purple'
|
157 | 157 | }
|
158 | 158 |
|
159 | 159 | const READ = {
|
160 | 160 | name: 'Rename',
|
161 |
| - type: types.TASK_OP_READ, |
| 161 | + op: ops.TASK_OP_READ, |
162 | 162 | icon: 'input',
|
163 | 163 | bg_color: 'bg-task-orange'
|
164 | 164 | }
|
165 | 165 |
|
166 | 166 | const RENAME = {
|
167 | 167 | name: 'Rename',
|
168 |
| - type: types.TASK_OP_RENAME, |
| 168 | + op: ops.TASK_OP_RENAME, |
169 | 169 | icon: 'edit',
|
170 | 170 | bg_color: 'bg-task-orange'
|
171 | 171 | }
|
172 | 172 |
|
173 | 173 | const RENDER = {
|
174 | 174 | name: 'Render',
|
175 |
| - type: types.TASK_OP_RENDER, |
| 175 | + op: ops.TASK_OP_RENDER, |
176 | 176 | icon: 'web',
|
177 | 177 | bg_color: 'bg-task-orange'
|
178 | 178 | }
|
179 | 179 |
|
180 | 180 | const REQUEST = {
|
181 | 181 | name: 'Request',
|
182 |
| - type: types.TASK_OP_REQUEST, |
| 182 | + op: ops.TASK_OP_REQUEST, |
183 | 183 | icon: 'http',
|
184 | 184 | bg_color: 'bg-task-blue'
|
185 | 185 | }
|
186 | 186 |
|
187 | 187 | const SEARCH = {
|
188 | 188 | name: 'Search',
|
189 |
| - type: types.TASK_OP_SEARCH, |
| 189 | + op: ops.TASK_OP_SEARCH, |
190 | 190 | icon: 'search',
|
191 | 191 | bg_color: 'bg-task-green'
|
192 | 192 | }
|
193 | 193 |
|
194 | 194 | const SELECT = {
|
195 | 195 | name: 'Select',
|
196 |
| - type: types.TASK_OP_SELECT, |
| 196 | + op: ops.TASK_OP_SELECT, |
197 | 197 | icon: 'view_carousel',
|
198 | 198 | bg_color: 'bg-task-orange'
|
199 | 199 | }
|
200 | 200 |
|
201 | 201 | const SEQUENCE = {
|
202 | 202 | name: 'Sequence',
|
203 |
| - type: types.TASK_OP_SEQUENCE, |
| 203 | + op: ops.TASK_OP_SEQUENCE, |
204 | 204 | icon: 'view_carousel',
|
205 | 205 | bg_color: 'bg-task-orange'
|
206 | 206 | }
|
207 | 207 |
|
208 | 208 | const SET = {
|
209 | 209 | name: 'Select',
|
210 |
| - type: types.TASK_OP_SET, |
| 210 | + op: ops.TASK_OP_SET, |
211 | 211 | icon: 'view_carousel',
|
212 | 212 | bg_color: 'bg-task-orange'
|
213 | 213 | }
|
214 | 214 |
|
215 | 215 | const SORT = {
|
216 | 216 | name: 'Sort',
|
217 |
| - type: types.TASK_OP_SORT, |
| 217 | + op: ops.TASK_OP_SORT, |
218 | 218 | icon: 'sort_by_alpha',
|
219 | 219 | bg_color: 'bg-task-green'
|
220 | 220 | }
|
221 | 221 |
|
222 | 222 | const TRANSFORM = {
|
223 | 223 | name: 'Transform',
|
224 |
| - type: types.TASK_OP_TRANSFORM, |
| 224 | + op: ops.TASK_OP_TRANSFORM, |
225 | 225 | icon: 'transform',
|
226 | 226 | bg_color: 'bg-task-orange'
|
227 | 227 | }
|
228 | 228 |
|
229 | 229 | const WRITE = {
|
230 | 230 | name: 'Rename',
|
231 |
| - type: types.TASK_OP_WRITE, |
| 231 | + op: ops.TASK_OP_WRITE, |
232 | 232 | icon: 'input',
|
233 | 233 | bg_color: 'bg-task-orange'
|
234 | 234 | }
|
|
0 commit comments