@verdaccio/ui-theme 6.0.0-6-next.12 → 6.0.0-6-next.13
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 +1 -1
- package/.eslintrc +0 -15
- package/CHANGELOG.md +6 -0
- package/jest/setup-env.ts +4 -1
- package/jest/unit/components/__mocks__/token.ts +0 -1
- package/jest/unit/components/store/login.ts +1 -0
- package/package.json +34 -37
- package/src/App/App.test.tsx +4 -6
- package/src/App/App.tsx +3 -5
- package/src/App/AppRoute.tsx +1 -1
- package/src/App/Footer/Footer.test.tsx +0 -1
- package/src/App/Footer/Footer.tsx +3 -3
- package/src/App/Footer/__snapshots__/Footer.test.tsx.snap +25 -9
- package/src/App/Footer/styles.ts +2 -3
- package/src/App/Header/Header.test.tsx +3 -5
- package/src/App/Header/Header.tsx +3 -5
- package/src/App/Header/HeaderGreetings.tsx +0 -1
- package/src/App/Header/HeaderLeft.tsx +0 -1
- package/src/App/Header/HeaderMenu.tsx +3 -3
- package/src/App/Header/HeaderRight.tsx +1 -2
- package/src/App/Header/HeaderToolTip.tsx +0 -1
- package/src/App/Header/HeaderToolTipIcon.tsx +10 -10
- package/src/App/Header/LanguageSwitch.tsx +4 -5
- package/src/App/Header/LoginDialog/LoginDialog.test.tsx +4 -7
- package/src/App/Header/LoginDialog/LoginDialog.tsx +2 -4
- package/src/App/Header/LoginDialog/LoginDialogCloseButton.tsx +1 -2
- package/src/App/Header/LoginDialog/LoginDialogForm.tsx +0 -1
- package/src/App/Header/LoginDialog/LoginDialogFormError.tsx +1 -2
- package/src/App/Header/LoginDialog/LoginDialogHeader.tsx +4 -4
- package/src/App/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +1 -2
- package/src/App/Header/RegistryInfoContent/RegistryInfoContent.tsx +9 -10
- package/src/App/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +1 -2
- package/src/App/Header/RegistryInfoDialog/styles.ts +0 -1
- package/src/App/Header/Search/Search.test.tsx +32 -41
- package/src/App/Header/Search/Search.tsx +15 -58
- package/src/App/Header/Search/__snapshots__/Search.test.tsx.snap +392 -28
- package/src/App/Header/styles.ts +2 -3
- package/src/App/utils/loadable.tsx +2 -1
- package/src/components/ActionBar/ActionBar.test.tsx +5 -13
- package/src/components/ActionBar/ActionBar.tsx +0 -2
- package/src/components/ActionBar/ActionBarAction.tsx +6 -7
- package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +198 -53
- package/src/components/AppBar.tsx +1 -1
- package/src/components/Author/Author.test.tsx +1 -3
- package/src/components/Author/Author.tsx +2 -4
- package/src/components/Author/__snapshots__/Author.test.tsx.snap +804 -48
- package/src/components/Author/styles.ts +0 -1
- package/src/components/AutoComplete/AutoComplete.tsx +85 -163
- package/src/components/AutoComplete/AutoCompleteV2.tsx +7 -9
- package/src/components/AutoComplete/styles.tsx +0 -15
- package/src/components/Avatar.tsx +1 -1
- package/src/components/Box.tsx +1 -1
- package/src/components/Button.tsx +1 -1
- package/src/components/Card.tsx +1 -1
- package/src/components/CardActions.tsx +1 -1
- package/src/components/CardContent.tsx +1 -1
- package/src/components/Chip.tsx +1 -1
- package/src/components/CircularProgress.tsx +2 -2
- package/src/components/CopyToClipBoard.tsx +2 -3
- package/src/components/Dialog.tsx +1 -1
- package/src/components/DialogActions.tsx +2 -2
- package/src/components/DialogContent.tsx +2 -2
- package/src/components/DialogTitle.tsx +1 -1
- package/src/components/Divider.tsx +1 -1
- package/src/components/FloatingActionButton.tsx +1 -1
- package/src/components/FormControl.tsx +1 -1
- package/src/components/FormHelperText.tsx +2 -2
- package/src/components/Grid.tsx +1 -1
- package/src/components/Heading.tsx +1 -1
- package/src/components/IconButton.tsx +1 -1
- package/src/components/Input.tsx +1 -1
- package/src/components/InputAdornment/InputAdornment.tsx +2 -2
- package/src/components/InputLabel.tsx +1 -1
- package/src/components/Label/Label.test.tsx +0 -1
- package/src/components/Label/Label.tsx +1 -2
- package/src/components/List.tsx +1 -1
- package/src/components/ListItem.tsx +1 -1
- package/src/components/ListItemText.tsx +1 -4
- package/src/components/Loading/Loading.test.tsx +0 -1
- package/src/components/Loading/Loading.tsx +1 -2
- package/src/components/Loading/Spinner/Spinner.test.tsx +1 -2
- package/src/components/Loading/Spinner/Spinner.tsx +1 -2
- package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +114 -16
- package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +63 -11
- package/src/components/Loading/styles.ts +1 -2
- package/src/components/Logo/Logo.test.tsx +0 -1
- package/src/components/Logo/Logo.tsx +1 -2
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +2 -0
- package/src/components/Menu.tsx +1 -1
- package/src/components/MenuItem.tsx +1 -1
- package/src/components/NotFound/NotFound.tsx +1 -3
- package/src/components/NotFound/Notfound.test.tsx +1 -2
- package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +138 -11
- package/src/components/NotFound/styles.ts +0 -1
- package/src/components/Paper.tsx +1 -1
- package/src/components/SnackbarContent.tsx +1 -1
- package/src/components/SvgIcon.tsx +1 -1
- package/src/components/Tab.tsx +1 -1
- package/src/components/Tabs.tsx +1 -1
- package/src/components/Text/Text.tsx +1 -1
- package/src/components/Text/TextConfig.ts +1 -1
- package/src/components/TextField/TextField.test.tsx +0 -1
- package/src/components/TextField/TextField.tsx +2 -2
- package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +216 -3
- package/src/components/Toolbar.tsx +1 -1
- package/src/components/Tooltip.tsx +1 -1
- package/src/design-tokens/ResetStyles.tsx +1 -1
- package/src/design-tokens/StyleBaseline.tsx +2 -2
- package/src/design-tokens/ThemeProvider.tsx +15 -12
- package/src/design-tokens/theme.ts +28 -26
- package/src/design-tokens/useTheme.ts +1 -1
- package/src/{design-tokens → hooks}/useLocalStorage.ts +0 -0
- package/src/{design-tokens → hooks}/useOnClickOutside.ts +0 -0
- package/src/i18n/__mocks__/loadTranslationFile.ts +5 -0
- package/src/i18n/config.ts +1 -15
- package/src/i18n/download_translations/es-ES/ui.json +17 -17
- package/src/i18n/download_translations/it-IT/ui.json +77 -77
- package/src/i18n/download_translations/tr-TR/ui.json +6 -6
- package/src/i18n/download_translations/vi-VN/ui.json +2 -2
- package/src/i18n/loadTranslationFile.ts +14 -0
- package/src/index.tsx +2 -1
- package/src/pages/Version/DetailContainer/Dependencies/Dependencies.test.tsx +0 -2
- package/src/pages/Version/DetailContainer/Dependencies/Dependencies.tsx +1 -3
- package/src/pages/Version/DetailContainer/Dependencies/styles.ts +0 -1
- package/src/pages/Version/DetailContainer/Deprecated/Deprecated.test.tsx +1 -3
- package/src/pages/Version/DetailContainer/Deprecated/Deprecated.tsx +2 -3
- package/src/pages/Version/DetailContainer/DetailContainer.test.tsx +0 -1
- package/src/pages/Version/DetailContainer/DetailContainer.tsx +1 -3
- package/src/pages/Version/DetailContainer/DetailContainerContent.tsx +0 -1
- package/src/pages/Version/DetailContainer/DetailContainerContentReadme.tsx +0 -1
- package/src/pages/Version/DetailContainer/DetailContainerTabs.tsx +0 -1
- package/src/pages/Version/DetailContainer/NoItems/NoItems.tsx +0 -1
- package/src/pages/Version/DetailContainer/NoItems/Noitems.test.tsx +0 -1
- package/src/pages/Version/DetailContainer/NoItems/__snapshots__/Noitems.test.tsx.snap +10 -1
- package/src/pages/Version/DetailContainer/Readme/Readme.spec.tsx +1 -2
- package/src/pages/Version/DetailContainer/Readme/Readme.tsx +1 -2
- package/src/pages/Version/DetailContainer/UpLinks/UpLinks.test.tsx +1 -3
- package/src/pages/Version/DetailContainer/UpLinks/UpLinks.tsx +1 -3
- package/src/pages/Version/DetailContainer/UpLinks/__snapshots__/UpLinks.test.tsx.snap +184 -26
- package/src/pages/Version/DetailContainer/UpLinks/styles.ts +2 -3
- package/src/pages/Version/DetailContainer/Versions/Versions.test.tsx +2 -4
- package/src/pages/Version/DetailContainer/Versions/Versions.tsx +1 -2
- package/src/pages/Version/DetailContainer/Versions/VersionsHistoryList.tsx +2 -4
- package/src/pages/Version/DetailContainer/Versions/VersionsTagList.tsx +1 -3
- package/src/pages/Version/DetailContainer/Versions/styles.ts +2 -3
- package/src/pages/Version/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap +168 -34
- package/src/pages/Version/DetailSidebar/DetailSidebar.tsx +0 -2
- package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.test.tsx +0 -2
- package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.tsx +1 -2
- package/src/pages/Version/DetailSidebar/DetailSidebarTitle.tsx +0 -1
- package/src/pages/Version/DetailSidebar/Developers/Developers.test.tsx +3 -5
- package/src/pages/Version/DetailSidebar/Developers/Developers.tsx +3 -5
- package/src/pages/Version/DetailSidebar/Developers/DevelopersTitle.tsx +0 -1
- package/src/pages/Version/DetailSidebar/Developers/__snapshots__/Developers.test.tsx.snap +328 -40
- package/src/pages/Version/DetailSidebar/Developers/styles.ts +0 -1
- package/src/pages/Version/DetailSidebar/Dist/Dist.test.tsx +1 -3
- package/src/pages/Version/DetailSidebar/Dist/Dist.tsx +1 -3
- package/src/pages/Version/DetailSidebar/Dist/__snapshots__/Dist.test.tsx.snap +1436 -74
- package/src/pages/Version/DetailSidebar/Dist/styles.ts +2 -1
- package/src/pages/Version/DetailSidebar/Engines/Engines.test.tsx +1 -3
- package/src/pages/Version/DetailSidebar/Engines/Engines.tsx +1 -3
- package/src/pages/Version/DetailSidebar/Engines/styles.ts +0 -1
- package/src/pages/Version/DetailSidebar/Install/Install.test.tsx +1 -3
- package/src/pages/Version/DetailSidebar/Install/Install.tsx +0 -2
- package/src/pages/Version/DetailSidebar/Install/InstallListItem.tsx +0 -1
- package/src/pages/Version/DetailSidebar/Repository/Repository.test.tsx +1 -3
- package/src/pages/Version/DetailSidebar/Repository/Repository.tsx +1 -3
- package/src/pages/Version/Version.test.tsx +1 -3
- package/src/pages/Version/Version.tsx +1 -3
- package/src/pages/Version/VersionContextProvider.tsx +0 -1
- package/src/pages/Version/VersionLayout.tsx +1 -1
- package/src/pages/Version/context.ts +1 -1
- package/src/pages/home/Home.tsx +0 -2
- package/src/pages/home/PackageList/Help/Help.test.tsx +0 -1
- package/src/pages/home/PackageList/Help/Help.tsx +0 -1
- package/src/pages/home/PackageList/Help/__snapshots__/Help.test.tsx.snap +295 -56
- package/src/pages/home/PackageList/Help/styles.ts +0 -1
- package/src/pages/home/PackageList/Package/Package.test.tsx +1 -3
- package/src/pages/home/PackageList/Package/Package.tsx +14 -19
- package/src/pages/home/PackageList/Package/Tag/Tag.test.tsx +0 -1
- package/src/pages/home/PackageList/Package/styles.ts +5 -6
- package/src/pages/home/PackageList/PackageList.tsx +0 -1
- package/src/pages/home/PackageList/Packagelist.test.tsx +1 -3
- package/src/providers/API/api.ts +1 -1
- package/src/providers/config/AppConfigurationProvider.tsx +3 -3
- package/src/store/models/configuration.ts +2 -3
- package/src/store/models/download.ts +1 -2
- package/src/store/models/index.ts +1 -0
- package/src/store/models/login.ts +4 -2
- package/src/store/models/manifest.ts +2 -2
- package/src/store/models/packages.ts +2 -2
- package/src/store/models/search.ts +5 -5
- package/src/store/store.ts +2 -2
- package/src/utils/login.test.ts +2 -3
- package/src/utils/package.test.ts +2 -3
- package/src/utils/package.ts +2 -1
- package/src/utils/sec-utils.ts +1 -1
- package/src/utils/test-react-testing-library.tsx +11 -7
- package/src/utils/url.test.ts +1 -1
- package/src/utils/url.ts +1 -0
- package/static/Dependencies.15768a14646212b71166.js +2 -0
- package/static/Dependencies.15768a14646212b71166.js.LICENSE.txt +78 -0
- package/static/Dist.15768a14646212b71166.js +2 -0
- package/static/Dist.15768a14646212b71166.js.LICENSE.txt +60 -0
- package/static/Engines.15768a14646212b71166.js +2 -0
- package/static/Engines.15768a14646212b71166.js.LICENSE.txt +66 -0
- package/static/Home.15768a14646212b71166.js +2 -0
- package/static/Home.15768a14646212b71166.js.LICENSE.txt +222 -0
- package/static/Install.15768a14646212b71166.js +2 -0
- package/static/Install.15768a14646212b71166.js.LICENSE.txt +66 -0
- package/static/NotFound.15768a14646212b71166.js +2 -0
- package/static/NotFound.15768a14646212b71166.js.LICENSE.txt +40 -0
- package/static/Provider.15768a14646212b71166.js +2 -0
- package/static/Provider.15768a14646212b71166.js.LICENSE.txt +32 -0
- package/static/Repository.15768a14646212b71166.js +2 -0
- package/static/Repository.15768a14646212b71166.js.LICENSE.txt +50 -0
- package/static/UpLinks.15768a14646212b71166.js +2 -0
- package/static/UpLinks.15768a14646212b71166.js.LICENSE.txt +56 -0
- package/static/Version.15768a14646212b71166.js +2 -0
- package/static/Version.15768a14646212b71166.js.LICENSE.txt +380 -0
- package/static/Versions.15768a14646212b71166.js +2 -0
- package/static/Versions.15768a14646212b71166.js.LICENSE.txt +64 -0
- package/static/index.html +1 -1
- package/static/main.15768a14646212b71166.js +2 -0
- package/static/{main.87dd0a7ff6e306a24166.js.LICENSE.txt → main.15768a14646212b71166.js.LICENSE.txt} +63 -663
- package/static/manifest.json +17 -3
- package/static/runtime.15768a14646212b71166.js +2 -0
- package/static/{runtime.87dd0a7ff6e306a24166.js.LICENSE.txt → runtime.15768a14646212b71166.js.LICENSE.txt} +2 -2
- package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js +2 -0
- package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-123400.15768a14646212b71166.js.LICENSE.txt +148 -0
- package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js +2 -0
- package/static/vendors-node_modules_pnpm_mui_icons-material_5_0_5_d1eeebd4022867ee03864a00e16c7901_node_modu-d2b578.15768a14646212b71166.js.LICENSE.txt +218 -0
- package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js +2 -0
- package/static/vendors-node_modules_pnpm_mui_material_5_0_6_033766d34292bd5d464212fd95cb4b6d_node_modules_mu-1fb115.15768a14646212b71166.js.LICENSE.txt +316 -0
- package/static/vendors.15768a14646212b71166.js +103 -0
- package/static/{vendors.87dd0a7ff6e306a24166.js.LICENSE.txt → vendors.15768a14646212b71166.js.LICENSE.txt} +1261 -1035
- package/tools/dev.server.js +0 -1
- package/tools/webpack.dev.config.babel.js +1 -3
- package/tsconfig.json +0 -2
- package/types/index.ts +1 -0
- package/src/App/Header/Search/SearchAdornment.tsx +0 -18
- package/src/design-tokens/emotion.ts +0 -5
- package/src/lib/constants.ts +0 -9
- package/static/main.87dd0a7ff6e306a24166.js +0 -2
- package/static/runtime.87dd0a7ff6e306a24166.js +0 -2
- package/static/vendors.87dd0a7ff6e306a24166.js +0 -2
package/.babelrc
CHANGED
package/.eslintrc
CHANGED
|
@@ -11,21 +11,6 @@
|
|
|
11
11
|
"verdaccio"
|
|
12
12
|
],
|
|
13
13
|
"rules": {
|
|
14
|
-
"import/order": ["error", {
|
|
15
|
-
"pathGroups": [
|
|
16
|
-
{
|
|
17
|
-
"pattern": "verdaccio-ui/**",
|
|
18
|
-
"group": "external",
|
|
19
|
-
"position": "after"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"pathGroupsExcludedImportTypes": ["verdaccio-ui"],
|
|
23
|
-
"alphabetize": {
|
|
24
|
-
"order": "asc",
|
|
25
|
-
"caseInsensitive": true
|
|
26
|
-
},
|
|
27
|
-
"newlines-between": "always"
|
|
28
|
-
}],
|
|
29
14
|
"react/display-name": 0,
|
|
30
15
|
"react/no-deprecated": 1,
|
|
31
16
|
"react/jsx-no-target-blank": 1,
|
package/CHANGELOG.md
CHANGED
package/jest/setup-env.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
1
2
|
import '@testing-library/jest-dom/extend-expect';
|
|
2
3
|
import 'whatwg-fetch';
|
|
3
|
-
import '@testing-library/jest-dom';
|
|
4
4
|
|
|
5
5
|
import { server } from './server';
|
|
6
6
|
|
|
7
|
+
// mock load translations to avoid warnings
|
|
8
|
+
jest.mock('../src/i18n/loadTranslationFile');
|
|
9
|
+
|
|
7
10
|
beforeAll(() => {
|
|
8
11
|
server.listen({
|
|
9
12
|
onUnhandledRequest: 'warn',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/ui-theme",
|
|
3
|
-
"version": "6.0.0-6-next.
|
|
3
|
+
"version": "6.0.0-6-next.13",
|
|
4
4
|
"description": "Verdaccio User Interface",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Verdaccio Contributors",
|
|
@@ -17,44 +17,42 @@
|
|
|
17
17
|
"npm": ">=6"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/react": "17.0.
|
|
20
|
+
"@types/react": "17.0.37",
|
|
21
21
|
"@types/react-autosuggest": "10.1.5",
|
|
22
|
-
"@types/react-dom": "17.0.
|
|
23
|
-
"@types/react-helmet": "6.1.
|
|
22
|
+
"@types/react-dom": "17.0.11",
|
|
23
|
+
"@types/react-helmet": "6.1.4",
|
|
24
24
|
"@types/redux": "3.6.0",
|
|
25
|
-
"@types/react-router-dom": "5.
|
|
26
|
-
"@types/react-virtualized": "9.21.
|
|
27
|
-
"@emotion/
|
|
28
|
-
"@emotion/jest": "11.
|
|
29
|
-
"@emotion/styled": "
|
|
30
|
-
"@emotion/
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@material
|
|
34
|
-
"@
|
|
35
|
-
"@rematch/
|
|
36
|
-
"@
|
|
37
|
-
"@testing-library/
|
|
38
|
-
"@testing-library/
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
25
|
+
"@types/react-router-dom": "5.3.2",
|
|
26
|
+
"@types/react-virtualized": "9.21.15",
|
|
27
|
+
"@emotion/react": "11.5.0",
|
|
28
|
+
"@emotion/jest": "11.5.0",
|
|
29
|
+
"@emotion/styled": "11.3.0",
|
|
30
|
+
"@emotion/css": "11.5.0",
|
|
31
|
+
"@emotion/babel-plugin": "11.0.0",
|
|
32
|
+
"@mui/icons-material": "5.0.5",
|
|
33
|
+
"@mui/material": "5.0.6",
|
|
34
|
+
"@mui/styles": "5.0.2",
|
|
35
|
+
"@rematch/core": "2.2.0",
|
|
36
|
+
"@rematch/loading": "2.1.2",
|
|
37
|
+
"@testing-library/dom": "8.11.1",
|
|
38
|
+
"@testing-library/jest-dom": "5.16.1",
|
|
39
|
+
"@testing-library/react": "12.1.2",
|
|
40
|
+
"@verdaccio/node-api": "6.0.0-6-next.25",
|
|
41
|
+
"@verdaccio/types": "11.0.0-6-next.10",
|
|
42
|
+
"babel-loader": "8.2.3",
|
|
42
43
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
43
|
-
"babel-plugin-emotion": "10.2.2",
|
|
44
44
|
"bundlesize": "0.18.1",
|
|
45
|
-
"css-loader": "6.
|
|
46
|
-
"dayjs": "1.10.
|
|
47
|
-
"emotion": "10.0.27",
|
|
48
|
-
"emotion-theming": "10.0.27",
|
|
45
|
+
"css-loader": "6.5.1",
|
|
46
|
+
"dayjs": "1.10.7",
|
|
49
47
|
"friendly-errors-webpack-plugin": "1.7.0",
|
|
50
48
|
"github-markdown-css": "4.0.0",
|
|
51
49
|
"harmony-reflect": "1.6.2",
|
|
52
50
|
"history": "4.10.1",
|
|
53
|
-
"html-webpack-plugin": "5.
|
|
51
|
+
"html-webpack-plugin": "5.4.0",
|
|
54
52
|
"i18next": "20.6.1",
|
|
55
53
|
"in-publish": "2.0.1",
|
|
56
|
-
"country-flag-icons": "1.4.
|
|
57
|
-
"js-base64": "3.
|
|
54
|
+
"country-flag-icons": "1.4.19",
|
|
55
|
+
"js-base64": "3.7.2",
|
|
58
56
|
"js-yaml": "3.14.1",
|
|
59
57
|
"localstorage-memory": "1.0.3",
|
|
60
58
|
"lodash": "4.17.21",
|
|
@@ -66,7 +64,6 @@
|
|
|
66
64
|
"ora": "5.4.1",
|
|
67
65
|
"prop-types": "15.7.2",
|
|
68
66
|
"react": "17.0.2",
|
|
69
|
-
"react-autosuggest": "10.1.0",
|
|
70
67
|
"react-dom": "17.0.2",
|
|
71
68
|
"react-hook-form": "7.15.3",
|
|
72
69
|
"react-hot-loader": "4.13.0",
|
|
@@ -74,8 +71,8 @@
|
|
|
74
71
|
"react-router": "5.2.1",
|
|
75
72
|
"react-router-dom": "5.3.0",
|
|
76
73
|
"react-virtualized": "9.22.3",
|
|
77
|
-
"react-redux": "7.2.
|
|
78
|
-
"redux": "4.1.
|
|
74
|
+
"react-redux": "7.2.6",
|
|
75
|
+
"redux": "4.1.2",
|
|
79
76
|
"rimraf": "3.0.2",
|
|
80
77
|
"msw": "0.35.0",
|
|
81
78
|
"standard-version": "9.3.1",
|
|
@@ -86,18 +83,18 @@
|
|
|
86
83
|
"stylelint-processor-styled-components": "1.10.0",
|
|
87
84
|
"stylelint-webpack-plugin": "3.0.1",
|
|
88
85
|
"supertest": "6.1.6",
|
|
89
|
-
"terser-webpack-plugin": "5.2.
|
|
86
|
+
"terser-webpack-plugin": "5.2.5",
|
|
90
87
|
"url-loader": "4.1.1",
|
|
91
|
-
"validator": "13.
|
|
92
|
-
"webpack": "5.
|
|
88
|
+
"validator": "13.7.0",
|
|
89
|
+
"webpack": "5.64.0",
|
|
93
90
|
"webpack-bundle-analyzer": "4.4.2",
|
|
94
91
|
"webpack-bundle-size-analyzer": "3.1.0",
|
|
95
92
|
"webpack-cli": "^4.7.2",
|
|
96
|
-
"webpack-dev-server": "3.11.
|
|
93
|
+
"webpack-dev-server": "3.11.3",
|
|
97
94
|
"webpack-manifest-plugin": "4.0.2",
|
|
98
95
|
"webpack-merge": "5.8.0",
|
|
99
96
|
"whatwg-fetch": "3.6.2",
|
|
100
|
-
"xss": "1.0.
|
|
97
|
+
"xss": "1.0.10"
|
|
101
98
|
},
|
|
102
99
|
"keywords": [
|
|
103
100
|
"private",
|
package/src/App/App.test.tsx
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import {
|
|
4
|
-
renderWithStore,
|
|
5
3
|
act,
|
|
6
|
-
waitFor,
|
|
7
4
|
fireEvent,
|
|
5
|
+
renderWithStore,
|
|
8
6
|
screen,
|
|
7
|
+
waitFor,
|
|
9
8
|
} from 'verdaccio-ui/utils/test-react-testing-library';
|
|
10
9
|
|
|
11
10
|
// eslint-disable-next-line jest/no-mocks-import
|
|
12
11
|
import { generateTokenWithTimeRange } from '../../jest/unit/components/__mocks__/token';
|
|
13
12
|
import { store } from '../store';
|
|
14
|
-
|
|
15
13
|
import App from './App';
|
|
16
14
|
|
|
17
15
|
jest.mock('verdaccio-ui/utils/storage', () => {
|
|
@@ -68,7 +66,7 @@ describe('<App />', () => {
|
|
|
68
66
|
expect(queryByTestId('greetings-label')).toBeFalsy();
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
|
-
});
|
|
69
|
+
}, 10000);
|
|
72
70
|
|
|
73
71
|
test('isUserAlreadyLoggedIn: token already available in storage', async () => {
|
|
74
72
|
const { queryByTestId, queryAllByText } = renderWithStore(<App />, store);
|
|
@@ -92,7 +90,7 @@ describe('<App />', () => {
|
|
|
92
90
|
expect(queryAllByText('verdaccio')).toBeTruthy();
|
|
93
91
|
}
|
|
94
92
|
}
|
|
95
|
-
});
|
|
93
|
+
}, 10000);
|
|
96
94
|
});
|
|
97
95
|
|
|
98
96
|
describe('list packages', () => {
|
package/src/App/App.tsx
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-max-depth */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { Suspense, useEffect } from 'react';
|
|
4
4
|
import { Router } from 'react-router-dom';
|
|
5
|
-
|
|
6
5
|
import Box from 'verdaccio-ui/components/Box';
|
|
7
6
|
import Loading from 'verdaccio-ui/components/Loading';
|
|
8
|
-
import loadDayJSLocale from 'verdaccio-ui/design-tokens/load-dayjs-locale';
|
|
9
7
|
import StyleBaseline from 'verdaccio-ui/design-tokens/StyleBaseline';
|
|
8
|
+
import loadDayJSLocale from 'verdaccio-ui/design-tokens/load-dayjs-locale';
|
|
10
9
|
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
11
10
|
|
|
11
|
+
import '../i18n/config';
|
|
12
12
|
import AppRoute, { history } from './AppRoute';
|
|
13
13
|
import Footer from './Footer';
|
|
14
14
|
import Header from './Header';
|
|
15
15
|
|
|
16
|
-
import '../i18n/config';
|
|
17
|
-
|
|
18
16
|
const StyledBox = styled(Box)<{ theme?: Theme }>(({ theme }) => ({
|
|
19
17
|
backgroundColor: theme?.palette.background.default,
|
|
20
18
|
}));
|
package/src/App/AppRoute.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createBrowserHistory } from 'history';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Route as ReactRouterDomRoute,
|
|
3
|
+
import { Route as ReactRouterDomRoute, Router, Switch } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
import loadable from './utils/loadable';
|
|
6
6
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-max-depth */
|
|
2
|
+
|
|
2
3
|
/* eslint-disable react/jsx-pascal-case */
|
|
3
4
|
import styled from '@emotion/styled';
|
|
4
5
|
import FlagsIcon from 'country-flag-icons/react/3x2';
|
|
5
6
|
import React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
|
|
7
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
8
8
|
import { Earth } from 'verdaccio-ui/components/Icons';
|
|
9
9
|
import Logo from 'verdaccio-ui/components/Logo';
|
|
10
10
|
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
11
11
|
import { useConfig } from 'verdaccio-ui/providers/config';
|
|
12
12
|
import { goToVerdaccioWebsite } from 'verdaccio-ui/utils/windows';
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { Inner, Left, Love, Right, Wrapper } from './styles';
|
|
15
15
|
|
|
16
16
|
/* eslint-disable react/jsx-key */
|
|
17
17
|
const Footer = () => {
|
|
@@ -19,25 +19,24 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
19
19
|
-ms-flex-align: center;
|
|
20
20
|
align-items: center;
|
|
21
21
|
-webkit-box-pack: end;
|
|
22
|
-
-webkit-justify-content: flex-end;
|
|
23
22
|
-ms-flex-pack: end;
|
|
23
|
+
-webkit-justify-content: flex-end;
|
|
24
24
|
justify-content: flex-end;
|
|
25
25
|
width: 100%;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media (min-width:768px) {
|
|
28
|
+
@media (min-width: 768px) {
|
|
29
29
|
.emotion-2 {
|
|
30
30
|
min-width: 400px;
|
|
31
31
|
max-width: 800px;
|
|
32
32
|
margin: auto;
|
|
33
33
|
-webkit-box-pack: justify;
|
|
34
34
|
-webkit-justify-content: space-between;
|
|
35
|
-
-ms-flex-pack: justify;
|
|
36
35
|
justify-content: space-between;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
@media (min-width:1024px) {
|
|
39
|
+
@media (min-width: 1024px) {
|
|
41
40
|
.emotion-2 {
|
|
42
41
|
max-width: 1240px;
|
|
43
42
|
}
|
|
@@ -51,7 +50,7 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
51
50
|
display: none;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
@media (min-width:768px) {
|
|
53
|
+
@media (min-width: 768px) {
|
|
55
54
|
.emotion-4 {
|
|
56
55
|
display: -webkit-box;
|
|
57
56
|
display: -webkit-flex;
|
|
@@ -74,7 +73,21 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
74
73
|
visibility: visible;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
.emotion-
|
|
76
|
+
.emotion-12 {
|
|
77
|
+
-webkit-user-select: none;
|
|
78
|
+
-moz-user-select: none;
|
|
79
|
+
-ms-user-select: none;
|
|
80
|
+
user-select: none;
|
|
81
|
+
width: 1em;
|
|
82
|
+
height: 1em;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
fill: currentColor;
|
|
85
|
+
-webkit-flex-shrink: 0;
|
|
86
|
+
-ms-flex-negative: 0;
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
-webkit-transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
89
|
+
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
90
|
+
font-size: 1.5rem;
|
|
78
91
|
width: 18px;
|
|
79
92
|
height: 18px;
|
|
80
93
|
margin: 0px 8px;
|
|
@@ -82,7 +95,7 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
82
95
|
|
|
83
96
|
.emotion-13 {
|
|
84
97
|
display: inline-grid;
|
|
85
|
-
grid-template-columns: repeat(8,max-content);
|
|
98
|
+
grid-template-columns: repeat(8, max-content);
|
|
86
99
|
grid-gap: 0px 8px;
|
|
87
100
|
position: absolute;
|
|
88
101
|
background: #d3dddd;
|
|
@@ -106,6 +119,7 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
106
119
|
border: 5px solid;
|
|
107
120
|
border-color: #d3dddd transparent transparent transparent;
|
|
108
121
|
-webkit-transform: rotate(90deg);
|
|
122
|
+
-moz-transform: rotate(90deg);
|
|
109
123
|
-ms-transform: rotate(90deg);
|
|
110
124
|
transform: rotate(90deg);
|
|
111
125
|
}
|
|
@@ -126,7 +140,7 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
126
140
|
display: flex;
|
|
127
141
|
}
|
|
128
142
|
|
|
129
|
-
@media (min-width:768px) {
|
|
143
|
+
@media (min-width: 768px) {
|
|
130
144
|
.emotion-31 {
|
|
131
145
|
display: -webkit-box;
|
|
132
146
|
display: -webkit-flex;
|
|
@@ -139,7 +153,9 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
139
153
|
display: inline-block;
|
|
140
154
|
vertical-align: middle;
|
|
141
155
|
box-sizing: border-box;
|
|
156
|
+
-webkit-background-position: center;
|
|
142
157
|
background-position: center;
|
|
158
|
+
-webkit-background-size: contain;
|
|
143
159
|
background-size: contain;
|
|
144
160
|
background-image: url([object Object]);
|
|
145
161
|
background-repeat: no-repeat;
|
|
@@ -168,7 +184,7 @@ exports[`<Footer /> component should load the initial state of Footer component
|
|
|
168
184
|
>
|
|
169
185
|
<svg
|
|
170
186
|
aria-hidden="true"
|
|
171
|
-
class="MuiSvgIcon-root emotion-10 emotion-11 emotion-12"
|
|
187
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium emotion-10 emotion-11 emotion-12"
|
|
172
188
|
focusable="false"
|
|
173
189
|
viewBox="0 0 45 45"
|
|
174
190
|
>
|
package/src/App/Footer/styles.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
2
|
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
4
3
|
|
|
5
4
|
export const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
|
6
|
-
background: theme?.palette.
|
|
5
|
+
background: theme?.palette.mode === 'light' ? theme?.palette.snow : theme?.palette.cyanBlue,
|
|
7
6
|
borderTop: `1px solid ${theme?.palette.greyGainsboro}`,
|
|
8
|
-
color: theme?.palette.
|
|
7
|
+
color: theme?.palette.mode === 'dark' ? theme?.palette.white : theme?.palette.nobel01,
|
|
9
8
|
fontSize: '14px',
|
|
10
9
|
padding: '20px',
|
|
11
10
|
}));
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
3
|
-
|
|
4
3
|
import {
|
|
5
|
-
renderWithStore,
|
|
6
|
-
fireEvent,
|
|
7
|
-
waitFor,
|
|
8
4
|
cleanup,
|
|
5
|
+
fireEvent,
|
|
6
|
+
renderWithStore,
|
|
9
7
|
screen,
|
|
8
|
+
waitFor,
|
|
10
9
|
waitForElementToBeRemoved,
|
|
11
10
|
} from 'verdaccio-ui/utils/test-react-testing-library';
|
|
12
11
|
|
|
13
12
|
import translationEN from '../../i18n/crowdin/ui.json';
|
|
14
13
|
import { store } from '../../store';
|
|
15
|
-
|
|
16
14
|
import Header from './Header';
|
|
17
15
|
|
|
18
16
|
/* eslint-disable react/jsx-no-bind*/
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
|
|
5
4
|
import Button from 'verdaccio-ui/components/Button';
|
|
6
5
|
import { useConfig } from 'verdaccio-ui/providers/config';
|
|
7
6
|
|
|
8
7
|
import { Dispatch, RootState } from '../../store/store';
|
|
9
|
-
|
|
10
8
|
import HeaderInfoDialog from './HeaderInfoDialog';
|
|
11
9
|
import HeaderLeft from './HeaderLeft';
|
|
12
10
|
import HeaderRight from './HeaderRight';
|
|
13
11
|
import LoginDialog from './LoginDialog';
|
|
14
12
|
import Search from './Search';
|
|
15
|
-
import {
|
|
13
|
+
import { InnerMobileNavBar, InnerNavBar, MobileNavBar, NavBar } from './styles';
|
|
16
14
|
|
|
17
15
|
interface Props {
|
|
18
16
|
withoutSearch?: boolean;
|
|
@@ -25,7 +23,7 @@ const Header: React.FC<Props> = ({ withoutSearch }) => {
|
|
|
25
23
|
const [showMobileNavBar, setShowMobileNavBar] = useState<boolean>(false);
|
|
26
24
|
const [showLoginModal, setShowLoginModal] = useState<boolean>(false);
|
|
27
25
|
const loginStore = useSelector((state: RootState) => state.login);
|
|
28
|
-
const configStore = useSelector((state: RootState) => state.configuration);
|
|
26
|
+
const configStore = useSelector((state: RootState) => state.configuration.config);
|
|
29
27
|
const { configOptions } = useConfig();
|
|
30
28
|
const dispatch = useDispatch<Dispatch>();
|
|
31
29
|
const handleLogout = () => {
|
|
@@ -64,7 +62,7 @@ const Header: React.FC<Props> = ({ withoutSearch }) => {
|
|
|
64
62
|
</Button>
|
|
65
63
|
</MobileNavBar>
|
|
66
64
|
)}
|
|
67
|
-
{!loginStore.
|
|
65
|
+
{!loginStore.username && (
|
|
68
66
|
<LoginDialog onClose={() => setShowLoginModal(false)} open={showLoginModal} />
|
|
69
67
|
)}
|
|
70
68
|
</>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import AccountCircle from '@
|
|
1
|
+
import AccountCircle from '@mui/icons-material/AccountCircle';
|
|
2
2
|
import React, { MouseEvent } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
|
|
5
4
|
import IconButton from 'verdaccio-ui/components/IconButton';
|
|
6
5
|
import Menu from 'verdaccio-ui/components/Menu';
|
|
7
6
|
import MenuItem from 'verdaccio-ui/components/MenuItem';
|
|
@@ -32,7 +31,8 @@ const HeaderMenu: React.FC<Props> = ({
|
|
|
32
31
|
color="inherit"
|
|
33
32
|
data-testid="logInDialogIcon"
|
|
34
33
|
id="header--button-account"
|
|
35
|
-
onClick={onLoggedInMenu}
|
|
34
|
+
onClick={onLoggedInMenu}
|
|
35
|
+
size="large">
|
|
36
36
|
<AccountCircle />
|
|
37
37
|
</IconButton>
|
|
38
38
|
<Menu
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { MouseEvent, useContext, useEffect, useState } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
|
|
4
3
|
import Button from 'verdaccio-ui/components/Button';
|
|
5
4
|
import ThemeContext from 'verdaccio-ui/design-tokens/ThemeContext';
|
|
6
5
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import Help from '@
|
|
2
|
-
import Info from '@
|
|
3
|
-
import NightsStay from '@
|
|
4
|
-
import Search from '@
|
|
5
|
-
import WbSunny from '@
|
|
1
|
+
import Help from '@mui/icons-material/Help';
|
|
2
|
+
import Info from '@mui/icons-material/Info';
|
|
3
|
+
import NightsStay from '@mui/icons-material/NightsStay';
|
|
4
|
+
import Search from '@mui/icons-material/Search';
|
|
5
|
+
import WbSunny from '@mui/icons-material/WbSunny';
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
|
-
|
|
8
7
|
import IconButton from 'verdaccio-ui/components/IconButton';
|
|
9
8
|
|
|
10
9
|
import { IconSearchButton, StyledLink } from './styles';
|
|
@@ -30,7 +29,7 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
|
|
|
30
29
|
data-testid={'header--tooltip-documentation'}
|
|
31
30
|
external={true}
|
|
32
31
|
to={'https://verdaccio.org/docs/en/installation'}>
|
|
33
|
-
<IconButton color={'inherit'}>
|
|
32
|
+
<IconButton color={'inherit'} size="large">
|
|
34
33
|
<Help />
|
|
35
34
|
</IconButton>
|
|
36
35
|
</StyledLink>
|
|
@@ -42,7 +41,8 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
|
|
|
42
41
|
data-testid={'header--tooltip-info'}
|
|
43
42
|
id="header--button-registryInfo"
|
|
44
43
|
onClick={onClick}
|
|
45
|
-
ref={ref}
|
|
44
|
+
ref={ref}
|
|
45
|
+
size="large">
|
|
46
46
|
<Info />
|
|
47
47
|
</IconButton>
|
|
48
48
|
);
|
|
@@ -55,7 +55,7 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
|
|
|
55
55
|
case 'dark-mode':
|
|
56
56
|
// todo(Priscila): Add Zoom transition effect
|
|
57
57
|
return (
|
|
58
|
-
<IconButton color="inherit" onClick={onClick} ref={ref}>
|
|
58
|
+
<IconButton color="inherit" onClick={onClick} ref={ref} size="large">
|
|
59
59
|
<NightsStay />
|
|
60
60
|
</IconButton>
|
|
61
61
|
);
|
|
@@ -63,7 +63,7 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
|
|
|
63
63
|
case 'light-mode':
|
|
64
64
|
// todo(Priscila): Add Zoom transition effect
|
|
65
65
|
return (
|
|
66
|
-
<IconButton color="inherit" onClick={onClick} ref={ref}>
|
|
66
|
+
<IconButton color="inherit" onClick={onClick} ref={ref} size="large">
|
|
67
67
|
<WbSunny />
|
|
68
68
|
</IconButton>
|
|
69
69
|
);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-pascal-case */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import LanguageIcon from '@mui/icons-material/Language';
|
|
4
|
+
import withStyles from '@mui/styles/withStyles';
|
|
5
5
|
import i18next from 'i18next';
|
|
6
|
-
import React, { useCallback, useContext,
|
|
6
|
+
import React, { useCallback, useContext, useMemo, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
|
|
9
8
|
import { AutoComplete } from 'verdaccio-ui/components/AutoComplete/AutoCompleteV2';
|
|
10
9
|
import MenuItem from 'verdaccio-ui/components/MenuItem';
|
|
11
|
-
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
12
10
|
import ThemeContext from 'verdaccio-ui/design-tokens/ThemeContext';
|
|
11
|
+
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
13
12
|
|
|
14
13
|
import { Language, listLanguages } from '../../i18n/enabledLanguages';
|
|
15
14
|
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import api from 'verdaccio-ui/providers/API/api';
|
|
4
3
|
import {
|
|
5
|
-
|
|
6
|
-
waitFor,
|
|
7
|
-
fireEvent,
|
|
4
|
+
act,
|
|
8
5
|
cleanup,
|
|
6
|
+
fireEvent,
|
|
7
|
+
renderWithStore,
|
|
9
8
|
screen,
|
|
10
|
-
|
|
9
|
+
waitFor,
|
|
11
10
|
} from 'verdaccio-ui/utils/test-react-testing-library';
|
|
12
11
|
|
|
13
12
|
import { store } from '../../../store';
|
|
14
|
-
|
|
15
13
|
import LoginDialog from './LoginDialog';
|
|
16
14
|
|
|
17
15
|
describe('<LoginDialog /> component', () => {
|
|
@@ -103,7 +101,6 @@ describe('<LoginDialog /> component', () => {
|
|
|
103
101
|
fireEvent.click(signInButton);
|
|
104
102
|
});
|
|
105
103
|
expect(props.onClose).toHaveBeenCalledTimes(1);
|
|
106
|
-
// screen.debug();
|
|
107
104
|
});
|
|
108
105
|
|
|
109
106
|
test.todo('validateCredentials: should validate credentials');
|