mirror of https://github.com/velour/catbase.git
emojy: reorder the stats page
This commit is contained in:
parent
bffc1589c2
commit
09cc6f75c3
|
@ -43,10 +43,9 @@
|
||||||
{{ err }}
|
{{ err }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul>
|
<ul style="list-style-type: none;">
|
||||||
<li v-for="(category, name) in results" key="name">
|
<li v-for="category in results">
|
||||||
{{name}}:
|
<ul v-if="category" style="list-style-type: none;">
|
||||||
<ul>
|
|
||||||
<li v-for="emojy in category" key="emojy">
|
<li v-for="emojy in category" key="emojy">
|
||||||
{{emojy.count}} -
|
{{emojy.count}} -
|
||||||
<span v-if="name != 'emoji'">
|
<span v-if="name != 'emoji'">
|
||||||
|
@ -96,7 +95,7 @@
|
||||||
refresh: function () {
|
refresh: function () {
|
||||||
axios.get('/emojy/all')
|
axios.get('/emojy/all')
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
this.results = resp.data
|
this.results = [resp.data["emojy"], resp.data["unknown"], resp.data["emoji"]]
|
||||||
this.err = ''
|
this.err = ''
|
||||||
})
|
})
|
||||||
.catch(err => (this.err = err))
|
.catch(err => (this.err = err))
|
||||||
|
|
Loading…
Reference in New Issue