@bigbinary/neeto-github-frontend 2.2.4 → 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 +28 -0
- package/dist/NeetoGithubNanoContainer.js.map +1 -0
- package/dist/NeetoGithubNanoPane.js +108 -0
- package/dist/NeetoGithubNanoPane.js.map +1 -0
- package/dist/cjs/NeetoGithubIntegrationsTable.js +154 -0
- package/dist/cjs/NeetoGithubIntegrationsTable.js.map +1 -0
- package/dist/cjs/NeetoGithubNanoContainer.js +34 -0
- package/dist/cjs/NeetoGithubNanoContainer.js.map +1 -0
- package/dist/cjs/NeetoGithubNanoPane.js +129 -0
- package/dist/cjs/NeetoGithubNanoPane.js.map +1 -0
- package/dist/cjs/index.js +49 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/index-CF2CmTxA.js +439 -0
- package/dist/index-CF2CmTxA.js.map +1 -0
- package/dist/index-TIidDz1A.js +442 -0
- package/dist/index-TIidDz1A.js.map +1 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- 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 +20 -18
- package/types.d.ts +2 -0
|
@@ -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;A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,QAAQ,GAAG8E,uBAAuB,GAAGgB,iBAAiB,GAAGd,YAAY;AAE3E,EAAA,IAAMzC,SAAS,GAAGuC,uBAAuB,GACrCiB,kBAAkB,GAClBnB,aAAa;AAEjB,EAAA,IAAIrC,SAAS,EAAE;AACb,IAAA,oBACEvD,GAAA,CAAA,KAAA,EAAA;AAAKF,MAAAA,SAAS,EAAC,gDAAgD;AAAAC,MAAAA,QAAA,eAC7DC,GAAA,CAACgH,OAAO,EAAE,EAAA;AAAC,KACR,CAAC;AAEV;AAEA,EAAA,oBACEnH,IAAA,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]}
|
|
@@ -0,0 +1,442 @@
|
|
|
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 useGithubAccountsApi = require('./useGithubAccountsApi-C9W-L_-C.js');
|
|
7
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
|
+
var Github = require('@bigbinary/neeto-icons/misc/Github');
|
|
9
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
10
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
+
var Building = require('@bigbinary/neeto-icons/Building');
|
|
12
|
+
var Avatar = require('@bigbinary/neetoui/Avatar');
|
|
13
|
+
var Button = require('@bigbinary/neetoui/Button');
|
|
14
|
+
var Plus = require('@bigbinary/neeto-icons/Plus');
|
|
15
|
+
var Settings = require('@bigbinary/neeto-icons/Settings');
|
|
16
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
17
|
+
var react = require('react');
|
|
18
|
+
var neetoCist = require('@bigbinary/neeto-cist');
|
|
19
|
+
var Search = require('@bigbinary/neeto-molecules/Search');
|
|
20
|
+
var reactI18next = require('react-i18next');
|
|
21
|
+
var Lock = require('@bigbinary/neeto-icons/Lock');
|
|
22
|
+
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
23
|
+
|
|
24
|
+
var Header = reactUtils.withT(function (_ref) {
|
|
25
|
+
var t = _ref.t;
|
|
26
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
27
|
+
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",
|
|
28
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Github, {
|
|
29
|
+
size: 16
|
|
30
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
31
|
+
style: "h4",
|
|
32
|
+
children: t("neetoGithub.github")
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var Configure = reactUtils.withT(function (_ref) {
|
|
38
|
+
var t = _ref.t,
|
|
39
|
+
isConnected = _ref.isConnected,
|
|
40
|
+
installationUrl = _ref.installationUrl;
|
|
41
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42
|
+
className: "neeto-ui-text-gray-900 flex-shrink-0 font-sans text-sm font-normal leading-6 antialiased",
|
|
43
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
44
|
+
href: installationUrl,
|
|
45
|
+
icon: isConnected ? Settings : Plus,
|
|
46
|
+
iconPosition: "left",
|
|
47
|
+
iconSize: 20,
|
|
48
|
+
size: "small",
|
|
49
|
+
style: "link",
|
|
50
|
+
children: isConnected ? t("neetoGithub.configureAccount") : t("neetoGithub.connectAccount")
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
var List$1 = reactUtils.withT(function (_ref) {
|
|
56
|
+
var t = _ref.t,
|
|
57
|
+
accounts = _ref.accounts,
|
|
58
|
+
isConnected = _ref.isConnected,
|
|
59
|
+
installationUrl = _ref.installationUrl,
|
|
60
|
+
isPane = _ref.isPane;
|
|
61
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
62
|
+
className: classnames("neeto-ui-border-gray-300 flex justify-between gap-3 border-b pb-4 pt-2", {
|
|
63
|
+
"flex-col md:flex-row": isPane,
|
|
64
|
+
"flex-col": !isPane
|
|
65
|
+
}),
|
|
66
|
+
children: [accounts.map(function (_ref2) {
|
|
67
|
+
var id = _ref2.id,
|
|
68
|
+
name = _ref2.name,
|
|
69
|
+
avatarUrl = _ref2.avatarUrl,
|
|
70
|
+
type = _ref2.type,
|
|
71
|
+
profileUrl = _ref2.profileUrl,
|
|
72
|
+
count = _ref2.count;
|
|
73
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
74
|
+
className: "flex w-full items-center space-x-2",
|
|
75
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
76
|
+
className: "flex items-center gap-1",
|
|
77
|
+
children: [type === "Organization" ? /*#__PURE__*/jsxRuntime.jsx(Building, {
|
|
78
|
+
className: "neeto-ui-text-gray-600",
|
|
79
|
+
size: 24
|
|
80
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Avatar, {
|
|
81
|
+
size: "small",
|
|
82
|
+
user: {
|
|
83
|
+
imageUrl: avatarUrl
|
|
84
|
+
}
|
|
85
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
86
|
+
className: "neeto-ui-text-gray-800",
|
|
87
|
+
style: "body2",
|
|
88
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
89
|
+
className: "neeto-ui-text-gray-800",
|
|
90
|
+
label: "@".concat(name),
|
|
91
|
+
style: "link",
|
|
92
|
+
onClick: function onClick() {
|
|
93
|
+
return window.open(profileUrl, "_blank");
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
98
|
+
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
99
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
100
|
+
className: "neeto-ui-text-black",
|
|
101
|
+
style: "body2",
|
|
102
|
+
children: t("neetoGithub.countOf.repos", {
|
|
103
|
+
count: count
|
|
104
|
+
})
|
|
105
|
+
})]
|
|
106
|
+
}, id);
|
|
107
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Configure, {
|
|
108
|
+
installationUrl: installationUrl,
|
|
109
|
+
isConnected: isConnected
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
var Accounts = function Accounts(_ref) {
|
|
115
|
+
var isPane = _ref.isPane,
|
|
116
|
+
accounts = _ref.accounts,
|
|
117
|
+
isConnected = _ref.isConnected,
|
|
118
|
+
onConnect = _ref.onConnect,
|
|
119
|
+
installationUrl = _ref.installationUrl;
|
|
120
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
121
|
+
className: classnames("flex w-full flex-col border border-solid border-transparent px-0 py-2", {
|
|
122
|
+
"order-1": isPane,
|
|
123
|
+
"md:order-2 md:max-w-72 lg:max-w-sm lg:px-6": !isPane
|
|
124
|
+
}),
|
|
125
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
126
|
+
className: "mb-2",
|
|
127
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Header, {}), /*#__PURE__*/jsxRuntime.jsx(List$1, {
|
|
128
|
+
accounts: accounts,
|
|
129
|
+
installationUrl: installationUrl,
|
|
130
|
+
isConnected: isConnected,
|
|
131
|
+
isPane: isPane,
|
|
132
|
+
onConnect: onConnect
|
|
133
|
+
})]
|
|
134
|
+
})
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
var NoRepositories = reactUtils.withT(function (_ref) {
|
|
139
|
+
var t = _ref.t,
|
|
140
|
+
installationUrl = _ref.installationUrl,
|
|
141
|
+
troubleshootUrl = _ref.troubleshootUrl;
|
|
142
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
143
|
+
className: "flex items-center justify-center py-6",
|
|
144
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
145
|
+
className: "mx-auto flex w-full max-w-sm flex-col items-center justify-center space-y-4 py-4 text-center",
|
|
146
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
147
|
+
style: "body2",
|
|
148
|
+
children: t("neetoGithub.noReposDescription")
|
|
149
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
150
|
+
href: installationUrl,
|
|
151
|
+
icon: Github,
|
|
152
|
+
iconPosition: "left",
|
|
153
|
+
label: t("neetoGithub.connectRepository"),
|
|
154
|
+
size: "medium",
|
|
155
|
+
style: "primary"
|
|
156
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
157
|
+
className: "text-xs",
|
|
158
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
159
|
+
i18nKey: t("neetoGithub.troubleshoot"),
|
|
160
|
+
components: {
|
|
161
|
+
troubleshootLink: /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
162
|
+
className: "text-indigo-600 underline",
|
|
163
|
+
href: troubleshootUrl,
|
|
164
|
+
rel: "noopener noreferrer",
|
|
165
|
+
target: "_blank"
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
})]
|
|
170
|
+
})
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
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}}
|
|
175
|
+
|
|
176
|
+
var css = ".width-calc{width:100%}@media (min-width:768px){.width-calc{width:calc(100% - 82px)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvcmVwb3NpdG9yeS10aWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsWUFDRSxVQUNGLENBQ0UseUJBSEYsWUFJSSx1QkFFRixDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiLndpZHRoLWNhbGMge1xuICB3aWR0aDogMTAwJTtcblxuICBAc2NyZWVuIG1kIHtcbiAgICB3aWR0aDogY2FsYygxMDAlIC0gODJweCk7XG4gIH1cbn1cbiJdfQ== */";
|
|
177
|
+
n(css,{});
|
|
178
|
+
|
|
179
|
+
var RepositoryTile = function RepositoryTile(_ref) {
|
|
180
|
+
var isConnecting = _ref.isConnecting,
|
|
181
|
+
onConnect = _ref.onConnect,
|
|
182
|
+
repository = _ref.repository;
|
|
183
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
184
|
+
t = _useTranslation.t;
|
|
185
|
+
var _useState = react.useState(false),
|
|
186
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
187
|
+
isLoading = _useState2[0],
|
|
188
|
+
setIsLoading = _useState2[1];
|
|
189
|
+
var id = repository.id,
|
|
190
|
+
fullName = repository.fullName,
|
|
191
|
+
isPrivate = repository.isPrivate,
|
|
192
|
+
updatedAt = repository.updatedAt;
|
|
193
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
194
|
+
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",
|
|
195
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
196
|
+
className: "width-calc flex items-center space-x-2",
|
|
197
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Github, {
|
|
198
|
+
className: "flex-shrink-0",
|
|
199
|
+
size: 16
|
|
200
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
201
|
+
style: "body2",
|
|
202
|
+
children: fullName
|
|
203
|
+
}), isPrivate && /*#__PURE__*/jsxRuntime.jsx(Lock, {
|
|
204
|
+
className: "flex-shrink-0",
|
|
205
|
+
size: 16
|
|
206
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
207
|
+
className: "hidden lg:inline-block",
|
|
208
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
209
|
+
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
|
|
210
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DateFormat.FromNow, {
|
|
211
|
+
date: updatedAt
|
|
212
|
+
})]
|
|
213
|
+
})]
|
|
214
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
215
|
+
className: "w-max",
|
|
216
|
+
disabled: isConnecting,
|
|
217
|
+
loading: isLoading,
|
|
218
|
+
style: "primary",
|
|
219
|
+
type: "button",
|
|
220
|
+
onClick: function onClick() {
|
|
221
|
+
return onConnect({
|
|
222
|
+
repoType: "private",
|
|
223
|
+
repository: repository,
|
|
224
|
+
setIsLoading: setIsLoading
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
children: t("neetoGithub.connect")
|
|
228
|
+
})]
|
|
229
|
+
}, id);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
var List = reactUtils.withT(function (_ref) {
|
|
233
|
+
var t = _ref.t,
|
|
234
|
+
filteredRepositories = _ref.filteredRepositories,
|
|
235
|
+
repositories = _ref.repositories,
|
|
236
|
+
isConnecting = _ref.isConnecting,
|
|
237
|
+
onConnect = _ref.onConnect,
|
|
238
|
+
installationUrl = _ref.installationUrl,
|
|
239
|
+
troubleshootUrl = _ref.troubleshootUrl;
|
|
240
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
241
|
+
className: "h-full overflow-y-scroll px-4 pb-4 md:px-6 md:pb-6",
|
|
242
|
+
children: neetoCist.isPresent(repositories) ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
243
|
+
className: classnames("neeto-ui-border-gray-300 neeto-ui-rounded-md flex flex-col items-center justify-center border", {
|
|
244
|
+
"h-auto": neetoCist.isPresent(filteredRepositories),
|
|
245
|
+
"h-full": !neetoCist.isPresent(filteredRepositories)
|
|
246
|
+
}),
|
|
247
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
248
|
+
className: "m-0 h-full w-full p-0",
|
|
249
|
+
children: neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository, index) {
|
|
250
|
+
return /*#__PURE__*/react.createElement(RepositoryTile, {
|
|
251
|
+
isConnecting: isConnecting,
|
|
252
|
+
onConnect: onConnect,
|
|
253
|
+
repository: repository,
|
|
254
|
+
key: index
|
|
255
|
+
});
|
|
256
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
257
|
+
className: "flex h-full w-full items-center justify-center",
|
|
258
|
+
style: "body2",
|
|
259
|
+
children: t("neetoGithub.noRepos")
|
|
260
|
+
})
|
|
261
|
+
})
|
|
262
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(NoRepositories, {
|
|
263
|
+
installationUrl: installationUrl,
|
|
264
|
+
troubleshootUrl: troubleshootUrl
|
|
265
|
+
})
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
var NotConnected = reactUtils.withT(function (_ref) {
|
|
270
|
+
var t = _ref.t,
|
|
271
|
+
installationUrl = _ref.installationUrl;
|
|
272
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
273
|
+
className: "flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center",
|
|
274
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
275
|
+
style: "body2",
|
|
276
|
+
children: t("neetoGithub.notConnectedDescription", {
|
|
277
|
+
appName: initializers.globalProps.appName
|
|
278
|
+
})
|
|
279
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
280
|
+
href: installationUrl,
|
|
281
|
+
icon: Github,
|
|
282
|
+
iconPosition: "left",
|
|
283
|
+
label: t("neetoGithub.connectGithub"),
|
|
284
|
+
size: "medium",
|
|
285
|
+
style: "primary"
|
|
286
|
+
})]
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
var Private = function Private(_ref) {
|
|
291
|
+
var isConnected = _ref.isConnected,
|
|
292
|
+
isConnecting = _ref.isConnecting,
|
|
293
|
+
repositories = _ref.repositories,
|
|
294
|
+
onConnect = _ref.onConnect,
|
|
295
|
+
installationUrl = _ref.installationUrl,
|
|
296
|
+
troubleshootUrl = _ref.troubleshootUrl;
|
|
297
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
298
|
+
t = _useTranslation.t;
|
|
299
|
+
var _useState = react.useState(repositories),
|
|
300
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
301
|
+
filteredRepositories = _useState2[0],
|
|
302
|
+
setFilteredRepositories = _useState2[1];
|
|
303
|
+
var onSearch = function onSearch(searchTerm) {
|
|
304
|
+
if (!neetoCist.isPresent(searchTerm)) {
|
|
305
|
+
setFilteredRepositories(repositories);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
var filteredRepositories = repositories.filter(function (_ref2) {
|
|
309
|
+
var fullName = _ref2.fullName;
|
|
310
|
+
return fullName.toLowerCase().includes(searchTerm.toLowerCase());
|
|
311
|
+
});
|
|
312
|
+
setFilteredRepositories(filteredRepositories);
|
|
313
|
+
};
|
|
314
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
315
|
+
className: "connect-repo flex h-full flex-col",
|
|
316
|
+
children: isConnected ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
317
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
318
|
+
className: "space-y-3 p-4 md:p-6",
|
|
319
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
320
|
+
className: "flex-shrink-0 text-lg font-medium",
|
|
321
|
+
style: "h2",
|
|
322
|
+
children: t("neetoGithub.connectARepo")
|
|
323
|
+
}), neetoCist.isPresent(repositories) && /*#__PURE__*/jsxRuntime.jsx(Search, {
|
|
324
|
+
onSearch: onSearch,
|
|
325
|
+
className: "w-full",
|
|
326
|
+
unlimitedChars: false,
|
|
327
|
+
suffix: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
328
|
+
style: "body2",
|
|
329
|
+
children: t("neetoGithub.countOf.repos", {
|
|
330
|
+
count: filteredRepositories.length
|
|
331
|
+
})
|
|
332
|
+
})
|
|
333
|
+
})]
|
|
334
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
335
|
+
className: "flex min-h-0 w-full flex-grow flex-col space-y-6",
|
|
336
|
+
children: /*#__PURE__*/jsxRuntime.jsx(List, {
|
|
337
|
+
filteredRepositories: filteredRepositories,
|
|
338
|
+
installationUrl: installationUrl,
|
|
339
|
+
isConnecting: isConnecting,
|
|
340
|
+
onConnect: onConnect,
|
|
341
|
+
repositories: repositories,
|
|
342
|
+
troubleshootUrl: troubleshootUrl
|
|
343
|
+
})
|
|
344
|
+
})]
|
|
345
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
346
|
+
className: "neeto-ui-text-gray-900 flex-grow font-sans text-sm font-normal leading-6 antialiased",
|
|
347
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
348
|
+
className: "flex h-full flex-col items-center justify-center p-4",
|
|
349
|
+
children: /*#__PURE__*/jsxRuntime.jsx(NotConnected, {
|
|
350
|
+
installationUrl: installationUrl
|
|
351
|
+
})
|
|
352
|
+
})
|
|
353
|
+
})
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
var Repositories = function Repositories(_ref) {
|
|
358
|
+
var isConnected = _ref.isConnected,
|
|
359
|
+
isConnecting = _ref.isConnecting,
|
|
360
|
+
repositories = _ref.repositories,
|
|
361
|
+
onConnect = _ref.onConnect,
|
|
362
|
+
installationUrl = _ref.installationUrl,
|
|
363
|
+
troubleshootUrl = _ref.troubleshootUrl,
|
|
364
|
+
isPane = _ref.isPane;
|
|
365
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
366
|
+
className: classnames("neeto-ui-rounded-md neeto-ui-border-gray-300 h-full w-full space-y-6 border border-solid", {
|
|
367
|
+
"order-2": isPane,
|
|
368
|
+
"order-1": !isPane
|
|
369
|
+
}),
|
|
370
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Private, {
|
|
371
|
+
installationUrl: installationUrl,
|
|
372
|
+
isConnected: isConnected,
|
|
373
|
+
isConnecting: isConnecting,
|
|
374
|
+
onConnect: onConnect,
|
|
375
|
+
repositories: repositories,
|
|
376
|
+
troubleshootUrl: troubleshootUrl
|
|
377
|
+
})
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
382
|
+
var _ref$isPaneLoading = _ref.isPaneLoading,
|
|
383
|
+
isPaneLoading = _ref$isPaneLoading === void 0 ? false : _ref$isPaneLoading,
|
|
384
|
+
_ref$shouldFetchRepos = _ref.shouldFetchRepositories,
|
|
385
|
+
shouldFetchRepositories = _ref$shouldFetchRepos === void 0 ? true : _ref$shouldFetchRepos,
|
|
386
|
+
_ref$paneAccounts = _ref.paneAccounts,
|
|
387
|
+
paneAccounts = _ref$paneAccounts === void 0 ? [] : _ref$paneAccounts,
|
|
388
|
+
installationUrl = _ref.installationUrl,
|
|
389
|
+
isConnected = _ref.isConnected,
|
|
390
|
+
_ref$isConnecting = _ref.isConnecting,
|
|
391
|
+
isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
|
|
392
|
+
onConnect = _ref.onConnect,
|
|
393
|
+
_ref$paneRepositories = _ref.paneRepositories,
|
|
394
|
+
paneRepositories = _ref$paneRepositories === void 0 ? [] : _ref$paneRepositories,
|
|
395
|
+
troubleshootUrl = _ref.troubleshootUrl,
|
|
396
|
+
_ref$isPane = _ref.isPane,
|
|
397
|
+
isPane = _ref$isPane === void 0 ? false : _ref$isPane;
|
|
398
|
+
var _useFetchGithubReposi = useGithubAccountsApi.useFetchGithubRepositories({
|
|
399
|
+
isConnected: shouldFetchRepositories && initializers.globalProps.isGithubIntegrated
|
|
400
|
+
}),
|
|
401
|
+
_useFetchGithubReposi2 = _useFetchGithubReposi.data,
|
|
402
|
+
_useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
|
|
403
|
+
_useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
|
|
404
|
+
containerRepositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
|
|
405
|
+
_useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
|
|
406
|
+
containerAccounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
|
|
407
|
+
isContainerLoading = _useFetchGithubReposi.isLoading;
|
|
408
|
+
var repositories = shouldFetchRepositories ? containerRepositories : paneRepositories;
|
|
409
|
+
var accounts = shouldFetchRepositories ? containerAccounts : paneAccounts;
|
|
410
|
+
var isLoading = shouldFetchRepositories ? isContainerLoading : isPaneLoading;
|
|
411
|
+
if (isLoading) {
|
|
412
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
413
|
+
className: "flex h-full w-full items-center justify-center",
|
|
414
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
418
|
+
className: classnames("flex min-h-0 w-full flex-grow flex-col", {
|
|
419
|
+
"flex-col": isPane,
|
|
420
|
+
"gap-3 md:flex-row md:gap-6": !isPane
|
|
421
|
+
}),
|
|
422
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Accounts, {
|
|
423
|
+
accounts: accounts,
|
|
424
|
+
installationUrl: installationUrl,
|
|
425
|
+
isConnected: isConnected,
|
|
426
|
+
isPane: isPane,
|
|
427
|
+
onConnect: onConnect
|
|
428
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Repositories, {
|
|
429
|
+
installationUrl: installationUrl,
|
|
430
|
+
isConnected: isConnected,
|
|
431
|
+
isConnecting: isConnecting,
|
|
432
|
+
isPane: isPane,
|
|
433
|
+
onConnect: onConnect,
|
|
434
|
+
repositories: repositories,
|
|
435
|
+
troubleshootUrl: troubleshootUrl
|
|
436
|
+
})]
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
exports.NeetoGithubNanoContainer = NeetoGithubNanoContainer;
|
|
441
|
+
exports.n = n;
|
|
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,IAAI;MAAAL,QAAA,EAAEH,CAAC,CAAC,oBAAoB;AAAC,KAAa,CAAC;AAAA,GAC1D,CAAC;AAAA,CACP,CAAC;;ACLF,IAAMS,SAAS,GAAGX,gBAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEU,WAAW,GAAAX,IAAA,CAAXW,WAAW;IAAEC,eAAe,GAAAZ,IAAA,CAAfY,eAAe;AAAA,EAAA,oBACxDP,cAAA,CAAA,KAAA,EAAA;AAAKF,IAAAA,SAAS,EAAC,0FAA0F;IAAAC,QAAA,eACvGC,cAAA,CAACQ,MAAM,EAAA;AACLC,MAAAA,IAAI,EAAEF,eAAgB;AACtBG,MAAAA,IAAI,EAAEJ,WAAW,GAAGK,QAAQ,GAAGC,IAAK;AACpCC,MAAAA,YAAY,EAAC,MAAM;AACnBC,MAAAA,QAAQ,EAAE,EAAG;AACbZ,MAAAA,IAAI,EAAC,OAAO;AACZE,MAAAA,KAAK,EAAC,MAAM;MAAAL,QAAA,EAEXO,WAAW,GACRV,CAAC,CAAC,8BAA8B,CAAC,GACjCA,CAAC,CAAC,4BAA4B;KAC5B;AAAC,G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fA,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
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { default as NeetoGithubIntegrationsTable } from './NeetoGithubIntegrationsTable.js';
|
|
2
|
+
export { N as NeetoGithubNanoContainer } from './index-CF2CmTxA.js';
|
|
3
|
+
export { default as NeetoGithubNanoPane } from './NeetoGithubNanoPane.js';
|
|
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';
|
|
12
|
+
import '@tanstack/react-query';
|
|
13
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
14
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
15
|
+
import 'ramda';
|
|
16
|
+
import 'axios';
|
|
17
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
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';
|
|
27
|
+
import '@bigbinary/neetoui/Typography';
|
|
28
|
+
import 'react/jsx-runtime';
|
|
29
|
+
import 'classnames';
|
|
30
|
+
import '@bigbinary/neetoui/Spinner';
|
|
31
|
+
import '@bigbinary/neeto-icons/misc/Github';
|
|
32
|
+
import '@bigbinary/neeto-icons/Building';
|
|
33
|
+
import '@bigbinary/neetoui/Avatar';
|
|
34
|
+
import '@bigbinary/neeto-icons/Plus';
|
|
35
|
+
import '@bigbinary/neeto-icons/Settings';
|
|
36
|
+
import '@bigbinary/neeto-molecules/Search';
|
|
37
|
+
import '@bigbinary/neeto-icons/Lock';
|
|
38
|
+
import '@bigbinary/neeto-molecules/DateFormat';
|
|
39
|
+
import '@bigbinary/neetoui/Pane';
|
|
40
|
+
import 'qs';
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|