mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-21 06:45:09 +01:00
9bb6c536c0
* chore(#10336): register snippets
* test(#10336): add `components/Mk[A-B].*` stories
* build: desynced lockfile
* ci(#10336): preload assets
* ci(#10336): use pull_request
* build: update lockfile
* fix: reactivity transform
* chore: track upstream changes
* refactor: avoid temporary previous tapping declarations
* revert: avoid temporary previous tapping declarations
This reverts commit e649b1b1e6
.
* test: flaky snapshots
* style: import
37 lines
841 B
TypeScript
37 lines
841 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
import { StoryObj } from '@storybook/vue3';
|
|
import MkAnalogClock from './MkAnalogClock.vue';
|
|
import isChromatic from 'chromatic';
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
MkAnalogClock,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...this.args,
|
|
};
|
|
},
|
|
},
|
|
template: '<MkAnalogClock v-bind="props" />',
|
|
};
|
|
},
|
|
args: {
|
|
now: isChromatic() ? () => new Date('2023-01-01T10:10:30') : undefined,
|
|
},
|
|
decorators: [
|
|
() => ({
|
|
template: '<div style="container-type:inline-size;height:100%"><div style="height:100cqmin;margin:auto;width:100cqmin"><story/></div></div>',
|
|
}),
|
|
],
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
},
|
|
} satisfies StoryObj<typeof MkAnalogClock>;
|