enhance(client): improve entrance page

Resolve #9986
This commit is contained in:
syuilo
2023-02-22 11:00:34 +09:00
parent b161f38710
commit 69869307bf
24 changed files with 208 additions and 169 deletions

View File

@@ -4,7 +4,7 @@
<div ref="rootEl" v-hotkey.global="keymap" class="tqmomfks">
<div v-if="queue > 0" class="new"><button class="_buttonPrimary" @click="top()">{{ $ts.newNoteRecived }}</button></div>
<div class="tl">
<XTimeline
<MkTimeline
ref="tlEl" :key="antennaId"
class="tl"
src="antenna"
@@ -19,7 +19,7 @@
<script lang="ts" setup>
import { computed, watch } from 'vue';
import XTimeline from '@/components/MkTimeline.vue';
import MkTimeline from '@/components/MkTimeline.vue';
import { scroll } from '@/scripts/scroll';
import * as os from '@/os';
import { useRouter } from '@/router';
@@ -35,7 +35,7 @@ const props = defineProps<{
let antenna = $ref(null);
let queue = $ref(0);
let rootEl = $shallowRef<HTMLElement>();
let tlEl = $shallowRef<InstanceType<typeof XTimeline>>();
let tlEl = $shallowRef<InstanceType<typeof MkTimeline>>();
const keymap = $computed(() => ({
't': focus,
}));