Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<span>{machinePos.y.split('.')[0]}</span>
<span>.</span>
<span>{machinePos.y.split('.')[1]}</span>
<span>{unit}</span>
<span>{workingPos.y.split('.')[0]}</span>
<span>.</span>
<span>{workingPos.y.split('.')[1]}</span>
<span>{unit}</span>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary Y Axis (G92 Y0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary Y Axis (G92.1 Y0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero On Y Axis (G0 Y0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work Y Axis (G10 L2 P1 Y0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero On Y Axis (G53 G0 Y0)')}</menuitem>
</menuitem></menuitem>
Z
<span>{machinePos.z.split('.')[0]}</span>
<span>{machinePos.x.split('.')[0]}</span>
<span>.</span>
<span>{machinePos.x.split('.')[1]}</span>
<span>{unit}</span>
<span>{workingPos.x.split('.')[0]}</span>
<span>.</span>
<span>{workingPos.x.split('.')[1]}</span>
<span>{unit}</span>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary X Axis (G92 X0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary X Axis (G92.1 X0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero On X Axis (G0 X0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work X Axis (G10 L2 P1 X0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero On X Axis (G53 G0 X0)')}</menuitem>
</menuitem></menuitem>
Y
<span>{unit}</span>
<span>{workingPos.z.split('.')[0]}</span>
<span>.</span>
<span>{workingPos.z.split('.')[1]}</span>
<span>{unit}</span>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary Z Axis (G92 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary Z Axis (G92.1 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero On Z Axis (G0 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work Z Axis (G10 L2 P1 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero On X Axis (G53 G0 Z0)')}</menuitem>
</menuitem></menuitem>
);
}
}
<span>{workingPos.y.split('.')[0]}</span>
<span>.</span>
<span>{workingPos.y.split('.')[1]}</span>
<span>{unit}</span>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary Y Axis (G92 Y0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary Y Axis (G92.1 Y0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero On Y Axis (G0 Y0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work Y Axis (G10 L2 P1 Y0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero On Y Axis (G53 G0 Y0)')}</menuitem>
</menuitem></menuitem>
Z
<span>{machinePos.z.split('.')[0]}</span>
<span>.</span>
<span>{machinePos.z.split('.')[1]}</span>
<span>{unit}</span>
<span>.</span>
<span>{workingPos.z.split('.')[1]}</span>
<span>{unit}</span>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary Z Axis (G92 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary Z Axis (G92.1 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero On Z Axis (G0 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work Z Axis (G10 L2 P1 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero On X Axis (G53 G0 Z0)')}</menuitem>
</menuitem></menuitem>
);
}
}
render() {
let { port, unit, activeState, machinePos, workingPos } = this.state;
let canClick = (!!port && (activeState !== ACTIVE_STATE_RUN));
return (
<div>
<div>
<button type="button">{i18n._('in / mm')}</button>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary Offsets (G92 X0 Y0 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary Offsets (G92.1 X0 Y0 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero (G0 X0 Y0 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work Offsets (G10 L2 P1 X0 Y0 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero (G53 G0 X0 Y0 Z0)')}</menuitem>
</menuitem></menuitem>
</div>
</div>
{dimension.max.y.toFixed(digits)} {unit}
{dimension.delta.y.toFixed(digits)} {unit}
Z
{dimension.min.z.toFixed(digits)} {unit}
{dimension.max.z.toFixed(digits)} {unit}
{dimension.delta.z.toFixed(digits)} {unit}
<div>
<div>{i18n._('Executed')}</div>
<div>{i18n._('Total')}</div>
</div>
<div>
<div>{executed}</div>
<div>{total}</div>
</div>
<div>
<div>{i18n._('Start Time')}</div>
<div>{i18n._('Duration')}</div>
</div>
<div>
<div>{startTime}</div>
<div>{duration}</div>
</div>
);
}
render() {
return (
<div>
<div>
<div>
<h1>{i18n._('Welcome to WebAppEngine!')}</h1>
<p>{i18n._('If you see this page, the WebAppEngine server is successfully installed and working. Further configuration is required.')}</p>
<p href="http://cheton.github.io/webappengine/">http://cheton.github.io/webappengine/.')}
} />
</p><p><a role="button" href="https://github.com/cheton/webappengine">{i18n._('Learn more »')}</a></p>
<p><i>{i18n._('Thank you for using WebAppEngine.')}</i></p>
</div>
</div>
<div></div>
</div>
);
}
}
type="number"
className="form-control"
style={{width: 80}}
min={DISTANCE_MIN}
max={DISTANCE_MAX}
step={DISTANCE_STEP}
value={distance}
onChange={::this.handleChange}
/>
<span></span>
<span></span>
<button title="{i18n._('Reset')}" type="button">
<span></span>
</button>
);
}
}
render() {
let { port, unit, activeState, machinePos, workingPos } = this.state;
let canClick = (!!port && (activeState !== ACTIVE_STATE_RUN));
return (
<div>
<div>
<button type="button">{i18n._('in / mm')}</button>
<menuitem>{i18n._('Temporary Offsets (G92)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Temporary Offsets (G92 X0 Y0 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Un-Zero Out Temporary Offsets (G92.1 X0 Y0 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Work Coordinate System (G54)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Work Zero (G0 X0 Y0 Z0)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Zero Out Work Offsets (G10 L2 P1 X0 Y0 Z0)')}</menuitem>
<menuitem>
<menuitem>{i18n._('Machine Coordinate System (G53)')}</menuitem>
<menuitem disabled="{!canClick}">{i18n._('Go To Machine Zero (G53 G0 X0 Y0 Z0)')}</menuitem>
</menuitem></menuitem>
</div>
</div>