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 }} {{ 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))