1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

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 62 additions and 23 deletions

10
.pnp.js generated

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

@ -20,15 +20,32 @@ web:
# convert your UI to the dark side
# darkMode: true
# html_cache: true
# logo: http://somedomain/somelogo.png
# favicon: http://somedomain/favicon.ico | /path/favicon.ico
# rateLimit:
# windowMs: 1000
# max: 10000
# by default all features are displayed
# login: true
# showInfo: true
# showSettings: true
# 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
# 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
auth:

@ -16,24 +16,40 @@ storage: /verdaccio/storage/data
plugins: /verdaccio/plugins
web:
# WebUI is enabled as default, if you want disable it, just uncomment this line
#enable: false
title: Verdaccio
# comment out to disable gravatar support
# gravatar: false
# by default packages are ordercer ascendant (asc|desc)
# sort_packages: asc
# convert your UI to the dark side
# darkMode: true
# html_cache: true
# logo: http://somedomain/somelogo.png
# favicon: http://somedomain/favicon.ico | /path/favicon.ico
# rateLimit:
# windowMs: 1000
# max: 10000
# by default all features are displayed
# login: true
# showInfo: true
# showSettings: true
# 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
# 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
auth:

@ -22,7 +22,7 @@
"@verdaccio/local-storage": "10.2.1",
"@verdaccio/readme": "10.3.3",
"@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",
"async": "3.2.3",
"body-parser": "1.20.0",

@ -56,7 +56,7 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
const pkgManagers = config?.web?.pkgManagers ?? ['yarn', 'pnpm', 'npm'];
const version = pkgJSON.version;
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: [],
@ -66,6 +66,12 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
config?.web
);
const options = {
showInfo,
showSettings,
showThemeSwitch,
showFooter,
showSearch,
showDownloadTarball,
darkMode,
url_prefix,
basename,

BIN
yarn.lock

Binary file not shown.