settings: refactor settings store

read-only: pass flag with index.html response
theme: clean & remove old themes
This commit is contained in:
bordun 2020-03-20 12:57:47 +01:00
parent a6b82a4c93
commit a588fb2b4a
23 changed files with 203 additions and 418 deletions

View file

@ -9,7 +9,7 @@ window.PACKAGE = require('../../package.json')
window.LOADING = null
window.READ_ONLY = false
window.READ_ONLY = window.READ_ONLY || false
window.GRIDWIDTH = 10

View file

@ -94,11 +94,6 @@ module.exports = {
},
readOnly: function(){
READ_ONLY = true
if (editor.enabled) editor.disable()
},
reload: function(){
var id = Math.random(),

View file

@ -31,7 +31,7 @@ class Vm {
this.registerGlobals()
// detach sandbox
document.documentElement.appendChild(this.sandbox)
document.documentElement.removeChild(this.sandbox)
}