@truedat/dd 5.2.7 → 5.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +5 -5
- package/src/api/queries.js +31 -0
- package/src/components/DictionaryRoutes.js +3 -0
- package/src/components/StructureFieldsDropdown.js +7 -1
- package/src/components/Task.js +149 -0
- package/src/components/Tasks.js +138 -0
- package/src/components/TasksRoutes.js +27 -0
- package/src/components/__tests__/Task.spec.js +44 -0
- package/src/components/__tests__/Tasks.spec.js +120 -0
- package/src/components/__tests__/TasksRoutes.spec.js +56 -0
- package/src/components/__tests__/__snapshots__/DictionaryRoutes.spec.js.snap +4 -0
- package/src/components/__tests__/__snapshots__/Task.spec.js.snap +298 -0
- package/src/components/__tests__/__snapshots__/Tasks.spec.js.snap +301 -0
- package/src/components/__tests__/__snapshots__/TasksRoutes.spec.js.snap +448 -0
- package/src/messages/en.js +17 -0
- package/src/messages/es.js +17 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<Task /> matches the latest snapshot 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="ui breadcrumb"
|
|
7
|
+
>
|
|
8
|
+
<a
|
|
9
|
+
class="section"
|
|
10
|
+
href="/tasks"
|
|
11
|
+
>
|
|
12
|
+
Tasks
|
|
13
|
+
</a>
|
|
14
|
+
<i
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
class="right angle icon divider"
|
|
17
|
+
/>
|
|
18
|
+
<div
|
|
19
|
+
class="active section"
|
|
20
|
+
>
|
|
21
|
+
grants
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div
|
|
25
|
+
class="ui segment"
|
|
26
|
+
>
|
|
27
|
+
<h2
|
|
28
|
+
class="ui header"
|
|
29
|
+
>
|
|
30
|
+
<i
|
|
31
|
+
aria-hidden="true"
|
|
32
|
+
class="check circular icon"
|
|
33
|
+
/>
|
|
34
|
+
<div
|
|
35
|
+
class="content"
|
|
36
|
+
>
|
|
37
|
+
Task details
|
|
38
|
+
<div
|
|
39
|
+
class="sub header"
|
|
40
|
+
>
|
|
41
|
+
Background reindex task
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</h2>
|
|
45
|
+
<div
|
|
46
|
+
class="ui basic segment"
|
|
47
|
+
>
|
|
48
|
+
<button
|
|
49
|
+
class="ui primary button"
|
|
50
|
+
>
|
|
51
|
+
Refresh
|
|
52
|
+
</button>
|
|
53
|
+
</div>
|
|
54
|
+
<div
|
|
55
|
+
class="dimmable"
|
|
56
|
+
>
|
|
57
|
+
<div
|
|
58
|
+
class="ui inverted dimmer"
|
|
59
|
+
style=""
|
|
60
|
+
>
|
|
61
|
+
<div
|
|
62
|
+
class="content"
|
|
63
|
+
>
|
|
64
|
+
<div
|
|
65
|
+
class="ui loader"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div
|
|
70
|
+
class="ui divided four column grid"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
class="row"
|
|
74
|
+
>
|
|
75
|
+
<div
|
|
76
|
+
class="three wide column"
|
|
77
|
+
>
|
|
78
|
+
<div
|
|
79
|
+
class="item"
|
|
80
|
+
>
|
|
81
|
+
<div
|
|
82
|
+
class="content"
|
|
83
|
+
>
|
|
84
|
+
<h5
|
|
85
|
+
class="header"
|
|
86
|
+
>
|
|
87
|
+
Index
|
|
88
|
+
</h5>
|
|
89
|
+
<div
|
|
90
|
+
class="description"
|
|
91
|
+
>
|
|
92
|
+
grants
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div
|
|
98
|
+
class="three wide column"
|
|
99
|
+
>
|
|
100
|
+
<div
|
|
101
|
+
class="item"
|
|
102
|
+
>
|
|
103
|
+
<div
|
|
104
|
+
class="content"
|
|
105
|
+
>
|
|
106
|
+
<h5
|
|
107
|
+
class="header"
|
|
108
|
+
>
|
|
109
|
+
Status
|
|
110
|
+
</h5>
|
|
111
|
+
<div
|
|
112
|
+
class="description"
|
|
113
|
+
>
|
|
114
|
+
processing
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
<div
|
|
120
|
+
class="three wide column"
|
|
121
|
+
>
|
|
122
|
+
<div
|
|
123
|
+
class="item"
|
|
124
|
+
>
|
|
125
|
+
<div
|
|
126
|
+
class="content"
|
|
127
|
+
>
|
|
128
|
+
<h5
|
|
129
|
+
class="header"
|
|
130
|
+
>
|
|
131
|
+
Started at
|
|
132
|
+
</h5>
|
|
133
|
+
<div
|
|
134
|
+
class="description"
|
|
135
|
+
>
|
|
136
|
+
<time
|
|
137
|
+
datetime="1577836800000"
|
|
138
|
+
>
|
|
139
|
+
2020-01-01 00:00
|
|
140
|
+
</time>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
<div
|
|
146
|
+
class="three wide column"
|
|
147
|
+
>
|
|
148
|
+
<div
|
|
149
|
+
class="item"
|
|
150
|
+
>
|
|
151
|
+
<div
|
|
152
|
+
class="content"
|
|
153
|
+
>
|
|
154
|
+
<h5
|
|
155
|
+
class="header"
|
|
156
|
+
>
|
|
157
|
+
Last message at
|
|
158
|
+
</h5>
|
|
159
|
+
<div
|
|
160
|
+
class="description"
|
|
161
|
+
>
|
|
162
|
+
<time
|
|
163
|
+
datetime="1577836860000"
|
|
164
|
+
>
|
|
165
|
+
2020-01-01 00:01
|
|
166
|
+
</time>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div
|
|
172
|
+
class="three wide column"
|
|
173
|
+
>
|
|
174
|
+
<div
|
|
175
|
+
class="item"
|
|
176
|
+
>
|
|
177
|
+
<div
|
|
178
|
+
class="content"
|
|
179
|
+
>
|
|
180
|
+
<h5
|
|
181
|
+
class="header"
|
|
182
|
+
>
|
|
183
|
+
Elapsed time
|
|
184
|
+
</h5>
|
|
185
|
+
<div
|
|
186
|
+
class="description"
|
|
187
|
+
>
|
|
188
|
+
0.01s
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
<div
|
|
196
|
+
class="ui divider"
|
|
197
|
+
/>
|
|
198
|
+
<div
|
|
199
|
+
class="ui progress"
|
|
200
|
+
data-percent="10"
|
|
201
|
+
>
|
|
202
|
+
<div
|
|
203
|
+
class="bar"
|
|
204
|
+
style="width: 10%;"
|
|
205
|
+
>
|
|
206
|
+
<div
|
|
207
|
+
class="progress"
|
|
208
|
+
>
|
|
209
|
+
10%
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
<div
|
|
213
|
+
class="label"
|
|
214
|
+
>
|
|
215
|
+
Progress
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
<div
|
|
219
|
+
class="ui divider"
|
|
220
|
+
/>
|
|
221
|
+
<div
|
|
222
|
+
class="ui divided four column grid"
|
|
223
|
+
>
|
|
224
|
+
<div
|
|
225
|
+
class="row"
|
|
226
|
+
>
|
|
227
|
+
<div
|
|
228
|
+
class="three wide column"
|
|
229
|
+
>
|
|
230
|
+
<div
|
|
231
|
+
class="item"
|
|
232
|
+
>
|
|
233
|
+
<div
|
|
234
|
+
class="content"
|
|
235
|
+
>
|
|
236
|
+
<h5
|
|
237
|
+
class="header"
|
|
238
|
+
>
|
|
239
|
+
Max memory usage
|
|
240
|
+
</h5>
|
|
241
|
+
<div
|
|
242
|
+
class="description"
|
|
243
|
+
>
|
|
244
|
+
0MB
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
<div
|
|
250
|
+
class="three wide column"
|
|
251
|
+
>
|
|
252
|
+
<div
|
|
253
|
+
class="item"
|
|
254
|
+
>
|
|
255
|
+
<div
|
|
256
|
+
class="content"
|
|
257
|
+
>
|
|
258
|
+
<h5
|
|
259
|
+
class="header"
|
|
260
|
+
>
|
|
261
|
+
Min memory usage
|
|
262
|
+
</h5>
|
|
263
|
+
<div
|
|
264
|
+
class="description"
|
|
265
|
+
>
|
|
266
|
+
0MB
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
<div
|
|
272
|
+
class="three wide column"
|
|
273
|
+
>
|
|
274
|
+
<div
|
|
275
|
+
class="item"
|
|
276
|
+
>
|
|
277
|
+
<div
|
|
278
|
+
class="content"
|
|
279
|
+
>
|
|
280
|
+
<h5
|
|
281
|
+
class="header"
|
|
282
|
+
>
|
|
283
|
+
Last memory usage
|
|
284
|
+
</h5>
|
|
285
|
+
<div
|
|
286
|
+
class="description"
|
|
287
|
+
>
|
|
288
|
+
0MB
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
`;
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<Tasks /> matches the latest snapshot 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="ui segment"
|
|
7
|
+
>
|
|
8
|
+
<h2
|
|
9
|
+
class="ui header"
|
|
10
|
+
>
|
|
11
|
+
<i
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
class="check circular icon"
|
|
14
|
+
/>
|
|
15
|
+
<div
|
|
16
|
+
class="content"
|
|
17
|
+
>
|
|
18
|
+
Tasks
|
|
19
|
+
<div
|
|
20
|
+
class="sub header"
|
|
21
|
+
>
|
|
22
|
+
Background reindex tasks
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</h2>
|
|
26
|
+
<div
|
|
27
|
+
class="ui basic segment"
|
|
28
|
+
>
|
|
29
|
+
<button
|
|
30
|
+
class="ui primary button"
|
|
31
|
+
>
|
|
32
|
+
Refresh
|
|
33
|
+
</button>
|
|
34
|
+
<button
|
|
35
|
+
class="ui primary right floated button"
|
|
36
|
+
>
|
|
37
|
+
Reindex all structures
|
|
38
|
+
</button>
|
|
39
|
+
<button
|
|
40
|
+
class="ui primary right floated button"
|
|
41
|
+
>
|
|
42
|
+
Reindex all grants
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
<div
|
|
46
|
+
class="dimmable"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
class="ui inverted dimmer"
|
|
50
|
+
style=""
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
class="content"
|
|
54
|
+
>
|
|
55
|
+
<div
|
|
56
|
+
class="ui loader"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<table
|
|
61
|
+
class="ui selectable table"
|
|
62
|
+
>
|
|
63
|
+
<thead
|
|
64
|
+
class=""
|
|
65
|
+
>
|
|
66
|
+
<tr
|
|
67
|
+
class=""
|
|
68
|
+
>
|
|
69
|
+
<th
|
|
70
|
+
class=""
|
|
71
|
+
>
|
|
72
|
+
Index
|
|
73
|
+
</th>
|
|
74
|
+
<th
|
|
75
|
+
class=""
|
|
76
|
+
>
|
|
77
|
+
Status
|
|
78
|
+
</th>
|
|
79
|
+
<th
|
|
80
|
+
class=""
|
|
81
|
+
>
|
|
82
|
+
Started at
|
|
83
|
+
</th>
|
|
84
|
+
<th
|
|
85
|
+
class=""
|
|
86
|
+
>
|
|
87
|
+
Last message at
|
|
88
|
+
</th>
|
|
89
|
+
<th
|
|
90
|
+
class=""
|
|
91
|
+
>
|
|
92
|
+
Progress
|
|
93
|
+
</th>
|
|
94
|
+
<th
|
|
95
|
+
class=""
|
|
96
|
+
>
|
|
97
|
+
Elapsed time
|
|
98
|
+
</th>
|
|
99
|
+
</tr>
|
|
100
|
+
</thead>
|
|
101
|
+
<tbody
|
|
102
|
+
class=""
|
|
103
|
+
>
|
|
104
|
+
<tr
|
|
105
|
+
class=""
|
|
106
|
+
>
|
|
107
|
+
<td
|
|
108
|
+
class=""
|
|
109
|
+
>
|
|
110
|
+
grants
|
|
111
|
+
</td>
|
|
112
|
+
<td
|
|
113
|
+
class=""
|
|
114
|
+
>
|
|
115
|
+
processing
|
|
116
|
+
</td>
|
|
117
|
+
<td
|
|
118
|
+
class=""
|
|
119
|
+
>
|
|
120
|
+
<time
|
|
121
|
+
datetime="1577836800000"
|
|
122
|
+
>
|
|
123
|
+
2020-01-01 00:00
|
|
124
|
+
</time>
|
|
125
|
+
</td>
|
|
126
|
+
<td
|
|
127
|
+
class=""
|
|
128
|
+
>
|
|
129
|
+
<time
|
|
130
|
+
datetime="1577836860000"
|
|
131
|
+
>
|
|
132
|
+
2020-01-01 00:01
|
|
133
|
+
</time>
|
|
134
|
+
</td>
|
|
135
|
+
<td
|
|
136
|
+
class=""
|
|
137
|
+
>
|
|
138
|
+
1000/10000
|
|
139
|
+
</td>
|
|
140
|
+
<td
|
|
141
|
+
class=""
|
|
142
|
+
>
|
|
143
|
+
0.01s
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
</tbody>
|
|
147
|
+
</table>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
`;
|
|
152
|
+
|
|
153
|
+
exports[`<Tasks /> refetches button 1`] = `
|
|
154
|
+
<div>
|
|
155
|
+
<div
|
|
156
|
+
class="ui segment"
|
|
157
|
+
>
|
|
158
|
+
<h2
|
|
159
|
+
class="ui header"
|
|
160
|
+
>
|
|
161
|
+
<i
|
|
162
|
+
aria-hidden="true"
|
|
163
|
+
class="check circular icon"
|
|
164
|
+
/>
|
|
165
|
+
<div
|
|
166
|
+
class="content"
|
|
167
|
+
>
|
|
168
|
+
Tasks
|
|
169
|
+
<div
|
|
170
|
+
class="sub header"
|
|
171
|
+
>
|
|
172
|
+
Background reindex tasks
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</h2>
|
|
176
|
+
<div
|
|
177
|
+
class="ui basic segment"
|
|
178
|
+
>
|
|
179
|
+
<button
|
|
180
|
+
class="ui primary button"
|
|
181
|
+
>
|
|
182
|
+
Refresh
|
|
183
|
+
</button>
|
|
184
|
+
<button
|
|
185
|
+
class="ui primary right floated button"
|
|
186
|
+
>
|
|
187
|
+
Reindex all structures
|
|
188
|
+
</button>
|
|
189
|
+
<button
|
|
190
|
+
class="ui primary right floated button"
|
|
191
|
+
>
|
|
192
|
+
Reindex all grants
|
|
193
|
+
</button>
|
|
194
|
+
</div>
|
|
195
|
+
<div
|
|
196
|
+
class="dimmable"
|
|
197
|
+
>
|
|
198
|
+
<div
|
|
199
|
+
class="ui inverted dimmer"
|
|
200
|
+
style=""
|
|
201
|
+
>
|
|
202
|
+
<div
|
|
203
|
+
class="content"
|
|
204
|
+
>
|
|
205
|
+
<div
|
|
206
|
+
class="ui loader"
|
|
207
|
+
/>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
<table
|
|
211
|
+
class="ui selectable table"
|
|
212
|
+
>
|
|
213
|
+
<thead
|
|
214
|
+
class=""
|
|
215
|
+
>
|
|
216
|
+
<tr
|
|
217
|
+
class=""
|
|
218
|
+
>
|
|
219
|
+
<th
|
|
220
|
+
class=""
|
|
221
|
+
>
|
|
222
|
+
Index
|
|
223
|
+
</th>
|
|
224
|
+
<th
|
|
225
|
+
class=""
|
|
226
|
+
>
|
|
227
|
+
Status
|
|
228
|
+
</th>
|
|
229
|
+
<th
|
|
230
|
+
class=""
|
|
231
|
+
>
|
|
232
|
+
Started at
|
|
233
|
+
</th>
|
|
234
|
+
<th
|
|
235
|
+
class=""
|
|
236
|
+
>
|
|
237
|
+
Last message at
|
|
238
|
+
</th>
|
|
239
|
+
<th
|
|
240
|
+
class=""
|
|
241
|
+
>
|
|
242
|
+
Progress
|
|
243
|
+
</th>
|
|
244
|
+
<th
|
|
245
|
+
class=""
|
|
246
|
+
>
|
|
247
|
+
Elapsed time
|
|
248
|
+
</th>
|
|
249
|
+
</tr>
|
|
250
|
+
</thead>
|
|
251
|
+
<tbody
|
|
252
|
+
class=""
|
|
253
|
+
>
|
|
254
|
+
<tr
|
|
255
|
+
class=""
|
|
256
|
+
>
|
|
257
|
+
<td
|
|
258
|
+
class=""
|
|
259
|
+
>
|
|
260
|
+
grants
|
|
261
|
+
</td>
|
|
262
|
+
<td
|
|
263
|
+
class=""
|
|
264
|
+
>
|
|
265
|
+
done
|
|
266
|
+
</td>
|
|
267
|
+
<td
|
|
268
|
+
class=""
|
|
269
|
+
>
|
|
270
|
+
<time
|
|
271
|
+
datetime="1577836800000"
|
|
272
|
+
>
|
|
273
|
+
2020-01-01 00:00
|
|
274
|
+
</time>
|
|
275
|
+
</td>
|
|
276
|
+
<td
|
|
277
|
+
class=""
|
|
278
|
+
>
|
|
279
|
+
<time
|
|
280
|
+
datetime="1577836920000"
|
|
281
|
+
>
|
|
282
|
+
2020-01-01 00:02
|
|
283
|
+
</time>
|
|
284
|
+
</td>
|
|
285
|
+
<td
|
|
286
|
+
class=""
|
|
287
|
+
>
|
|
288
|
+
10000/10000
|
|
289
|
+
</td>
|
|
290
|
+
<td
|
|
291
|
+
class=""
|
|
292
|
+
>
|
|
293
|
+
0.02s
|
|
294
|
+
</td>
|
|
295
|
+
</tr>
|
|
296
|
+
</tbody>
|
|
297
|
+
</table>
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
`;
|