@bigbinary/neeto-github-frontend 2.2.5 → 2.2.6
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/README.md +2 -0
- package/app/javascript/src/translations/en.json +13 -1
- package/dist/NeetoGithubIntegrationsTable.js +152 -0
- package/dist/NeetoGithubIntegrationsTable.js.map +1 -0
- package/dist/NeetoGithubNanoContainer.js +5 -2
- package/dist/NeetoGithubNanoContainer.js.map +1 -1
- package/dist/NeetoGithubNanoPane.js +7 -4
- package/dist/NeetoGithubNanoPane.js.map +1 -1
- package/dist/cjs/NeetoGithubIntegrationsTable.js +154 -0
- package/dist/cjs/NeetoGithubIntegrationsTable.js.map +1 -0
- package/dist/cjs/NeetoGithubNanoContainer.js +5 -2
- package/dist/cjs/NeetoGithubNanoContainer.js.map +1 -1
- package/dist/cjs/NeetoGithubNanoPane.js +8 -5
- package/dist/cjs/NeetoGithubNanoPane.js.map +1 -1
- package/dist/cjs/index.js +25 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/{index-CDx8nNam.js → index-CF2CmTxA.js} +3 -47
- package/dist/index-CF2CmTxA.js.map +1 -0
- package/dist/{index-CWvGtXnf.js → index-TIidDz1A.js} +3 -48
- package/dist/index-TIidDz1A.js.map +1 -0
- package/dist/index.js +24 -11
- package/dist/index.js.map +1 -1
- package/dist/useGithubAccountsApi-C9W-L_-C.js +91 -0
- package/dist/useGithubAccountsApi-C9W-L_-C.js.map +1 -0
- package/dist/useGithubAccountsApi-kFn8BvEJ.js +87 -0
- package/dist/useGithubAccountsApi-kFn8BvEJ.js.map +1 -0
- package/package.json +18 -18
- package/types.d.ts +2 -0
- package/dist/index-CDx8nNam.js.map +0 -1
- package/dist/index-CWvGtXnf.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,28 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var NeetoGithubIntegrationsTable = require('./NeetoGithubIntegrationsTable.js');
|
|
4
|
+
var NeetoGithubNanoContainer = require('../index-TIidDz1A.js');
|
|
4
5
|
var NeetoGithubNanoPane = require('./NeetoGithubNanoPane.js');
|
|
5
|
-
require('
|
|
6
|
-
require('@bigbinary/neeto-
|
|
7
|
-
require('@bigbinary/
|
|
6
|
+
require('@bigbinary/neeto-molecules/Container');
|
|
7
|
+
require('@bigbinary/neeto-molecules/Header');
|
|
8
|
+
require('@bigbinary/neeto-molecules/PageLoader');
|
|
9
|
+
require('@bigbinary/neetoui/Button');
|
|
10
|
+
require('react-i18next');
|
|
11
|
+
require('../useGithubAccountsApi-C9W-L_-C.js');
|
|
12
|
+
require('@babel/runtime/helpers/toConsumableArray');
|
|
13
|
+
require('@babel/runtime/helpers/defineProperty');
|
|
8
14
|
require('@tanstack/react-query');
|
|
15
|
+
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
16
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
9
17
|
require('ramda');
|
|
10
18
|
require('axios');
|
|
11
19
|
require('@bigbinary/neeto-commons-frontend/constants');
|
|
12
|
-
require('@
|
|
13
|
-
require('
|
|
20
|
+
require('@babel/runtime/helpers/slicedToArray');
|
|
21
|
+
require('react');
|
|
22
|
+
require('@bigbinary/neeto-cist');
|
|
23
|
+
require('@bigbinary/neetoui/Table');
|
|
24
|
+
require('@bigbinary/neetoui/NoData');
|
|
25
|
+
require('@bigbinary/neetoui/Alert');
|
|
26
|
+
require('i18next');
|
|
27
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
28
|
+
require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
14
29
|
require('@bigbinary/neetoui/Typography');
|
|
15
30
|
require('react/jsx-runtime');
|
|
31
|
+
require('classnames');
|
|
32
|
+
require('@bigbinary/neetoui/Spinner');
|
|
33
|
+
require('@bigbinary/neeto-icons/misc/Github');
|
|
16
34
|
require('@bigbinary/neeto-icons/Building');
|
|
17
35
|
require('@bigbinary/neetoui/Avatar');
|
|
18
|
-
require('@bigbinary/neetoui/Button');
|
|
19
36
|
require('@bigbinary/neeto-icons/Plus');
|
|
20
37
|
require('@bigbinary/neeto-icons/Settings');
|
|
21
|
-
require('@babel/runtime/helpers/slicedToArray');
|
|
22
|
-
require('react');
|
|
23
|
-
require('@bigbinary/neeto-cist');
|
|
24
38
|
require('@bigbinary/neeto-molecules/Search');
|
|
25
|
-
require('react-i18next');
|
|
26
39
|
require('@bigbinary/neeto-icons/Lock');
|
|
27
40
|
require('@bigbinary/neeto-molecules/DateFormat');
|
|
28
41
|
require('@bigbinary/neetoui/Pane');
|
|
@@ -30,6 +43,7 @@ require('qs');
|
|
|
30
43
|
|
|
31
44
|
|
|
32
45
|
|
|
46
|
+
exports.NeetoGithubIntegrationsTable = NeetoGithubIntegrationsTable;
|
|
33
47
|
exports.NeetoGithubNanoContainer = NeetoGithubNanoContainer.NeetoGithubNanoContainer;
|
|
34
48
|
exports.NeetoGithubNanoPane = NeetoGithubNanoPane;
|
|
35
49
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import classnames from 'classnames';
|
|
2
2
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
3
3
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
4
|
-
import {
|
|
5
|
-
import { isNotNil } from 'ramda';
|
|
6
|
-
import axios from 'axios';
|
|
7
|
-
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
4
|
+
import { u as useFetchGithubRepositories } from './useGithubAccountsApi-kFn8BvEJ.js';
|
|
8
5
|
import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
9
6
|
import Github from '@bigbinary/neeto-icons/misc/Github';
|
|
10
7
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
@@ -22,47 +19,6 @@ import { Trans, useTranslation } from 'react-i18next';
|
|
|
22
19
|
import Lock from '@bigbinary/neeto-icons/Lock';
|
|
23
20
|
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
24
21
|
|
|
25
|
-
var _globalProps$organiza;
|
|
26
|
-
var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
|
|
27
|
-
({
|
|
28
|
-
integrator_id: globalProps === null || globalProps === void 0 || (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
29
|
-
integrator_type: "Organization"
|
|
30
|
-
});
|
|
31
|
-
var GITHUB_INTEGRATOR_PARAMS = {
|
|
32
|
-
integratorId: globalProps.organization.id,
|
|
33
|
-
integratorType: "Organization"
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var baseUrl = "".concat(GITHUB_INTEGRATIONS_BASE_API_URL, "/app_installations");
|
|
37
|
-
var githubAppUrl = function githubAppUrl(id) {
|
|
38
|
-
return "".concat(baseUrl, "/").concat(id);
|
|
39
|
-
};
|
|
40
|
-
var repositories = function repositories() {
|
|
41
|
-
return axios.get("".concat(githubAppUrl(globalProps.githubAppInstallationId), "/repositories"), {
|
|
42
|
-
params: GITHUB_INTEGRATOR_PARAMS
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var githubAccountsApi = {
|
|
46
|
-
repositories: repositories
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
var QUERY_KEYS = {
|
|
50
|
-
GITHUB_REPOSITORIES_LIST: "github-repositories-list"
|
|
51
|
-
};
|
|
52
|
-
var STALE_TIME_CONFIG = {
|
|
53
|
-
staleTime: DEFAULT_STALE_TIME
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var useFetchGithubRepositories = function useFetchGithubRepositories(_ref) {
|
|
57
|
-
var isConnected = _ref.isConnected;
|
|
58
|
-
return useQuery({
|
|
59
|
-
queryKey: [QUERY_KEYS.GITHUB_REPOSITORIES_LIST],
|
|
60
|
-
queryFn: githubAccountsApi.repositories,
|
|
61
|
-
staleTime: STALE_TIME_CONFIG.staleTime,
|
|
62
|
-
enabled: isConnected && isNotNil(globalProps.githubAppInstallationId)
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
|
|
66
22
|
var Header = withT(function (_ref) {
|
|
67
23
|
var t = _ref.t;
|
|
68
24
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -479,5 +435,5 @@ var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
|
479
435
|
});
|
|
480
436
|
};
|
|
481
437
|
|
|
482
|
-
export { NeetoGithubNanoContainer as N, n
|
|
483
|
-
//# sourceMappingURL=index-
|
|
438
|
+
export { NeetoGithubNanoContainer as N, n };
|
|
439
|
+
//# sourceMappingURL=index-CF2CmTxA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CF2CmTxA.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","../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 { 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":["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","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":";;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAGC,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;AAAA,EAAA,oBACvBC,IAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6HAA6H;IAAAC,QAAA,EAAA,cAC1IC,GAAA,CAACC,MAAM,EAAA;AAACC,MAAAA,IAAI,EAAE;AAAG,KAAE,CAAC,eACpBF,GAAA,CAACG,UAAU,EAAA;AAACC,MAAAA,KAAK,EAAC,IAAI;MAAAL,QAAA,EAAEH,CAAC,CAAC,oBAAoB;AAAC,KAAa,CAAC;AAAA,GAC1D,CAAC;AAAA,CACP,CAAC;;ACLF,IAAMS,SAAS,GAAGX,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEU,WAAW,GAAAX,IAAA,CAAXW,WAAW;IAAEC,eAAe,GAAAZ,IAAA,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,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAEwE,UAAU,CAAC,wCAAwC,EAAE;AAC9D,MAAA,UAAU,EAAErD,MAAM;AAClB,MAAA,4BAA4B,EAAE,CAACA;AACjC,KAAC,CAAE;IAAAlB,QAAA,EAAA,cAEHC,GAAA,CAACoC,QAAQ,EAAA;AACDpB,MAAAA,QAAQ,EAARA,QAAQ;AAAET,MAAAA,eAAe,EAAfA,eAAe;AAAED,MAAAA,WAAW,EAAXA,WAAW;AAAEW,MAAAA,MAAM,EAANA,MAAM;AAAEoB,MAAAA,SAAS,EAATA;AAAS,KAChE,CAAC,eACFrC,GAAA,CAACyF,YAAY,EAAA;AAETlF,MAAAA,eAAe,EAAfA,eAAe;AACfD,MAAAA,WAAW,EAAXA,WAAW;AACXyC,MAAAA,YAAY,EAAZA,YAAY;AACZ9B,MAAAA,MAAM,EAANA,MAAM;AACNoB,MAAAA,SAAS,EAATA,SAAS;AACT+B,MAAAA,YAAY,EAAZA,YAAY;AACZ7B,MAAAA,eAAe,EAAfA;AAAe,KAElB,CAAC;AAAA,GACC,CAAC;AAEV;;;;","x_google_ignoreList":[5]}
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
var classnames = require('classnames');
|
|
4
4
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
5
5
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
6
|
-
var
|
|
7
|
-
var ramda = require('ramda');
|
|
8
|
-
var axios = require('axios');
|
|
9
|
-
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
6
|
+
var useGithubAccountsApi = require('./useGithubAccountsApi-C9W-L_-C.js');
|
|
10
7
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
11
8
|
var Github = require('@bigbinary/neeto-icons/misc/Github');
|
|
12
9
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
@@ -24,47 +21,6 @@ var reactI18next = require('react-i18next');
|
|
|
24
21
|
var Lock = require('@bigbinary/neeto-icons/Lock');
|
|
25
22
|
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
26
23
|
|
|
27
|
-
var _globalProps$organiza;
|
|
28
|
-
var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
|
|
29
|
-
({
|
|
30
|
-
integrator_id: initializers.globalProps === null || initializers.globalProps === 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
24
|
var Header = reactUtils.withT(function (_ref) {
|
|
69
25
|
var t = _ref.t;
|
|
70
26
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -439,7 +395,7 @@ var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
|
439
395
|
troubleshootUrl = _ref.troubleshootUrl,
|
|
440
396
|
_ref$isPane = _ref.isPane,
|
|
441
397
|
isPane = _ref$isPane === void 0 ? false : _ref$isPane;
|
|
442
|
-
var _useFetchGithubReposi = useFetchGithubRepositories({
|
|
398
|
+
var _useFetchGithubReposi = useGithubAccountsApi.useFetchGithubRepositories({
|
|
443
399
|
isConnected: shouldFetchRepositories && initializers.globalProps.isGithubIntegrated
|
|
444
400
|
}),
|
|
445
401
|
_useFetchGithubReposi2 = _useFetchGithubReposi.data,
|
|
@@ -483,5 +439,4 @@ var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
|
483
439
|
|
|
484
440
|
exports.NeetoGithubNanoContainer = NeetoGithubNanoContainer;
|
|
485
441
|
exports.n = n;
|
|
486
|
-
|
|
487
|
-
//# sourceMappingURL=index-CWvGtXnf.js.map
|
|
442
|
+
//# sourceMappingURL=index-TIidDz1A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-TIidDz1A.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","../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 { 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":["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","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":";;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAGC,gBAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;AAAA,EAAA,oBACvBC,eAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6HAA6H;IAAAC,QAAA,EAAA,cAC1IC,cAAA,CAACC,MAAM,EAAA;AAACC,MAAAA,IAAI,EAAE;AAAG,KAAE,CAAC,eACpBF,cAAA,CAACG,UAAU,EAAA;AAACC,MAAAA,KAAK,EAAC,IA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;AAE3E,EAAA,IAAMzC,SAAS,GAAGuC,uBAAuB,GACrCiB,kBAAkB,GAClBnB,aAAa;AAEjB,EAAA,IAAIrC,SAAS,EAAE;AACb,IAAA,oBACEvD,cAAA,CAAA,KAAA,EAAA;AAAKF,MAAAA,SAAS,EAAC,gDAAgD;AAAAC,MAAAA,QAAA,eAC7DC,cAAA,CAACgH,OAAO,EAAE,EAAA;AAAC,KACR,CAAC;AAEV;AAEA,EAAA,oBACEnH,eAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAEwE,UAAU,CAAC,wCAAwC,EAAE;AAC9D,MAAA,UAAU,EAAErD,MAAM;AAClB,MAAA,4BAA4B,EAAE,CAACA;AACjC,KAAC,CAAE;IAAAlB,QAAA,EAAA,cAEHC,cAAA,CAACoC,QAAQ,EAAA;AACDpB,MAAAA,QAAQ,EAARA,QAAQ;AAAET,MAAAA,eAAe,EAAfA,eAAe;AAAED,MAAAA,WAAW,EAAXA,WAAW;AAAEW,MAAAA,MAAM,EAANA,MAAM;AAAEoB,MAAAA,SAAS,EAATA;AAAS,KAChE,CAAC,eACFrC,cAAA,CAACyF,YAAY,EAAA;AAETlF,MAAAA,eAAe,EAAfA,eAAe;AACfD,MAAAA,WAAW,EAAXA,WAAW;AACXyC,MAAAA,YAAY,EAAZA,YAAY;AACZ9B,MAAAA,MAAM,EAANA,MAAM;AACNoB,MAAAA,SAAS,EAATA,SAAS;AACT+B,MAAAA,YAAY,EAAZA,YAAY;AACZ7B,MAAAA,eAAe,EAAfA;AAAe,KAElB,CAAC;AAAA,GACC,CAAC;AAEV;;;;;","x_google_ignoreList":[5]}
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,39 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default as NeetoGithubIntegrationsTable } from './NeetoGithubIntegrationsTable.js';
|
|
2
|
+
export { N as NeetoGithubNanoContainer } from './index-CF2CmTxA.js';
|
|
2
3
|
export { default as NeetoGithubNanoPane } from './NeetoGithubNanoPane.js';
|
|
3
|
-
import '
|
|
4
|
-
import '@bigbinary/neeto-
|
|
5
|
-
import '@bigbinary/
|
|
4
|
+
import '@bigbinary/neeto-molecules/Container';
|
|
5
|
+
import '@bigbinary/neeto-molecules/Header';
|
|
6
|
+
import '@bigbinary/neeto-molecules/PageLoader';
|
|
7
|
+
import '@bigbinary/neetoui/Button';
|
|
8
|
+
import 'react-i18next';
|
|
9
|
+
import './useGithubAccountsApi-kFn8BvEJ.js';
|
|
10
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
11
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
6
12
|
import '@tanstack/react-query';
|
|
13
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
14
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
7
15
|
import 'ramda';
|
|
8
16
|
import 'axios';
|
|
9
17
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
10
|
-
import '@
|
|
11
|
-
import '
|
|
18
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
19
|
+
import 'react';
|
|
20
|
+
import '@bigbinary/neeto-cist';
|
|
21
|
+
import '@bigbinary/neetoui/Table';
|
|
22
|
+
import '@bigbinary/neetoui/NoData';
|
|
23
|
+
import '@bigbinary/neetoui/Alert';
|
|
24
|
+
import 'i18next';
|
|
25
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
26
|
+
import '@bigbinary/neeto-molecules/MoreDropdown';
|
|
12
27
|
import '@bigbinary/neetoui/Typography';
|
|
13
28
|
import 'react/jsx-runtime';
|
|
29
|
+
import 'classnames';
|
|
30
|
+
import '@bigbinary/neetoui/Spinner';
|
|
31
|
+
import '@bigbinary/neeto-icons/misc/Github';
|
|
14
32
|
import '@bigbinary/neeto-icons/Building';
|
|
15
33
|
import '@bigbinary/neetoui/Avatar';
|
|
16
|
-
import '@bigbinary/neetoui/Button';
|
|
17
34
|
import '@bigbinary/neeto-icons/Plus';
|
|
18
35
|
import '@bigbinary/neeto-icons/Settings';
|
|
19
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
20
|
-
import 'react';
|
|
21
|
-
import '@bigbinary/neeto-cist';
|
|
22
36
|
import '@bigbinary/neeto-molecules/Search';
|
|
23
|
-
import 'react-i18next';
|
|
24
37
|
import '@bigbinary/neeto-icons/Lock';
|
|
25
38
|
import '@bigbinary/neeto-molecules/DateFormat';
|
|
26
39
|
import '@bigbinary/neetoui/Pane';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
4
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
|
+
var reactQuery = require('@tanstack/react-query');
|
|
6
|
+
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
7
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
|
+
var ramda = require('ramda');
|
|
9
|
+
var axios = require('axios');
|
|
10
|
+
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
11
|
+
|
|
12
|
+
var _globalProps$organiza;
|
|
13
|
+
var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
|
|
14
|
+
({
|
|
15
|
+
integrator_id: initializers.globalProps === null || initializers.globalProps === void 0 || (_globalProps$organiza = initializers.globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
16
|
+
integrator_type: "Organization"
|
|
17
|
+
});
|
|
18
|
+
var GITHUB_INTEGRATOR_PARAMS = {
|
|
19
|
+
integratorId: initializers.globalProps.organization.id,
|
|
20
|
+
integratorType: "Organization"
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var baseUrl = "".concat(GITHUB_INTEGRATIONS_BASE_API_URL, "/app_installations");
|
|
24
|
+
var githubAppUrl = function githubAppUrl(id) {
|
|
25
|
+
return "".concat(baseUrl, "/").concat(id);
|
|
26
|
+
};
|
|
27
|
+
var fetch = function fetch(params) {
|
|
28
|
+
return axios.get(baseUrl, {
|
|
29
|
+
params: params
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var destroy = function destroy(appInstallationId, params) {
|
|
33
|
+
return axios["delete"]("".concat(baseUrl, "/").concat(appInstallationId), {
|
|
34
|
+
params: params
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var repositories = function repositories() {
|
|
38
|
+
return axios.get("".concat(githubAppUrl(initializers.globalProps.githubAppInstallationId), "/repositories"), {
|
|
39
|
+
params: GITHUB_INTEGRATOR_PARAMS
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var githubAccountsApi = {
|
|
43
|
+
repositories: repositories,
|
|
44
|
+
fetch: fetch,
|
|
45
|
+
destroy: destroy
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var QUERY_KEYS = {
|
|
49
|
+
GITHUB_REPOSITORIES_LIST: "github-repositories-list",
|
|
50
|
+
GITHUB_ACCOUNTS_LIST: "github-accounts-list"
|
|
51
|
+
};
|
|
52
|
+
var STALE_TIME_CONFIG = {
|
|
53
|
+
staleTime: constants.DEFAULT_STALE_TIME
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
57
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
var useFetchGithubAppInstallations = function useFetchGithubAppInstallations(params) {
|
|
68
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
69
|
+
return reactQuery.useQuery(_objectSpread(_objectSpread({
|
|
70
|
+
queryKey: [QUERY_KEYS.GITHUB_ACCOUNTS_LIST],
|
|
71
|
+
queryFn: function queryFn() {
|
|
72
|
+
return githubAccountsApi.fetch(params);
|
|
73
|
+
}
|
|
74
|
+
}, options), {}, {
|
|
75
|
+
select: ramda.prop("appInstallations")
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
var useDestroyGithubIntegration = function useDestroyGithubIntegration(params) {
|
|
79
|
+
var keysToInvalidate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
80
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
81
|
+
return reactUtils.useMutationWithInvalidation(function (appInstallationId) {
|
|
82
|
+
return githubAccountsApi.destroy(appInstallationId, params);
|
|
83
|
+
}, _objectSpread({
|
|
84
|
+
keysToInvalidate: [QUERY_KEYS.GITHUB_ACCOUNTS_LIST].concat(_toConsumableArray(keysToInvalidate))
|
|
85
|
+
}, options));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.useDestroyGithubIntegration = useDestroyGithubIntegration;
|
|
89
|
+
exports.useFetchGithubAppInstallations = useFetchGithubAppInstallations;
|
|
90
|
+
exports.useFetchGithubRepositories = useFetchGithubRepositories;
|
|
91
|
+
//# sourceMappingURL=useGithubAccountsApi-C9W-L_-C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGithubAccountsApi-C9W-L_-C.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"],"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 fetch = params => axios.get(baseUrl, { params });\n\nconst destroy = (appInstallationId, params) =>\n axios.delete(`${baseUrl}/${appInstallationId}`, { params });\n\nconst repositories = () =>\n axios.get(\n `${githubAppUrl(globalProps.githubAppInstallationId)}/repositories`,\n { params: GITHUB_INTEGRATOR_PARAMS }\n );\n\nconst githubAccountsApi = { repositories, fetch, destroy };\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 GITHUB_ACCOUNTS_LIST: \"github-accounts-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 { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { isNotNil, prop } 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\nexport const useFetchGithubAppInstallations = (params, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.GITHUB_ACCOUNTS_LIST],\n queryFn: () => githubAccountsApi.fetch(params),\n ...options,\n select: prop(\"appInstallations\"),\n });\n\nexport const useDestroyGithubIntegration = (\n params,\n keysToInvalidate = [],\n options = {}\n) =>\n useMutationWithInvalidation(\n appInstallationId => githubAccountsApi.destroy(appInstallationId, params),\n {\n keysToInvalidate: [QUERY_KEYS.GITHUB_ACCOUNTS_LIST, ...keysToInvalidate],\n ...options,\n }\n );\n"],"names":["GITHUB_INTEGRATIONS_BASE_API_URL","integrator_id","globalProps","_globalProps$organiza","organization","id","integrator_type","GITHUB_INTEGRATOR_PARAMS","integratorId","integratorType","baseUrl","concat","githubAppUrl","fetch","params","axios","get","destroy","appInstallationId","repositories","githubAppInstallationId","githubAccountsApi","QUERY_KEYS","GITHUB_REPOSITORIES_LIST","GITHUB_ACCOUNTS_LIST","STALE_TIME_CONFIG","staleTime","DEFAULT_STALE_TIME","useFetchGithubRepositories","_ref","isConnected","useQuery","queryKey","queryFn","enabled","isNotNil","useFetchGithubAppInstallations","options","arguments","length","undefined","_objectSpread","select","prop","useDestroyGithubIntegration","keysToInvalidate","useMutationWithInvalidation","_toConsumableArray"],"mappings":";;;;;;;;;;;;AAEO,IAAMA,gCAAgC,GAAG,sBAAsB;CAErB;AAC/CC,EAAAA,aAAa,EAAEC,wBAAW,KAAXA,IAAAA,IAAAA,wBAAW,gBAAAC,qBAAA,GAAXD,wBAAW,CAAEE,YAAY,MAAAD,IAAAA,IAAAA,qBAAA,KAAzBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAA,CAA2BE,EAAE;AAC5CC,EAAAA,eAAe,EAAE;AACnB;AAEO,IAAMC,wBAAwB,GAAG;AACtCC,EAAAA,YAAY,EAAEN,wBAAW,CAACE,YAAY,CAACC,EAAE;AACzCI,EAAAA,cAAc,EAAE;AAClB,CAAC;;ACJD,IAAMC,OAAO,GAAA,EAAA,CAAAC,MAAA,CAAMX,gCAAgC,EAAoB,oBAAA,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;AAAA,CAAE;AAE7C,IAAMQ,KAAK,GAAG,SAARA,KAAKA,CAAGC,MAAM,EAAA;AAAA,EAAA,OAAIC,KAAK,CAACC,GAAG,CAACN,OAAO,EAAE;AAAEI,IAAAA,MAAM,EAANA;AAAO,GAAC,CAAC;AAAA,CAAA;AAEtD,IAAMG,OAAO,GAAG,SAAVA,OAAOA,CAAIC,iBAAiB,EAAEJ,MAAM,EAAA;EAAA,OACxCC,KAAK,CAAO,QAAA,CAAA,CAAA,EAAA,CAAAJ,MAAA,CAAID,OAAO,EAAAC,GAAAA,CAAAA,CAAAA,MAAA,CAAIO,iBAAiB,CAAI,EAAA;AAAEJ,IAAAA,MAAM,EAANA;AAAO,GAAC,CAAC;AAAA,CAAA;AAE7D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,EAAE,CAACV,UAAU,CAACE,oBAAoB,CAAC;IAC3CS,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,MAAA,OAAQZ,iBAAiB,CAACR,KAAK,CAACC,MAAM,CAAC;AAAA;AAAA,GAAA,EAC3CuB,OAAO,CAAA,EAAA,EAAA,EAAA;IACVK,MAAM,EAAEC,UAAI,CAAC,kBAAkB;AAAC,GAAA,CACjC,CAAC;AAAA;IAESC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CACtC9B,MAAM,EAAA;AAAA,EAAA,IACN+B,gBAAgB,GAAAP,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,IACrBD,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,OAEZQ,sCAA2B,CACzB,UAAA5B,iBAAiB,EAAA;AAAA,IAAA,OAAIG,iBAAiB,CAACJ,OAAO,CAACC,iBAAiB,EAAEJ,MAAM,CAAC;AAAA,GAAA,EAAA2B,aAAA,CAAA;IAEvEI,gBAAgB,EAAA,CAAGvB,UAAU,CAACE,oBAAoB,EAAAb,MAAA,CAAAoC,kBAAA,CAAKF,gBAAgB,CAAA;GACpER,EAAAA,OAAO,CAEd,CAAC;AAAA;;;;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
|
+
import { useQuery } from '@tanstack/react-query';
|
|
4
|
+
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
5
|
+
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
|
+
import { isNotNil, prop } from 'ramda';
|
|
7
|
+
import axios from 'axios';
|
|
8
|
+
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
9
|
+
|
|
10
|
+
var _globalProps$organiza;
|
|
11
|
+
var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
|
|
12
|
+
({
|
|
13
|
+
integrator_id: globalProps === null || globalProps === void 0 || (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
|
|
14
|
+
integrator_type: "Organization"
|
|
15
|
+
});
|
|
16
|
+
var GITHUB_INTEGRATOR_PARAMS = {
|
|
17
|
+
integratorId: globalProps.organization.id,
|
|
18
|
+
integratorType: "Organization"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var baseUrl = "".concat(GITHUB_INTEGRATIONS_BASE_API_URL, "/app_installations");
|
|
22
|
+
var githubAppUrl = function githubAppUrl(id) {
|
|
23
|
+
return "".concat(baseUrl, "/").concat(id);
|
|
24
|
+
};
|
|
25
|
+
var fetch = function fetch(params) {
|
|
26
|
+
return axios.get(baseUrl, {
|
|
27
|
+
params: params
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var destroy = function destroy(appInstallationId, params) {
|
|
31
|
+
return axios["delete"]("".concat(baseUrl, "/").concat(appInstallationId), {
|
|
32
|
+
params: params
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var repositories = function repositories() {
|
|
36
|
+
return axios.get("".concat(githubAppUrl(globalProps.githubAppInstallationId), "/repositories"), {
|
|
37
|
+
params: GITHUB_INTEGRATOR_PARAMS
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var githubAccountsApi = {
|
|
41
|
+
repositories: repositories,
|
|
42
|
+
fetch: fetch,
|
|
43
|
+
destroy: destroy
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var QUERY_KEYS = {
|
|
47
|
+
GITHUB_REPOSITORIES_LIST: "github-repositories-list",
|
|
48
|
+
GITHUB_ACCOUNTS_LIST: "github-accounts-list"
|
|
49
|
+
};
|
|
50
|
+
var STALE_TIME_CONFIG = {
|
|
51
|
+
staleTime: DEFAULT_STALE_TIME
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
56
|
+
var useFetchGithubRepositories = function useFetchGithubRepositories(_ref) {
|
|
57
|
+
var isConnected = _ref.isConnected;
|
|
58
|
+
return useQuery({
|
|
59
|
+
queryKey: [QUERY_KEYS.GITHUB_REPOSITORIES_LIST],
|
|
60
|
+
queryFn: githubAccountsApi.repositories,
|
|
61
|
+
staleTime: STALE_TIME_CONFIG.staleTime,
|
|
62
|
+
enabled: isConnected && isNotNil(globalProps.githubAppInstallationId)
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
var useFetchGithubAppInstallations = function useFetchGithubAppInstallations(params) {
|
|
66
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
67
|
+
return useQuery(_objectSpread(_objectSpread({
|
|
68
|
+
queryKey: [QUERY_KEYS.GITHUB_ACCOUNTS_LIST],
|
|
69
|
+
queryFn: function queryFn() {
|
|
70
|
+
return githubAccountsApi.fetch(params);
|
|
71
|
+
}
|
|
72
|
+
}, options), {}, {
|
|
73
|
+
select: prop("appInstallations")
|
|
74
|
+
}));
|
|
75
|
+
};
|
|
76
|
+
var useDestroyGithubIntegration = function useDestroyGithubIntegration(params) {
|
|
77
|
+
var keysToInvalidate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
78
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
79
|
+
return useMutationWithInvalidation(function (appInstallationId) {
|
|
80
|
+
return githubAccountsApi.destroy(appInstallationId, params);
|
|
81
|
+
}, _objectSpread({
|
|
82
|
+
keysToInvalidate: [QUERY_KEYS.GITHUB_ACCOUNTS_LIST].concat(_toConsumableArray(keysToInvalidate))
|
|
83
|
+
}, options));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { useDestroyGithubIntegration as a, useFetchGithubAppInstallations as b, useFetchGithubRepositories as u };
|
|
87
|
+
//# sourceMappingURL=useGithubAccountsApi-kFn8BvEJ.js.map
|