@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.js
CHANGED
|
@@ -8,6 +8,7 @@ import { Github } from '@bigbinary/neeto-icons/misc';
|
|
|
8
8
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
9
9
|
import require$$0 from 'util';
|
|
10
10
|
import Search from '@bigbinary/neeto-molecules/Search';
|
|
11
|
+
import classNames from 'classnames';
|
|
11
12
|
import Scrollable from '@bigbinary/neeto-molecules/Scrollable';
|
|
12
13
|
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
13
14
|
|
|
@@ -2490,13 +2491,17 @@ var RepositoryTile = withT(function (_ref) {
|
|
|
2490
2491
|
|
|
2491
2492
|
var List = withT(function (_ref) {
|
|
2492
2493
|
var t = _ref.t,
|
|
2494
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2493
2495
|
filteredRepositories = _ref.filteredRepositories,
|
|
2494
2496
|
repositories = _ref.repositories,
|
|
2495
2497
|
onConnect = _ref.onConnect,
|
|
2496
2498
|
installationUrl = _ref.installationUrl,
|
|
2497
2499
|
troubleshootUrl = _ref.troubleshootUrl;
|
|
2498
2500
|
return /*#__PURE__*/React.createElement("div", {
|
|
2499
|
-
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md m-0 flex
|
|
2501
|
+
className: classNames("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", {
|
|
2502
|
+
"h-52": isPublicRepoAllowed,
|
|
2503
|
+
"h-72": !isPublicRepoAllowed
|
|
2504
|
+
})
|
|
2500
2505
|
}, isPresent(repositories) ? /*#__PURE__*/React.createElement(Scrollable, {
|
|
2501
2506
|
className: "m-0 h-full w-full overflow-y-scroll p-0 shadow-inner"
|
|
2502
2507
|
}, isPresent(filteredRepositories) ? filteredRepositories.map(function (repository) {
|
|
@@ -2532,6 +2537,7 @@ var NotConnected = withT(function (_ref) {
|
|
|
2532
2537
|
|
|
2533
2538
|
var Private = function Private(_ref) {
|
|
2534
2539
|
var isConnected = _ref.isConnected,
|
|
2540
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2535
2541
|
repositories = _ref.repositories,
|
|
2536
2542
|
onConnect = _ref.onConnect,
|
|
2537
2543
|
installationUrl = _ref.installationUrl,
|
|
@@ -2569,6 +2575,7 @@ var Private = function Private(_ref) {
|
|
|
2569
2575
|
count: filteredRepositories.length
|
|
2570
2576
|
}))
|
|
2571
2577
|
}), /*#__PURE__*/React.createElement(List, {
|
|
2578
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2572
2579
|
filteredRepositories: filteredRepositories,
|
|
2573
2580
|
installationUrl: installationUrl,
|
|
2574
2581
|
onConnect: onConnect,
|
|
@@ -2647,6 +2654,7 @@ var Public = function Public(_ref) {
|
|
|
2647
2654
|
|
|
2648
2655
|
var Repositories = function Repositories(_ref) {
|
|
2649
2656
|
var isConnected = _ref.isConnected,
|
|
2657
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2650
2658
|
repositories = _ref.repositories,
|
|
2651
2659
|
onConnect = _ref.onConnect,
|
|
2652
2660
|
installationUrl = _ref.installationUrl,
|
|
@@ -2654,12 +2662,13 @@ var Repositories = function Repositories(_ref) {
|
|
|
2654
2662
|
return /*#__PURE__*/React.createElement("div", {
|
|
2655
2663
|
className: "w-full space-y-6 2xl:max-w-4xl"
|
|
2656
2664
|
}, /*#__PURE__*/React.createElement(Private, {
|
|
2665
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2657
2666
|
installationUrl: installationUrl,
|
|
2658
2667
|
isConnected: isConnected,
|
|
2659
2668
|
onConnect: onConnect,
|
|
2660
2669
|
repositories: repositories,
|
|
2661
2670
|
troubleshootUrl: troubleshootUrl
|
|
2662
|
-
}), /*#__PURE__*/React.createElement(Public, {
|
|
2671
|
+
}), isPublicRepoAllowed && /*#__PURE__*/React.createElement(Public, {
|
|
2663
2672
|
onConnect: onConnect
|
|
2664
2673
|
}));
|
|
2665
2674
|
};
|
|
@@ -2669,6 +2678,8 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2669
2678
|
onClose = _ref.onClose,
|
|
2670
2679
|
_ref$isConnected = _ref.isConnected,
|
|
2671
2680
|
isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
|
|
2681
|
+
_ref$isPublicRepoAllo = _ref.isPublicRepoAllowed,
|
|
2682
|
+
isPublicRepoAllowed = _ref$isPublicRepoAllo === void 0 ? false : _ref$isPublicRepoAllo,
|
|
2672
2683
|
_ref$repositories = _ref.repositories,
|
|
2673
2684
|
repositories = _ref$repositories === void 0 ? [] : _ref$repositories,
|
|
2674
2685
|
_ref$accounts = _ref.accounts,
|
|
@@ -2700,6 +2711,7 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2700
2711
|
}, /*#__PURE__*/React.createElement(Repositories, {
|
|
2701
2712
|
installationUrl: installationUrl,
|
|
2702
2713
|
isConnected: isConnected,
|
|
2714
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2703
2715
|
onConnect: onConnect,
|
|
2704
2716
|
repositories: repositories,
|
|
2705
2717
|
troubleshootUrl: troubleshootUrl
|