vue-poc/README.md

54 lines
870 B
Markdown
Raw Normal View History

2017-05-22 12:44:59 +01:00
# vue-poc
2017-05-22 14:27:25 +01:00
2020-04-12 13:16:27 +01:00
A test of using https://vuetifyjs.com/en/ as UI
2017-05-22 14:27:25 +01:00
Includes:
2020-04-12 13:16:27 +01:00
2017-05-22 14:27:25 +01:00
* material design (using `vuetify`)
* ace editor
2017-07-27 21:44:30 +01:00
* localforage for persistence
2020-04-12 13:16:27 +01:00
## Icons
2020-10-22 22:19:51 +01:00
* https://material.io/resources/icons/?style=baseline
2020-04-12 13:16:27 +01:00
* https://vuetifyjs.com/en/customization/icons/
2020-10-22 22:19:51 +01:00
2020-04-12 13:16:27 +01:00
## Tests
### Cypress
https://github.com/cypress-io/cypress
```
cd ~\git\vue-poc\tests>
npx cypress open
2017-07-27 21:44:30 +01:00
2020-04-12 13:16:27 +01:00
or...
npx cypress run
```
2017-07-27 21:44:30 +01:00
## Settings
2020-10-22 22:19:51 +01:00
Required BaseX options https://docs.basex.org/wiki/Options
```
CHOP = false
LOGTRACE = false
RESTXQERRORS = false
GZIP = true
```
### Other
2017-07-27 21:44:30 +01:00
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
}
2019-01-24 10:47:38 +00:00
```
##