refactor(frontend): boot分割したり副作用減らしたりとか

#10838
This commit is contained in:
syuilo 2023-05-15 19:08:46 +09:00
parent a7ee4aabcb
commit 23f106a0c1
26 changed files with 628 additions and 573 deletions

View file

@ -5,7 +5,7 @@
<script lang="ts" setup>
import { computed, provide, onUnmounted } from 'vue';
import MkNotes from '@/components/MkNotes.vue';
import { stream } from '@/stream';
import { useStream } from '@/stream';
import * as sound from '@/scripts/sound';
import { $i } from '@/account';
import { defaultStore } from '@/store';
@ -57,6 +57,8 @@ let query;
let connection;
let connection2;
const stream = useStream();
if (props.src === 'antenna') {
endpoint = 'antennas/notes';
query = {