Compare commits

...

4 Commits

Author SHA1 Message Date
a34fdc2068 10.51.2 2018-11-15 07:04:25 +09:00
2c2cd893b8 🎨 2018-11-15 07:03:46 +09:00
a43b0548ed 10.51.1 2018-11-15 06:40:09 +09:00
93e95f56f4 Update src/client/app/admin/views/index.vue 2018-11-15 06:39:59 +09:00
2 changed files with 12 additions and 8 deletions

View File

@ -1,8 +1,8 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "10.51.0",
"clientVersion": "2.0.11800",
"version": "10.51.2",
"clientVersion": "2.0.11804",
"codename": "nighthike",
"main": "./built/index.js",
"private": true,

View File

@ -37,8 +37,10 @@
</div>
</nav>
<main>
<marquee-text v-if="instances.length > 0" class="instances" :repeat="10" :duration="10">
<span v-for="instance in instances" class="instance"><b :style="{ background: instance.bg }">{{ instance.host }}</b>{{ instance.notesCount | number }}</span>
<marquee-text v-if="instances.length > 0" class="instances" :repeat="10" :duration="30">
<span v-for="instance in instances" class="instance">
<b :style="{ background: instance.bg }">{{ instance.host }}</b>{{ instance.notesCount | number }} / {{ instance.usersCount | number }}
</span>
</marquee-text>
<div class="page">
<div v-if="page == 'dashboard'"><x-dashboard/></div>
@ -103,7 +105,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,
@ -284,10 +288,10 @@ export default Vue.extend({
padding 0 0 0 250px
> .instances
padding 8px
background rgba(0, 0, 0, 0.7)
padding 10px
background #000
color #fff
font-size 14px
font-size 13px
>>> .instance
margin 0 10px