@verdaccio/ui-components 4.0.0-next-8.2 → 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 -273
- 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 +10 -16
- 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 +5 -12
- package/build/components/CopyClipboard/CopyToClipBoard.js +40 -40
- 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 +29 -35
- 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 +29 -37
- 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 +7 -14
- package/build/components/Engines/Engines.js +53 -54
- package/build/components/Engines/index.js +1 -13
- package/build/components/Engines/styles.js +5 -12
- package/build/components/ErrorBoundary/ErrorBoundary.js +5 -14
- package/build/components/ErrorBoundary/index.js +1 -13
- package/build/components/Forbidden/Forbidden.js +33 -35
- package/build/components/Forbidden/index.js +1 -13
- package/build/components/FundButton/FundButton.js +42 -41
- 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 +32 -39
- package/build/components/Install/InstallListItem.js +47 -52
- 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 +17 -18
- 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 +15 -19
- 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 +44 -47
- 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 +31 -35
- package/build/components/NotFound/index.js +1 -13
- package/build/components/Package/Package.js +105 -100
- package/build/components/Package/index.js +1 -20
- package/build/components/Package/styles.js +78 -73
- 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 +27 -33
- 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 +36 -41
- 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 +87 -79
- package/build/components/Search/index.js +1 -13
- package/build/components/Search/styles.js +7 -14
- 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 +52 -51
- 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 +28 -29
- package/build/components/Versions/HistoryList.js +56 -60
- package/build/components/Versions/TagList.js +29 -33
- package/build/components/Versions/Versions.js +44 -52
- 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 +73 -70
- package/build/sections/Footer/index.js +1 -13
- package/build/sections/Footer/styles.js +62 -57
- 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 +51 -54
- 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 +12 -16
- package/build/sections/Header/index.js +1 -13
- package/build/sections/Header/styles.js +32 -36
- 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/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 +11 -9
- package/src/AppTest/AppRoute.test.tsx +5 -4
- package/src/Theme/index.ts +1 -1
- package/src/components/Author/Author.test.tsx +2 -1
- package/src/components/CopyClipboard/CopyToClipBoard.test.tsx +2 -1
- package/src/components/Dependencies/Dependencies.test.tsx +7 -0
- package/src/components/Dependencies/DependencyBlock.test.tsx +3 -2
- package/src/components/Engines/Engines.test.tsx +3 -2
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +2 -1
- package/src/components/Forbidden/Forbidden.test.tsx +3 -2
- package/src/components/HeaderInfoDialog/HeaderInfoDialog.test.tsx +2 -1
- package/src/components/LoginDialog/LoginDialog.test.tsx +8 -7
- package/src/components/NotFound/Notfound.test.tsx +3 -2
- package/src/components/PackageList/Packagelist.test.tsx +2 -1
- package/src/components/Search/Search.test.tsx +9 -8
- package/src/components/Versions/Versions.test.tsx +8 -8
- package/src/providers/TranslatorProvider/TranslatorProvider.spec.tsx +2 -1
- package/src/providers/VersionProvider/VersionProvider.tsx +5 -2
- 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,42 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var _ = require("./");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const Title = ({
|
|
14
|
-
type
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
2
|
+
import Typography from '@mui/material/Typography';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { DeveloperType } from './';
|
|
6
|
+
var Title = _ref => {
|
|
7
|
+
var {
|
|
8
|
+
type
|
|
9
|
+
} = _ref;
|
|
10
|
+
var {
|
|
17
11
|
t
|
|
18
|
-
} =
|
|
12
|
+
} = useTranslation();
|
|
19
13
|
switch (type) {
|
|
20
|
-
case
|
|
21
|
-
return /*#__PURE__*/
|
|
14
|
+
case DeveloperType.CONTRIBUTORS:
|
|
15
|
+
return /*#__PURE__*/React.createElement(StyledText, {
|
|
22
16
|
variant: 'subtitle1'
|
|
23
17
|
}, t('sidebar.contributors.title'));
|
|
24
|
-
case
|
|
25
|
-
return /*#__PURE__*/
|
|
18
|
+
case DeveloperType.MAINTAINERS:
|
|
19
|
+
return /*#__PURE__*/React.createElement(StyledText, {
|
|
26
20
|
variant: 'subtitle1'
|
|
27
21
|
}, t('sidebar.maintainers.title'));
|
|
28
22
|
}
|
|
29
23
|
};
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
export default Title;
|
|
25
|
+
var StyledText = /*#__PURE__*/_styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
32
26
|
target: "e1ssrjap0"
|
|
33
27
|
} : {
|
|
34
28
|
target: "e1ssrjap0",
|
|
35
29
|
label: "StyledText"
|
|
36
|
-
})(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
})(_ref2 => {
|
|
31
|
+
var {
|
|
32
|
+
theme
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return {
|
|
35
|
+
fontWeight: theme.fontWeight.bold,
|
|
36
|
+
marginBottom: '10px'
|
|
37
|
+
};
|
|
38
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0RldmVsb3BlcnMvVGl0bGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdCbUIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRGV2ZWxvcGVycy9UaXRsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgVHlwb2dyYXBoeSBmcm9tICdAbXVpL21hdGVyaWFsL1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14 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
1
|
function getUniqueDeveloperValues(developers) {
|
|
8
2
|
if (!developers) {
|
|
9
3
|
return [];
|
|
10
4
|
}
|
|
11
5
|
return developers.reduce((accumulator, current) => accumulator.some(developer => developer.email === current.email) ? accumulator : [...accumulator, current], []);
|
|
12
6
|
}
|
|
13
|
-
|
|
7
|
+
export default getUniqueDeveloperValues;
|
|
14
8
|
//# sourceMappingURL=get-unique-developer-values.js.map
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DeveloperType", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _DeveloperType.DeveloperType;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "default", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _Developers.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _Developers = _interopRequireDefault(require("./Developers"));
|
|
19
|
-
var _DeveloperType = require("./DeveloperType");
|
|
20
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Developers';
|
|
2
|
+
export { DeveloperType } from './DeveloperType';
|
|
21
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
packageMeta
|
|
21
|
-
}) => {
|
|
22
|
-
const {
|
|
1
|
+
import List from '@mui/material/List';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { fileSizeSI, formatLicense } from '../../utils/utils';
|
|
5
|
+
import { DistChips, DistListItem, StyledText } from './styles';
|
|
6
|
+
var DistChip = _ref => {
|
|
7
|
+
var {
|
|
8
|
+
name,
|
|
9
|
+
children
|
|
10
|
+
} = _ref;
|
|
11
|
+
return children ? /*#__PURE__*/React.createElement(DistChips, {
|
|
12
|
+
label: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("b", null, name), ': ', children)
|
|
13
|
+
}) : null;
|
|
14
|
+
};
|
|
15
|
+
var Dist = _ref2 => {
|
|
16
|
+
var {
|
|
17
|
+
packageMeta
|
|
18
|
+
} = _ref2;
|
|
19
|
+
var {
|
|
23
20
|
t
|
|
24
|
-
} =
|
|
25
|
-
if (!packageMeta
|
|
21
|
+
} = useTranslation();
|
|
22
|
+
if (!(packageMeta !== null && packageMeta !== void 0 && packageMeta.latest)) {
|
|
26
23
|
return null;
|
|
27
24
|
}
|
|
28
|
-
|
|
25
|
+
var {
|
|
29
26
|
dist,
|
|
30
27
|
license
|
|
31
28
|
} = packageMeta.latest;
|
|
32
29
|
if (!dist && !license) {
|
|
33
30
|
return null;
|
|
34
31
|
}
|
|
35
|
-
return /*#__PURE__*/
|
|
36
|
-
subheader: /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/React.createElement(List, {
|
|
33
|
+
subheader: /*#__PURE__*/React.createElement(StyledText, {
|
|
37
34
|
variant: "subtitle1"
|
|
38
35
|
}, t('sidebar.distribution.title'))
|
|
39
|
-
}, /*#__PURE__*/
|
|
36
|
+
}, /*#__PURE__*/React.createElement(DistListItem, null, (dist === null || dist === void 0 ? void 0 : dist.fileCount) && /*#__PURE__*/React.createElement(DistChip, {
|
|
40
37
|
name: t('sidebar.distribution.file-count')
|
|
41
|
-
},
|
|
38
|
+
}, "".concat(dist.fileCount)), dist !== null && dist !== void 0 && dist.unpackedSize ? /*#__PURE__*/React.createElement(DistChip, {
|
|
42
39
|
name: t('sidebar.distribution.size')
|
|
43
|
-
},
|
|
40
|
+
}, fileSizeSI(dist.unpackedSize)) : null, /*#__PURE__*/React.createElement(DistChip, {
|
|
44
41
|
name: t('sidebar.distribution.license')
|
|
45
|
-
},
|
|
42
|
+
}, formatLicense(license))));
|
|
46
43
|
};
|
|
47
|
-
|
|
44
|
+
export default Dist;
|
|
48
45
|
//# sourceMappingURL=Dist.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 _Dist.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Dist = _interopRequireDefault(require("./Dist"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Dist';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyledText = exports.DistListItem = exports.DistChips = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
|
|
9
|
-
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
10
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
12
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)."; }
|
|
13
|
-
|
|
3
|
+
import Chip from '@mui/material/Chip';
|
|
4
|
+
import ListItem from '@mui/material/ListItem';
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
export var StyledText = /*#__PURE__*/_styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
14
7
|
target: "e1mn5d922"
|
|
15
8
|
} : {
|
|
16
9
|
target: "e1mn5d922",
|
|
@@ -19,7 +12,7 @@ const StyledText = exports.StyledText = /*#__PURE__*/(0, _base.default)(_Typogra
|
|
|
19
12
|
fontWeight: props.theme.fontWeight.bold,
|
|
20
13
|
textTransform: 'capitalize'
|
|
21
14
|
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTzBCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2hpcCBmcm9tICdAbXVpL21hdGVyaWFsL0NoaXAnO1xuaW1wb3J0IExpc3RJdGVtIGZyb20gJ0BtdWkvbWF0ZXJpYWwvTGlzdEl0ZW0nO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lLmZvbnRXZWlnaHQuYm9sZCxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgRGlzdExpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmdMZWZ0OiAwLFxuICBwYWRkaW5nUmlnaHQ6IDAsXG4gIGZsZXhXcmFwOiAnd3JhcCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IERpc3RDaGlwcyA9IHN0eWxlZChDaGlwKSh7XG4gIG1hcmdpblJpZ2h0OiA1LFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG4gIG1hcmdpblRvcDogNSxcbn0pO1xuIl19 */");
|
|
22
|
-
|
|
15
|
+
export var DistListItem = /*#__PURE__*/_styled(ListItem, process.env.NODE_ENV === "production" ? {
|
|
23
16
|
target: "e1mn5d921"
|
|
24
17
|
} : {
|
|
25
18
|
target: "e1mn5d921",
|
|
@@ -33,7 +26,7 @@ const DistListItem = exports.DistListItem = /*#__PURE__*/(0, _base.default)(_Lis
|
|
|
33
26
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWTRCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Rpc3RyaWJ1dGlvbi9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgQ2hpcCBmcm9tICdAbXVpL21hdGVyaWFsL0NoaXAnO1xuaW1wb3J0IExpc3RJdGVtIGZyb20gJ0BtdWkvbWF0ZXJpYWwvTGlzdEl0ZW0nO1xuaW1wb3J0IFR5cG9ncmFwaHkgZnJvbSAnQG11aS9tYXRlcmlhbC9UeXBvZ3JhcGh5JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi9UaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRUZXh0ID0gc3R5bGVkKFR5cG9ncmFwaHkpPHsgdGhlbWU/OiBUaGVtZSB9PigocHJvcHMpID0+ICh7XG4gIGZvbnRXZWlnaHQ6IHByb3BzLnRoZW1lLmZvbnRXZWlnaHQuYm9sZCxcbiAgdGV4dFRyYW5zZm9ybTogJ2NhcGl0YWxpemUnLFxufSkpO1xuXG5leHBvcnQgY29uc3QgRGlzdExpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmdMZWZ0OiAwLFxuICBwYWRkaW5nUmlnaHQ6IDAsXG4gIGZsZXhXcmFwOiAnd3JhcCcsXG59KTtcblxuZXhwb3J0IGNvbnN0IERpc3RDaGlwcyA9IHN0eWxlZChDaGlwKSh7XG4gIG1hcmdpblJpZ2h0OiA1LFxuICB0ZXh0VHJhbnNmb3JtOiAnY2FwaXRhbGl6ZScsXG4gIG1hcmdpblRvcDogNSxcbn0pO1xuIl19 */",
|
|
34
27
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
35
28
|
});
|
|
36
|
-
|
|
29
|
+
export var DistChips = /*#__PURE__*/_styled(Chip, process.env.NODE_ENV === "production" ? {
|
|
37
30
|
target: "e1mn5d920"
|
|
38
31
|
} : {
|
|
39
32
|
target: "e1mn5d920",
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { Typography } from '@mui/material';
|
|
2
|
+
import Avatar from '@mui/material/Avatar';
|
|
3
|
+
import Grid from '@mui/material/Grid';
|
|
4
|
+
import List from '@mui/material/List';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { NodeJS, Npm, Pnpm, Yarn } from '../Icons';
|
|
8
|
+
import { EngineListItem, StyledText } from './styles';
|
|
2
9
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
9
|
-
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
10
|
-
var _List = _interopRequireDefault(require("@mui/material/List"));
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _reactI18next = require("react-i18next");
|
|
13
|
-
var _Icons = require("../Icons");
|
|
14
|
-
var _styles = require("./styles");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
10
|
/**
|
|
17
11
|
* The props type for {@link EngineItem}.
|
|
18
12
|
*/
|
|
@@ -22,30 +16,33 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
22
16
|
*
|
|
23
17
|
* @category Component
|
|
24
18
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
19
|
+
var EngineItem = _ref => {
|
|
20
|
+
var {
|
|
21
|
+
title,
|
|
22
|
+
element,
|
|
23
|
+
engineText
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
26
|
+
item: true,
|
|
27
|
+
xs: 6
|
|
28
|
+
}, /*#__PURE__*/React.createElement(List, {
|
|
29
|
+
subheader: /*#__PURE__*/React.createElement(StyledText, {
|
|
30
|
+
variant: 'subtitle1'
|
|
31
|
+
}, title)
|
|
32
|
+
}, /*#__PURE__*/React.createElement(EngineListItem, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
33
|
+
sx: {
|
|
34
|
+
backgroundColor: 'transparent',
|
|
35
|
+
marginLeft: 0,
|
|
36
|
+
padding: 0
|
|
37
|
+
}
|
|
38
|
+
}, element), /*#__PURE__*/React.createElement(Typography, {
|
|
39
|
+
sx: {
|
|
40
|
+
margin: 0,
|
|
41
|
+
padding: '0 0 0 10px'
|
|
42
|
+
},
|
|
43
|
+
variant: "subtitle2"
|
|
44
|
+
}, engineText))));
|
|
45
|
+
};
|
|
49
46
|
|
|
50
47
|
/**
|
|
51
48
|
* The props type for {@link Engine}.
|
|
@@ -56,35 +53,37 @@ const EngineItem = ({
|
|
|
56
53
|
*
|
|
57
54
|
* @category Component
|
|
58
55
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
var Engine = _ref2 => {
|
|
57
|
+
var _packageMeta$latest;
|
|
58
|
+
var {
|
|
59
|
+
packageMeta
|
|
60
|
+
} = _ref2;
|
|
61
|
+
var {
|
|
63
62
|
t
|
|
64
|
-
} =
|
|
65
|
-
|
|
63
|
+
} = useTranslation();
|
|
64
|
+
var engines = packageMeta === null || packageMeta === void 0 || (_packageMeta$latest = packageMeta.latest) === null || _packageMeta$latest === void 0 ? void 0 : _packageMeta$latest.engines;
|
|
66
65
|
if (!engines) {
|
|
67
66
|
return null;
|
|
68
67
|
}
|
|
69
|
-
return /*#__PURE__*/
|
|
68
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
70
69
|
container: true
|
|
71
|
-
}, engines.node ? /*#__PURE__*/
|
|
72
|
-
element: /*#__PURE__*/
|
|
70
|
+
}, engines.node ? /*#__PURE__*/React.createElement(EngineItem, {
|
|
71
|
+
element: /*#__PURE__*/React.createElement(NodeJS, null),
|
|
73
72
|
engineText: engines.node,
|
|
74
73
|
title: t('sidebar.engines.node-js')
|
|
75
|
-
}) : null, engines.npm ? /*#__PURE__*/
|
|
76
|
-
element: /*#__PURE__*/
|
|
74
|
+
}) : null, engines.npm ? /*#__PURE__*/React.createElement(EngineItem, {
|
|
75
|
+
element: /*#__PURE__*/React.createElement(Npm, null),
|
|
77
76
|
engineText: engines.npm,
|
|
78
77
|
title: t('sidebar.engines.npm-version')
|
|
79
|
-
}) : null, engines.yarn ? /*#__PURE__*/
|
|
80
|
-
element: /*#__PURE__*/
|
|
78
|
+
}) : null, engines.yarn ? /*#__PURE__*/React.createElement(EngineItem, {
|
|
79
|
+
element: /*#__PURE__*/React.createElement(Yarn, null),
|
|
81
80
|
engineText: engines.yarn,
|
|
82
81
|
title: t('sidebar.engines.yarn-version')
|
|
83
|
-
}) : null, engines.pnpm ? /*#__PURE__*/
|
|
84
|
-
element: /*#__PURE__*/
|
|
82
|
+
}) : null, engines.pnpm ? /*#__PURE__*/React.createElement(EngineItem, {
|
|
83
|
+
element: /*#__PURE__*/React.createElement(Pnpm, null),
|
|
85
84
|
engineText: engines.pnpm,
|
|
86
85
|
title: t('sidebar.engines.pnpm-version')
|
|
87
86
|
}) : null);
|
|
88
87
|
};
|
|
89
|
-
|
|
88
|
+
export default Engine;
|
|
90
89
|
//# sourceMappingURL=Engines.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 _Engines.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Engines = _interopRequireDefault(require("./Engines"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
export { default } from './Engines';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyledText = exports.EngineListItem = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
|
|
9
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
11
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)."; }
|
|
12
|
-
|
|
3
|
+
import ListItem from '@mui/material/ListItem';
|
|
4
|
+
import Typography from '@mui/material/Typography';
|
|
5
|
+
export var StyledText = /*#__PURE__*/_styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
13
6
|
target: "exjcs7c1"
|
|
14
7
|
} : {
|
|
15
8
|
target: "exjcs7c1",
|
|
@@ -18,7 +11,7 @@ const StyledText = exports.StyledText = /*#__PURE__*/(0, _base.default)(_Typogra
|
|
|
18
11
|
fontWeight: props.theme.fontWeight.bold,
|
|
19
12
|
textTransform: 'capitalize'
|
|
20
13
|
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0VuZ2luZXMvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU0wQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9FbmdpbmVzL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMaXN0SXRlbSBmcm9tICdAbXVpL21hdGVyaWFsL0xpc3RJdGVtJztcbmltcG9ydCBUeXBvZ3JhcGh5IGZyb20gJ0BtdWkvbWF0ZXJpYWwvVHlwb2dyYXBoeSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vVGhlbWUnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVGV4dCA9IHN0eWxlZChUeXBvZ3JhcGh5KTx7IHRoZW1lPzogVGhlbWUgfT4oKHByb3BzKSA9PiAoe1xuICBmb250V2VpZ2h0OiBwcm9wcy50aGVtZS5mb250V2VpZ2h0LmJvbGQsXG4gIHRleHRUcmFuc2Zvcm06ICdjYXBpdGFsaXplJyxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IEVuZ2luZUxpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKSh7XG4gIHBhZGRpbmc6IDAsXG59KTtcbiJdfQ== */");
|
|
21
|
-
|
|
14
|
+
export var EngineListItem = /*#__PURE__*/_styled(ListItem, process.env.NODE_ENV === "production" ? {
|
|
22
15
|
target: "exjcs7c0"
|
|
23
16
|
} : {
|
|
24
17
|
target: "exjcs7c0",
|
|
@@ -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",
|
|
@@ -61,15 +56,18 @@ const Container = /*#__PURE__*/(0, _base.default)('div', process.env.NODE_ENV ==
|
|
|
61
56
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ZvcmJpZGRlbi9Gb3JiaWRkZW4udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdEa0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRm9yYmlkZGVuL0ZvcmJpZGRlbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9mb3JiaWQtY29tcG9uZW50LXByb3BzICovXG5cbi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtbm8tc3R5bGUgKi9cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMb2NrSWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0xvY2snO1xuaW1wb3J0IEJveCBmcm9tICdAbXVpL21hdGVyaWFsL0JveCc7XG5pbXBvcnQgQnV0dG9uIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQnV0dG9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QwMS5zb3JyeS1uby1hY2Nlc3MnKX1cbiAgICAgIDwvU3R5bGVkSGVhZGluZz5cbiAgICAgIDxCdXR0b24gZGF0YS10ZXN0aWQ9XCJub3QtZm91bmQtZ28tdG8taG9tZS1idXR0b25cIiBvbkNsaWNrPXtoYW5kbGVHb0hvbWV9IHZhcmlhbnQ9XCJjb250YWluZWRcIj5cbiAgICAgICAge3QoJ2J1dHRvbi5nby10by10aGUtaG9tZS1wYWdlJyl9XG4gICAgICA8L0J1dHRvbj5cbiAgICA8L0JveD5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZvZWJpZGRlbjtcblxuY29uc3QgQ29udGFpbmVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIG1hcmdpbjogJzAgYXV0bycsXG59KTtcblxuY29uc3QgU3R5bGVkSGVhZGluZyA9IHN0eWxlZChIZWFkaW5nKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gJ2xpZ2h0JyA/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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ZvcmJpZGRlbi9Gb3JiaWRkZW4udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9Ec0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvRm9yYmlkZGVuL0ZvcmJpZGRlbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSByZWFjdC9mb3JiaWQtY29tcG9uZW50LXByb3BzICovXG5cbi8qIGVzbGludC1kaXNhYmxlIHZlcmRhY2Npby9qc3gtbm8tc3R5bGUgKi9cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMb2NrSWNvbiBmcm9tICdAbXVpL2ljb25zLW1hdGVyaWFsL0xvY2snO1xuaW1wb3J0IEJveCBmcm9tICdAbXVpL21hdGVyaWFsL0JveCc7XG5pbXBvcnQgQnV0dG9uIGZyb20gJ0BtdWkvbWF0ZXJpYWwvQnV0dG9uJztcbmltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IHVzZVRyYW5zbGF0aW9uIH0gZnJvbSAncmVhY3QtaTE4bmV4dCc7XG5pbXBvcnQgeyB1c2VIaXN0b3J5IH0gZnJvbSAncmVhY3Qtcm91dGVyLWRvbSc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4nO1xuaW1wb3J0IEhlYWRpbmcgZnJvbSAnLi4vSGVhZGluZyc7XG5cbmNvbnN0IEZvZWJpZGRlbjogUmVhY3QuRkMgPSAoKSA9PiB7XG4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xuY29uc3QgQ29udGFpbmVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIG1hcmdpbjogJzAgYXV0bycsXG59KTtcblxuY29uc3QgU3R5bGVkSGVhZGluZyA9IHN0eWxlZChIZWFkaW5nKTx7IHRoZW1lPzogVGhlbWUgfT4oKHsgdGhlbWUgfSkgPT4gKHtcbiAgY29sb3I6IHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gJ2xpZ2h0JyA/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
|