forked from mirrors/misskey
refactor
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
import { parse as vueSfcParse } from 'vue/compiler-sfc';
|
import { parse as vueSfcParse } from 'vue/compiler-sfc';
|
||||||
import {
|
import {
|
||||||
createLogger,
|
createLogger,
|
||||||
EnvironmentModuleGraph,
|
type EnvironmentModuleGraph,
|
||||||
type LogErrorOptions,
|
type LogErrorOptions,
|
||||||
type LogOptions,
|
type LogOptions,
|
||||||
normalizePath,
|
normalizePath,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { waitFor } from '@storybook/test';
|
import { waitFor } from '@storybook/test';
|
||||||
import MkPageHeader from './MkPageHeader.vue';
|
import MkPageHeader from './MkPageHeader.vue';
|
||||||
import type { StoryObj } from '@storybook/vue3';
|
import type { StoryObj } from '@storybook/vue3';
|
||||||
@@ -59,6 +59,7 @@ export const Icon = {
|
|||||||
{
|
{
|
||||||
...OneTab.args.tabs[0],
|
...OneTab.args.tabs[0],
|
||||||
icon: 'ti ti-home',
|
icon: 'ti ti-home',
|
||||||
|
title: 'Home',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -71,6 +72,7 @@ export const IconOnly = {
|
|||||||
{
|
{
|
||||||
key: Icon.args.tabs[0].key,
|
key: Icon.args.tabs[0].key,
|
||||||
icon: Icon.args.tabs[0].icon,
|
icon: Icon.args.tabs[0].icon,
|
||||||
|
title: Icon.args.tabs[0].title,
|
||||||
iconOnly: true,
|
iconOnly: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
mode="default"
|
mode="default"
|
||||||
>
|
>
|
||||||
<MkMarqueeText :key="key" :duration="marqueeDuration" :reverse="marqueeReverse">
|
<MkMarqueeText :key="key" :duration="marqueeDuration" :reverse="marqueeReverse">
|
||||||
<span v-for="instance in instances" :key="instance.id" :class="[$style.item, { [$style.colored]: colored }]" :style="{ background: colored ? instance.themeColor : '' }">
|
<span v-for="instance in instances" :key="instance.id" :class="[$style.item, { [$style.colored]: colored }]" :style="{ background: colored ? instance.themeColor ?? '' : '' }">
|
||||||
<img :class="$style.icon" :src="getInstanceIcon(instance)" alt=""/>
|
<img :class="$style.icon" :src="getInstanceIcon(instance)" alt=""/>
|
||||||
<MkA :to="`/instance-info/${instance.host}`" :class="$style.host" class="_monospace">
|
<MkA :to="`/instance-info/${instance.host}`" :class="$style.host" class="_monospace">
|
||||||
{{ instance.host }}
|
{{ instance.host }}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import 'intersection-observer';
|
|||||||
describe('XHome', () => {
|
describe('XHome', () => {
|
||||||
const renderHome = (user: Partial<Misskey.entities.UserDetailed>): RenderResult => {
|
const renderHome = (user: Partial<Misskey.entities.UserDetailed>): RenderResult => {
|
||||||
return render(XHome, {
|
return render(XHome, {
|
||||||
props: { user, disableNotes: true },
|
props: { user: user as Misskey.entities.UserDetailed, disableNotes: true },
|
||||||
global: { directives, components },
|
global: { directives, components },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ describe('MkMediaImage', () => {
|
|||||||
comment: null,
|
comment: null,
|
||||||
properties: {},
|
properties: {},
|
||||||
...image,
|
...image,
|
||||||
} as DriveFile,
|
} as Misskey.entities.DriveFile,
|
||||||
},
|
},
|
||||||
global: { directives, components },
|
global: { directives, components },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user