Skip to content

Commit 1ed546c

Browse files
author
Minh Tran
committed
Version 0.3.0
1 parent 47e0176 commit 1ed546c

38 files changed

Lines changed: 716 additions & 839 deletions

.bowerrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"directory": "example/app/assets/bower_components"
2+
"directory": "bower_components"
33
}

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/*
2+
bower_components/*
3+
dist/*
4+
example/dist/*
5+
lib/*

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"no-unused-expressions": 2,
4444
"space-after-keywords": 2,
4545
"space-before-blocks": 2,
46-
"jsx-quotes": [1, "prefer-single"],
46+
"jsx-quotes": [1, "prefer-double"],
4747
"react/display-name": 0,
4848
"react/jsx-boolean-value": [2, "always"],
4949
"react/jsx-no-undef": 2,
@@ -53,7 +53,7 @@
5353
"react/jsx-uses-vars": 2,
5454
"react/no-did-mount-set-state": 2,
5555
"react/no-did-update-set-state": 2,
56-
"react/no-multi-comp": 2,
56+
"react/no-multi-comp": [2, {"ignoreStateless": true}],
5757
"react/no-unknown-property": 2,
5858
"react/prop-types": 1,
5959
"react/react-in-jsx-scope": 2,

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.idea
2-
node_modules
3-
bower_components
4-
example/dist
1+
.idea/*
2+
node_modules/*
3+
bower_components/*
4+
example/dist/*

.stylelintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/*
2+
bower_components/*
3+
dist/*
4+
example/dist/*
5+
lib/*

.stylelintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"at-rule-empty-line-before": [
5+
"always", {
6+
"except": ["blockless-group", "all-nested"],
7+
"ignore": ["after-comment"]
8+
}
9+
]
10+
}
11+
}

bower.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "react-tooltip-component",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "React component.",
5-
"main": ["dist/react-tooltip-component.js", "dist/tooltip"],
5+
"main": ["dist/react-tooltip-component.js", "dist/react-tooltip-component.css"],
66
"keywords": [
77
"react-component",
88
"react",
@@ -18,7 +18,5 @@
1818
"tests"
1919
],
2020
"dependencies": {},
21-
"devDependencies": {
22-
"bootstrap-customize": "~3.3.4"
23-
}
21+
"devDependencies": {}
2422
}

example/app/app.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,29 @@ import 'babel-core/polyfill';
22

33
import React from 'react';
44
import ReactDOM from 'react-dom';
5-
import {createHistory, useBasename} from 'history';
6-
import Router from 'react-router';
5+
import {createHistory} from 'history';
6+
import {Router, useRouterHistory} from 'react-router';
77
import App from 'components/App.js';
8-
import pkg from '../../package.json';
8+
import {name} from '../../package.json';
99

10-
import 'assets/bower_components/bootstrap-customize/css/bootstrap.css';
11-
import 'react-tooltip-component/src/tooltip.scss';
10+
import 'bootstrap/dist/css/bootstrap.css';
1211
import 'assets/styles/app.scss';
1312

1413
const routes = {
1514
path: '/',
1615
component: App,
1716
indexRoute: {
18-
component: require('./components/pages/PageHome')
17+
component: require('components/pages/Home')
1918
},
2019
childRoutes: [
21-
require('./routes/Example1Route'),
22-
require('./routes/Example2Route')
20+
require('routes/Example1'),
21+
require('routes/Example2')
2322
]
2423
};
2524

2625
const DEV = process && process.env && process.env.NODE_ENV === 'development';
27-
const history = useBasename(createHistory)({
28-
basename: '/' + (DEV ? '' : pkg.name)
26+
const history = useRouterHistory(createHistory)({
27+
basename: '/' + (DEV ? '' : name)
2928
});
3029

3130
const run = () => {

example/app/assets/styles/_animations.scss

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)