mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Merge pull request #259 from Meeeeow/add_publish_introduce
Add publish introduce
This commit is contained in:
commit
acd4349b75
4 changed files with 33 additions and 7 deletions
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
|
@ -127,9 +127,6 @@ module.exports = function(config, auth, storage) {
|
||||||
} else {
|
} else {
|
||||||
next(HTTPError[err.message ? 401 : 500](err.message));
|
next(HTTPError[err.message ? 401 : 500](err.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
let base = Utils.combineBaseUrl(Utils.getWebProtocol(req), req.get('host'), config.url_prefix);
|
|
||||||
res.redirect(base);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,18 @@ export default class PackageList extends React.Component {
|
||||||
{
|
{
|
||||||
this.props.packages.length ?
|
this.props.packages.length ?
|
||||||
this.renderList():
|
this.renderList():
|
||||||
<li className={classes.noPkg}>No Package Available</li>
|
<li className={classes.noPkg}>
|
||||||
|
<h1 className={classes.noPkgTitle}>No Package Published Yet</h1>
|
||||||
|
<p>
|
||||||
|
To publish your first package just:
|
||||||
|
<br/><br/>
|
||||||
|
<strong>1. Login</strong><br/>
|
||||||
|
<code>npm adduser --registry {location.origin}</code><br/>
|
||||||
|
<strong>2. Publish</strong><br/>
|
||||||
|
<code>npm publish --registry {location.origin}</code><br/>
|
||||||
|
<strong>3. Done!</strong>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -8,9 +8,27 @@ .pkgContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
li.noPkg {
|
li.noPkg {
|
||||||
text-align: center;
|
display: flex;
|
||||||
line-height: 3;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding: 30px 0;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: lightgrey;
|
color: #9f9f9f;
|
||||||
|
|
||||||
|
.noPkgTitle {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 1.5;
|
||||||
|
margin: 0 auto;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue