Playing with dependencies

This commit is contained in:
Timothy Warren 2018-03-30 22:17:58 -04:00
parent 3dc7845303
commit 7021ca7559
9 changed files with 78 additions and 25 deletions

View File

@ -8,7 +8,8 @@
"inferno-bootstrap": "^5.0.0", "inferno-bootstrap": "^5.0.0",
"inferno-router": "^5.0.1", "inferno-router": "^5.0.1",
"inferno-scripts": "6.3.0", "inferno-scripts": "6.3.0",
"node-exiftool": "^2.3.0" "node-exiftool": "^2.3.0",
"query-string": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^8.2.2", "babel-eslint": "^8.2.2",

View File

@ -1,31 +1,34 @@
import { BrowserRouter } from 'inferno-router'; import { BrowserRouter } from 'inferno-router';
import { Button, Form, FormGroup, Input, Label } from './components/Form'; import { Jumbotron } from './components/Bootstrap';
import { Container, Row } from './components/Grid'; import { Button, Form, FormGroup, Input, Label } from './components/Bootstrap/Form';
import { Container, Row } from './components/Bootstrap/Grid';
const App = () => ( const App = () => (
<BrowserRouter> <BrowserRouter>
<Container className="App"> <Jumbotron>
<Row> <Container className="App">
<header className="App-header"> <Row>
<h1>Welcome to Inferno</h1> <header className="App-header">
</header> <h1>Welcome to Inferno</h1>
</Row> </header>
<Row> </Row>
<p className="App-intro"> <Row>
To get started, edit <code>src/App.js</code> and save to reload. <p className="App-intro">
</p> To get started, edit <code>src/App.js</code> and save to reload.
</Row> </p>
<Row> </Row>
<Form> <Row>
<FormGroup> <Form>
<Label htmlFor="brand">Brand</Label> <FormGroup>
<Input type="text" id="brand" name="brand" /> <Label htmlFor="brand">Brand</Label>
</FormGroup> <Input type="text" id="brand" name="brand" />
<Button type="submit">Save</Button> </FormGroup>
</Form> <Button color="primary" type="submit">Save</Button>
</Row> </Form>
</Container> </Row>
</Container>
</Jumbotron>
</BrowserRouter> </BrowserRouter>
); );

View File

@ -0,0 +1,5 @@
import Jumbotron from 'inferno-bootstrap/dist/Jumbotron';
export {
Jumbotron,
}

View File

@ -0,0 +1,29 @@
import Card from 'inferno-bootstrap/dist/Card/Card';
import CardBody from 'inferno-bootstrap/dist/Card/CardBody';
import CardColumns from 'inferno-bootstrap/dist/Card/CardColumns';
import CardDeck from 'inferno-bootstrap/dist/Card/CardDeck';
import CardFooter from 'inferno-bootstrap/dist/Card/CardFooter';
import CardGroup from 'inferno-bootstrap/dist/Card/CardGroup';
import CardHeader from 'inferno-bootstrap/dist/Card/CardHeader';
import CardImg from 'inferno-bootstrap/dist/Card/CardImg';
import CardImgOverlay from 'inferno-bootstrap/dist/Card/CardImgOverlay';
import CardLink from 'inferno-bootstrap/dist/Card/CardLink';
import CardSubtitle from 'inferno-bootstrap/dist/Card/CardSubtitle';
import CardText from 'inferno-bootstrap/dist/Card/CardText';
import CardTitle from 'inferno-bootstrap/dist/Card/CardTitle';
export {
Card,
CardBody,
CardColumns,
CardDeck,
CardFooter,
CardGroup,
CardHeader,
CardImg,
CardImgOverlay,
CardLink,
CardSubtitle,
CardText,
CardTitle,
};

View File

@ -0,0 +1,4 @@
export * from './Bootstrap';
export * from './Cards';
export * from './Form';
export * from './Grid';

View File

@ -1 +1 @@
export * from './Grid'; export * from './Bootstrap';

View File

@ -6512,6 +6512,13 @@ query-string@^4.1.0:
object-assign "^4.1.0" object-assign "^4.1.0"
strict-uri-encode "^1.0.0" strict-uri-encode "^1.0.0"
query-string@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.0.0.tgz#8b8f39447b73e8290d6f5e3581779218e9171142"
dependencies:
decode-uri-component "^0.2.0"
strict-uri-encode "^2.0.0"
querystring-es3@^0.2.0: querystring-es3@^0.2.0:
version "0.2.1" version "0.2.1"
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
@ -7429,6 +7436,10 @@ strict-uri-encode@^1.0.0:
version "1.1.0" version "1.1.0"
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
strict-uri-encode@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
string-length@^2.0.0: string-length@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed"