import Version from "./Version.vue"; import type { Meta, StoryFn } from "@storybook/vue3"; const releaseNotes = '

0.141

Bug fixes:

Enhancements:

'; export default { title: "Footer/Version", component: Version, parameters: { layout: "centered", }, argTypes: { installed: { control: "text" }, available: { control: "text" }, commit: { control: "text" }, releaseNotes: { control: "text" }, hasUpdater: { control: "boolean" }, }, } as Meta; const Template: StoryFn = (args) => ({ components: { Version }, setup() { return { args }; }, template: '', }); export const Latest = Template.bind({}); Latest.args = { installed: "0.141", available: "0.141", }; export const Nightly = Template.bind({}); Nightly.args = { installed: "0.141", available: "0.141", commit: "5ce7be4", }; export const UpdateAvailable = Template.bind({}); UpdateAvailable.args = { installed: "0.141", available: "0.142", releaseNotes, }; export const AutoUpdater = Template.bind({}); AutoUpdater.args = { installed: "0.141", available: "0.142", releaseNotes, hasUpdater: true, }; export const NoReleaseNotes = Template.bind({}); NoReleaseNotes.args = { installed: "0.141", available: "0.142", };