client: remove broken instance ticker from landing page

This commit is contained in:
Johann150 2022-12-14 22:08:27 +01:00
parent 9f1670d5fd
commit 00fcc238f7
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -32,15 +32,6 @@
</div>
</div>
</div>
<div v-if="instances" class="federation">
<MarqueeText :duration="40">
<MkA v-for="instance in instances" :key="instance.id" :class="$style.federationInstance" :to="`/instance-info/${instance.host}`" behavior="window">
<!--<MkInstanceCardMini :instance="instance"/>-->
<img v-if="instance.iconUrl" class="icon" :src="instance.iconUrl" alt=""/>
<span class="name _monospace">{{ instance.host }}</span>
</MkA>
</MarqueeText>
</div>
</div>
</div>
</template>
@ -48,7 +39,6 @@
<script lang="ts" setup>
import { toUnicode } from 'punycode/';
import XTimeline from './welcome.timeline.vue';
import MarqueeText from '@/components/marquee.vue';
import XSigninDialog from '@/components/signin-dialog.vue';
import XSignupDialog from '@/components/signup-dialog.vue';
import MkButton from '@/components/ui/button.vue';
@ -63,7 +53,6 @@ import { instance } from '@/instance';
let stats = $ref();
let tags = $ref();
let onlineUsersCount = $ref();
let instances = $ref();
os.api('stats').then(_stats => {
stats = _stats;
@ -80,13 +69,6 @@ os.api('hashtags/list', {
tags = _tags;
});
os.api('federation/instances', {
sort: '+pubSub',
limit: 20,
}).then(_instances => {
instances = _instances;
});
function signin() {
os.popup(XSigninDialog, {
autoSet: true,