0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/.changeset/orange-flowers-cover.md
Juan Picado d43894e8f6
feat: rework web header for mobile, add new settings and raw manifest button (#3129)
* feat: rework header, dialogs and new raw mode

* chore: add test for raw button and hide download tarball

* chore: add test hide footer

* chore: add docs to config files

* chore: add changeset

* chore: enable raw by default
2022-04-16 12:26:02 +02:00

1.5 KiB

@verdaccio/config @verdaccio/types @verdaccio/ui-theme
minor minor minor

feat: rework web header for mobile, add new settings and raw manifest button

New set of variables to hide features

Add set of new variables that allow hide different parts of the UI, buttons, footer or download tarballs. All are enabled by default.

# login: true <-- already exist but worth the reminder
# showInfo: true
# showSettings: true
# In combination with darkMode you can force specific theme
# showThemeSwitch: true
# showFooter: true
# showSearch: true
# showDownloadTarball: true

If you disable showThemeSwitch and force darkMode: true the local storage settings would be ignored and force all themes to the one in the configuration file.

Future could be extended to

Raw button to display manifest package

A new experimental feature (enabled by default), button named RAW to be able navigate on the package manifest directly on the ui, kudos to react-json-view that allows an easy integration, not configurable yet until get more feedback.

showRaw: true

Rework header buttons

  • The header has been rework, the mobile was not looking broken.
  • Removed info button in the header and moved to a dialog
  • Info dialog now contains more information about the project, license and the aid content for Ukrania now is inside of the info modal.
  • Separate settings and info to avoid collapse too much info (for mobile still need some work)