Archived
1
0
This commit is contained in:
2023-05-15 19:14:10 -05:00
parent 56f700c423
commit 24562a53ac
12 changed files with 233 additions and 21716 deletions

View File

@@ -0,0 +1,16 @@
function WolButton(props) {
return (
<div className="wake"><input type="button" id="wolbutton" onClick={runWakeCommand}></input>
<label htmlFor="wolbutton"><span className="iconify" data-icon="mdi-monitor"></span></label></div>
);
}
export default WolButton;
function runWakeCommand() {
const requestOptions = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
};
fetch("/sui/api/wakeDakota", requestOptions)
}