forked from FoundKeyGang/FoundKey
Update src/client/app/admin/views/index.vue
This commit is contained in:
parent
cb0673b1ec
commit
93e95f56f4
1 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
<marquee-text v-if="instances.length > 0" class="instances" :repeat="10" :duration="10">
|
<marquee-text v-if="instances.length > 0" class="instances" :repeat="10" :duration="20">
|
||||||
<span v-for="instance in instances" class="instance"><b :style="{ background: instance.bg }">{{ instance.host }}</b>{{ instance.notesCount | number }}</span>
|
<span v-for="instance in instances" class="instance"><b :style="{ background: instance.bg }">{{ instance.host }}</b>{{ instance.notesCount | number }}</span>
|
||||||
</marquee-text>
|
</marquee-text>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
|
@ -103,7 +103,9 @@ export default Vue.extend({
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$root.api('instances').then(instances => {
|
this.$root.api('instances', {
|
||||||
|
sort: '+notes'
|
||||||
|
}).then(instances => {
|
||||||
instances.forEach(i => {
|
instances.forEach(i => {
|
||||||
i.bg = randomColor({
|
i.bg = randomColor({
|
||||||
seed: i.host,
|
seed: i.host,
|
||||||
|
|
Loading…
Reference in a new issue