@verdaccio/ui-components 4.0.0-next-8.1 → 4.0.0-next-8.3
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/.babelrc +9 -1
- package/CHANGELOG.md +2 -266
- package/build/AppTest/AppRoute.js +18 -27
- package/build/AppTest/pages/Front/Home.js +2 -8
- package/build/AppTest/pages/Front/index.js +1 -13
- package/build/AppTest/pages/Version/Version.js +15 -19
- package/build/AppTest/pages/Version/index.js +1 -13
- package/build/Theme/ResetStyles.js +12 -20
- package/build/Theme/StyleBaseline.js +6 -13
- package/build/Theme/ThemeProvider.js +25 -33
- package/build/Theme/colors.js +1 -7
- package/build/Theme/index.js +5 -44
- package/build/Theme/theme.js +26 -32
- package/build/components/ActionBar/ActionBar.js +26 -33
- package/build/components/ActionBar/ActionBarAction.js +59 -59
- package/build/components/ActionBar/index.js +1 -13
- package/build/components/Author/Author.js +17 -23
- package/build/components/Author/index.js +1 -13
- package/build/components/Author/styles.js +8 -15
- package/build/components/CopyClipboard/CopyToClipBoard.js +41 -41
- package/build/components/CopyClipboard/index.js +2 -20
- package/build/components/CopyClipboard/utils.js +1 -8
- package/build/components/Dependencies/Dependencies.js +27 -34
- package/build/components/Dependencies/DependencyBlock.js +33 -39
- package/build/components/Dependencies/index.js +1 -13
- package/build/components/Dependencies/types.js +1 -5
- package/build/components/Dependencies/utits.js +1 -7
- package/build/components/Deprecated/Deprecated.js +10 -16
- package/build/components/Deprecated/index.js +1 -13
- package/build/components/Developers/DeveloperType.js +1 -7
- package/build/components/Developers/Developers.js +33 -41
- package/build/components/Developers/Title.js +26 -29
- package/build/components/Developers/get-unique-developer-values.js +1 -7
- package/build/components/Developers/index.js +2 -20
- package/build/components/Distribution/Dist.js +29 -32
- package/build/components/Distribution/index.js +1 -13
- package/build/components/Distribution/styles.js +11 -18
- package/build/components/Engines/Engines.js +53 -54
- package/build/components/Engines/index.js +1 -13
- package/build/components/Engines/styles.js +8 -15
- package/build/components/ErrorBoundary/ErrorBoundary.js +5 -14
- package/build/components/ErrorBoundary/index.js +1 -13
- package/build/components/Forbidden/Forbidden.js +34 -36
- package/build/components/Forbidden/index.js +1 -13
- package/build/components/FundButton/FundButton.js +43 -42
- package/build/components/FundButton/index.js +1 -13
- package/build/components/HeaderInfoDialog/HeaderInfoDialog.js +39 -41
- package/build/components/HeaderInfoDialog/index.js +1 -13
- package/build/components/Heading/Heading.js +12 -17
- package/build/components/Heading/index.js +1 -13
- package/build/components/Help/Help.js +23 -31
- package/build/components/Help/index.js +1 -13
- package/build/components/Help/styles.js +3 -10
- package/build/components/Icons/DevsIcons/CommonJS.js +4 -11
- package/build/components/Icons/DevsIcons/ES6Module.js +4 -11
- package/build/components/Icons/DevsIcons/Git.js +4 -11
- package/build/components/Icons/DevsIcons/NodeJS.js +4 -11
- package/build/components/Icons/DevsIcons/TypeScript.js +4 -11
- package/build/components/Icons/DevsIcons/index.js +5 -40
- package/build/components/Icons/Earth.js +13 -19
- package/build/components/Icons/FileBinary.js +6 -12
- package/build/components/Icons/Law.js +6 -12
- package/build/components/Icons/License.js +7 -13
- package/build/components/Icons/License.js.map +1 -1
- package/build/components/Icons/Managers/Npm.js +4 -11
- package/build/components/Icons/Managers/Pnpm.js +4 -11
- package/build/components/Icons/Managers/Yarn.js +4 -11
- package/build/components/Icons/Managers/index.js +3 -26
- package/build/components/Icons/SvgIcon.js +27 -23
- package/build/components/Icons/Time.js +8 -14
- package/build/components/Icons/Version.js +6 -12
- package/build/components/Icons/index.js +8 -79
- package/build/components/Install/Install.js +35 -42
- package/build/components/Install/InstallListItem.js +50 -55
- package/build/components/Install/index.js +1 -13
- package/build/components/Keywords/KeywordListItems.js +11 -17
- package/build/components/Keywords/Keywords.js +20 -25
- package/build/components/Keywords/index.js +1 -13
- package/build/components/Label/Label.js +19 -20
- package/build/components/Label/index.js +1 -13
- package/build/components/Link/Link.js +16 -22
- package/build/components/Link/index.js +1 -13
- package/build/components/LinkExternal/LinkExternal.js +15 -19
- package/build/components/LinkExternal/index.js +1 -13
- package/build/components/Loading/Loading.js +8 -15
- package/build/components/Loading/Spinner/Spinner.js +41 -35
- package/build/components/Loading/Spinner/index.js +1 -13
- package/build/components/Loading/index.js +1 -13
- package/build/components/Loading/styles.js +16 -20
- package/build/components/LoginDialog/LoginDialog.js +72 -68
- package/build/components/LoginDialog/LoginDialogCloseButton.js +28 -31
- package/build/components/LoginDialog/LoginDialogForm.js +46 -45
- package/build/components/LoginDialog/LoginDialogFormError.js +34 -36
- package/build/components/LoginDialog/LoginDialogHeader.js +42 -42
- package/build/components/LoginDialog/index.js +1 -13
- package/build/components/Logo/Logo.js +45 -48
- package/build/components/Logo/index.js +1 -13
- package/build/components/MenuItem/MenuItem.js +7 -16
- package/build/components/MenuItem/index.js +1 -13
- package/build/components/NoItems/NoItems.js +16 -17
- package/build/components/NoItems/index.js +1 -13
- package/build/components/NotFound/NotFound.js +32 -36
- package/build/components/NotFound/index.js +1 -13
- package/build/components/Package/Package.js +109 -104
- package/build/components/Package/index.js +1 -20
- package/build/components/Package/styles.js +86 -81
- package/build/components/PackageList/PackageList.js +56 -57
- package/build/components/PackageList/index.js +1 -13
- package/build/components/Person/Person.js +22 -28
- package/build/components/Person/PersonTooltip.js +17 -21
- package/build/components/Person/index.js +1 -13
- package/build/components/Person/utils.js +6 -14
- package/build/components/RawViewer/RawViewer.js +28 -34
- package/build/components/RawViewer/index.js +1 -13
- package/build/components/Readme/Readme.js +21 -27
- package/build/components/Readme/Readme.js.map +1 -1
- package/build/components/Readme/Readme.spec.js +10 -13
- package/build/components/Readme/Readme.spec.js.map +1 -1
- package/build/components/Readme/index.js +1 -13
- package/build/components/Readme/types.js +1 -5
- package/build/components/Readme/utils.js +8 -16
- package/build/components/RegistryInfoDialog/RegistryInfoDialog.js +18 -24
- package/build/components/RegistryInfoDialog/index.js +1 -13
- package/build/components/RegistryInfoDialog/styles.js +34 -32
- package/build/components/RegistryInfoDialog/types.js +1 -5
- package/build/components/Repository/Repository.js +41 -46
- package/build/components/Repository/index.js +1 -13
- package/build/components/Search/AutoComplete/AutoComplete.js +22 -31
- package/build/components/Search/AutoComplete/index.js +1 -13
- package/build/components/Search/AutoComplete/styles.js +2 -9
- package/build/components/Search/Search.js +71 -69
- package/build/components/Search/SearchItem.js +89 -81
- package/build/components/Search/index.js +1 -13
- package/build/components/Search/styles.js +12 -19
- package/build/components/Search/utils.js +3 -9
- package/build/components/SettingsMenu/SettingsMenu.js +56 -57
- package/build/components/SettingsMenu/index.js +1 -13
- package/build/components/SideBarTitle/SideBarTitle.js +54 -53
- package/build/components/SideBarTitle/index.js +1 -13
- package/build/components/SideBarTitle/utils.js +6 -15
- package/build/components/TextField/TextField.js +22 -21
- package/build/components/TextField/index.js +1 -13
- package/build/components/UpLinks/UpLinks.js +32 -38
- package/build/components/UpLinks/UplinkLink.js +12 -18
- package/build/components/UpLinks/index.js +1 -13
- package/build/components/UpLinks/styles.js +30 -31
- package/build/components/Versions/HistoryList.js +56 -60
- package/build/components/Versions/TagList.js +29 -33
- package/build/components/Versions/Versions.js +45 -53
- package/build/components/Versions/index.js +1 -13
- package/build/components/Versions/styles.js +26 -27
- package/build/components/Versions/types.js +1 -5
- package/build/hooks/index.js +2 -20
- package/build/hooks/useLocalStorage.js +7 -12
- package/build/hooks/useOnClickOutside.js +4 -9
- package/build/index.js +63 -530
- package/build/layouts/Version/Version.js +9 -16
- package/build/layouts/Version/index.js +1 -13
- package/build/providers/AppConfigurationProvider/AppConfigurationProvider.js +24 -31
- package/build/providers/AppConfigurationProvider/index.js +1 -20
- package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.js +15 -24
- package/build/providers/PersistenceSettingProvider/index.js +1 -20
- package/build/providers/TranslatorProvider/TranslatorProvider.js +24 -30
- package/build/providers/TranslatorProvider/TranslatorProvider.spec.js +19 -22
- package/build/providers/TranslatorProvider/index.js +1 -26
- package/build/providers/VersionProvider/VersionProvider.js +27 -29
- package/build/providers/VersionProvider/index.js +1 -20
- package/build/providers/index.js +3 -38
- package/build/sections/Detail/ContainerContent.js +20 -28
- package/build/sections/Detail/Detail.js +22 -30
- package/build/sections/Detail/ReadmeSection.js +8 -14
- package/build/sections/Detail/Tabs.js +20 -26
- package/build/sections/Detail/index.js +1 -13
- package/build/sections/Footer/Footer.js +76 -73
- package/build/sections/Footer/index.js +1 -13
- package/build/sections/Footer/styles.js +63 -58
- package/build/sections/Header/Header.js +34 -42
- package/build/sections/Header/HeaderGreetings.js +12 -18
- package/build/sections/Header/HeaderLeft.js +25 -29
- package/build/sections/Header/HeaderMenu.js +23 -29
- package/build/sections/Header/HeaderRight.js +41 -49
- package/build/sections/Header/HeaderSettingsDialog.js +60 -58
- package/build/sections/Header/HeaderToolTip.js +13 -17
- package/build/sections/Header/HeaderToolTipIcon.js +23 -31
- package/build/sections/Header/LanguageSwitch.js +56 -59
- package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.js +75 -80
- package/build/sections/Header/RegistryInfoContent/index.js +1 -13
- package/build/sections/Header/RegistryInfoContent/styles.js +13 -17
- package/build/sections/Header/index.js +1 -13
- package/build/sections/Header/styles.js +43 -47
- package/build/sections/Home/Home.js +14 -19
- package/build/sections/Home/index.js +1 -13
- package/build/sections/SideBar/Sidebar.js +40 -47
- package/build/sections/SideBar/index.js +1 -13
- package/build/sections/index.js +2 -20
- package/build/src/Theme/index.d.ts +1 -1
- package/build/src/Theme/theme.d.ts +14 -2
- package/build/src/components/Dependencies/DependencyBlock.d.ts +2 -1
- package/build/src/components/Loading/styles.d.ts +2 -1
- package/build/src/components/Package/styles.d.ts +4 -3
- package/build/src/components/RegistryInfoDialog/styles.d.ts +3 -2
- package/build/src/components/Search/styles.d.ts +2 -1
- package/build/src/components/UpLinks/styles.d.ts +3 -2
- package/build/src/components/Versions/styles.d.ts +3 -2
- package/build/src/sections/Footer/styles.d.ts +6 -5
- package/build/src/sections/Header/RegistryInfoContent/styles.d.ts +3 -2
- package/build/src/sections/Header/styles.d.ts +3 -2
- package/build/store/api.js +28 -29
- package/build/store/index.js +3 -51
- package/build/store/models/configuration.js +20 -22
- package/build/store/models/download.js +26 -27
- package/build/store/models/index.js +13 -19
- package/build/store/models/login.js +60 -63
- package/build/store/models/manifest.js +57 -58
- package/build/store/models/packages.js +29 -27
- package/build/store/models/routes.js +1 -7
- package/build/store/models/search.js +62 -61
- package/build/store/models/utils.js +1 -7
- package/build/store/storage.js +4 -11
- package/build/store/store.js +6 -13
- package/build/test/i18n-config.js +4 -11
- package/build/test/test-react-testing-library.js +32 -50
- package/build/types/index.js +1 -5
- package/build/types/packageMeta.js +1 -5
- package/build/utils/__partials__/packageMeta.js +1 -7
- package/build/utils/cli-utils.js +12 -32
- package/build/utils/index.js +8 -74
- package/build/utils/loadable.js +6 -14
- package/build/utils/routes.js +1 -7
- package/build/utils/token.js +11 -18
- package/build/utils/url.js +12 -22
- package/build/utils/utils.js +32 -46
- package/package.json +12 -10
- package/src/AppTest/AppRoute.test.tsx +5 -4
- package/src/Theme/ResetStyles.tsx +4 -4
- package/src/Theme/index.ts +1 -1
- package/src/Theme/theme.ts +15 -4
- package/src/components/ActionBar/ActionBarAction.tsx +3 -3
- package/src/components/Author/Author.test.tsx +2 -1
- package/src/components/Author/styles.ts +1 -1
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +2 -1
- package/src/components/CopyClipboard/CopyToClipBoard.tsx +1 -1
- package/src/components/Dependencies/Dependencies.test.tsx +7 -0
- package/src/components/Dependencies/DependencyBlock.test.tsx +3 -2
- package/src/components/Dependencies/DependencyBlock.tsx +2 -2
- package/src/components/Deprecated/Deprecated.tsx +3 -1
- package/src/components/Developers/Developers.tsx +2 -2
- package/src/components/Developers/Title.tsx +1 -1
- package/src/components/Distribution/styles.ts +1 -1
- package/src/components/Engines/Engines.test.tsx +3 -2
- package/src/components/Engines/styles.ts +1 -1
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +2 -1
- package/src/components/Forbidden/Forbidden.test.tsx +3 -2
- package/src/components/Forbidden/Forbidden.tsx +1 -1
- package/src/components/FundButton/FundButton.tsx +3 -3
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +2 -1
- package/src/components/Install/Install.tsx +1 -1
- package/src/components/Install/InstallListItem.tsx +2 -1
- package/src/components/Keywords/Keywords.tsx +2 -1
- package/src/components/Label/Label.tsx +1 -1
- package/src/components/Loading/Spinner/Spinner.tsx +1 -1
- package/src/components/Loading/styles.ts +1 -1
- package/src/components/LoginDialog/LoginDialog.test.tsx +8 -7
- package/src/components/LoginDialog/LoginDialogFormError.tsx +3 -3
- package/src/components/LoginDialog/LoginDialogHeader.tsx +6 -6
- package/src/components/Logo/Logo.tsx +3 -3
- package/src/components/NotFound/NotFound.tsx +1 -1
- package/src/components/NotFound/Notfound.test.tsx +3 -2
- package/src/components/Package/Package.tsx +1 -1
- package/src/components/Package/styles.ts +8 -8
- package/src/components/PackageList/Packagelist.test.tsx +2 -1
- package/src/components/RawViewer/RawViewer.tsx +5 -3
- package/src/components/RegistryInfoDialog/styles.ts +5 -5
- package/src/components/Repository/Repository.tsx +2 -2
- package/src/components/Search/Search.test.tsx +9 -8
- package/src/components/Search/SearchItem.tsx +6 -6
- package/src/components/Search/styles.ts +5 -5
- package/src/components/SideBarTitle/SideBarTitle.tsx +3 -3
- package/src/components/UpLinks/styles.ts +3 -3
- package/src/components/Versions/HistoryList.tsx +2 -1
- package/src/components/Versions/Versions.test.tsx +8 -8
- package/src/components/Versions/Versions.tsx +1 -1
- package/src/components/Versions/styles.ts +2 -2
- package/src/providers/TranslatorProvider/TranslatorProvider.spec.tsx +2 -1
- package/src/providers/VersionProvider/VersionProvider.tsx +5 -2
- package/src/sections/Footer/Footer.tsx +2 -2
- package/src/sections/Footer/styles.ts +7 -7
- package/src/sections/Header/HeaderSettingsDialog.tsx +1 -1
- package/src/sections/Header/LanguageSwitch.tsx +3 -3
- package/src/sections/Header/RegistryInfoContent/styles.ts +1 -1
- package/src/sections/Header/styles.ts +9 -9
- package/src/sections/Home/Home.test.tsx +7 -3
- package/src/sections/SideBar/Sidebar.test.tsx +8 -7
- package/src/sections/SideBar/Sidebar.tsx +1 -0
- package/src/store/api.test.ts +8 -6
- package/src/store/models/login.test.ts +24 -20
- package/src/test/test-react-testing-library.tsx +3 -5
- package/src/utils/cli-utils.test.ts +10 -9
- package/src/utils/token.test.ts +5 -3
- package/tsconfig.build.json +1 -1
- package/vitest/api/glob-sidebar.json +12520 -0
- package/vitest/api/got-sidebar.json +23346 -0
- package/vitest/api/home-packages.json +40 -0
- package/vitest/api/jquery-readme.js +3 -0
- package/vitest/api/jquery-sidebar.json +5908 -0
- package/vitest/api/search-verdaccio.json +1192 -0
- package/vitest/api/storybook-readme.js +3 -0
- package/vitest/api/storybook-sidebar.json +53782 -0
- package/vitest/api/storybook-v.json +53782 -0
- package/vitest/identity.js +29 -0
- package/vitest/react-markdown.tsx +7 -0
- package/vitest/server-handlers.ts +82 -0
- package/vitest/server.ts +6 -0
- package/vitest/setup-env.ts +33 -0
- package/vitest/setup.ts +40 -0
- package/vitest/unit/components/__mocks__/token.ts +33 -0
- package/vitest/unit/empty-string.ts +1 -0
- package/vitest/unit/empty.ts +1 -0
- package/vitest/vitestSerializer.ts +31 -0
- package/vitest.config.mjs +39 -0
- package/build/__mocks__/react-markdown.js +0 -18
- package/build/__mocks__/remark-plugin.js +0 -8
- package/build/src/__mocks__/react-markdown.d.ts +0 -4
- package/build/src/__mocks__/remark-plugin.d.ts +0 -1
- package/src/__mocks__/react-markdown.tsx +0 -8
- package/src/__mocks__/remark-plugin.ts +0 -1
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
class ErrorBoundary extends _react.Component {
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
export default class ErrorBoundary extends Component {
|
|
11
3
|
constructor(props) {
|
|
12
4
|
super(props);
|
|
13
5
|
this.state = {
|
|
@@ -24,19 +16,18 @@ class ErrorBoundary extends _react.Component {
|
|
|
24
16
|
});
|
|
25
17
|
}
|
|
26
18
|
render() {
|
|
27
|
-
|
|
19
|
+
var {
|
|
28
20
|
hasError,
|
|
29
21
|
error,
|
|
30
22
|
info
|
|
31
23
|
} = this.state;
|
|
32
|
-
|
|
24
|
+
var {
|
|
33
25
|
children
|
|
34
26
|
} = this.props;
|
|
35
27
|
if (hasError) {
|
|
36
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h1", null, 'Something went wrong.'), /*#__PURE__*/React.createElement("p", null, "error: ".concat(error)), /*#__PURE__*/React.createElement("p", null, "info: ".concat(JSON.stringify(info))));
|
|
37
29
|
}
|
|
38
30
|
return children;
|
|
39
31
|
}
|
|
40
32
|
}
|
|
41
|
-
exports.default = ErrorBoundary;
|
|
42
33
|
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _ErrorBoundary.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _ErrorBoundary = _interopRequireDefault(require("./ErrorBoundary"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './ErrorBoundary';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
2
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3
|
+
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /* eslint-disable react/forbid-component-props */ /* eslint-disable verdaccio/jsx-no-style */
|
|
19
|
-
const Foebidden = () => {
|
|
20
|
-
const history = (0, _reactRouterDom.useHistory)();
|
|
21
|
-
const {
|
|
5
|
+
/* eslint-disable verdaccio/jsx-no-style */
|
|
6
|
+
|
|
7
|
+
import LockIcon from '@mui/icons-material/Lock';
|
|
8
|
+
import Box from '@mui/material/Box';
|
|
9
|
+
import Button from '@mui/material/Button';
|
|
10
|
+
import React, { useCallback } from 'react';
|
|
11
|
+
import { useTranslation } from 'react-i18next';
|
|
12
|
+
import { useHistory } from 'react-router-dom';
|
|
13
|
+
import Heading from '../Heading';
|
|
14
|
+
var Foebidden = () => {
|
|
15
|
+
var history = useHistory();
|
|
16
|
+
var {
|
|
22
17
|
t
|
|
23
|
-
} =
|
|
24
|
-
|
|
18
|
+
} = useTranslation();
|
|
19
|
+
var handleGoHome = useCallback(() => {
|
|
25
20
|
history.push('/');
|
|
26
21
|
}, [history]);
|
|
27
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
28
23
|
alignItems: "center",
|
|
29
24
|
"data-testid": "404",
|
|
30
25
|
display: "flex",
|
|
@@ -32,22 +27,22 @@ const Foebidden = () => {
|
|
|
32
27
|
flexGrow: 1,
|
|
33
28
|
justifyContent: "center",
|
|
34
29
|
p: 2
|
|
35
|
-
}, /*#__PURE__*/
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
36
31
|
color: "primary",
|
|
37
32
|
style: {
|
|
38
33
|
fontSize: 236
|
|
39
34
|
}
|
|
40
|
-
})), /*#__PURE__*/
|
|
35
|
+
})), /*#__PURE__*/React.createElement(StyledHeading, {
|
|
41
36
|
className: "not-found-text",
|
|
42
37
|
variant: "h4"
|
|
43
|
-
}, t('error.401.sorry-no-access')), /*#__PURE__*/
|
|
38
|
+
}, t('error.401.sorry-no-access')), /*#__PURE__*/React.createElement(Button, {
|
|
44
39
|
"data-testid": "not-found-go-to-home-button",
|
|
45
40
|
onClick: handleGoHome,
|
|
46
41
|
variant: "contained"
|
|
47
42
|
}, t('button.go-to-the-home-page')));
|
|
48
43
|
};
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
export default Foebidden;
|
|
45
|
+
var Container = /*#__PURE__*/_styled('div', process.env.NODE_ENV === "production" ? {
|
|
51
46
|
target: "e1p1nuky1"
|
|
52
47
|
} : {
|
|
53
48
|
target: "e1p1nuky1",
|
|
@@ -58,18 +53,21 @@ const Container = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV ==
|
|
|
58
53
|
} : {
|
|
59
54
|
name: "9th5i",
|
|
60
55
|
styles: "margin:0 auto",
|
|
61
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ZvcmJpZGRlbi9Gb3JiaWRkZW4udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdEa0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRm9yYmlkZGVuL0ZvcmJpZGRlbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9mb3JiaWQtY29tcG9uZW50LXByb3BzICovXG5cbi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtbm8tc3R5bGUgKi9cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMb2NrSWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0xvY2snO1xuaW1wb3J0IEJveCBmcm9t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OiAyMzYgfX0gLz5cbiAgICAgIDwvQ29udGFpbmVyPlxuICAgICAgPFN0eWxlZEhlYWRpbmcgY2xhc3NOYW1lPVwibm90LWZvdW5kLXRleHRcIiB2YXJpYW50PVwiaDRcIj5cbiAgICAgICAge3QoJ2Vycm9yLjQwMS5zb3JyeS1uby1hY2Nlc3MnKX1cbiAgICAgIDwvU3R5bGVkSGVhZGluZz5cbiAgICAgIDxCdXR0b24gZGF0YS10ZXN0aWQ9XCJub3QtZm91bmQtZ28tdG8taG9tZS1idXR0b25cIiBvbkNsaWNrPXtoYW5kbGVHb0hvbWV9IHZhcmlhbnQ9XCJjb250YWluZWRcIj5cbiAgICAgICAge3QoJ2J1dHRvbi5nby10by10aGUtaG9tZS1wYWdlJyl9XG4gICAgICA8L0J1dHRvbj5cbiAgICA8L0JveD5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZvZWJpZGRlbjtcblxuY29uc3QgQ29udGFpbmVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIG1hcmdpbjogJzAgYXV0bycsXG59KTtcblxuY29uc3QgU3R5bGVkSGVhZGluZyA9IHN0eWxlZChIZWFkaW5nKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gJ2xpZ2h0JyA/IHRoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWluIDogdGhlbWUucGFsZXR0ZS53aGl0ZSxcbiAgbWFyZ2luQm90dG9tOiAxNixcbn0pKTtcbiJdfQ== */",
|
|
62
57
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
63
58
|
});
|
|
64
|
-
|
|
59
|
+
var StyledHeading = /*#__PURE__*/_styled(Heading, process.env.NODE_ENV === "production" ? {
|
|
65
60
|
target: "e1p1nuky0"
|
|
66
61
|
} : {
|
|
67
62
|
target: "e1p1nuky0",
|
|
68
63
|
label: "StyledHeading"
|
|
69
|
-
})(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
})(_ref => {
|
|
65
|
+
var {
|
|
66
|
+
theme
|
|
67
|
+
} = _ref;
|
|
68
|
+
return {
|
|
69
|
+
color: theme.palette.mode === 'light' ? theme.palette.primary.main : theme.palette.white,
|
|
70
|
+
marginBottom: 16
|
|
71
|
+
};
|
|
72
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ZvcmJpZGRlbi9Gb3JiaWRkZW4udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9Ec0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRm9yYmlkZGVuL0ZvcmJpZGRlbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9mb3JiaWQtY29tcG9uZW50LXByb3BzICovXG5cbi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtbm8tc3R5bGUgKi9cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMb2NrSWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0xvY2snO1xuaW1wb3J0IEJveCBmcm9tICdAbXVpL21hdGVyaWFsL0JveCc7XG5pbXBvcnQgQnV0dG9uIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQnV0dG9uJztcbmltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IHVzZVRyYW5zbGF0aW9uIH0gZnJvbSAncmVhY3QtaTE4bmV4dCc7XG5pbXBvcnQgeyB1c2VIaXN0b3J5IH0gZnJvbSAncmVhY3Qtcm91dGVyLWRv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WluZWRcIj5cbiAgICAgICAge3QoJ2J1dHRvbi5nby10by10aGUtaG9tZS1wYWdlJyl9XG4gICAgICA8L0J1dHRvbj5cbiAgICA8L0JveD5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZvZWJpZGRlbjtcblxuY29uc3QgQ29udGFpbmVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIG1hcmdpbjogJzAgYXV0bycsXG59KTtcblxuY29uc3QgU3R5bGVkSGVhZGluZyA9IHN0eWxlZChIZWFkaW5nKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gJ2xpZ2h0JyA/IHRoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWluIDogdGhlbWUucGFsZXR0ZS53aGl0ZSxcbiAgbWFyZ2luQm90dG9tOiAxNixcbn0pKTtcbiJdfQ== */");
|
|
75
73
|
//# sourceMappingURL=Forbidden.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _Forbidden.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Forbidden = _interopRequireDefault(require("./Forbidden"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Forbidden';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _Favorite = _interopRequireDefault(require("@mui/icons-material/Favorite"));
|
|
9
|
-
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactI18next = require("react-i18next");
|
|
12
|
-
var _utils = require("../../utils");
|
|
13
|
-
var _LinkExternal = _interopRequireDefault(require("../LinkExternal"));
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
15
2
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
16
|
-
|
|
3
|
+
import Favorite from '@mui/icons-material/Favorite';
|
|
4
|
+
import Button from '@mui/material/Button';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { Trans } from 'react-i18next';
|
|
7
|
+
import { url } from '../../utils';
|
|
8
|
+
import LinkExternal from '../LinkExternal';
|
|
9
|
+
var StyledLink = /*#__PURE__*/_styled(LinkExternal, process.env.NODE_ENV === "production" ? {
|
|
17
10
|
target: "e1lzdgus2"
|
|
18
11
|
} : {
|
|
19
12
|
target: "e1lzdgus2",
|
|
20
13
|
label: "StyledLink"
|
|
21
|
-
})(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
})(_ref => {
|
|
15
|
+
var {
|
|
16
|
+
theme
|
|
17
|
+
} = _ref;
|
|
18
|
+
return {
|
|
19
|
+
marginTop: theme.spacing(2),
|
|
20
|
+
marginBottom: theme.spacing(2),
|
|
21
|
+
textDecoration: 'none',
|
|
22
|
+
display: 'block'
|
|
23
|
+
};
|
|
24
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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BhbGV0dGUub3JhbmdlLFxufSkpO1xuXG5jb25zdCBTdHlsZWRGdW5kU3Ryb25nID0gc3R5bGVkKCdzdHJvbmcnKSh7XG4gIG1hcmdpblJpZ2h0OiAzLFxufSk7XG5cbi8qIGVzbGludC1kaXNhYmxlIHJlYWN0L2pzeC1uby1iaW5kICovXG5jb25zdCBGdW5kQnV0dG9uOiBSZWFjdC5GQzx7IHBhY2thZ2VNZXRhOiBhbnkgfT4gPSAoeyBwYWNrYWdlTWV0YSB9KSA9PiB7XG4gIGNvbnN0IGZ1bmRpbmdVcmwgPSBwYWNrYWdlTWV0YT8ubGF0ZXN0Py5mdW5kaW5nPy51cmwgYXMgc3RyaW5nO1xuXG4gIGlmICghdXJsLmlzVVJMKGZ1bmRpbmdVcmwpKSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxTdHlsZWRMaW5rIHRvPXtmdW5kaW5nVXJsfSB2YXJpYW50PVwiYnV0dG9uXCI+XG4gICAgICA8QnV0dG9uXG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICAgIGZ1bGxXaWR0aD17dHJ1ZX1cbiAgICAgICAgc3RhcnRJY29uPXs8U3R5bGVkRmF2b3JpdGVJY29uIC8+fVxuICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgPlxuICAgICAgICA8VHJhbnMgY29tcG9uZW50cz17WzxTdHlsZWRGdW5kU3Ryb25nIGtleT1cImZ1bmRcIiAvPl19IGkxOG5LZXk9XCJidXR0b24uZnVuZC10aGlzLXBhY2thZ2VcIiAvPlxuICAgICAgPC9CdXR0b24+XG4gICAgPC9TdHlsZWRMaW5rPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRnVuZEJ1dHRvbjtcbiJdfQ== */");
|
|
25
|
+
var StyledFavoriteIcon = /*#__PURE__*/_styled(Favorite, process.env.NODE_ENV === "production" ? {
|
|
30
26
|
target: "e1lzdgus1"
|
|
31
27
|
} : {
|
|
32
28
|
target: "e1lzdgus1",
|
|
33
29
|
label: "StyledFavoriteIcon"
|
|
34
|
-
})(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
})(_ref2 => {
|
|
31
|
+
var {
|
|
32
|
+
theme
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return {
|
|
35
|
+
color: theme.palette.orange
|
|
36
|
+
};
|
|
37
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUIyQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9GdW5kQnV0dG9uL0Z1bmRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZhdm9yaXRlIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmF2b3JpdGUnO1xuaW1wb3J0IEJ1dHRvbiBmcm9tICdAbXVpL21hdGVyaWFsL0J1dHRvbic7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgVHJhbnMgfSBmcm9tICdyZWFjdC1pMThuZXh0JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5pbXBvcnQgeyB1cmwgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgTGlua0V4dGVybmFsIGZyb20gJy4uL0xpbmtFeHRlcm5hbCc7XG5cbmNvbnN0IFN0eWxlZExpbmsgPSBzdHlsZWQoTGlua0V4dGVybmFsKTx7IHRoZW1lPzogVGhlbW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M9e1s8U3R5bGVkRnVuZFN0cm9uZyBrZXk9XCJmdW5kXCIgLz5dfSBpMThuS2V5PVwiYnV0dG9uLmZ1bmQtdGhpcy1wYWNrYWdlXCIgLz5cbiAgICAgIDwvQnV0dG9uPlxuICAgIDwvU3R5bGVkTGluaz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZ1bmRCdXR0b247XG4iXX0= */");
|
|
38
|
+
var StyledFundStrong = /*#__PURE__*/_styled('strong', process.env.NODE_ENV === "production" ? {
|
|
40
39
|
target: "e1lzdgus0"
|
|
41
40
|
} : {
|
|
42
41
|
target: "e1lzdgus0",
|
|
@@ -47,32 +46,34 @@ const StyledFundStrong = /*#__PURE__*/(0, _base.default)('strong', process.env.N
|
|
|
47
46
|
} : {
|
|
48
47
|
name: "1pt2o8x",
|
|
49
48
|
styles: "margin-right:3px",
|
|
50
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
49
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Z1bmRCdXR0b24vRnVuZEJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUJ5QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9GdW5kQnV0dG9uL0Z1bmRCdXR0b24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IEZhdm9yaXRlIGZyb20gJ0BtdWkvaWNvbnMtbWF0ZXJpYWwvRmF2b3JpdGUnO1xuaW1wb3J0IEJ1dHRvbiBmcm9tICdAbXVpL21hdGVyaWFsL0J1dHRvbic7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgVHJhbnMgfSBmcm9tICdyZWFjd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gdmFyaWFudD1cImJ1dHRvblwiPlxuICAgICAgPEJ1dHRvblxuICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICBmdWxsV2lkdGg9e3RydWV9XG4gICAgICAgIHN0YXJ0SWNvbj17PFN0eWxlZEZhdm9yaXRlSWNvbiAvPn1cbiAgICAgICAgdmFyaWFudD1cIm91dGxpbmVkXCJcbiAgICAgID5cbiAgICAgICAgPFRyYW5zIGNvbXBvbmVudHM9e1s8U3R5bGVkRnVuZFN0cm9uZyBrZXk9XCJmdW5kXCIgLz5dfSBpMThuS2V5PVwiYnV0dG9uLmZ1bmQtdGhpcy1wYWNrYWdlXCIgLz5cbiAgICAgIDwvQnV0dG9uPlxuICAgIDwvU3R5bGVkTGluaz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZ1bmRCdXR0b247XG4iXX0= */",
|
|
51
50
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
52
51
|
});
|
|
53
52
|
|
|
54
53
|
/* eslint-disable react/jsx-no-bind */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
var FundButton = _ref3 => {
|
|
55
|
+
var _packageMeta$latest;
|
|
56
|
+
var {
|
|
57
|
+
packageMeta
|
|
58
|
+
} = _ref3;
|
|
59
|
+
var fundingUrl = packageMeta === null || packageMeta === void 0 || (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 || (_packageMeta$latest = _packageMeta$latest.funding) === null || _packageMeta$latest === void 0 ? void 0 : _packageMeta$latest.url;
|
|
60
|
+
if (!url.isURL(fundingUrl)) {
|
|
60
61
|
return null;
|
|
61
62
|
}
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/React.createElement(StyledLink, {
|
|
63
64
|
to: fundingUrl,
|
|
64
65
|
variant: "button"
|
|
65
|
-
}, /*#__PURE__*/
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
66
67
|
color: "primary",
|
|
67
68
|
fullWidth: true,
|
|
68
|
-
startIcon: /*#__PURE__*/
|
|
69
|
+
startIcon: /*#__PURE__*/React.createElement(StyledFavoriteIcon, null),
|
|
69
70
|
variant: "outlined"
|
|
70
|
-
}, /*#__PURE__*/
|
|
71
|
-
components: [/*#__PURE__*/
|
|
71
|
+
}, /*#__PURE__*/React.createElement(Trans, {
|
|
72
|
+
components: [/*#__PURE__*/React.createElement(StyledFundStrong, {
|
|
72
73
|
key: "fund"
|
|
73
74
|
})],
|
|
74
75
|
i18nKey: "button.fund-this-package"
|
|
75
76
|
})));
|
|
76
77
|
};
|
|
77
|
-
|
|
78
|
+
export default FundButton;
|
|
78
79
|
//# sourceMappingURL=FundButton.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _FundButton.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _FundButton = _interopRequireDefault(require("./FundButton"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './FundButton';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,81 +1,79 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _RegistryInfoDialog = _interopRequireDefault(require("../RegistryInfoDialog"));
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable verdaccio/jsx-spread */
|
|
1
|
+
var _excluded = ["children", "value", "index"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
/* eslint-disable verdaccio/jsx-spread */
|
|
6
|
+
import Box from '@mui/material/Box';
|
|
7
|
+
import Tab from '@mui/material/Tab';
|
|
8
|
+
import Tabs from '@mui/material/Tabs';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import RegistryInfoDialog from '../RegistryInfoDialog';
|
|
14
11
|
function a11yProps(index) {
|
|
15
12
|
return {
|
|
16
|
-
id:
|
|
17
|
-
'aria-controls':
|
|
13
|
+
id: "simple-tab-".concat(index),
|
|
14
|
+
'aria-controls': "simple-tabpanel-".concat(index)
|
|
18
15
|
};
|
|
19
16
|
}
|
|
20
17
|
function TabPanel(props) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
-
"aria-labelledby":
|
|
18
|
+
var {
|
|
19
|
+
children,
|
|
20
|
+
value,
|
|
21
|
+
index
|
|
22
|
+
} = props,
|
|
23
|
+
other = _objectWithoutProperties(props, _excluded);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
25
|
+
"aria-labelledby": "simple-tab-".concat(index),
|
|
29
26
|
hidden: value !== index,
|
|
30
|
-
id:
|
|
27
|
+
id: "simple-tabpanel-".concat(index),
|
|
31
28
|
role: "tabpanel"
|
|
32
|
-
}, other), value === index && /*#__PURE__*/
|
|
29
|
+
}, other), value === index && /*#__PURE__*/React.createElement(Box, {
|
|
33
30
|
sx: {
|
|
34
31
|
paddingTop: 3
|
|
35
32
|
}
|
|
36
33
|
}, children));
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
var HeaderInfoDialog = _ref => {
|
|
36
|
+
var {
|
|
37
|
+
onCloseDialog,
|
|
38
|
+
isOpen,
|
|
39
|
+
tabs = null,
|
|
40
|
+
tabPanels = null,
|
|
41
|
+
dialogTitle
|
|
42
|
+
} = _ref;
|
|
43
|
+
var [value, setValue] = React.useState(0);
|
|
44
|
+
var handleChange = (_event, newValue) => {
|
|
47
45
|
setValue(newValue);
|
|
48
46
|
};
|
|
49
|
-
return /*#__PURE__*/
|
|
47
|
+
return /*#__PURE__*/React.createElement(RegistryInfoDialog, {
|
|
50
48
|
onClose: onCloseDialog,
|
|
51
49
|
open: isOpen,
|
|
52
50
|
title: dialogTitle
|
|
53
|
-
}, /*#__PURE__*/
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
54
52
|
sx: {
|
|
55
53
|
width: '100%'
|
|
56
54
|
}
|
|
57
|
-
}, /*#__PURE__*/
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
58
56
|
sx: {
|
|
59
57
|
borderBottom: 1,
|
|
60
58
|
borderColor: 'divider'
|
|
61
59
|
}
|
|
62
|
-
}, /*#__PURE__*/
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Tabs, {
|
|
63
61
|
"aria-label": "infoTabs",
|
|
64
62
|
"data-testid": 'tabs',
|
|
65
63
|
onChange: handleChange,
|
|
66
64
|
value: value
|
|
67
65
|
}, tabs ? tabs.map((item, index) => {
|
|
68
|
-
return /*#__PURE__*/
|
|
66
|
+
return /*#__PURE__*/React.createElement(Tab, _extends({
|
|
69
67
|
key: item.label,
|
|
70
68
|
label: item.label
|
|
71
69
|
}, a11yProps(index), item));
|
|
72
70
|
}) : null)), tabPanels ? tabPanels.map((item, index) => {
|
|
73
|
-
return /*#__PURE__*/
|
|
71
|
+
return /*#__PURE__*/React.createElement(TabPanel, {
|
|
74
72
|
index: index,
|
|
75
73
|
key: index,
|
|
76
74
|
value: value
|
|
77
75
|
}, item.element);
|
|
78
76
|
}) : null));
|
|
79
77
|
};
|
|
80
|
-
|
|
78
|
+
export default HeaderInfoDialog;
|
|
81
79
|
//# sourceMappingURL=HeaderInfoDialog.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _HeaderInfoDialog.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _HeaderInfoDialog = _interopRequireDefault(require("./HeaderInfoDialog"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './HeaderInfoDialog';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
var _excluded = ["variant"];
|
|
12
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
import { default as MaterialUITypography } from '@mui/material/Typography';
|
|
6
|
+
import React, { forwardRef } from 'react';
|
|
7
|
+
var Heading = /*#__PURE__*/forwardRef(function Heading(_ref, ref) {
|
|
8
|
+
var {
|
|
9
|
+
variant = 'h6'
|
|
10
|
+
} = _ref,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
12
|
// eslint-disable-next-line verdaccio/jsx-spread
|
|
18
|
-
return /*#__PURE__*/
|
|
13
|
+
return /*#__PURE__*/React.createElement(MaterialUITypography, _extends({}, props, {
|
|
19
14
|
ref: ref,
|
|
20
15
|
variant: variant
|
|
21
16
|
}));
|
|
22
17
|
});
|
|
23
|
-
|
|
18
|
+
export default Heading;
|
|
24
19
|
//# sourceMappingURL=Heading.js.map
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _Heading.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Heading = _interopRequireDefault(require("./Heading"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Heading';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|