1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00

fix linting #153

This commit is contained in:
Ivar 2016-09-13 23:43:54 +02:00
parent 834a0a151d
commit 437641ac2e
3 changed files with 24 additions and 26 deletions

View File

@ -1,18 +1,18 @@
import React, { Component } from 'react';
import { Layout, Panel, NavDrawer } from 'react-toolbox';
import { AppBar, IconButton } from 'react-toolbox';
import { Layout, Panel, NavDrawer, AppBar, IconButton } from 'react-toolbox';
import style from './style';
import Navigation from './Navigation';
export default class App extends Component {
state = {
drawerActive: false,
};
constructor (props) {
super(props);
this.state = { drawerActive: false };
toggleDrawerActive = () => {
this.setState({ drawerActive: !this.state.drawerActive });
};
this.toggleDrawerActive = () => {
this.setState({ drawerActive: !this.state.drawerActive });
};
}
render () {
return (
@ -25,7 +25,7 @@ export default class App extends Component {
<Navigation />
</NavDrawer>
<Panel scrollY={false}>
<div style={{padding: '1.8em'}}>
<div style={{ padding: '1.8em' }}>
{this.props.children}
</div>

View File

@ -1,6 +1,5 @@
import React, { Component } from 'react';
import { Layout, Panel } from 'react-toolbox';
import {Card, CardMedia, CardTitle, CardText } from 'react-toolbox';
import { Card, CardTitle, CardText } from 'react-toolbox';
export default class Features extends Component {
@ -10,15 +9,16 @@ export default class Features extends Component {
<CardTitle>Feture toggles</CardTitle>
<CardText>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pharetra finibus ullamcorper. Proin laoreet faucibus venenatis. Aenean quis leo finibus, maximus nisi finibus, fringilla ex. Nam mollis congue orci eu consectetur. Aliquam a massa quis tortor vestibulum lacinia. Phasellus nisi velit, mattis vel nulla a, rhoncus porta dui. Vestibulum viverra augue in pellentesque tincidunt. Aliquam rhoncus nunc ipsum, sed vehicula leo dictum in. Phasellus accumsan felis sem, in ullamcorper nisi accumsan vitae. Nullam vitae consectetur mi, sed vulputate augue. In quis augue tellus. Duis convallis cursus elit, in interdum nisl pulvinar viverra. Sed vel ornare sapien, eu consectetur metus. Vivamus at porta nisl. Nullam in aliquam nisl.
</p><p>
Nulla aliquet vel sem vitae ornare. Etiam vestibulum interdum nulla in viverra. Proin sed ligula eget lorem sodales eleifend. Nunc aliquet odio in orci rutrum imperdiet non gravida mauris. Sed vel ligula interdum, tristique diam et, sollicitudin ipsum. Pellentesque imperdiet mattis interdum. Quisque suscipit mattis mauris, at auctor ligula dignissim at. Integer ac suscipit dolor. Praesent venenatis arcu vitae lorem tristique, eu lobortis elit vulputate. Suspendisse libero sem, commodo sed mi id, varius consectetur purus. Integer sit amet urna vehicula, sollicitudin magna vitae, placerat dui. Integer a ipsum ante. Vestibulum ut neque tempus, congue metus in, gravida quam.
</p><p>
Nunc vehicula felis vel nisl fermentum, non commodo augue placerat. Curabitur pellentesque nulla nec fermentum convallis. Quisque molestie felis est, a porttitor quam porttitor id. Aliquam felis nibh, porta eu cursus at, lacinia aliquam augue. Aliquam accumsan lacus massa. Cras eu nibh sem. Nunc in aliquam sapien.
</p><p>
Pellentesque malesuada augue a neque venenatis rutrum. Morbi congue, magna in sagittis cursus, velit ipsum dapibus justo, eget vulputate nisl est ac ligula. In posuere dolor nec turpis maximus, non facilisis sapien accumsan. Aenean vestibulum erat lacus, ut lobortis ipsum consequat quis. Suspendisse lectus erat, vulputate eu accumsan quis, suscipit nec mauris. Proin nec odio sed nisl elementum vehicula non eget ipsum. Aliquam massa quam, volutpat ut eleifend vel, pretium ac odio. Maecenas fermentum velit quis faucibus ultricies. Integer tristique erat sed nibh aliquet tincidunt. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
</p><p>
Proin eros libero, elementum in blandit nec, auctor nec est. Nulla nec malesuada tortor. Aliquam tristique sem elementum, fringilla ligula eget, luctus libero. Nunc ac nisi malesuada, pellentesque tellus sed, pretium risus. Sed vel tempus risus, non mollis justo. Cras porta eros porttitor, imperdiet magna sed, pellentesque metus. Nulla sollicitudin ullamcorper lacinia. Mauris vehicula convallis maximus. Etiam aliquam ut eros ac hendrerit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pharetra finibus
ullamcorper. Proin laoreet faucibus venenatis. Aenean quis leo finibus, maximus
nisi finibus, fringilla ex. Nam mollis congue orci eu consectetur. Aliquam a
massa quis tortor vestibulum lacinia. Phasellus nisi velit, mattis vel nulla
a, rhoncus porta dui. Vestibulum viverra augue in pellentesque tincidunt.
Aliquam rhoncus nunc ipsum, sed vehicula leo dictum in. Phasellus accumsan
elis sem, in ullamcorper nisi accumsan vitae. Nullam vitae consectetur mi,
sed vulputate augue. In quis augue tellus. Duis convallis cursus elit, in
interdum nisl pulvinar viverra. Sed vel ornare sapien, eu consectetur metus.
Vivamus at porta nisl. Nullam in aliquam nisl.
</p>
</CardText>
</Card>

View File

@ -4,7 +4,7 @@
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: [
@ -35,8 +35,8 @@ module.exports = {
},
{
test: /(\.scss|\.css)$/,
loader: ExtractTextPlugin.extract('style', 'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass')
loader: ExtractTextPlugin.extract('style',
'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'),
},
],
},
@ -48,13 +48,11 @@ module.exports = {
sassLoader: {
data: '@import "theme/_config.scss";',
includePaths: [path.resolve(__dirname, './src')]
includePaths: [path.resolve(__dirname, './src')],
},
devtool: 'source-map',
toolbox: {theme: 'src/theme/_config.scss'},
externals: {
// stuff not in node_modules can be resolved here.
},