import Version from "./Version.vue";
import type { Meta, StoryFn } from "@storybook/vue3";
const releaseNotes =
'
0.141
Bug fixes:
- Withdraw Kia and Hyundai apis (#699)
- Simplify Tesla integration and fix upstream changes (#700)
- SHM: Check connected status (#673)
Enhancements:
- Add Seat api (#681)
- Add Skoda api (#680)
- Add Peugeot/Opel/Citroen api (#692)
- KEBA: Support mA current resolution adjustments (#646)
';
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",
};