@bigbinary/neeto-github-frontend 1.0.3 → 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 +10 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -1
- 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,
|
|
@@ -2655,6 +2662,7 @@ var Repositories = function Repositories(_ref) {
|
|
|
2655
2662
|
return /*#__PURE__*/React.createElement("div", {
|
|
2656
2663
|
className: "w-full space-y-6 2xl:max-w-4xl"
|
|
2657
2664
|
}, /*#__PURE__*/React.createElement(Private, {
|
|
2665
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2658
2666
|
installationUrl: installationUrl,
|
|
2659
2667
|
isConnected: isConnected,
|
|
2660
2668
|
onConnect: onConnect,
|