2020-06-10 08:08:58 -04:00
|
|
|
import RealDeleteModal from '~/registry/explorer/components/details_page/delete_modal.vue';
|
2020-07-07 14:09:24 -04:00
|
|
|
import RealListItem from '~/registry/explorer/components/list_item.vue';
|
2020-06-10 08:08:58 -04:00
|
|
|
|
2020-02-13 07:08:49 -05:00
|
|
|
export const GlModal = {
|
|
|
|
template: '<div><slot name="modal-title"></slot><slot></slot><slot name="modal-ok"></slot></div>',
|
|
|
|
methods: {
|
|
|
|
show: jest.fn(),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const GlEmptyState = {
|
|
|
|
template: '<div><slot name="description"></slot></div>',
|
|
|
|
name: 'GlEmptyStateSTub',
|
|
|
|
};
|
2020-05-06 08:09:36 -04:00
|
|
|
|
|
|
|
export const RouterLink = {
|
|
|
|
template: `<div><slot></slot></div>`,
|
|
|
|
props: ['to'],
|
|
|
|
};
|
2020-06-10 08:08:58 -04:00
|
|
|
|
|
|
|
export const DeleteModal = {
|
|
|
|
template: '<div></div>',
|
|
|
|
methods: {
|
|
|
|
show: jest.fn(),
|
|
|
|
},
|
|
|
|
props: RealDeleteModal.props,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const GlSkeletonLoader = {
|
|
|
|
template: `<div><slot></slot></div>`,
|
|
|
|
props: ['width', 'height'],
|
|
|
|
};
|
2020-07-07 14:09:24 -04:00
|
|
|
|
|
|
|
export const ListItem = {
|
|
|
|
...RealListItem,
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
detailsSlots: [],
|
|
|
|
isDetailsShown: true,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|