blob: ed0e9150bc42c6eb2ae4f3e7fa5d3ef999406919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import CloneDropdown from './clone_dropdown.vue';
export default {
component: CloneDropdown,
title: 'vue_shared/components/clone_dropdown',
};
const Template = (args, { argTypes }) => ({
components: { CloneDropdown },
props: Object.keys(argTypes),
template: '<clone-dropdown v-bind="$props" />',
});
const sshLink = 'ssh://some-ssh-link';
const httpLink = 'https://some-http-link';
export const Default = Template.bind({});
Default.args = {
sshLink,
httpLink,
};
export const HttpLink = Template.bind({});
HttpLink.args = {
httpLink,
sshLink: '',
};
export const SSHLink = Template.bind({});
SSHLink.args = {
sshLink,
httpLink: '',
};
|