|
|
|
@ -65,29 +65,29 @@ class CompilerContainer { |
|
|
|
|
|
|
|
|
|
this.compileTabLogic.compiler.event.register('loadingCompiler', () => { |
|
|
|
|
if (!this._view.compileIcon) return |
|
|
|
|
this._view.compileIcon.setAttribute('title', 'compiler is loading, please wait a few moments.') |
|
|
|
|
this._view.compileIcon.classList.add(`${css.spinningIcon}`) |
|
|
|
|
this._view.warnCompilationSlow.style.visibility = 'hidden' |
|
|
|
|
this._view.compileIcon.setAttribute('title', 'compiler is loading, please wait a few moments.') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.compileTabLogic.compiler.event.register('compilationStarted', () => { |
|
|
|
|
if (!this._view.compileIcon) return |
|
|
|
|
this._view.compileIcon.setAttribute('title', 'compiling...') |
|
|
|
|
this._view.compileIcon.classList.remove(`${css.bouncingIcon}`) |
|
|
|
|
this._view.compileIcon.classList.add(`${css.spinningIcon}`) |
|
|
|
|
this._view.compileIcon.setAttribute('title', 'compiling...') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.compileTabLogic.compiler.event.register('compilerLoaded', () => { |
|
|
|
|
if (!this._view.compileIcon) return |
|
|
|
|
this._view.compileIcon.classList.remove(`${css.spinningIcon}`) |
|
|
|
|
this._view.compileIcon.setAttribute('title', '') |
|
|
|
|
this._view.compileIcon.classList.remove(`${css.spinningIcon}`) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.compileTabLogic.compiler.event.register('compilationFinished', (success, data, source) => { |
|
|
|
|
if (!this._view.compileIcon) return |
|
|
|
|
this._view.compileIcon.setAttribute('title', 'idle') |
|
|
|
|
this._view.compileIcon.classList.remove(`${css.spinningIcon}`) |
|
|
|
|
this._view.compileIcon.classList.remove(`${css.bouncingIcon}`) |
|
|
|
|
this._view.compileIcon.setAttribute('title', 'idle') |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|