Skip to content

Commit

Permalink
Working with longer compile time smile :)
Browse files Browse the repository at this point in the history
  • Loading branch information
kglovern committed Oct 21, 2024
1 parent 1cbca9f commit 4c33502
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
11 changes: 9 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
module.exports = {
extends: '@trendmicro/babel-config',
presets: [
'@babel/preset-env',
[
'@babel/preset-env',
{
useBuiltIns: 'entry',
corejs: 3,
}
],
'@babel/preset-react'
],
plugins: [
'lodash'
'lodash',
'@babel/plugin-transform-optional-chaining'
]
};
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gSender",
"version": "1.4.9",
"version": "1.4.10",
"description": "Electron sender for GRBL based CNC machines",
"author": {
"name": "Sienci Labs <hi@sienci.com>",
Expand Down Expand Up @@ -332,7 +332,7 @@
"universal-logger": "~1.0.1",
"universal-logger-browser": "~1.0.2",
"usb": "^2.11.0",
"use-long-press": "^1.1.2",
"use-long-press": "^3.2.0",
"use-stay-awake": "^0.1.7",
"uuid": "~3.3.2",
"watch": "~1.0.2",
Expand All @@ -346,12 +346,13 @@
"@babel/cli": "~7.4.3",
"@babel/core": "~7.4.3",
"@babel/node": "~7.2.2",
"@babel/plugin-transform-optional-chaining": "^7.25.8",
"@babel/polyfill": "~7.4.3",
"@babel/preset-env": "~7.4.3",
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "~7.0.0",
"@babel/register": "~7.4.0",
"@sentry/webpack-plugin": "^2.7.1",
"@trendmicro/babel-config": "~1.0.0-alpha",
"@trendmicro/babel-config": "^1.0.2",
"babel-core": "~7.0.0-bridge.0",
"babel-eslint": "~10.0.1",
"babel-loader": "~8.0.5",
Expand Down
12 changes: 8 additions & 4 deletions src/app/widgets/JogControl/components/JogControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,24 @@ import cx from 'classnames';
import styles from '../index.styl';

const JogControl = ({ timeout = 600, disabled = false, jog, continuousJog, stopContinuousJog, className, children }) => {
const bind = useLongPress(() => {
const bind = useLongPress((e) => {
console.log('long');
continuousJog();
}, {
threshold: timeout,
onCancel: jog,
onFinish: stopContinuousJog
onCancel: (e) => {
console.log('test');
jog();
},
onFinish: stopContinuousJog,
});

return (
<button
type="button"
className={cx(styles.btnKeypad, className)}
disabled={disabled}
{...bind}
{...bind()}
>
{children}
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gSender",
"version": "1.4.9",
"version": "1.4.10",
"productName": "gSender",
"description": "CNC Milling Controller",
"author": {
Expand Down
1 change: 0 additions & 1 deletion webpack.config.app.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ module.exports = {
}
}
},
exclude: /node_modules/
},
{
test: /\.styl$/,
Expand Down

0 comments on commit 4c33502

Please sign in to comment.