forked from niki-timofe/verdaccio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow ui hide package managers on sidebar (verdaccio#2226)
* feat: allow ui hide package managers on sidebar * add test * add changeset * chore: remove snapshot * chore: update config
- Loading branch information
1 parent
9ffa205
commit aecbd22
Showing
14 changed files
with
137 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
'@verdaccio/types': minor | ||
'@verdaccio/ui-theme': minor | ||
'@verdaccio/web': minor | ||
--- | ||
|
||
web: allow ui hide package managers on sidebar | ||
|
||
If there is a package manager of preference over others, you can define the package managers to be displayed on the detail page and sidebar, just define in the `config.yaml` and web section the list of package managers to be displayed. | ||
|
||
``` | ||
web: | ||
title: Verdaccio | ||
sort_packages: asc | ||
primary_color: #cccccc | ||
pkgManagers: | ||
- pnpm | ||
- yarn | ||
# - npm | ||
``` | ||
|
||
To disable all package managers, just define empty: | ||
|
||
``` | ||
web: | ||
title: Verdaccio | ||
sort_packages: asc | ||
primary_color: #cccccc | ||
pkgManagers: | ||
``` | ||
|
||
and the section would be hidden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.