feat(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24 (5.x) (#3130)

* fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add docs

* chore: format file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
This commit is contained in:
renovate[bot] 2022-04-17 23:39:00 +02:00 committed by GitHub
parent 157d5c5ce4
commit da01a14e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 67 additions and 28 deletions

10
.pnp.js generated
View File

@ -85,7 +85,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@verdaccio/readme", "npm:10.3.3"], ["@verdaccio/readme", "npm:10.3.3"],
["@verdaccio/streams", "npm:10.2.0"], ["@verdaccio/streams", "npm:10.2.0"],
["@verdaccio/types", "npm:10.3.0"], ["@verdaccio/types", "npm:10.3.0"],
["@verdaccio/ui-theme", "npm:6.0.0-6-next.23"], ["@verdaccio/ui-theme", "npm:6.0.0-6-next.24"],
["JSONStream", "npm:1.3.5"], ["JSONStream", "npm:1.3.5"],
["all-contributors-cli", "npm:6.20.0"], ["all-contributors-cli", "npm:6.20.0"],
["async", "npm:3.2.3"], ["async", "npm:3.2.3"],
@ -5848,10 +5848,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}] }]
]], ]],
["@verdaccio/ui-theme", [ ["@verdaccio/ui-theme", [
["npm:6.0.0-6-next.23", { ["npm:6.0.0-6-next.24", {
"packageLocation": "./.yarn/cache/@verdaccio-ui-theme-npm-6.0.0-6-next.23-aa0902d046-e714b461e1.zip/node_modules/@verdaccio/ui-theme/", "packageLocation": "./.yarn/cache/@verdaccio-ui-theme-npm-6.0.0-6-next.24-8cb8d20f08-139ded2339.zip/node_modules/@verdaccio/ui-theme/",
"packageDependencies": [ "packageDependencies": [
["@verdaccio/ui-theme", "npm:6.0.0-6-next.23"] ["@verdaccio/ui-theme", "npm:6.0.0-6-next.24"]
], ],
"linkType": "HARD", "linkType": "HARD",
}] }]
@ -17922,7 +17922,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@verdaccio/readme", "npm:10.3.3"], ["@verdaccio/readme", "npm:10.3.3"],
["@verdaccio/streams", "npm:10.2.0"], ["@verdaccio/streams", "npm:10.2.0"],
["@verdaccio/types", "npm:10.3.0"], ["@verdaccio/types", "npm:10.3.0"],
["@verdaccio/ui-theme", "npm:6.0.0-6-next.23"], ["@verdaccio/ui-theme", "npm:6.0.0-6-next.24"],
["JSONStream", "npm:1.3.5"], ["JSONStream", "npm:1.3.5"],
["all-contributors-cli", "npm:6.20.0"], ["all-contributors-cli", "npm:6.20.0"],
["async", "npm:3.2.3"], ["async", "npm:3.2.3"],

View File

@ -20,15 +20,32 @@ web:
# convert your UI to the dark side # convert your UI to the dark side
# darkMode: true # darkMode: true
# html_cache: true # html_cache: true
# logo: http://somedomain/somelogo.png # by default all features are displayed
# favicon: http://somedomain/favicon.ico | /path/favicon.ico # login: true
# rateLimit: # showInfo: true
# windowMs: 1000 # showSettings: true
# max: 10000 # In combination with darkMode you can force specific theme
# showThemeSwitch: true
# showFooter: true
# showSearch: true
# showRaw: true
# showDownloadTarball: true
# HTML tags injected after manifest <scripts/>
# scriptsBodyAfter:
# - '<script type="text/javascript" src="https://my.company.com/customJS.min.js"></script>'
# HTML tags injected before ends </head>
# metaScripts:
# - '<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>'
# - '<script type="text/javascript" src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js"></script>'
# - '<meta name="robots" content="noindex" />'
# HTML tags injected first child at <body/>
# bodyBefore:
# - '<div id="myId">html before webpack scripts</div>'
# Public path for template manifest scripts (only manifest)
# publicPath: http://somedomain.org/
# translate your registry, api i18n not available yet # translate your registry, api i18n not available yet
# i18n: # i18n:
# list of the available translations https://github.com/verdaccio/ui/tree/master/i18n/translations # list of the available translations https://github.com/verdaccio/verdaccio/blob/master/packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md
# web: en-US # web: en-US
auth: auth:

View File

@ -16,24 +16,40 @@ storage: /verdaccio/storage/data
plugins: /verdaccio/plugins plugins: /verdaccio/plugins
web: web:
# WebUI is enabled as default, if you want disable it, just uncomment this line
#enable: false
title: Verdaccio title: Verdaccio
# comment out to disable gravatar support # comment out to disable gravatar support
# gravatar: false # gravatar: false
# by default packages are ordercer ascendant (asc|desc) # by default packages are ordercer ascendant (asc|desc)
# sort_packages: asc # sort_packages: asc
# convert your UI to the dark side
# darkMode: true # darkMode: true
# html_cache: true # html_cache: true
# logo: http://somedomain/somelogo.png # by default all features are displayed
# favicon: http://somedomain/favicon.ico | /path/favicon.ico # login: true
# rateLimit: # showInfo: true
# windowMs: 1000 # showSettings: true
# max: 10000 # In combination with darkMode you can force specific theme
# showThemeSwitch: true
# showFooter: true
# showSearch: true
# showRaw: true
# showDownloadTarball: true
# HTML tags injected after manifest <scripts/>
# scriptsBodyAfter:
# - '<script type="text/javascript" src="https://my.company.com/customJS.min.js"></script>'
# HTML tags injected before ends </head>
# metaScripts:
# - '<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>'
# - '<script type="text/javascript" src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js"></script>'
# - '<meta name="robots" content="noindex" />'
# HTML tags injected first child at <body/>
# bodyBefore:
# - '<div id="myId">html before webpack scripts</div>'
# Public path for template manifest scripts (only manifest)
# publicPath: http://somedomain.org/
# translate your registry, api i18n not available yet # translate your registry, api i18n not available yet
# i18n: # i18n:
# list of the available translations https://github.com/verdaccio/ui/tree/master/i18n/translations # list of the available translations https://github.com/verdaccio/verdaccio/blob/master/packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md
# web: en-US # web: en-US
auth: auth:

View File

@ -22,7 +22,7 @@
"@verdaccio/local-storage": "10.2.1", "@verdaccio/local-storage": "10.2.1",
"@verdaccio/readme": "10.3.3", "@verdaccio/readme": "10.3.3",
"@verdaccio/streams": "10.2.0", "@verdaccio/streams": "10.2.0",
"@verdaccio/ui-theme": "6.0.0-6-next.23", "@verdaccio/ui-theme": "6.0.0-6-next.24",
"JSONStream": "1.3.5", "JSONStream": "1.3.5",
"async": "3.2.3", "async": "3.2.3",
"body-parser": "1.20.0", "body-parser": "1.20.0",

View File

@ -56,7 +56,7 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
const pkgManagers = config?.web?.pkgManagers ?? ['yarn', 'pnpm', 'npm']; const pkgManagers = config?.web?.pkgManagers ?? ['yarn', 'pnpm', 'npm'];
const version = pkgJSON.version; const version = pkgJSON.version;
const primaryColor = validatePrimaryColor(config?.web?.primary_color) ?? '#4b5e40'; const primaryColor = validatePrimaryColor(config?.web?.primary_color) ?? '#4b5e40';
const { scriptsBodyAfter, metaScripts, scriptsbodyBefore } = Object.assign( const { scriptsBodyAfter, metaScripts, scriptsbodyBefore, showInfo, showSettings, showThemeSwitch, showFooter, showSearch, showDownloadTarball } = Object.assign(
{}, {},
{ {
scriptsBodyAfter: [], scriptsBodyAfter: [],
@ -66,6 +66,12 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
config?.web config?.web
); );
const options = { const options = {
showInfo,
showSettings,
showThemeSwitch,
showFooter,
showSearch,
showDownloadTarball,
darkMode, darkMode,
url_prefix, url_prefix,
basename, basename,

View File

@ -3939,10 +3939,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@verdaccio/ui-theme@npm:6.0.0-6-next.23": "@verdaccio/ui-theme@npm:6.0.0-6-next.24":
version: 6.0.0-6-next.23 version: 6.0.0-6-next.24
resolution: "@verdaccio/ui-theme@npm:6.0.0-6-next.23" resolution: "@verdaccio/ui-theme@npm:6.0.0-6-next.24"
checksum: e714b461e1652462faba75c2fd96681d4dfb69cbac8ec6ce5083f458a8310517bf63e805e6292c4d6608262d67d97812bba98b4921c5d1711933dba089c260e0 checksum: 139ded2339feb07613a9d9d8ad308d7fd758acbaecae7abe2c37621bfc18c23a127148ad84edda36b279b5c048875c317874f1c7965d44448d0d6d33ee5179dd
languageName: node languageName: node
linkType: hard linkType: hard
@ -14784,7 +14784,7 @@ typescript@4.1.3:
"@verdaccio/readme": 10.3.3 "@verdaccio/readme": 10.3.3
"@verdaccio/streams": 10.2.0 "@verdaccio/streams": 10.2.0
"@verdaccio/types": 10.3.0 "@verdaccio/types": 10.3.0
"@verdaccio/ui-theme": 6.0.0-6-next.23 "@verdaccio/ui-theme": 6.0.0-6-next.24
JSONStream: 1.3.5 JSONStream: 1.3.5
all-contributors-cli: 6.20.0 all-contributors-cli: 6.20.0
async: 3.2.3 async: 3.2.3