@verdaccio/ui-theme 3.1.0 → 6.0.0-6-next.11
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 +33 -0
- package/.eslintrc +115 -0
- package/.stylelintrc +40 -0
- package/CHANGELOG.md +152 -554
- package/LICENSE +1 -1
- package/README.md +22 -95
- package/config/env.js +9 -0
- package/jest/api/packages.json +42 -0
- package/jest/identity.js +29 -0
- package/jest/jest.config.js +39 -0
- package/jest/jestEnvironment.js +1 -0
- package/jest/server-handlers.ts +9 -0
- package/jest/server.ts +6 -0
- package/jest/setup-env.ts +15 -0
- package/jest/setup.ts +31 -0
- package/jest/unit/components/__mocks__/api.ts +47 -0
- package/jest/unit/components/__mocks__/token.ts +31 -0
- package/jest/unit/components/store/login.ts +23 -0
- package/jest/unit/components/store/logo.ts +7 -0
- package/jest/unit/components/store/package.ts +174 -0
- package/jest/unit/components/store/packageMeta.ts +592 -0
- package/jest/unit/empty.ts +1 -0
- package/lib/constants.ts +9 -0
- package/package.json +153 -228
- package/src/App/App.test.tsx +123 -0
- package/src/App/App.tsx +54 -0
- package/src/App/AppError.tsx +38 -0
- package/src/App/AppRoute.tsx +63 -0
- package/src/App/Footer/Footer.test.tsx +20 -0
- package/src/App/Footer/Footer.tsx +111 -0
- package/src/App/Footer/__snapshots__/Footer.test.tsx.snap +456 -0
- package/src/App/Footer/index.ts +1 -0
- package/src/App/Footer/styles.ts +44 -0
- package/src/App/Header/Header.test.tsx +152 -0
- package/src/App/Header/Header.tsx +74 -0
- package/src/App/Header/HeaderGreetings.tsx +22 -0
- package/src/App/Header/HeaderInfoDialog.tsx +19 -0
- package/src/App/Header/HeaderLeft.tsx +31 -0
- package/src/App/Header/HeaderMenu.tsx +65 -0
- package/src/App/Header/HeaderRight.tsx +118 -0
- package/src/App/Header/HeaderToolTip.tsx +19 -0
- package/src/App/Header/HeaderToolTipIcon.tsx +75 -0
- package/src/App/Header/LanguageSwitch.tsx +125 -0
- package/src/App/Header/LoginDialog/LoginDialog.test.tsx +112 -0
- package/src/App/Header/LoginDialog/LoginDialog.tsx +81 -0
- package/src/App/Header/LoginDialog/LoginDialogCloseButton.tsx +32 -0
- package/src/App/Header/LoginDialog/LoginDialogForm.tsx +97 -0
- package/src/App/Header/LoginDialog/LoginDialogFormError.tsx +43 -0
- package/src/App/Header/LoginDialog/LoginDialogHeader.tsx +48 -0
- package/src/App/Header/LoginDialog/__snapshots__/LoginDialog.test.tsx.snap +3 -0
- package/src/App/Header/LoginDialog/index.ts +1 -0
- package/src/App/Header/RegistryInfoContent/RegistryInfoContent.test.tsx +27 -0
- package/src/App/Header/RegistryInfoContent/RegistryInfoContent.tsx +155 -0
- package/src/App/Header/RegistryInfoContent/index.ts +1 -0
- package/src/App/Header/RegistryInfoDialog/RegistryInfoDialog.tsx +30 -0
- package/src/App/Header/RegistryInfoDialog/index.ts +1 -0
- package/src/App/Header/RegistryInfoDialog/styles.ts +16 -0
- package/src/App/Header/RegistryInfoDialog/types.ts +7 -0
- package/src/App/Header/Search/Search.test.tsx +168 -0
- package/src/App/Header/Search/Search.tsx +127 -0
- package/src/App/Header/Search/SearchAdornment.tsx +18 -0
- package/src/App/Header/Search/__snapshots__/Search.test.tsx.snap +101 -0
- package/src/App/Header/Search/index.ts +1 -0
- package/src/App/Header/index.ts +1 -0
- package/src/App/Header/styles.ts +89 -0
- package/src/App/index.ts +1 -0
- package/src/App/utils/loadable.tsx +10 -0
- package/src/components/.eslintrc +7 -0
- package/src/components/ActionBar/ActionBar.test.tsx +91 -0
- package/src/components/ActionBar/ActionBar.tsx +45 -0
- package/src/components/ActionBar/ActionBarAction.tsx +75 -0
- package/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap +122 -0
- package/src/components/ActionBar/index.ts +1 -0
- package/src/components/AppBar.tsx +10 -0
- package/src/components/Author/Author.test.tsx +75 -0
- package/src/components/Author/Author.tsx +47 -0
- package/src/components/Author/__snapshots__/Author.test.tsx.snap +353 -0
- package/src/components/Author/index.ts +1 -0
- package/src/components/Author/styles.ts +23 -0
- package/src/components/AutoComplete/AutoComplete.tsx +179 -0
- package/src/components/AutoComplete/AutoCompleteV2.tsx +296 -0
- package/src/components/AutoComplete/index.ts +1 -0
- package/src/components/AutoComplete/styles.tsx +58 -0
- package/src/components/AutoComplete/useAutoComplete.tsx +61 -0
- package/src/components/Avatar.tsx +3 -0
- package/src/components/Box.tsx +8 -0
- package/src/components/Button.tsx +10 -0
- package/src/components/Card.tsx +10 -0
- package/src/components/CardActions.tsx +13 -0
- package/src/components/CardContent.tsx +10 -0
- package/src/components/Chip.tsx +10 -0
- package/src/components/CircularProgress.tsx +15 -0
- package/src/components/CopyToClipBoard.tsx +45 -0
- package/src/components/Dialog.tsx +10 -0
- package/src/components/DialogActions.tsx +16 -0
- package/src/components/DialogContent.tsx +16 -0
- package/src/components/DialogTitle.tsx +10 -0
- package/src/components/Divider.tsx +10 -0
- package/src/components/FloatingActionButton.tsx +12 -0
- package/src/components/FormControl.tsx +10 -0
- package/src/components/FormHelperText.tsx +16 -0
- package/src/components/Grid.tsx +10 -0
- package/src/components/Heading.tsx +15 -0
- package/src/components/IconButton.tsx +10 -0
- package/src/components/Icons/.eslintrc +5 -0
- package/src/components/Icons/Earth.tsx +36 -0
- package/src/components/Icons/FileBinary.tsx +20 -0
- package/src/components/Icons/Law.tsx +20 -0
- package/src/components/Icons/License.tsx +18 -0
- package/src/components/Icons/Time.tsx +19 -0
- package/src/components/Icons/Version.tsx +20 -0
- package/src/components/Icons/index.ts +5 -0
- package/src/components/Input.tsx +10 -0
- package/src/components/InputAdornment/InputAdornment.tsx +16 -0
- package/src/components/InputAdornment/index.ts +1 -0
- package/src/components/InputLabel.tsx +10 -0
- package/src/components/Label/Label.test.tsx +15 -0
- package/src/components/Label/Label.tsx +35 -0
- package/src/components/Label/__snapshots__/Label.test.tsx.snap +14 -0
- package/src/components/Label/index.ts +1 -0
- package/src/components/Link.tsx +39 -0
- package/src/components/List.tsx +10 -0
- package/src/components/ListItem.tsx +23 -0
- package/src/components/ListItemText.tsx +16 -0
- package/src/components/Loading/Loading.test.tsx +12 -0
- package/src/components/Loading/Loading.tsx +17 -0
- package/src/components/Loading/Spinner/Spinner.test.tsx +14 -0
- package/src/components/Loading/Spinner/Spinner.tsx +35 -0
- package/src/components/Loading/Spinner/__snapshots__/Spinner.test.tsx.snap +148 -0
- package/src/components/Loading/Spinner/index.tsx +1 -0
- package/src/components/Loading/__snapshots__/Loading.test.tsx.snap +86 -0
- package/src/components/Loading/index.ts +1 -0
- package/src/components/Loading/styles.ts +17 -0
- package/src/components/Logo/Logo.test.tsx +12 -0
- package/src/components/Logo/Logo.tsx +55 -0
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +19 -0
- package/src/components/Logo/img/logo-black-and-white.svg +1 -0
- package/src/components/Logo/img/logo.svg +1 -0
- package/src/components/Logo/index.ts +1 -0
- package/src/components/Menu.tsx +10 -0
- package/src/components/MenuItem.tsx +25 -0
- package/src/components/NotFound/NotFound.tsx +52 -0
- package/src/components/NotFound/Notfound.test.tsx +37 -0
- package/src/components/NotFound/__snapshots__/Notfound.test.tsx.snap +44 -0
- package/src/components/NotFound/img/package.svg +1 -0
- package/src/components/NotFound/index.ts +1 -0
- package/src/components/NotFound/styles.ts +40 -0
- package/src/components/Paper.tsx +10 -0
- package/src/components/SnackbarContent.tsx +15 -0
- package/src/components/SvgIcon.tsx +38 -0
- package/src/components/Tab.tsx +10 -0
- package/src/components/Tabs.tsx +14 -0
- package/src/components/Text/Text.tsx +17 -0
- package/src/components/Text/TextConfig.ts +7 -0
- package/src/components/Text/index.ts +2 -0
- package/src/components/TextField/TextField.test.tsx +16 -0
- package/src/components/TextField/TextField.tsx +23 -0
- package/src/components/TextField/__snapshots__/TextField.test.tsx.snap +19 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/Toolbar.tsx +10 -0
- package/src/components/Tooltip.tsx +25 -0
- package/src/design-tokens/ResetStyles.tsx +44 -0
- package/src/design-tokens/StyleBaseline.tsx +14 -0
- package/src/design-tokens/ThemeContext.ts +13 -0
- package/src/design-tokens/ThemeProvider.tsx +44 -0
- package/src/design-tokens/emotion.ts +5 -0
- package/src/design-tokens/load-dayjs-locale.ts +98 -0
- package/src/design-tokens/theme.ts +159 -0
- package/src/design-tokens/useLocalStorage.ts +40 -0
- package/src/design-tokens/useOnClickOutside.ts +28 -0
- package/src/design-tokens/useTheme.ts +7 -0
- package/src/i18n/ABOUT_TRANSLATIONS.md +13 -0
- package/src/i18n/config.ts +52 -0
- package/src/i18n/crowdin/ui.json +170 -0
- package/src/i18n/deprecated_translations_dont_use/cs-CZ.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/de-DE.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/en-US.json +170 -0
- package/src/i18n/deprecated_translations_dont_use/es-ES.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/fr-FR.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/ja-JP.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/km-KH.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/pt-BR.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/ru-RU.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/tr-TR.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/uk-UA.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/zh-CN.json +168 -0
- package/src/i18n/deprecated_translations_dont_use/zh-TW.json +165 -0
- package/src/i18n/enabledLanguages.ts +35 -0
- package/src/index.tsx +36 -0
- package/src/lib/constants.ts +9 -0
- package/src/pages/Version/DetailContainer/Dependencies/Dependencies.test.tsx +93 -0
- package/src/pages/Version/DetailContainer/Dependencies/Dependencies.tsx +100 -0
- package/src/pages/Version/DetailContainer/Dependencies/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Dependencies/styles.ts +26 -0
- package/src/pages/Version/DetailContainer/Dependencies/types.ts +7 -0
- package/src/pages/Version/DetailContainer/Deprecated/Deprecated.test.tsx +34 -0
- package/src/pages/Version/DetailContainer/Deprecated/Deprecated.tsx +31 -0
- package/src/pages/Version/DetailContainer/Deprecated/index.ts +1 -0
- package/src/pages/Version/DetailContainer/DetailContainer.test.tsx +13 -0
- package/src/pages/Version/DetailContainer/DetailContainer.tsx +37 -0
- package/src/pages/Version/DetailContainer/DetailContainerContent.tsx +41 -0
- package/src/pages/Version/DetailContainer/DetailContainerContentReadme.tsx +19 -0
- package/src/pages/Version/DetailContainer/DetailContainerTabs.tsx +36 -0
- package/src/pages/Version/DetailContainer/NoItems/NoItems.tsx +16 -0
- package/src/pages/Version/DetailContainer/NoItems/Noitems.test.tsx +16 -0
- package/src/pages/Version/DetailContainer/NoItems/__snapshots__/Noitems.test.tsx.snap +9 -0
- package/src/pages/Version/DetailContainer/NoItems/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Readme/Readme.spec.tsx +19 -0
- package/src/pages/Version/DetailContainer/Readme/Readme.tsx +22 -0
- package/src/pages/Version/DetailContainer/Readme/__snapshots__/Readme.spec.tsx.snap +94 -0
- package/src/pages/Version/DetailContainer/Readme/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Readme/types.ts +3 -0
- package/src/pages/Version/DetailContainer/UpLinks/UpLinks.test.tsx +58 -0
- package/src/pages/Version/DetailContainer/UpLinks/UpLinks.tsx +45 -0
- package/src/pages/Version/DetailContainer/UpLinks/__snapshots__/UpLinks.test.tsx.snap +247 -0
- package/src/pages/Version/DetailContainer/UpLinks/index.ts +1 -0
- package/src/pages/Version/DetailContainer/UpLinks/styles.ts +24 -0
- package/src/pages/Version/DetailContainer/Versions/Versions.test.tsx +60 -0
- package/src/pages/Version/DetailContainer/Versions/Versions.tsx +41 -0
- package/src/pages/Version/DetailContainer/Versions/VersionsHistoryList.tsx +40 -0
- package/src/pages/Version/DetailContainer/Versions/VersionsTagList.tsx +28 -0
- package/src/pages/Version/DetailContainer/Versions/__partials__/data.json +5984 -0
- package/src/pages/Version/DetailContainer/Versions/__snapshots__/Versions.test.tsx.snap +3 -0
- package/src/pages/Version/DetailContainer/Versions/index.ts +1 -0
- package/src/pages/Version/DetailContainer/Versions/styles.ts +30 -0
- package/src/pages/Version/DetailContainer/__snapshots__/DetailContainer.test.tsx.snap +103 -0
- package/src/pages/Version/DetailContainer/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/DetailSidebar.tsx +55 -0
- package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.test.tsx +111 -0
- package/src/pages/Version/DetailSidebar/DetailSidebarFundButton.tsx +53 -0
- package/src/pages/Version/DetailSidebar/DetailSidebarTitle.tsx +40 -0
- package/src/pages/Version/DetailSidebar/Developers/Developers.test.tsx +117 -0
- package/src/pages/Version/DetailSidebar/Developers/Developers.tsx +90 -0
- package/src/pages/Version/DetailSidebar/Developers/DevelopersTitle.tsx +32 -0
- package/src/pages/Version/DetailSidebar/Developers/__snapshots__/Developers.test.tsx.snap +380 -0
- package/src/pages/Version/DetailSidebar/Developers/get-unique-developer-values.ts +16 -0
- package/src/pages/Version/DetailSidebar/Developers/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Developers/styles.ts +31 -0
- package/src/pages/Version/DetailSidebar/Dist/Dist.test.tsx +78 -0
- package/src/pages/Version/DetailSidebar/Dist/Dist.tsx +49 -0
- package/src/pages/Version/DetailSidebar/Dist/__snapshots__/Dist.test.tsx.snap +602 -0
- package/src/pages/Version/DetailSidebar/Dist/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Dist/styles.ts +27 -0
- package/src/pages/Version/DetailSidebar/Engines/Engines.test.tsx +71 -0
- package/src/pages/Version/DetailSidebar/Engines/Engines.tsx +58 -0
- package/src/pages/Version/DetailSidebar/Engines/img/node.png +0 -0
- package/src/pages/Version/DetailSidebar/Engines/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Engines/styles.ts +14 -0
- package/src/pages/Version/DetailSidebar/Install/Install.test.tsx +64 -0
- package/src/pages/Version/DetailSidebar/Install/Install.tsx +52 -0
- package/src/pages/Version/DetailSidebar/Install/InstallListItem.tsx +97 -0
- package/src/pages/Version/DetailSidebar/Install/__partials__/data.json +5984 -0
- package/src/pages/Version/DetailSidebar/Install/img/npm.svg +15 -0
- package/src/pages/Version/DetailSidebar/Install/img/pnpm.svg +1 -0
- package/src/pages/Version/DetailSidebar/Install/img/yarn.svg +1 -0
- package/src/pages/Version/DetailSidebar/Install/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/Repository/Repository.test.tsx +78 -0
- package/src/pages/Version/DetailSidebar/Repository/Repository.tsx +93 -0
- package/src/pages/Version/DetailSidebar/Repository/__partials__/data.json +5984 -0
- package/src/pages/Version/DetailSidebar/Repository/__snapshots__/Repository.test.tsx.snap +3 -0
- package/src/pages/Version/DetailSidebar/Repository/img/git.png +0 -0
- package/src/pages/Version/DetailSidebar/Repository/index.ts +1 -0
- package/src/pages/Version/DetailSidebar/index.ts +1 -0
- package/src/pages/Version/Version.test.tsx +68 -0
- package/src/pages/Version/Version.tsx +41 -0
- package/src/pages/Version/VersionContextProvider.tsx +43 -0
- package/src/pages/Version/VersionLayout.tsx +20 -0
- package/src/pages/Version/__partials__/data.json +5984 -0
- package/src/pages/Version/context.ts +10 -0
- package/src/pages/Version/get-route-package-name.ts +9 -0
- package/src/pages/Version/index.ts +4 -0
- package/src/pages/Version/version-config.ts +19 -0
- package/src/pages/home/Home.tsx +25 -0
- package/src/pages/home/PackageList/Help/Help.test.tsx +12 -0
- package/src/pages/home/PackageList/Help/Help.tsx +56 -0
- package/src/pages/home/PackageList/Help/__snapshots__/Help.test.tsx.snap +159 -0
- package/src/pages/home/PackageList/Help/index.ts +1 -0
- package/src/pages/home/PackageList/Help/styles.ts +13 -0
- package/src/pages/home/PackageList/Package/Package.test.tsx +56 -0
- package/src/pages/home/PackageList/Package/Package.tsx +253 -0
- package/src/pages/home/PackageList/Package/Tag/Tag.test.tsx +16 -0
- package/src/pages/home/PackageList/Package/Tag/Tag.tsx +11 -0
- package/src/pages/home/PackageList/Package/Tag/__snapshots__/Tag.test.tsx.snap +21 -0
- package/src/pages/home/PackageList/Package/Tag/index.ts +1 -0
- package/src/pages/home/PackageList/Package/Tag/styles.ts +11 -0
- package/src/pages/home/PackageList/Package/index.ts +1 -0
- package/src/pages/home/PackageList/Package/styles.ts +112 -0
- package/src/pages/home/PackageList/PackageList.tsx +81 -0
- package/src/pages/home/PackageList/Packagelist.test.tsx +60 -0
- package/src/pages/home/PackageList/index.ts +1 -0
- package/src/pages/home/index.ts +1 -0
- package/src/providers/API/api.test.ts +136 -0
- package/src/providers/API/api.ts +73 -0
- package/src/providers/API/storage.ts +12 -0
- package/src/providers/config/AppConfigurationProvider.tsx +57 -0
- package/src/providers/config/index.ts +1 -0
- package/src/store/index.ts +1 -0
- package/src/store/models/configuration.ts +42 -0
- package/src/store/models/download.ts +31 -0
- package/src/store/models/index.ts +17 -0
- package/src/store/models/login.ts +90 -0
- package/src/store/models/manifest.ts +91 -0
- package/src/store/models/packages.ts +36 -0
- package/src/store/models/search.ts +81 -0
- package/src/store/store.ts +15 -0
- package/src/template/favicon.ico +0 -0
- package/src/template/index.html +21 -0
- package/src/utils/.eslintrc +5 -0
- package/src/utils/cli-utils.test.ts +66 -0
- package/src/utils/cli-utils.ts +38 -0
- package/src/utils/colors.ts +1 -0
- package/src/utils/constants.ts +5 -0
- package/src/utils/file-size.ts +13 -0
- package/src/utils/i18nForTests.ts +25 -0
- package/src/utils/login.test.ts +71 -0
- package/src/utils/login.ts +44 -0
- package/src/utils/package.test.ts +101 -0
- package/src/utils/package.ts +105 -0
- package/src/utils/sec-utils.ts +15 -0
- package/src/utils/storage.ts +12 -0
- package/src/utils/test-react-testing-library.tsx +38 -0
- package/src/utils/url.test.ts +28 -0
- package/src/utils/url.ts +58 -0
- package/src/utils/windows.ts +3 -0
- package/static/favicon.ico +0 -0
- package/static/index.html +21 -0
- package/static/main.c57129036f278d0c7acf.js +2 -0
- package/static/main.c57129036f278d0c7acf.js.LICENSE.txt +1456 -0
- package/static/manifest.json +5 -17
- package/static/runtime.c57129036f278d0c7acf.js +2 -0
- package/static/{runtime.f6e570dfe38870a45bf5.js.LICENSE.txt → runtime.c57129036f278d0c7acf.js.LICENSE.txt} +2 -2
- package/static/vendors.c57129036f278d0c7acf.js +2 -0
- package/static/vendors.c57129036f278d0c7acf.js.LICENSE.txt +2932 -0
- package/tools/.eslintrc +14 -0
- package/tools/_verdaccio.config.yaml +59 -0
- package/tools/dev.server.js +48 -0
- package/tools/getPackageJson.js +25 -0
- package/tools/verdaccio.js +31 -0
- package/tools/webpack.config.js +82 -0
- package/tools/webpack.dev.config.babel.js +60 -0
- package/tools/webpack.prod.config.babel.js +81 -0
- package/tsconfig.build.json +24 -0
- package/tsconfig.json +27 -0
- package/types/custom.d.ts +9 -0
- package/types/files.d.ts +9 -0
- package/types/index.ts +12 -0
- package/types/jest-dom.d.ts +1 -0
- package/types/packageMeta.ts +82 -0
- package/static/238.f6e570dfe38870a45bf5.js +0 -2
- package/static/238.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/718.f6e570dfe38870a45bf5.js +0 -2
- package/static/718.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/73.f6e570dfe38870a45bf5.js +0 -2
- package/static/73.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Dependencies.f6e570dfe38870a45bf5.js +0 -2
- package/static/Dependencies.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Dist.f6e570dfe38870a45bf5.js +0 -2
- package/static/Dist.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Engines.f6e570dfe38870a45bf5.js +0 -2
- package/static/Engines.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Home.f6e570dfe38870a45bf5.js +0 -2
- package/static/Home.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Install.f6e570dfe38870a45bf5.js +0 -2
- package/static/Install.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/NotFound.f6e570dfe38870a45bf5.js +0 -2
- package/static/NotFound.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Provider.f6e570dfe38870a45bf5.js +0 -2
- package/static/Provider.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Repository.f6e570dfe38870a45bf5.js +0 -2
- package/static/Repository.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/UpLinks.f6e570dfe38870a45bf5.js +0 -2
- package/static/UpLinks.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Version.f6e570dfe38870a45bf5.js +0 -2
- package/static/Version.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/Versions.f6e570dfe38870a45bf5.js +0 -2
- package/static/Versions.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/main.f6e570dfe38870a45bf5.js +0 -2
- package/static/main.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -10
- package/static/runtime.f6e570dfe38870a45bf5.js +0 -2
- package/static/vendors.f6e570dfe38870a45bf5.js +0 -2
- package/static/vendors.f6e570dfe38870a45bf5.js.LICENSE.txt +0 -98
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createBrowserHistory } from 'history';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Route as ReactRouterDomRoute, Switch, Router } from 'react-router-dom';
|
|
4
|
+
|
|
5
|
+
import loadable from './utils/loadable';
|
|
6
|
+
|
|
7
|
+
const NotFound = loadable(
|
|
8
|
+
() => import(/* webpackChunkName: "NotFound" */ 'verdaccio-ui/components/NotFound')
|
|
9
|
+
);
|
|
10
|
+
const VersionContextProvider = loadable(
|
|
11
|
+
() => import(/* webpackChunkName: "Provider" */ '../pages/Version/VersionContextProvider')
|
|
12
|
+
);
|
|
13
|
+
const VersionPage = loadable(() => import(/* webpackChunkName: "Version" */ '../pages/Version'));
|
|
14
|
+
const HomePage = loadable(() => import(/* webpackChunkName: "Home" */ '../pages/home'));
|
|
15
|
+
|
|
16
|
+
enum Route {
|
|
17
|
+
ROOT = '/',
|
|
18
|
+
SCOPE_PACKAGE = '/-/web/detail/@:scope/:package',
|
|
19
|
+
SCOPE_PACKAGE_VERSION = '/-/web/detail/@:scope/:package/v/:version',
|
|
20
|
+
PACKAGE = '/-/web/detail/:package',
|
|
21
|
+
PACKAGE_VERSION = '/-/web/detail/:package/v/:version',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const history = createBrowserHistory({
|
|
25
|
+
basename: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.url_prefix,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const AppRoute: React.FC = () => {
|
|
29
|
+
return (
|
|
30
|
+
<Router history={history}>
|
|
31
|
+
<Switch>
|
|
32
|
+
<ReactRouterDomRoute exact={true} path={Route.ROOT}>
|
|
33
|
+
<HomePage />
|
|
34
|
+
</ReactRouterDomRoute>
|
|
35
|
+
<ReactRouterDomRoute exact={true} path={Route.PACKAGE}>
|
|
36
|
+
<VersionContextProvider>
|
|
37
|
+
<VersionPage />
|
|
38
|
+
</VersionContextProvider>
|
|
39
|
+
</ReactRouterDomRoute>
|
|
40
|
+
<ReactRouterDomRoute exact={true} path={Route.PACKAGE_VERSION}>
|
|
41
|
+
<VersionContextProvider>
|
|
42
|
+
<VersionPage />
|
|
43
|
+
</VersionContextProvider>
|
|
44
|
+
</ReactRouterDomRoute>
|
|
45
|
+
<ReactRouterDomRoute exact={true} path={Route.SCOPE_PACKAGE_VERSION}>
|
|
46
|
+
<VersionContextProvider>
|
|
47
|
+
<VersionPage />
|
|
48
|
+
</VersionContextProvider>
|
|
49
|
+
</ReactRouterDomRoute>
|
|
50
|
+
<ReactRouterDomRoute exact={true} path={Route.SCOPE_PACKAGE}>
|
|
51
|
+
<VersionContextProvider>
|
|
52
|
+
<VersionPage />
|
|
53
|
+
</VersionContextProvider>
|
|
54
|
+
</ReactRouterDomRoute>
|
|
55
|
+
<ReactRouterDomRoute>
|
|
56
|
+
<NotFound />
|
|
57
|
+
</ReactRouterDomRoute>
|
|
58
|
+
</Switch>
|
|
59
|
+
</Router>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default AppRoute;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { render } from 'verdaccio-ui/utils/test-react-testing-library';
|
|
4
|
+
|
|
5
|
+
import Footer from './Footer';
|
|
6
|
+
|
|
7
|
+
describe('<Footer /> component', () => {
|
|
8
|
+
beforeAll(() => {
|
|
9
|
+
window.__VERDACCIO_BASENAME_UI_OPTIONS.version = 'v.1.0.0';
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
afterAll(() => {
|
|
13
|
+
delete window.__VERDACCIO_BASENAME_UI_OPTIONS.version;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
test('should load the initial state of Footer component', () => {
|
|
17
|
+
const { container } = render(<Footer />);
|
|
18
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-max-depth */
|
|
2
|
+
/* eslint-disable react/jsx-pascal-case */
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
import FlagsIcon from 'country-flag-icons/react/3x2';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { useTranslation, Trans } from 'react-i18next';
|
|
7
|
+
|
|
8
|
+
import { Earth } from 'verdaccio-ui/components/Icons';
|
|
9
|
+
import Logo from 'verdaccio-ui/components/Logo';
|
|
10
|
+
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
11
|
+
import { useConfig } from 'verdaccio-ui/providers/config';
|
|
12
|
+
import { goToVerdaccioWebsite } from 'verdaccio-ui/utils/windows';
|
|
13
|
+
|
|
14
|
+
import { Wrapper, Left, Right, Love, Inner } from './styles';
|
|
15
|
+
|
|
16
|
+
/* eslint-disable react/jsx-key */
|
|
17
|
+
const Footer = () => {
|
|
18
|
+
const { t } = useTranslation();
|
|
19
|
+
const { configOptions } = useConfig();
|
|
20
|
+
return (
|
|
21
|
+
<Wrapper>
|
|
22
|
+
<Inner>
|
|
23
|
+
<Left>
|
|
24
|
+
<Trans components={[<Love />]} i18nKey="footer.made-with-love-on" />
|
|
25
|
+
<ToolTip>
|
|
26
|
+
<StyledEarth />
|
|
27
|
+
<Flags>
|
|
28
|
+
<Icon>
|
|
29
|
+
<FlagsIcon.ES />
|
|
30
|
+
</Icon>
|
|
31
|
+
<Icon>
|
|
32
|
+
<FlagsIcon.NI />
|
|
33
|
+
</Icon>
|
|
34
|
+
<Icon>
|
|
35
|
+
<FlagsIcon.IN />
|
|
36
|
+
</Icon>
|
|
37
|
+
<Icon>
|
|
38
|
+
<FlagsIcon.BR />
|
|
39
|
+
</Icon>
|
|
40
|
+
<Icon>
|
|
41
|
+
<FlagsIcon.CN />
|
|
42
|
+
</Icon>
|
|
43
|
+
<Icon>
|
|
44
|
+
<FlagsIcon.AU />
|
|
45
|
+
</Icon>
|
|
46
|
+
<Icon>
|
|
47
|
+
<FlagsIcon.DE />
|
|
48
|
+
</Icon>
|
|
49
|
+
<Icon>
|
|
50
|
+
<FlagsIcon.TW />
|
|
51
|
+
</Icon>
|
|
52
|
+
</Flags>
|
|
53
|
+
</ToolTip>
|
|
54
|
+
</Left>
|
|
55
|
+
<Right>
|
|
56
|
+
{configOptions?.version && (
|
|
57
|
+
<>
|
|
58
|
+
{t('footer.powered-by')}
|
|
59
|
+
<Logo onClick={goToVerdaccioWebsite} size="x-small" />
|
|
60
|
+
{`/ ${configOptions.version}`}
|
|
61
|
+
</>
|
|
62
|
+
)}
|
|
63
|
+
</Right>
|
|
64
|
+
</Inner>
|
|
65
|
+
</Wrapper>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default Footer;
|
|
70
|
+
|
|
71
|
+
const StyledEarth = styled(Earth)<{ theme?: Theme }>(({ theme }) => ({
|
|
72
|
+
margin: theme.spacing(0, 1),
|
|
73
|
+
}));
|
|
74
|
+
|
|
75
|
+
const Flags = styled('span')<{ theme?: Theme }>(({ theme }) => ({
|
|
76
|
+
display: 'inline-grid',
|
|
77
|
+
gridTemplateColumns: 'repeat(8, max-content)',
|
|
78
|
+
gridGap: theme.spacing(0, 1),
|
|
79
|
+
position: 'absolute',
|
|
80
|
+
background: theme?.palette.greyAthens,
|
|
81
|
+
padding: '1px 4px',
|
|
82
|
+
borderRadius: 3,
|
|
83
|
+
height: 20,
|
|
84
|
+
alignItems: 'center',
|
|
85
|
+
visibility: 'hidden',
|
|
86
|
+
top: -2,
|
|
87
|
+
':before': {
|
|
88
|
+
content: "''",
|
|
89
|
+
position: 'absolute',
|
|
90
|
+
top: '29%',
|
|
91
|
+
left: -4,
|
|
92
|
+
marginLeft: -5,
|
|
93
|
+
border: '5px solid',
|
|
94
|
+
borderColor: `${theme?.palette.greyAthens} transparent transparent transparent`,
|
|
95
|
+
transform: 'rotate(90deg)',
|
|
96
|
+
},
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
const Icon = styled('div')({
|
|
100
|
+
width: '10px',
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const ToolTip = styled('span')({
|
|
104
|
+
position: 'relative',
|
|
105
|
+
height: '18px',
|
|
106
|
+
':hover': {
|
|
107
|
+
[`${Flags}`]: {
|
|
108
|
+
visibility: 'visible',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
});
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<Footer /> component should load the initial state of Footer component 1`] = `
|
|
4
|
+
.emotion-0 {
|
|
5
|
+
background: #f9f9f9;
|
|
6
|
+
border-top: 1px solid #e3e3e3;
|
|
7
|
+
color: #999999;
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
padding: 20px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.emotion-2 {
|
|
13
|
+
display: -webkit-box;
|
|
14
|
+
display: -webkit-flex;
|
|
15
|
+
display: -ms-flexbox;
|
|
16
|
+
display: flex;
|
|
17
|
+
-webkit-align-items: center;
|
|
18
|
+
-webkit-box-align: center;
|
|
19
|
+
-ms-flex-align: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
-webkit-box-pack: end;
|
|
22
|
+
-webkit-justify-content: flex-end;
|
|
23
|
+
-ms-flex-pack: end;
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-width:768px) {
|
|
29
|
+
.emotion-2 {
|
|
30
|
+
min-width: 400px;
|
|
31
|
+
max-width: 800px;
|
|
32
|
+
margin: auto;
|
|
33
|
+
-webkit-box-pack: justify;
|
|
34
|
+
-webkit-justify-content: space-between;
|
|
35
|
+
-ms-flex-pack: justify;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (min-width:1024px) {
|
|
41
|
+
.emotion-2 {
|
|
42
|
+
max-width: 1240px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.emotion-4 {
|
|
47
|
+
-webkit-align-items: center;
|
|
48
|
+
-webkit-box-align: center;
|
|
49
|
+
-ms-flex-align: center;
|
|
50
|
+
align-items: center;
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (min-width:768px) {
|
|
55
|
+
.emotion-4 {
|
|
56
|
+
display: -webkit-box;
|
|
57
|
+
display: -webkit-flex;
|
|
58
|
+
display: -ms-flexbox;
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.emotion-6 {
|
|
64
|
+
color: #e25555;
|
|
65
|
+
padding: 0 5px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.emotion-8 {
|
|
69
|
+
position: relative;
|
|
70
|
+
height: 18px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.emotion-8:hover .emotion-14 {
|
|
74
|
+
visibility: visible;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.emotion-11 {
|
|
78
|
+
width: 18px;
|
|
79
|
+
height: 18px;
|
|
80
|
+
margin: 0px 8px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.emotion-13 {
|
|
84
|
+
display: inline-grid;
|
|
85
|
+
grid-template-columns: repeat(8,max-content);
|
|
86
|
+
grid-gap: 0px 8px;
|
|
87
|
+
position: absolute;
|
|
88
|
+
background: #d3dddd;
|
|
89
|
+
padding: 1px 4px;
|
|
90
|
+
border-radius: 3px;
|
|
91
|
+
height: 20px;
|
|
92
|
+
-webkit-align-items: center;
|
|
93
|
+
-webkit-box-align: center;
|
|
94
|
+
-ms-flex-align: center;
|
|
95
|
+
align-items: center;
|
|
96
|
+
visibility: hidden;
|
|
97
|
+
top: -2px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.emotion-13:before {
|
|
101
|
+
content: '';
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 29%;
|
|
104
|
+
left: -4px;
|
|
105
|
+
margin-left: -5px;
|
|
106
|
+
border: 5px solid;
|
|
107
|
+
border-color: #d3dddd transparent transparent transparent;
|
|
108
|
+
-webkit-transform: rotate(90deg);
|
|
109
|
+
-ms-transform: rotate(90deg);
|
|
110
|
+
transform: rotate(90deg);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.emotion-15 {
|
|
114
|
+
width: 10px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.emotion-31 {
|
|
118
|
+
-webkit-align-items: center;
|
|
119
|
+
-webkit-box-align: center;
|
|
120
|
+
-ms-flex-align: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
display: none;
|
|
123
|
+
display: -webkit-box;
|
|
124
|
+
display: -webkit-flex;
|
|
125
|
+
display: -ms-flexbox;
|
|
126
|
+
display: flex;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (min-width:768px) {
|
|
130
|
+
.emotion-31 {
|
|
131
|
+
display: -webkit-box;
|
|
132
|
+
display: -webkit-flex;
|
|
133
|
+
display: -ms-flexbox;
|
|
134
|
+
display: flex;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.emotion-33 {
|
|
139
|
+
display: inline-block;
|
|
140
|
+
vertical-align: middle;
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
background-position: center;
|
|
143
|
+
background-size: contain;
|
|
144
|
+
background-image: url([object Object]);
|
|
145
|
+
background-repeat: no-repeat;
|
|
146
|
+
width: 30px;
|
|
147
|
+
height: 30px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
<div
|
|
151
|
+
class="emotion-0 emotion-1"
|
|
152
|
+
>
|
|
153
|
+
<div
|
|
154
|
+
class="emotion-2 emotion-3"
|
|
155
|
+
>
|
|
156
|
+
<div
|
|
157
|
+
class="emotion-4 emotion-5"
|
|
158
|
+
>
|
|
159
|
+
Made with
|
|
160
|
+
<span
|
|
161
|
+
class="emotion-6 emotion-7"
|
|
162
|
+
>
|
|
163
|
+
♥
|
|
164
|
+
</span>
|
|
165
|
+
on
|
|
166
|
+
<span
|
|
167
|
+
class="emotion-8 emotion-9"
|
|
168
|
+
>
|
|
169
|
+
<svg
|
|
170
|
+
aria-hidden="true"
|
|
171
|
+
class="MuiSvgIcon-root emotion-10 emotion-11 emotion-12"
|
|
172
|
+
focusable="false"
|
|
173
|
+
viewBox="0 0 45 45"
|
|
174
|
+
>
|
|
175
|
+
<defs>
|
|
176
|
+
<clippath
|
|
177
|
+
id="prefix__a"
|
|
178
|
+
>
|
|
179
|
+
<path
|
|
180
|
+
d="M0 36h36V0H0v36z"
|
|
181
|
+
/>
|
|
182
|
+
</clippath>
|
|
183
|
+
<clippath
|
|
184
|
+
id="prefix__b"
|
|
185
|
+
>
|
|
186
|
+
<path
|
|
187
|
+
d="M18 36C8.059 36 0 27.941 0 18S8.059 0 18 0s18 8.059 18 18-8.059 18-18 18z"
|
|
188
|
+
/>
|
|
189
|
+
</clippath>
|
|
190
|
+
</defs>
|
|
191
|
+
<g
|
|
192
|
+
clip-path="url(#prefix__a)"
|
|
193
|
+
transform="matrix(1.25 0 0 -1.25 0 45)"
|
|
194
|
+
>
|
|
195
|
+
<path
|
|
196
|
+
d="M36 18c0-9.941-8.059-18-18-18S0 8.059 0 18s8.059 18 18 18 18-8.059 18-18"
|
|
197
|
+
fill="#88c9f9"
|
|
198
|
+
/>
|
|
199
|
+
</g>
|
|
200
|
+
<g
|
|
201
|
+
clip-path="url(#prefix__b)"
|
|
202
|
+
transform="matrix(1.25 0 0 -1.25 0 45)"
|
|
203
|
+
>
|
|
204
|
+
<path
|
|
205
|
+
d="M3.627 28.952c-.45 2.93 2.195 4.156 3.607 4.47 1.412.314 2.776.62 2.933-.006.156-.628.311-1.46 1.173-1.148.862.314 3.043.56 4.063 1.342 1.02.783 2.244.787 3.264.473 1.02-.313 3.877-.227 3.25-1.167-.627-.94-1.825-.827-2.45-1.924-.628-1.099.171-1.826 1.033-1.826.865 0 1.71-.135 2.26.727.548.863-.383 2.463.324 2.357.706-.106 1.477-.866 2.03-2.043.547-1.176 1.408-.47 1.723-1.176.313-.705 2.04-2.039 1.177-1.804-.864.236-1.726.392-1.96-.47-.237-.863.388-1.726-.237-1.647-.627.08-.86-.089-1.725-.004-.862.083-1.333.631-2.039-.545-.705-1.175-1.254-1.96-1.567-2.509-.315-.549-.785-.86-.55-1.96.235-1.099-.628-.785-.628.156 0 .94-.548 1.098-1.253.942-.706-.157-1.803-.313-1.724-1.098.077-.784-.315-1.725.313-2.352.627-.629 1.33.076 1.723-.158.393-.237 1.525-.023 1.133-.416-.393-.39-1.76-.88-.976-1.509a4.831 4.831 0 011.893-.907c.313-.08.062.774 1.083 1.166 1.017.392 2.608 1.29 3 .584.391-.705.338-.595 1.75-.75 1.41-.156 1.79-.585 2.417-1.917.626-1.333.446-1.192 1.462-1.58 1.021-.394 1.678-.223.737-1.087-.94-.86-1.65-.814-2.199-1.833-.55-1.017-.153-1.73-1.25-2.75A20.755 20.755 0 0024 4c-.618-.37-2.162-2.07-3.083-2.667-.834-.54-1.083 0-1.083 0s.256 1.667.964 2.372c.704.705 1.105 3.344.87 4.128-.235.783-1.36 1.02-1.75 1.333-.393.312-1.418 1.548-1.418 2.334 0 .784 1.71 2.81 1.71 2.81.218-1.089-1.039.328-1.627.523-.47.157-1.542 1.656-2.459 1.814-.916.16-1.363.7-2.068 1.25-.706.55-2.43 1.332-2.353 2.195.08.862-1.725 1.568-2.038 1.568-.314 0-1.019 0-1.647 1.098-.627 1.098-1.725 2.196-1.41 2.98.312.783.391 1.726.233 2.588-.156.862-1.332 1.176-1.567.941-.235-.236-1.489-1.335-1.647-.315"
|
|
206
|
+
fill="#5c913b"
|
|
207
|
+
/>
|
|
208
|
+
</g>
|
|
209
|
+
</svg>
|
|
210
|
+
<span
|
|
211
|
+
class="emotion-13 emotion-14"
|
|
212
|
+
>
|
|
213
|
+
<div
|
|
214
|
+
class="emotion-15 emotion-16"
|
|
215
|
+
>
|
|
216
|
+
<svg
|
|
217
|
+
viewBox="0 85.333 512 341.333"
|
|
218
|
+
>
|
|
219
|
+
<path
|
|
220
|
+
d="M0 85.331h512v341.337H0z"
|
|
221
|
+
fill="#FFDA44"
|
|
222
|
+
/>
|
|
223
|
+
<path
|
|
224
|
+
d="M0 85.331h512v113.775H0zm0 227.551h512v113.775H0z"
|
|
225
|
+
fill="#D80027"
|
|
226
|
+
/>
|
|
227
|
+
</svg>
|
|
228
|
+
</div>
|
|
229
|
+
<div
|
|
230
|
+
class="emotion-15 emotion-16"
|
|
231
|
+
>
|
|
232
|
+
<svg
|
|
233
|
+
viewBox="0 85.333 512 341.333"
|
|
234
|
+
>
|
|
235
|
+
<path
|
|
236
|
+
d="M0 85.337h512v341.326H0z"
|
|
237
|
+
fill="#FFF"
|
|
238
|
+
/>
|
|
239
|
+
<path
|
|
240
|
+
d="M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z"
|
|
241
|
+
fill="#338AF3"
|
|
242
|
+
/>
|
|
243
|
+
<path
|
|
244
|
+
d="M256 214.447c-22.949 0-41.553 18.603-41.553 41.553S233.05 297.553 256 297.553c22.949 0 41.553-18.603 41.553-41.553S278.949 214.447 256 214.447zm0 65.298c-13.114 0-23.745-10.631-23.745-23.745s10.631-23.745 23.745-23.745 23.745 10.631 23.745 23.745-10.631 23.745-23.745 23.745z"
|
|
245
|
+
fill="#FFDA44"
|
|
246
|
+
/>
|
|
247
|
+
<path
|
|
248
|
+
d="M276.563 261.936L256 256l-20.563 5.936-6.855 11.873h54.836z"
|
|
249
|
+
fill="#0052B4"
|
|
250
|
+
/>
|
|
251
|
+
<path
|
|
252
|
+
d="M256 226.32l-13.709 23.744L256 256l13.709-5.936z"
|
|
253
|
+
fill="#338AF3"
|
|
254
|
+
/>
|
|
255
|
+
<path
|
|
256
|
+
d="M235.437 261.936h41.126l-6.854-11.872h-27.418z"
|
|
257
|
+
fill="#6DA544"
|
|
258
|
+
/>
|
|
259
|
+
</svg>
|
|
260
|
+
</div>
|
|
261
|
+
<div
|
|
262
|
+
class="emotion-15 emotion-16"
|
|
263
|
+
>
|
|
264
|
+
<svg
|
|
265
|
+
viewBox="0 0 513 342"
|
|
266
|
+
>
|
|
267
|
+
<path
|
|
268
|
+
d="M17.3 0h478.4v342H17.3V0z"
|
|
269
|
+
fill="#181A93"
|
|
270
|
+
/>
|
|
271
|
+
<path
|
|
272
|
+
d="M0 0h513v114H0V0z"
|
|
273
|
+
fill="#FFA44A"
|
|
274
|
+
/>
|
|
275
|
+
<path
|
|
276
|
+
d="M0 228h513v114H0V228z"
|
|
277
|
+
fill="#1A9F0B"
|
|
278
|
+
/>
|
|
279
|
+
<path
|
|
280
|
+
d="M0 114h513v114H0V114z"
|
|
281
|
+
fill="#FFF"
|
|
282
|
+
/>
|
|
283
|
+
<circle
|
|
284
|
+
cx="256.5"
|
|
285
|
+
cy="171"
|
|
286
|
+
fill="#FFF"
|
|
287
|
+
r="34.2"
|
|
288
|
+
/>
|
|
289
|
+
<path
|
|
290
|
+
d="M256.5 216.6c-25.1 0-45.6-20.5-45.6-45.6s20.5-45.6 45.6-45.6 45.6 20.5 45.6 45.6-20.5 45.6-45.6 45.6zm0-11.4c18.2 0 34.2-16 34.2-34.2s-15.9-34.2-34.2-34.2-34.2 16-34.2 34.2 16 34.2 34.2 34.2z"
|
|
291
|
+
fill="#181A93"
|
|
292
|
+
/>
|
|
293
|
+
<circle
|
|
294
|
+
cx="256.5"
|
|
295
|
+
cy="171"
|
|
296
|
+
fill="#181A93"
|
|
297
|
+
r="22.8"
|
|
298
|
+
/>
|
|
299
|
+
</svg>
|
|
300
|
+
</div>
|
|
301
|
+
<div
|
|
302
|
+
class="emotion-15 emotion-16"
|
|
303
|
+
>
|
|
304
|
+
<svg
|
|
305
|
+
viewBox="0 0 513 342"
|
|
306
|
+
>
|
|
307
|
+
<path
|
|
308
|
+
d="M0 0h513v342H0z"
|
|
309
|
+
fill="#009b3a"
|
|
310
|
+
/>
|
|
311
|
+
<path
|
|
312
|
+
d="M256.5 19.3l204.9 151.4L256.5 322 50.6 170.7z"
|
|
313
|
+
fill="#fedf00"
|
|
314
|
+
/>
|
|
315
|
+
<circle
|
|
316
|
+
cx="256.5"
|
|
317
|
+
cy="171"
|
|
318
|
+
fill="#FFF"
|
|
319
|
+
r="80.4"
|
|
320
|
+
/>
|
|
321
|
+
<path
|
|
322
|
+
d="M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"
|
|
323
|
+
fill="#002776"
|
|
324
|
+
/>
|
|
325
|
+
</svg>
|
|
326
|
+
</div>
|
|
327
|
+
<div
|
|
328
|
+
class="emotion-15 emotion-16"
|
|
329
|
+
>
|
|
330
|
+
<svg
|
|
331
|
+
viewBox="0 0 513 342"
|
|
332
|
+
>
|
|
333
|
+
<path
|
|
334
|
+
d="M0 0h513v342H0z"
|
|
335
|
+
fill="#D80027"
|
|
336
|
+
/>
|
|
337
|
+
<path
|
|
338
|
+
d="M226.8 239.2l-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6l-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4l-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z"
|
|
339
|
+
fill="#FFDA44"
|
|
340
|
+
/>
|
|
341
|
+
</svg>
|
|
342
|
+
</div>
|
|
343
|
+
<div
|
|
344
|
+
class="emotion-15 emotion-16"
|
|
345
|
+
>
|
|
346
|
+
<svg
|
|
347
|
+
viewBox="0 0 513 342"
|
|
348
|
+
>
|
|
349
|
+
<path
|
|
350
|
+
d="M0 0h513v342H0z"
|
|
351
|
+
fill="#10338c"
|
|
352
|
+
/>
|
|
353
|
+
<g
|
|
354
|
+
fill="#FFF"
|
|
355
|
+
>
|
|
356
|
+
<path
|
|
357
|
+
d="M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z"
|
|
358
|
+
/>
|
|
359
|
+
<path
|
|
360
|
+
d="M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z"
|
|
361
|
+
/>
|
|
362
|
+
</g>
|
|
363
|
+
<path
|
|
364
|
+
d="M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z"
|
|
365
|
+
fill="#D80027"
|
|
366
|
+
/>
|
|
367
|
+
<path
|
|
368
|
+
d="M154.6 115l100.2 55.7v-15.8L183 115z"
|
|
369
|
+
fill="#0052B4"
|
|
370
|
+
/>
|
|
371
|
+
<path
|
|
372
|
+
d="M154.6 115l100.2 55.7v-15.8L183 115z"
|
|
373
|
+
fill="#FFF"
|
|
374
|
+
/>
|
|
375
|
+
<path
|
|
376
|
+
d="M154.6 115l100.2 55.7v-15.8L183 115zm-83.9 0l-71.9 39.9v15.8L99 115z"
|
|
377
|
+
fill="#D80027"
|
|
378
|
+
/>
|
|
379
|
+
<path
|
|
380
|
+
d="M99 55.7L-1.2 0v15.7l71.9 40z"
|
|
381
|
+
fill="#0052B4"
|
|
382
|
+
/>
|
|
383
|
+
<path
|
|
384
|
+
d="M99 55.7L-1.2 0v15.7l71.9 40z"
|
|
385
|
+
fill="#FFF"
|
|
386
|
+
/>
|
|
387
|
+
<path
|
|
388
|
+
d="M99 55.7L-1.2 0v15.7l71.9 40zm84 0l71.8-40V0L154.6 55.7z"
|
|
389
|
+
fill="#D80027"
|
|
390
|
+
/>
|
|
391
|
+
</svg>
|
|
392
|
+
</div>
|
|
393
|
+
<div
|
|
394
|
+
class="emotion-15 emotion-16"
|
|
395
|
+
>
|
|
396
|
+
<svg
|
|
397
|
+
viewBox="0 85.333 512 341.333"
|
|
398
|
+
>
|
|
399
|
+
<path
|
|
400
|
+
d="M0 85.331h512v341.337H0z"
|
|
401
|
+
fill="#D80027"
|
|
402
|
+
/>
|
|
403
|
+
<path
|
|
404
|
+
d="M0 85.331h512v113.775H0z"
|
|
405
|
+
/>
|
|
406
|
+
<path
|
|
407
|
+
d="M0 312.882h512v113.775H0z"
|
|
408
|
+
fill="#FFDA44"
|
|
409
|
+
/>
|
|
410
|
+
</svg>
|
|
411
|
+
</div>
|
|
412
|
+
<div
|
|
413
|
+
class="emotion-15 emotion-16"
|
|
414
|
+
>
|
|
415
|
+
<svg
|
|
416
|
+
viewBox="0 85.333 512 341.333"
|
|
417
|
+
>
|
|
418
|
+
<path
|
|
419
|
+
d="M0 85.337h512v341.326H0z"
|
|
420
|
+
fill="#D80027"
|
|
421
|
+
/>
|
|
422
|
+
<path
|
|
423
|
+
d="M0 85.337h256V256H0z"
|
|
424
|
+
fill="#0052B4"
|
|
425
|
+
/>
|
|
426
|
+
<path
|
|
427
|
+
d="M186.435 170.669L162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"
|
|
428
|
+
fill="#FFF"
|
|
429
|
+
/>
|
|
430
|
+
<circle
|
|
431
|
+
cx="128"
|
|
432
|
+
cy="170.674"
|
|
433
|
+
fill="#0052B4"
|
|
434
|
+
r="29.006"
|
|
435
|
+
/>
|
|
436
|
+
<path
|
|
437
|
+
d="M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"
|
|
438
|
+
fill="#FFF"
|
|
439
|
+
/>
|
|
440
|
+
</svg>
|
|
441
|
+
</div>
|
|
442
|
+
</span>
|
|
443
|
+
</span>
|
|
444
|
+
</div>
|
|
445
|
+
<div
|
|
446
|
+
class="emotion-31 emotion-32"
|
|
447
|
+
>
|
|
448
|
+
Powered by
|
|
449
|
+
<div
|
|
450
|
+
class="emotion-33 emotion-34"
|
|
451
|
+
/>
|
|
452
|
+
/ v.1.0.0
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
</div>
|
|
456
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Footer';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import styled from '@emotion/styled';
|
|
2
|
+
|
|
3
|
+
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
|
4
|
+
|
|
5
|
+
export const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
|
6
|
+
background: theme?.palette.type === 'light' ? theme?.palette.snow : theme?.palette.cyanBlue,
|
|
7
|
+
borderTop: `1px solid ${theme?.palette.greyGainsboro}`,
|
|
8
|
+
color: theme?.palette.type === 'dark' ? theme?.palette.white : theme?.palette.nobel01,
|
|
9
|
+
fontSize: '14px',
|
|
10
|
+
padding: '20px',
|
|
11
|
+
}));
|
|
12
|
+
|
|
13
|
+
export const Inner = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'flex-end',
|
|
17
|
+
width: '100%',
|
|
18
|
+
[`@media (min-width: ${theme?.breakPoints.medium}px)`]: {
|
|
19
|
+
minWidth: 400,
|
|
20
|
+
maxWidth: 800,
|
|
21
|
+
margin: 'auto',
|
|
22
|
+
justifyContent: 'space-between',
|
|
23
|
+
},
|
|
24
|
+
[`@media (min-width: ${theme?.breakPoints.large}px)`]: {
|
|
25
|
+
maxWidth: 1240,
|
|
26
|
+
},
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
export const Left = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
display: 'none',
|
|
32
|
+
[`@media (min-width: ${theme?.breakPoints.medium}px)`]: {
|
|
33
|
+
display: 'flex',
|
|
34
|
+
},
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
export const Right = styled(Left)({
|
|
38
|
+
display: 'flex',
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const Love = styled('span')<{ theme?: Theme }>(({ theme }) => ({
|
|
42
|
+
color: theme?.palette.love,
|
|
43
|
+
padding: '0 5px',
|
|
44
|
+
}));
|