feature: HTML/JS/CSS minifiction and cache busting

This commit is contained in:
jamesread
2024-02-09 17:01:39 +00:00
parent 7dce77adcf
commit 086d8fd21c
27 changed files with 4798 additions and 10 deletions

View File

@@ -0,0 +1,34 @@
import { ExecutionFeedbackButton } from './ExecutionFeedbackButton.js'
class ExecutionButton extends ExecutionFeedbackButton {
constructFromJson (json) {
this.executionUuid = json
this.ellapsed = 0
this.appendChild(document.createElement('button'))
this.isWaiting = true
this.setAttribute('id', 'execution-' + json)
this.btn = this.querySelector('button')
this.btn.innerText = 'Executing...'
this.btn.onclick = () => {
this.show()
}
this.domTitle = this.btn
}
show () {
window.executionDialog.reset()
window.executionDialog.show()
window.executionDialog.fetchExecutionResult(this.executionUuid)
}
onExecStatusChanged () {
this.domTitle.innerText = this.ellapsed + 's'
this.btn.title = this.ellapsed + ' seconds'
}
}
window.customElements.define('execution-button', ExecutionButton)