@talend/react-cmf
Version:
A framework built on top of best react libraries
160 lines • 3.49 kB
JavaScript
const settings = {
contentTypes: {
article: {
id: 'article',
name: 'Article',
icon: 'icon-document',
actions: {
list: [{
id: 'add',
icon: 'icon-add-botton-3',
name: 'Add article',
type: 'form/DISPLAY_FORM'
}],
primary: [{
id: 'edit',
icon: 'fa-pencil',
name: 'Edit article',
type: 'form/DISPLAY_FORM'
}, {
id: 'delete',
icon: 'fa-delete',
name: 'Delete article',
type: 'DELETE'
}]
}
}
},
actions: {
'menu:article': {
id: 'menu:article',
name: 'My article',
icon: 'icon-article',
payload: {
type: '@@router/CALL_HISTORY_METHOD',
method: 'push',
args: ['/myarticle']
}
},
'menu:article:items': {
id: 'menu:article:items',
name: 'My article',
icon: 'icon-article',
payload: {
type: '@@router/CALL_HISTORY_METHOD',
method: 'push',
args: ['/myarticle']
},
displayMode: 'splitDropdown',
actionIds: ['menu:demo', 'menu:actionCreator']
},
'menu:items': {
id: 'menu:items',
name: 'my items',
itemsExpression: 'getItems'
},
'menu:demo': {
id: 'menu',
name: 'Menu',
icon: 'fa-bars',
payload: {
type: 'TEST_MENU'
}
},
'menu:actionCreator': {
id: 'menu:actionCreator',
actionCreator: 'action-creator',
name: 'Action creator',
icon: 'fa-bars',
payload: {
type: 'TEST_ACTION_CREATOR'
}
},
'menu:routerReplace': {
id: 'routerReplace',
name: 'Menu',
icon: 'fa-bars',
payload: {
type: 'TEST_MENU',
cmf: {
routerReplace: '/test'
}
}
},
'menu:routerPush': {
id: 'routerPush',
name: 'Menu',
icon: 'fa-bars',
payload: {
type: 'TEST_MENU',
cmf: {
routerReplace: '/push'
}
}
},
'menu:href': {
id: 'href',
name: 'Menu',
icon: 'fa-bars',
actionCreator: 'redirect:conditional',
href: '/href'
}
},
props: {
simple: {
name: 'my app'
},
appmenu: {
actions: ['menu:tuto', 'menu:forum', 'menu:settings'],
userMenuActions: ['menu:preferences', 'menu:logout'],
logo: {
src: 'images/logo.png',
alt: 'My blog'
},
app: 'article'
},
homepage: {
sidemenu: {
actions: ['menu:article', 'menu:about']
},
listview: {
collectionId: 'article',
contentType: 'article',
searchLabel: 'find a article',
columns: [{
key: 'name',
label: 'Name'
}, {
key: 'type',
label: 'Type'
}, {
key: 'creator',
label: 'Creator'
}, {
key: 'description',
label: 'Description'
}, {
key: 'write_date',
label: 'Last modification date',
dateformat: 'YYYY/MM/DD'
}],
sortOn: []
}
}
},
routes: {
path: '/',
component: 'App',
indexRoute: {
component: 'SortableListWithSideMenu',
view: 'homepage'
},
childRoutes: [{
path: 'myarticle',
component: 'SortableListWithSideMenu',
view: 'homepage'
}]
}
};
export default settings;
//# sourceMappingURL=settings.js.map