@bigbinary/neeto-github-frontend 3.0.0 → 3.0.1
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/CHANGELOG.md +4 -0
- package/dist/.ready +1 -1
- package/dist/NeetoGithubNanoContainer.js +445 -21
- package/dist/NeetoGithubNanoContainer.js.map +1 -1
- package/dist/NeetoGithubNanoPane.js +3 -4
- package/dist/NeetoGithubNanoPane.js.map +1 -1
- package/dist/NeetoGithubRepositoryConnectionCard.js +3 -1
- package/dist/NeetoGithubRepositoryConnectionCard.js.map +1 -1
- package/dist/cjs/NeetoGithubNanoContainer.js +445 -25
- package/dist/cjs/NeetoGithubNanoContainer.js.map +1 -1
- package/dist/cjs/NeetoGithubNanoPane.js +4 -5
- package/dist/cjs/NeetoGithubNanoPane.js.map +1 -1
- package/dist/cjs/NeetoGithubRepositoryConnectionCard.js +3 -1
- package/dist/cjs/NeetoGithubRepositoryConnectionCard.js.map +1 -1
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/v2/NeetoGithubIntegrationsTable.js +157 -0
- package/dist/cjs/v2/NeetoGithubIntegrationsTable.js.map +1 -0
- package/dist/{index-DBol23Bj.js → cjs/v2/NeetoGithubNanoContainer.js} +75 -80
- package/dist/cjs/v2/NeetoGithubNanoContainer.js.map +1 -0
- package/dist/cjs/v2/NeetoGithubNanoPane.js +126 -0
- package/dist/cjs/v2/NeetoGithubNanoPane.js.map +1 -0
- package/dist/cjs/v2/NeetoGithubRepositoryConnectionCard.js +178 -0
- package/dist/cjs/v2/NeetoGithubRepositoryConnectionCard.js.map +1 -0
- package/dist/cjs/v2/hooks.js +18 -0
- package/dist/cjs/v2/hooks.js.map +1 -0
- package/dist/cjs/v2/index.js +53 -0
- package/dist/cjs/v2/index.js.map +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/pane-CPRRz6tU.js +5 -0
- package/dist/pane-CPRRz6tU.js.map +1 -0
- package/dist/pane-DRsC3fwq.js +7 -0
- package/dist/pane-DRsC3fwq.js.map +1 -0
- package/dist/repository-tile-DxVqVMYY.js +7 -0
- package/dist/repository-tile-DxVqVMYY.js.map +1 -0
- package/dist/repository-tile-fB8WFACw.js +9 -0
- package/dist/repository-tile-fB8WFACw.js.map +1 -0
- package/dist/v2/NeetoGithubIntegrationsTable.js +155 -0
- package/dist/v2/NeetoGithubIntegrationsTable.js.map +1 -0
- package/dist/{index-CEPyKY_r.js → v2/NeetoGithubNanoContainer.js} +61 -65
- package/dist/v2/NeetoGithubNanoContainer.js.map +1 -0
- package/dist/v2/NeetoGithubNanoPane.js +105 -0
- package/dist/v2/NeetoGithubNanoPane.js.map +1 -0
- package/dist/v2/NeetoGithubRepositoryConnectionCard.js +176 -0
- package/dist/v2/NeetoGithubRepositoryConnectionCard.js.map +1 -0
- package/dist/v2/hooks.js +10 -0
- package/dist/v2/hooks.js.map +1 -0
- package/dist/v2/index.js +41 -0
- package/dist/v2/index.js.map +1 -0
- package/package.json +28 -16
- package/dist/index-CEPyKY_r.js.map +0 -1
- package/dist/index-DBol23Bj.js.map +0 -1
|
@@ -1,33 +1,39 @@
|
|
|
1
|
+
import { Typography, Button, Avatar, Spinner } from '@bigbinary/neeto-atoms';
|
|
1
2
|
import classnames from 'classnames';
|
|
2
|
-
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { withT, isMetaKeyPressed } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
3
|
+
import { globalProps } from '@bigbinary/neeto-commons-frontend/v2/initializers';
|
|
4
|
+
import { b as useFetchGithubRepositories } from '../useGithubAccountsApi-Csym3TIW.js';
|
|
5
|
+
import { withT, isMetaKeyPressed } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
6
6
|
import Github from '@bigbinary/neeto-icons/misc/Github';
|
|
7
|
-
import Typography from '@bigbinary/neetoui/Typography';
|
|
8
7
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
9
8
|
import Building from '@bigbinary/neeto-icons/Building';
|
|
10
|
-
import Avatar from '@bigbinary/neetoui/Avatar';
|
|
11
|
-
import Button from '@bigbinary/neetoui/Button';
|
|
12
9
|
import Plus from '@bigbinary/neeto-icons/Plus';
|
|
13
10
|
import Settings from '@bigbinary/neeto-icons/Settings';
|
|
14
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
15
12
|
import { useState, createElement } from 'react';
|
|
16
13
|
import { isPresent } from '@bigbinary/neeto-cist';
|
|
17
|
-
import Search from '@bigbinary/neeto-molecules/Search';
|
|
14
|
+
import Search from '@bigbinary/neeto-molecules/v2/Search';
|
|
18
15
|
import { Trans, useTranslation } from 'react-i18next';
|
|
19
16
|
import Lock from '@bigbinary/neeto-icons/Lock';
|
|
20
|
-
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
17
|
+
import DateFormat from '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
18
|
+
import '../repository-tile-DxVqVMYY.js';
|
|
19
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
20
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
21
|
+
import '@tanstack/react-query';
|
|
22
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
23
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
24
|
+
import 'ramda';
|
|
25
|
+
import 'axios';
|
|
26
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
21
27
|
|
|
22
28
|
var Header = withT(function (_ref) {
|
|
23
29
|
var t = _ref.t;
|
|
24
30
|
return /*#__PURE__*/jsxs("div", {
|
|
25
31
|
className: "neeto-ui-text-gray-800 mb-1 flex w-full flex-row items-center space-x-2 font-sans text-lg font-medium leading-6 antialiased",
|
|
26
32
|
children: [/*#__PURE__*/jsx(Github, {
|
|
27
|
-
className: "github-icon",
|
|
28
33
|
size: 20
|
|
29
34
|
}), /*#__PURE__*/jsx(Typography, {
|
|
30
|
-
|
|
35
|
+
className: "text-lg font-medium",
|
|
36
|
+
variant: "h4",
|
|
31
37
|
children: t("neetoGithub.github")
|
|
32
38
|
})]
|
|
33
39
|
});
|
|
@@ -43,9 +49,8 @@ var Configure = withT(function (_ref) {
|
|
|
43
49
|
href: installationUrl,
|
|
44
50
|
icon: isConnected ? Settings : Plus,
|
|
45
51
|
iconPosition: "left",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
style: "link",
|
|
52
|
+
size: "sm",
|
|
53
|
+
variant: "link",
|
|
49
54
|
children: isConnected ? t("neetoGithub.configureAccount") : t("neetoGithub.connectAccount")
|
|
50
55
|
})
|
|
51
56
|
});
|
|
@@ -77,17 +82,17 @@ var List$1 = withT(function (_ref) {
|
|
|
77
82
|
className: "neeto-ui-text-gray-600",
|
|
78
83
|
size: 24
|
|
79
84
|
}) : /*#__PURE__*/jsx(Avatar, {
|
|
80
|
-
size: "
|
|
85
|
+
size: "sm",
|
|
81
86
|
user: {
|
|
82
87
|
imageUrl: avatarUrl
|
|
83
88
|
}
|
|
84
89
|
}), /*#__PURE__*/jsx(Typography, {
|
|
85
90
|
className: "neeto-ui-text-gray-800",
|
|
86
|
-
|
|
91
|
+
variant: "body2",
|
|
87
92
|
children: /*#__PURE__*/jsx(Button, {
|
|
88
93
|
className: "neeto-ui-text-gray-800",
|
|
89
94
|
label: "@".concat(name),
|
|
90
|
-
|
|
95
|
+
variant: "link",
|
|
91
96
|
onClick: function onClick() {
|
|
92
97
|
return window.open(profileUrl, "_blank");
|
|
93
98
|
}
|
|
@@ -97,7 +102,7 @@ var List$1 = withT(function (_ref) {
|
|
|
97
102
|
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
98
103
|
}), /*#__PURE__*/jsx(Typography, {
|
|
99
104
|
className: "neeto-ui-text-black",
|
|
100
|
-
|
|
105
|
+
variant: "body2",
|
|
101
106
|
children: t("neetoGithub.countOf.repos", {
|
|
102
107
|
count: count
|
|
103
108
|
})
|
|
@@ -143,15 +148,14 @@ var NoRepositories = withT(function (_ref) {
|
|
|
143
148
|
children: /*#__PURE__*/jsxs("div", {
|
|
144
149
|
className: "mx-auto flex w-full max-w-sm flex-col items-center justify-center space-y-4 py-4 text-center",
|
|
145
150
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
146
|
-
|
|
151
|
+
variant: "body2",
|
|
147
152
|
children: t("neetoGithub.noReposDescription")
|
|
148
153
|
}), /*#__PURE__*/jsx(Button, {
|
|
149
154
|
href: installationUrl,
|
|
150
155
|
icon: Github,
|
|
151
156
|
iconPosition: "left",
|
|
152
157
|
label: t("neetoGithub.connectRepository"),
|
|
153
|
-
|
|
154
|
-
style: "primary"
|
|
158
|
+
variant: "default"
|
|
155
159
|
}), /*#__PURE__*/jsx("div", {
|
|
156
160
|
className: "text-xs",
|
|
157
161
|
children: /*#__PURE__*/jsx(Trans, {
|
|
@@ -170,11 +174,6 @@ var NoRepositories = withT(function (_ref) {
|
|
|
170
174
|
});
|
|
171
175
|
});
|
|
172
176
|
|
|
173
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=true===r.prepend?"prepend":"append",d=true===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
174
|
-
|
|
175
|
-
var css = ".connect-repo__info{width:100%}@media (min-width:768px){.connect-repo__info{width:calc(100% - 82px)}}.github-icon{flex-shrink:0}.github-icon [data-dark-mode-color=true]{fill:rgb(var(--neeto-ui-black))}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvcmVwb3NpdG9yeS10aWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFDRSxVQUNGLENBRUEseUJBQ0Usb0JBQ0UsdUJBQ0YsQ0FDRixDQUVBLGFBQ0UsYUFDRixDQUVBLHlDQUNFLCtCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiLmNvbm5lY3QtcmVwb19faW5mbyB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG5AbWVkaWEgKG1pbi13aWR0aDogNzY4cHgpIHtcbiAgLmNvbm5lY3QtcmVwb19faW5mbyB7XG4gICAgd2lkdGg6IGNhbGMoMTAwJSAtIDgycHgpO1xuICB9XG59XG5cbi5naXRodWItaWNvbiB7XG4gIGZsZXgtc2hyaW5rOiAwO1xufVxuXG4uZ2l0aHViLWljb24gW2RhdGEtZGFyay1tb2RlLWNvbG9yPVwidHJ1ZVwiXSB7XG4gIGZpbGw6IHJnYih2YXIoLS1uZWV0by11aS1ibGFjaykpO1xufVxuIl19 */";
|
|
176
|
-
n(css,{});
|
|
177
|
-
|
|
178
177
|
var RepositoryTile = function RepositoryTile(_ref) {
|
|
179
178
|
var isConnecting = _ref.isConnecting,
|
|
180
179
|
onConnect = _ref.onConnect,
|
|
@@ -192,20 +191,21 @@ var RepositoryTile = function RepositoryTile(_ref) {
|
|
|
192
191
|
return /*#__PURE__*/jsxs("div", {
|
|
193
192
|
className: "connect-repo__row neeto-ui-border-gray-300 flex flex-col justify-between gap-3 border-b border-solid py-3 ps-3 pe-3 last:border-b-0 md:flex-row md:items-center md:ps-5",
|
|
194
193
|
children: [/*#__PURE__*/jsxs("div", {
|
|
195
|
-
className: "connect-repo__info flex items-center space-x-2",
|
|
194
|
+
className: "connect-repo__info flex min-w-0 items-center space-x-2",
|
|
196
195
|
children: [/*#__PURE__*/jsx(Github, {
|
|
197
|
-
className: "
|
|
196
|
+
className: "shrink-0",
|
|
198
197
|
size: 20
|
|
199
198
|
}), /*#__PURE__*/jsx(Typography, {
|
|
200
|
-
|
|
199
|
+
className: "truncate",
|
|
200
|
+
variant: "body2",
|
|
201
201
|
children: fullName
|
|
202
202
|
}), isPrivate && /*#__PURE__*/jsx(Lock, {
|
|
203
203
|
className: "shrink-0",
|
|
204
204
|
size: 16
|
|
205
205
|
}), /*#__PURE__*/jsxs("div", {
|
|
206
|
-
className: "hidden lg:inline-
|
|
206
|
+
className: "hidden shrink-0 items-center gap-2 whitespace-nowrap lg:inline-flex",
|
|
207
207
|
children: [/*#__PURE__*/jsx("span", {
|
|
208
|
-
className: "
|
|
208
|
+
className: "bg-foreground h-1 w-1 neeto-ui-rounded-full"
|
|
209
209
|
}), /*#__PURE__*/jsx(DateFormat.FromNow, {
|
|
210
210
|
date: updatedAt
|
|
211
211
|
})]
|
|
@@ -214,8 +214,8 @@ var RepositoryTile = function RepositoryTile(_ref) {
|
|
|
214
214
|
className: "w-max",
|
|
215
215
|
disabled: isConnecting,
|
|
216
216
|
loading: isLoading,
|
|
217
|
-
style: "primary",
|
|
218
217
|
type: "button",
|
|
218
|
+
variant: "default",
|
|
219
219
|
onClick: function onClick() {
|
|
220
220
|
return onConnect({
|
|
221
221
|
repoType: "private",
|
|
@@ -237,26 +237,20 @@ var List = withT(function (_ref) {
|
|
|
237
237
|
installationUrl = _ref.installationUrl,
|
|
238
238
|
troubleshootUrl = _ref.troubleshootUrl;
|
|
239
239
|
return /*#__PURE__*/jsx("div", {
|
|
240
|
-
className: "h-full overflow-y-
|
|
240
|
+
className: "h-full overflow-y-auto px-4 pb-4 md:px-6 md:pb-6",
|
|
241
241
|
children: isPresent(repositories) ? /*#__PURE__*/jsx("div", {
|
|
242
|
-
className:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
});
|
|
255
|
-
}) : /*#__PURE__*/jsx(Typography, {
|
|
256
|
-
className: "flex h-full w-full items-center justify-center",
|
|
257
|
-
style: "body2",
|
|
258
|
-
children: t("neetoGithub.noRepos")
|
|
259
|
-
})
|
|
242
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md flex w-full flex-col border",
|
|
243
|
+
children: isPresent(filteredRepositories) ? filteredRepositories.map(function (repository, index) {
|
|
244
|
+
return /*#__PURE__*/createElement(RepositoryTile, {
|
|
245
|
+
isConnecting: isConnecting,
|
|
246
|
+
onConnect: onConnect,
|
|
247
|
+
repository: repository,
|
|
248
|
+
key: index
|
|
249
|
+
});
|
|
250
|
+
}) : /*#__PURE__*/jsx(Typography, {
|
|
251
|
+
className: "flex h-full w-full items-center justify-center py-6",
|
|
252
|
+
variant: "body2",
|
|
253
|
+
children: t("neetoGithub.noRepos")
|
|
260
254
|
})
|
|
261
255
|
}) : /*#__PURE__*/jsx(NoRepositories, {
|
|
262
256
|
installationUrl: installationUrl,
|
|
@@ -276,7 +270,7 @@ var NotConnected = function NotConnected(_ref) {
|
|
|
276
270
|
return /*#__PURE__*/jsxs("div", {
|
|
277
271
|
className: "flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center",
|
|
278
272
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
279
|
-
|
|
273
|
+
variant: "body2",
|
|
280
274
|
children: t("neetoGithub.notConnectedDescription", {
|
|
281
275
|
appName: globalProps.appName
|
|
282
276
|
})
|
|
@@ -285,8 +279,7 @@ var NotConnected = function NotConnected(_ref) {
|
|
|
285
279
|
iconPosition: "left",
|
|
286
280
|
label: t("neetoGithub.connectGithub"),
|
|
287
281
|
loading: isLoading,
|
|
288
|
-
|
|
289
|
-
style: "primary",
|
|
282
|
+
variant: "default",
|
|
290
283
|
onClick: function onClick(event) {
|
|
291
284
|
setIsLoading(true);
|
|
292
285
|
var target = isMetaKeyPressed(event) ? "_blank" : "_self";
|
|
@@ -327,18 +320,21 @@ var Private = function Private(_ref) {
|
|
|
327
320
|
className: "space-y-3 p-4 md:p-6",
|
|
328
321
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
329
322
|
className: "shrink-0 text-lg font-medium",
|
|
330
|
-
|
|
323
|
+
variant: "h2",
|
|
331
324
|
children: t("neetoGithub.connectARepo")
|
|
332
|
-
}), isPresent(repositories) && /*#__PURE__*/
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
325
|
+
}), isPresent(repositories) && /*#__PURE__*/jsxs("div", {
|
|
326
|
+
className: "flex w-full items-center gap-3",
|
|
327
|
+
children: [/*#__PURE__*/jsx(Search, {
|
|
328
|
+
onSearch: onSearch,
|
|
329
|
+
className: "flex-1",
|
|
330
|
+
unlimitedChars: false
|
|
331
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
332
|
+
className: "whitespace-nowrap neeto-ui-text-gray-700",
|
|
333
|
+
variant: "body2",
|
|
338
334
|
children: t("neetoGithub.countOf.repos", {
|
|
339
335
|
count: filteredRepositories.length
|
|
340
336
|
})
|
|
341
|
-
})
|
|
337
|
+
})]
|
|
342
338
|
})]
|
|
343
339
|
}), /*#__PURE__*/jsx("div", {
|
|
344
340
|
className: "flex min-h-0 w-full grow flex-col space-y-6",
|
|
@@ -372,7 +368,7 @@ var Repositories = function Repositories(_ref) {
|
|
|
372
368
|
troubleshootUrl = _ref.troubleshootUrl,
|
|
373
369
|
isPane = _ref.isPane;
|
|
374
370
|
return /*#__PURE__*/jsx("div", {
|
|
375
|
-
className: classnames("neeto-ui-rounded-md neeto-ui-border-gray-300 h-full w-full space-y-6 border border-solid", {
|
|
371
|
+
className: classnames("neeto-ui-rounded-md neeto-ui-border-gray-300 flex h-full w-full flex-col space-y-6 overflow-hidden border border-solid", {
|
|
376
372
|
"order-2": isPane,
|
|
377
373
|
"order-1": !isPane
|
|
378
374
|
}),
|
|
@@ -446,5 +442,5 @@ var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
|
446
442
|
});
|
|
447
443
|
};
|
|
448
444
|
|
|
449
|
-
export { NeetoGithubNanoContainer as
|
|
450
|
-
//# sourceMappingURL=
|
|
445
|
+
export { NeetoGithubNanoContainer as default };
|
|
446
|
+
//# sourceMappingURL=NeetoGithubNanoContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeetoGithubNanoContainer.js","sources":["../../app/javascript/src/v2/components/commons/Accounts/Header.jsx","../../app/javascript/src/v2/components/commons/Accounts/Configure.jsx","../../app/javascript/src/v2/components/commons/Accounts/List.jsx","../../app/javascript/src/v2/components/commons/Accounts/index.jsx","../../app/javascript/src/v2/components/commons/Repositories/NoRepositories.jsx","../../app/javascript/src/v2/components/commons/Repositories/RepositoryTile.jsx","../../app/javascript/src/v2/components/commons/Repositories/List.jsx","../../app/javascript/src/v2/components/commons/Repositories/NotConnected.jsx","../../app/javascript/src/v2/components/commons/Repositories/Private.jsx","../../app/javascript/src/v2/components/commons/Repositories/index.jsx","../../app/javascript/src/v2/components/NeetoGithubNanoContainer/index.jsx"],"sourcesContent":["import { Typography } from \"@bigbinary/neeto-atoms\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport { Github } from \"neetoicons/misc\";\n\nconst Header = withT(({ t }) => (\n <div className=\"neeto-ui-text-gray-800 mb-1 flex w-full flex-row items-center space-x-2 font-sans text-lg font-medium leading-6 antialiased\">\n <Github size={20} />\n <Typography className=\"text-lg font-medium\" variant=\"h4\">\n {t(\"neetoGithub.github\")}\n </Typography>\n </div>\n));\n\nexport default Header;\n","import { Button } from \"@bigbinary/neeto-atoms\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport { Plus, Settings } from \"neetoicons\";\n\nconst Configure = withT(({ t, isConnected, installationUrl }) => (\n <div className=\"neeto-ui-text-gray-900 shrink-0 font-sans text-sm font-normal leading-6 antialiased\">\n <Button\n href={installationUrl}\n icon={isConnected ? Settings : Plus}\n iconPosition=\"left\"\n size=\"sm\"\n variant=\"link\"\n >\n {isConnected\n ? t(\"neetoGithub.configureAccount\")\n : t(\"neetoGithub.connectAccount\")}\n </Button>\n </div>\n));\n\nexport default Configure;\n","import { Avatar, Button, Typography } from \"@bigbinary/neeto-atoms\";\nimport classnames from \"classnames\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport { Building } from \"neetoicons\";\n\nimport Configure from \"./Configure\";\n\nconst List = withT(({ t, accounts, isConnected, installationUrl, isPane }) => (\n <div\n className={classnames(\n \"neeto-ui-border-gray-300 flex justify-between gap-3 border-b pb-4 pt-2\",\n { \"flex-col md:flex-row\": isPane, \"flex-col\": !isPane }\n )}\n >\n {accounts.map(({ id, name, avatarUrl, type, profileUrl, count }) => (\n <div className=\"flex w-full items-center space-x-2\" key={id}>\n <div className=\"flex items-center gap-1\">\n {type === \"Organization\" ? (\n <Building className=\"neeto-ui-text-gray-600\" size={24} />\n ) : (\n <Avatar size=\"sm\" user={{ imageUrl: avatarUrl }} />\n )}\n <Typography className=\"neeto-ui-text-gray-800\" variant=\"body2\">\n <Button\n className=\"neeto-ui-text-gray-800\"\n label={`@${name}`}\n variant=\"link\"\n onClick={() => window.open(profileUrl, \"_blank\")}\n />\n </Typography>\n </div>\n <span className=\"neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1\" />\n <Typography className=\"neeto-ui-text-black\" variant=\"body2\">\n {t(\"neetoGithub.countOf.repos\", { count })}\n </Typography>\n </div>\n ))}\n <Configure {...{ installationUrl, isConnected }} />\n </div>\n));\n\nexport default List;\n","import classnames from \"classnames\";\n\nimport Header from \"./Header\";\nimport List from \"./List\";\n\nconst Accounts = ({\n isPane,\n accounts,\n isConnected,\n onConnect,\n installationUrl,\n}) => (\n <div\n className={classnames(\n \"flex w-full flex-col border border-solid border-transparent px-0 py-2\",\n {\n \"order-1\": isPane,\n \"md:order-2 md:max-w-72 lg:max-w-sm lg:px-6\": !isPane,\n }\n )}\n >\n <div className=\"mb-2\">\n <Header />\n <List\n {...{ accounts, installationUrl, isConnected, isPane, onConnect }}\n />\n </div>\n </div>\n);\n\nexport default Accounts;\n","import { Button, Typography } from \"@bigbinary/neeto-atoms\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport { Github } from \"neetoicons/misc\";\nimport { Trans } from \"react-i18next\";\n\nconst NoRepositories = withT(({ t, installationUrl, troubleshootUrl }) => (\n <div className=\"flex items-center justify-center py-6\">\n <div className=\"mx-auto flex w-full max-w-sm flex-col items-center justify-center space-y-4 py-4 text-center\">\n <Typography variant=\"body2\">\n {t(\"neetoGithub.noReposDescription\")}\n </Typography>\n <Button\n href={installationUrl}\n icon={Github}\n iconPosition=\"left\"\n label={t(\"neetoGithub.connectRepository\")}\n variant=\"default\"\n />\n <div className=\"text-xs\">\n <Trans\n i18nKey={t(\"neetoGithub.troubleshoot\")}\n components={{\n troubleshootLink: (\n <a\n className=\"text-indigo-600 underline\"\n href={troubleshootUrl}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n />\n ),\n }}\n />\n </div>\n </div>\n </div>\n));\n\nexport default NoRepositories;\n","import { useState } from \"react\";\n\nimport { Button, Typography } from \"@bigbinary/neeto-atoms\";\nimport { Lock } from \"neetoicons\";\nimport { Github } from \"neetoicons/misc\";\nimport DateFormat from \"neetomolecules/v2/DateFormat\";\nimport { useTranslation } from \"react-i18next\";\n\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/components/repository-tile.css\";\n\nconst RepositoryTile = ({ isConnecting, onConnect, repository }) => {\n const { t } = useTranslation();\n\n const [isLoading, setIsLoading] = useState(false);\n const { id, fullName, isPrivate, updatedAt } = repository;\n\n return (\n <div\n className=\"connect-repo__row neeto-ui-border-gray-300 flex flex-col justify-between gap-3 border-b border-solid py-3 ps-3 pe-3 last:border-b-0 md:flex-row md:items-center md:ps-5\"\n key={id}\n >\n <div className=\"connect-repo__info flex min-w-0 items-center space-x-2\">\n <Github className=\"shrink-0\" size={20} />\n <Typography className=\"truncate\" variant=\"body2\">\n {fullName}\n </Typography>\n {isPrivate && <Lock className=\"shrink-0\" size={16} />}\n <div className=\"hidden shrink-0 items-center gap-2 whitespace-nowrap lg:inline-flex\">\n <span className=\"bg-foreground h-1 w-1 neeto-ui-rounded-full\" />\n <DateFormat.FromNow date={updatedAt} />\n </div>\n </div>\n <Button\n className=\"w-max\"\n disabled={isConnecting}\n loading={isLoading}\n type=\"button\"\n variant=\"default\"\n onClick={() =>\n onConnect({ repoType: \"private\", repository, setIsLoading })\n }\n >\n {t(\"neetoGithub.connect\")}\n </Button>\n </div>\n );\n};\n\nexport default RepositoryTile;\n","import { Typography } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\n\nimport NoRepositories from \"./NoRepositories\";\nimport RepositoryTile from \"./RepositoryTile\";\n\nconst List = withT(\n ({\n t,\n filteredRepositories,\n repositories,\n isConnecting,\n onConnect,\n installationUrl,\n troubleshootUrl,\n }) => (\n <div className=\"h-full overflow-y-auto px-4 pb-4 md:px-6 md:pb-6\">\n {isPresent(repositories) ? (\n <div className=\"neeto-ui-border-gray-300 neeto-ui-rounded-md flex w-full flex-col border\">\n {isPresent(filteredRepositories) ? (\n filteredRepositories.map((repository, index) => (\n <RepositoryTile\n {...{ isConnecting, onConnect, repository }}\n key={index}\n />\n ))\n ) : (\n <Typography\n className=\"flex h-full w-full items-center justify-center py-6\"\n variant=\"body2\"\n >\n {t(\"neetoGithub.noRepos\")}\n </Typography>\n )}\n </div>\n ) : (\n <NoRepositories {...{ installationUrl, troubleshootUrl }} />\n )}\n </div>\n )\n);\n\nexport default List;\n","import { useState } from \"react\";\n\nimport { Button, Typography } from \"@bigbinary/neeto-atoms\";\nimport { globalProps } from \"neetocommons/v2/initializers\";\nimport { isMetaKeyPressed } from \"neetocommons/v2/react-utils\";\nimport { Github } from \"neetoicons/misc\";\nimport { useTranslation } from \"react-i18next\";\n\nconst NotConnected = ({ installationUrl }) => {\n const [isLoading, setIsLoading] = useState(false);\n\n const { t } = useTranslation();\n\n return (\n <div className=\"flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center\">\n <Typography variant=\"body2\">\n {t(\"neetoGithub.notConnectedDescription\", {\n appName: globalProps.appName,\n })}\n </Typography>\n <Button\n icon={Github}\n iconPosition=\"left\"\n label={t(\"neetoGithub.connectGithub\")}\n loading={isLoading}\n variant=\"default\"\n onClick={event => {\n setIsLoading(true);\n const target = isMetaKeyPressed(event) ? \"_blank\" : \"_self\";\n window.open(installationUrl, target);\n }}\n />\n </div>\n );\n};\n\nexport default NotConnected;\n","import { useState } from \"react\";\n\nimport { Typography } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport Search from \"neetomolecules/v2/Search\";\nimport { useTranslation } from \"react-i18next\";\n\nimport List from \"./List\";\nimport NotConnected from \"./NotConnected\";\n\nconst Private = ({\n isConnected,\n isConnecting,\n repositories,\n onConnect,\n installationUrl,\n troubleshootUrl,\n}) => {\n const { t } = useTranslation();\n\n const [filteredRepositories, setFilteredRepositories] =\n useState(repositories);\n\n const onSearch = searchTerm => {\n if (!isPresent(searchTerm)) {\n setFilteredRepositories(repositories);\n\n return;\n }\n\n const filteredRepositories = repositories.filter(({ fullName }) =>\n fullName.toLowerCase().includes(searchTerm.toLowerCase())\n );\n setFilteredRepositories(filteredRepositories);\n };\n\n return (\n <div className=\"connect-repo flex h-full flex-col\">\n {isConnected ? (\n <>\n <div className=\"space-y-3 p-4 md:p-6\">\n <Typography className=\"shrink-0 text-lg font-medium\" variant=\"h2\">\n {t(\"neetoGithub.connectARepo\")}\n </Typography>\n {isPresent(repositories) && (\n <div className=\"flex w-full items-center gap-3\">\n <Search\n {...{ onSearch }}\n className=\"flex-1\"\n unlimitedChars={false}\n />\n <Typography\n className=\"whitespace-nowrap neeto-ui-text-gray-700\"\n variant=\"body2\"\n >\n {t(\"neetoGithub.countOf.repos\", {\n count: filteredRepositories.length,\n })}\n </Typography>\n </div>\n )}\n </div>\n <div className=\"flex min-h-0 w-full grow flex-col space-y-6\">\n <List\n {...{\n filteredRepositories,\n installationUrl,\n isConnecting,\n onConnect,\n repositories,\n troubleshootUrl,\n }}\n />\n </div>\n </>\n ) : (\n <div className=\"neeto-ui-text-gray-900 grow font-sans text-sm font-normal leading-6 antialiased\">\n <div className=\"flex h-full flex-col items-center justify-center p-4\">\n <NotConnected {...{ installationUrl }} />\n </div>\n </div>\n )}\n </div>\n );\n};\n\nexport default Private;\n","import classnames from \"classnames\";\n\nimport Private from \"./Private\";\n\nconst Repositories = ({\n isConnected,\n isConnecting,\n repositories,\n onConnect,\n installationUrl,\n troubleshootUrl,\n isPane,\n}) => (\n <div\n className={classnames(\n \"neeto-ui-rounded-md neeto-ui-border-gray-300 flex h-full w-full flex-col space-y-6 overflow-hidden border border-solid\",\n { \"order-2\": isPane, \"order-1\": !isPane }\n )}\n >\n <Private\n {...{\n installationUrl,\n isConnected,\n isConnecting,\n onConnect,\n repositories,\n troubleshootUrl,\n }}\n />\n </div>\n);\n\nexport default Repositories;\n","import { Spinner } from \"@bigbinary/neeto-atoms\";\nimport classNames from \"classnames\";\nimport { globalProps } from \"neetocommons/v2/initializers\";\n\nimport { useFetchGithubRepositories } from \"hooks/reactQuery/useGithubAccountsApi\";\nimport Accounts from \"v2/components/commons/Accounts\";\nimport Repositories from \"v2/components/commons/Repositories\";\n\nconst NeetoGithubNanoContainer = ({\n isPaneLoading = false,\n shouldFetchRepositories = true,\n paneAccounts = [],\n installationUrl,\n isConnected,\n isConnecting = false,\n onConnect,\n paneRepositories = [],\n troubleshootUrl,\n isPane = false,\n}) => {\n const {\n data: {\n repositories: containerRepositories = [],\n accounts: containerAccounts = [],\n } = {},\n isLoading: isContainerLoading,\n } = useFetchGithubRepositories({\n isConnected: shouldFetchRepositories && globalProps.isGithubIntegrated,\n });\n\n const repositories = shouldFetchRepositories\n ? containerRepositories\n : paneRepositories;\n const accounts = shouldFetchRepositories ? containerAccounts : paneAccounts;\n\n const isLoading = shouldFetchRepositories\n ? isContainerLoading\n : isPaneLoading;\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <div\n className={classNames(\"flex min-h-0 w-full grow flex-col\", {\n \"flex-col\": isPane,\n \"gap-3 md:flex-row md:gap-6\": !isPane,\n })}\n >\n <Accounts\n {...{ accounts, installationUrl, isConnected, isPane, onConnect }}\n />\n <Repositories\n {...{\n installationUrl,\n isConnected,\n isConnecting,\n isPane,\n onConnect,\n repositories,\n troubleshootUrl,\n }}\n />\n </div>\n );\n};\n\nexport default NeetoGithubNanoContainer;\n"],"names":["Header","withT","_ref","t","_jsxs","className","children","_jsx","Github","size","Typography","variant","Configure","isConnected","installationUrl","Button","href","icon","Settings","Plus","iconPosition","List","accounts","isPane","classnames","map","_ref2","id","name","avatarUrl","type","profileUrl","count","Building","Avatar","user","imageUrl","label","concat","onClick","window","open","Accounts","onConnect","NoRepositories","troubleshootUrl","Trans","i18nKey","components","troubleshootLink","rel","target","RepositoryTile","isConnecting","repository","_useTranslation","useTranslation","_useState","useState","_useState2","_slicedToArray","isLoading","setIsLoading","fullName","isPrivate","updatedAt","Lock","DateFormat","FromNow","date","disabled","loading","repoType","filteredRepositories","repositories","isPresent","index","_createElement","key","NotConnected","appName","globalProps","event","isMetaKeyPressed","Private","setFilteredRepositories","onSearch","searchTerm","filter","toLowerCase","includes","_Fragment","Search","unlimitedChars","length","Repositories","NeetoGithubNanoContainer","_ref$isPaneLoading","isPaneLoading","_ref$shouldFetchRepos","shouldFetchRepositories","_ref$paneAccounts","paneAccounts","_ref$isConnecting","_ref$paneRepositories","paneRepositories","_ref$isPane","_useFetchGithubReposi","useFetchGithubRepositories","isGithubIntegrated","_useFetchGithubReposi2","data","_useFetchGithubReposi3","_useFetchGithubReposi4","containerRepositories","_useFetchGithubReposi5","containerAccounts","isContainerLoading","Spinner","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAGC,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;AAAA,EAAA,oBACvBC,IAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6HAA6H;IAAAC,QAAA,EAAA,cAC1IC,GAAA,CAACC,MAAM,EAAA;AAACC,MAAAA,IAAI,EAAE;AAAG,KAAE,CAAC,eACpBF,GAAA,CAACG,UAAU,EAAA;AAACL,MAAAA,SAAS,EAAC,qBAAqB;AAACM,MAAAA,OAAO,EAAC,IAAI;MAAAL,QAAA,EACrDH,CAAC,CAAC,oBAAoB;AAAC,KACd,CAAC;AAAA,GACV,CAAC;AAAA,CACP,CAAC;;ACPF,IAAMS,SAAS,GAAGX,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEU,WAAW,GAAAX,IAAA,CAAXW,WAAW;IAAEC,eAAe,GAAAZ,IAAA,CAAfY,eAAe;AAAA,EAAA,oBACxDP,GAAA,CAAA,KAAA,EAAA;AAAKF,IAAAA,SAAS,EAAC,qFAAqF;IAAAC,QAAA,eAClGC,GAAA,CAACQ,MAAM,EAAA;AACLC,MAAAA,IAAI,EAAEF,eAAgB;AACtBG,MAAAA,IAAI,EAAEJ,WAAW,GAAGK,QAAQ,GAAGC,IAAK;AACpCC,MAAAA,YAAY,EAAC,MAAM;AACnBX,MAAAA,IAAI,EAAC,IAAI;AACTE,MAAAA,OAAO,EAAC,MAAM;MAAAL,QAAA,EAEbO,WAAW,GACRV,CAAC,CAAC,8BAA8B,CAAC,GACjCA,CAAC,CAAC,4BAA4B;KAC5B;AAAC,GACN,CAAC;AAAA,CACP,CAAC;;ACXF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|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
import { Sheet } from '@bigbinary/neeto-atoms';
|
|
3
|
+
import { findBy, isPresent, noop } from '@bigbinary/neeto-cist';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { N as NEETO_GITHUB_ENGINE_BASE_URL, b as useFetchGithubRepositories } from '../useGithubAccountsApi-Csym3TIW.js';
|
|
6
|
+
import '../pane-CPRRz6tU.js';
|
|
7
|
+
import NeetoGithubNanoContainer from './NeetoGithubNanoContainer.js';
|
|
8
|
+
import { globalProps } from '@bigbinary/neeto-commons-frontend/v2/initializers';
|
|
9
|
+
import * as qs from 'qs';
|
|
10
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
12
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
13
|
+
import '@tanstack/react-query';
|
|
14
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
15
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
16
|
+
import 'ramda';
|
|
17
|
+
import 'axios';
|
|
18
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
19
|
+
import '../repository-tile-DxVqVMYY.js';
|
|
20
|
+
import 'classnames';
|
|
21
|
+
import '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
22
|
+
import '@bigbinary/neeto-icons/misc/Github';
|
|
23
|
+
import '@bigbinary/neeto-icons/Building';
|
|
24
|
+
import '@bigbinary/neeto-icons/Plus';
|
|
25
|
+
import '@bigbinary/neeto-icons/Settings';
|
|
26
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
27
|
+
import '@bigbinary/neeto-molecules/v2/Search';
|
|
28
|
+
import '@bigbinary/neeto-icons/Lock';
|
|
29
|
+
import '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
30
|
+
|
|
31
|
+
var _globalProps$organiza;
|
|
32
|
+
var newInstallationParams = qs.stringify({
|
|
33
|
+
integrator_id: globalProps === null || globalProps === void 0 || (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
34
|
+
integrator_type: "Organization",
|
|
35
|
+
redirect_path: "/projects/new"
|
|
36
|
+
});
|
|
37
|
+
var NEW_INSTALLATION_URL = "".concat(NEETO_GITHUB_ENGINE_BASE_URL, "/app_installations/new?").concat(newInstallationParams);
|
|
38
|
+
var TROUBLESHOOT_URL = "https://render.com/docs/github#troubleshooting";
|
|
39
|
+
|
|
40
|
+
var NeetoGithubNanoPane = function NeetoGithubNanoPane(_ref) {
|
|
41
|
+
var isOpen = _ref.isOpen,
|
|
42
|
+
onClose = _ref.onClose,
|
|
43
|
+
_ref$isConnecting = _ref.isConnecting,
|
|
44
|
+
isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
|
|
45
|
+
_ref$isConnected = _ref.isConnected,
|
|
46
|
+
isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
|
|
47
|
+
_ref$installationUrl = _ref.installationUrl,
|
|
48
|
+
installationUrl = _ref$installationUrl === void 0 ? NEW_INSTALLATION_URL : _ref$installationUrl,
|
|
49
|
+
_ref$troubleshootUrl = _ref.troubleshootUrl,
|
|
50
|
+
troubleshootUrl = _ref$troubleshootUrl === void 0 ? TROUBLESHOOT_URL : _ref$troubleshootUrl,
|
|
51
|
+
_ref$onConnect = _ref.onConnect,
|
|
52
|
+
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
53
|
+
_ref$projects = _ref.projects,
|
|
54
|
+
projects = _ref$projects === void 0 ? [] : _ref$projects,
|
|
55
|
+
_ref$title = _ref.title,
|
|
56
|
+
title = _ref$title === void 0 ? "" : _ref$title;
|
|
57
|
+
var _useTranslation = useTranslation(),
|
|
58
|
+
t = _useTranslation.t;
|
|
59
|
+
var initialFocusRef = useRef(null);
|
|
60
|
+
var _useFetchGithubReposi = useFetchGithubRepositories({
|
|
61
|
+
isConnected: isOpen && isConnected
|
|
62
|
+
}),
|
|
63
|
+
_useFetchGithubReposi2 = _useFetchGithubReposi.data,
|
|
64
|
+
_useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
|
|
65
|
+
_useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
|
|
66
|
+
repositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
|
|
67
|
+
_useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
|
|
68
|
+
accounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
|
|
69
|
+
isPaneLoading = _useFetchGithubReposi.isLoading;
|
|
70
|
+
var paneRepositories = (repositories !== null && repositories !== void 0 ? repositories : []).filter(function (repository) {
|
|
71
|
+
return !findBy({
|
|
72
|
+
repository: repository.fullName
|
|
73
|
+
}, projects);
|
|
74
|
+
});
|
|
75
|
+
var paneAccounts = isConnected ? accounts : [];
|
|
76
|
+
return /*#__PURE__*/jsxs(Sheet, {
|
|
77
|
+
initialFocusRef: initialFocusRef,
|
|
78
|
+
isOpen: isOpen,
|
|
79
|
+
onClose: onClose,
|
|
80
|
+
className: "neeto-github-modal-pane-wrapper",
|
|
81
|
+
size: "large",
|
|
82
|
+
children: [/*#__PURE__*/jsx(Sheet.Header, {
|
|
83
|
+
children: /*#__PURE__*/jsx(Sheet.Title, {
|
|
84
|
+
children: isPresent(title) ? title : t("neetoGithub.modal.title")
|
|
85
|
+
})
|
|
86
|
+
}), /*#__PURE__*/jsx(Sheet.Body, {
|
|
87
|
+
className: "pb-6",
|
|
88
|
+
children: /*#__PURE__*/jsx(NeetoGithubNanoContainer, {
|
|
89
|
+
installationUrl: installationUrl,
|
|
90
|
+
isConnected: isConnected,
|
|
91
|
+
isConnecting: isConnecting,
|
|
92
|
+
isPaneLoading: isPaneLoading,
|
|
93
|
+
onConnect: onConnect,
|
|
94
|
+
paneAccounts: paneAccounts,
|
|
95
|
+
paneRepositories: paneRepositories,
|
|
96
|
+
troubleshootUrl: troubleshootUrl,
|
|
97
|
+
isPane: true,
|
|
98
|
+
shouldFetchRepositories: false
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export { NeetoGithubNanoPane as default };
|
|
105
|
+
//# sourceMappingURL=NeetoGithubNanoPane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeetoGithubNanoPane.js","sources":["../../app/javascript/src/v2/components/NeetoGithubNanoPane/constants.js","../../app/javascript/src/v2/components/NeetoGithubNanoPane/index.jsx"],"sourcesContent":["import { globalProps } from \"neetocommons/v2/initializers\";\nimport * as qs from \"qs\";\n\nimport { NEETO_GITHUB_ENGINE_BASE_URL } from \"src/constants\";\n\nconst newInstallationParams = qs.stringify({\n integrator_id: globalProps?.organization?.id,\n integrator_type: \"Organization\",\n redirect_path: \"/projects/new\",\n});\n\nexport const NEW_INSTALLATION_URL = `${NEETO_GITHUB_ENGINE_BASE_URL}/app_installations/new?${newInstallationParams}`;\nexport const TROUBLESHOOT_URL =\n \"https://render.com/docs/github#troubleshooting\";\n","import { useRef } from \"react\";\n\nimport { Sheet } from \"@bigbinary/neeto-atoms\";\nimport { findBy, isPresent, noop } from \"neetocist\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useFetchGithubRepositories } from \"hooks/reactQuery/useGithubAccountsApi\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/components/pane.css\";\nimport NeetoGithubNanoContainer from \"v2/components/NeetoGithubNanoContainer\";\n\nimport { NEW_INSTALLATION_URL, TROUBLESHOOT_URL } from \"./constants\";\n\nconst NeetoGithubNanoPane = ({\n isOpen,\n onClose,\n isConnecting = false,\n isConnected = false,\n installationUrl = NEW_INSTALLATION_URL,\n troubleshootUrl = TROUBLESHOOT_URL,\n onConnect = noop,\n projects = [],\n title = \"\",\n}) => {\n const { t } = useTranslation();\n\n const initialFocusRef = useRef(null);\n\n const {\n data: { repositories = [], accounts = [] } = {},\n isLoading: isPaneLoading,\n } = useFetchGithubRepositories({ isConnected: isOpen && isConnected });\n\n const paneRepositories = (repositories ?? []).filter(\n repository => !findBy({ repository: repository.fullName }, projects)\n );\n\n const paneAccounts = isConnected ? accounts : [];\n\n return (\n <Sheet\n {...{ initialFocusRef, isOpen, onClose }}\n className=\"neeto-github-modal-pane-wrapper\"\n size=\"large\"\n >\n <Sheet.Header>\n <Sheet.Title>\n {isPresent(title) ? title : t(\"neetoGithub.modal.title\")}\n </Sheet.Title>\n </Sheet.Header>\n <Sheet.Body className=\"pb-6\">\n <NeetoGithubNanoContainer\n {...{\n installationUrl,\n isConnected,\n isConnecting,\n isPaneLoading,\n onConnect,\n paneAccounts,\n paneRepositories,\n troubleshootUrl,\n }}\n isPane\n shouldFetchRepositories={false}\n />\n </Sheet.Body>\n </Sheet>\n );\n};\n\nexport default NeetoGithubNanoPane;\n"],"names":["newInstallationParams","qs","stringify","integrator_id","globalProps","_globalProps$organiza","organization","id","integrator_type","redirect_path","NEW_INSTALLATION_URL","concat","NEETO_GITHUB_ENGINE_BASE_URL","TROUBLESHOOT_URL","NeetoGithubNanoPane","_ref","isOpen","onClose","_ref$isConnecting","isConnecting","_ref$isConnected","isConnected","_ref$installationUrl","installationUrl","_ref$troubleshootUrl","troubleshootUrl","_ref$onConnect","onConnect","noop","_ref$projects","projects","_ref$title","title","_useTranslation","useTranslation","t","initialFocusRef","useRef","_useFetchGithubReposi","useFetchGithubRepositories","_useFetchGithubReposi2","data","_useFetchGithubReposi3","_useFetchGithubReposi4","repositories","_useFetchGithubReposi5","accounts","isPaneLoading","isLoading","paneRepositories","filter","repository","findBy","fullName","paneAccounts","_jsxs","Sheet","className","size","children","_jsx","Header","Title","isPresent","Body","NeetoGithubNanoContainer","isPane","shouldFetchRepositories"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,qBAAqB,GAAGC,EAAE,CAACC,SA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AO;AACtCwC,IAAAA,SAAS,EAAC,iCAAiC;AAC3CC,IAAAA,IAAI,EAAC,OAAO;AAAAC,IAAAA,QAAA,EAAA,cAEZC,GAAA,CAACJ,KAAK,CAACK,MAAM,EAAA;AAAAF,MAAAA,QAAA,eACXC,GAAA,CAACJ,KAAK,CAACM,KAAK,EAAA;QAAAH,QAAA,EACTI,SAAS,CAAC/B,KAAK,CAAC,GAAGA,KAAK,GAAGG,CAAC,CAAC,yBAAyB;OAC5C;AAAC,KACF,CAAC,eACfyB,GAAA,CAACJ,KAAK,CAACQ,IAAI,EAAA;AAACP,MAAAA,SAAS,EAAC,MAAM;MAAAE,QAAA,eAC1BC,GAAA,CAACK,wBAAwB,EAAA;AAErB1C,QAAAA,eAAe,EAAfA,eAAe;AACfF,QAAAA,WAAW,EAAXA,WAAW;AACXF,QAAAA,YAAY,EAAZA,YAAY;AACZ4B,QAAAA,aAAa,EAAbA,aAAa;AACbpB,QAAAA,SAAS,EAATA,SAAS;AACT2B,QAAAA,YAAY,EAAZA,YAAY;AACZL,QAAAA,gBAAgB,EAAhBA,gBAAgB;AAChBxB,QAAAA,eAAe,EAAfA,eAAe;QAEjByC,MAAM,EAAA,IAAA;AACNC,QAAAA,uBAAuB,EAAE;OAC1B;AAAC,KACQ,CAAC;AAAA,GACR,CAAC;AAEZ;;;;"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { Typography, Button, Alert, Tooltip } from '@bigbinary/neeto-atoms';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import { noop } from '@bigbinary/neeto-cist';
|
|
7
|
+
import ExternalLink from '@bigbinary/neeto-icons/ExternalLink';
|
|
8
|
+
import Github from '@bigbinary/neeto-icons/misc/Github';
|
|
9
|
+
import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
10
|
+
import { isNotNil } from 'ramda';
|
|
11
|
+
import { useTranslation, Trans } from 'react-i18next';
|
|
12
|
+
import NeetoGithubNanoPane from './NeetoGithubNanoPane.js';
|
|
13
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
14
|
+
import '../useGithubAccountsApi-Csym3TIW.js';
|
|
15
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
16
|
+
import '@tanstack/react-query';
|
|
17
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
18
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
19
|
+
import 'axios';
|
|
20
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
21
|
+
import '../pane-CPRRz6tU.js';
|
|
22
|
+
import '../repository-tile-DxVqVMYY.js';
|
|
23
|
+
import './NeetoGithubNanoContainer.js';
|
|
24
|
+
import '@bigbinary/neeto-commons-frontend/v2/initializers';
|
|
25
|
+
import '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
26
|
+
import '@bigbinary/neeto-icons/Building';
|
|
27
|
+
import '@bigbinary/neeto-icons/Plus';
|
|
28
|
+
import '@bigbinary/neeto-icons/Settings';
|
|
29
|
+
import '@bigbinary/neeto-molecules/v2/Search';
|
|
30
|
+
import '@bigbinary/neeto-icons/Lock';
|
|
31
|
+
import '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
32
|
+
import 'qs';
|
|
33
|
+
|
|
34
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36
|
+
var NeetoGithubRepositoryConnectionCard = function NeetoGithubRepositoryConnectionCard(_ref) {
|
|
37
|
+
var className = _ref.className,
|
|
38
|
+
repositoryName = _ref.repositoryName,
|
|
39
|
+
installationUrl = _ref.installationUrl,
|
|
40
|
+
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
41
|
+
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
42
|
+
_ref$onConnect = _ref.onConnect,
|
|
43
|
+
_onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
44
|
+
_ref$onDisconnect = _ref.onDisconnect,
|
|
45
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
|
|
46
|
+
_ref$isConnecting = _ref.isConnecting,
|
|
47
|
+
isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
|
|
48
|
+
_ref$isConnected = _ref.isConnected,
|
|
49
|
+
isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
|
|
50
|
+
_ref$isDisconnecting = _ref.isDisconnecting,
|
|
51
|
+
isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
|
|
52
|
+
_ref$isDisconnectingD = _ref.isDisconnectingDisabled,
|
|
53
|
+
isDisconnectingDisabled = _ref$isDisconnectingD === void 0 ? false : _ref$isDisconnectingD,
|
|
54
|
+
_ref$canManageGithubI = _ref.canManageGithubIntegration,
|
|
55
|
+
canManageGithubIntegration = _ref$canManageGithubI === void 0 ? false : _ref$canManageGithubI,
|
|
56
|
+
disconnectButtonDisabledTooltipContent = _ref.disconnectButtonDisabledTooltipContent;
|
|
57
|
+
var _useState = useState(false),
|
|
58
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
+
isConnectRepositoryViewOpen = _useState2[0],
|
|
60
|
+
setIsConnectRepositoryViewOpen = _useState2[1];
|
|
61
|
+
var _useState3 = useState(false),
|
|
62
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
63
|
+
isDisconnectAlertOpen = _useState4[0],
|
|
64
|
+
setIsDisconnectAlertOpen = _useState4[1];
|
|
65
|
+
var _useTranslation = useTranslation(),
|
|
66
|
+
t = _useTranslation.t;
|
|
67
|
+
var isRepositoryConnected = isNotNil(repositoryName);
|
|
68
|
+
var isDisabled = isRepositoryConnected && isDisconnectingDisabled;
|
|
69
|
+
var variant = isRepositoryConnected ? "outline" : "default";
|
|
70
|
+
var title = isRepositoryConnected ? t("neetoGithub.connectedRepository") : t("neetoGithub.connectRepository");
|
|
71
|
+
var label = isRepositoryConnected ? t("neetoGithub.disconnect") : t("neetoGithub.connect");
|
|
72
|
+
var tooltipProps = {
|
|
73
|
+
content: disconnectButtonDisabledTooltipContent || t("neetoGithub.disconnectingDisabled"),
|
|
74
|
+
disabled: !isDisconnectingDisabled || !isRepositoryConnected
|
|
75
|
+
};
|
|
76
|
+
var githubRepositoryUrl = function githubRepositoryUrl(repositoryName) {
|
|
77
|
+
return "https://github.com/".concat(repositoryName);
|
|
78
|
+
};
|
|
79
|
+
var renderActionBlockTooltip = function renderActionBlockTooltip() {
|
|
80
|
+
return /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
81
|
+
children: /*#__PURE__*/jsx("span", {
|
|
82
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
83
|
+
label: label,
|
|
84
|
+
variant: variant,
|
|
85
|
+
disabled: isDisabled,
|
|
86
|
+
onClick: isRepositoryConnected ? function () {
|
|
87
|
+
return setIsDisconnectAlertOpen(true);
|
|
88
|
+
} : function () {
|
|
89
|
+
return setIsConnectRepositoryViewOpen(true);
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
}));
|
|
94
|
+
};
|
|
95
|
+
return /*#__PURE__*/jsxs("div", {
|
|
96
|
+
className: classnames("w-full", className),
|
|
97
|
+
children: [/*#__PURE__*/jsxs(CardLayout, {
|
|
98
|
+
title: title,
|
|
99
|
+
actionBlock: canManageGithubIntegration && renderActionBlockTooltip(),
|
|
100
|
+
icon: /*#__PURE__*/jsx(Github, {}),
|
|
101
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
102
|
+
variant: "body1",
|
|
103
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
104
|
+
values: {
|
|
105
|
+
repository: repositoryName
|
|
106
|
+
},
|
|
107
|
+
components: {
|
|
108
|
+
a: /*#__PURE__*/jsx(Button, {
|
|
109
|
+
href: githubRepositoryUrl(repositoryName),
|
|
110
|
+
icon: ExternalLink,
|
|
111
|
+
rel: "noreferrer",
|
|
112
|
+
target: "_blank",
|
|
113
|
+
variant: "link"
|
|
114
|
+
}),
|
|
115
|
+
externalLink: /*#__PURE__*/jsx(ExternalLink, {
|
|
116
|
+
size: 20
|
|
117
|
+
})
|
|
118
|
+
},
|
|
119
|
+
i18nKey: isRepositoryConnected ? "neetoGithub.repositoryConnected" : "neetoGithub.repositoryNotConnected"
|
|
120
|
+
})
|
|
121
|
+
}), helpDocUrl && /*#__PURE__*/jsx(Typography, {
|
|
122
|
+
className: "neeto-ui-text-gray-800 mt-4",
|
|
123
|
+
variant: "body2",
|
|
124
|
+
weight: "normal",
|
|
125
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
126
|
+
i18nKey: "neetoGithub.helpDocUrl",
|
|
127
|
+
components: {
|
|
128
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
129
|
+
href: helpDocUrl,
|
|
130
|
+
target: "_blank",
|
|
131
|
+
variant: "link"
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
})]
|
|
136
|
+
}), canManageGithubIntegration && /*#__PURE__*/jsxs(Fragment, {
|
|
137
|
+
children: [/*#__PURE__*/jsx(NeetoGithubNanoPane, {
|
|
138
|
+
installationUrl: installationUrl,
|
|
139
|
+
isConnected: isConnected,
|
|
140
|
+
isConnecting: isConnecting,
|
|
141
|
+
isOpen: isConnectRepositoryViewOpen,
|
|
142
|
+
projects: [{
|
|
143
|
+
repository: repositoryName
|
|
144
|
+
}],
|
|
145
|
+
title: t("neetoGithub.selectARepository"),
|
|
146
|
+
onClose: function onClose() {
|
|
147
|
+
setIsConnectRepositoryViewOpen(false);
|
|
148
|
+
},
|
|
149
|
+
onConnect: function onConnect(_ref2) {
|
|
150
|
+
var repoType = _ref2.repoType,
|
|
151
|
+
repository = _ref2.repository,
|
|
152
|
+
setIsLoading = _ref2.setIsLoading;
|
|
153
|
+
_onConnect({
|
|
154
|
+
repoType: repoType,
|
|
155
|
+
repository: repository,
|
|
156
|
+
setIsLoading: setIsLoading
|
|
157
|
+
}, setIsConnectRepositoryViewOpen);
|
|
158
|
+
}
|
|
159
|
+
}), /*#__PURE__*/jsx(Alert, {
|
|
160
|
+
isOpen: isDisconnectAlertOpen,
|
|
161
|
+
isSubmitting: isDisconnecting,
|
|
162
|
+
message: t("neetoGithub.disconnectAlert.message"),
|
|
163
|
+
title: t("neetoGithub.disconnectAlert.title"),
|
|
164
|
+
onClose: function onClose() {
|
|
165
|
+
return setIsDisconnectAlertOpen(false);
|
|
166
|
+
},
|
|
167
|
+
onSubmit: function onSubmit() {
|
|
168
|
+
onDisconnect(setIsDisconnectAlertOpen);
|
|
169
|
+
}
|
|
170
|
+
})]
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export { NeetoGithubRepositoryConnectionCard as default };
|
|
176
|
+
//# sourceMappingURL=NeetoGithubRepositoryConnectionCard.js.map
|