2017-12-16 13:25:59 +01:00
|
|
|
|
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 Container = CompLibrary.Container;
|
|
|
|
|
const GridBlock = CompLibrary.GridBlock;
|
|
|
|
|
|
|
|
|
|
const siteConfig = require(process.cwd() + '/siteConfig.js');
|
|
|
|
|
|
2018-06-17 01:23:19 +02:00
|
|
|
|
class TweetsSection extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
return(
|
|
|
|
|
<div className="tweets-section">
|
|
|
|
|
<div>
|
|
|
|
|
{this.renderTweetUpRight()}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
{this.renderTweetUpLeft()}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
{this.renderTweetDownRight()}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
{this.renderTweetDownLeft()}
|
|
|
|
|
</div>
|
|
|
|
|
</div>);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderTweetUpRight() {
|
|
|
|
|
return (<blockquote className="twitter-tweet" data-cards="hidden" data-lang="es"><p lang="en" dir="ltr">In a world
|
|
|
|
|
where <a href="https://twitter.com/npmjs?ref_src=twsrc%5Etfw">@npmjs</a> and other core infrastructure fully
|
|
|
|
|
embraced the "move fast and break things" mindset, it's great to see other people care deeply about
|
|
|
|
|
stability. <a href="https://t.co/uVk7xFeiwU">https://t.co/uVk7xFeiwU</a> "just works" and has saved us
|
|
|
|
|
countless headaches. Thanks <a href="https://twitter.com/verdaccio_npm?ref_src=twsrc%5Etfw">@verdaccio_npm</a> !
|
|
|
|
|
</p>— Sheet JS (@SheetJS) <a
|
|
|
|
|
href="https://twitter.com/SheetJS/status/1002609907370250241?ref_src=twsrc%5Etfw">1 de junio de 2018</a>
|
|
|
|
|
</blockquote>);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderTweetUpLeft() {
|
|
|
|
|
return (
|
|
|
|
|
<blockquote className="twitter-tweet" data-lang="es"><p lang="en" dir="ltr">Woke up to <a
|
|
|
|
|
href="https://twitter.com/timer150?ref_src=twsrc%5Etfw">@timer150</a> fixing end-to-end test flakiness in Create
|
|
|
|
|
React App 👏 Background: we have a Lerna monorepo and used very complex hacks for integration testing of
|
|
|
|
|
generated projects. Solution: run a local npm registry to simulate a publish 😁 <a
|
|
|
|
|
href="https://t.co/ggNfS4PpFv">https://t.co/ggNfS4PpFv</a></p>— Dan Abramov (@dan_abramov) <a
|
|
|
|
|
href="https://twitter.com/dan_abramov/status/951427300070916096?ref_src=twsrc%5Etfw">11 de enero de 2018</a>
|
|
|
|
|
</blockquote>);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderTweetDownRight() {
|
|
|
|
|
return (
|
|
|
|
|
<blockquote className="twitter-tweet" data-lang="es"><p lang="en" dir="ltr">Verdaccio is my personal hero. A
|
|
|
|
|
lightweight npm registry & cache. Just two commands to install + use it. <a
|
|
|
|
|
href="https://twitter.com/hashtag/incredibile?src=hash&ref_src=twsrc%5Etfw">#incredibile</a> <a
|
|
|
|
|
href="https://t.co/X0uNgS6UMz">https://t.co/X0uNgS6UMz</a></p>— Manfred Steyer (@ManfredSteyer) <a
|
|
|
|
|
href="https://twitter.com/ManfredSteyer/status/1002153128140136448?ref_src=twsrc%5Etfw">31 de mayo de 2018</a>
|
|
|
|
|
</blockquote>)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderTweetDownLeft() {
|
|
|
|
|
return (
|
|
|
|
|
<blockquote className="twitter-tweet" data-conversation="none" data-cards="hidden" data-lang="es">
|
|
|
|
|
<p lang="en" dir="ltr">
|
|
|
|
|
<a href="https://twitter.com/verdaccio_npm?ref_src=twsrc%5Etfw">@verdaccio_npm</a> is a pretty good open-source
|
|
|
|
|
tool and seems to be growing. We're currently using them at NodeSource for some internal caching and
|
|
|
|
|
modules, and are happy so far. Easy to setup for both business and use.<br/><br/>🔗
|
|
|
|
|
<a href="https://t.co/ow5JRgZYrU">https://t.co/ow5JRgZYrU</a>
|
|
|
|
|
</p>— Tierney Cyren (@bitandbang) <a
|
|
|
|
|
href="https://twitter.com/bitandbang/status/1001297542779424768?ref_src=twsrc%5Etfw">29 de mayo de 2018</a>
|
|
|
|
|
</blockquote>);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-16 13:25:59 +01:00
|
|
|
|
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',
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-17 01:23:19 +02:00
|
|
|
|
class HeaderButtons extends React.Component {
|
|
|
|
|
buildUrl(relativePath) {
|
|
|
|
|
return `${siteConfig.baseUrl}docs/${this.props.language}${relativePath}`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="pluginRowBlock">
|
|
|
|
|
<Button href={this.buildUrl('/what-is-verdaccio.html')}>
|
|
|
|
|
<translate>
|
|
|
|
|
Get Started
|
|
|
|
|
</translate>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button href="https://github.com/verdaccio">
|
|
|
|
|
Github
|
|
|
|
|
</Button>
|
|
|
|
|
<Button href={this.buildUrl('/contributing.html')}>
|
|
|
|
|
<translate>
|
|
|
|
|
Contribute
|
|
|
|
|
</translate>
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-16 13:25:59 +01:00
|
|
|
|
class HomeSplash extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="homeContainer">
|
|
|
|
|
<div className="homeSplashFade">
|
|
|
|
|
<div className="wrapper homeWrapper">
|
|
|
|
|
<div className="inner">
|
2018-06-17 01:23:19 +02:00
|
|
|
|
<h1 className="projectTitle">
|
2018-08-24 09:18:49 +02:00
|
|
|
|
<img title={siteConfig.title} alt={siteConfig.title} src={siteConfig.baseUrl + 'img/logo/banner/png/verdaccio-banner@2x.png'} />
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<small>
|
|
|
|
|
{
|
2018-06-17 01:23:19 +02:00
|
|
|
|
translation[this.props.language]['localized-strings'].tagline
|
2018-03-04 20:59:48 +01:00
|
|
|
|
}
|
|
|
|
|
</small>
|
2018-06-17 01:23:19 +02:00
|
|
|
|
</h1>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
<div className="section promoSection">
|
|
|
|
|
<div className="promoRow">
|
2018-06-17 01:23:19 +02:00
|
|
|
|
<HeaderButtons language={this.props.language}/>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-06-17 01:23:19 +02:00
|
|
|
|
<iframe
|
|
|
|
|
src={"https://ghbtns.com/github-btn.html?user=verdaccio&repo=verdaccio&type=star&count=true&size=large"}
|
|
|
|
|
frameBorder="0"
|
|
|
|
|
scrolling="0"
|
|
|
|
|
width="160px"
|
|
|
|
|
height="30px"
|
|
|
|
|
style={{marginTop: '8px'}}
|
|
|
|
|
/>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-17 01:23:19 +02:00
|
|
|
|
const FeatureSection = () => (
|
|
|
|
|
<GridBlock
|
2018-06-17 13:39:52 +02:00
|
|
|
|
className="feature-section"
|
2018-06-17 01:23:19 +02:00
|
|
|
|
align="center"
|
|
|
|
|
contents={[
|
|
|
|
|
{
|
2018-06-17 13:39:52 +02:00
|
|
|
|
content: '```bash\n' + 'npm install --global verdaccio'
|
2018-06-17 01:23:19 +02:00
|
|
|
|
}
|
|
|
|
|
]}
|
|
|
|
|
layout="twoColumn"
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const MiddleTitle = (props) => {
|
|
|
|
|
return (
|
|
|
|
|
<div className="productShowcaseSection paddingBottom"
|
|
|
|
|
style={{textAlign: 'center'}}>
|
|
|
|
|
<h2>
|
|
|
|
|
{props.children}
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-16 13:25:59 +01:00
|
|
|
|
class Index extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
let language = this.props.language || 'en';
|
|
|
|
|
const showcase = siteConfig.users
|
|
|
|
|
.filter(user => {
|
|
|
|
|
return user.pinned;
|
|
|
|
|
})
|
2018-07-07 23:22:25 +02:00
|
|
|
|
.map((user, i) => {
|
2017-12-16 13:25:59 +01:00
|
|
|
|
return (
|
2018-07-07 23:22:25 +02:00
|
|
|
|
<a href={user.infoLink} key={i} target="_blank" rel="noopener">
|
2018-06-17 01:23:19 +02:00
|
|
|
|
<img src={user.image} alt={user.caption} title={user.caption} />
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</a>
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<HomeSplash language={language} />
|
|
|
|
|
<div className="mainContainer">
|
2018-06-17 01:23:19 +02:00
|
|
|
|
<Container padding={['top']}>
|
|
|
|
|
<FeatureSection/>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
</Container>
|
2018-06-17 01:23:19 +02:00
|
|
|
|
<MiddleTitle>
|
2018-03-04 20:59:48 +01:00
|
|
|
|
<translate>
|
|
|
|
|
That’s it ! Enjoy your private package manager.
|
|
|
|
|
</translate>
|
2018-06-17 01:23:19 +02:00
|
|
|
|
</MiddleTitle>
|
|
|
|
|
<Container>
|
|
|
|
|
<TweetsSection/>
|
|
|
|
|
</Container>
|
|
|
|
|
<MiddleTitle>
|
|
|
|
|
<translate>
|
|
|
|
|
Many great developers are already enjoying Verdaccio, join the community!
|
|
|
|
|
</translate>
|
|
|
|
|
</MiddleTitle>
|
2017-12-16 13:25:59 +01:00
|
|
|
|
<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',
|
2018-06-17 01:23:19 +02:00
|
|
|
|
imageAlt: 'The most popular npm clients are supported',
|
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>,
|
2018-08-24 09:18:49 +02:00
|
|
|
|
image: siteConfig.baseUrl + 'img/logo/symbol/png/verdaccio-tiny@3x.png',
|
2017-12-16 13:25:59 +01:00
|
|
|
|
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;
|