@bufferapp/account-web
Advanced tools
Comparing version 0.5.37 to 0.6.3
@@ -1,5 +0,5 @@ | ||
import React from 'react'; | ||
import { Route, Switch } from 'react-router'; | ||
import Notifications from '@bufferapp/notifications'; | ||
import DefaultPage from '../DefaultPage'; | ||
import React from 'react' | ||
import { Route, Switch } from 'react-router' | ||
import Notifications from '@bufferapp/notifications' | ||
import DefaultPage from '../DefaultPage' | ||
@@ -9,9 +9,9 @@ const appStyle = { | ||
height: '100%', | ||
}; | ||
} | ||
const contentStyle = { | ||
flexGrow: 1, | ||
}; | ||
} | ||
export default () => | ||
const App = () => ( | ||
<div style={appStyle}> | ||
@@ -24,2 +24,5 @@ <div style={contentStyle}> | ||
<Notifications /> | ||
</div>; | ||
</div> | ||
) | ||
export default App |
@@ -1,22 +0,16 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import createStore, { history } from '@bufferapp/account-store'; | ||
import { Provider } from 'react-redux'; | ||
import { | ||
ConnectedRouter as Router, | ||
} from 'react-router-redux'; | ||
import { checkA11y } from 'storybook-addon-a11y'; | ||
import App from './index'; | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import createStore, { history } from '@bufferapp/account-store' | ||
import { Provider } from 'react-redux' | ||
import { ConnectedRouter as Router } from 'react-router-redux' | ||
import { checkA11y } from 'storybook-addon-a11y' | ||
import App from './index' | ||
storiesOf('App') | ||
storiesOf('App', module) | ||
.addDecorator(checkA11y) | ||
.addDecorator(getStory => | ||
.addDecorator(getStory => ( | ||
<Provider store={createStore()}> | ||
<Router history={history}> | ||
{getStory()} | ||
</Router> | ||
</Provider>, | ||
) | ||
.add('should render application', () => ( | ||
<App /> | ||
)); | ||
<Router history={history}>{getStory()}</Router> | ||
</Provider> | ||
)) | ||
.add('should render application', () => <App />) |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import React from 'react' | ||
export default () => | ||
const DefaultPage = () => ( | ||
<div | ||
@@ -11,2 +11,5 @@ style={{ | ||
Welcome To Buffer Account | ||
</div>; | ||
</div> | ||
) | ||
export default DefaultPage |
@@ -1,20 +0,17 @@ | ||
import 'babel-polyfill'; | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Provider } from 'react-redux'; | ||
import { AppContainer } from 'react-hot-loader'; | ||
import { | ||
ConnectedRouter as Router, | ||
} from 'react-router-redux'; | ||
import createStore, { history } from '@bufferapp/account-store'; | ||
import App from './components/App'; | ||
import 'babel-polyfill' | ||
import React from 'react' | ||
import { render } from 'react-dom' | ||
import { Provider } from 'react-redux' | ||
import { AppContainer } from 'react-hot-loader' | ||
import { ConnectedRouter as Router } from 'react-router-redux' | ||
import createStore, { history } from '@bufferapp/account-store' | ||
import App from './components/App' | ||
const store = createStore() | ||
const store = createStore(); | ||
store.dispatch({ | ||
type: 'APP_INIT', | ||
}); | ||
}) | ||
const renderApp = (AppComponent) => { | ||
const renderApp = AppComponent => { | ||
render( | ||
@@ -29,12 +26,12 @@ <AppContainer> | ||
document.getElementById('root'), | ||
); | ||
}; | ||
) | ||
} | ||
renderApp(App); | ||
renderApp(App) | ||
if (module.hot) { | ||
module.hot.accept('./components/App', () => { | ||
const newApp = require('./components/App').default; // eslint-disable-line global-require | ||
renderApp(newApp); | ||
}); | ||
const newApp = require('./components/App').default // eslint-disable-line global-require | ||
renderApp(newApp) | ||
}) | ||
} |
{ | ||
"name": "@bufferapp/account-web", | ||
"version": "0.5.37", | ||
"version": "0.6.3", | ||
"description": "Buffer Web Dashboard", | ||
"main": "index.jsx", | ||
"scripts": { | ||
"start": "start-storybook -p 9003", | ||
"lint": "eslint . --ignore-pattern coverage .storybook node_modules", | ||
"test": "yarn run lint && sh ../../package_test.sh", | ||
"test-update": "jest -u --config=../../.jestrc.json" | ||
"start": "start-storybook -p 9003" | ||
}, | ||
"dependencies": { | ||
"@bufferapp/account-store": "0.5.37", | ||
"@bufferapp/async-data-fetch": "0.5.25", | ||
"@bufferapp/notifications": "0.5.34" | ||
"@bufferapp/account-store": "0.6.3", | ||
"@bufferapp/async-data-fetch": "1.2.7", | ||
"@bufferapp/notifications": "1.4.0" | ||
}, | ||
"author": "Harrison Harnisch <hharnisc@gmail.com> (http://hharnisc.github.io)", | ||
"devDependencies": { | ||
"@storybook/addon-storyshots": "3.1.4", | ||
"@storybook/react": "3.1.3", | ||
"eslint": "3.19.0", | ||
"jest": "19.0.2", | ||
"storybook-addon-a11y": "3.0.0" | ||
}, | ||
"publishConfig": { | ||
@@ -26,0 +16,0 @@ "access": "public" |
// use story.js files as snapshots | ||
import initStoryshots from '@storybook/addon-storyshots'; | ||
import initStoryshots from '@storybook/addon-storyshots' | ||
// polyfil console.group(end) | ||
console.group = () => {}; // eslint-disable-line no-console | ||
console.groupEnd = () => {}; // eslint-disable-line no-console | ||
console.group = () => {} // eslint-disable-line no-console | ||
console.groupEnd = () => {} // eslint-disable-line no-console | ||
initStoryshots({ | ||
suit: 'Snapshots', | ||
}); | ||
}) |
Sorry, the diff of this file is not supported yet
0
86348
24
528
+ Added@bufferapp/account-store@0.6.3(transitive)
+ Added@bufferapp/async-data-fetch@1.2.7(transitive)
+ Added@bufferapp/components@1.0.9(transitive)
+ Added@bufferapp/notifications@1.4.0(transitive)
+ Addedprop-types@15.5.10(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-autocomplete@1.7.2(transitive)
+ Addedreact-day-picker@6.2.1(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedscheduler@0.19.1(transitive)
+ Addeduuid@3.0.1(transitive)
- Removed@bufferapp/account-store@0.5.37(transitive)
- Removed@bufferapp/async-data-fetch@0.5.25(transitive)
- Removed@bufferapp/components@0.5.34(transitive)
- Removed@bufferapp/notifications@0.5.34(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedreact@15.7.0(transitive)
- Removedreact-autocomplete@1.5.9(transitive)
- Removedreact-day-picker@5.5.1(transitive)
- Removedreact-dom@15.7.0(transitive)