@bigbinary/neeto-github-frontend 2.4.0-beta1 → 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 +13 -0
- package/dist/.ready +1 -0
- package/dist/NeetoGithubIntegrationsTable.js +3 -3
- package/dist/NeetoGithubIntegrationsTable.js.map +1 -1
- package/dist/NeetoGithubNanoContainer.js +445 -21
- package/dist/NeetoGithubNanoContainer.js.map +1 -1
- package/dist/NeetoGithubNanoPane.js +4 -5
- package/dist/NeetoGithubNanoPane.js.map +1 -1
- package/dist/NeetoGithubRepositoryConnectionCard.js +5 -3
- package/dist/NeetoGithubRepositoryConnectionCard.js.map +1 -1
- package/dist/cjs/NeetoGithubIntegrationsTable.js +3 -3
- package/dist/cjs/NeetoGithubIntegrationsTable.js.map +1 -1
- package/dist/cjs/NeetoGithubNanoContainer.js +445 -25
- package/dist/cjs/NeetoGithubNanoContainer.js.map +1 -1
- package/dist/cjs/NeetoGithubNanoPane.js +5 -6
- package/dist/cjs/NeetoGithubNanoPane.js.map +1 -1
- package/dist/cjs/NeetoGithubRepositoryConnectionCard.js +5 -3
- package/dist/cjs/NeetoGithubRepositoryConnectionCard.js.map +1 -1
- package/dist/cjs/hooks.js +1 -1
- package/dist/cjs/index.js +5 -3
- 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-D1ob5VXc.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/hooks.js +1 -1
- package/dist/index.js +4 -2
- 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/{useGithubAccountsApi-BFnwW6qa.js → useGithubAccountsApi-CBlDaBkA.js} +3 -5
- package/dist/useGithubAccountsApi-CBlDaBkA.js.map +1 -0
- package/dist/{useGithubAccountsApi-Bs2Imc4V.js → useGithubAccountsApi-Csym3TIW.js} +5 -7
- package/dist/useGithubAccountsApi-Csym3TIW.js.map +1 -0
- package/dist/v2/NeetoGithubIntegrationsTable.js +155 -0
- package/dist/v2/NeetoGithubIntegrationsTable.js.map +1 -0
- package/dist/{index-BrvZaXzw.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 +39 -27
- package/dist/index-BrvZaXzw.js.map +0 -1
- package/dist/index-D1ob5VXc.js.map +0 -1
- package/dist/useGithubAccountsApi-BFnwW6qa.js.map +0 -1
- package/dist/useGithubAccountsApi-Bs2Imc4V.js.map +0 -1
|
@@ -1,34 +1,454 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('classnames');
|
|
4
|
-
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
5
|
-
require('@bigbinary/neetoui/Spinner');
|
|
6
|
-
require('../useGithubAccountsApi-
|
|
7
|
-
var
|
|
8
|
-
require('
|
|
3
|
+
var classnames = require('classnames');
|
|
4
|
+
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
5
|
+
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
6
|
+
var useGithubAccountsApi = require('../useGithubAccountsApi-CBlDaBkA.js');
|
|
7
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
|
+
var Github = require('@bigbinary/neeto-icons/misc/Github');
|
|
9
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
10
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
+
var Building = require('@bigbinary/neeto-icons/Building');
|
|
12
|
+
var Avatar = require('@bigbinary/neetoui/Avatar');
|
|
13
|
+
var Button = require('@bigbinary/neetoui/Button');
|
|
14
|
+
var Plus = require('@bigbinary/neeto-icons/Plus');
|
|
15
|
+
var Settings = require('@bigbinary/neeto-icons/Settings');
|
|
16
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
17
|
+
var react = require('react');
|
|
18
|
+
var neetoCist = require('@bigbinary/neeto-cist');
|
|
19
|
+
var Search = require('@bigbinary/neeto-molecules/Search');
|
|
20
|
+
var reactI18next = require('react-i18next');
|
|
21
|
+
var Lock = require('@bigbinary/neeto-icons/Lock');
|
|
22
|
+
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
23
|
+
require('../repository-tile-fB8WFACw.js');
|
|
9
24
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
10
25
|
require('@babel/runtime/helpers/defineProperty');
|
|
11
26
|
require('@tanstack/react-query');
|
|
12
|
-
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
13
27
|
require('ramda');
|
|
14
28
|
require('axios');
|
|
15
29
|
require('@bigbinary/neeto-commons-frontend/constants');
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
|
|
31
|
+
var Header = reactUtils.withT(function (_ref) {
|
|
32
|
+
var t = _ref.t;
|
|
33
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
34
|
+
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",
|
|
35
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Github, {
|
|
36
|
+
className: "github-icon",
|
|
37
|
+
size: 20
|
|
38
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
39
|
+
style: "h4",
|
|
40
|
+
children: t("neetoGithub.github")
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
var Configure = reactUtils.withT(function (_ref) {
|
|
46
|
+
var t = _ref.t,
|
|
47
|
+
isConnected = _ref.isConnected,
|
|
48
|
+
installationUrl = _ref.installationUrl;
|
|
49
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
50
|
+
className: "neeto-ui-text-gray-900 shrink-0 font-sans text-sm font-normal leading-6 antialiased",
|
|
51
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
52
|
+
href: installationUrl,
|
|
53
|
+
icon: isConnected ? Settings : Plus,
|
|
54
|
+
iconPosition: "left",
|
|
55
|
+
iconSize: 20,
|
|
56
|
+
size: "small",
|
|
57
|
+
style: "link",
|
|
58
|
+
children: isConnected ? t("neetoGithub.configureAccount") : t("neetoGithub.connectAccount")
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
var List$1 = reactUtils.withT(function (_ref) {
|
|
64
|
+
var t = _ref.t,
|
|
65
|
+
accounts = _ref.accounts,
|
|
66
|
+
isConnected = _ref.isConnected,
|
|
67
|
+
installationUrl = _ref.installationUrl,
|
|
68
|
+
isPane = _ref.isPane;
|
|
69
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
70
|
+
className: classnames("neeto-ui-border-gray-300 flex justify-between gap-3 border-b pb-4 pt-2", {
|
|
71
|
+
"flex-col md:flex-row": isPane,
|
|
72
|
+
"flex-col": !isPane
|
|
73
|
+
}),
|
|
74
|
+
children: [accounts.map(function (_ref2) {
|
|
75
|
+
var id = _ref2.id,
|
|
76
|
+
name = _ref2.name,
|
|
77
|
+
avatarUrl = _ref2.avatarUrl,
|
|
78
|
+
type = _ref2.type,
|
|
79
|
+
profileUrl = _ref2.profileUrl,
|
|
80
|
+
count = _ref2.count;
|
|
81
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
82
|
+
className: "flex w-full items-center space-x-2",
|
|
83
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
84
|
+
className: "flex items-center gap-1",
|
|
85
|
+
children: [type === "Organization" ? /*#__PURE__*/jsxRuntime.jsx(Building, {
|
|
86
|
+
className: "neeto-ui-text-gray-600",
|
|
87
|
+
size: 24
|
|
88
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Avatar, {
|
|
89
|
+
size: "small",
|
|
90
|
+
user: {
|
|
91
|
+
imageUrl: avatarUrl
|
|
92
|
+
}
|
|
93
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
94
|
+
className: "neeto-ui-text-gray-800",
|
|
95
|
+
style: "body2",
|
|
96
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
97
|
+
className: "neeto-ui-text-gray-800",
|
|
98
|
+
label: "@".concat(name),
|
|
99
|
+
style: "link",
|
|
100
|
+
onClick: function onClick() {
|
|
101
|
+
return window.open(profileUrl, "_blank");
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
})]
|
|
105
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
106
|
+
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
107
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
108
|
+
className: "neeto-ui-text-black",
|
|
109
|
+
style: "body2",
|
|
110
|
+
children: t("neetoGithub.countOf.repos", {
|
|
111
|
+
count: count
|
|
112
|
+
})
|
|
113
|
+
})]
|
|
114
|
+
}, id);
|
|
115
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Configure, {
|
|
116
|
+
installationUrl: installationUrl,
|
|
117
|
+
isConnected: isConnected
|
|
118
|
+
})]
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
var Accounts = function Accounts(_ref) {
|
|
123
|
+
var isPane = _ref.isPane,
|
|
124
|
+
accounts = _ref.accounts,
|
|
125
|
+
isConnected = _ref.isConnected,
|
|
126
|
+
onConnect = _ref.onConnect,
|
|
127
|
+
installationUrl = _ref.installationUrl;
|
|
128
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
129
|
+
className: classnames("flex w-full flex-col border border-solid border-transparent px-0 py-2", {
|
|
130
|
+
"order-1": isPane,
|
|
131
|
+
"md:order-2 md:max-w-72 lg:max-w-sm lg:px-6": !isPane
|
|
132
|
+
}),
|
|
133
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
134
|
+
className: "mb-2",
|
|
135
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Header, {}), /*#__PURE__*/jsxRuntime.jsx(List$1, {
|
|
136
|
+
accounts: accounts,
|
|
137
|
+
installationUrl: installationUrl,
|
|
138
|
+
isConnected: isConnected,
|
|
139
|
+
isPane: isPane,
|
|
140
|
+
onConnect: onConnect
|
|
141
|
+
})]
|
|
142
|
+
})
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var NoRepositories = reactUtils.withT(function (_ref) {
|
|
147
|
+
var t = _ref.t,
|
|
148
|
+
installationUrl = _ref.installationUrl,
|
|
149
|
+
troubleshootUrl = _ref.troubleshootUrl;
|
|
150
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
151
|
+
className: "flex items-center justify-center py-6",
|
|
152
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
153
|
+
className: "mx-auto flex w-full max-w-sm flex-col items-center justify-center space-y-4 py-4 text-center",
|
|
154
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
155
|
+
style: "body2",
|
|
156
|
+
children: t("neetoGithub.noReposDescription")
|
|
157
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
158
|
+
href: installationUrl,
|
|
159
|
+
icon: Github,
|
|
160
|
+
iconPosition: "left",
|
|
161
|
+
label: t("neetoGithub.connectRepository"),
|
|
162
|
+
size: "medium",
|
|
163
|
+
style: "primary"
|
|
164
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
165
|
+
className: "text-xs",
|
|
166
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
167
|
+
i18nKey: t("neetoGithub.troubleshoot"),
|
|
168
|
+
components: {
|
|
169
|
+
troubleshootLink: /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
170
|
+
className: "text-indigo-600 underline",
|
|
171
|
+
href: troubleshootUrl,
|
|
172
|
+
rel: "noopener noreferrer",
|
|
173
|
+
target: "_blank"
|
|
174
|
+
})
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
})]
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
var RepositoryTile = function RepositoryTile(_ref) {
|
|
183
|
+
var isConnecting = _ref.isConnecting,
|
|
184
|
+
onConnect = _ref.onConnect,
|
|
185
|
+
repository = _ref.repository;
|
|
186
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
187
|
+
t = _useTranslation.t;
|
|
188
|
+
var _useState = react.useState(false),
|
|
189
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
190
|
+
isLoading = _useState2[0],
|
|
191
|
+
setIsLoading = _useState2[1];
|
|
192
|
+
var id = repository.id,
|
|
193
|
+
fullName = repository.fullName,
|
|
194
|
+
isPrivate = repository.isPrivate,
|
|
195
|
+
updatedAt = repository.updatedAt;
|
|
196
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
197
|
+
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",
|
|
198
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
199
|
+
className: "connect-repo__info flex items-center space-x-2",
|
|
200
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Github, {
|
|
201
|
+
className: "github-icon",
|
|
202
|
+
size: 20
|
|
203
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
204
|
+
style: "body2",
|
|
205
|
+
children: fullName
|
|
206
|
+
}), isPrivate && /*#__PURE__*/jsxRuntime.jsx(Lock, {
|
|
207
|
+
className: "shrink-0",
|
|
208
|
+
size: 16
|
|
209
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
210
|
+
className: "hidden lg:inline-block",
|
|
211
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
212
|
+
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
213
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DateFormat.FromNow, {
|
|
214
|
+
date: updatedAt
|
|
215
|
+
})]
|
|
216
|
+
})]
|
|
217
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
218
|
+
className: "w-max",
|
|
219
|
+
disabled: isConnecting,
|
|
220
|
+
loading: isLoading,
|
|
221
|
+
style: "primary",
|
|
222
|
+
type: "button",
|
|
223
|
+
onClick: function onClick() {
|
|
224
|
+
return onConnect({
|
|
225
|
+
repoType: "private",
|
|
226
|
+
repository: repository,
|
|
227
|
+
setIsLoading: setIsLoading
|
|
228
|
+
});
|
|
229
|
+
},
|
|
230
|
+
children: t("neetoGithub.connect")
|
|
231
|
+
})]
|
|
232
|
+
}, id);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
var List = reactUtils.withT(function (_ref) {
|
|
236
|
+
var t = _ref.t,
|
|
237
|
+
filteredRepositories = _ref.filteredRepositories,
|
|
238
|
+
repositories = _ref.repositories,
|
|
239
|
+
isConnecting = _ref.isConnecting,
|
|
240
|
+
onConnect = _ref.onConnect,
|
|
241
|
+
installationUrl = _ref.installationUrl,
|
|
242
|
+
troubleshootUrl = _ref.troubleshootUrl;
|
|
243
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
244
|
+
className: "h-full overflow-y-scroll px-4 pb-4 md:px-6 md:pb-6",
|
|
245
|
+
children: neetoCist.isPresent(repositories) ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
246
|
+
className: classnames("neeto-ui-border-gray-300 neeto-ui-rounded-md flex flex-col items-center justify-center border", {
|
|
247
|
+
"h-auto": neetoCist.isPresent(filteredRepositories),
|
|
248
|
+
"h-full": !neetoCist.isPresent(filteredRepositories)
|
|
249
|
+
}),
|
|
250
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
251
|
+
className: "m-0 h-full w-full p-0",
|
|
252
|
+
children: neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository, index) {
|
|
253
|
+
return /*#__PURE__*/react.createElement(RepositoryTile, {
|
|
254
|
+
isConnecting: isConnecting,
|
|
255
|
+
onConnect: onConnect,
|
|
256
|
+
repository: repository,
|
|
257
|
+
key: index
|
|
258
|
+
});
|
|
259
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
260
|
+
className: "flex h-full w-full items-center justify-center",
|
|
261
|
+
style: "body2",
|
|
262
|
+
children: t("neetoGithub.noRepos")
|
|
263
|
+
})
|
|
264
|
+
})
|
|
265
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(NoRepositories, {
|
|
266
|
+
installationUrl: installationUrl,
|
|
267
|
+
troubleshootUrl: troubleshootUrl
|
|
268
|
+
})
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
var NotConnected = function NotConnected(_ref) {
|
|
273
|
+
var installationUrl = _ref.installationUrl;
|
|
274
|
+
var _useState = react.useState(false),
|
|
275
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
276
|
+
isLoading = _useState2[0],
|
|
277
|
+
setIsLoading = _useState2[1];
|
|
278
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
279
|
+
t = _useTranslation.t;
|
|
280
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
281
|
+
className: "flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center",
|
|
282
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
283
|
+
style: "body2",
|
|
284
|
+
children: t("neetoGithub.notConnectedDescription", {
|
|
285
|
+
appName: initializers.globalProps.appName
|
|
286
|
+
})
|
|
287
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
288
|
+
icon: Github,
|
|
289
|
+
iconPosition: "left",
|
|
290
|
+
label: t("neetoGithub.connectGithub"),
|
|
291
|
+
loading: isLoading,
|
|
292
|
+
size: "medium",
|
|
293
|
+
style: "primary",
|
|
294
|
+
onClick: function onClick(event) {
|
|
295
|
+
setIsLoading(true);
|
|
296
|
+
var target = reactUtils.isMetaKeyPressed(event) ? "_blank" : "_self";
|
|
297
|
+
window.open(installationUrl, target);
|
|
298
|
+
}
|
|
299
|
+
})]
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
var Private = function Private(_ref) {
|
|
304
|
+
var isConnected = _ref.isConnected,
|
|
305
|
+
isConnecting = _ref.isConnecting,
|
|
306
|
+
repositories = _ref.repositories,
|
|
307
|
+
onConnect = _ref.onConnect,
|
|
308
|
+
installationUrl = _ref.installationUrl,
|
|
309
|
+
troubleshootUrl = _ref.troubleshootUrl;
|
|
310
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
311
|
+
t = _useTranslation.t;
|
|
312
|
+
var _useState = react.useState(repositories),
|
|
313
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
314
|
+
filteredRepositories = _useState2[0],
|
|
315
|
+
setFilteredRepositories = _useState2[1];
|
|
316
|
+
var onSearch = function onSearch(searchTerm) {
|
|
317
|
+
if (!neetoCist.isPresent(searchTerm)) {
|
|
318
|
+
setFilteredRepositories(repositories);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
var filteredRepositories = repositories.filter(function (_ref2) {
|
|
322
|
+
var fullName = _ref2.fullName;
|
|
323
|
+
return fullName.toLowerCase().includes(searchTerm.toLowerCase());
|
|
324
|
+
});
|
|
325
|
+
setFilteredRepositories(filteredRepositories);
|
|
326
|
+
};
|
|
327
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
328
|
+
className: "connect-repo flex h-full flex-col",
|
|
329
|
+
children: isConnected ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
330
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
331
|
+
className: "space-y-3 p-4 md:p-6",
|
|
332
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
333
|
+
className: "shrink-0 text-lg font-medium",
|
|
334
|
+
style: "h2",
|
|
335
|
+
children: t("neetoGithub.connectARepo")
|
|
336
|
+
}), neetoCist.isPresent(repositories) && /*#__PURE__*/jsxRuntime.jsx(Search, {
|
|
337
|
+
onSearch: onSearch,
|
|
338
|
+
className: "w-full",
|
|
339
|
+
unlimitedChars: false,
|
|
340
|
+
suffix: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
341
|
+
style: "body2",
|
|
342
|
+
children: t("neetoGithub.countOf.repos", {
|
|
343
|
+
count: filteredRepositories.length
|
|
344
|
+
})
|
|
345
|
+
})
|
|
346
|
+
})]
|
|
347
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
348
|
+
className: "flex min-h-0 w-full grow flex-col space-y-6",
|
|
349
|
+
children: /*#__PURE__*/jsxRuntime.jsx(List, {
|
|
350
|
+
filteredRepositories: filteredRepositories,
|
|
351
|
+
installationUrl: installationUrl,
|
|
352
|
+
isConnecting: isConnecting,
|
|
353
|
+
onConnect: onConnect,
|
|
354
|
+
repositories: repositories,
|
|
355
|
+
troubleshootUrl: troubleshootUrl
|
|
356
|
+
})
|
|
357
|
+
})]
|
|
358
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
359
|
+
className: "neeto-ui-text-gray-900 grow font-sans text-sm font-normal leading-6 antialiased",
|
|
360
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
361
|
+
className: "flex h-full flex-col items-center justify-center p-4",
|
|
362
|
+
children: /*#__PURE__*/jsxRuntime.jsx(NotConnected, {
|
|
363
|
+
installationUrl: installationUrl
|
|
364
|
+
})
|
|
365
|
+
})
|
|
366
|
+
})
|
|
367
|
+
});
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
var Repositories = function Repositories(_ref) {
|
|
371
|
+
var isConnected = _ref.isConnected,
|
|
372
|
+
isConnecting = _ref.isConnecting,
|
|
373
|
+
repositories = _ref.repositories,
|
|
374
|
+
onConnect = _ref.onConnect,
|
|
375
|
+
installationUrl = _ref.installationUrl,
|
|
376
|
+
troubleshootUrl = _ref.troubleshootUrl,
|
|
377
|
+
isPane = _ref.isPane;
|
|
378
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
379
|
+
className: classnames("neeto-ui-rounded-md neeto-ui-border-gray-300 h-full w-full space-y-6 border border-solid", {
|
|
380
|
+
"order-2": isPane,
|
|
381
|
+
"order-1": !isPane
|
|
382
|
+
}),
|
|
383
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Private, {
|
|
384
|
+
installationUrl: installationUrl,
|
|
385
|
+
isConnected: isConnected,
|
|
386
|
+
isConnecting: isConnecting,
|
|
387
|
+
onConnect: onConnect,
|
|
388
|
+
repositories: repositories,
|
|
389
|
+
troubleshootUrl: troubleshootUrl
|
|
390
|
+
})
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
395
|
+
var _ref$isPaneLoading = _ref.isPaneLoading,
|
|
396
|
+
isPaneLoading = _ref$isPaneLoading === void 0 ? false : _ref$isPaneLoading,
|
|
397
|
+
_ref$shouldFetchRepos = _ref.shouldFetchRepositories,
|
|
398
|
+
shouldFetchRepositories = _ref$shouldFetchRepos === void 0 ? true : _ref$shouldFetchRepos,
|
|
399
|
+
_ref$paneAccounts = _ref.paneAccounts,
|
|
400
|
+
paneAccounts = _ref$paneAccounts === void 0 ? [] : _ref$paneAccounts,
|
|
401
|
+
installationUrl = _ref.installationUrl,
|
|
402
|
+
isConnected = _ref.isConnected,
|
|
403
|
+
_ref$isConnecting = _ref.isConnecting,
|
|
404
|
+
isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
|
|
405
|
+
onConnect = _ref.onConnect,
|
|
406
|
+
_ref$paneRepositories = _ref.paneRepositories,
|
|
407
|
+
paneRepositories = _ref$paneRepositories === void 0 ? [] : _ref$paneRepositories,
|
|
408
|
+
troubleshootUrl = _ref.troubleshootUrl,
|
|
409
|
+
_ref$isPane = _ref.isPane,
|
|
410
|
+
isPane = _ref$isPane === void 0 ? false : _ref$isPane;
|
|
411
|
+
var _useFetchGithubReposi = useGithubAccountsApi.useFetchGithubRepositories({
|
|
412
|
+
isConnected: shouldFetchRepositories && initializers.globalProps.isGithubIntegrated
|
|
413
|
+
}),
|
|
414
|
+
_useFetchGithubReposi2 = _useFetchGithubReposi.data,
|
|
415
|
+
_useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
|
|
416
|
+
_useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
|
|
417
|
+
containerRepositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
|
|
418
|
+
_useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
|
|
419
|
+
containerAccounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
|
|
420
|
+
isContainerLoading = _useFetchGithubReposi.isLoading;
|
|
421
|
+
var repositories = shouldFetchRepositories ? containerRepositories : paneRepositories;
|
|
422
|
+
var accounts = shouldFetchRepositories ? containerAccounts : paneAccounts;
|
|
423
|
+
var isLoading = shouldFetchRepositories ? isContainerLoading : isPaneLoading;
|
|
424
|
+
if (isLoading) {
|
|
425
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
426
|
+
className: "flex h-full w-full items-center justify-center",
|
|
427
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
431
|
+
className: classnames("flex min-h-0 w-full grow flex-col", {
|
|
432
|
+
"flex-col": isPane,
|
|
433
|
+
"gap-3 md:flex-row md:gap-6": !isPane
|
|
434
|
+
}),
|
|
435
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Accounts, {
|
|
436
|
+
accounts: accounts,
|
|
437
|
+
installationUrl: installationUrl,
|
|
438
|
+
isConnected: isConnected,
|
|
439
|
+
isPane: isPane,
|
|
440
|
+
onConnect: onConnect
|
|
441
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Repositories, {
|
|
442
|
+
installationUrl: installationUrl,
|
|
443
|
+
isConnected: isConnected,
|
|
444
|
+
isConnecting: isConnecting,
|
|
445
|
+
isPane: isPane,
|
|
446
|
+
onConnect: onConnect,
|
|
447
|
+
repositories: repositories,
|
|
448
|
+
troubleshootUrl: troubleshootUrl
|
|
449
|
+
})]
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
module.exports = NeetoGithubNanoContainer;
|
|
34
454
|
//# sourceMappingURL=NeetoGithubNanoContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeetoGithubNanoContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"NeetoGithubNanoContainer.js","sources":["../../app/javascript/src/components/commons/Accounts/Header.jsx","../../app/javascript/src/components/commons/Accounts/Configure.jsx","../../app/javascript/src/components/commons/Accounts/List.jsx","../../app/javascript/src/components/commons/Accounts/index.jsx","../../app/javascript/src/components/commons/Repositories/NoRepositories.jsx","../../app/javascript/src/components/commons/Repositories/RepositoryTile.jsx","../../app/javascript/src/components/commons/Repositories/List.jsx","../../app/javascript/src/components/commons/Repositories/NotConnected.jsx","../../app/javascript/src/components/commons/Repositories/Private.jsx","../../app/javascript/src/components/commons/Repositories/index.jsx","../../app/javascript/src/components/NeetoGithubNanoContainer/index.jsx"],"sourcesContent":["import { withT } from \"neetocommons/react-utils\";\nimport { Github } from \"neetoicons/misc\";\nimport { Typography } from \"neetoui\";\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 className=\"github-icon\" size={20} />\n <Typography style=\"h4\">{t(\"neetoGithub.github\")}</Typography>\n </div>\n));\n\nexport default Header;\n","import { withT } from \"neetocommons/react-utils\";\nimport { Plus, Settings } from \"neetoicons\";\nimport { Button } from \"neetoui\";\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 iconSize={20}\n size=\"small\"\n style=\"link\"\n >\n {isConnected\n ? t(\"neetoGithub.configureAccount\")\n : t(\"neetoGithub.connectAccount\")}\n </Button>\n </div>\n));\n\nexport default Configure;\n","import classnames from \"classnames\";\nimport { withT } from \"neetocommons/react-utils\";\nimport { Building } from \"neetoicons\";\nimport { Avatar, Button, Typography } from \"neetoui\";\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=\"small\" user={{ imageUrl: avatarUrl }} />\n )}\n <Typography className=\"neeto-ui-text-gray-800\" style=\"body2\">\n <Button\n className=\"neeto-ui-text-gray-800\"\n label={`@${name}`}\n style=\"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\" style=\"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 { withT } from \"neetocommons/react-utils\";\nimport { Github } from \"neetoicons/misc\";\nimport { Button, Typography } from \"neetoui\";\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 style=\"body2\">\n {t(\"neetoGithub.noReposDescription\")}\n </Typography>\n <Button\n href={installationUrl}\n icon={Github}\n iconPosition=\"left\"\n label={t(\"neetoGithub.connectRepository\")}\n size=\"medium\"\n style=\"primary\"\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 { Lock } from \"neetoicons\";\nimport { Github } from \"neetoicons/misc\";\nimport DateFormat from \"neetomolecules/DateFormat\";\nimport { Button, Typography } from \"neetoui\";\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 items-center space-x-2\">\n <Github className=\"github-icon\" size={20} />\n <Typography style=\"body2\">{fullName}</Typography>\n {isPrivate && <Lock className=\"shrink-0\" size={16} />}\n <div className=\"hidden lg:inline-block\">\n <span className=\"neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1\" />\n <DateFormat.FromNow date={updatedAt} />\n </div>\n </div>\n <Button\n className=\"w-max\"\n disabled={isConnecting}\n loading={isLoading}\n style=\"primary\"\n type=\"button\"\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 classNames from \"classnames\";\nimport { isPresent } from \"neetocist\";\nimport { withT } from \"neetocommons/react-utils\";\nimport { Typography } from \"neetoui\";\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-scroll px-4 pb-4 md:px-6 md:pb-6\">\n {isPresent(repositories) ? (\n <div\n className={classNames(\n \"neeto-ui-border-gray-300 neeto-ui-rounded-md flex flex-col items-center justify-center border\",\n {\n \"h-auto\": isPresent(filteredRepositories),\n \"h-full\": !isPresent(filteredRepositories),\n }\n )}\n >\n <div className=\"m-0 h-full w-full p-0\">\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\"\n style=\"body2\"\n >\n {t(\"neetoGithub.noRepos\")}\n </Typography>\n )}\n </div>\n </div>\n ) : (\n <NoRepositories {...{ installationUrl, troubleshootUrl }} />\n )}\n </div>\n )\n);\n\nexport default List;\n","import { useState } from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport { isMetaKeyPressed } from \"neetocommons/react-utils\";\nimport { Github } from \"neetoicons/misc\";\nimport { Button, Typography } from \"neetoui\";\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 style=\"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 size=\"medium\"\n style=\"primary\"\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 { isPresent } from \"neetocist\";\nimport Search from \"neetomolecules/Search\";\nimport { Typography } from \"neetoui\";\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\" style=\"h2\">\n {t(\"neetoGithub.connectARepo\")}\n </Typography>\n {isPresent(repositories) && (\n <Search\n {...{ onSearch }}\n className=\"w-full\"\n unlimitedChars={false}\n suffix={\n <Typography style=\"body2\">\n {t(\"neetoGithub.countOf.repos\", {\n count: filteredRepositories.length,\n })}\n </Typography>\n }\n />\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 h-full w-full space-y-6 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 classNames from \"classnames\";\nimport { globalProps } from \"neetocommons/initializers\";\nimport { Spinner } from \"neetoui\";\n\nimport { useFetchGithubRepositories } from \"hooks/reactQuery/useGithubAccountsApi\";\nimport Accounts from \"src/components/commons/Accounts\";\nimport Repositories from \"src/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","style","Configure","isConnected","installationUrl","Button","href","icon","Settings","Plus","iconPosition","iconSize","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","classNames","index","_createElement","key","NotConnected","appName","globalProps","event","isMetaKeyPressed","Private","setFilteredRepositories","onSearch","searchTerm","filter","toLowerCase","includes","_Fragment","Search","unlimitedChars","suffix","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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,YAAY;AACZ7B,MAAAA,eAAe,EAAfA;AAAe,KAElB,CAAC;AAAA,GACC,CAAC;AAEV;;;;"}
|
|
@@ -5,8 +5,9 @@ var neetoCist = require('@bigbinary/neeto-cist');
|
|
|
5
5
|
var Pane = require('@bigbinary/neetoui/Pane');
|
|
6
6
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
7
7
|
var reactI18next = require('react-i18next');
|
|
8
|
-
var useGithubAccountsApi = require('../useGithubAccountsApi-
|
|
9
|
-
var NeetoGithubNanoContainer = require('
|
|
8
|
+
var useGithubAccountsApi = require('../useGithubAccountsApi-CBlDaBkA.js');
|
|
9
|
+
var NeetoGithubNanoContainer = require('./NeetoGithubNanoContainer.js');
|
|
10
|
+
require('../pane-DRsC3fwq.js');
|
|
10
11
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
11
12
|
var qs = require('qs');
|
|
12
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -29,6 +30,7 @@ require('@babel/runtime/helpers/slicedToArray');
|
|
|
29
30
|
require('@bigbinary/neeto-molecules/Search');
|
|
30
31
|
require('@bigbinary/neeto-icons/Lock');
|
|
31
32
|
require('@bigbinary/neeto-molecules/DateFormat');
|
|
33
|
+
require('../repository-tile-fB8WFACw.js');
|
|
32
34
|
|
|
33
35
|
function _interopNamespaceDefault(e) {
|
|
34
36
|
var n = Object.create(null);
|
|
@@ -49,9 +51,6 @@ function _interopNamespaceDefault(e) {
|
|
|
49
51
|
|
|
50
52
|
var qs__namespace = /*#__PURE__*/_interopNamespaceDefault(qs);
|
|
51
53
|
|
|
52
|
-
var css = ".neeto-github-modal-pane-wrapper{width:min(100%,1280px)}@media (min-width:768px){.neeto-github-modal-pane-wrapper{width:min(90%,1280px)}}@media (min-width:1024px){.neeto-github-modal-pane-wrapper{width:min(60%,1280px)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvcGFuZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaUNBQ0Usc0JBQ0YsQ0FFQSx5QkFDRSxpQ0FDRSxxQkFDRixDQUNGLENBRUEsMEJBQ0UsaUNBQ0UscUJBQ0YsQ0FDRiIsInNvdXJjZXNDb250ZW50IjpbIi5uZWV0by1naXRodWItbW9kYWwtcGFuZS13cmFwcGVyIHtcbiAgd2lkdGg6IG1pbigxMDAlLCAxMjgwcHgpO1xufVxuXG5AbWVkaWEgKG1pbi13aWR0aDogNzY4cHgpIHtcbiAgLm5lZXRvLWdpdGh1Yi1tb2RhbC1wYW5lLXdyYXBwZXIge1xuICAgIHdpZHRoOiBtaW4oOTAlLCAxMjgwcHgpO1xuICB9XG59XG5cbkBtZWRpYSAobWluLXdpZHRoOiAxMDI0cHgpIHtcbiAgLm5lZXRvLWdpdGh1Yi1tb2RhbC1wYW5lLXdyYXBwZXIge1xuICAgIHdpZHRoOiBtaW4oNjAlLCAxMjgwcHgpO1xuICB9XG59XG4iXX0= */";
|
|
53
|
-
NeetoGithubNanoContainer.n(css,{});
|
|
54
|
-
|
|
55
54
|
var _globalProps$organiza;
|
|
56
55
|
var newInstallationParams = qs__namespace.stringify({
|
|
57
56
|
integrator_id: initializers.globalProps === null || initializers.globalProps === void 0 || (_globalProps$organiza = initializers.globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
@@ -109,7 +108,7 @@ var NeetoGithubNanoPane = function NeetoGithubNanoPane(_ref) {
|
|
|
109
108
|
children: neetoCist.isPresent(title) ? title : t("neetoGithub.modal.title")
|
|
110
109
|
})
|
|
111
110
|
}), /*#__PURE__*/jsxRuntime.jsx(Pane.Body, {
|
|
112
|
-
children: /*#__PURE__*/jsxRuntime.jsx(NeetoGithubNanoContainer
|
|
111
|
+
children: /*#__PURE__*/jsxRuntime.jsx(NeetoGithubNanoContainer, {
|
|
113
112
|
installationUrl: installationUrl,
|
|
114
113
|
isConnected: isConnected,
|
|
115
114
|
isConnecting: isConnecting,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeetoGithubNanoPane.js","sources":["../../app/javascript/src/components/NeetoGithubNanoPane/constants.js","../../app/javascript/src/components/NeetoGithubNanoPane/index.jsx"],"sourcesContent":["import { globalProps } from \"neetocommons/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 { findBy, isPresent, noop } from \"neetocist\";\nimport { Pane, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useFetchGithubRepositories } from \"hooks/reactQuery/useGithubAccountsApi\";\nimport NeetoGithubNanoContainer from \"src/components/NeetoGithubNanoContainer\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/components/pane.css\";\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 <Pane\n {...{ initialFocusRef, isOpen, onClose }}\n className=\"neeto-github-modal-pane-wrapper\"\n size=\"large\"\n >\n <Pane.Header>\n <Typography style=\"h2\">\n {isPresent(title) ? title : t(\"neetoGithub.modal.title\")}\n </Typography>\n </Pane.Header>\n <Pane.Body>\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 </Pane.Body>\n </Pane>\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","Pane","className","size","children","_jsx","Header","Typography","style","isPresent","Body","NeetoGithubNanoContainer","isPane","shouldFetchRepositories"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NeetoGithubNanoPane.js","sources":["../../app/javascript/src/components/NeetoGithubNanoPane/constants.js","../../app/javascript/src/components/NeetoGithubNanoPane/index.jsx"],"sourcesContent":["import { globalProps } from \"neetocommons/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 { findBy, isPresent, noop } from \"neetocist\";\nimport { Pane, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useFetchGithubRepositories } from \"hooks/reactQuery/useGithubAccountsApi\";\nimport NeetoGithubNanoContainer from \"src/components/NeetoGithubNanoContainer\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/components/pane.css\";\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 <Pane\n {...{ initialFocusRef, isOpen, onClose }}\n className=\"neeto-github-modal-pane-wrapper\"\n size=\"large\"\n >\n <Pane.Header>\n <Typography style=\"h2\">\n {isPresent(title) ? title : t(\"neetoGithub.modal.title\")}\n </Typography>\n </Pane.Header>\n <Pane.Body>\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 </Pane.Body>\n </Pane>\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","Pane","className","size","children","_jsx","Header","Typography","style","isPresent","Body","NeetoGithubNanoContainer","isPane","shouldFetchRepositories"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,qBAAqB,GAAGC,aAAE,CAACC,SAAS,CAAC;AACzCC,EAAAA,aAAa,EAAEC,wBAAW,KAAA,IAAA,IAAXA,wBAAW,gBAAAC,qBAAA,GAAXD,wBAAW,CAAEE,YAAY,MAAA,IAAA,IAAAD,qBAAA,KAAA,MAAA,GAAA,MAAA,GAAzBA,qBAAA,CAA2BE,EAAE;AAC5CC,EAAAA,eAAe,EAAE,cAAc;AAC/BC,EAAAA,aAAa,EAAE;AACjB,CAAC,CAAC;AAEK,IAAMC,oBAAoB,GAAA,EAAA,CAAAC,MAAA,CAAMC,iDAA4B,EAAA,yBAAA,CAAA,CAAAD,MAAA,CAA0BX,qBAAqB,CAAE;AAC7G,IAAMa,gBAAgB,GAC3B,gDAAgD;;ACAlD,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAUnB;AAAA,EAAA,IATJC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,OAAO,GAAAF,IAAA,CAAP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