@lingk/sync 1.0.70 → 1.0.72
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 +158 -108
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js +98 -98
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js +2 -2
- package/build/loadData.js.map +1 -1
- package/build/main.js +442 -378
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js +302 -0
- package/build/metadataDropdown.js.map +1 -0
- package/build/metadataFunctions.js +2 -2
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js +4 -4
- package/build/reducer.js.map +1 -1
- package/build/saveData.js +2 -2
- 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__(48);
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
/***/ },
|
|
@@ -58,14 +58,14 @@ module.exports =
|
|
|
58
58
|
|
|
59
59
|
/***/ },
|
|
60
60
|
|
|
61
|
-
/***/
|
|
61
|
+
/***/ 42:
|
|
62
62
|
/***/ function(module, exports) {
|
|
63
63
|
|
|
64
64
|
module.exports = require("react-dropzone");
|
|
65
65
|
|
|
66
66
|
/***/ },
|
|
67
67
|
|
|
68
|
-
/***/
|
|
68
|
+
/***/ 45:
|
|
69
69
|
/***/ function(module, exports, __webpack_require__) {
|
|
70
70
|
|
|
71
71
|
'use strict';
|
|
@@ -80,7 +80,7 @@ module.exports =
|
|
|
80
80
|
|
|
81
81
|
var _react2 = _interopRequireDefault(_react);
|
|
82
82
|
|
|
83
|
-
var _clipboard = __webpack_require__(
|
|
83
|
+
var _clipboard = __webpack_require__(50);
|
|
84
84
|
|
|
85
85
|
var _clipboard2 = _interopRequireDefault(_clipboard);
|
|
86
86
|
|
|
@@ -212,7 +212,7 @@ module.exports =
|
|
|
212
212
|
|
|
213
213
|
/***/ },
|
|
214
214
|
|
|
215
|
-
/***/
|
|
215
|
+
/***/ 46:
|
|
216
216
|
/***/ function(module, exports, __webpack_require__) {
|
|
217
217
|
|
|
218
218
|
'use strict';
|
|
@@ -229,11 +229,11 @@ module.exports =
|
|
|
229
229
|
|
|
230
230
|
var _react2 = _interopRequireDefault(_react);
|
|
231
231
|
|
|
232
|
-
var _reactDropzone = __webpack_require__(
|
|
232
|
+
var _reactDropzone = __webpack_require__(42);
|
|
233
233
|
|
|
234
234
|
var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
|
|
235
235
|
|
|
236
|
-
var _papaparse = __webpack_require__(
|
|
236
|
+
var _papaparse = __webpack_require__(64);
|
|
237
237
|
|
|
238
238
|
var _papaparse2 = _interopRequireDefault(_papaparse);
|
|
239
239
|
|
|
@@ -477,7 +477,7 @@ module.exports =
|
|
|
477
477
|
|
|
478
478
|
/***/ },
|
|
479
479
|
|
|
480
|
-
/***/
|
|
480
|
+
/***/ 47:
|
|
481
481
|
/***/ function(module, exports, __webpack_require__) {
|
|
482
482
|
|
|
483
483
|
'use strict';
|
|
@@ -486,19 +486,27 @@ module.exports =
|
|
|
486
486
|
value: true
|
|
487
487
|
});
|
|
488
488
|
|
|
489
|
+
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; }; }();
|
|
490
|
+
|
|
489
491
|
var _react = __webpack_require__(1);
|
|
490
492
|
|
|
491
493
|
var _react2 = _interopRequireDefault(_react);
|
|
492
494
|
|
|
493
|
-
__webpack_require__(
|
|
495
|
+
__webpack_require__(63);
|
|
494
496
|
|
|
495
497
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
496
498
|
|
|
499
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
500
|
+
|
|
501
|
+
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; }
|
|
502
|
+
|
|
503
|
+
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; }
|
|
504
|
+
|
|
497
505
|
// SKIP ON SERVER-SIDE RENDERING
|
|
498
506
|
var codemirror = null;
|
|
499
507
|
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
|
|
500
|
-
codemirror = __webpack_require__(
|
|
501
|
-
__webpack_require__(
|
|
508
|
+
codemirror = __webpack_require__(65);
|
|
509
|
+
__webpack_require__(62);
|
|
502
510
|
}
|
|
503
511
|
|
|
504
512
|
function unCamelize(text) {
|
|
@@ -507,96 +515,125 @@ module.exports =
|
|
|
507
515
|
});
|
|
508
516
|
}
|
|
509
517
|
|
|
510
|
-
var Google = function
|
|
511
|
-
|
|
512
|
-
creds = props.creds,
|
|
513
|
-
onChange = props.onChange,
|
|
514
|
-
credsDisabledCheck = props.credsDisabledCheck,
|
|
515
|
-
inputs = props.inputs,
|
|
516
|
-
onCheck = props.onCheck;
|
|
518
|
+
var Google = function (_Component) {
|
|
519
|
+
_inherits(Google, _Component);
|
|
517
520
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
var Select = inputs.Select;
|
|
521
|
-
var CodeMirror = codemirror && codemirror.Controlled;
|
|
521
|
+
function Google() {
|
|
522
|
+
_classCallCheck(this, Google);
|
|
522
523
|
|
|
523
|
-
|
|
524
|
+
var _this = _possibleConstructorReturn(this, (Google.__proto__ || Object.getPrototypeOf(Google)).call(this));
|
|
524
525
|
|
|
525
|
-
|
|
526
|
+
_this.state = {
|
|
527
|
+
showPass: false
|
|
528
|
+
};
|
|
529
|
+
return _this;
|
|
530
|
+
}
|
|
526
531
|
|
|
527
|
-
|
|
528
|
-
'
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
532
|
+
_createClass(Google, [{
|
|
533
|
+
key: 'render',
|
|
534
|
+
value: function render() {
|
|
535
|
+
var _this2 = this;
|
|
536
|
+
|
|
537
|
+
var _props = this.props,
|
|
538
|
+
config = _props.config,
|
|
539
|
+
creds = _props.creds,
|
|
540
|
+
onChange = _props.onChange,
|
|
541
|
+
credsDisabledCheck = _props.credsDisabledCheck,
|
|
542
|
+
inputs = _props.inputs,
|
|
543
|
+
onCheck = _props.onCheck;
|
|
544
|
+
|
|
545
|
+
var Input = inputs.Input;
|
|
546
|
+
var Button = inputs.Button;
|
|
547
|
+
var Select = inputs.Select;
|
|
548
|
+
var CodeMirror = codemirror && codemirror.Controlled;
|
|
549
|
+
|
|
550
|
+
var CloudSQLTypes = [{ name: 'Postgres', satisfiesSearch: true, type: 'Postgres', title: 'Postgres' }, { name: 'MySQL', satisfiesSearch: true, type: 'MySQL', title: 'MySQL' }];
|
|
551
|
+
|
|
552
|
+
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'json';
|
|
553
|
+
|
|
554
|
+
return _react2.default.createElement(
|
|
541
555
|
'div',
|
|
542
|
-
|
|
543
|
-
config.credentials.
|
|
544
|
-
|
|
556
|
+
null,
|
|
557
|
+
config.credentials && _react2.default.createElement(
|
|
558
|
+
'div',
|
|
559
|
+
{ style: { marginLeft: 1 } },
|
|
560
|
+
_react2.default.createElement(
|
|
561
|
+
'label',
|
|
562
|
+
{ htmlFor: 'creds' },
|
|
563
|
+
config.label || config.type,
|
|
564
|
+
' Credentials'
|
|
565
|
+
),
|
|
566
|
+
_react2.default.createElement('br', null),
|
|
567
|
+
_react2.default.createElement(
|
|
545
568
|
'div',
|
|
546
|
-
{
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
569
|
+
{ style: { display: 'inline-block', marginLeft: 16, width: '100%' } },
|
|
570
|
+
config.credentials.map(function (credType, index) {
|
|
571
|
+
return _react2.default.createElement(
|
|
572
|
+
'div',
|
|
573
|
+
{ key: index, style: { marginTop: 8, width: '100%' } },
|
|
574
|
+
_react2.default.createElement(
|
|
575
|
+
'label',
|
|
576
|
+
{ htmlFor: credType, className: 'labelz', style: { fontWeight: 'normal' } },
|
|
577
|
+
credType !== 'json' ? unCamelize(credType) : 'API key (paste json or drag-and-drop file)'
|
|
578
|
+
),
|
|
579
|
+
_react2.default.createElement('br', null),
|
|
580
|
+
credType !== 'json' ? _react2.default.createElement(
|
|
581
|
+
'div',
|
|
582
|
+
{ style: { display: 'inline-block', width: credType !== 'databaseType' ? 300 : 164 } },
|
|
583
|
+
credType !== 'databaseType' ? _react2.default.createElement(Input, { name: credType,
|
|
584
|
+
datatype: credType === 'password' && !_this2.state.showPass ? 'password' : null,
|
|
585
|
+
value: creds[credType] || '', onChange: onChange }) : _react2.default.createElement(Select, { vals: CloudSQLTypes, fieldPropLabel: 'name',
|
|
586
|
+
label: creds[credType] || 'Database Types',
|
|
587
|
+
onSelect: function onSelect(v) {
|
|
588
|
+
return onChange({ target: { name: credType, value: v } });
|
|
589
|
+
},
|
|
590
|
+
size: 'small', style: { width: 160, height: 31, textAlign: 'left' }
|
|
591
|
+
})
|
|
592
|
+
) : _react2.default.createElement(CodeMirror, { value: creds[credType],
|
|
593
|
+
className: 'env-creds-json-codemirror',
|
|
594
|
+
options: {
|
|
595
|
+
lineNumbers: true,
|
|
596
|
+
theme: 'default',
|
|
597
|
+
mode: 'javascript',
|
|
598
|
+
dragDrop: true
|
|
599
|
+
},
|
|
600
|
+
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
601
|
+
return onChange({ target: { name: credType, value: v } });
|
|
602
|
+
}
|
|
603
|
+
}),
|
|
604
|
+
credType === 'password' && _react2.default.createElement(Key, { showPass: _this2.state.showPass,
|
|
605
|
+
onClick: function onClick() {
|
|
606
|
+
return _this2.setState({ showPass: !_this2.state.showPass });
|
|
607
|
+
}
|
|
608
|
+
}),
|
|
609
|
+
index === 0 && _react2.default.createElement(
|
|
610
|
+
Button,
|
|
611
|
+
{ type: 'brand',
|
|
612
|
+
onClick: function onClick() {
|
|
613
|
+
return onCheck(creds);
|
|
614
|
+
},
|
|
615
|
+
style: { marginLeft: onlyJson ? 0 : 8, marginTop: onlyJson ? 8 : 0,
|
|
616
|
+
marginBottom: 2, height: 30, lineHeight: '10px'
|
|
617
|
+
},
|
|
618
|
+
disabled: credsDisabledCheck },
|
|
619
|
+
_react2.default.createElement(
|
|
620
|
+
'span',
|
|
621
|
+
{ style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
|
|
622
|
+
'Test Connection'
|
|
623
|
+
),
|
|
624
|
+
'\xA0\xA0',
|
|
625
|
+
_react2.default.createElement(Loop, null)
|
|
626
|
+
)
|
|
627
|
+
);
|
|
628
|
+
})
|
|
629
|
+
)
|
|
630
|
+
)
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
}]);
|
|
634
|
+
|
|
635
|
+
return Google;
|
|
636
|
+
}(_react.Component);
|
|
600
637
|
|
|
601
638
|
var Loop = function Loop() {
|
|
602
639
|
return _react2.default.createElement(
|
|
@@ -608,11 +645,24 @@ module.exports =
|
|
|
608
645
|
);
|
|
609
646
|
};
|
|
610
647
|
|
|
648
|
+
var Key = function Key(_ref) {
|
|
649
|
+
var onClick = _ref.onClick,
|
|
650
|
+
showPass = _ref.showPass;
|
|
651
|
+
|
|
652
|
+
return _react2.default.createElement(
|
|
653
|
+
'svg',
|
|
654
|
+
{ onClick: onClick, style: showPass ? { fill: '#3a91dcb3' } : {},
|
|
655
|
+
height: '24', width: '24', className: 'pass-key-svg', viewBox: '0 0 24 24' },
|
|
656
|
+
_react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
|
|
657
|
+
_react2.default.createElement('path', { d: 'M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z' })
|
|
658
|
+
);
|
|
659
|
+
};
|
|
660
|
+
|
|
611
661
|
exports.default = Google;
|
|
612
662
|
|
|
613
663
|
/***/ },
|
|
614
664
|
|
|
615
|
-
/***/
|
|
665
|
+
/***/ 48:
|
|
616
666
|
/***/ function(module, exports, __webpack_require__) {
|
|
617
667
|
|
|
618
668
|
'use strict';
|
|
@@ -627,19 +677,19 @@ module.exports =
|
|
|
627
677
|
|
|
628
678
|
var _react2 = _interopRequireDefault(_react);
|
|
629
679
|
|
|
630
|
-
var _flatfile = __webpack_require__(
|
|
680
|
+
var _flatfile = __webpack_require__(46);
|
|
631
681
|
|
|
632
682
|
var _flatfile2 = _interopRequireDefault(_flatfile);
|
|
633
683
|
|
|
634
|
-
var _google = __webpack_require__(
|
|
684
|
+
var _google = __webpack_require__(47);
|
|
635
685
|
|
|
636
686
|
var _google2 = _interopRequireDefault(_google);
|
|
637
687
|
|
|
638
|
-
var _adaptersecret = __webpack_require__(
|
|
688
|
+
var _adaptersecret = __webpack_require__(45);
|
|
639
689
|
|
|
640
690
|
var _adaptersecret2 = _interopRequireDefault(_adaptersecret);
|
|
641
691
|
|
|
642
|
-
var _oauth = __webpack_require__(
|
|
692
|
+
var _oauth = __webpack_require__(49);
|
|
643
693
|
|
|
644
694
|
var _oauth2 = _interopRequireDefault(_oauth);
|
|
645
695
|
|
|
@@ -932,7 +982,7 @@ module.exports =
|
|
|
932
982
|
|
|
933
983
|
/***/ },
|
|
934
984
|
|
|
935
|
-
/***/
|
|
985
|
+
/***/ 49:
|
|
936
986
|
/***/ function(module, exports, __webpack_require__) {
|
|
937
987
|
|
|
938
988
|
'use strict';
|
|
@@ -1212,7 +1262,7 @@ module.exports =
|
|
|
1212
1262
|
|
|
1213
1263
|
/***/ },
|
|
1214
1264
|
|
|
1215
|
-
/***/
|
|
1265
|
+
/***/ 50:
|
|
1216
1266
|
/***/ function(module, exports, __webpack_require__) {
|
|
1217
1267
|
|
|
1218
1268
|
"use strict";
|
|
@@ -1394,7 +1444,7 @@ module.exports =
|
|
|
1394
1444
|
|
|
1395
1445
|
/***/ },
|
|
1396
1446
|
|
|
1397
|
-
/***/
|
|
1447
|
+
/***/ 61:
|
|
1398
1448
|
/***/ function(module, exports, __webpack_require__) {
|
|
1399
1449
|
|
|
1400
1450
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -11060,7 +11110,7 @@ module.exports =
|
|
|
11060
11110
|
|
|
11061
11111
|
/***/ },
|
|
11062
11112
|
|
|
11063
|
-
/***/
|
|
11113
|
+
/***/ 62:
|
|
11064
11114
|
/***/ function(module, exports, __webpack_require__) {
|
|
11065
11115
|
|
|
11066
11116
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -11068,7 +11118,7 @@ module.exports =
|
|
|
11068
11118
|
|
|
11069
11119
|
(function(mod) {
|
|
11070
11120
|
if (true) // CommonJS
|
|
11071
|
-
mod(__webpack_require__(
|
|
11121
|
+
mod(__webpack_require__(61));
|
|
11072
11122
|
else if (typeof define == "function" && define.amd) // AMD
|
|
11073
11123
|
define(["../../lib/codemirror"], mod);
|
|
11074
11124
|
else // Plain browser env
|
|
@@ -11922,21 +11972,21 @@ module.exports =
|
|
|
11922
11972
|
|
|
11923
11973
|
/***/ },
|
|
11924
11974
|
|
|
11925
|
-
/***/
|
|
11975
|
+
/***/ 63:
|
|
11926
11976
|
/***/ function(module, exports) {
|
|
11927
11977
|
|
|
11928
11978
|
// removed by extract-text-webpack-plugin
|
|
11929
11979
|
|
|
11930
11980
|
/***/ },
|
|
11931
11981
|
|
|
11932
|
-
/***/
|
|
11982
|
+
/***/ 64:
|
|
11933
11983
|
/***/ function(module, exports) {
|
|
11934
11984
|
|
|
11935
11985
|
module.exports = require("papaparse");
|
|
11936
11986
|
|
|
11937
11987
|
/***/ },
|
|
11938
11988
|
|
|
11939
|
-
/***/
|
|
11989
|
+
/***/ 65:
|
|
11940
11990
|
/***/ function(module, exports) {
|
|
11941
11991
|
|
|
11942
11992
|
module.exports = require("react-codemirror2");
|