Fix build
This commit is contained in:
parent
03d641a0d7
commit
9f0327aeb3
|
@ -100,8 +100,8 @@ class EndCard extends Component {
|
||||||
let now: number
|
let now: number
|
||||||
let newOffset: number
|
let newOffset: number
|
||||||
|
|
||||||
this.autoplayRing.setAttribute('stroke-dasharray', this.dashOffsetStart)
|
this.autoplayRing.setAttribute('stroke-dasharray', '' + this.dashOffsetStart)
|
||||||
this.autoplayRing.setAttribute('stroke-dashoffset', -this.dashOffsetStart)
|
this.autoplayRing.setAttribute('stroke-dashoffset', '' + -this.dashOffsetStart)
|
||||||
|
|
||||||
this.title.innerHTML = this.getTitle()
|
this.title.innerHTML = this.getTitle()
|
||||||
|
|
||||||
|
@ -127,8 +127,9 @@ class EndCard extends Component {
|
||||||
clearTimeout(timeout)
|
clearTimeout(timeout)
|
||||||
cb(false)
|
cb(false)
|
||||||
} else {
|
} else {
|
||||||
newOffset = Math.max(-this.dashOffsetTotal, this.autoplayRing.getAttribute('stroke-dashoffset') - this.chunkSize)
|
const strokeDashOffset = parseInt(this.autoplayRing.getAttribute('stroke-dashoffset'), 10)
|
||||||
this.autoplayRing.setAttribute('stroke-dashoffset', newOffset)
|
newOffset = Math.max(-this.dashOffsetTotal, strokeDashOffset - this.chunkSize)
|
||||||
|
this.autoplayRing.setAttribute('stroke-dashoffset', '' + newOffset)
|
||||||
timeout = setTimeout(update.bind(this), this.interval)
|
timeout = setTimeout(update.bind(this), this.interval)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
npm run concurrently -- -k \
|
if [[ -n ${1+x} ]]; then
|
||||||
"npm run build:client" \
|
clientCommand="npm run build:client -- $1"
|
||||||
|
else
|
||||||
|
clientCommand="npm run build:client"
|
||||||
|
fi
|
||||||
|
|
||||||
|
npm run concurrently -- --raw \
|
||||||
|
"$clientCommand" \
|
||||||
"npm run build:server"
|
"npm run build:server"
|
||||||
|
|
Loading…
Reference in New Issue