mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 07:36:18 +09:00
Update src/client/app/admin/views/index.vue
This commit is contained in:
parent
497a6948d9
commit
83a47bc2f8
@ -37,7 +37,7 @@
|
||||
</div>
|
||||
</nav>
|
||||
<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>
|
||||
</marquee-text>
|
||||
<div class="page">
|
||||
@ -103,7 +103,9 @@ export default Vue.extend({
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$root.api('instances').then(instances => {
|
||||
this.$root.api('instances', {
|
||||
sort: '+notes'
|
||||
}).then(instances => {
|
||||
instances.forEach(i => {
|
||||
i.bg = randomColor({
|
||||
seed: i.host,
|
||||
|
Loading…
Reference in New Issue
Block a user