2020-06-10 12:08:58 +00:00
|
|
|
import RealDeleteModal from '~/registry/explorer/components/details_page/delete_modal.vue';
|
2020-07-07 18:09:24 +00:00
|
|
|
import RealListItem from '~/registry/explorer/components/list_item.vue';
|
2020-06-10 12:08:58 +00:00
|
|
|
|
2020-02-13 12:08:49 +00: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 12:09:36 +00:00
|
|
|
|
|
|
|
export const RouterLink = {
|
|
|
|
template: `<div><slot></slot></div>`,
|
|
|
|
props: ['to'],
|
|
|
|
};
|
2020-06-10 12:08:58 +00: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 18:09:24 +00:00
|
|
|
|
|
|
|
export const ListItem = {
|
|
|
|
...RealListItem,
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
detailsSlots: [],
|
|
|
|
isDetailsShown: true,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|