mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-21 11:05:08 +01:00
ee3f408c7d
* feat: impl IdleRender * test: pin time on Chromatic * test: pin time on Chromatic * fix: typo * style: rename * style: rename * chore: back to setTimeout * style: linebreak * refactor: remove unused budget option * refactor: use raw unix time * fix: conflict error * fix: floor * fix: subtract * Revert "fix: subtract" This reverts commit2ef4afaafc
. * Revert "fix: floor" This reverts commitbef8ecdf45
. * Revert "refactor: use raw unix time" This reverts commit5199e13cb2
.
32 lines
675 B
TypeScript
32 lines
675 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
import { StoryObj } from '@storybook/vue3';
|
|
import isChromatic from 'chromatic/isChromatic';
|
|
import MkDigitalClock from './MkDigitalClock.vue';
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
MkDigitalClock,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...this.args,
|
|
};
|
|
},
|
|
},
|
|
template: '<MkDigitalClock v-bind="props" />',
|
|
};
|
|
},
|
|
args: {
|
|
now: isChromatic() ? () => new Date('2023-01-01T10:10:30') : undefined,
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkDigitalClock>;
|