Use Vuejs for web UI

This commit is contained in:
Gabe Kangas
2020-06-02 14:07:38 -07:00
parent 1395e7ff82
commit 7e85a38613
10 changed files with 142 additions and 328 deletions
+15
View File
@@ -0,0 +1,15 @@
class Message {
constructor(model) {
this.author = model.author
this.body = model.body
this.image = "https://robohash.org/" + model.author
}
toModel() {
return {
author: this.author(),
body: this.body(),
image: this.image()
}
}
}