2017-12-19 10:24:24 +00:00
|
|
|
{
|
|
|
|
"module": "item",
|
|
|
|
"name": "Items",
|
2017-12-19 13:28:19 +00:00
|
|
|
"icon": "/static/images/icon_item.png",
|
2018-01-09 13:54:18 +00:00
|
|
|
"validations" : true,
|
2017-12-19 10:24:24 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"url": "/item",
|
|
|
|
"state": "item",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "ui-view"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/list",
|
|
|
|
"state": "item.index",
|
2018-01-25 13:14:58 +00:00
|
|
|
"component": "vn-item-list",
|
|
|
|
"acl": ["developer"]
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2017-12-19 10:24:24 +00:00
|
|
|
"url": "/create",
|
|
|
|
"state": "item.create",
|
|
|
|
"component": "vn-item-create"
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2017-12-20 13:36:12 +00:00
|
|
|
"url": "/:id",
|
|
|
|
"state": "item.card",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-item-card"
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2017-12-20 13:36:12 +00:00
|
|
|
"url" : "/data",
|
|
|
|
"state": "item.card.data",
|
|
|
|
"component": "vn-item-data",
|
2017-12-21 13:09:55 +00:00
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
2017-12-20 13:36:12 +00:00
|
|
|
"menu": {
|
|
|
|
"description": "Basic data",
|
|
|
|
"icon": "folder"
|
|
|
|
}
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2018-01-17 13:28:06 +00:00
|
|
|
"url" : "/tags",
|
|
|
|
"state": "item.card.tags",
|
|
|
|
"component": "vn-item-tags",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"menu": {
|
|
|
|
"description": "Tags",
|
|
|
|
"icon": "folder"
|
|
|
|
}
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2018-01-18 07:38:04 +00:00
|
|
|
"url" : "/history",
|
|
|
|
"state": "item.card.history",
|
|
|
|
"component": "vn-item-history",
|
2018-01-17 13:28:06 +00:00
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"menu": {
|
2018-01-18 07:38:04 +00:00
|
|
|
"description": "History",
|
2018-01-17 13:28:06 +00:00
|
|
|
"icon": "folder"
|
|
|
|
}
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2018-01-17 13:28:06 +00:00
|
|
|
"url" : "/niche",
|
|
|
|
"state": "item.card.niche",
|
|
|
|
"component": "vn-item-niche",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"menu": {
|
|
|
|
"description": "Niche",
|
|
|
|
"icon": "folder"
|
|
|
|
}
|
2018-02-14 13:24:14 +00:00
|
|
|
},
|
|
|
|
{
|
2018-01-17 13:28:06 +00:00
|
|
|
"url" : "/botanical",
|
|
|
|
"state": "item.card.botanical",
|
|
|
|
"component": "vn-item-botanical",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"menu": {
|
|
|
|
"description": "Botanical",
|
|
|
|
"icon": "folder"
|
|
|
|
}
|
|
|
|
},{
|
|
|
|
"url" : "/barcode",
|
2018-02-14 13:24:14 +00:00
|
|
|
"state": "item.card.itemBarcode",
|
2018-01-17 13:28:06 +00:00
|
|
|
"component": "vn-item-barcode",
|
2017-12-21 13:09:55 +00:00
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"menu": {
|
2018-01-17 13:28:06 +00:00
|
|
|
"description": "Barcode",
|
|
|
|
"icon": "folder"
|
2017-12-21 13:09:55 +00:00
|
|
|
}
|
2017-12-19 10:24:24 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|