diff --git a/packages/frontend/src/components/MkUrlPreview.vue b/packages/frontend/src/components/MkUrlPreview.vue index 4a1407501f49..12902d50f7cd 100644 --- a/packages/frontend/src/components/MkUrlPreview.vue +++ b/packages/frontend/src/components/MkUrlPreview.vue @@ -4,90 +4,87 @@ SPDX-License-Identifier: AGPL-3.0-only --> diff --git a/packages/frontend/src/components/custom/NeosUrlPreview.vue b/packages/frontend/src/components/custom/NeosUrlPreview.vue index ad9b7ece37d0..fc972e2ef9e9 100644 --- a/packages/frontend/src/components/custom/NeosUrlPreview.vue +++ b/packages/frontend/src/components/custom/NeosUrlPreview.vue @@ -74,11 +74,11 @@ const defaultNeosWorldData = () => { } } -let neosButtonCopyText = $ref("参加コードをコピー"); -let neosWorldButtonCopyText = $ref("ワールドURLをコピー"); +let neosButtonCopyText = ref("参加コードをコピー"); +let neosWorldButtonCopyText = ref("ワールドURLをコピー"); -let neosSessionData = $ref(defaultNeosSessionData()) -let neosWorldData = $ref(defaultNeosWorldData()) +let neosSessionData = ref(defaultNeosSessionData()) +let neosWorldData = ref(defaultNeosWorldData()) // neos customize const openNeosLink = () => { diff --git a/packages/frontend/src/pages/neos/direct-upload.vue b/packages/frontend/src/pages/neos/direct-upload.vue index 6a93e29bb123..8755318b3a6f 100644 --- a/packages/frontend/src/pages/neos/direct-upload.vue +++ b/packages/frontend/src/pages/neos/direct-upload.vue @@ -54,7 +54,7 @@ setTimeout(async () => { }, 1000); const post = async (id = null) => { - let postAccount = $ref(null); + let postAccount = ref(null); let token = undefined; if (postAccount) { diff --git a/packages/frontend/src/widgets/WidgetKokolive.vue b/packages/frontend/src/widgets/WidgetKokolive.vue index 97f8125a42a3..29d7a8a76c65 100644 --- a/packages/frontend/src/widgets/WidgetKokolive.vue +++ b/packages/frontend/src/widgets/WidgetKokolive.vue @@ -30,9 +30,9 @@ import * as os from "@/os.js"; const name = 'kokolive'; -let showIframe = $ref(false); +let showIframe = ref(false); const MOBILE_THRESHOLD = 500; -const isMobile = $ref(deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD); +const isMobile = ref(deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD); const openPlayer = (): void => { os.popup(defineAsyncComponent(() => import('@/components/MKIframe.vue')), { @@ -130,14 +130,6 @@ function groupEventsByDate(events) { return eventsByDate; } -const getNeosEvent = async () => { - const result = await (await fetch(api)).json(); - - eventData.value = groupEventsByDate(result) - // eventData.value = result; - loaded.value = true; -}; -getNeosEvent() setInterval(() => getNeosEvent(), 3 * 60 * 1000); diff --git a/packages/frontend/src/widgets/WidgetNeosUserCount.vue b/packages/frontend/src/widgets/WidgetNeosUserCount.vue index 9bb083c36e7b..1ce268dc48d1 100644 --- a/packages/frontend/src/widgets/WidgetNeosUserCount.vue +++ b/packages/frontend/src/widgets/WidgetNeosUserCount.vue @@ -50,7 +50,7 @@