110 lines
4.5 KiB
JavaScript
110 lines
4.5 KiB
JavaScript
import * as uuid from 'uuid';
|
|
var MockTaxonomyNavigationService = (function () {
|
|
function MockTaxonomyNavigationService() {
|
|
}
|
|
MockTaxonomyNavigationService.prototype.getMenuItems = function () {
|
|
return new Promise(function (resolve) {
|
|
resolve([
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Menu Item 1',
|
|
url: 'https://www.bing.com',
|
|
hoverText: 'Hover me!',
|
|
pathDepth: 1,
|
|
hasChildren: function () { return true; },
|
|
items: [
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 1',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 2,
|
|
hasChildren: function () { return false; }
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 2',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 2,
|
|
hasChildren: function () { return false; }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Menu Item 2',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 1,
|
|
hasChildren: function () { return false; }
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Menu Item 3',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 1,
|
|
hasChildren: function () { return true; },
|
|
items: [
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 1',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 2,
|
|
hasChildren: function () { return false; }
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 2',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 2,
|
|
hasChildren: function () { return true; },
|
|
items: [
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 1',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 3,
|
|
hasChildren: function () { return false; }
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 2',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 3,
|
|
hasChildren: function () { return false; }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 3',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 2,
|
|
hasChildren: function () { return false; }
|
|
},
|
|
{
|
|
id: uuid.v4(),
|
|
label: 'Submenu Item 4',
|
|
hoverText: 'Huch!',
|
|
url: 'https://www.bing.com',
|
|
pathDepth: 2,
|
|
hasChildren: function () { return false; }
|
|
}
|
|
]
|
|
}
|
|
]);
|
|
});
|
|
};
|
|
return MockTaxonomyNavigationService;
|
|
}());
|
|
export default MockTaxonomyNavigationService;
|
|
|
|
//# sourceMappingURL=MockTaxonomyNavigationService.js.map
|