summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-28 13:20:11 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-28 13:20:11 +0900
commitcfd4d7c57b565fc5c592f0a03079c4a7527d4f7e (patch)
tree665f874634c4afcec54502e0d2c1fa4b0ca8f5ad /packages/frontend/src/components/global
parentbuild-misskey-js-with-types (#16471) (diff)
downloadmisskey-cfd4d7c57b565fc5c592f0a03079c4a7527d4f7e.tar.gz
misskey-cfd4d7c57b565fc5c592f0a03079c4a7527d4f7e.tar.bz2
misskey-cfd4d7c57b565fc5c592f0a03079c4a7527d4f7e.zip
refactor
Diffstat (limited to 'packages/frontend/src/components/global')
-rw-r--r--packages/frontend/src/components/global/MkAd.stories.impl.ts7
-rw-r--r--packages/frontend/src/components/global/StackingRouterView.vue2
2 files changed, 4 insertions, 5 deletions
diff --git a/packages/frontend/src/components/global/MkAd.stories.impl.ts b/packages/frontend/src/components/global/MkAd.stories.impl.ts
index c5a928b5cf..07e06a6897 100644
--- a/packages/frontend/src/components/global/MkAd.stories.impl.ts
+++ b/packages/frontend/src/components/global/MkAd.stories.impl.ts
@@ -2,11 +2,10 @@
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
-
-/* eslint-disable @typescript-eslint/explicit-function-return-type */
+
import { expect, userEvent, waitFor, within } from '@storybook/test';
-import type { StoryObj } from '@storybook/vue3';
import MkAd from './MkAd.vue';
+import type { StoryObj } from '@storybook/vue3';
import { i18n } from '@/i18n.js';
const common = {
@@ -68,7 +67,7 @@ const common = {
await expect(imgAgain).toBeInTheDocument();
},
args: {
- prefer: [],
+ preferForms: [],
specify: {
id: 'someadid',
ratio: 1,
diff --git a/packages/frontend/src/components/global/StackingRouterView.vue b/packages/frontend/src/components/global/StackingRouterView.vue
index 9e47517244..4c56767608 100644
--- a/packages/frontend/src/components/global/StackingRouterView.vue
+++ b/packages/frontend/src/components/global/StackingRouterView.vue
@@ -87,7 +87,7 @@ router.useListener('change', ({ resolved }) => {
const fullPath = router.getCurrentFullPath();
if (tabs.value.some(tab => tab.routePath === routePath && deepEqual(resolved.props, tab.props))) {
- const newTabs = [];
+ const newTabs = [] as typeof tabs.value;
for (const tab of tabs.value) {
newTabs.push(tab);