chore: correct tooling
This commit is contained in:
parent
de53f780b7
commit
ced1080931
7
dist/frappe-gantt.es.js
vendored
7
dist/frappe-gantt.es.js
vendored
@ -508,7 +508,10 @@ class O {
|
||||
const { step: t, column_width: e } = this.gantt.options, s = this.task._start, i = this.gantt.gantt_start;
|
||||
let o = h.diff(s, i, "hour") / t * e;
|
||||
if (this.gantt.view_is("Month")) {
|
||||
const a = h.diff(s, i, "month") * 30, d = Math.min(29, h.format(s, "DD"));
|
||||
const a = h.diff(s, i, "month") * 30, d = Math.min(
|
||||
29,
|
||||
h.format(s, "DD")
|
||||
);
|
||||
o = (a + d) * e / 30;
|
||||
}
|
||||
this.x = o;
|
||||
@ -873,7 +876,7 @@ class B {
|
||||
this.$header.clientWidth,
|
||||
this.$container.clientWidth
|
||||
);
|
||||
this.$side_header.style.left = s + this.$container.scrollLeft + r - this.$side_header.clientWidth + "px", this.$today_button.style.left = `${t.left + 20}px`;
|
||||
this.$side_header.style.left = s + this.$container.scrollLeft + r - this.$side_header.clientWidth + "px", this.$today_button && (this.$today_button.style.left = `${t.left + 20}px`);
|
||||
}
|
||||
make_grid_ticks() {
|
||||
if (!["both", "vertical", "horizontal"].includes(this.options.lines))
|
||||
|
||||
8
dist/frappe-gantt.umd.js
vendored
8
dist/frappe-gantt.umd.js
vendored
File diff suppressed because one or more lines are too long
@ -9,9 +9,7 @@
|
||||
"dev": "vite",
|
||||
"build-dev": "vite build --watch",
|
||||
"build": "vite build",
|
||||
"test": "jest",
|
||||
"lint": "eslint src/**/*.js",
|
||||
"test:watch": "jest --watch",
|
||||
"prettier": "prettier --write \"{src/*,tests/*,rollup.config}.js\"",
|
||||
"prettier-check": "prettier --check \"{src/*,tests/*,rollup.config}.js\""
|
||||
},
|
||||
@ -54,6 +52,5 @@
|
||||
},
|
||||
"eslintIgnore": [
|
||||
"dist"
|
||||
],
|
||||
"packageManager": "yarn@1.22.22"
|
||||
]
|
||||
}
|
||||
|
||||
5447
pnpm-lock.yaml
generated
Normal file
5447
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user