@bigbinary/neeto-github-frontend 1.0.3 → 1.0.5
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/app/javascript/src/translations/en.json +1 -1
- package/dist/index.cjs.js +19 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +18 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"neetoGithub": {
|
|
3
3
|
"connect": "Connect",
|
|
4
|
-
"github": "
|
|
4
|
+
"github": "GitHub",
|
|
5
5
|
"noRepos": "No repositories found",
|
|
6
6
|
"noReposDescription": "Connect a GitHub repository to begin using your existing repos for new services.",
|
|
7
7
|
"notConnectedDescription": "Connect your neetoCI account to GitHub to begin using your existing repos for new services.",
|
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
|
|
|
@@ -2371,7 +2373,7 @@ var _globalProps$organiza;
|
|
|
2371
2373
|
var newInstallationParams = lib.stringify({
|
|
2372
2374
|
integrator_id: initializers.globalProps === null || initializers.globalProps === void 0 || (_globalProps$organiza = initializers.globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
2373
2375
|
integrator_type: "Organization",
|
|
2374
|
-
redirect_path: "/projects"
|
|
2376
|
+
redirect_path: "/projects/new"
|
|
2375
2377
|
});
|
|
2376
2378
|
var NEW_INSTALLATION_URL = "/github_integrations/app_installations/new?".concat(newInstallationParams);
|
|
2377
2379
|
var TROUBLESHOOT_URL = "https://render.com/docs/github#troubleshooting";
|
|
@@ -2461,10 +2463,11 @@ var NoRepositories = reactUtils.withT(function (_ref) {
|
|
|
2461
2463
|
})));
|
|
2462
2464
|
});
|
|
2463
2465
|
|
|
2464
|
-
var RepositoryTile =
|
|
2465
|
-
var
|
|
2466
|
-
onConnect = _ref.onConnect,
|
|
2466
|
+
var RepositoryTile = function RepositoryTile(_ref) {
|
|
2467
|
+
var onConnect = _ref.onConnect,
|
|
2467
2468
|
repository = _ref.repository;
|
|
2469
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
2470
|
+
t = _useTranslation.t;
|
|
2468
2471
|
var id = repository.id,
|
|
2469
2472
|
fullName = repository.fullName,
|
|
2470
2473
|
isPrivate = repository.isPrivate,
|
|
@@ -2498,17 +2501,21 @@ var RepositoryTile = reactUtils.withT(function (_ref) {
|
|
|
2498
2501
|
});
|
|
2499
2502
|
}
|
|
2500
2503
|
}, t("neetoGithub.connect")));
|
|
2501
|
-
}
|
|
2504
|
+
};
|
|
2502
2505
|
|
|
2503
2506
|
var List = reactUtils.withT(function (_ref) {
|
|
2504
2507
|
var t = _ref.t,
|
|
2508
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2505
2509
|
filteredRepositories = _ref.filteredRepositories,
|
|
2506
2510
|
repositories = _ref.repositories,
|
|
2507
2511
|
onConnect = _ref.onConnect,
|
|
2508
2512
|
installationUrl = _ref.installationUrl,
|
|
2509
2513
|
troubleshootUrl = _ref.troubleshootUrl;
|
|
2510
2514
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2511
|
-
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md m-0 flex
|
|
2515
|
+
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", {
|
|
2516
|
+
"h-52": isPublicRepoAllowed,
|
|
2517
|
+
"h-72": !isPublicRepoAllowed
|
|
2518
|
+
})
|
|
2512
2519
|
}, neetoCist.isPresent(repositories) ? /*#__PURE__*/React__default["default"].createElement(Scrollable__default["default"], {
|
|
2513
2520
|
className: "m-0 h-full w-full overflow-y-scroll p-0 shadow-inner"
|
|
2514
2521
|
}, neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository) {
|
|
@@ -2544,6 +2551,7 @@ var NotConnected = reactUtils.withT(function (_ref) {
|
|
|
2544
2551
|
|
|
2545
2552
|
var Private = function Private(_ref) {
|
|
2546
2553
|
var isConnected = _ref.isConnected,
|
|
2554
|
+
isPublicRepoAllowed = _ref.isPublicRepoAllowed,
|
|
2547
2555
|
repositories = _ref.repositories,
|
|
2548
2556
|
onConnect = _ref.onConnect,
|
|
2549
2557
|
installationUrl = _ref.installationUrl,
|
|
@@ -2581,6 +2589,7 @@ var Private = function Private(_ref) {
|
|
|
2581
2589
|
count: filteredRepositories.length
|
|
2582
2590
|
}))
|
|
2583
2591
|
}), /*#__PURE__*/React__default["default"].createElement(List, {
|
|
2592
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2584
2593
|
filteredRepositories: filteredRepositories,
|
|
2585
2594
|
installationUrl: installationUrl,
|
|
2586
2595
|
onConnect: onConnect,
|
|
@@ -2665,8 +2674,9 @@ var Repositories = function Repositories(_ref) {
|
|
|
2665
2674
|
installationUrl = _ref.installationUrl,
|
|
2666
2675
|
troubleshootUrl = _ref.troubleshootUrl;
|
|
2667
2676
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2668
|
-
className: "w-full space-y-6 2xl:max-w-
|
|
2677
|
+
className: "w-full space-y-6 2xl:max-w-7xl"
|
|
2669
2678
|
}, /*#__PURE__*/React__default["default"].createElement(Private, {
|
|
2679
|
+
isPublicRepoAllowed: isPublicRepoAllowed,
|
|
2670
2680
|
installationUrl: installationUrl,
|
|
2671
2681
|
isConnected: isConnected,
|
|
2672
2682
|
onConnect: onConnect,
|
|
@@ -2701,7 +2711,7 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2701
2711
|
initialFocusRef: initialFocusRef,
|
|
2702
2712
|
isOpen: isOpen,
|
|
2703
2713
|
onClose: onClose,
|
|
2704
|
-
|
|
2714
|
+
className: "neeto-github-modal-pane-wrapper",
|
|
2705
2715
|
size: "large"
|
|
2706
2716
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
2707
2717
|
style: "h2"
|
|
@@ -2709,7 +2719,7 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2709
2719
|
className: "mt-4",
|
|
2710
2720
|
style: "body2"
|
|
2711
2721
|
}, t("neetoGithub.modal.description"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2712
|
-
className: "w-full
|
|
2722
|
+
className: "w-full"
|
|
2713
2723
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2714
2724
|
className: "flex flex-col-reverse 2xl:flex-row"
|
|
2715
2725
|
}, /*#__PURE__*/React__default["default"].createElement(Repositories, {
|