2017-05-22 12:44:59 +01:00
|
|
|
# vue-poc
|
2017-05-22 14:27:25 +01:00
|
|
|
|
|
|
|
A test of using `vue.js` as UI
|
|
|
|
Includes:
|
|
|
|
* material design (using `vuetify`)
|
|
|
|
* ace editor
|
2017-07-27 21:44:30 +01:00
|
|
|
* localforage for persistence
|
|
|
|
|
2017-09-10 16:39:19 +01:00
|
|
|
Edit via android
|
2017-12-04 09:25:49 +00:00
|
|
|
## Bugs
|
|
|
|
* requests not stopped after unload
|
2017-07-27 21:44:30 +01:00
|
|
|
|
|
|
|
## Settings
|
|
|
|
Global `settings` provides `getItem(name)` and `setItem(name.value)`
|
|
|
|
Example usage
|
|
|
|
```
|
|
|
|
created: function () {
|
|
|
|
settings.getItem('settings/ace')
|
|
|
|
.then((v)=>{
|
|
|
|
this.ace=v
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
watch: {"ace":{
|
|
|
|
handler:function(v){
|
|
|
|
settings.setItem('settings/ace',this.ace)
|
|
|
|
},
|
|
|
|
deep:true
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|