mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Added default logo to the page
This commit is contained in:
parent
daaee2b971
commit
f5b9e0e0d5
3 changed files with 3 additions and 12 deletions
|
@ -11,9 +11,7 @@
|
|||
<body>
|
||||
<header>
|
||||
<div id='header-inner'>
|
||||
{{#if logo}}
|
||||
<a href='/'><img id='logo' alt='{{ name }}' title='{{ name }}' src='/-/logo' /></a>
|
||||
{{/if}}
|
||||
<a href='/'><img id='logo' alt='{{ name }}' title='{{ name }}' src='/-/logo' /></a>
|
||||
|
||||
<div class='center'>
|
||||
<article id='setup'>
|
||||
|
|
11
lib/index.js
11
lib/index.js
|
@ -138,8 +138,7 @@ module.exports = function(config_hash) {
|
|||
res.send(template({
|
||||
name: config.title || "Sinopia",
|
||||
packages: packages,
|
||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/',
|
||||
logo: config.logo
|
||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
@ -247,13 +246,7 @@ module.exports = function(config_hash) {
|
|||
});
|
||||
|
||||
app.get('/-/logo', function(req, res, next) {
|
||||
if(config.logo) {
|
||||
res.sendfile(config.logo);
|
||||
}
|
||||
else {
|
||||
res.status(404);
|
||||
res.send("File Not Found");
|
||||
}
|
||||
res.sendfile(config.logo ? config.logo : __dirname + "/static/logo.png");
|
||||
});
|
||||
|
||||
// Search
|
||||
|
|
BIN
lib/static/logo.png
Normal file
BIN
lib/static/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in a new issue