add simple doc and doc type mock data
This commit is contained in:
@@ -889,6 +889,56 @@ export const data: Array<DocumentTypeModel> = [
|
||||
keepLatestVersionPerDayForDays: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
allowedTemplateKeys: [],
|
||||
defaultTemplateKey: null,
|
||||
key: 'simple-document-type-key',
|
||||
alias: 'simpleDocumentType',
|
||||
name: 'Simple Document Type',
|
||||
description: null,
|
||||
icon: 'umb:document',
|
||||
allowedAsRoot: true,
|
||||
variesByCulture: false,
|
||||
variesBySegment: false,
|
||||
isElement: false,
|
||||
properties: [
|
||||
{
|
||||
key: '1680d4d2-cda8-4ac2-affd-a69fc10382b1',
|
||||
containerKey: '341b8521-fd43-4333-ae7a-a10cbbc6f4b0',
|
||||
alias: 'prop1',
|
||||
name: 'Prop 1',
|
||||
description: null,
|
||||
dataTypeKey: '0cc0eba1-9960-42c9-bf9b-60e150b429ae',
|
||||
variesByCulture: false,
|
||||
variesBySegment: false,
|
||||
validation: {
|
||||
mandatory: false,
|
||||
mandatoryMessage: null,
|
||||
regEx: null,
|
||||
regExMessage: null,
|
||||
},
|
||||
appearance: {
|
||||
labelOnTop: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
containers: [
|
||||
{
|
||||
key: '341b8521-fd43-4333-ae7a-a10cbbc6f4b0',
|
||||
parentKey: null,
|
||||
name: 'Content',
|
||||
type: 'Group',
|
||||
sortOrder: 0,
|
||||
},
|
||||
],
|
||||
allowedContentTypes: [{ key: 'simple-document-type-key', sortOrder: 0 }],
|
||||
compositions: [],
|
||||
cleanup: {
|
||||
preventCleanup: false,
|
||||
keepAllVersionsNewerThanDays: null,
|
||||
keepLatestVersionPerDayForDays: null,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const treeData: Array<DocumentTypeTreeItemModel> = [
|
||||
@@ -922,6 +972,16 @@ export const treeData: Array<DocumentTypeTreeItemModel> = [
|
||||
parentKey: null,
|
||||
icon: '',
|
||||
},
|
||||
{
|
||||
$type: 'DocumentTypeTreeItemViewModel',
|
||||
name: 'Simple Document Type',
|
||||
type: 'document-type',
|
||||
hasChildren: false,
|
||||
key: 'simple-document-type-key',
|
||||
isContainer: false,
|
||||
parentKey: null,
|
||||
icon: '',
|
||||
},
|
||||
];
|
||||
|
||||
// Temp mocked database
|
||||
|
||||
@@ -405,6 +405,23 @@ export const data: Array<DocumentModel> = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
urls: [],
|
||||
templateKey: null,
|
||||
key: 'simple-document-key',
|
||||
contentTypeKey: 'simple-document-type-key',
|
||||
variants: [
|
||||
{
|
||||
state: ContentStateModel.DRAFT,
|
||||
publishDate: '2023-02-06T15:32:24.957009',
|
||||
culture: 'en-us',
|
||||
segment: null,
|
||||
name: 'Blog post B',
|
||||
createDate: '2023-02-06T15:32:05.350038',
|
||||
updateDate: '2023-02-06T15:32:24.957009',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const treeData: Array<DocumentTreeItemModel> = [
|
||||
@@ -468,6 +485,21 @@ export const treeData: Array<DocumentTreeItemModel> = [
|
||||
isEdited: false,
|
||||
isTrashed: false,
|
||||
},
|
||||
{
|
||||
$type: 'DocumentTreeItemViewModel',
|
||||
name: 'Simple',
|
||||
type: 'document',
|
||||
icon: 'document',
|
||||
hasChildren: false,
|
||||
key: 'simple-document-key',
|
||||
isContainer: false,
|
||||
parentKey: null,
|
||||
noAccess: false,
|
||||
isProtected: false,
|
||||
isPublished: false,
|
||||
isEdited: false,
|
||||
isTrashed: false,
|
||||
},
|
||||
];
|
||||
|
||||
// Temp mocked database
|
||||
|
||||
Reference in New Issue
Block a user