mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 04:22:40 +00:00
'Sheet
This commit is contained in:
61
client/tpk/sheetRenderer/parts/skillList/skillList.jsx
Normal file
61
client/tpk/sheetRenderer/parts/skillList/skillList.jsx
Normal file
@@ -0,0 +1,61 @@
|
||||
var React = require('react');
|
||||
var _ = require('lodash');
|
||||
var cx = require('classnames');
|
||||
|
||||
var Skill = require('../skill/skill.jsx');
|
||||
var Box = require('../box/box.jsx');
|
||||
|
||||
|
||||
var skill_list = [
|
||||
{name : 'Acrobatics', stat : 'Dex'},
|
||||
{name : 'Animal Handling', stat : 'Wis'},
|
||||
{name : 'Arcana', stat : 'Int'},
|
||||
{name : 'Athletics', stat : 'Str'},
|
||||
{name : 'Deception', stat : 'Cha'},
|
||||
{name : 'History', stat : 'Int'},
|
||||
{name : 'Insight', stat : 'Wis'},
|
||||
{name : 'Intimidation', stat : 'Cha'},
|
||||
{name : 'Investigation', stat : 'Int'},
|
||||
{name : 'Medicine', stat : 'Wis'},
|
||||
{name : 'Nature', stat : 'Int'},
|
||||
{name : 'Perception', stat : 'Wis'},
|
||||
{name : 'Performance', stat : 'Cha'},
|
||||
{name : 'Persuasion', stat : 'Cha'},
|
||||
{name : 'Religion', stat : 'Int'},
|
||||
{name : 'Sleight of Hand', stat : 'Dex'},
|
||||
{name : 'Stealth', stat : 'Dex'},
|
||||
{name : 'Survival', stat : 'Wis'}
|
||||
]
|
||||
|
||||
|
||||
var SkillList = React.createClass({
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
name : 'skills',
|
||||
|
||||
//title : 'Skills',
|
||||
shadow : true,
|
||||
border : false,
|
||||
showExpert : false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
renderSkills : function(){
|
||||
return _.map(skill_list, (skill)=>{
|
||||
return <Skill
|
||||
label={skill.name}
|
||||
sublabel={'(' + skill.stat + ')'}
|
||||
showExpert={this.props.showExpert} />
|
||||
})
|
||||
},
|
||||
|
||||
render : function(){
|
||||
return <Box className='skillList' {...this.props}>
|
||||
{this.renderSkills()}
|
||||
{this.props.children}
|
||||
</Box>
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = SkillList;
|
||||
3
client/tpk/sheetRenderer/parts/skillList/skillList.less
Normal file
3
client/tpk/sheetRenderer/parts/skillList/skillList.less
Normal file
@@ -0,0 +1,3 @@
|
||||
.COM{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user