@lingk/sync 1.0.5 → 1.0.6
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/build/credentialSections.js +662 -529
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js +128 -124
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js +2 -2
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +30 -30
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js +2 -2
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js +2 -2
- package/build/loadData.js.map +1 -1
- package/build/main.js +954 -812
- package/build/main.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js +2 -2
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ module.exports =
|
|
|
46
46
|
/***/ 0:
|
|
47
47
|
/***/ function(module, exports, __webpack_require__) {
|
|
48
48
|
|
|
49
|
-
module.exports = __webpack_require__(
|
|
49
|
+
module.exports = __webpack_require__(46);
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
/***/ },
|
|
@@ -67,6 +67,152 @@ module.exports =
|
|
|
67
67
|
value: true
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
71
|
+
|
|
72
|
+
var _react = __webpack_require__(1);
|
|
73
|
+
|
|
74
|
+
var _react2 = _interopRequireDefault(_react);
|
|
75
|
+
|
|
76
|
+
var _clipboard = __webpack_require__(48);
|
|
77
|
+
|
|
78
|
+
var _clipboard2 = _interopRequireDefault(_clipboard);
|
|
79
|
+
|
|
80
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
81
|
+
|
|
82
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
83
|
+
|
|
84
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
85
|
+
|
|
86
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
87
|
+
|
|
88
|
+
var AdapterSecret = function (_Component) {
|
|
89
|
+
_inherits(AdapterSecret, _Component);
|
|
90
|
+
|
|
91
|
+
function AdapterSecret() {
|
|
92
|
+
_classCallCheck(this, AdapterSecret);
|
|
93
|
+
|
|
94
|
+
var _this = _possibleConstructorReturn(this, (AdapterSecret.__proto__ || Object.getPrototypeOf(AdapterSecret)).call(this));
|
|
95
|
+
|
|
96
|
+
_this.copy = function () {
|
|
97
|
+
_clipboard2.default.copy({
|
|
98
|
+
'text/plain': _this.props.secret
|
|
99
|
+
});
|
|
100
|
+
_this.setState({ secretCopied: true });
|
|
101
|
+
setTimeout(function () {
|
|
102
|
+
_this.setState({ secretCopied: false });
|
|
103
|
+
}, 4000);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
_this.state = {
|
|
107
|
+
generating: false,
|
|
108
|
+
secretCopied: false
|
|
109
|
+
};
|
|
110
|
+
return _this;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
_createClass(AdapterSecret, [{
|
|
114
|
+
key: 'render',
|
|
115
|
+
value: function render() {
|
|
116
|
+
var _this2 = this;
|
|
117
|
+
|
|
118
|
+
var _props = this.props,
|
|
119
|
+
generateNewAdapterSecret = _props.generateNewAdapterSecret,
|
|
120
|
+
tenantKey = _props.tenantKey,
|
|
121
|
+
accountKey = _props.accountKey,
|
|
122
|
+
providerType = _props.providerType,
|
|
123
|
+
secret = _props.secret,
|
|
124
|
+
inputs = _props.inputs;
|
|
125
|
+
|
|
126
|
+
var Spinner = inputs.Spinner;
|
|
127
|
+
var Button = inputs.Button;
|
|
128
|
+
var Input = inputs.Input;
|
|
129
|
+
return _react2.default.createElement(
|
|
130
|
+
'div',
|
|
131
|
+
{ style: { marginLeft: 16 } },
|
|
132
|
+
_react2.default.createElement('br', null),
|
|
133
|
+
secret ? _react2.default.createElement(
|
|
134
|
+
'div',
|
|
135
|
+
null,
|
|
136
|
+
_react2.default.createElement(
|
|
137
|
+
'strong',
|
|
138
|
+
null,
|
|
139
|
+
'Adapter Credentials'
|
|
140
|
+
),
|
|
141
|
+
_react2.default.createElement(
|
|
142
|
+
'div',
|
|
143
|
+
{ style: { marginTop: 6, marginLeft: 16 } },
|
|
144
|
+
_react2.default.createElement(
|
|
145
|
+
'span',
|
|
146
|
+
null,
|
|
147
|
+
'Client Key'
|
|
148
|
+
),
|
|
149
|
+
_react2.default.createElement('br', null),
|
|
150
|
+
_react2.default.createElement(Input, { value: 'client.secret.' + tenantKey + '.' + accountKey, readOnly: true })
|
|
151
|
+
),
|
|
152
|
+
_react2.default.createElement(
|
|
153
|
+
'div',
|
|
154
|
+
{ style: { marginTop: 6, marginLeft: 16 } },
|
|
155
|
+
_react2.default.createElement(
|
|
156
|
+
'span',
|
|
157
|
+
null,
|
|
158
|
+
'Client Secret'
|
|
159
|
+
),
|
|
160
|
+
_react2.default.createElement('br', null),
|
|
161
|
+
_react2.default.createElement(Input, { value: secret, readOnly: true,
|
|
162
|
+
style: { display: 'inline-block' } }),
|
|
163
|
+
_react2.default.createElement(
|
|
164
|
+
Button,
|
|
165
|
+
{
|
|
166
|
+
onClick: this.copy,
|
|
167
|
+
style: { margin: '0 8px', marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
168
|
+
'Copy to clipboard'
|
|
169
|
+
),
|
|
170
|
+
this.state.secretCopied && _react2.default.createElement(
|
|
171
|
+
'span',
|
|
172
|
+
null,
|
|
173
|
+
'Copied!'
|
|
174
|
+
)
|
|
175
|
+
)
|
|
176
|
+
) : _react2.default.createElement(
|
|
177
|
+
'div',
|
|
178
|
+
null,
|
|
179
|
+
_react2.default.createElement(
|
|
180
|
+
'span',
|
|
181
|
+
null,
|
|
182
|
+
'Adapter Secret not found:'
|
|
183
|
+
),
|
|
184
|
+
_react2.default.createElement(
|
|
185
|
+
Button,
|
|
186
|
+
{
|
|
187
|
+
onClick: function onClick() {
|
|
188
|
+
_this2.setState({ generating: true });
|
|
189
|
+
generateNewAdapterSecret(providerType);
|
|
190
|
+
},
|
|
191
|
+
style: { margin: '0 8px', marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
192
|
+
'Generate New Adapter Secret'
|
|
193
|
+
),
|
|
194
|
+
this.state.generating && _react2.default.createElement(Spinner, { style: { display: 'inline-block' } })
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}]);
|
|
199
|
+
|
|
200
|
+
return AdapterSecret;
|
|
201
|
+
}(_react.Component);
|
|
202
|
+
|
|
203
|
+
exports.default = AdapterSecret;
|
|
204
|
+
|
|
205
|
+
/***/ },
|
|
206
|
+
|
|
207
|
+
/***/ 44:
|
|
208
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
209
|
+
|
|
210
|
+
'use strict';
|
|
211
|
+
|
|
212
|
+
Object.defineProperty(exports, "__esModule", {
|
|
213
|
+
value: true
|
|
214
|
+
});
|
|
215
|
+
|
|
70
216
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
71
217
|
|
|
72
218
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
@@ -75,26 +221,18 @@ module.exports =
|
|
|
75
221
|
|
|
76
222
|
var _react2 = _interopRequireDefault(_react);
|
|
77
223
|
|
|
78
|
-
var _reactDropzone = __webpack_require__(
|
|
224
|
+
var _reactDropzone = __webpack_require__(64);
|
|
79
225
|
|
|
80
226
|
var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
|
|
81
227
|
|
|
82
|
-
var _papaparse = __webpack_require__(
|
|
228
|
+
var _papaparse = __webpack_require__(62);
|
|
83
229
|
|
|
84
230
|
var _papaparse2 = _interopRequireDefault(_papaparse);
|
|
85
231
|
|
|
86
|
-
__webpack_require__(57);
|
|
87
|
-
|
|
88
|
-
var _clipboard = __webpack_require__(44);
|
|
89
|
-
|
|
90
|
-
var _clipboard2 = _interopRequireDefault(_clipboard);
|
|
91
|
-
|
|
92
232
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
93
233
|
|
|
94
234
|
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
|
95
235
|
|
|
96
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
97
|
-
|
|
98
236
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
99
237
|
|
|
100
238
|
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
@@ -108,12 +246,387 @@ module.exports =
|
|
|
108
246
|
f = Math.floor(Math.log(a) / Math.log(c));return parseFloat((a / Math.pow(c, f)).toFixed(d)) + " " + e[f];
|
|
109
247
|
}
|
|
110
248
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
249
|
+
var extensionBlacklist = ['xlsx', 'xls', 'json', 'xml', 'zip', 'tar', 'gz'];
|
|
250
|
+
|
|
251
|
+
var FlatFile = function (_Component) {
|
|
252
|
+
_inherits(FlatFile, _Component);
|
|
253
|
+
|
|
254
|
+
function FlatFile() {
|
|
255
|
+
_classCallCheck(this, FlatFile);
|
|
256
|
+
|
|
257
|
+
var _this = _possibleConstructorReturn(this, (FlatFile.__proto__ || Object.getPrototypeOf(FlatFile)).call(this));
|
|
258
|
+
|
|
259
|
+
_this.onDrop = function (fs) {
|
|
260
|
+
var meta = [].concat(_toConsumableArray(_this.state.meta));
|
|
261
|
+
var counter = 0;
|
|
262
|
+
var fileContents = [].concat(_toConsumableArray(_this.state.fileContents));
|
|
263
|
+
var contentCounter = 0;
|
|
264
|
+
fs.forEach(function (file) {
|
|
265
|
+
var extension = file.name.substr(file.name.lastIndexOf('.') + 1, file.name.length);
|
|
266
|
+
var blacklisted = extensionBlacklist.includes(extension);
|
|
267
|
+
if (!blacklisted) {
|
|
268
|
+
_papaparse2.default.parse(file, {
|
|
269
|
+
header: true,
|
|
270
|
+
dynamicTyping: true,
|
|
271
|
+
complete: function complete(result) {
|
|
272
|
+
meta = meta.concat({
|
|
273
|
+
name: file.name,
|
|
274
|
+
type: file.name.substr(0, file.name.lastIndexOf('.')).split(' ').join(),
|
|
275
|
+
byteSize: file.size,
|
|
276
|
+
properties: result.meta.fields.map(function (f) {
|
|
277
|
+
return {
|
|
278
|
+
label: f,
|
|
279
|
+
name: f.split(' ').join(),
|
|
280
|
+
type: result.data[0] && _typeof(result.data[0][f])
|
|
281
|
+
};
|
|
282
|
+
}),
|
|
283
|
+
delimiter: result.meta.delimiter
|
|
284
|
+
});
|
|
285
|
+
counter += 1;
|
|
286
|
+
if (counter === fs.length) {
|
|
287
|
+
// after last one is done
|
|
288
|
+
_this.setState({ meta: meta });
|
|
289
|
+
_this.props.onDrop();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
var reader = new FileReader();
|
|
294
|
+
reader.addEventListener("loadend", function (event) {
|
|
295
|
+
fileContents = fileContents.concat(event.target.result);
|
|
296
|
+
contentCounter += 1;
|
|
297
|
+
if (contentCounter === fs.length) {
|
|
298
|
+
_this.setState({ fileContents: fileContents });
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
reader.readAsText(file);
|
|
302
|
+
} else {
|
|
303
|
+
_this.setState({ dropError: 'File type not accepted.' });
|
|
304
|
+
setTimeout(function () {
|
|
305
|
+
_this.setState({ dropError: null });
|
|
306
|
+
}, 3500);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
_this.onReject = function () {
|
|
312
|
+
_this.setState({ dropError: 'File is too big!' });
|
|
313
|
+
setTimeout(function () {
|
|
314
|
+
_this.setState({ dropError: null });
|
|
315
|
+
}, 3500);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
_this.upload = function () {
|
|
319
|
+
var _this$props = _this.props,
|
|
320
|
+
setCsvFields = _this$props.setCsvFields,
|
|
321
|
+
providerType = _this$props.providerType;
|
|
322
|
+
|
|
323
|
+
_this.setState({ uploading: true });
|
|
324
|
+
setCsvFields(_this.state.meta, _this.state.fileContents, providerType).then(function () {
|
|
325
|
+
_this.setState({ meta: [], uploading: false });
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
_this.state = {
|
|
330
|
+
meta: [],
|
|
331
|
+
fileContents: [],
|
|
332
|
+
uploading: false,
|
|
333
|
+
dropError: null
|
|
334
|
+
};
|
|
335
|
+
return _this;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
_createClass(FlatFile, [{
|
|
339
|
+
key: 'render',
|
|
340
|
+
value: function render() {
|
|
341
|
+
var _state = this.state,
|
|
342
|
+
meta = _state.meta,
|
|
343
|
+
uploading = _state.uploading,
|
|
344
|
+
dropError = _state.dropError;
|
|
345
|
+
var _props = this.props,
|
|
346
|
+
metadata = _props.metadata,
|
|
347
|
+
inputs = _props.inputs;
|
|
348
|
+
|
|
349
|
+
var Button = inputs.Button;
|
|
350
|
+
var Spinner = inputs.Spinner;
|
|
351
|
+
var hasFile = meta && meta.length > 0;
|
|
352
|
+
return _react2.default.createElement(
|
|
353
|
+
'div',
|
|
354
|
+
null,
|
|
355
|
+
_react2.default.createElement(
|
|
356
|
+
'div',
|
|
357
|
+
{ style: { display: 'inline-block' } },
|
|
358
|
+
_react2.default.createElement(
|
|
359
|
+
_reactDropzone2.default,
|
|
360
|
+
{ onDropAccepted: this.onDrop, onDropRejected: this.onReject,
|
|
361
|
+
className: 'dropzone', maxSize: 1000000 * 50 },
|
|
362
|
+
!dropError ? _react2.default.createElement(
|
|
363
|
+
'p',
|
|
364
|
+
null,
|
|
365
|
+
'Drop one or more CSV files here, or click to select files to upload.'
|
|
366
|
+
) : _react2.default.createElement(
|
|
367
|
+
'p',
|
|
368
|
+
{ style: { color: '#c9302c', fontWeight: 'bold' } },
|
|
369
|
+
dropError
|
|
370
|
+
)
|
|
371
|
+
)
|
|
372
|
+
),
|
|
373
|
+
hasFile && _react2.default.createElement(
|
|
374
|
+
'aside',
|
|
375
|
+
{ style: { marginLeft: 30, display: 'inline-block' } },
|
|
376
|
+
_react2.default.createElement(
|
|
377
|
+
'div',
|
|
378
|
+
null,
|
|
379
|
+
_react2.default.createElement(
|
|
380
|
+
'h3',
|
|
381
|
+
{ style: { marginTop: 10, display: 'inline-block', verticalAlign: 'top' } },
|
|
382
|
+
'Dropped files'
|
|
383
|
+
),
|
|
384
|
+
_react2.default.createElement(
|
|
385
|
+
Button,
|
|
386
|
+
{
|
|
387
|
+
onClick: this.upload,
|
|
388
|
+
style: { marginTop: 4, marginLeft: 20, verticalAlign: 'top', height: 36 },
|
|
389
|
+
disabled: uploading },
|
|
390
|
+
_react2.default.createElement(
|
|
391
|
+
'span',
|
|
392
|
+
{ style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
|
|
393
|
+
'Upload'
|
|
394
|
+
),
|
|
395
|
+
'\xA0\xA0',
|
|
396
|
+
_react2.default.createElement(UploadIcon, null)
|
|
397
|
+
),
|
|
398
|
+
uploading && _react2.default.createElement(
|
|
399
|
+
'div',
|
|
400
|
+
{ style: { paddingLeft: 12, paddingTop: 12, display: 'inline-block' } },
|
|
401
|
+
_react2.default.createElement(Spinner, null)
|
|
402
|
+
)
|
|
403
|
+
),
|
|
404
|
+
_react2.default.createElement(
|
|
405
|
+
'ul',
|
|
406
|
+
null,
|
|
407
|
+
meta.map(function (f, i) {
|
|
408
|
+
return _react2.default.createElement(
|
|
409
|
+
'li',
|
|
410
|
+
{ key: i, style: { listStyle: 'none' } },
|
|
411
|
+
f.name,
|
|
412
|
+
' - ',
|
|
413
|
+
formatBytes(f.byteSize)
|
|
414
|
+
);
|
|
415
|
+
})
|
|
416
|
+
)
|
|
417
|
+
),
|
|
418
|
+
!uploading && !hasFile && metadata && metadata.length > 0 && _react2.default.createElement(
|
|
419
|
+
'div',
|
|
420
|
+
{ style: {
|
|
421
|
+
marginLeft: 20, display: 'inline-block', marginTop: 13, verticalAlign: 'top'
|
|
422
|
+
} },
|
|
423
|
+
_react2.default.createElement(
|
|
424
|
+
'div',
|
|
425
|
+
{ style: { marginBottom: 4 } },
|
|
426
|
+
_react2.default.createElement(
|
|
427
|
+
'strong',
|
|
428
|
+
{ style: { marginRight: 5 } },
|
|
429
|
+
metadata && metadata.length
|
|
430
|
+
),
|
|
431
|
+
_react2.default.createElement(
|
|
432
|
+
'strong',
|
|
433
|
+
null,
|
|
434
|
+
'file' + (metadata.length === 1 ? '' : 's') + ' uploaded'
|
|
435
|
+
)
|
|
436
|
+
),
|
|
437
|
+
_react2.default.createElement(
|
|
438
|
+
'ul',
|
|
439
|
+
null,
|
|
440
|
+
metadata.map(function (f, i) {
|
|
441
|
+
return _react2.default.createElement(
|
|
442
|
+
'li',
|
|
443
|
+
{ key: i, style: { listStyle: 'none' } },
|
|
444
|
+
f.name,
|
|
445
|
+
' - ',
|
|
446
|
+
formatBytes(f.byteSize)
|
|
447
|
+
);
|
|
448
|
+
})
|
|
449
|
+
)
|
|
450
|
+
)
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
}]);
|
|
454
|
+
|
|
455
|
+
return FlatFile;
|
|
456
|
+
}(_react.Component);
|
|
457
|
+
|
|
458
|
+
var UploadIcon = function UploadIcon() {
|
|
459
|
+
return _react2.default.createElement(
|
|
460
|
+
'svg',
|
|
461
|
+
{ fill: '#666', height: '24', viewBox: '0 0 24 24', width: '24' },
|
|
462
|
+
_react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
|
|
463
|
+
_react2.default.createElement('path', { d: 'M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z' })
|
|
464
|
+
);
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
exports.default = FlatFile;
|
|
468
|
+
|
|
469
|
+
/***/ },
|
|
470
|
+
|
|
471
|
+
/***/ 45:
|
|
472
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
473
|
+
|
|
474
|
+
'use strict';
|
|
475
|
+
|
|
476
|
+
Object.defineProperty(exports, "__esModule", {
|
|
477
|
+
value: true
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
var _react = __webpack_require__(1);
|
|
481
|
+
|
|
482
|
+
var _react2 = _interopRequireDefault(_react);
|
|
483
|
+
|
|
484
|
+
__webpack_require__(61);
|
|
485
|
+
|
|
486
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
487
|
+
|
|
488
|
+
// SKIP ON SERVER-SIDE RENDERING
|
|
489
|
+
var codemirror = null;
|
|
490
|
+
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
|
|
491
|
+
codemirror = __webpack_require__(63);
|
|
492
|
+
__webpack_require__(60);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
function unCamelize(text) {
|
|
496
|
+
return text.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
|
|
497
|
+
return str.toUpperCase();
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
var Google = function Google(props) {
|
|
502
|
+
var config = props.config,
|
|
503
|
+
creds = props.creds,
|
|
504
|
+
onChange = props.onChange,
|
|
505
|
+
credsDisabledCheck = props.credsDisabledCheck,
|
|
506
|
+
inputs = props.inputs,
|
|
507
|
+
onCheck = props.onCheck;
|
|
508
|
+
|
|
509
|
+
var Input = inputs.Input;
|
|
510
|
+
var Button = inputs.Button;
|
|
511
|
+
var Select = inputs.Select;
|
|
512
|
+
var CodeMirror = codemirror && codemirror.Controlled;
|
|
513
|
+
|
|
514
|
+
var CloudSQLTypes = [{ name: 'Postgres', satisfiesSearch: true }, { name: 'MySQL', satisfiesSearch: true }];
|
|
515
|
+
|
|
516
|
+
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'json';
|
|
517
|
+
|
|
518
|
+
return _react2.default.createElement(
|
|
519
|
+
'div',
|
|
520
|
+
null,
|
|
521
|
+
config.credentials && _react2.default.createElement(
|
|
522
|
+
'div',
|
|
523
|
+
{ style: { marginLeft: 1 } },
|
|
524
|
+
_react2.default.createElement(
|
|
525
|
+
'label',
|
|
526
|
+
{ htmlFor: 'creds' },
|
|
527
|
+
config.label || config.type,
|
|
528
|
+
' Credentials'
|
|
529
|
+
),
|
|
530
|
+
_react2.default.createElement('br', null),
|
|
531
|
+
_react2.default.createElement(
|
|
532
|
+
'div',
|
|
533
|
+
{ style: { display: 'inline-block', marginLeft: 16, width: '100%' } },
|
|
534
|
+
config.credentials.map(function (credType, index) {
|
|
535
|
+
return _react2.default.createElement(
|
|
536
|
+
'div',
|
|
537
|
+
{ key: index, style: { marginTop: 8, width: '100%' } },
|
|
538
|
+
_react2.default.createElement(
|
|
539
|
+
'label',
|
|
540
|
+
{ htmlFor: credType, className: 'labelz', style: { fontWeight: 'normal' } },
|
|
541
|
+
credType !== 'json' ? unCamelize(credType) : 'API key (paste json or drag-and-drop file)'
|
|
542
|
+
),
|
|
543
|
+
_react2.default.createElement('br', null),
|
|
544
|
+
credType !== 'json' ? _react2.default.createElement(
|
|
545
|
+
'div',
|
|
546
|
+
{ style: { display: 'inline-block', width: credType !== 'databaseType' ? 300 : 164 } },
|
|
547
|
+
credType !== 'databaseType' ? _react2.default.createElement(Input, { name: credType,
|
|
548
|
+
value: creds[credType] || '', onChange: onChange }) : _react2.default.createElement(Select, { vals: CloudSQLTypes, fieldPropLabel: 'name',
|
|
549
|
+
label: creds[credType] || 'Database Types',
|
|
550
|
+
onSelect: function onSelect(v) {
|
|
551
|
+
return onChange({ target: { name: credType, value: v } });
|
|
552
|
+
},
|
|
553
|
+
size: 'small', style: { width: 160, height: 31, textAlign: 'left' }
|
|
554
|
+
})
|
|
555
|
+
) : _react2.default.createElement(CodeMirror, { value: creds[credType],
|
|
556
|
+
className: 'env-creds-json-codemirror',
|
|
557
|
+
options: {
|
|
558
|
+
lineNumbers: true,
|
|
559
|
+
theme: 'default',
|
|
560
|
+
mode: 'javascript',
|
|
561
|
+
dragDrop: true
|
|
562
|
+
},
|
|
563
|
+
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
564
|
+
return onChange({ target: { name: credType, value: v } });
|
|
565
|
+
}
|
|
566
|
+
}),
|
|
567
|
+
index === 0 && _react2.default.createElement(
|
|
568
|
+
Button,
|
|
569
|
+
{
|
|
570
|
+
onClick: function onClick() {
|
|
571
|
+
return onCheck(creds);
|
|
572
|
+
},
|
|
573
|
+
style: { marginLeft: onlyJson ? 0 : 8, marginTop: onlyJson ? 8 : 0,
|
|
574
|
+
marginBottom: 2, height: 30, lineHeight: '10px'
|
|
575
|
+
},
|
|
576
|
+
disabled: credsDisabledCheck },
|
|
577
|
+
'Test Connection'
|
|
578
|
+
)
|
|
579
|
+
);
|
|
580
|
+
})
|
|
581
|
+
)
|
|
582
|
+
)
|
|
583
|
+
);
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
exports.default = Google;
|
|
587
|
+
|
|
588
|
+
/***/ },
|
|
589
|
+
|
|
590
|
+
/***/ 46:
|
|
591
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
592
|
+
|
|
593
|
+
'use strict';
|
|
594
|
+
|
|
595
|
+
Object.defineProperty(exports, "__esModule", {
|
|
596
|
+
value: true
|
|
597
|
+
});
|
|
598
|
+
|
|
599
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
600
|
+
|
|
601
|
+
var _react = __webpack_require__(1);
|
|
602
|
+
|
|
603
|
+
var _react2 = _interopRequireDefault(_react);
|
|
604
|
+
|
|
605
|
+
var _flatfile = __webpack_require__(44);
|
|
606
|
+
|
|
607
|
+
var _flatfile2 = _interopRequireDefault(_flatfile);
|
|
608
|
+
|
|
609
|
+
var _google = __webpack_require__(45);
|
|
610
|
+
|
|
611
|
+
var _google2 = _interopRequireDefault(_google);
|
|
612
|
+
|
|
613
|
+
var _adaptersecret = __webpack_require__(43);
|
|
614
|
+
|
|
615
|
+
var _adaptersecret2 = _interopRequireDefault(_adaptersecret);
|
|
616
|
+
|
|
617
|
+
var _oauth = __webpack_require__(47);
|
|
618
|
+
|
|
619
|
+
var _oauth2 = _interopRequireDefault(_oauth);
|
|
620
|
+
|
|
621
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
622
|
+
|
|
623
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
624
|
+
|
|
625
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
626
|
+
|
|
627
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
628
|
+
|
|
629
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
117
630
|
|
|
118
631
|
function unCamelize(text) {
|
|
119
632
|
return text.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
|
|
@@ -186,7 +699,8 @@ module.exports =
|
|
|
186
699
|
check = _props.check,
|
|
187
700
|
checking = _props.checking,
|
|
188
701
|
inputs = _props.inputs,
|
|
189
|
-
envCheckResult = _props.envCheckResult
|
|
702
|
+
envCheckResult = _props.envCheckResult,
|
|
703
|
+
clearCsvFields = _props.clearCsvFields;
|
|
190
704
|
|
|
191
705
|
|
|
192
706
|
var Button = inputs.Button;
|
|
@@ -220,16 +734,17 @@ module.exports =
|
|
|
220
734
|
_react2.default.createElement('br', null),
|
|
221
735
|
_react2.default.createElement('br', null)
|
|
222
736
|
) : _react2.default.createElement('div', { style: { height: 13 } }),
|
|
223
|
-
isOauth ? _react2.default.createElement(
|
|
737
|
+
isOauth ? _react2.default.createElement(_oauth2.default, { wizard: wizard, onCheck: check,
|
|
224
738
|
creds: this.props.creds, providerType: providerType,
|
|
225
739
|
onGenerateUrl: function onGenerateUrl(urlType) {
|
|
226
740
|
return getOauthUrl(urlType, providerType);
|
|
227
741
|
},
|
|
228
742
|
checkOauthCreds: checkOauthCreds, envCheckResult: envCheckResult,
|
|
229
|
-
checking: checking, inputs: inputs }) : isFlatFile ? _react2.default.createElement(
|
|
743
|
+
checking: checking, inputs: inputs }) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check, metadata: metadata,
|
|
230
744
|
checking: checking, setCsvFields: setCsvFields,
|
|
231
745
|
providerType: providerType, inputs: inputs,
|
|
232
|
-
accountKey: accountKey, tenantKey: tenantKey
|
|
746
|
+
accountKey: accountKey, tenantKey: tenantKey,
|
|
747
|
+
onDrop: clearCsvFields }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
|
|
233
748
|
credsDisabledCheck: credsDisabledCheck, inputs: inputs,
|
|
234
749
|
onCheck: check }) : _react2.default.createElement(
|
|
235
750
|
'div',
|
|
@@ -246,386 +761,119 @@ module.exports =
|
|
|
246
761
|
_react2.default.createElement(
|
|
247
762
|
'label',
|
|
248
763
|
{ htmlFor: 'rootUrl', className: 'labelz' },
|
|
249
|
-
'Data Source Endpoint'
|
|
250
|
-
),
|
|
251
|
-
_react2.default.createElement(Input, { name: 'rootUrl',
|
|
252
|
-
onKeyPress: this.credKeyPress,
|
|
253
|
-
value: this.state.actualCreds.rootUrl || '',
|
|
254
|
-
onChange: this.onChange })
|
|
255
|
-
),
|
|
256
|
-
_react2.default.createElement(
|
|
257
|
-
Button,
|
|
258
|
-
{
|
|
259
|
-
onClick: function onClick() {
|
|
260
|
-
return check(_this2.state.actualCreds);
|
|
261
|
-
},
|
|
262
|
-
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
|
|
263
|
-
disabled: !hasEndpoint || credsDisabledCheck },
|
|
264
|
-
'Test Connection'
|
|
265
|
-
),
|
|
266
|
-
_react2.default.createElement(
|
|
267
|
-
'div',
|
|
268
|
-
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
269
|
-
checking && _react2.default.createElement(Spinner, null),
|
|
270
|
-
envCheckResult && _react2.default.createElement(
|
|
271
|
-
'span',
|
|
272
|
-
null,
|
|
273
|
-
envCheckResult
|
|
274
|
-
)
|
|
275
|
-
)
|
|
276
|
-
)
|
|
277
|
-
),
|
|
278
|
-
config.credentials && _react2.default.createElement(
|
|
279
|
-
'div',
|
|
280
|
-
{ style: { marginLeft: 16 } },
|
|
281
|
-
_react2.default.createElement('br', null),
|
|
282
|
-
_react2.default.createElement(
|
|
283
|
-
'label',
|
|
284
|
-
{ htmlFor: 'creds' },
|
|
285
|
-
providerType,
|
|
286
|
-
' Credentials'
|
|
287
|
-
),
|
|
288
|
-
_react2.default.createElement('br', null),
|
|
289
|
-
_react2.default.createElement(
|
|
290
|
-
'div',
|
|
291
|
-
{ style: { display: 'inline-block', marginLeft: 16 } },
|
|
292
|
-
config.credentials.map(function (credType, index) {
|
|
293
|
-
return _react2.default.createElement(
|
|
294
|
-
'div',
|
|
295
|
-
{ key: index, style: { marginTop: 8 } },
|
|
296
|
-
_react2.default.createElement(
|
|
297
|
-
'label',
|
|
298
|
-
{ htmlFor: credType, className: 'labelz', style: { fontWeight: 'normal' } },
|
|
299
|
-
unCamelize(credType)
|
|
300
|
-
),
|
|
301
|
-
_react2.default.createElement('br', null),
|
|
302
|
-
_react2.default.createElement(Input, { name: credType,
|
|
303
|
-
onKeyPress: _this2.credKeyPress,
|
|
304
|
-
value: _this2.state.actualCreds[credType] || '',
|
|
305
|
-
onChange: _this2.onChange })
|
|
306
|
-
);
|
|
307
|
-
})
|
|
308
|
-
)
|
|
309
|
-
),
|
|
310
|
-
isAdapter && _react2.default.createElement(AdapterSecret, { inputs: inputs,
|
|
311
|
-
providerType: providerType, secret: adapterSecret,
|
|
312
|
-
generateNewAdapterSecret: generateNewAdapterSecret,
|
|
313
|
-
tenantKey: tenantKey, accountKey: accountKey })
|
|
314
|
-
),
|
|
315
|
-
_react2.default.createElement(
|
|
316
|
-
'span',
|
|
317
|
-
null,
|
|
318
|
-
this.props.children
|
|
319
|
-
),
|
|
320
|
-
_react2.default.createElement('br', null)
|
|
321
|
-
);
|
|
322
|
-
}
|
|
323
|
-
}]);
|
|
324
|
-
|
|
325
|
-
return EnvSection;
|
|
326
|
-
}(_react.Component);
|
|
327
|
-
|
|
328
|
-
var Google = function Google(props) {
|
|
329
|
-
var config = props.config,
|
|
330
|
-
creds = props.creds,
|
|
331
|
-
onChange = props.onChange,
|
|
332
|
-
credsDisabledCheck = props.credsDisabledCheck,
|
|
333
|
-
inputs = props.inputs,
|
|
334
|
-
onCheck = props.onCheck;
|
|
335
|
-
|
|
336
|
-
var Input = inputs.Input;
|
|
337
|
-
var Button = inputs.Button;
|
|
338
|
-
var Select = inputs.Select;
|
|
339
|
-
var CodeMirror = codemirror && codemirror.Controlled;
|
|
340
|
-
|
|
341
|
-
var CloudSQLTypes = [{ name: 'Postgres', satisfiesSearch: true }, { name: 'MySQL', satisfiesSearch: true }];
|
|
342
|
-
|
|
343
|
-
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'json';
|
|
344
|
-
|
|
345
|
-
return _react2.default.createElement(
|
|
346
|
-
'div',
|
|
347
|
-
null,
|
|
348
|
-
config.credentials && _react2.default.createElement(
|
|
349
|
-
'div',
|
|
350
|
-
{ style: { marginLeft: 1 } },
|
|
351
|
-
_react2.default.createElement(
|
|
352
|
-
'label',
|
|
353
|
-
{ htmlFor: 'creds' },
|
|
354
|
-
config.label || config.type,
|
|
355
|
-
' Credentials'
|
|
356
|
-
),
|
|
357
|
-
_react2.default.createElement('br', null),
|
|
358
|
-
_react2.default.createElement(
|
|
359
|
-
'div',
|
|
360
|
-
{ style: { display: 'inline-block', marginLeft: 16, width: '100%' } },
|
|
361
|
-
config.credentials.map(function (credType, index) {
|
|
362
|
-
return _react2.default.createElement(
|
|
363
|
-
'div',
|
|
364
|
-
{ key: index, style: { marginTop: 8, width: '100%' } },
|
|
365
|
-
_react2.default.createElement(
|
|
366
|
-
'label',
|
|
367
|
-
{ htmlFor: credType, className: 'labelz', style: { fontWeight: 'normal' } },
|
|
368
|
-
credType !== 'json' ? unCamelize(credType) : 'API key (paste json or drag-and-drop file)'
|
|
369
|
-
),
|
|
370
|
-
_react2.default.createElement('br', null),
|
|
371
|
-
credType !== 'json' ? _react2.default.createElement(
|
|
372
|
-
'div',
|
|
373
|
-
{ style: { display: 'inline-block', width: credType !== 'databaseType' ? 300 : 164 } },
|
|
374
|
-
credType !== 'databaseType' ? _react2.default.createElement(Input, { name: credType,
|
|
375
|
-
value: creds[credType] || '', onChange: onChange }) : _react2.default.createElement(Select, { vals: CloudSQLTypes, fieldPropLabel: 'name',
|
|
376
|
-
label: creds[credType] || 'Database Types',
|
|
377
|
-
onSelect: function onSelect(v) {
|
|
378
|
-
return onChange({ target: { name: credType, value: v } });
|
|
379
|
-
},
|
|
380
|
-
size: 'small', style: { width: 160, height: 31, textAlign: 'left' }
|
|
381
|
-
})
|
|
382
|
-
) : _react2.default.createElement(CodeMirror, { value: creds[credType],
|
|
383
|
-
className: 'env-creds-json-codemirror',
|
|
384
|
-
options: {
|
|
385
|
-
lineNumbers: true,
|
|
386
|
-
theme: 'default',
|
|
387
|
-
mode: 'javascript',
|
|
388
|
-
dragDrop: true
|
|
389
|
-
},
|
|
390
|
-
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
391
|
-
return onChange({ target: { name: credType, value: v } });
|
|
392
|
-
}
|
|
393
|
-
}),
|
|
394
|
-
index === 0 && _react2.default.createElement(
|
|
395
|
-
Button,
|
|
396
|
-
{
|
|
397
|
-
onClick: function onClick() {
|
|
398
|
-
return onCheck(creds);
|
|
399
|
-
},
|
|
400
|
-
style: { marginLeft: onlyJson ? 0 : 8, marginTop: onlyJson ? 8 : 0,
|
|
401
|
-
marginBottom: 2, height: 30, lineHeight: '10px'
|
|
402
|
-
},
|
|
403
|
-
disabled: credsDisabledCheck },
|
|
404
|
-
'Test Connection'
|
|
405
|
-
)
|
|
406
|
-
);
|
|
407
|
-
})
|
|
408
|
-
)
|
|
409
|
-
)
|
|
410
|
-
);
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
var FlatFile = function (_Component2) {
|
|
414
|
-
_inherits(FlatFile, _Component2);
|
|
415
|
-
|
|
416
|
-
// react-dropzone
|
|
417
|
-
// papaparse
|
|
418
|
-
|
|
419
|
-
function FlatFile() {
|
|
420
|
-
_classCallCheck(this, FlatFile);
|
|
421
|
-
|
|
422
|
-
var _this3 = _possibleConstructorReturn(this, (FlatFile.__proto__ || Object.getPrototypeOf(FlatFile)).call(this));
|
|
423
|
-
|
|
424
|
-
_this3.onDrop = function (fs) {
|
|
425
|
-
var meta = [].concat(_toConsumableArray(_this3.state.meta));
|
|
426
|
-
var counter = 0;
|
|
427
|
-
var fileContents = [].concat(_toConsumableArray(_this3.state.fileContents));
|
|
428
|
-
var contentCounter = 0;
|
|
429
|
-
fs.forEach(function (file) {
|
|
430
|
-
_papaparse2.default.parse(file, {
|
|
431
|
-
header: true,
|
|
432
|
-
dynamicTyping: true,
|
|
433
|
-
complete: function complete(result) {
|
|
434
|
-
meta = meta.concat({
|
|
435
|
-
name: file.name,
|
|
436
|
-
type: file.name.substr(0, file.name.lastIndexOf('.')).split(' ').join(),
|
|
437
|
-
byteSize: file.size,
|
|
438
|
-
properties: result.meta.fields.map(function (f) {
|
|
439
|
-
return {
|
|
440
|
-
label: f,
|
|
441
|
-
name: f.split(' ').join(),
|
|
442
|
-
type: result.data[0] && _typeof(result.data[0][f])
|
|
443
|
-
};
|
|
444
|
-
}),
|
|
445
|
-
delimiter: result.meta.delimiter
|
|
446
|
-
});
|
|
447
|
-
counter += 1;
|
|
448
|
-
if (counter === fs.length) {
|
|
449
|
-
// after last one is done
|
|
450
|
-
_this3.setState({ meta: meta });
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
var reader = new FileReader();
|
|
455
|
-
reader.addEventListener("loadend", function (event) {
|
|
456
|
-
fileContents = fileContents.concat(event.target.result);
|
|
457
|
-
contentCounter += 1;
|
|
458
|
-
if (contentCounter === fs.length) {
|
|
459
|
-
_this3.setState({ fileContents: fileContents });
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
reader.readAsText(file);
|
|
463
|
-
});
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
_this3.onReject = function () {
|
|
467
|
-
_this3.setState({ dropError: 'File is too big!' });
|
|
468
|
-
setTimeout(function () {
|
|
469
|
-
_this3.setState({ dropError: null });
|
|
470
|
-
}, 3500);
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
_this3.upload = function () {
|
|
474
|
-
var _this3$props = _this3.props,
|
|
475
|
-
setCsvFields = _this3$props.setCsvFields,
|
|
476
|
-
providerType = _this3$props.providerType;
|
|
477
|
-
|
|
478
|
-
_this3.setState({ uploading: true });
|
|
479
|
-
setCsvFields(_this3.state.meta, _this3.state.fileContents, providerType).then(function () {
|
|
480
|
-
_this3.setState({ meta: [], uploading: false });
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
_this3.state = {
|
|
485
|
-
meta: [],
|
|
486
|
-
fileContents: [],
|
|
487
|
-
uploading: false,
|
|
488
|
-
dropError: null
|
|
489
|
-
};
|
|
490
|
-
return _this3;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
_createClass(FlatFile, [{
|
|
494
|
-
key: 'render',
|
|
495
|
-
value: function render() {
|
|
496
|
-
var _state = this.state,
|
|
497
|
-
meta = _state.meta,
|
|
498
|
-
uploading = _state.uploading,
|
|
499
|
-
dropError = _state.dropError;
|
|
500
|
-
var _props2 = this.props,
|
|
501
|
-
metadata = _props2.metadata,
|
|
502
|
-
inputs = _props2.inputs;
|
|
503
|
-
|
|
504
|
-
var Button = inputs.Button;
|
|
505
|
-
var Spinner = inputs.Spinner;
|
|
506
|
-
var hasFile = meta && meta.length > 0;
|
|
507
|
-
return _react2.default.createElement(
|
|
508
|
-
'div',
|
|
509
|
-
null,
|
|
510
|
-
_react2.default.createElement(
|
|
511
|
-
'div',
|
|
512
|
-
{ style: { display: 'inline-block' } },
|
|
513
|
-
_react2.default.createElement(
|
|
514
|
-
_reactDropzone2.default,
|
|
515
|
-
{ onDropAccepted: this.onDrop, onDropRejected: this.onReject,
|
|
516
|
-
className: 'dropzone', maxSize: 1000000 * 50 },
|
|
517
|
-
!dropError ? _react2.default.createElement(
|
|
518
|
-
'p',
|
|
519
|
-
null,
|
|
520
|
-
'Drop one or more CSV files here, or click to select files to upload.'
|
|
521
|
-
) : _react2.default.createElement(
|
|
522
|
-
'p',
|
|
523
|
-
{ style: { color: '#c9302c', fontWeight: 'bold' } },
|
|
524
|
-
dropError
|
|
525
|
-
)
|
|
526
|
-
)
|
|
527
|
-
),
|
|
528
|
-
hasFile && _react2.default.createElement(
|
|
529
|
-
'aside',
|
|
530
|
-
{ style: { marginLeft: 30, display: 'inline-block' } },
|
|
531
|
-
_react2.default.createElement(
|
|
532
|
-
'div',
|
|
533
|
-
null,
|
|
534
|
-
_react2.default.createElement(
|
|
535
|
-
'h3',
|
|
536
|
-
{ style: { marginTop: 10, display: 'inline-block', verticalAlign: 'top' } },
|
|
537
|
-
'Dropped files'
|
|
538
|
-
),
|
|
539
|
-
_react2.default.createElement(
|
|
540
|
-
Button,
|
|
541
|
-
{
|
|
542
|
-
onClick: this.upload,
|
|
543
|
-
style: { marginTop: 4, marginLeft: 20, verticalAlign: 'top', height: 36 },
|
|
544
|
-
disabled: uploading },
|
|
764
|
+
'Data Source Endpoint'
|
|
765
|
+
),
|
|
766
|
+
_react2.default.createElement(Input, { name: 'rootUrl',
|
|
767
|
+
onKeyPress: this.credKeyPress,
|
|
768
|
+
value: this.state.actualCreds.rootUrl || '',
|
|
769
|
+
onChange: this.onChange })
|
|
770
|
+
),
|
|
545
771
|
_react2.default.createElement(
|
|
546
|
-
|
|
547
|
-
{
|
|
548
|
-
|
|
772
|
+
Button,
|
|
773
|
+
{
|
|
774
|
+
onClick: function onClick() {
|
|
775
|
+
return check(_this2.state.actualCreds);
|
|
776
|
+
},
|
|
777
|
+
style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
|
|
778
|
+
disabled: !hasEndpoint || credsDisabledCheck },
|
|
779
|
+
'Test Connection'
|
|
549
780
|
),
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
781
|
+
_react2.default.createElement(
|
|
782
|
+
'div',
|
|
783
|
+
{ style: { display: 'inline-block', marginLeft: 12 } },
|
|
784
|
+
checking && _react2.default.createElement(Spinner, null),
|
|
785
|
+
envCheckResult && _react2.default.createElement(
|
|
786
|
+
'span',
|
|
787
|
+
null,
|
|
788
|
+
envCheckResult
|
|
789
|
+
)
|
|
790
|
+
)
|
|
557
791
|
)
|
|
558
792
|
),
|
|
559
|
-
_react2.default.createElement(
|
|
560
|
-
'ul',
|
|
561
|
-
null,
|
|
562
|
-
meta.map(function (f, i) {
|
|
563
|
-
return _react2.default.createElement(
|
|
564
|
-
'li',
|
|
565
|
-
{ key: i, style: { listStyle: 'none' } },
|
|
566
|
-
f.name,
|
|
567
|
-
' - ',
|
|
568
|
-
formatBytes(f.byteSize)
|
|
569
|
-
);
|
|
570
|
-
})
|
|
571
|
-
)
|
|
572
|
-
),
|
|
573
|
-
!uploading && !hasFile && metadata && metadata.length > 0 && _react2.default.createElement(
|
|
574
|
-
'div',
|
|
575
|
-
{ style: {
|
|
576
|
-
marginLeft: 20, display: 'inline-block', marginTop: 13, verticalAlign: 'top'
|
|
577
|
-
} },
|
|
578
|
-
_react2.default.createElement(
|
|
793
|
+
config.credentials && _react2.default.createElement(
|
|
579
794
|
'div',
|
|
580
|
-
{ style: {
|
|
795
|
+
{ style: { marginLeft: 16 } },
|
|
796
|
+
_react2.default.createElement('br', null),
|
|
581
797
|
_react2.default.createElement(
|
|
582
|
-
'
|
|
583
|
-
{
|
|
584
|
-
|
|
798
|
+
'label',
|
|
799
|
+
{ htmlFor: 'creds' },
|
|
800
|
+
providerType,
|
|
801
|
+
' Credentials'
|
|
585
802
|
),
|
|
803
|
+
_react2.default.createElement('br', null),
|
|
586
804
|
_react2.default.createElement(
|
|
587
|
-
'
|
|
588
|
-
|
|
589
|
-
|
|
805
|
+
'div',
|
|
806
|
+
{ style: { display: 'inline-block', marginLeft: 16 } },
|
|
807
|
+
config.credentials.map(function (credType, index) {
|
|
808
|
+
return _react2.default.createElement(
|
|
809
|
+
'div',
|
|
810
|
+
{ key: index, style: { marginTop: 8 } },
|
|
811
|
+
_react2.default.createElement(
|
|
812
|
+
'label',
|
|
813
|
+
{ htmlFor: credType, className: 'labelz', style: { fontWeight: 'normal' } },
|
|
814
|
+
unCamelize(credType)
|
|
815
|
+
),
|
|
816
|
+
_react2.default.createElement('br', null),
|
|
817
|
+
_react2.default.createElement(Input, { name: credType,
|
|
818
|
+
onKeyPress: _this2.credKeyPress,
|
|
819
|
+
value: _this2.state.actualCreds[credType] || '',
|
|
820
|
+
onChange: _this2.onChange })
|
|
821
|
+
);
|
|
822
|
+
})
|
|
590
823
|
)
|
|
591
824
|
),
|
|
592
|
-
_react2.default.createElement(
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
})
|
|
604
|
-
)
|
|
605
|
-
)
|
|
825
|
+
isAdapter && _react2.default.createElement(_adaptersecret2.default, { inputs: inputs,
|
|
826
|
+
providerType: providerType, secret: adapterSecret,
|
|
827
|
+
generateNewAdapterSecret: generateNewAdapterSecret,
|
|
828
|
+
tenantKey: tenantKey, accountKey: accountKey })
|
|
829
|
+
),
|
|
830
|
+
_react2.default.createElement(
|
|
831
|
+
'span',
|
|
832
|
+
null,
|
|
833
|
+
this.props.children
|
|
834
|
+
),
|
|
835
|
+
_react2.default.createElement('br', null)
|
|
606
836
|
);
|
|
607
837
|
}
|
|
608
838
|
}]);
|
|
609
839
|
|
|
610
|
-
return
|
|
840
|
+
return EnvSection;
|
|
611
841
|
}(_react.Component);
|
|
612
842
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
843
|
+
exports.default = EnvSection;
|
|
844
|
+
|
|
845
|
+
/***/ },
|
|
846
|
+
|
|
847
|
+
/***/ 47:
|
|
848
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
849
|
+
|
|
850
|
+
'use strict';
|
|
851
|
+
|
|
852
|
+
Object.defineProperty(exports, "__esModule", {
|
|
853
|
+
value: true
|
|
854
|
+
});
|
|
855
|
+
|
|
856
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
857
|
+
|
|
858
|
+
var _react = __webpack_require__(1);
|
|
859
|
+
|
|
860
|
+
var _react2 = _interopRequireDefault(_react);
|
|
861
|
+
|
|
862
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
863
|
+
|
|
864
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
865
|
+
|
|
866
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
867
|
+
|
|
868
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
621
869
|
|
|
622
|
-
var Oauth = function (
|
|
623
|
-
_inherits(Oauth,
|
|
870
|
+
var Oauth = function (_Component) {
|
|
871
|
+
_inherits(Oauth, _Component);
|
|
624
872
|
|
|
625
873
|
function Oauth() {
|
|
626
874
|
var _ref;
|
|
627
875
|
|
|
628
|
-
var _temp,
|
|
876
|
+
var _temp, _this, _ret;
|
|
629
877
|
|
|
630
878
|
_classCallCheck(this, Oauth);
|
|
631
879
|
|
|
@@ -633,14 +881,14 @@ module.exports =
|
|
|
633
881
|
args[_key] = arguments[_key];
|
|
634
882
|
}
|
|
635
883
|
|
|
636
|
-
return _ret = (_temp = (
|
|
884
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Oauth.__proto__ || Object.getPrototypeOf(Oauth)).call.apply(_ref, [this].concat(args))), _this), _this.finishOauth = function (e) {
|
|
637
885
|
if (e.data && e.data.lingkOauthMessage && e.data.lingkOauthMessage === 'complete') {
|
|
638
|
-
|
|
886
|
+
_this.props.checkOauthCreds('finish');
|
|
639
887
|
}
|
|
640
|
-
},
|
|
641
|
-
var
|
|
642
|
-
wizard =
|
|
643
|
-
checkOauthCreds =
|
|
888
|
+
}, _this.startOauth = function () {
|
|
889
|
+
var _this$props = _this.props,
|
|
890
|
+
wizard = _this$props.wizard,
|
|
891
|
+
checkOauthCreds = _this$props.checkOauthCreds;
|
|
644
892
|
|
|
645
893
|
checkOauthCreds('start');
|
|
646
894
|
var width = 600;
|
|
@@ -649,7 +897,7 @@ module.exports =
|
|
|
649
897
|
var top = window.screenY + (window.outerHeight - height) / 2.5;
|
|
650
898
|
var popup = window.open(wizard.oauthUrl, 'Oauth', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
|
|
651
899
|
popup.focus();
|
|
652
|
-
}, _temp), _possibleConstructorReturn(
|
|
900
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
653
901
|
}
|
|
654
902
|
|
|
655
903
|
_createClass(Oauth, [{
|
|
@@ -665,15 +913,15 @@ module.exports =
|
|
|
665
913
|
}, {
|
|
666
914
|
key: 'render',
|
|
667
915
|
value: function render() {
|
|
668
|
-
var
|
|
669
|
-
wizard =
|
|
670
|
-
onGenerateUrl =
|
|
671
|
-
onCheck =
|
|
672
|
-
providerType =
|
|
673
|
-
checking =
|
|
674
|
-
creds =
|
|
675
|
-
inputs =
|
|
676
|
-
envCheckResult =
|
|
916
|
+
var _props = this.props,
|
|
917
|
+
wizard = _props.wizard,
|
|
918
|
+
onGenerateUrl = _props.onGenerateUrl,
|
|
919
|
+
onCheck = _props.onCheck,
|
|
920
|
+
providerType = _props.providerType,
|
|
921
|
+
checking = _props.checking,
|
|
922
|
+
creds = _props.creds,
|
|
923
|
+
inputs = _props.inputs,
|
|
924
|
+
envCheckResult = _props.envCheckResult;
|
|
677
925
|
|
|
678
926
|
var Spinner = inputs.Spinner;
|
|
679
927
|
var Button = inputs.Button;
|
|
@@ -787,32 +1035,32 @@ module.exports =
|
|
|
787
1035
|
return Oauth;
|
|
788
1036
|
}(_react.Component);
|
|
789
1037
|
|
|
790
|
-
var DotDot = function (
|
|
791
|
-
_inherits(DotDot,
|
|
1038
|
+
var DotDot = function (_Component2) {
|
|
1039
|
+
_inherits(DotDot, _Component2);
|
|
792
1040
|
|
|
793
1041
|
function DotDot(props) {
|
|
794
1042
|
_classCallCheck(this, DotDot);
|
|
795
1043
|
|
|
796
|
-
var
|
|
1044
|
+
var _this2 = _possibleConstructorReturn(this, (DotDot.__proto__ || Object.getPrototypeOf(DotDot)).call(this));
|
|
797
1045
|
|
|
798
|
-
|
|
1046
|
+
_this2.state = {
|
|
799
1047
|
text: props.text
|
|
800
1048
|
};
|
|
801
|
-
return
|
|
1049
|
+
return _this2;
|
|
802
1050
|
}
|
|
803
1051
|
|
|
804
1052
|
_createClass(DotDot, [{
|
|
805
1053
|
key: 'componentWillMount',
|
|
806
1054
|
value: function componentWillMount() {
|
|
807
|
-
var
|
|
1055
|
+
var _this3 = this;
|
|
808
1056
|
|
|
809
1057
|
this.interval = setInterval(function () {
|
|
810
|
-
var text =
|
|
1058
|
+
var text = _this3.state.text;
|
|
811
1059
|
|
|
812
1060
|
if (text.length < 28) {
|
|
813
|
-
|
|
1061
|
+
_this3.setState({ text: text + '.' });
|
|
814
1062
|
} else {
|
|
815
|
-
|
|
1063
|
+
_this3.setState({ text: _this3.props.text });
|
|
816
1064
|
}
|
|
817
1065
|
}, 200);
|
|
818
1066
|
}
|
|
@@ -835,126 +1083,11 @@ module.exports =
|
|
|
835
1083
|
return DotDot;
|
|
836
1084
|
}(_react.Component);
|
|
837
1085
|
|
|
838
|
-
|
|
839
|
-
_inherits(AdapterSecret, _Component5);
|
|
840
|
-
|
|
841
|
-
function AdapterSecret() {
|
|
842
|
-
_classCallCheck(this, AdapterSecret);
|
|
843
|
-
|
|
844
|
-
var _this7 = _possibleConstructorReturn(this, (AdapterSecret.__proto__ || Object.getPrototypeOf(AdapterSecret)).call(this));
|
|
845
|
-
|
|
846
|
-
_this7.copy = function () {
|
|
847
|
-
_clipboard2.default.copy({
|
|
848
|
-
'text/plain': _this7.props.secret
|
|
849
|
-
});
|
|
850
|
-
_this7.setState({ secretCopied: true });
|
|
851
|
-
setTimeout(function () {
|
|
852
|
-
_this7.setState({ secretCopied: false });
|
|
853
|
-
}, 4000);
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
_this7.state = {
|
|
857
|
-
generating: false,
|
|
858
|
-
secretCopied: false
|
|
859
|
-
};
|
|
860
|
-
return _this7;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
_createClass(AdapterSecret, [{
|
|
864
|
-
key: 'render',
|
|
865
|
-
value: function render() {
|
|
866
|
-
var _this8 = this;
|
|
867
|
-
|
|
868
|
-
var _props4 = this.props,
|
|
869
|
-
generateNewAdapterSecret = _props4.generateNewAdapterSecret,
|
|
870
|
-
tenantKey = _props4.tenantKey,
|
|
871
|
-
accountKey = _props4.accountKey,
|
|
872
|
-
providerType = _props4.providerType,
|
|
873
|
-
secret = _props4.secret,
|
|
874
|
-
inputs = _props4.inputs;
|
|
875
|
-
|
|
876
|
-
var Spinner = inputs.Spinner;
|
|
877
|
-
var Button = inputs.Button;
|
|
878
|
-
var Input = inputs.Input;
|
|
879
|
-
return _react2.default.createElement(
|
|
880
|
-
'div',
|
|
881
|
-
{ style: { marginLeft: 16 } },
|
|
882
|
-
_react2.default.createElement('br', null),
|
|
883
|
-
secret ? _react2.default.createElement(
|
|
884
|
-
'div',
|
|
885
|
-
null,
|
|
886
|
-
_react2.default.createElement(
|
|
887
|
-
'strong',
|
|
888
|
-
null,
|
|
889
|
-
'Adapter Credentials'
|
|
890
|
-
),
|
|
891
|
-
_react2.default.createElement(
|
|
892
|
-
'div',
|
|
893
|
-
{ style: { marginTop: 6, marginLeft: 16 } },
|
|
894
|
-
_react2.default.createElement(
|
|
895
|
-
'span',
|
|
896
|
-
null,
|
|
897
|
-
'Client Key'
|
|
898
|
-
),
|
|
899
|
-
_react2.default.createElement('br', null),
|
|
900
|
-
_react2.default.createElement(Input, { value: 'client.secret.' + tenantKey + '.' + accountKey, readOnly: true })
|
|
901
|
-
),
|
|
902
|
-
_react2.default.createElement(
|
|
903
|
-
'div',
|
|
904
|
-
{ style: { marginTop: 6, marginLeft: 16 } },
|
|
905
|
-
_react2.default.createElement(
|
|
906
|
-
'span',
|
|
907
|
-
null,
|
|
908
|
-
'Client Secret'
|
|
909
|
-
),
|
|
910
|
-
_react2.default.createElement('br', null),
|
|
911
|
-
_react2.default.createElement(Input, { value: secret, readOnly: true,
|
|
912
|
-
style: { display: 'inline-block' } }),
|
|
913
|
-
_react2.default.createElement(
|
|
914
|
-
Button,
|
|
915
|
-
{
|
|
916
|
-
onClick: this.copy,
|
|
917
|
-
style: { margin: '0 8px', marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
918
|
-
'Copy to clipboard'
|
|
919
|
-
),
|
|
920
|
-
this.state.secretCopied && _react2.default.createElement(
|
|
921
|
-
'span',
|
|
922
|
-
null,
|
|
923
|
-
'Copied!'
|
|
924
|
-
)
|
|
925
|
-
)
|
|
926
|
-
) : _react2.default.createElement(
|
|
927
|
-
'div',
|
|
928
|
-
null,
|
|
929
|
-
_react2.default.createElement(
|
|
930
|
-
'span',
|
|
931
|
-
null,
|
|
932
|
-
'Adapter Secret not found:'
|
|
933
|
-
),
|
|
934
|
-
_react2.default.createElement(
|
|
935
|
-
Button,
|
|
936
|
-
{
|
|
937
|
-
onClick: function onClick() {
|
|
938
|
-
_this8.setState({ generating: true });
|
|
939
|
-
generateNewAdapterSecret(providerType);
|
|
940
|
-
},
|
|
941
|
-
style: { margin: '0 8px', marginBottom: 2, height: 30, lineHeight: '10px' } },
|
|
942
|
-
'Generate New Adapter Secret'
|
|
943
|
-
),
|
|
944
|
-
this.state.generating && _react2.default.createElement(Spinner, { style: { display: 'inline-block' } })
|
|
945
|
-
)
|
|
946
|
-
);
|
|
947
|
-
}
|
|
948
|
-
}]);
|
|
949
|
-
|
|
950
|
-
return AdapterSecret;
|
|
951
|
-
}(_react.Component);
|
|
952
|
-
|
|
953
|
-
exports.default = EnvSection;
|
|
1086
|
+
exports.default = Oauth;
|
|
954
1087
|
|
|
955
1088
|
/***/ },
|
|
956
1089
|
|
|
957
|
-
/***/
|
|
1090
|
+
/***/ 48:
|
|
958
1091
|
/***/ function(module, exports, __webpack_require__) {
|
|
959
1092
|
|
|
960
1093
|
"use strict";
|
|
@@ -1136,7 +1269,7 @@ module.exports =
|
|
|
1136
1269
|
|
|
1137
1270
|
/***/ },
|
|
1138
1271
|
|
|
1139
|
-
/***/
|
|
1272
|
+
/***/ 59:
|
|
1140
1273
|
/***/ function(module, exports, __webpack_require__) {
|
|
1141
1274
|
|
|
1142
1275
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -10802,7 +10935,7 @@ module.exports =
|
|
|
10802
10935
|
|
|
10803
10936
|
/***/ },
|
|
10804
10937
|
|
|
10805
|
-
/***/
|
|
10938
|
+
/***/ 60:
|
|
10806
10939
|
/***/ function(module, exports, __webpack_require__) {
|
|
10807
10940
|
|
|
10808
10941
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -10810,7 +10943,7 @@ module.exports =
|
|
|
10810
10943
|
|
|
10811
10944
|
(function(mod) {
|
|
10812
10945
|
if (true) // CommonJS
|
|
10813
|
-
mod(__webpack_require__(
|
|
10946
|
+
mod(__webpack_require__(59));
|
|
10814
10947
|
else if (typeof define == "function" && define.amd) // AMD
|
|
10815
10948
|
define(["../../lib/codemirror"], mod);
|
|
10816
10949
|
else // Plain browser env
|
|
@@ -11664,28 +11797,28 @@ module.exports =
|
|
|
11664
11797
|
|
|
11665
11798
|
/***/ },
|
|
11666
11799
|
|
|
11667
|
-
/***/
|
|
11800
|
+
/***/ 61:
|
|
11668
11801
|
/***/ function(module, exports) {
|
|
11669
11802
|
|
|
11670
11803
|
// removed by extract-text-webpack-plugin
|
|
11671
11804
|
|
|
11672
11805
|
/***/ },
|
|
11673
11806
|
|
|
11674
|
-
/***/
|
|
11807
|
+
/***/ 62:
|
|
11675
11808
|
/***/ function(module, exports) {
|
|
11676
11809
|
|
|
11677
11810
|
module.exports = require("papaparse");
|
|
11678
11811
|
|
|
11679
11812
|
/***/ },
|
|
11680
11813
|
|
|
11681
|
-
/***/
|
|
11814
|
+
/***/ 63:
|
|
11682
11815
|
/***/ function(module, exports) {
|
|
11683
11816
|
|
|
11684
11817
|
module.exports = require("react-codemirror2");
|
|
11685
11818
|
|
|
11686
11819
|
/***/ },
|
|
11687
11820
|
|
|
11688
|
-
/***/
|
|
11821
|
+
/***/ 64:
|
|
11689
11822
|
/***/ function(module, exports) {
|
|
11690
11823
|
|
|
11691
11824
|
module.exports = require("react-dropzone");
|