Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from gwomacks/debug-ui-rewrite
Rewrite most of package to use atom-debug-ui, convert to JS from coffee
- Loading branch information
Showing
58 changed files
with
4,126 additions
and
3,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use babel' | ||
/** @jsx etch.dom */ | ||
|
||
import etch from 'etch' | ||
import UiComponent from '../ui/component' | ||
|
||
export default class DefaultBreakpointItemView extends UiComponent { | ||
|
||
render () { | ||
const {breakpoint,type,status} = this.props; | ||
let attributes = { | ||
value: type | ||
}; | ||
if (status == true) { | ||
attributes.checked = "checked"; | ||
} | ||
return <li className='breakpoint-list-item'> | ||
<div className='breakpoint-item'> | ||
<input type="checkbox" className='input-checkbox breakpoint-enabled' onchange={this.handleChange} attributes={attributes} /> | ||
<span className='breakpoint-type'>{breakpoint.title}</span> | ||
</div> | ||
</li> | ||
} | ||
handleChange (event) { | ||
if (!this.props.onchange) { | ||
return | ||
} | ||
this.props.onchange(this.props.type, event.target.checked); | ||
} | ||
} | ||
DefaultBreakpointItemView.bindFns = ["handleChange"] |
Oops, something went wrong.