aem-core-components-contributions-react-core
Version:
AEM - React Wrapper components - for the OOTB AEM Core Components
237 lines (228 loc) • 9.34 kB
text/typescript
import {ListV2Item, ListV2Model} from './ListV2';
export const mockItems:ListV2Item[] = [
{
"url": "/content/core-components-examples/library/page-authoring/title.html",
"lastModified": 1547642198741,
"description": "Display a page heading",
"title": "Title",
"path": "/content/core-components-examples/library/page-authoring/title"
},
{
"url": "/content/core-components-examples/library/page-authoring/text.html",
"lastModified": 1548159422163,
"description": "Display a rich text paragraph",
"title": "Text",
"path": "/content/core-components-examples/library/page-authoring/text"
},
{
"url": "/content/core-components-examples/library/page-authoring/image.html",
"lastModified": 1550255022224,
"description": "Display an image asset",
"title": "Image",
"path": "/content/core-components-examples/library/page-authoring/image"
},
{
"url": "/content/core-components-examples/library/page-authoring/button.html",
"lastModified": 1547062227177,
"description": "Display a button or anchor button",
"title": "Button",
"path": "/content/core-components-examples/library/page-authoring/button"
},
{
"url": "/content/core-components-examples/library/page-authoring/teaser.html",
"lastModified": 1575799718587,
"description": "Link an image and text",
"title": "Teaser",
"path": "/content/core-components-examples/library/page-authoring/teaser"
},
{
"url": "/content/core-components-examples/library/page-authoring/download.html",
"lastModified": 1558992253683,
"description": "Display an asset for download",
"title": "Download",
"path": "/content/core-components-examples/library/page-authoring/download"
},
{
"url": "/content/core-components-examples/library/page-authoring/list.html",
"lastModified": 1547642282466,
"description": "Display a list of pages",
"title": "List",
"path": "/content/core-components-examples/library/page-authoring/list"
},
{
"url": "/content/core-components-examples/library/page-authoring/experience-fragment.html",
"lastModified": 1566294323252,
"description": "Display an experience fragment",
"title": "Experience Fragment",
"path": "/content/core-components-examples/library/page-authoring/experience-fragment"
},
{
"url": "/content/core-components-examples/library/page-authoring/content-fragment.html",
"lastModified": 1547644839952,
"description": "Display a content fragment asset",
"title": "Content Fragment",
"path": "/content/core-components-examples/library/page-authoring/content-fragment"
},
{
"url": "/content/core-components-examples/library/page-authoring/content-fragment-list.html",
"lastModified": 1554130037469,
"description": "Display a list of content fragments",
"title": "Content Fragment List",
"path": "/content/core-components-examples/library/page-authoring/content-fragment-list"
},
{
"url": "/content/core-components-examples/library/page-authoring/embed.html",
"lastModified": 1567092519658,
"description": "Embed a third-party widget",
"title": "Embed",
"path": "/content/core-components-examples/library/page-authoring/embed"
},
{
"url": "/content/core-components-examples/library/page-authoring/social-sharing.html",
"lastModified": 1547062206375,
"description": "Add social sharing links",
"title": "Social Sharing",
"path": "/content/core-components-examples/library/page-authoring/social-sharing"
},
{
"url": "/content/core-components-examples/library/page-authoring/separator.html",
"lastModified": 1547062195738,
"description": "Display a section divider",
"title": "Separator",
"path": "/content/core-components-examples/library/page-authoring/separator"
}
];
export const mockItemsWithRouting:ListV2Item[] = [
{
"url": "/content/core-components-examples/library/page-authoring/title.html",
"lastModified": 1547642198741,
"description": "Display a page heading",
"title": "Title",
"path": "/content/core-components-examples/library/page-authoring/title",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/text.html",
"lastModified": 1548159422163,
"description": "Display a rich text paragraph",
"title": "Text",
"path": "/content/core-components-examples/library/page-authoring/text",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/image.html",
"lastModified": 1550255022224,
"description": "Display an image asset",
"title": "Image",
"path": "/content/core-components-examples/library/page-authoring/image",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/button.html",
"lastModified": 1547062227177,
"description": "Display a button or anchor button",
"title": "Button",
"path": "/content/core-components-examples/library/page-authoring/button",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/teaser.html",
"lastModified": 1575799718587,
"description": "Link an image and text",
"title": "Teaser",
"path": "/content/core-components-examples/library/page-authoring/teaser",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/download.html",
"lastModified": 1558992253683,
"description": "Display an asset for download",
"title": "Download",
"path": "/content/core-components-examples/library/page-authoring/download",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/list.html",
"lastModified": 1547642282466,
"description": "Display a list of pages",
"title": "List",
"path": "/content/core-components-examples/library/page-authoring/list",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/experience-fragment.html",
"lastModified": 1566294323252,
"description": "Display an experience fragment",
"title": "Experience Fragment",
"path": "/content/core-components-examples/library/page-authoring/experience-fragment",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/content-fragment.html",
"lastModified": 1547644839952,
"description": "Display a content fragment asset",
"title": "Content Fragment",
"path": "/content/core-components-examples/library/page-authoring/content-fragment",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/content-fragment-list.html",
"lastModified": 1554130037469,
"description": "Display a list of content fragments",
"title": "Content Fragment List",
"path": "/content/core-components-examples/library/page-authoring/content-fragment-list",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/embed.html",
"lastModified": 1567092519658,
"description": "Embed a third-party widget",
"title": "Embed",
"path": "/content/core-components-examples/library/page-authoring/embed",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/social-sharing.html",
"lastModified": 1547062206375,
"description": "Add social sharing links",
"title": "Social Sharing",
"path": "/content/core-components-examples/library/page-authoring/social-sharing",
"routed": true
},
{
"url": "/content/core-components-examples/library/page-authoring/separator.html",
"lastModified": 1547062195738,
"description": "Display a section divider",
"title": "Separator",
"path": "/content/core-components-examples/library/page-authoring/separator",
"routed": true
}
];
export const dummyProps:ListV2Model = {
hidePlaceHolder: false,
isInEditor: false,
dateFormatString: "yyyy-MM-dd",
showDescription: true,
showModificationDate: true,
linkItems: true,
items: mockItems
};
export const dummyPropsWithDefaultRouting:ListV2Model = {
hidePlaceHolder: false,
isInEditor: false,
dateFormatString: "yyyy-MM-dd",
showDescription: true,
showModificationDate: true,
linkItems: true,
routed: true,
items: mockItems
};
export const dummyPropsWithRoutedItems:ListV2Model = {
hidePlaceHolder: false,
isInEditor: false,
dateFormatString: "yyyy-MM-dd",
showDescription: true,
showModificationDate: true,
linkItems: true,
items: mockItemsWithRouting
};