refactor(frontend): Reactivityで型を明示するように (#12791)
* refactor(frontend): Reactivityで型を明示するように * fix: プロパティの参照が誤っているのを修正 * fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
This commit is contained in:
parent
a9b42765f9
commit
75034d9240
110 changed files with 370 additions and 344 deletions
|
@ -70,6 +70,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref, watch, defineAsyncComponent } from 'vue';
|
||||
import * as Misskey from 'misskey-js';
|
||||
import MkButton from '@/components/MkButton.vue';
|
||||
import MkInput from '@/components/MkInput.vue';
|
||||
import MkColorInput from '@/components/MkColorInput.vue';
|
||||
|
@ -90,15 +91,15 @@ const props = defineProps<{
|
|||
channelId?: string;
|
||||
}>();
|
||||
|
||||
const channel = ref(null);
|
||||
const name = ref(null);
|
||||
const description = ref(null);
|
||||
const channel = ref<Misskey.entities.Channel | null>(null);
|
||||
const name = ref<string | null>(null);
|
||||
const description = ref<string | null>(null);
|
||||
const bannerUrl = ref<string | null>(null);
|
||||
const bannerId = ref<string | null>(null);
|
||||
const color = ref('#000');
|
||||
const isSensitive = ref(false);
|
||||
const allowRenoteToExternal = ref(true);
|
||||
const pinnedNotes = ref([]);
|
||||
const pinnedNotes = ref<Partial<Misskey.entities.Note>[]>([]);
|
||||
|
||||
watch(() => bannerId.value, async () => {
|
||||
if (bannerId.value == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue