2017-12-16 13:25:59 +01:00
|
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const React = require('react');
|
|
|
|
|
|
|
|
|
|
const CompLibrary = require('../../core/CompLibrary.js');
|
2018-03-04 20:59:48 +01:00
|
|
|
|
const translate = require("../../server/translate.js").translate;
|
|
|
|
|
const translation = require('../../server/translation.js');
|
2017-12-16 13:25:59 +01:00
|
|
|
|
const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
|
|
|
|
|
const Container = CompLibrary.Container;
|
|
|
|
|
const GridBlock = CompLibrary.GridBlock;
|
|
|
|
|
|
|
|
|
|
const siteConfig = require(process.cwd() + '/siteConfig.js');
|
|
|
|
|
|
|
|
|
|
class Button extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="pluginWrapper buttonWrapper">
|
|
|
|
|
<a className="button" href={this.props.href} target={this.props.target}>
|
|
|
|
|
{this.props.children}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Button.defaultProps = {
|
|
|
|
|
target: '_self',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class HomeSplash extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="homeContainer">
|
|
|
|
|
<div className="homeSplashFade">
|
|
|
|
|
<div className="wrapper homeWrapper">
|
|
|
|
|
<div className="inner">
|
|
|
|
|
<h2 className="projectTitle">
|
|
|
|
|
<img title={siteConfig.title} src={siteConfig.baseUrl + 'img/verdaccio@2x.png'} />
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<small>
|
|
|
|
|
{
|
|
|
|
|
translation[this.props.language]['localized-strings']
|
|
|
|
|
.tagline
|
|
|
|
|
}
|
|
|
|
|
</small>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</h2>
|
|
|
|
|
<div className="section promoSection">
|
|
|
|
|
<div className="promoRow">
|
|
|
|
|
<div className="pluginRowBlock">
|
|
|
|
|
<Button
|
|
|
|
|
href={
|
|
|
|
|
siteConfig.baseUrl +
|
|
|
|
|
'docs/' +
|
|
|
|
|
this.props.language +
|
2018-05-05 11:02:17 +02:00
|
|
|
|
'/what-is-verdaccio.html'
|
2017-12-16 13:25:59 +01:00
|
|
|
|
}>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<translate>
|
2018-04-30 14:38:56 +02:00
|
|
|
|
Get Started
|
2018-03-04 20:59:48 +01:00
|
|
|
|
</translate>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</Button>
|
2018-04-30 14:38:56 +02:00
|
|
|
|
<Button href="https://github.com/verdaccio">Github</Button>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
<Button
|
|
|
|
|
href={
|
|
|
|
|
siteConfig.baseUrl +
|
|
|
|
|
'docs/' +
|
|
|
|
|
this.props.language +
|
2018-01-06 23:04:02 +01:00
|
|
|
|
'/contributing.html'
|
2017-12-16 13:25:59 +01:00
|
|
|
|
}>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<translate>
|
|
|
|
|
Contribute
|
|
|
|
|
</translate>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<div className="githubButton" style={{minHeight: '20px'}}>
|
|
|
|
|
<a
|
|
|
|
|
className="github-button"
|
|
|
|
|
href={siteConfig.repoUrl}
|
|
|
|
|
data-icon="octicon-star"
|
|
|
|
|
data-count-href="/verdaccio/verdaccio/stargazers"
|
|
|
|
|
data-show-count={true}
|
|
|
|
|
data-count-aria-label="# stargazers on GitHub"
|
|
|
|
|
aria-label="Star verdaccio/verdaccio on GitHub"
|
|
|
|
|
>
|
|
|
|
|
Star
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Index extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
let language = this.props.language || 'en';
|
|
|
|
|
const showcase = siteConfig.users
|
|
|
|
|
.filter(user => {
|
|
|
|
|
return user.pinned;
|
|
|
|
|
})
|
|
|
|
|
.map(user => {
|
|
|
|
|
return (
|
|
|
|
|
<a href={user.infoLink}>
|
|
|
|
|
<img src={user.image} title={user.caption} />
|
|
|
|
|
</a>
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<HomeSplash language={language} />
|
|
|
|
|
<div className="mainContainer">
|
|
|
|
|
<Container padding={['bottom', 'top']}>
|
|
|
|
|
<GridBlock
|
|
|
|
|
align="center"
|
|
|
|
|
contents={[
|
|
|
|
|
{
|
2018-01-06 23:04:02 +01:00
|
|
|
|
content: '```bash\n' +
|
|
|
|
|
'$> npm install --global verdaccio \n' +
|
|
|
|
|
'$> yarn global add verdaccio\n' +
|
|
|
|
|
'```',
|
2018-03-04 20:59:48 +01:00
|
|
|
|
title: <translate>Easy to Install</translate>,
|
2017-12-16 13:25:59 +01:00
|
|
|
|
},
|
|
|
|
|
{
|
2018-01-06 23:04:02 +01:00
|
|
|
|
content: '```bash\n' +
|
|
|
|
|
'$> npm set registry http://localhost:4873 \n' +
|
|
|
|
|
'$> npm adduser --registry http://localhost:4873\n' +
|
|
|
|
|
'```',
|
2018-03-04 20:59:48 +01:00
|
|
|
|
title: <translate>Easy to Set Up</translate>,
|
2018-01-06 23:04:02 +01:00
|
|
|
|
}
|
2017-12-16 13:25:59 +01:00
|
|
|
|
]}
|
|
|
|
|
layout="fourColumn"
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
className="productShowcaseSection paddingBottom"
|
|
|
|
|
style={{textAlign: 'center'}}>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<h2>
|
|
|
|
|
<translate>
|
|
|
|
|
Easy to Use
|
|
|
|
|
</translate>
|
|
|
|
|
</h2>
|
2018-01-06 23:04:02 +01:00
|
|
|
|
<MarkdownBlock>
|
|
|
|
|
```bash

|
|
|
|
|
$> verdaccio 

|
|
|
|
|
warn --- config file - /home/.config/verdaccio/config.yaml 

|
|
|
|
|
warn --- http address - http://localhost:4873/ - verdaccio/3.0.0

|
|
|
|
|
```
|
|
|
|
|
</MarkdownBlock>
|
|
|
|
|
<h2>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<translate>
|
|
|
|
|
That’s it ! Enjoy your private package manager.
|
|
|
|
|
</translate>
|
2018-01-06 23:04:02 +01:00
|
|
|
|
</h2>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Container padding={['bottom', 'top']} background="light">
|
|
|
|
|
<GridBlock
|
|
|
|
|
contents={[
|
|
|
|
|
{
|
2018-03-04 20:59:48 +01:00
|
|
|
|
content: <translate>**npm**, **yarn** and **pnpm** are part of any development workflow
|
|
|
|
|
we try to catch up with the latest updates.</translate>,
|
2018-01-20 23:00:45 +01:00
|
|
|
|
image: siteConfig.baseUrl + 'img/package_managers_grey.png',
|
2017-12-16 13:25:59 +01:00
|
|
|
|
imageAlign: 'right',
|
2018-03-04 20:59:48 +01:00
|
|
|
|
title: <translate>The most popular npm clients are supported</translate>,
|
2017-12-16 13:25:59 +01:00
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
|
|
|
|
|
|
|
|
|
<Container padding={['bottom', 'top']} id="try">
|
|
|
|
|
<GridBlock
|
|
|
|
|
contents={[
|
|
|
|
|
{
|
2018-03-04 20:59:48 +01:00
|
|
|
|
content: <translate>We have an official **Docker** image ready to use</translate> + '
\n' +
|
2018-01-06 23:04:02 +01:00
|
|
|
|
'```bash\n' +
|
2018-01-21 10:23:24 +01:00
|
|
|
|
'docker pull verdaccio/verdaccio\n' +
|
2018-01-06 23:04:02 +01:00
|
|
|
|
'```' +
|
2018-03-04 20:59:48 +01:00
|
|
|
|
'\n' + <translate>and **Kubernetes Helm** support for easy deployment</translate> + '\n '+
|
2018-01-06 23:04:02 +01:00
|
|
|
|
'```bash\n' +
|
|
|
|
|
'helm install --name npm stable/verdaccio\n' +
|
|
|
|
|
'```\n',
|
2018-01-20 23:00:45 +01:00
|
|
|
|
image: siteConfig.baseUrl + 'img/devops_support_grey.png',
|
2017-12-16 13:25:59 +01:00
|
|
|
|
imageAlign: 'left',
|
2018-03-04 20:59:48 +01:00
|
|
|
|
title: <translate>Making the DevOps work easy</translate>,
|
2017-12-16 13:25:59 +01:00
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
|
|
|
|
|
|
|
|
|
<Container padding={['bottom', 'top']} background="dark">
|
|
|
|
|
<GridBlock
|
|
|
|
|
contents={[
|
|
|
|
|
{
|
|
|
|
|
content:
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<translate>Verdaccio is plugin based, authentication, middleware and storage support. Just pick one or create your custom one.</translate>,
|
2017-12-16 13:25:59 +01:00
|
|
|
|
image: siteConfig.baseUrl + 'img/verdaccio-tiny@3x.png',
|
|
|
|
|
imageAlign: 'right',
|
2018-03-04 20:59:48 +01:00
|
|
|
|
title: <translate>Plugin Support</translate>,
|
2017-12-16 13:25:59 +01:00
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
|
|
|
|
|
|
|
|
|
<div className="productShowcaseSection paddingBottom">
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<h2>
|
|
|
|
|
<translate>
|
|
|
|
|
Who's Using This?
|
|
|
|
|
</translate>
|
|
|
|
|
</h2>
|
|
|
|
|
<p>
|
|
|
|
|
<translate>
|
|
|
|
|
This project is used by all these people
|
|
|
|
|
</translate>
|
|
|
|
|
</p>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
<div className="logos">{showcase}</div>
|
|
|
|
|
<div className="more-users">
|
|
|
|
|
<a
|
|
|
|
|
className="button"
|
|
|
|
|
href={
|
|
|
|
|
siteConfig.baseUrl + this.props.language + '/' + 'users.html'
|
|
|
|
|
}>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<translate>More</translate> {siteConfig.title} <translate>Users</translate>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = Index;
|