one-api/web/berry/src/menu-items/index.js
Buer 48989d4a0b
feat: add new theme berry (#860)
* feat: add theme berry

* docs: add development notes

* fix: fix blank page

* chore: update implementation

* fix: fix package.json

* chore: update ui copy

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-01-07 14:20:07 +08:00

19 lines
369 B
JavaScript

import panel from './panel';
// ==============================|| MENU ITEMS ||============================== //
const menuItems = {
items: [panel],
urlMap: {}
};
// Initialize urlMap
menuItems.urlMap = menuItems.items.reduce((map, item) => {
item.children.forEach((child) => {
map[child.url] = child;
});
return map;
}, {});
export default menuItems;