emojy: reorder the stats page

This commit is contained in:
Chris Sexton 2022-07-23 12:55:49 -04:00
parent bffc1589c2
commit 09cc6f75c3
1 changed files with 4 additions and 5 deletions

View File

@ -43,10 +43,9 @@
{{ err }}
</div>
<ul>
<li v-for="(category, name) in results" key="name">
{{name}}:
<ul>
<ul style="list-style-type: none;">
<li v-for="category in results">
<ul v-if="category" style="list-style-type: none;">
<li v-for="emojy in category" key="emojy">
{{emojy.count}} -
<span v-if="name != 'emoji'">
@ -96,7 +95,7 @@
refresh: function () {
axios.get('/emojy/all')
.then(resp => {
this.results = resp.data
this.results = [resp.data["emojy"], resp.data["unknown"], resp.data["emoji"]]
this.err = ''
})
.catch(err => (this.err = err))