Skip to content

Commit 1e16879

Browse files
author
lewis617
committed
bootstrap
1 parent 3929a6c commit 1e16879

11 files changed

+38651
-0
lines changed
17.6 KB
Binary file not shown.

bootstrap/dist/89889688147bd7575d6327160d64e760.svg

Lines changed: 288 additions & 0 deletions
Loading

bootstrap/dist/app.js

Lines changed: 17655 additions & 0 deletions
Large diffs are not rendered by default.
44.3 KB
Binary file not shown.
19.7 KB
Binary file not shown.
22.9 KB
Binary file not shown.

bootstrap/dist/vendors.js

Lines changed: 20599 additions & 0 deletions
Large diffs are not rendered by default.

bootstrap/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Bootstrap app</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="dist/vendors.js"></script>
10+
<script src="dist/app.js"></script>
11+
</body>
12+
</html>

bootstrap/package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "todo-redux",
3+
"version": "1.0.0",
4+
"description": "",
5+
"dependencies": {},
6+
"devDependencies": {
7+
"babel-core": "^6.4.0",
8+
"babel-loader": "^6.2.1",
9+
"babel-preset-es2015": "^6.3.13",
10+
"babel-preset-react": "^6.3.13",
11+
"bootstrap": "^3.3.6",
12+
"css-loader": "^0.23.1",
13+
"file-loader": "^0.8.5",
14+
"less": "^2.5.3",
15+
"less-loader": "^2.2.2",
16+
"path": "^0.12.7",
17+
"react": "^0.14.6",
18+
"react-bootstrap": "^0.28.2",
19+
"react-dom": "^0.14.6",
20+
"react-redux": "^4.0.6",
21+
"redux": "^3.0.5",
22+
"style-loader": "^0.13.0",
23+
"url-loader": "^0.5.7",
24+
"webpack": "^1.12.10"
25+
},
26+
"scripts": {
27+
"build": "webpack --progress -colors --watch"
28+
},
29+
"author": "lewis617",
30+
"license": "ISC"
31+
}

bootstrap/src/index.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from 'react'
2+
import { render } from 'react-dom'
3+
import { Button,ButtonToolbar } from 'react-bootstrap';
4+
import 'bootstrap/less/bootstrap.less';
5+
6+
const buttonsInstance = (
7+
<ButtonToolbar>
8+
{/* Standard button */}
9+
<Button>Default</Button>
10+
11+
{/* Provides extra visual weight and identifies the primary action in a set of buttons */}
12+
<Button bsStyle="primary">Primary</Button>
13+
14+
{/* Indicates a successful or positive action */}
15+
<Button bsStyle="success">Success</Button>
16+
17+
{/* Contextual button for informational alert messages */}
18+
<Button bsStyle="info">Info</Button>
19+
20+
{/* Indicates caution should be taken with this action */}
21+
<Button bsStyle="warning">Warning</Button>
22+
23+
{/* Indicates a dangerous or potentially negative action */}
24+
<Button bsStyle="danger">Danger</Button>
25+
26+
{/* Deemphasize a button by making it look like a link while maintaining button behavior */}
27+
<Button bsStyle="link">Link</Button>
28+
</ButtonToolbar>
29+
);
30+
31+
render(buttonsInstance, document.querySelector("#app"));

0 commit comments

Comments
 (0)