mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
HelpMenu
This commit is contained in:
parent
cb8007606d
commit
fa10aa6ca0
@ -8,22 +8,43 @@ class HelpMenu extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.handleClick = this.handleClick.bind(this);
|
||||
}
|
||||
|
||||
handleClick(event) {
|
||||
event.stopPropagation();
|
||||
alert('Hello, world!');
|
||||
this.handleSource = this.handleSource.bind(this);
|
||||
this.handleExamples = this.handleExamples.bind(this);
|
||||
this.handleDocuments = this.handleDocuments.bind(this);
|
||||
this.handleAbout = this.handleAbout.bind(this);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <MenuItem title={L_HELP}>
|
||||
<MenuItem title={L_SOURCE}></MenuItem>
|
||||
<MenuItem title={L_EXAMPLES}></MenuItem>
|
||||
<MenuItem title={L_DOCUMENTS}></MenuItem>
|
||||
<MenuItem title={L_ABOUT}></MenuItem>
|
||||
<MenuItem title={L_SOURCE} onClick={this.handleSource}></MenuItem>
|
||||
<MenuItem title={L_EXAMPLES} onClick={this.handleExamples}></MenuItem>
|
||||
<MenuItem title={L_DOCUMENTS} onClick={this.handleDocuments}></MenuItem>
|
||||
<MenuItem title={L_ABOUT} onClick={this.handleAbout}></MenuItem>
|
||||
</MenuItem>;
|
||||
}
|
||||
|
||||
handleSource() {
|
||||
window.open('https://github.com/tengge1/ShadowEditor', '_blank');
|
||||
}
|
||||
|
||||
handleExamples() {
|
||||
window.open('https://github.com/tengge1/ShadowEditor-examples', '_blank');
|
||||
}
|
||||
|
||||
handleDocuments() {
|
||||
window.open('https://tengge1.github.io/ShadowEditor/', '_blank');
|
||||
}
|
||||
|
||||
handleAbout() {
|
||||
// UI.alert(
|
||||
// L_ABOUT,
|
||||
// `${L_NAME}: ShadowEditor<br />
|
||||
// ${L_AUTHOR}: tengge<br />
|
||||
// ${L_LISENSE}: MIT<br />
|
||||
// ${L_SOURCE}1: https://github.com/tengge1/ShadowEditor<br />
|
||||
// ${L_SOURCE}2: https://gitee.com/tengge1/ShadowEditor`
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
||||
export default HelpMenu;
|
||||
Loading…
x
Reference in New Issue
Block a user