-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* menu * remove icons and some styling * updates * settings on menubar itself * remove some classes * idea for menu structure * keep idea going * add key to options menu * organise css and start light theme * style and refactoring * set default pane as 'info' * move close to settings * fix loading screen loader * tweaks * remove useless css * remove heartbeat from corner and remove useless css
- Loading branch information
Showing
41 changed files
with
741 additions
and
769 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 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
25 changes: 18 additions & 7 deletions
25
src/js/components/view/checkbox-item.js → src/js/components/view/checkbox-block.js
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
import Key from './key' | ||
|
||
/** | ||
* Is a Key Combination | ||
* | ||
* @param {Object} props | ||
* | ||
* @prop {Array} keys - must be an array of strings. | ||
* | ||
* @return {ReactElement} | ||
*/ | ||
export default function KeyCombo (props) { | ||
const keys = [] | ||
|
||
props.keys.forEach((key, index) => { | ||
keys.push(<Key key={`${index}k`}>{key}</Key>) | ||
keys.push(<span key={`${index}s`}> + </span>) | ||
}) | ||
|
||
keys.pop() | ||
return keys | ||
} | ||
|
||
KeyCombo.propTypes = { | ||
keys: PropTypes.array.isRequired | ||
} |
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,23 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
/** | ||
* Is a Key. | ||
* | ||
* @param {Object} props | ||
* | ||
* @prop {Node} children - must be a string or a node. | ||
* | ||
* @return {ReactElement} | ||
*/ | ||
export default function Key (props) { | ||
return ( | ||
<span className='key'> | ||
{props.children} | ||
</span> | ||
) | ||
} | ||
|
||
Key.propTypes = { | ||
children: PropTypes.node.isRequired | ||
} |
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,35 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
import Icon from './icon' | ||
|
||
/** | ||
* Is a menu option. | ||
* | ||
* @param {Object} props | ||
* | ||
* @prop {Bool} [active] | ||
* @prop {Function} onClick | ||
* @prop {String} icon | ||
* @prop {String} title | ||
* | ||
* @return {ReactElement} | ||
*/ | ||
export default function MenuOption (props) { | ||
let className = 'menu-option' | ||
if (props.active) className += ' active' | ||
|
||
return ( | ||
<button onClick={props.onClick} className={className}> | ||
<Icon name={props.icon} /> | ||
<p>{props.title}</p> | ||
</button> | ||
) | ||
} | ||
|
||
MenuOption.propTypes = { | ||
active: PropTypes.bool, | ||
onClick: PropTypes.func.isRequired, | ||
icon: PropTypes.string.isRequired, | ||
title: PropTypes.string.isRequired | ||
} |
Oops, something went wrong.