@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
|
@@ -1,170 +1,170 @@
|
|
|
1
1
|
{
|
|
2
|
-
"copy-to-clipboard": "
|
|
3
|
-
"author-anonymous": "
|
|
4
|
-
"author-unknown": "
|
|
2
|
+
"copy-to-clipboard": "Copia negli appunti",
|
|
3
|
+
"author-anonymous": "Anonimo",
|
|
4
|
+
"author-unknown": "Sconosciuto",
|
|
5
5
|
"action-bar-action": {
|
|
6
|
-
"visit-home-page": "
|
|
7
|
-
"open-an-issue": "
|
|
8
|
-
"download-tarball": "
|
|
6
|
+
"visit-home-page": "Visita la homepage",
|
|
7
|
+
"open-an-issue": "Apri una questione",
|
|
8
|
+
"download-tarball": "Scarica tarball"
|
|
9
9
|
},
|
|
10
10
|
"dialog": {
|
|
11
11
|
"registry-info": {
|
|
12
|
-
"title": "
|
|
12
|
+
"title": "Info del Registro"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"header": {
|
|
16
|
-
"documentation": "
|
|
17
|
-
"registry-info": "
|
|
18
|
-
"registry-info-link": "
|
|
19
|
-
"registry-no-conf": "
|
|
20
|
-
"greetings": "
|
|
16
|
+
"documentation": "Documentazione",
|
|
17
|
+
"registry-info": "Informazioni del Registro",
|
|
18
|
+
"registry-info-link": "Scopri di più",
|
|
19
|
+
"registry-no-conf": "Nessuna configurazione disponibile",
|
|
20
|
+
"greetings": "Ciao "
|
|
21
21
|
},
|
|
22
22
|
"search": {
|
|
23
|
-
"packages": "
|
|
23
|
+
"packages": "Cerca i Pacchetti"
|
|
24
24
|
},
|
|
25
25
|
"autoComplete": {
|
|
26
|
-
"loading": "
|
|
27
|
-
"no-results-found": "
|
|
28
|
-
"clear": "
|
|
29
|
-
"expand": "
|
|
30
|
-
"collapse": "
|
|
26
|
+
"loading": "Caricamento...",
|
|
27
|
+
"no-results-found": "Nessun risultato trovato",
|
|
28
|
+
"clear": "Cancella",
|
|
29
|
+
"expand": "Espandi",
|
|
30
|
+
"collapse": "Comprimi"
|
|
31
31
|
},
|
|
32
32
|
"tab": {
|
|
33
33
|
"uplinks": "Uplink",
|
|
34
34
|
"versions": "Versioni",
|
|
35
|
-
"dependencies": "
|
|
35
|
+
"dependencies": "Dipendenze",
|
|
36
36
|
"readme": "Readme"
|
|
37
37
|
},
|
|
38
38
|
"uplinks": {
|
|
39
39
|
"title": "Uplink",
|
|
40
|
-
"no-items": "{{name}}
|
|
40
|
+
"no-items": "{{name}} non ha uplink."
|
|
41
41
|
},
|
|
42
42
|
"versions": {
|
|
43
|
-
"current-tags": "
|
|
44
|
-
"version-history": "
|
|
45
|
-
"not-available": "
|
|
43
|
+
"current-tags": "Tag Correnti",
|
|
44
|
+
"version-history": "Cronologia delle versioni",
|
|
45
|
+
"not-available": "Non disponibile"
|
|
46
46
|
},
|
|
47
47
|
"package": {
|
|
48
|
-
"published-on": "
|
|
48
|
+
"published-on": "Pubblicato alle {{time}} •",
|
|
49
49
|
"version": "v{{version}}",
|
|
50
|
-
"visit-home-page": "
|
|
50
|
+
"visit-home-page": "Visita la homepage",
|
|
51
51
|
"homepage": "Homepage",
|
|
52
|
-
"open-an-issue": "
|
|
53
|
-
"bugs": "
|
|
54
|
-
"download": "
|
|
55
|
-
"the-tar-file": "
|
|
52
|
+
"open-an-issue": "Apri una questione",
|
|
53
|
+
"bugs": "Bug",
|
|
54
|
+
"download": "Scarica {{what}}",
|
|
55
|
+
"the-tar-file": "il file tar",
|
|
56
56
|
"tarball": "Tarball"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"has-no-dependencies": "{{package}}
|
|
59
|
+
"has-no-dependencies": "{{package}} non ha alcuna dipendenza.",
|
|
60
60
|
"dependency-block": "{{package}}@{{version}}"
|
|
61
61
|
},
|
|
62
62
|
"form": {
|
|
63
|
-
"username": "
|
|
63
|
+
"username": "Nome Utente",
|
|
64
64
|
"password": "Password"
|
|
65
65
|
},
|
|
66
66
|
"form-placeholder": {
|
|
67
|
-
"username": "
|
|
68
|
-
"password": "
|
|
67
|
+
"username": "Il tuo nome utente",
|
|
68
|
+
"password": "La tua password forte"
|
|
69
69
|
},
|
|
70
70
|
"form-validation": {
|
|
71
|
-
"required-field": "
|
|
72
|
-
"required-min-length": "
|
|
73
|
-
"unable-to-sign-in": "
|
|
74
|
-
"username-or-password-cant-be-empty": "
|
|
71
|
+
"required-field": "Questo campo è necessario",
|
|
72
|
+
"required-min-length": "Questo campo richiedeva la lunghezza minima di {{length}}",
|
|
73
|
+
"unable-to-sign-in": "Impossibile accedere",
|
|
74
|
+
"username-or-password-cant-be-empty": "Il nome utente o la password non possono essere vuoti!"
|
|
75
75
|
},
|
|
76
76
|
"help": {
|
|
77
|
-
"title": "
|
|
78
|
-
"sub-title": "
|
|
79
|
-
"first-step": "1.
|
|
77
|
+
"title": "Ancora Nessun Pacchetto Pubblicato.",
|
|
78
|
+
"sub-title": "Per pubblicare il tuo primo pacchetto, basta:",
|
|
79
|
+
"first-step": "1. Accedi",
|
|
80
80
|
"first-step-command-line": "npm adduser --registry {{registryUrl}}",
|
|
81
|
-
"second-step": "2.
|
|
81
|
+
"second-step": "2. Pubblica",
|
|
82
82
|
"second-step-command-line": "npm publish --registry {{registryUrl}}",
|
|
83
|
-
"third-step": "3.
|
|
83
|
+
"third-step": "3. Ricarica questa pagina"
|
|
84
84
|
},
|
|
85
85
|
"sidebar": {
|
|
86
86
|
"detail": {
|
|
87
|
-
"latest-version": "
|
|
87
|
+
"latest-version": "Ultima v{{version}}",
|
|
88
88
|
"version": "v{{version}}"
|
|
89
89
|
},
|
|
90
90
|
"installation": {
|
|
91
91
|
"title": "Installazione",
|
|
92
|
-
"install-using-yarn": "
|
|
92
|
+
"install-using-yarn": "Installa usando yarn",
|
|
93
93
|
"install-using-yarn-command": "yarn add {{packageName}}",
|
|
94
|
-
"install-using-npm": "
|
|
94
|
+
"install-using-npm": "Installa usando npm",
|
|
95
95
|
"install-using-npm-command": "npm install {{packageName}}",
|
|
96
|
-
"install-using-pnpm": "
|
|
96
|
+
"install-using-pnpm": "Installa usando pnpm",
|
|
97
97
|
"install-using-pnpm-command": "pnpm install {{packageName}}"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"title": "Repository"
|
|
101
101
|
},
|
|
102
102
|
"author": {
|
|
103
|
-
"title": "
|
|
103
|
+
"title": "Autore"
|
|
104
104
|
},
|
|
105
105
|
"distribution": {
|
|
106
|
-
"title": "
|
|
107
|
-
"license": "
|
|
108
|
-
"size": "
|
|
109
|
-
"file-count": "file
|
|
106
|
+
"title": "Ultima Distribuzione",
|
|
107
|
+
"license": "Licenza",
|
|
108
|
+
"size": "Dimensioni",
|
|
109
|
+
"file-count": "conteggio dei file"
|
|
110
110
|
},
|
|
111
111
|
"maintainers": {
|
|
112
|
-
"title": "
|
|
112
|
+
"title": "Manutentori"
|
|
113
113
|
},
|
|
114
114
|
"contributors": {
|
|
115
115
|
"title": "Collaboratori"
|
|
116
116
|
},
|
|
117
117
|
"engines": {
|
|
118
|
-
"npm-version": "NPM
|
|
118
|
+
"npm-version": "Versione NPM",
|
|
119
119
|
"node-js": "NODE JS"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"footer": {
|
|
123
|
-
"powered-by": "
|
|
124
|
-
"made-with-love-on": "
|
|
123
|
+
"powered-by": "Sviluppato da",
|
|
124
|
+
"made-with-love-on": "Creato con <0>♥</0> il"
|
|
125
125
|
},
|
|
126
126
|
"button": {
|
|
127
127
|
"close": "Chiudi",
|
|
128
|
-
"cancel": "
|
|
129
|
-
"login": "
|
|
130
|
-
"logout": "
|
|
131
|
-
"go-to-the-home-page": "
|
|
132
|
-
"learn-more": "
|
|
133
|
-
"fund-this-package": "<0>
|
|
128
|
+
"cancel": "Annulla",
|
|
129
|
+
"login": "Accedi",
|
|
130
|
+
"logout": "Disconnettiti",
|
|
131
|
+
"go-to-the-home-page": "Vai alla home page",
|
|
132
|
+
"learn-more": "Scopri di Più",
|
|
133
|
+
"fund-this-package": "<0>Finanzia</0> questo pacchetto"
|
|
134
134
|
},
|
|
135
135
|
"error": {
|
|
136
|
-
"unspecific": "
|
|
136
|
+
"unspecific": "Qualcosa è andato storto.",
|
|
137
137
|
"404": {
|
|
138
|
-
"page-not-found": "404 -
|
|
139
|
-
"sorry-we-could-not-find-it": "
|
|
138
|
+
"page-not-found": "404 - Pagina non trovata",
|
|
139
|
+
"sorry-we-could-not-find-it": "Spiacenti, non siamo riusciti a trovarla..."
|
|
140
140
|
},
|
|
141
|
-
"app-context-not-correct-used": "
|
|
142
|
-
"theme-context-not-correct-used": "
|
|
143
|
-
"package-meta-is-required-at-detail-context": "packageMeta
|
|
141
|
+
"app-context-not-correct-used": "Il contesto dell'app non è stato usato correttamente",
|
|
142
|
+
"theme-context-not-correct-used": "Il contesto del tema non è stato usato correttamente",
|
|
143
|
+
"package-meta-is-required-at-detail-context": "packageMeta è necessario in DetailContext"
|
|
144
144
|
},
|
|
145
145
|
"lng": {
|
|
146
146
|
"english": "Inglese",
|
|
147
|
-
"czech": "
|
|
147
|
+
"czech": "Ceco",
|
|
148
148
|
"japanese": "Giapponese",
|
|
149
|
-
"portuguese": "
|
|
149
|
+
"portuguese": "Portoghese",
|
|
150
150
|
"spanish": "Spagnolo",
|
|
151
151
|
"german": "Tedesco",
|
|
152
152
|
"chinese": "Cinese",
|
|
153
|
-
"chineseTraditional": "
|
|
153
|
+
"chineseTraditional": "Cinese (Tradizionale)",
|
|
154
154
|
"french": "Francese",
|
|
155
|
-
"russian": "
|
|
156
|
-
"turkish": "
|
|
157
|
-
"ukraine": "
|
|
155
|
+
"russian": "Russo",
|
|
156
|
+
"turkish": "Turco",
|
|
157
|
+
"ukraine": "Ucraino",
|
|
158
158
|
"khmer": "Khmer"
|
|
159
159
|
},
|
|
160
160
|
"flag": {
|
|
161
161
|
"austria": "Austria",
|
|
162
|
-
"brazil": "
|
|
163
|
-
"spain": "
|
|
162
|
+
"brazil": "Brasile",
|
|
163
|
+
"spain": "Spagna",
|
|
164
164
|
"nicaragua": "Nicaragua",
|
|
165
165
|
"india": "India",
|
|
166
|
-
"china": "
|
|
167
|
-
"germany": "
|
|
166
|
+
"china": "Cina",
|
|
167
|
+
"germany": "Germania",
|
|
168
168
|
"taiwan": "Taiwan"
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"copy-to-clipboard": "Panoya kopyala",
|
|
3
|
-
"author-anonymous": "
|
|
4
|
-
"author-unknown": "
|
|
3
|
+
"author-anonymous": "Anonim",
|
|
4
|
+
"author-unknown": "Bilinmeyen",
|
|
5
5
|
"action-bar-action": {
|
|
6
6
|
"visit-home-page": "Visit homepage",
|
|
7
7
|
"open-an-issue": "Open an issue",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"tab": {
|
|
33
33
|
"uplinks": "Uplinks",
|
|
34
|
-
"versions": "
|
|
34
|
+
"versions": "Versiyonlar",
|
|
35
35
|
"dependencies": "Dependencies",
|
|
36
36
|
"readme": "Readme"
|
|
37
37
|
},
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
},
|
|
90
90
|
"installation": {
|
|
91
91
|
"title": "Installation",
|
|
92
|
-
"install-using-yarn": "
|
|
92
|
+
"install-using-yarn": "Yarn kullanarak indir",
|
|
93
93
|
"install-using-yarn-command": "yarn add {{packageName}}",
|
|
94
|
-
"install-using-npm": "
|
|
94
|
+
"install-using-npm": "Npm kullanarak indir",
|
|
95
95
|
"install-using-npm-command": "npm install {{packageName}}",
|
|
96
|
-
"install-using-pnpm": "
|
|
96
|
+
"install-using-pnpm": "Pnpm kullanarak indir",
|
|
97
97
|
"install-using-pnpm-command": "pnpm install {{packageName}}"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"tab": {
|
|
33
33
|
"uplinks": "Uplinks",
|
|
34
|
-
"versions": "
|
|
34
|
+
"versions": "Phiên bản",
|
|
35
35
|
"dependencies": "Dependencies",
|
|
36
36
|
"readme": "Readme"
|
|
37
37
|
},
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"made-with-love-on": "Made with <0>♥</0> on"
|
|
125
125
|
},
|
|
126
126
|
"button": {
|
|
127
|
-
"close": "
|
|
127
|
+
"close": "Đóng",
|
|
128
128
|
"cancel": "Cancel",
|
|
129
129
|
"login": "Login",
|
|
130
130
|
"logout": "Logout",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In development mode translations files might be not available,
|
|
3
|
+
* crowdin translations are only available in CI.
|
|
4
|
+
*/
|
|
5
|
+
export function loadTranslationFile(lng) {
|
|
6
|
+
try {
|
|
7
|
+
return require(`./download_translations/${lng}/ui.json`);
|
|
8
|
+
} catch {
|
|
9
|
+
// eslint-disable-next-line no-console
|
|
10
|
+
console.warn(`language ${lng} file not found, fallback to en-US`);
|
|
11
|
+
// in case the file is not there, fallback to en-US
|
|
12
|
+
return require(`./crowdin/ui.json`);
|
|
13
|
+
}
|
|
14
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import { AppContainer } from 'react-hot-loader';
|
|
4
4
|
import { Provider } from 'react-redux';
|
|
5
|
-
|
|
6
5
|
import AppConfigurationContext from 'verdaccio-ui/providers/config';
|
|
7
6
|
|
|
8
7
|
import App from './App';
|
|
@@ -29,7 +28,9 @@ const renderApp = (Component: React.ElementType): void => {
|
|
|
29
28
|
|
|
30
29
|
renderApp(App);
|
|
31
30
|
|
|
31
|
+
// @ts-expect-error
|
|
32
32
|
if (module.hot) {
|
|
33
|
+
// @ts-expect-error
|
|
33
34
|
module.hot.accept('./App', () => {
|
|
34
35
|
renderApp(App);
|
|
35
36
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HashRouter } from 'react-router-dom';
|
|
3
|
-
|
|
4
3
|
import { render } from 'verdaccio-ui/utils/test-react-testing-library';
|
|
5
4
|
|
|
6
5
|
import { DetailContextProvider } from '../../context';
|
|
7
|
-
|
|
8
6
|
import Dependencies from './Dependencies';
|
|
9
7
|
|
|
10
8
|
describe('<Dependencies /> component', () => {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
|
-
|
|
5
4
|
import CardContent from 'verdaccio-ui/components/CardContent';
|
|
6
5
|
|
|
7
6
|
import { PackageDependencies } from '../../../../../types/packageMeta';
|
|
8
7
|
import { DetailContext } from '../../context';
|
|
9
8
|
import NoItems from '../NoItems';
|
|
10
|
-
|
|
11
|
-
import { CardWrap, StyledText, Tags, Tag } from './styles';
|
|
9
|
+
import { CardWrap, StyledText, Tag, Tags } from './styles';
|
|
12
10
|
|
|
13
11
|
interface DependencyBlockProps {
|
|
14
12
|
title: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { render, cleanup, screen } from 'verdaccio-ui/utils/test-react-testing-library';
|
|
2
|
+
import { cleanup, render, screen } from 'verdaccio-ui/utils/test-react-testing-library';
|
|
4
3
|
|
|
5
4
|
import { DetailContextProvider } from '../../context';
|
|
6
|
-
|
|
7
5
|
import Deprecated from './Deprecated';
|
|
8
6
|
|
|
9
7
|
describe('test Deprecated', () => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
import Card from '@material
|
|
3
|
-
import CardContent from '@material
|
|
2
|
+
import Card from '@mui/material/Card';
|
|
3
|
+
import CardContent from '@mui/material/CardContent';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
|
|
6
5
|
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
7
6
|
|
|
8
7
|
export const CardStyled = styled(Card)<{ theme?: Theme }>(({ theme }) => {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
1
|
+
import React, { useContext, useState } from 'react';
|
|
3
2
|
import Box from 'verdaccio-ui/components/Box';
|
|
4
3
|
|
|
5
4
|
import { DetailContext } from '../context';
|
|
6
|
-
|
|
7
5
|
import Deprecated from './Deprecated';
|
|
8
6
|
import DetailContainerContent from './DetailContainerContent';
|
|
9
7
|
import DetailContainerTabs from './DetailContainerTabs';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
|
|
5
4
|
import Tab from 'verdaccio-ui/components/Tab';
|
|
6
5
|
import { default as MuiTabs } from 'verdaccio-ui/components/Tabs';
|
|
7
6
|
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<NoItem /> component should load the component in default state 1`] = `
|
|
4
|
+
.emotion-0 {
|
|
5
|
+
margin: 0;
|
|
6
|
+
font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
font-size: 1rem;
|
|
9
|
+
line-height: 1.75;
|
|
10
|
+
margin-bottom: 0.35em;
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
<span
|
|
5
|
-
class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom"
|
|
14
|
+
class="MuiTypography-root MuiTypography-subtitle1 MuiTypography-gutterBottom emotion-0"
|
|
6
15
|
>
|
|
7
16
|
test
|
|
8
17
|
</span>
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { render, cleanup } from 'verdaccio-ui/utils/test-react-testing-library';
|
|
2
|
+
import { cleanup, render } from 'verdaccio-ui/utils/test-react-testing-library';
|
|
4
3
|
|
|
5
4
|
import { DetailContext } from '../../context';
|
|
6
|
-
|
|
7
5
|
import UpLinks from './UpLinks';
|
|
8
6
|
|
|
9
7
|
describe('<UpLinks /> component', () => {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
|
|
4
3
|
import List from 'verdaccio-ui/components/List';
|
|
5
4
|
import ListItem from 'verdaccio-ui/components/ListItem';
|
|
6
5
|
import { formatDateDistance } from 'verdaccio-ui/utils/package';
|
|
7
6
|
|
|
8
7
|
import { DetailContext } from '../..';
|
|
9
8
|
import NoItems from '../NoItems';
|
|
10
|
-
|
|
11
|
-
import { StyledText, Spacer, ListItemText } from './styles';
|
|
9
|
+
import { ListItemText, Spacer, StyledText } from './styles';
|
|
12
10
|
|
|
13
11
|
const UpLinks: React.FC = () => {
|
|
14
12
|
const { packageMeta } = useContext(DetailContext);
|