@bigbinary/neeto-github-frontend 1.0.2 → 1.0.4
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/dist/index.cjs.js +15 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12,6 +12,7 @@ var misc = require('@bigbinary/neeto-icons/misc');
|
|
|
12
12
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
13
13
|
var require$$0 = require('util');
|
|
14
14
|
var Search = require('@bigbinary/neeto-molecules/Search');
|
|
15
|
+
var classNames = require('classnames');
|
|
15
16
|
var Scrollable = require('@bigbinary/neeto-molecules/Scrollable');
|
|
16
17
|
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
17
18
|
|
|
@@ -20,6 +21,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
22
|
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
22
23
|
var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
|
|
24
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
23
25
|
var Scrollable__default = /*#__PURE__*/_interopDefaultLegacy(Scrollable);
|
|
24
26
|
var DateFormat__default = /*#__PURE__*/_interopDefaultLegacy(DateFormat);
|
|
25
27
|
|
|
@@ -2502,13 +2504,17 @@ var RepositoryTile = reactUtils.withT(function (_ref) {
|
|
|
2502
2504
|
|
|
2503
2505
|
var List = reactUtils.withT(function (_ref) {
|
|
2504
2506
|
var t = _ref.t,
|
|
2507
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2505
2508
|
filteredRepositories = _ref.filteredRepositories,
|
|
2506
2509
|
repositories = _ref.repositories,
|
|
2507
2510
|
onConnect = _ref.onConnect,
|
|
2508
2511
|
installationUrl = _ref.installationUrl,
|
|
2509
2512
|
troubleshootUrl = _ref.troubleshootUrl;
|
|
2510
2513
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2511
|
-
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md m-0 flex
|
|
2514
|
+
className: classNames__default["default"]("neeto-ui-border-gray-300 neeto-ui-rounded-md m-0 flex flex-col items-center justify-center border border-solid p-0 2xl:h-96", {
|
|
2515
|
+
"h-52": isPublicRepoAllowed,
|
|
2516
|
+
"h-72": !isPublicRepoAllowed
|
|
2517
|
+
})
|
|
2512
2518
|
}, neetoCist.isPresent(repositories) ? /*#__PURE__*/React__default["default"].createElement(Scrollable__default["default"], {
|
|
2513
2519
|
className: "m-0 h-full w-full overflow-y-scroll p-0 shadow-inner"
|
|
2514
2520
|
}, neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository) {
|
|
@@ -2544,6 +2550,7 @@ var NotConnected = reactUtils.withT(function (_ref) {
|
|
|
2544
2550
|
|
|
2545
2551
|
var Private = function Private(_ref) {
|
|
2546
2552
|
var isConnected = _ref.isConnected,
|
|
2553
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2547
2554
|
repositories = _ref.repositories,
|
|
2548
2555
|
onConnect = _ref.onConnect,
|
|
2549
2556
|
installationUrl = _ref.installationUrl,
|
|
@@ -2581,6 +2588,7 @@ var Private = function Private(_ref) {
|
|
|
2581
2588
|
count: filteredRepositories.length
|
|
2582
2589
|
}))
|
|
2583
2590
|
}), /*#__PURE__*/React__default["default"].createElement(List, {
|
|
2591
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2584
2592
|
filteredRepositories: filteredRepositories,
|
|
2585
2593
|
installationUrl: installationUrl,
|
|
2586
2594
|
onConnect: onConnect,
|
|
@@ -2659,6 +2667,7 @@ var Public = function Public(_ref) {
|
|
|
2659
2667
|
|
|
2660
2668
|
var Repositories = function Repositories(_ref) {
|
|
2661
2669
|
var isConnected = _ref.isConnected,
|
|
2670
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2662
2671
|
repositories = _ref.repositories,
|
|
2663
2672
|
onConnect = _ref.onConnect,
|
|
2664
2673
|
installationUrl = _ref.installationUrl,
|
|
@@ -2666,12 +2675,13 @@ var Repositories = function Repositories(_ref) {
|
|
|
2666
2675
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2667
2676
|
className: "w-full space-y-6 2xl:max-w-4xl"
|
|
2668
2677
|
}, /*#__PURE__*/React__default["default"].createElement(Private, {
|
|
2678
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2669
2679
|
installationUrl: installationUrl,
|
|
2670
2680
|
isConnected: isConnected,
|
|
2671
2681
|
onConnect: onConnect,
|
|
2672
2682
|
repositories: repositories,
|
|
2673
2683
|
troubleshootUrl: troubleshootUrl
|
|
2674
|
-
}), /*#__PURE__*/React__default["default"].createElement(Public, {
|
|
2684
|
+
}), isPublicRepoAllowed && /*#__PURE__*/React__default["default"].createElement(Public, {
|
|
2675
2685
|
onConnect: onConnect
|
|
2676
2686
|
}));
|
|
2677
2687
|
};
|
|
@@ -2681,6 +2691,8 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2681
2691
|
onClose = _ref.onClose,
|
|
2682
2692
|
_ref$isConnected = _ref.isConnected,
|
|
2683
2693
|
isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
|
|
2694
|
+
_ref$isPublicRepoAllo = _ref.isPublicRepoAllowed,
|
|
2695
|
+
isPublicRepoAllowed = _ref$isPublicRepoAllo === void 0 ? false : _ref$isPublicRepoAllo,
|
|
2684
2696
|
_ref$repositories = _ref.repositories,
|
|
2685
2697
|
repositories = _ref$repositories === void 0 ? [] : _ref$repositories,
|
|
2686
2698
|
_ref$accounts = _ref.accounts,
|
|
@@ -2712,6 +2724,7 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2712
2724
|
}, /*#__PURE__*/React__default["default"].createElement(Repositories, {
|
|
2713
2725
|
installationUrl: installationUrl,
|
|
2714
2726
|
isConnected: isConnected,
|
|
2727
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2715
2728
|
onConnect: onConnect,
|
|
2716
2729
|
repositories: repositories,
|
|
2717
2730
|
troubleshootUrl: troubleshootUrl
|