Skip to content

Commit

Permalink
v0.2.3
Browse files Browse the repository at this point in the history
- Add Commons and Modules Test Function
- Use covrage status.
- Use jest.genMockFunction to test onClick Function.
  • Loading branch information
jessy1092 committed Jan 6, 2015
2 parents 4c22fa0 + ccc4742 commit 40bce5e
Show file tree
Hide file tree
Showing 38 changed files with 1,122 additions and 57 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
React-Semantify
=============
[![Dependency Status][david-dm-image]][david-dm-url] [![Build Status][travis-ci-image]][travis-ci-url]
[![Dependency Status][david-dm-image]][david-dm-url] [![Build Status][travis-ci-image]][travis-ci-url][![Coverage Status][coverage-status-image]][coverage-status-url]

Integrate Semantic-ui with react components. It depends on Semantic-UI and helps you use with react component.

Expand Down Expand Up @@ -175,6 +175,12 @@ Wait Semantic-UI Release.
4. Push to the branch `git push origin your-new-feature-branch`
5. Create new Pull Request with `develop` branch
## Run Test
- `git clone git@github.com:jessy1092/react-semantify.git`
- `npm i`
- `npm test`
## License
The MIT License (MIT)
Expand Down Expand Up @@ -209,3 +215,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[travis-ci-image]: https://img.shields.io/travis/jessy1092/react-semantify.svg?style=flat-square
[travis-ci-url]: https://travis-ci.org/jessy1092/react-semantify
[coverage-status-image]: https://img.shields.io/coveralls/jessy1092/react-semantify.svg?style=flat-square
[coverage-status-url]: https://coveralls.io/r/jessy1092/react-semantify
6 changes: 6 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

## Version 0.2.3 - 2015/01/07

- Add Commons and Modules Test Function
- Use covrage status.
- Use jest.genMockFunction to test onClick Function.

## Version 0.2.2 - 2015/01/05

- Fix the onClick function Bug. [issue #7](https://github.com/jessy1092/react-semantify/issues/7)
Expand Down
47 changes: 20 additions & 27 deletions dst/react-semantify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,11 @@ module.exports = function (React) {
getClassName: function (defaultClassName, addClassName) {
var classResult = defaultClassName;

if (typeof this.props.className != 'undefined') {
if (typeof this.props.className !== 'undefined') {
classResult += ' ' + this.props.className;
}

if (typeof addClassName != 'undefined') {
if (typeof addClassName !== 'undefined') {
if (typeof addClassName === 'object') {
classResult += ' ' + classSet(addClassName);
} else {
Expand All @@ -1084,10 +1084,10 @@ module.exports = function (React) {

return classResult;
}
}
};

return ClassGenerator;
}
};

},{}],33:[function(require,module,exports){
"use strict";
Expand All @@ -1106,7 +1106,7 @@ module.exports = function (React) {
getColor: function () {
var color = 'null';

if (typeof this.props.color != 'undefined') {
if (typeof this.props.color !== 'undefined') {

if (colorArray.indexOf(this.props.color) != -1) {
color = this.props.color;
Expand All @@ -1115,10 +1115,10 @@ module.exports = function (React) {

return color;
}
}
};

return ColorSelector;
}
};

},{}],34:[function(require,module,exports){
"use strict";
Expand All @@ -1143,7 +1143,7 @@ module.exports = function (React) {
getDisabled: function () {
var disabled = false;

if (typeof this.props.disabled != 'undefined') {
if (typeof this.props.disabled !== 'undefined') {
disabled = this.props.disabled;
}

Expand All @@ -1153,7 +1153,7 @@ module.exports = function (React) {
getActive: function () {
var active = false;

if (typeof this.props.active != 'undefined') {
if (typeof this.props.active !== 'undefined') {
active = this.props.active;
}

Expand All @@ -1163,7 +1163,7 @@ module.exports = function (React) {
getLoading: function () {
var loading = false;

if (typeof this.props.loading != 'undefined') {
if (typeof this.props.loading !== 'undefined') {
loading = this.props.loading;
}

Expand All @@ -1173,7 +1173,7 @@ module.exports = function (React) {
getFocus: function () {
var focus = false;

if (typeof this.props.focus != 'undefined') {
if (typeof this.props.focus !== 'undefined') {
focus = this.props.focus;
}

Expand All @@ -1183,7 +1183,7 @@ module.exports = function (React) {
getError: function () {
var error = false;

if (typeof this.props.error != 'undefined') {
if (typeof this.props.error !== 'undefined') {
error = this.props.error;
}

Expand All @@ -1193,7 +1193,7 @@ module.exports = function (React) {
getCompleted: function () {
var completed = false;

if (typeof this.props.completed != 'undefined') {
if (typeof this.props.completed !== 'undefined') {
completed = this.props.completed;
}

Expand All @@ -1203,7 +1203,7 @@ module.exports = function (React) {
getReadOnly: function () {
var readOnly = false;

if (typeof this.props.readOnly != 'undefined') {
if (typeof this.props.readOnly !== 'undefined') {
readOnly = this.props.readOnly;
}

Expand All @@ -1213,7 +1213,7 @@ module.exports = function (React) {
getSuccess: function () {
var success = false;

if (typeof this.props.success != 'undefined') {
if (typeof this.props.success !== 'undefined') {
success = this.props.success;
}

Expand All @@ -1223,7 +1223,7 @@ module.exports = function (React) {
getWarning: function () {
var warning = false;

if (typeof this.props.warning != 'undefined') {
if (typeof this.props.warning !== 'undefined') {
warning = this.props.warning;
}

Expand All @@ -1232,7 +1232,7 @@ module.exports = function (React) {
};

return StateSelector;
}
};

},{}],35:[function(require,module,exports){
"use strict";
Expand All @@ -1251,17 +1251,17 @@ module.exports = function (React) {
getType: function () {
var type = 'div';

if (typeof this.props.type != 'undefined') {
if (typeof this.props.type !== 'undefined') {
if (typeArray.indexOf(this.props.type) != -1) {
type = this.props.type;
}
}
return type;
}
}
};

return TypeSelector;
}
};

},{}],36:[function(require,module,exports){
"use strict";
Expand Down Expand Up @@ -1765,13 +1765,6 @@ module.exports = function (React) {

mixins: [ClassGenerator],

propTypes: {
behavior: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.object
])
},

render: function () {

var $__0= this.props,className=$__0.className,other=(function(source, exclusion) {var rest = {};var hasOwn = Object.prototype.hasOwnProperty;if (source == null) {throw new TypeError();}for (var key in source) {if (hasOwn.call(source, key) && !hasOwn.call(exclusion, key)) {rest[key] = source[key];}}return rest;})($__0,{className:1});
Expand Down
2 changes: 1 addition & 1 deletion dst/react-semantify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "react-semantify",
"description": "Integrate Semantic-ui with react components.",
"version" : "0.2.2",
"version" : "0.2.3",
"keywords": [
"react",
"semantic-ui",
Expand Down
8 changes: 4 additions & 4 deletions src/mixins/classGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ module.exports = function (React) {
getClassName: function (defaultClassName, addClassName) {
var classResult = defaultClassName;

if (typeof this.props.className != 'undefined') {
if (typeof this.props.className !== 'undefined') {
classResult += ' ' + this.props.className;
}

if (typeof addClassName != 'undefined') {
if (typeof addClassName !== 'undefined') {
if (typeof addClassName === 'object') {
classResult += ' ' + classSet(addClassName);
} else {
Expand All @@ -26,7 +26,7 @@ module.exports = function (React) {

return classResult;
}
}
};

return ClassGenerator;
}
};
6 changes: 3 additions & 3 deletions src/mixins/colorSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (React) {
getColor: function () {
var color = 'null';

if (typeof this.props.color != 'undefined') {
if (typeof this.props.color !== 'undefined') {

if (colorArray.indexOf(this.props.color) != -1) {
color = this.props.color;
Expand All @@ -23,7 +23,7 @@ module.exports = function (React) {

return color;
}
}
};

return ColorSelector;
}
};
20 changes: 10 additions & 10 deletions src/mixins/stateSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function (React) {
getDisabled: function () {
var disabled = false;

if (typeof this.props.disabled != 'undefined') {
if (typeof this.props.disabled !== 'undefined') {
disabled = this.props.disabled;
}

Expand All @@ -30,7 +30,7 @@ module.exports = function (React) {
getActive: function () {
var active = false;

if (typeof this.props.active != 'undefined') {
if (typeof this.props.active !== 'undefined') {
active = this.props.active;
}

Expand All @@ -40,7 +40,7 @@ module.exports = function (React) {
getLoading: function () {
var loading = false;

if (typeof this.props.loading != 'undefined') {
if (typeof this.props.loading !== 'undefined') {
loading = this.props.loading;
}

Expand All @@ -50,7 +50,7 @@ module.exports = function (React) {
getFocus: function () {
var focus = false;

if (typeof this.props.focus != 'undefined') {
if (typeof this.props.focus !== 'undefined') {
focus = this.props.focus;
}

Expand All @@ -60,7 +60,7 @@ module.exports = function (React) {
getError: function () {
var error = false;

if (typeof this.props.error != 'undefined') {
if (typeof this.props.error !== 'undefined') {
error = this.props.error;
}

Expand All @@ -70,7 +70,7 @@ module.exports = function (React) {
getCompleted: function () {
var completed = false;

if (typeof this.props.completed != 'undefined') {
if (typeof this.props.completed !== 'undefined') {
completed = this.props.completed;
}

Expand All @@ -80,7 +80,7 @@ module.exports = function (React) {
getReadOnly: function () {
var readOnly = false;

if (typeof this.props.readOnly != 'undefined') {
if (typeof this.props.readOnly !== 'undefined') {
readOnly = this.props.readOnly;
}

Expand All @@ -90,7 +90,7 @@ module.exports = function (React) {
getSuccess: function () {
var success = false;

if (typeof this.props.success != 'undefined') {
if (typeof this.props.success !== 'undefined') {
success = this.props.success;
}

Expand All @@ -100,7 +100,7 @@ module.exports = function (React) {
getWarning: function () {
var warning = false;

if (typeof this.props.warning != 'undefined') {
if (typeof this.props.warning !== 'undefined') {
warning = this.props.warning;
}

Expand All @@ -109,4 +109,4 @@ module.exports = function (React) {
};

return StateSelector;
}
};
6 changes: 3 additions & 3 deletions src/mixins/typeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ module.exports = function (React) {
getType: function () {
var type = 'div';

if (typeof this.props.type != 'undefined') {
if (typeof this.props.type !== 'undefined') {
if (typeArray.indexOf(this.props.type) != -1) {
type = this.props.type;
}
}
return type;
}
}
};

return TypeSelector;
}
};
7 changes: 0 additions & 7 deletions src/modules/sticky.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ module.exports = function (React) {

mixins: [ClassGenerator],

propTypes: {
behavior: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.object
])
},

render: function () {

var {className, ...other} = this.props;
Expand Down
Loading

0 comments on commit 40bce5e

Please sign in to comment.