Skip to content

Commit 3412f6a

Browse files
committed
Compatibility upgrade for dragging timer activities
1 parent 0451b53 commit 3412f6a

5 files changed

Lines changed: 250 additions & 228 deletions

File tree

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"dependencies": {
33
"@popperjs/core": "^2.11.8",
4-
"@rspack/cli": "^2.0.8",
5-
"@rspack/core": "^2.0.8",
6-
"@rspack/dev-server": "^2.0.3",
4+
"@rspack/cli": "^2.1.1",
5+
"@rspack/core": "^2.1.1",
6+
"@rspack/dev-server": "^2.1.0",
77
"@swc/helpers": "^0.5.23",
8-
"autoprefixer": "^10.5.0",
8+
"autoprefixer": "^10.5.2",
99
"bootstrap": "^5.3.8",
1010
"core-js": "^3.49.0",
1111
"css-loader": "^7.1.4",
1212
"popper.js": "^1.16.1",
1313
"postcss-loader": "^8.2.1",
14+
"process": "^0.11.10",
1415
"react": "^19.2.7",
1516
"react-dom": "^19.2.7",
16-
"react-draggable": "^4.6.0",
17+
"react-draggable": "^4.7.0",
1718
"react-redux": "^9.3.0",
1819
"react-select": "^5.10.2",
1920
"redux": "^5.0.1",

rspack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require("node:path")
2+
const rspack = require("@rspack/core")
23

34
module.exports = (env, argv) => {
45
const {
@@ -32,6 +33,9 @@ module.exports = (env, argv) => {
3233
htmlSingleChunkPlugin("timer"),
3334
htmlSingleChunkPlugin("absences"),
3435
htmlSingleChunkPlugin("planning"),
36+
new rspack.DefinePlugin({
37+
"process.env.DRAGGABLE_DEBUG": JSON.stringify(false),
38+
}),
3539
),
3640
}
3741
}

timer/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ div[role="main"] {
125125
}
126126

127127
.js-drag-handle {
128-
cursor: move;
128+
cursor: grab;
129129
}
130130

131131
.create-activity input {

0 commit comments

Comments
 (0)