chore: sync with verdaccio master

This commit is contained in:
Juan Picado @jotadeveloper
2019-04-04 21:23:40 +02:00
parent 133a5f0171
commit 3506f32ad8
241 changed files with 57691 additions and 1932 deletions

26
src/webui/index.js Normal file
View File

@@ -0,0 +1,26 @@
import './utils/__setPublicPath__';
import React from 'react';
import ReactDOM from 'react-dom';
import {AppContainer} from 'react-hot-loader';
import App from './app';
const rootNode = document.getElementById('root');
const renderApp = (Component) => {
ReactDOM.render(
<AppContainer>
<Component />
</AppContainer>,
rootNode
);
};
renderApp(App);
if (module.hot) {
module.hot.accept('./app', () => {
renderApp(App);
});
}