@bigbinary/neeto-github-frontend 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/package.json +53 -51
- package/dist/NeetoGithubNanoContainer.js +0 -25
- package/dist/NeetoGithubNanoContainer.js.map +0 -1
- package/dist/NeetoGithubNanoPane.js +0 -105
- package/dist/NeetoGithubNanoPane.js.map +0 -1
- package/dist/cjs/NeetoGithubNanoContainer.js +0 -31
- package/dist/cjs/NeetoGithubNanoContainer.js.map +0 -1
- package/dist/cjs/NeetoGithubNanoPane.js +0 -126
- package/dist/cjs/NeetoGithubNanoPane.js.map +0 -1
- package/dist/cjs/index.js +0 -35
- package/dist/cjs/index.js.map +0 -1
- package/dist/index-C71Qp9QM.js +0 -483
- package/dist/index-C71Qp9QM.js.map +0 -1
- package/dist/index-DelA1uHU.js +0 -487
- package/dist/index-DelA1uHU.js.map +0 -1
- package/dist/index.js +0 -28
- package/dist/index.js.map +0 -1
package/dist/index-DelA1uHU.js
DELETED
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var classnames = require('classnames');
|
|
4
|
-
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
5
|
-
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
6
|
-
var reactQuery = require('@tanstack/react-query');
|
|
7
|
-
var ramda = require('ramda');
|
|
8
|
-
var axios = require('axios');
|
|
9
|
-
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
10
|
-
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
11
|
-
var Github = require('@bigbinary/neeto-icons/misc/Github');
|
|
12
|
-
var Typography = require('@bigbinary/neetoui/Typography');
|
|
13
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
14
|
-
var Building = require('@bigbinary/neeto-icons/Building');
|
|
15
|
-
var Avatar = require('@bigbinary/neetoui/Avatar');
|
|
16
|
-
var Button = require('@bigbinary/neetoui/Button');
|
|
17
|
-
var Plus = require('@bigbinary/neeto-icons/Plus');
|
|
18
|
-
var Settings = require('@bigbinary/neeto-icons/Settings');
|
|
19
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
20
|
-
var react = require('react');
|
|
21
|
-
var neetoCist = require('@bigbinary/neeto-cist');
|
|
22
|
-
var Search = require('@bigbinary/neeto-molecules/Search');
|
|
23
|
-
var reactI18next = require('react-i18next');
|
|
24
|
-
var Lock = require('@bigbinary/neeto-icons/Lock');
|
|
25
|
-
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
26
|
-
|
|
27
|
-
var _globalProps$organiza;
|
|
28
|
-
var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
|
|
29
|
-
({
|
|
30
|
-
integrator_id: initializers.globalProps === null || initializers.globalProps === void 0 ? void 0 : (_globalProps$organiza = initializers.globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
31
|
-
integrator_type: "Organization"
|
|
32
|
-
});
|
|
33
|
-
var GITHUB_INTEGRATOR_PARAMS = {
|
|
34
|
-
integratorId: initializers.globalProps.organization.id,
|
|
35
|
-
integratorType: "Organization"
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var baseUrl = "".concat(GITHUB_INTEGRATIONS_BASE_API_URL, "/app_installations");
|
|
39
|
-
var githubAppUrl = function githubAppUrl(id) {
|
|
40
|
-
return "".concat(baseUrl, "/").concat(id);
|
|
41
|
-
};
|
|
42
|
-
var repositories = function repositories() {
|
|
43
|
-
return axios.get("".concat(githubAppUrl(initializers.globalProps.githubAppInstallationId), "/repositories"), {
|
|
44
|
-
params: GITHUB_INTEGRATOR_PARAMS
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
var githubAccountsApi = {
|
|
48
|
-
repositories: repositories
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
var QUERY_KEYS = {
|
|
52
|
-
GITHUB_REPOSITORIES_LIST: "github-repositories-list"
|
|
53
|
-
};
|
|
54
|
-
var STALE_TIME_CONFIG = {
|
|
55
|
-
staleTime: constants.DEFAULT_STALE_TIME
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var useFetchGithubRepositories = function useFetchGithubRepositories(_ref) {
|
|
59
|
-
var isConnected = _ref.isConnected;
|
|
60
|
-
return reactQuery.useQuery({
|
|
61
|
-
queryKey: [QUERY_KEYS.GITHUB_REPOSITORIES_LIST],
|
|
62
|
-
queryFn: githubAccountsApi.repositories,
|
|
63
|
-
staleTime: STALE_TIME_CONFIG.staleTime,
|
|
64
|
-
enabled: isConnected && ramda.isNotNil(initializers.globalProps.githubAppInstallationId)
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var Header = reactUtils.withT(function (_ref) {
|
|
69
|
-
var t = _ref.t;
|
|
70
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
71
|
-
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",
|
|
72
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Github, {
|
|
73
|
-
size: 16
|
|
74
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
75
|
-
style: "h4",
|
|
76
|
-
children: t("neetoGithub.github")
|
|
77
|
-
})]
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
var Configure = reactUtils.withT(function (_ref) {
|
|
82
|
-
var t = _ref.t,
|
|
83
|
-
isConnected = _ref.isConnected,
|
|
84
|
-
installationUrl = _ref.installationUrl;
|
|
85
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
86
|
-
className: "neeto-ui-text-gray-900 flex-shrink-0 font-sans text-sm font-normal leading-6 antialiased",
|
|
87
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
88
|
-
href: installationUrl,
|
|
89
|
-
icon: isConnected ? Settings : Plus,
|
|
90
|
-
iconPosition: "left",
|
|
91
|
-
iconSize: 20,
|
|
92
|
-
size: "small",
|
|
93
|
-
style: "link",
|
|
94
|
-
children: isConnected ? t("neetoGithub.configureAccount") : t("neetoGithub.connectAccount")
|
|
95
|
-
})
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
var List$1 = reactUtils.withT(function (_ref) {
|
|
100
|
-
var t = _ref.t,
|
|
101
|
-
accounts = _ref.accounts,
|
|
102
|
-
isConnected = _ref.isConnected,
|
|
103
|
-
installationUrl = _ref.installationUrl,
|
|
104
|
-
isPane = _ref.isPane;
|
|
105
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
106
|
-
className: classnames("neeto-ui-border-gray-300 flex justify-between gap-3 border-b pb-4 pt-2", {
|
|
107
|
-
"flex-col md:flex-row": isPane,
|
|
108
|
-
"flex-col": !isPane
|
|
109
|
-
}),
|
|
110
|
-
children: [accounts.map(function (_ref2) {
|
|
111
|
-
var id = _ref2.id,
|
|
112
|
-
name = _ref2.name,
|
|
113
|
-
avatarUrl = _ref2.avatarUrl,
|
|
114
|
-
type = _ref2.type,
|
|
115
|
-
profileUrl = _ref2.profileUrl,
|
|
116
|
-
count = _ref2.count;
|
|
117
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
118
|
-
className: "flex w-full items-center space-x-2",
|
|
119
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
120
|
-
className: "flex items-center gap-1",
|
|
121
|
-
children: [type === "Organization" ? /*#__PURE__*/jsxRuntime.jsx(Building, {
|
|
122
|
-
className: "neeto-ui-text-gray-600",
|
|
123
|
-
size: 24
|
|
124
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Avatar, {
|
|
125
|
-
size: "small",
|
|
126
|
-
user: {
|
|
127
|
-
imageUrl: avatarUrl
|
|
128
|
-
}
|
|
129
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
130
|
-
className: "neeto-ui-text-gray-800",
|
|
131
|
-
style: "body2",
|
|
132
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
133
|
-
className: "neeto-ui-text-gray-800",
|
|
134
|
-
label: "@".concat(name),
|
|
135
|
-
style: "link",
|
|
136
|
-
onClick: function onClick() {
|
|
137
|
-
return window.open(profileUrl, "_blank");
|
|
138
|
-
}
|
|
139
|
-
})
|
|
140
|
-
})]
|
|
141
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
142
|
-
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
143
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
144
|
-
className: "neeto-ui-text-black",
|
|
145
|
-
style: "body2",
|
|
146
|
-
children: t("neetoGithub.countOf.repos", {
|
|
147
|
-
count: count
|
|
148
|
-
})
|
|
149
|
-
})]
|
|
150
|
-
}, id);
|
|
151
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Configure, {
|
|
152
|
-
installationUrl: installationUrl,
|
|
153
|
-
isConnected: isConnected
|
|
154
|
-
})]
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
var Accounts = function Accounts(_ref) {
|
|
159
|
-
var isPane = _ref.isPane,
|
|
160
|
-
accounts = _ref.accounts,
|
|
161
|
-
isConnected = _ref.isConnected,
|
|
162
|
-
onConnect = _ref.onConnect,
|
|
163
|
-
installationUrl = _ref.installationUrl;
|
|
164
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
165
|
-
className: classnames("flex w-full flex-col border border-solid border-transparent px-0 py-2", {
|
|
166
|
-
"order-1": isPane,
|
|
167
|
-
"md:order-2 md:max-w-72 lg:max-w-sm lg:px-6": !isPane
|
|
168
|
-
}),
|
|
169
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
170
|
-
className: "mb-2",
|
|
171
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Header, {}), /*#__PURE__*/jsxRuntime.jsx(List$1, {
|
|
172
|
-
accounts: accounts,
|
|
173
|
-
installationUrl: installationUrl,
|
|
174
|
-
isConnected: isConnected,
|
|
175
|
-
isPane: isPane,
|
|
176
|
-
onConnect: onConnect
|
|
177
|
-
})]
|
|
178
|
-
})
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
var NoRepositories = reactUtils.withT(function (_ref) {
|
|
183
|
-
var t = _ref.t,
|
|
184
|
-
installationUrl = _ref.installationUrl,
|
|
185
|
-
troubleshootUrl = _ref.troubleshootUrl;
|
|
186
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
187
|
-
className: "flex items-center justify-center py-6",
|
|
188
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
189
|
-
className: "mx-auto flex w-full max-w-sm flex-col items-center justify-center space-y-4 py-4 text-center",
|
|
190
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
191
|
-
style: "body2",
|
|
192
|
-
children: t("neetoGithub.noReposDescription")
|
|
193
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
194
|
-
href: installationUrl,
|
|
195
|
-
icon: Github,
|
|
196
|
-
iconPosition: "left",
|
|
197
|
-
label: t("neetoGithub.connectRepository"),
|
|
198
|
-
size: "medium",
|
|
199
|
-
style: "primary"
|
|
200
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
201
|
-
className: "text-xs",
|
|
202
|
-
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
203
|
-
i18nKey: t("neetoGithub.troubleshoot"),
|
|
204
|
-
components: {
|
|
205
|
-
troubleshootLink: /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
206
|
-
className: "text-indigo-600 underline",
|
|
207
|
-
href: troubleshootUrl,
|
|
208
|
-
rel: "noopener noreferrer",
|
|
209
|
-
target: "_blank"
|
|
210
|
-
})
|
|
211
|
-
}
|
|
212
|
-
})
|
|
213
|
-
})]
|
|
214
|
-
})
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===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}}
|
|
219
|
-
|
|
220
|
-
var css = ".width-calc{width:100%}@media (min-width:768px){.width-calc{width:calc(100% - 82px)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvcmVwb3NpdG9yeS10aWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsWUFDRSxVQUNGLENBQ0UseUJBSEYsWUFJSSx1QkFFRixDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiLndpZHRoLWNhbGMge1xuICB3aWR0aDogMTAwJTtcblxuICBAc2NyZWVuIG1kIHtcbiAgICB3aWR0aDogY2FsYygxMDAlIC0gODJweCk7XG4gIH1cbn1cbiJdfQ== */";
|
|
221
|
-
n(css,{});
|
|
222
|
-
|
|
223
|
-
var RepositoryTile = function RepositoryTile(_ref) {
|
|
224
|
-
var isConnecting = _ref.isConnecting,
|
|
225
|
-
onConnect = _ref.onConnect,
|
|
226
|
-
repository = _ref.repository;
|
|
227
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
228
|
-
t = _useTranslation.t;
|
|
229
|
-
var _useState = react.useState(false),
|
|
230
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
231
|
-
isLoading = _useState2[0],
|
|
232
|
-
setIsLoading = _useState2[1];
|
|
233
|
-
var id = repository.id,
|
|
234
|
-
fullName = repository.fullName,
|
|
235
|
-
isPrivate = repository.isPrivate,
|
|
236
|
-
updatedAt = repository.updatedAt;
|
|
237
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
238
|
-
className: "neeto-ui-border-gray-300 flex flex-col justify-between gap-3 border-b border-solid py-3 pl-3 pr-3 last:border-b-0 md:flex-row md:items-center md:pl-5",
|
|
239
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
240
|
-
className: "width-calc flex items-center space-x-2",
|
|
241
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Github, {
|
|
242
|
-
className: "flex-shrink-0",
|
|
243
|
-
size: 16
|
|
244
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
245
|
-
style: "body2",
|
|
246
|
-
children: fullName
|
|
247
|
-
}), isPrivate && /*#__PURE__*/jsxRuntime.jsx(Lock, {
|
|
248
|
-
className: "flex-shrink-0",
|
|
249
|
-
size: 16
|
|
250
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
251
|
-
className: "hidden lg:inline-block",
|
|
252
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
253
|
-
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
254
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DateFormat.FromNow, {
|
|
255
|
-
date: updatedAt
|
|
256
|
-
})]
|
|
257
|
-
})]
|
|
258
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
259
|
-
className: "w-max",
|
|
260
|
-
disabled: isConnecting,
|
|
261
|
-
loading: isLoading,
|
|
262
|
-
style: "primary",
|
|
263
|
-
type: "button",
|
|
264
|
-
onClick: function onClick() {
|
|
265
|
-
return onConnect({
|
|
266
|
-
repoType: "private",
|
|
267
|
-
repository: repository,
|
|
268
|
-
setIsLoading: setIsLoading
|
|
269
|
-
});
|
|
270
|
-
},
|
|
271
|
-
children: t("neetoGithub.connect")
|
|
272
|
-
})]
|
|
273
|
-
}, id);
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
var List = reactUtils.withT(function (_ref) {
|
|
277
|
-
var t = _ref.t,
|
|
278
|
-
filteredRepositories = _ref.filteredRepositories,
|
|
279
|
-
repositories = _ref.repositories,
|
|
280
|
-
isConnecting = _ref.isConnecting,
|
|
281
|
-
onConnect = _ref.onConnect,
|
|
282
|
-
installationUrl = _ref.installationUrl,
|
|
283
|
-
troubleshootUrl = _ref.troubleshootUrl;
|
|
284
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
285
|
-
className: "h-full overflow-y-scroll px-4 pb-4 md:px-6 md:pb-6",
|
|
286
|
-
children: neetoCist.isPresent(repositories) ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
287
|
-
className: classnames("neeto-ui-border-gray-300 neeto-ui-rounded-md flex flex-col items-center justify-center border", {
|
|
288
|
-
"h-auto": neetoCist.isPresent(filteredRepositories),
|
|
289
|
-
"h-full": !neetoCist.isPresent(filteredRepositories)
|
|
290
|
-
}),
|
|
291
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
292
|
-
className: "m-0 h-full w-full p-0",
|
|
293
|
-
children: neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository, index) {
|
|
294
|
-
return /*#__PURE__*/react.createElement(RepositoryTile, {
|
|
295
|
-
isConnecting: isConnecting,
|
|
296
|
-
onConnect: onConnect,
|
|
297
|
-
repository: repository,
|
|
298
|
-
key: index
|
|
299
|
-
});
|
|
300
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
301
|
-
className: "flex h-full w-full items-center justify-center",
|
|
302
|
-
style: "body2",
|
|
303
|
-
children: t("neetoGithub.noRepos")
|
|
304
|
-
})
|
|
305
|
-
})
|
|
306
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(NoRepositories, {
|
|
307
|
-
installationUrl: installationUrl,
|
|
308
|
-
troubleshootUrl: troubleshootUrl
|
|
309
|
-
})
|
|
310
|
-
});
|
|
311
|
-
});
|
|
312
|
-
|
|
313
|
-
var NotConnected = reactUtils.withT(function (_ref) {
|
|
314
|
-
var t = _ref.t,
|
|
315
|
-
installationUrl = _ref.installationUrl;
|
|
316
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
317
|
-
className: "flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center",
|
|
318
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
319
|
-
style: "body2",
|
|
320
|
-
children: t("neetoGithub.notConnectedDescription", {
|
|
321
|
-
appName: initializers.globalProps.appName
|
|
322
|
-
})
|
|
323
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
324
|
-
href: installationUrl,
|
|
325
|
-
icon: Github,
|
|
326
|
-
iconPosition: "left",
|
|
327
|
-
label: t("neetoGithub.connectGithub"),
|
|
328
|
-
size: "medium",
|
|
329
|
-
style: "primary"
|
|
330
|
-
})]
|
|
331
|
-
});
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
var Private = function Private(_ref) {
|
|
335
|
-
var isConnected = _ref.isConnected,
|
|
336
|
-
isConnecting = _ref.isConnecting,
|
|
337
|
-
repositories = _ref.repositories,
|
|
338
|
-
onConnect = _ref.onConnect,
|
|
339
|
-
installationUrl = _ref.installationUrl,
|
|
340
|
-
troubleshootUrl = _ref.troubleshootUrl;
|
|
341
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
342
|
-
t = _useTranslation.t;
|
|
343
|
-
var _useState = react.useState(repositories),
|
|
344
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
345
|
-
filteredRepositories = _useState2[0],
|
|
346
|
-
setFilteredRepositories = _useState2[1];
|
|
347
|
-
var onSearch = function onSearch(searchTerm) {
|
|
348
|
-
if (!neetoCist.isPresent(searchTerm)) {
|
|
349
|
-
setFilteredRepositories(repositories);
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
var filteredRepositories = repositories.filter(function (_ref2) {
|
|
353
|
-
var fullName = _ref2.fullName;
|
|
354
|
-
return fullName.toLowerCase().includes(searchTerm.toLowerCase());
|
|
355
|
-
});
|
|
356
|
-
setFilteredRepositories(filteredRepositories);
|
|
357
|
-
};
|
|
358
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
359
|
-
className: "connect-repo flex h-full flex-col",
|
|
360
|
-
children: isConnected ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
361
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
362
|
-
className: "space-y-3 p-4 md:p-6",
|
|
363
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
364
|
-
className: "flex-shrink-0 text-lg font-medium",
|
|
365
|
-
style: "h2",
|
|
366
|
-
children: t("neetoGithub.connectARepo")
|
|
367
|
-
}), neetoCist.isPresent(repositories) && /*#__PURE__*/jsxRuntime.jsx(Search, {
|
|
368
|
-
onSearch: onSearch,
|
|
369
|
-
className: "w-full",
|
|
370
|
-
unlimitedChars: false,
|
|
371
|
-
suffix: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
372
|
-
style: "body2",
|
|
373
|
-
children: t("neetoGithub.countOf.repos", {
|
|
374
|
-
count: filteredRepositories.length
|
|
375
|
-
})
|
|
376
|
-
})
|
|
377
|
-
})]
|
|
378
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
379
|
-
className: "flex min-h-0 w-full flex-grow flex-col space-y-6",
|
|
380
|
-
children: /*#__PURE__*/jsxRuntime.jsx(List, {
|
|
381
|
-
filteredRepositories: filteredRepositories,
|
|
382
|
-
installationUrl: installationUrl,
|
|
383
|
-
isConnecting: isConnecting,
|
|
384
|
-
onConnect: onConnect,
|
|
385
|
-
repositories: repositories,
|
|
386
|
-
troubleshootUrl: troubleshootUrl
|
|
387
|
-
})
|
|
388
|
-
})]
|
|
389
|
-
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
390
|
-
className: "neeto-ui-text-gray-900 flex-grow font-sans text-sm font-normal leading-6 antialiased",
|
|
391
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
392
|
-
className: "flex h-full flex-col items-center justify-center p-4",
|
|
393
|
-
children: /*#__PURE__*/jsxRuntime.jsx(NotConnected, {
|
|
394
|
-
installationUrl: installationUrl
|
|
395
|
-
})
|
|
396
|
-
})
|
|
397
|
-
})
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
var Repositories = function Repositories(_ref) {
|
|
402
|
-
var isConnected = _ref.isConnected,
|
|
403
|
-
isConnecting = _ref.isConnecting,
|
|
404
|
-
repositories = _ref.repositories,
|
|
405
|
-
onConnect = _ref.onConnect,
|
|
406
|
-
installationUrl = _ref.installationUrl,
|
|
407
|
-
troubleshootUrl = _ref.troubleshootUrl,
|
|
408
|
-
isPane = _ref.isPane;
|
|
409
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
410
|
-
className: classnames("neeto-ui-rounded-md neeto-ui-border-gray-300 h-full w-full space-y-6 border border-solid", {
|
|
411
|
-
"order-2": isPane,
|
|
412
|
-
"order-1": !isPane
|
|
413
|
-
}),
|
|
414
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Private, {
|
|
415
|
-
installationUrl: installationUrl,
|
|
416
|
-
isConnected: isConnected,
|
|
417
|
-
isConnecting: isConnecting,
|
|
418
|
-
onConnect: onConnect,
|
|
419
|
-
repositories: repositories,
|
|
420
|
-
troubleshootUrl: troubleshootUrl
|
|
421
|
-
})
|
|
422
|
-
});
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
426
|
-
var _ref$isPaneLoading = _ref.isPaneLoading,
|
|
427
|
-
isPaneLoading = _ref$isPaneLoading === void 0 ? false : _ref$isPaneLoading,
|
|
428
|
-
_ref$shouldFetchRepos = _ref.shouldFetchRepositories,
|
|
429
|
-
shouldFetchRepositories = _ref$shouldFetchRepos === void 0 ? true : _ref$shouldFetchRepos,
|
|
430
|
-
_ref$paneAccounts = _ref.paneAccounts,
|
|
431
|
-
paneAccounts = _ref$paneAccounts === void 0 ? [] : _ref$paneAccounts,
|
|
432
|
-
installationUrl = _ref.installationUrl,
|
|
433
|
-
isConnected = _ref.isConnected,
|
|
434
|
-
_ref$isConnecting = _ref.isConnecting,
|
|
435
|
-
isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
|
|
436
|
-
onConnect = _ref.onConnect,
|
|
437
|
-
_ref$paneRepositories = _ref.paneRepositories,
|
|
438
|
-
paneRepositories = _ref$paneRepositories === void 0 ? [] : _ref$paneRepositories,
|
|
439
|
-
troubleshootUrl = _ref.troubleshootUrl,
|
|
440
|
-
_ref$isPane = _ref.isPane,
|
|
441
|
-
isPane = _ref$isPane === void 0 ? false : _ref$isPane;
|
|
442
|
-
var _useFetchGithubReposi = useFetchGithubRepositories({
|
|
443
|
-
isConnected: shouldFetchRepositories && initializers.globalProps.isGithubIntegrated
|
|
444
|
-
}),
|
|
445
|
-
_useFetchGithubReposi2 = _useFetchGithubReposi.data,
|
|
446
|
-
_useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
|
|
447
|
-
_useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
|
|
448
|
-
containerRepositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
|
|
449
|
-
_useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
|
|
450
|
-
containerAccounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
|
|
451
|
-
isContainerLoading = _useFetchGithubReposi.isLoading;
|
|
452
|
-
var repositories = shouldFetchRepositories ? containerRepositories : paneRepositories;
|
|
453
|
-
var accounts = shouldFetchRepositories ? containerAccounts : paneAccounts;
|
|
454
|
-
var isLoading = shouldFetchRepositories ? isContainerLoading : isPaneLoading;
|
|
455
|
-
if (isLoading) {
|
|
456
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
457
|
-
className: "flex h-full w-full items-center justify-center",
|
|
458
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
462
|
-
className: classnames("flex min-h-0 w-full flex-grow flex-col", {
|
|
463
|
-
"flex-col": isPane,
|
|
464
|
-
"gap-3 md:flex-row md:gap-6": !isPane
|
|
465
|
-
}),
|
|
466
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Accounts, {
|
|
467
|
-
accounts: accounts,
|
|
468
|
-
installationUrl: installationUrl,
|
|
469
|
-
isConnected: isConnected,
|
|
470
|
-
isPane: isPane,
|
|
471
|
-
onConnect: onConnect
|
|
472
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Repositories, {
|
|
473
|
-
installationUrl: installationUrl,
|
|
474
|
-
isConnected: isConnected,
|
|
475
|
-
isConnecting: isConnecting,
|
|
476
|
-
isPane: isPane,
|
|
477
|
-
onConnect: onConnect,
|
|
478
|
-
repositories: repositories,
|
|
479
|
-
troubleshootUrl: troubleshootUrl
|
|
480
|
-
})]
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
exports.NeetoGithubNanoContainer = NeetoGithubNanoContainer;
|
|
485
|
-
exports.n = n;
|
|
486
|
-
exports.useFetchGithubRepositories = useFetchGithubRepositories;
|
|
487
|
-
//# sourceMappingURL=index-DelA1uHU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DelA1uHU.js","sources":["../app/javascript/src/constants/index.js","../app/javascript/src/apis/github_accounts.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/reactQuery/useGithubAccountsApi.js","../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","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../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 { globalProps } from \"neetocommons/initializers\";\n\nexport const GITHUB_INTEGRATIONS_BASE_API_URL = \"/github_integrations\";\n\nexport const GITHUB_INTEGRATIONS_COMMON_PARAMS = {\n integrator_id: globalProps?.organization?.id,\n integrator_type: \"Organization\",\n};\n\nexport const GITHUB_INTEGRATOR_PARAMS = {\n integratorId: globalProps.organization.id,\n integratorType: \"Organization\",\n};\n\nexport const JOBS_PER_PAGE = 6;\n\nexport const PROJECTS_PER_PAGE = 10;\n","import axios from \"axios\";\nimport { globalProps } from \"neetocommons/initializers\";\n\nimport {\n GITHUB_INTEGRATIONS_BASE_API_URL,\n GITHUB_INTEGRATOR_PARAMS,\n} from \"src/constants\";\n\nconst baseUrl = `${GITHUB_INTEGRATIONS_BASE_API_URL}/app_installations`;\n\nconst githubAppUrl = id => `${baseUrl}/${id}`;\n\nconst repositories = () =>\n axios.get(\n `${githubAppUrl(globalProps.githubAppInstallationId)}/repositories`,\n { params: GITHUB_INTEGRATOR_PARAMS }\n );\n\nconst githubAccountsApi = { repositories };\n\nexport default githubAccountsApi;\n","import { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\n\nexport const QUERY_KEYS = {\n GITHUB_REPOSITORIES_LIST: \"github-repositories-list\",\n};\n\nexport const STALE_TIME_CONFIG = { staleTime: DEFAULT_STALE_TIME };\n","import { useQuery } from \"@tanstack/react-query\";\nimport { globalProps } from \"neetocommons/initializers\";\nimport { isNotNil } from \"ramda\";\n\nimport githubAccountsApi from \"apis/github_accounts\";\nimport { QUERY_KEYS, STALE_TIME_CONFIG } from \"src/constants/query\";\n\nexport const useFetchGithubRepositories = ({ isConnected }) =>\n useQuery({\n queryKey: [QUERY_KEYS.GITHUB_REPOSITORIES_LIST],\n queryFn: githubAccountsApi.repositories,\n staleTime: STALE_TIME_CONFIG.staleTime,\n enabled: isConnected && isNotNil(globalProps.githubAppInstallationId),\n });\n","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 size={16} />\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 flex-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","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===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}}export{n as default};\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.scss\";\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=\"neeto-ui-border-gray-300 flex flex-col justify-between gap-3 border-b border-solid py-3 pl-3 pr-3 last:border-b-0 md:flex-row md:items-center md:pl-5\"\n key={id}\n >\n <div className=\"width-calc flex items-center space-x-2\">\n <Github className=\"flex-shrink-0\" size={16} />\n <Typography style=\"body2\">{fullName}</Typography>\n {isPrivate && <Lock className=\"flex-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 { globalProps } from \"neetocommons/initializers\";\nimport { withT } from \"neetocommons/react-utils\";\nimport { Github } from \"neetoicons/misc\";\nimport { Button, Typography } from \"neetoui\";\n\nconst NotConnected = withT(({ t, installationUrl }) => (\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 href={installationUrl}\n icon={Github}\n iconPosition=\"left\"\n label={t(\"neetoGithub.connectGithub\")}\n size=\"medium\"\n style=\"primary\"\n />\n </div>\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\n className=\"flex-shrink-0 text-lg font-medium\"\n style=\"h2\"\n >\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 flex-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 flex-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 flex-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":["GITHUB_INTEGRATIONS_BASE_API_URL","integrator_id","globalProps","_globalProps$organiza","organization","id","integrator_type","GITHUB_INTEGRATOR_PARAMS","integratorId","integratorType","baseUrl","concat","githubAppUrl","repositories","axios","get","githubAppInstallationId","params","githubAccountsApi","QUERY_KEYS","GITHUB_REPOSITORIES_LIST","STALE_TIME_CONFIG","staleTime","DEFAULT_STALE_TIME","useFetchGithubRepositories","_ref","isConnected","useQuery","queryKey","queryFn","enabled","isNotNil","Header","withT","t","_jsxs","className","children","_jsx","Github","size","Typography","style","Configure","installationUrl","Button","href","icon","Settings","Plus","iconPosition","iconSize","List","accounts","isPane","classnames","map","_ref2","name","avatarUrl","type","profileUrl","count","Building","Avatar","user","imageUrl","label","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","isPresent","classNames","index","_createElement","key","NotConnected","appName","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","isGithubIntegrated","_useFetchGithubReposi2","data","_useFetchGithubReposi3","_useFetchGithubReposi4","containerRepositories","_useFetchGithubReposi5","containerAccounts","isContainerLoading","Spinner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,IAAMA,gCAAgC,GAAG,sBAAsB,CAAA;CAErB;AAC/CC,EAAAA,aAAa,EAAEC,wBAAW,KAAXA,IAAAA,IAAAA,wBAAW,wBAAAC,qBAAA,GAAXD,wBAAW,CAAEE,YAAY,MAAAD,IAAAA,IAAAA,qBAAA,KAAzBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAA,CAA2BE,EAAE;AAC5CC,EAAAA,eAAe,EAAE,cAAA;AACnB,GAAC;AAEM,IAAMC,wBAAwB,GAAG;AACtCC,EAAAA,YAAY,EAAEN,wBAAW,CAACE,YAAY,CAACC,EAAE;AACzCI,EAAAA,cAAc,EAAE,cAAA;AAClB,CAAC;;ACJD,IAAMC,OAAO,GAAA,EAAA,CAAAC,MAAA,CAAMX,gCAAgC,EAAoB,oBAAA,CAAA,CAAA;AAEvE,IAAMY,YAAY,GAAG,SAAfA,YAAYA,CAAGP,EAAE,EAAA;AAAA,EAAA,OAAA,EAAA,CAAAM,MAAA,CAAOD,OAAO,EAAAC,GAAAA,CAAAA,CAAAA,MAAA,CAAIN,EAAE,CAAA,CAAA;AAAA,CAAE,CAAA;AAE7C,IAAMQ,YAAY,GAAG,SAAfA,YAAYA,GAAA;AAAA,EAAA,OAChBC,KAAK,CAACC,GAAG,CAAA,EAAA,CAAAJ,MAAA,CACJC,YAAY,CAACV,wBAAW,CAACc,uBAAuB,CAAC,EACpD,eAAA,CAAA,EAAA;AAAEC,IAAAA,MAAM,EAAEV,wBAAAA;AAAyB,GACrC,CAAC,CAAA;AAAA,CAAA,CAAA;AAEH,IAAMW,iBAAiB,GAAG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,eAAe,EAAfA,eAAe;AACflB,MAAAA,WAAW,EAAXA,WAAW;AACXwD,MAAAA,YAAY,EAAZA,YAAY;AACZ5B,MAAAA,MAAM,EAANA,MAAM;AACNkB,MAAAA,SAAS,EAATA,SAAS;AACT3D,MAAAA,YAAY,EAAZA,YAAY;AACZ6D,MAAAA,eAAe,EAAfA,eAAAA;AAAe,KAElB,CAAC,CAAA;AAAA,GACC,CAAC,CAAA;AAEV;;;;;;","x_google_ignoreList":[9]}
|
package/dist/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { N as NeetoGithubNanoContainer } from './index-C71Qp9QM.js';
|
|
2
|
-
export { default as NeetoGithubNanoPane } from './NeetoGithubNanoPane.js';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
5
|
-
import '@bigbinary/neetoui/Spinner';
|
|
6
|
-
import '@tanstack/react-query';
|
|
7
|
-
import 'ramda';
|
|
8
|
-
import 'axios';
|
|
9
|
-
import '@bigbinary/neeto-commons-frontend/constants';
|
|
10
|
-
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
11
|
-
import '@bigbinary/neeto-icons/misc/Github';
|
|
12
|
-
import '@bigbinary/neetoui/Typography';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
|
-
import '@bigbinary/neeto-icons/Building';
|
|
15
|
-
import '@bigbinary/neetoui/Avatar';
|
|
16
|
-
import '@bigbinary/neetoui/Button';
|
|
17
|
-
import '@bigbinary/neeto-icons/Plus';
|
|
18
|
-
import '@bigbinary/neeto-icons/Settings';
|
|
19
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
20
|
-
import 'react';
|
|
21
|
-
import '@bigbinary/neeto-cist';
|
|
22
|
-
import '@bigbinary/neeto-molecules/Search';
|
|
23
|
-
import 'react-i18next';
|
|
24
|
-
import '@bigbinary/neeto-icons/Lock';
|
|
25
|
-
import '@bigbinary/neeto-molecules/DateFormat';
|
|
26
|
-
import '@bigbinary/neetoui/Pane';
|
|
27
|
-
import 'qs';
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|