Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit de651e5

Browse files
authored
Merge pull request #2 from rohan-deshpande/master
Very close to feature complete fork
2 parents 843fc34 + 565975a commit de651e5

File tree

125 files changed

+69755
-30805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+69755
-30805
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015", "stage-2", "react"],
3+
"plugins": ["babel-plugin-add-module-exports", "transform-class-properties"]
4+
}

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
[*.json]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.js]
16+
indent_size = 2
17+
indent_style = space
18+
19+
[*.md]
20+
indent_size = 2
21+
indent_style = space
22+
23+
[*.scss]
24+
indent_size = 2
25+
indent_style = space

.eslintrc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:import/errors",
9+
"plugin:import/warnings"
10+
],
11+
"parser": "babel-eslint",
12+
"parserOptions": {
13+
"ecmaFeatures": {
14+
"experimentalObjectRestSpread": true,
15+
"jsx": true
16+
},
17+
"sourceType": "module"
18+
},
19+
"plugins": [
20+
"react"
21+
],
22+
"globals": {
23+
"process": true
24+
},
25+
"rules": {
26+
"indent": [
27+
"error",
28+
2,
29+
{ "SwitchCase": 1 }
30+
],
31+
"linebreak-style": [
32+
"error",
33+
"unix"
34+
],
35+
"quotes": [
36+
"error",
37+
"single"
38+
],
39+
"semi": [
40+
"error",
41+
"always"
42+
],
43+
"no-console": 0,
44+
"react/jsx-uses-react": 2,
45+
"react/jsx-uses-vars": 2,
46+
"react/react-in-jsx-scope": 2
47+
}
48+
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Build ...
22
node_modules
33
npm-debug.log
4-
public
54
tmp
65

76
# Created by https://www.gitignore.io

.npmignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
example-es5
2-
example-es5-browserify
3-
example-es6
1+
examples
2+
example
3+
dev
44
src

CHANGELOG.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# Release Notes
2+
3+
## (2017-10-09) `v1.0.1`
4+
5+
### Changed
6+
7+
* ES7 property initializers are now used to set initial state in all components rather than `componentWillMount`
8+
9+
## (2017-10-09) `v1.0.0`
10+
11+
### Added
12+
13+
* A lot of documentation to the README
14+
* Deploy script to `./example` app which deploys to github pages
15+
16+
### Changed
17+
18+
* Changed default export from `Dat` to `DatGui`
19+
20+
## (2017-10-08) `v0.0.21`
21+
22+
### Changed
23+
24+
* Removed custom check box styling from `DatBoolean` component
25+
* Ensured sliders are the same height as number inputs
26+
* Minor style changes for consistency
27+
28+
## (2017-10-08) `v0.0.20`
29+
30+
### Changed
31+
32+
* Housekeeping in preparation for `v1.0.0`
33+
34+
## (2017-10-06) `v0.0.19`
35+
36+
### Added
37+
38+
* `DatPresets` component - this allows you to set presets for your DatGUI component and switch between them easily
39+
40+
### Changed
41+
42+
* Removed final reference to `reactcss`, this can be completely removed from dependencies now
43+
* Removed unnecessary arrow functions in some `setState` callbacks
44+
* Fixed bug where `DatNumber` input updates weren't updating sliders
45+
46+
## (2017-10-05) `v0.0.18`
47+
48+
### Added
49+
50+
* `DatColor` component - this allows color pickers, powered by `react-color` to be rendered for mutating colors
51+
* Added `example:promote` script for pushing development code up from `example/src/dev` into `src`
52+
53+
### Changed
54+
55+
* Example updated with `DatColor` included
56+
57+
## (2017-10-04) `v0.0.17`
58+
59+
### Added
60+
61+
* `DatSelect` component
62+
63+
### Changed
64+
65+
* Example updated with `DatSelect` included
66+
67+
## (2017-10-03) `v0.0.16`
68+
69+
### Added
70+
71+
* Support for nested folders via `DatFolder`
72+
73+
### Changed
74+
75+
* Example `App.js` has been updated to include a nested folder example
76+
77+
## (2017-10-02) `v0.0.15`
78+
79+
### Changed
80+
81+
* SCSS is now broken up into partials which align with the various components
82+
83+
### Added
84+
85+
* Added `DatFolder` component
86+
* Added this to the example
87+
88+
## (2017-10-02) `v0.0.14`
89+
90+
### Changed
91+
92+
* Updated component files to use `.js` file extension rather than `.jsx`
93+
* Removed `examples` directory and created single `example` directory which is now powered by `create-react-app`
94+
* Rewrote `webpack.config.js` so that it is compatible with Webpack v2
95+
* Updated a bunch of dependencies in `package.json`
96+
* Separated out `Slider` component from `DatNumber` and also added `utils` file
97+
* Switched all event handlers in components to ES7 syntax
98+
* Some code formatting
99+
* Changed `build` directory to `dist`
100+
101+
### Added
102+
103+
* `example` directory
104+
* `src/components/Slider.js`
105+
* `src/components/utils.js`
106+
* `src/style` directory
107+
* `.editorconfig` file
108+
* `.eslintrc.json` file
109+
* `.babelrc` file
110+
* `scripts` directory
111+
* A number of `npm` scripts to `package.json`
112+
* This change log!
113+
114+
### Removed
115+
116+
* The build no longer creates minified files, can add these back if required but I think it's better for the user to perform this step in their own build pipeline
117+
* ES5 examples, don't think many people are coding with React and ES5 nowadays

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Claus Wahlers
3+
Copyright (c) 2017 Claus Wahlers, Rohan Deshpande
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

0 commit comments

Comments
 (0)