navModel.ts 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423
  1. import { NavIndex, NavSection } from '@grafana/data';
  2. export const mockNavModel: NavIndex = {
  3. home: {
  4. id: 'home',
  5. text: 'Home',
  6. section: NavSection.Core,
  7. icon: 'home-alt',
  8. url: '/',
  9. },
  10. dashboards: {
  11. id: 'dashboards',
  12. text: 'Dashboards',
  13. section: NavSection.Core,
  14. subTitle: 'Manage dashboards and folders',
  15. icon: 'apps',
  16. url: '/dashboards',
  17. children: [
  18. {
  19. id: 'manage-dashboards',
  20. text: 'Browse',
  21. icon: 'sitemap',
  22. url: '/dashboards',
  23. },
  24. {
  25. id: 'playlists',
  26. text: 'Playlists',
  27. icon: 'presentation-play',
  28. url: '/playlists',
  29. },
  30. {
  31. id: 'snapshots',
  32. text: 'Snapshots',
  33. icon: 'camera',
  34. url: '/dashboard/snapshots',
  35. },
  36. {
  37. id: 'library-panels',
  38. text: 'Library panels',
  39. icon: 'library-panel',
  40. url: '/library-panels',
  41. },
  42. {
  43. id: 'divider',
  44. text: 'Divider',
  45. divider: true,
  46. hideFromTabs: true,
  47. },
  48. {
  49. id: 'new-dashboard',
  50. text: 'New dashboard',
  51. icon: 'plus',
  52. url: '/dashboard/new',
  53. hideFromTabs: true,
  54. },
  55. {
  56. id: 'new-folder',
  57. text: 'New folder',
  58. subTitle: 'Create a new folder to organize your dashboards',
  59. icon: 'plus',
  60. url: '/dashboards/folder/new',
  61. hideFromTabs: true,
  62. },
  63. {
  64. id: 'import',
  65. text: 'Import',
  66. subTitle: 'Import dashboard from file or Grafana.com',
  67. icon: 'plus',
  68. url: '/dashboard/import',
  69. hideFromTabs: true,
  70. },
  71. ],
  72. },
  73. 'manage-dashboards': {
  74. id: 'manage-dashboards',
  75. text: 'Browse',
  76. icon: 'sitemap',
  77. url: '/dashboards',
  78. parentItem: {
  79. id: 'dashboards',
  80. text: 'Dashboards',
  81. section: NavSection.Core,
  82. subTitle: 'Manage dashboards and folders',
  83. icon: 'apps',
  84. url: '/dashboards',
  85. children: [
  86. {
  87. id: 'manage-dashboards',
  88. text: 'Browse',
  89. icon: 'sitemap',
  90. url: '/dashboards',
  91. },
  92. {
  93. id: 'playlists',
  94. text: 'Playlists',
  95. icon: 'presentation-play',
  96. url: '/playlists',
  97. },
  98. {
  99. id: 'snapshots',
  100. text: 'Snapshots',
  101. icon: 'camera',
  102. url: '/dashboard/snapshots',
  103. },
  104. {
  105. id: 'library-panels',
  106. text: 'Library panels',
  107. icon: 'library-panel',
  108. url: '/library-panels',
  109. },
  110. {
  111. id: 'divider',
  112. text: 'Divider',
  113. divider: true,
  114. hideFromTabs: true,
  115. },
  116. {
  117. id: 'new-dashboard',
  118. text: 'New dashboard',
  119. icon: 'plus',
  120. url: '/dashboard/new',
  121. hideFromTabs: true,
  122. },
  123. {
  124. id: 'new-folder',
  125. text: 'New folder',
  126. subTitle: 'Create a new folder to organize your dashboards',
  127. icon: 'plus',
  128. url: '/dashboards/folder/new',
  129. hideFromTabs: true,
  130. },
  131. {
  132. id: 'import',
  133. text: 'Import',
  134. subTitle: 'Import dashboard from file or Grafana.com',
  135. icon: 'plus',
  136. url: '/dashboard/import',
  137. hideFromTabs: true,
  138. },
  139. ],
  140. },
  141. },
  142. playlists: {
  143. id: 'playlists',
  144. text: 'Playlists',
  145. icon: 'presentation-play',
  146. url: '/playlists',
  147. parentItem: {
  148. id: 'dashboards',
  149. text: 'Dashboards',
  150. section: NavSection.Core,
  151. subTitle: 'Manage dashboards and folders',
  152. icon: 'apps',
  153. url: '/dashboards',
  154. children: [
  155. {
  156. id: 'manage-dashboards',
  157. text: 'Browse',
  158. icon: 'sitemap',
  159. url: '/dashboards',
  160. },
  161. {
  162. id: 'playlists',
  163. text: 'Playlists',
  164. icon: 'presentation-play',
  165. url: '/playlists',
  166. },
  167. {
  168. id: 'snapshots',
  169. text: 'Snapshots',
  170. icon: 'camera',
  171. url: '/dashboard/snapshots',
  172. },
  173. {
  174. id: 'library-panels',
  175. text: 'Library panels',
  176. icon: 'library-panel',
  177. url: '/library-panels',
  178. },
  179. {
  180. id: 'divider',
  181. text: 'Divider',
  182. divider: true,
  183. hideFromTabs: true,
  184. },
  185. {
  186. id: 'new-dashboard',
  187. text: 'New dashboard',
  188. icon: 'plus',
  189. url: '/dashboard/new',
  190. hideFromTabs: true,
  191. },
  192. {
  193. id: 'new-folder',
  194. text: 'New folder',
  195. subTitle: 'Create a new folder to organize your dashboards',
  196. icon: 'plus',
  197. url: '/dashboards/folder/new',
  198. hideFromTabs: true,
  199. },
  200. {
  201. id: 'import',
  202. text: 'Import',
  203. subTitle: 'Import dashboard from file or Grafana.com',
  204. icon: 'plus',
  205. url: '/dashboard/import',
  206. hideFromTabs: true,
  207. },
  208. ],
  209. },
  210. },
  211. snapshots: {
  212. id: 'snapshots',
  213. text: 'Snapshots',
  214. icon: 'camera',
  215. url: '/dashboard/snapshots',
  216. parentItem: {
  217. id: 'dashboards',
  218. text: 'Dashboards',
  219. section: NavSection.Core,
  220. subTitle: 'Manage dashboards and folders',
  221. icon: 'apps',
  222. url: '/dashboards',
  223. children: [
  224. {
  225. id: 'manage-dashboards',
  226. text: 'Browse',
  227. icon: 'sitemap',
  228. url: '/dashboards',
  229. },
  230. {
  231. id: 'playlists',
  232. text: 'Playlists',
  233. icon: 'presentation-play',
  234. url: '/playlists',
  235. },
  236. {
  237. id: 'snapshots',
  238. text: 'Snapshots',
  239. icon: 'camera',
  240. url: '/dashboard/snapshots',
  241. },
  242. {
  243. id: 'library-panels',
  244. text: 'Library panels',
  245. icon: 'library-panel',
  246. url: '/library-panels',
  247. },
  248. {
  249. id: 'divider',
  250. text: 'Divider',
  251. divider: true,
  252. hideFromTabs: true,
  253. },
  254. {
  255. id: 'new-dashboard',
  256. text: 'New dashboard',
  257. icon: 'plus',
  258. url: '/dashboard/new',
  259. hideFromTabs: true,
  260. },
  261. {
  262. id: 'new-folder',
  263. text: 'New folder',
  264. subTitle: 'Create a new folder to organize your dashboards',
  265. icon: 'plus',
  266. url: '/dashboards/folder/new',
  267. hideFromTabs: true,
  268. },
  269. {
  270. id: 'import',
  271. text: 'Import',
  272. subTitle: 'Import dashboard from file or Grafana.com',
  273. icon: 'plus',
  274. url: '/dashboard/import',
  275. hideFromTabs: true,
  276. },
  277. ],
  278. },
  279. },
  280. 'library-panels': {
  281. id: 'library-panels',
  282. text: 'Library panels',
  283. icon: 'library-panel',
  284. url: '/library-panels',
  285. parentItem: {
  286. id: 'dashboards',
  287. text: 'Dashboards',
  288. section: NavSection.Core,
  289. subTitle: 'Manage dashboards and folders',
  290. icon: 'apps',
  291. url: '/dashboards',
  292. children: [
  293. {
  294. id: 'manage-dashboards',
  295. text: 'Browse',
  296. icon: 'sitemap',
  297. url: '/dashboards',
  298. },
  299. {
  300. id: 'playlists',
  301. text: 'Playlists',
  302. icon: 'presentation-play',
  303. url: '/playlists',
  304. },
  305. {
  306. id: 'snapshots',
  307. text: 'Snapshots',
  308. icon: 'camera',
  309. url: '/dashboard/snapshots',
  310. },
  311. {
  312. id: 'library-panels',
  313. text: 'Library panels',
  314. icon: 'library-panel',
  315. url: '/library-panels',
  316. },
  317. {
  318. id: 'divider',
  319. text: 'Divider',
  320. divider: true,
  321. hideFromTabs: true,
  322. },
  323. {
  324. id: 'new-dashboard',
  325. text: 'New dashboard',
  326. icon: 'plus',
  327. url: '/dashboard/new',
  328. hideFromTabs: true,
  329. },
  330. {
  331. id: 'new-folder',
  332. text: 'New folder',
  333. subTitle: 'Create a new folder to organize your dashboards',
  334. icon: 'plus',
  335. url: '/dashboards/folder/new',
  336. hideFromTabs: true,
  337. },
  338. {
  339. id: 'import',
  340. text: 'Import',
  341. subTitle: 'Import dashboard from file or Grafana.com',
  342. icon: 'plus',
  343. url: '/dashboard/import',
  344. hideFromTabs: true,
  345. },
  346. ],
  347. },
  348. },
  349. divider: {
  350. id: 'divider',
  351. text: 'Divider',
  352. divider: true,
  353. hideFromTabs: true,
  354. parentItem: {
  355. id: 'dashboards',
  356. text: 'Dashboards',
  357. section: NavSection.Core,
  358. subTitle: 'Manage dashboards and folders',
  359. icon: 'apps',
  360. url: '/dashboards',
  361. children: [
  362. {
  363. id: 'manage-dashboards',
  364. text: 'Browse',
  365. icon: 'sitemap',
  366. url: '/dashboards',
  367. },
  368. {
  369. id: 'playlists',
  370. text: 'Playlists',
  371. icon: 'presentation-play',
  372. url: '/playlists',
  373. },
  374. {
  375. id: 'snapshots',
  376. text: 'Snapshots',
  377. icon: 'camera',
  378. url: '/dashboard/snapshots',
  379. },
  380. {
  381. id: 'library-panels',
  382. text: 'Library panels',
  383. icon: 'library-panel',
  384. url: '/library-panels',
  385. },
  386. {
  387. id: 'divider',
  388. text: 'Divider',
  389. divider: true,
  390. hideFromTabs: true,
  391. },
  392. {
  393. id: 'new-dashboard',
  394. text: 'New dashboard',
  395. icon: 'plus',
  396. url: '/dashboard/new',
  397. hideFromTabs: true,
  398. },
  399. {
  400. id: 'new-folder',
  401. text: 'New folder',
  402. subTitle: 'Create a new folder to organize your dashboards',
  403. icon: 'plus',
  404. url: '/dashboards/folder/new',
  405. hideFromTabs: true,
  406. },
  407. {
  408. id: 'import',
  409. text: 'Import',
  410. subTitle: 'Import dashboard from file or Grafana.com',
  411. icon: 'plus',
  412. url: '/dashboard/import',
  413. hideFromTabs: true,
  414. },
  415. ],
  416. },
  417. },
  418. 'new-dashboard': {
  419. id: 'new-dashboard',
  420. text: 'New dashboard',
  421. icon: 'plus',
  422. url: '/dashboard/new',
  423. hideFromTabs: true,
  424. parentItem: {
  425. id: 'dashboards',
  426. text: 'Dashboards',
  427. section: NavSection.Core,
  428. subTitle: 'Manage dashboards and folders',
  429. icon: 'apps',
  430. url: '/dashboards',
  431. children: [
  432. {
  433. id: 'manage-dashboards',
  434. text: 'Browse',
  435. icon: 'sitemap',
  436. url: '/dashboards',
  437. },
  438. {
  439. id: 'playlists',
  440. text: 'Playlists',
  441. icon: 'presentation-play',
  442. url: '/playlists',
  443. },
  444. {
  445. id: 'snapshots',
  446. text: 'Snapshots',
  447. icon: 'camera',
  448. url: '/dashboard/snapshots',
  449. },
  450. {
  451. id: 'library-panels',
  452. text: 'Library panels',
  453. icon: 'library-panel',
  454. url: '/library-panels',
  455. },
  456. {
  457. id: 'divider',
  458. text: 'Divider',
  459. divider: true,
  460. hideFromTabs: true,
  461. },
  462. {
  463. id: 'new-dashboard',
  464. text: 'New dashboard',
  465. icon: 'plus',
  466. url: '/dashboard/new',
  467. hideFromTabs: true,
  468. },
  469. {
  470. id: 'new-folder',
  471. text: 'New folder',
  472. subTitle: 'Create a new folder to organize your dashboards',
  473. icon: 'plus',
  474. url: '/dashboards/folder/new',
  475. hideFromTabs: true,
  476. },
  477. {
  478. id: 'import',
  479. text: 'Import',
  480. subTitle: 'Import dashboard from file or Grafana.com',
  481. icon: 'plus',
  482. url: '/dashboard/import',
  483. hideFromTabs: true,
  484. },
  485. ],
  486. },
  487. },
  488. 'new-folder': {
  489. id: 'new-folder',
  490. text: 'New folder',
  491. subTitle: 'Create a new folder to organize your dashboards',
  492. icon: 'plus',
  493. url: '/dashboards/folder/new',
  494. hideFromTabs: true,
  495. parentItem: {
  496. id: 'dashboards',
  497. text: 'Dashboards',
  498. section: NavSection.Core,
  499. subTitle: 'Manage dashboards and folders',
  500. icon: 'apps',
  501. url: '/dashboards',
  502. children: [
  503. {
  504. id: 'manage-dashboards',
  505. text: 'Browse',
  506. icon: 'sitemap',
  507. url: '/dashboards',
  508. },
  509. {
  510. id: 'playlists',
  511. text: 'Playlists',
  512. icon: 'presentation-play',
  513. url: '/playlists',
  514. },
  515. {
  516. id: 'snapshots',
  517. text: 'Snapshots',
  518. icon: 'camera',
  519. url: '/dashboard/snapshots',
  520. },
  521. {
  522. id: 'library-panels',
  523. text: 'Library panels',
  524. icon: 'library-panel',
  525. url: '/library-panels',
  526. },
  527. {
  528. id: 'divider',
  529. text: 'Divider',
  530. divider: true,
  531. hideFromTabs: true,
  532. },
  533. {
  534. id: 'new-dashboard',
  535. text: 'New dashboard',
  536. icon: 'plus',
  537. url: '/dashboard/new',
  538. hideFromTabs: true,
  539. },
  540. {
  541. id: 'new-folder',
  542. text: 'New folder',
  543. subTitle: 'Create a new folder to organize your dashboards',
  544. icon: 'plus',
  545. url: '/dashboards/folder/new',
  546. hideFromTabs: true,
  547. },
  548. {
  549. id: 'import',
  550. text: 'Import',
  551. subTitle: 'Import dashboard from file or Grafana.com',
  552. icon: 'plus',
  553. url: '/dashboard/import',
  554. hideFromTabs: true,
  555. },
  556. ],
  557. },
  558. },
  559. import: {
  560. id: 'import',
  561. text: 'Import',
  562. subTitle: 'Import dashboard from file or Grafana.com',
  563. icon: 'plus',
  564. url: '/dashboard/import',
  565. hideFromTabs: true,
  566. parentItem: {
  567. id: 'dashboards',
  568. text: 'Dashboards',
  569. section: NavSection.Core,
  570. subTitle: 'Manage dashboards and folders',
  571. icon: 'apps',
  572. url: '/dashboards',
  573. children: [
  574. {
  575. id: 'manage-dashboards',
  576. text: 'Browse',
  577. icon: 'sitemap',
  578. url: '/dashboards',
  579. },
  580. {
  581. id: 'playlists',
  582. text: 'Playlists',
  583. icon: 'presentation-play',
  584. url: '/playlists',
  585. },
  586. {
  587. id: 'snapshots',
  588. text: 'Snapshots',
  589. icon: 'camera',
  590. url: '/dashboard/snapshots',
  591. },
  592. {
  593. id: 'library-panels',
  594. text: 'Library panels',
  595. icon: 'library-panel',
  596. url: '/library-panels',
  597. },
  598. {
  599. id: 'divider',
  600. text: 'Divider',
  601. divider: true,
  602. hideFromTabs: true,
  603. },
  604. {
  605. id: 'new-dashboard',
  606. text: 'New dashboard',
  607. icon: 'plus',
  608. url: '/dashboard/new',
  609. hideFromTabs: true,
  610. },
  611. {
  612. id: 'new-folder',
  613. text: 'New folder',
  614. subTitle: 'Create a new folder to organize your dashboards',
  615. icon: 'plus',
  616. url: '/dashboards/folder/new',
  617. hideFromTabs: true,
  618. },
  619. {
  620. id: 'import',
  621. text: 'Import',
  622. subTitle: 'Import dashboard from file or Grafana.com',
  623. icon: 'plus',
  624. url: '/dashboard/import',
  625. hideFromTabs: true,
  626. },
  627. ],
  628. },
  629. },
  630. 'not-found': {
  631. text: 'Page not found',
  632. subTitle: '404 Error',
  633. icon: 'exclamation-triangle',
  634. },
  635. explore: {
  636. id: 'explore',
  637. text: 'Explore',
  638. section: NavSection.Core,
  639. subTitle: 'Explore your data',
  640. icon: 'compass',
  641. url: '/explore',
  642. },
  643. alerting: {
  644. id: 'alerting',
  645. text: 'Alerting',
  646. section: NavSection.Core,
  647. subTitle: 'Alert rules and notifications',
  648. icon: 'bell',
  649. url: '/alerting/list',
  650. children: [
  651. {
  652. id: 'alert-list',
  653. text: 'Alert rules',
  654. icon: 'list-ul',
  655. url: '/alerting/list',
  656. },
  657. {
  658. id: 'channels',
  659. text: 'Notification channels',
  660. icon: 'comment-alt-share',
  661. url: '/alerting/notifications',
  662. },
  663. ],
  664. },
  665. 'alert-list': {
  666. id: 'alert-list',
  667. text: 'Alert rules',
  668. icon: 'list-ul',
  669. url: '/alerting/list',
  670. parentItem: {
  671. id: 'alerting',
  672. text: 'Alerting',
  673. section: NavSection.Core,
  674. subTitle: 'Alert rules and notifications',
  675. icon: 'bell',
  676. url: '/alerting/list',
  677. children: [
  678. {
  679. id: 'alert-list',
  680. text: 'Alert rules',
  681. icon: 'list-ul',
  682. url: '/alerting/list',
  683. },
  684. {
  685. id: 'channels',
  686. text: 'Notification channels',
  687. icon: 'comment-alt-share',
  688. url: '/alerting/notifications',
  689. },
  690. ],
  691. },
  692. },
  693. channels: {
  694. id: 'channels',
  695. text: 'Notification channels',
  696. icon: 'comment-alt-share',
  697. url: '/alerting/notifications',
  698. parentItem: {
  699. id: 'alerting',
  700. text: 'Alerting',
  701. section: NavSection.Core,
  702. subTitle: 'Alert rules and notifications',
  703. icon: 'bell',
  704. url: '/alerting/list',
  705. children: [
  706. {
  707. id: 'alert-list',
  708. text: 'Alert rules',
  709. icon: 'list-ul',
  710. url: '/alerting/list',
  711. },
  712. {
  713. id: 'channels',
  714. text: 'Notification channels',
  715. icon: 'comment-alt-share',
  716. url: '/alerting/notifications',
  717. },
  718. ],
  719. },
  720. },
  721. cfg: {
  722. id: 'cfg',
  723. text: 'Configuration',
  724. section: NavSection.Config,
  725. subTitle: 'Organization: Main Org',
  726. icon: 'cog',
  727. url: '/datasources',
  728. children: [
  729. {
  730. id: 'datasources',
  731. text: 'Data sources',
  732. icon: 'database',
  733. url: '/datasources',
  734. },
  735. {
  736. id: 'users',
  737. text: 'Users',
  738. icon: 'user',
  739. url: '/org/users',
  740. },
  741. {
  742. id: 'teams',
  743. text: 'Teams',
  744. icon: 'users-alt',
  745. url: '/org/teams',
  746. },
  747. {
  748. id: 'plugins',
  749. text: 'Plugins',
  750. icon: 'plug',
  751. url: '/plugins',
  752. },
  753. {
  754. id: 'org-settings',
  755. text: 'Preferences',
  756. icon: 'sliders-v-alt',
  757. url: '/org',
  758. },
  759. {
  760. id: 'apikeys',
  761. text: 'API keys',
  762. icon: 'key-skeleton-alt',
  763. url: '/org/apikeys',
  764. },
  765. ],
  766. },
  767. datasources: {
  768. id: 'datasources',
  769. text: 'Data sources',
  770. icon: 'database',
  771. url: '/datasources',
  772. parentItem: {
  773. id: 'cfg',
  774. text: 'Configuration',
  775. section: NavSection.Config,
  776. subTitle: 'Organization: Main Org',
  777. icon: 'cog',
  778. url: '/datasources',
  779. children: [
  780. {
  781. id: 'datasources',
  782. text: 'Data sources',
  783. icon: 'database',
  784. url: '/datasources',
  785. },
  786. {
  787. id: 'users',
  788. text: 'Users',
  789. icon: 'user',
  790. url: '/org/users',
  791. },
  792. {
  793. id: 'teams',
  794. text: 'Teams',
  795. icon: 'users-alt',
  796. url: '/org/teams',
  797. },
  798. {
  799. id: 'plugins',
  800. text: 'Plugins',
  801. icon: 'plug',
  802. url: '/plugins',
  803. },
  804. {
  805. id: 'org-settings',
  806. text: 'Preferences',
  807. icon: 'sliders-v-alt',
  808. url: '/org',
  809. },
  810. {
  811. id: 'apikeys',
  812. text: 'API keys',
  813. icon: 'key-skeleton-alt',
  814. url: '/org/apikeys',
  815. },
  816. ],
  817. },
  818. },
  819. users: {
  820. id: 'users',
  821. text: 'Users',
  822. icon: 'user',
  823. url: '/org/users',
  824. parentItem: {
  825. id: 'cfg',
  826. text: 'Configuration',
  827. section: NavSection.Config,
  828. subTitle: 'Organization: Main Org',
  829. icon: 'cog',
  830. url: '/datasources',
  831. children: [
  832. {
  833. id: 'datasources',
  834. text: 'Data sources',
  835. icon: 'database',
  836. url: '/datasources',
  837. },
  838. {
  839. id: 'users',
  840. text: 'Users',
  841. icon: 'user',
  842. url: '/org/users',
  843. },
  844. {
  845. id: 'teams',
  846. text: 'Teams',
  847. icon: 'users-alt',
  848. url: '/org/teams',
  849. },
  850. {
  851. id: 'plugins',
  852. text: 'Plugins',
  853. icon: 'plug',
  854. url: '/plugins',
  855. },
  856. {
  857. id: 'org-settings',
  858. text: 'Preferences',
  859. icon: 'sliders-v-alt',
  860. url: '/org',
  861. },
  862. {
  863. id: 'apikeys',
  864. text: 'API keys',
  865. icon: 'key-skeleton-alt',
  866. url: '/org/apikeys',
  867. },
  868. ],
  869. },
  870. },
  871. teams: {
  872. id: 'teams',
  873. text: 'Teams',
  874. icon: 'users-alt',
  875. url: '/org/teams',
  876. parentItem: {
  877. id: 'cfg',
  878. text: 'Configuration',
  879. section: NavSection.Config,
  880. subTitle: 'Organization: Main Org',
  881. icon: 'cog',
  882. url: '/datasources',
  883. children: [
  884. {
  885. id: 'datasources',
  886. text: 'Data sources',
  887. icon: 'database',
  888. url: '/datasources',
  889. },
  890. {
  891. id: 'users',
  892. text: 'Users',
  893. icon: 'user',
  894. url: '/org/users',
  895. },
  896. {
  897. id: 'teams',
  898. text: 'Teams',
  899. icon: 'users-alt',
  900. url: '/org/teams',
  901. },
  902. {
  903. id: 'plugins',
  904. text: 'Plugins',
  905. icon: 'plug',
  906. url: '/plugins',
  907. },
  908. {
  909. id: 'org-settings',
  910. text: 'Preferences',
  911. icon: 'sliders-v-alt',
  912. url: '/org',
  913. },
  914. {
  915. id: 'apikeys',
  916. text: 'API keys',
  917. icon: 'key-skeleton-alt',
  918. url: '/org/apikeys',
  919. },
  920. ],
  921. },
  922. },
  923. plugins: {
  924. id: 'plugins',
  925. text: 'Plugins',
  926. icon: 'plug',
  927. url: '/plugins',
  928. parentItem: {
  929. id: 'cfg',
  930. text: 'Configuration',
  931. section: NavSection.Config,
  932. subTitle: 'Organization: Main Org',
  933. icon: 'cog',
  934. url: '/datasources',
  935. children: [
  936. {
  937. id: 'datasources',
  938. text: 'Data sources',
  939. icon: 'database',
  940. url: '/datasources',
  941. },
  942. {
  943. id: 'users',
  944. text: 'Users',
  945. icon: 'user',
  946. url: '/org/users',
  947. },
  948. {
  949. id: 'teams',
  950. text: 'Teams',
  951. icon: 'users-alt',
  952. url: '/org/teams',
  953. },
  954. {
  955. id: 'plugins',
  956. text: 'Plugins',
  957. icon: 'plug',
  958. url: '/plugins',
  959. },
  960. {
  961. id: 'org-settings',
  962. text: 'Preferences',
  963. icon: 'sliders-v-alt',
  964. url: '/org',
  965. },
  966. {
  967. id: 'apikeys',
  968. text: 'API keys',
  969. icon: 'key-skeleton-alt',
  970. url: '/org/apikeys',
  971. },
  972. ],
  973. },
  974. },
  975. 'org-settings': {
  976. id: 'org-settings',
  977. text: 'Preferences',
  978. icon: 'sliders-v-alt',
  979. url: '/org',
  980. parentItem: {
  981. id: 'cfg',
  982. text: 'Configuration',
  983. section: NavSection.Config,
  984. subTitle: 'Organization: Main Org',
  985. icon: 'cog',
  986. url: '/datasources',
  987. children: [
  988. {
  989. id: 'datasources',
  990. text: 'Data sources',
  991. icon: 'database',
  992. url: '/datasources',
  993. },
  994. {
  995. id: 'users',
  996. text: 'Users',
  997. icon: 'user',
  998. url: '/org/users',
  999. },
  1000. {
  1001. id: 'teams',
  1002. text: 'Teams',
  1003. icon: 'users-alt',
  1004. url: '/org/teams',
  1005. },
  1006. {
  1007. id: 'plugins',
  1008. text: 'Plugins',
  1009. icon: 'plug',
  1010. url: '/plugins',
  1011. },
  1012. {
  1013. id: 'org-settings',
  1014. text: 'Preferences',
  1015. icon: 'sliders-v-alt',
  1016. url: '/org',
  1017. },
  1018. {
  1019. id: 'apikeys',
  1020. text: 'API keys',
  1021. icon: 'key-skeleton-alt',
  1022. url: '/org/apikeys',
  1023. },
  1024. ],
  1025. },
  1026. },
  1027. apikeys: {
  1028. id: 'apikeys',
  1029. text: 'API keys',
  1030. icon: 'key-skeleton-alt',
  1031. url: '/org/apikeys',
  1032. parentItem: {
  1033. id: 'cfg',
  1034. text: 'Configuration',
  1035. section: NavSection.Config,
  1036. subTitle: 'Organization: Main Org',
  1037. icon: 'cog',
  1038. url: '/datasources',
  1039. children: [
  1040. {
  1041. id: 'datasources',
  1042. text: 'Data sources',
  1043. icon: 'database',
  1044. url: '/datasources',
  1045. },
  1046. {
  1047. id: 'users',
  1048. text: 'Users',
  1049. icon: 'user',
  1050. url: '/org/users',
  1051. },
  1052. {
  1053. id: 'teams',
  1054. text: 'Teams',
  1055. icon: 'users-alt',
  1056. url: '/org/teams',
  1057. },
  1058. {
  1059. id: 'plugins',
  1060. text: 'Plugins',
  1061. icon: 'plug',
  1062. url: '/plugins',
  1063. },
  1064. {
  1065. id: 'org-settings',
  1066. text: 'Preferences',
  1067. icon: 'sliders-v-alt',
  1068. url: '/org',
  1069. },
  1070. {
  1071. id: 'apikeys',
  1072. text: 'API keys',
  1073. icon: 'key-skeleton-alt',
  1074. url: '/org/apikeys',
  1075. },
  1076. ],
  1077. },
  1078. },
  1079. admin: {
  1080. id: 'admin',
  1081. text: 'Server Admin',
  1082. section: NavSection.Config,
  1083. subTitle: 'Manage all users and orgs',
  1084. icon: 'shield',
  1085. url: '/admin/users',
  1086. hideFromTabs: true,
  1087. children: [
  1088. {
  1089. id: 'global-users',
  1090. text: 'Users',
  1091. icon: 'user',
  1092. url: '/admin/users',
  1093. },
  1094. {
  1095. id: 'global-orgs',
  1096. text: 'Orgs',
  1097. icon: 'building',
  1098. url: '/admin/orgs',
  1099. },
  1100. {
  1101. id: 'server-settings',
  1102. text: 'Settings',
  1103. icon: 'sliders-v-alt',
  1104. url: '/admin/settings',
  1105. },
  1106. {
  1107. id: 'upgrading',
  1108. text: 'Stats and license',
  1109. icon: 'unlock',
  1110. url: '/admin/upgrading',
  1111. },
  1112. ],
  1113. },
  1114. 'global-users': {
  1115. id: 'global-users',
  1116. text: 'Users',
  1117. icon: 'user',
  1118. url: '/admin/users',
  1119. parentItem: {
  1120. id: 'admin',
  1121. text: 'Server Admin',
  1122. section: NavSection.Config,
  1123. subTitle: 'Manage all users and orgs',
  1124. icon: 'shield',
  1125. url: '/admin/users',
  1126. hideFromTabs: true,
  1127. children: [
  1128. {
  1129. id: 'global-users',
  1130. text: 'Users',
  1131. icon: 'user',
  1132. url: '/admin/users',
  1133. },
  1134. {
  1135. id: 'global-orgs',
  1136. text: 'Orgs',
  1137. icon: 'building',
  1138. url: '/admin/orgs',
  1139. },
  1140. {
  1141. id: 'server-settings',
  1142. text: 'Settings',
  1143. icon: 'sliders-v-alt',
  1144. url: '/admin/settings',
  1145. },
  1146. {
  1147. id: 'upgrading',
  1148. text: 'Stats and license',
  1149. icon: 'unlock',
  1150. url: '/admin/upgrading',
  1151. },
  1152. ],
  1153. },
  1154. },
  1155. 'global-orgs': {
  1156. id: 'global-orgs',
  1157. text: 'Orgs',
  1158. icon: 'building',
  1159. url: '/admin/orgs',
  1160. parentItem: {
  1161. id: 'admin',
  1162. text: 'Server Admin',
  1163. section: NavSection.Config,
  1164. subTitle: 'Manage all users and orgs',
  1165. icon: 'shield',
  1166. url: '/admin/users',
  1167. hideFromTabs: true,
  1168. children: [
  1169. {
  1170. id: 'global-users',
  1171. text: 'Users',
  1172. icon: 'user',
  1173. url: '/admin/users',
  1174. },
  1175. {
  1176. id: 'global-orgs',
  1177. text: 'Orgs',
  1178. icon: 'building',
  1179. url: '/admin/orgs',
  1180. },
  1181. {
  1182. id: 'server-settings',
  1183. text: 'Settings',
  1184. icon: 'sliders-v-alt',
  1185. url: '/admin/settings',
  1186. },
  1187. {
  1188. id: 'upgrading',
  1189. text: 'Stats and license',
  1190. icon: 'unlock',
  1191. url: '/admin/upgrading',
  1192. },
  1193. ],
  1194. },
  1195. },
  1196. 'server-settings': {
  1197. id: 'server-settings',
  1198. text: 'Settings',
  1199. icon: 'sliders-v-alt',
  1200. url: '/admin/settings',
  1201. parentItem: {
  1202. id: 'admin',
  1203. text: 'Server Admin',
  1204. section: NavSection.Config,
  1205. subTitle: 'Manage all users and orgs',
  1206. icon: 'shield',
  1207. url: '/admin/users',
  1208. hideFromTabs: true,
  1209. children: [
  1210. {
  1211. id: 'global-users',
  1212. text: 'Users',
  1213. icon: 'user',
  1214. url: '/admin/users',
  1215. },
  1216. {
  1217. id: 'global-orgs',
  1218. text: 'Orgs',
  1219. icon: 'building',
  1220. url: '/admin/orgs',
  1221. },
  1222. {
  1223. id: 'server-settings',
  1224. text: 'Settings',
  1225. icon: 'sliders-v-alt',
  1226. url: '/admin/settings',
  1227. },
  1228. {
  1229. id: 'upgrading',
  1230. text: 'Stats and license',
  1231. icon: 'unlock',
  1232. url: '/admin/upgrading',
  1233. },
  1234. ],
  1235. },
  1236. },
  1237. upgrading: {
  1238. id: 'upgrading',
  1239. text: 'Stats and license',
  1240. icon: 'unlock',
  1241. url: '/admin/upgrading',
  1242. parentItem: {
  1243. id: 'admin',
  1244. text: 'Server Admin',
  1245. section: NavSection.Config,
  1246. subTitle: 'Manage all users and orgs',
  1247. icon: 'shield',
  1248. url: '/admin/users',
  1249. hideFromTabs: true,
  1250. children: [
  1251. {
  1252. id: 'global-users',
  1253. text: 'Users',
  1254. icon: 'user',
  1255. url: '/admin/users',
  1256. },
  1257. {
  1258. id: 'global-orgs',
  1259. text: 'Orgs',
  1260. icon: 'building',
  1261. url: '/admin/orgs',
  1262. },
  1263. {
  1264. id: 'server-settings',
  1265. text: 'Settings',
  1266. icon: 'sliders-v-alt',
  1267. url: '/admin/settings',
  1268. },
  1269. {
  1270. id: 'upgrading',
  1271. text: 'Stats and license',
  1272. icon: 'unlock',
  1273. url: '/admin/upgrading',
  1274. },
  1275. ],
  1276. },
  1277. },
  1278. profile: {
  1279. id: 'profile',
  1280. text: 'admin',
  1281. section: NavSection.Config,
  1282. img: '/avatar/46d229b033af06a191ff2267bca9ae56',
  1283. url: '/profile',
  1284. children: [
  1285. {
  1286. id: 'profile-settings',
  1287. text: 'Preferences',
  1288. icon: 'sliders-v-alt',
  1289. url: '/profile',
  1290. },
  1291. {
  1292. id: 'change-password',
  1293. text: 'Change password',
  1294. icon: 'lock',
  1295. url: '/profile/password',
  1296. },
  1297. {
  1298. id: 'sign-out',
  1299. text: 'Sign out',
  1300. icon: 'arrow-from-right',
  1301. url: '/logout',
  1302. target: '_self',
  1303. hideFromTabs: true,
  1304. },
  1305. ],
  1306. },
  1307. 'profile-settings': {
  1308. id: 'profile-settings',
  1309. text: 'Preferences',
  1310. icon: 'sliders-v-alt',
  1311. url: '/profile',
  1312. parentItem: {
  1313. id: 'profile',
  1314. text: 'admin',
  1315. section: NavSection.Config,
  1316. img: '/avatar/46d229b033af06a191ff2267bca9ae56',
  1317. url: '/profile',
  1318. children: [
  1319. {
  1320. id: 'profile-settings',
  1321. text: 'Preferences',
  1322. icon: 'sliders-v-alt',
  1323. url: '/profile',
  1324. },
  1325. {
  1326. id: 'change-password',
  1327. text: 'Change password',
  1328. icon: 'lock',
  1329. url: '/profile/password',
  1330. },
  1331. {
  1332. id: 'sign-out',
  1333. text: 'Sign out',
  1334. icon: 'arrow-from-right',
  1335. url: '/logout',
  1336. target: '_self',
  1337. hideFromTabs: true,
  1338. },
  1339. ],
  1340. },
  1341. },
  1342. 'change-password': {
  1343. id: 'change-password',
  1344. text: 'Change password',
  1345. icon: 'lock',
  1346. url: '/profile/password',
  1347. parentItem: {
  1348. id: 'profile',
  1349. text: 'admin',
  1350. section: NavSection.Config,
  1351. img: '/avatar/46d229b033af06a191ff2267bca9ae56',
  1352. url: '/profile',
  1353. children: [
  1354. {
  1355. id: 'profile-settings',
  1356. text: 'Preferences',
  1357. icon: 'sliders-v-alt',
  1358. url: '/profile',
  1359. },
  1360. {
  1361. id: 'change-password',
  1362. text: 'Change password',
  1363. icon: 'lock',
  1364. url: '/profile/password',
  1365. },
  1366. {
  1367. id: 'sign-out',
  1368. text: 'Sign out',
  1369. icon: 'arrow-from-right',
  1370. url: '/logout',
  1371. target: '_self',
  1372. hideFromTabs: true,
  1373. },
  1374. ],
  1375. },
  1376. },
  1377. 'sign-out': {
  1378. id: 'sign-out',
  1379. text: 'Sign out',
  1380. icon: 'arrow-from-right',
  1381. url: '/logout',
  1382. target: '_self',
  1383. hideFromTabs: true,
  1384. parentItem: {
  1385. id: 'profile',
  1386. text: 'admin',
  1387. section: NavSection.Config,
  1388. img: '/avatar/46d229b033af06a191ff2267bca9ae56',
  1389. url: '/profile',
  1390. children: [
  1391. {
  1392. id: 'profile-settings',
  1393. text: 'Preferences',
  1394. icon: 'sliders-v-alt',
  1395. url: '/profile',
  1396. },
  1397. {
  1398. id: 'change-password',
  1399. text: 'Change password',
  1400. icon: 'lock',
  1401. url: '/profile/password',
  1402. },
  1403. {
  1404. id: 'sign-out',
  1405. text: 'Sign out',
  1406. icon: 'arrow-from-right',
  1407. url: '/logout',
  1408. target: '_self',
  1409. hideFromTabs: true,
  1410. },
  1411. ],
  1412. },
  1413. },
  1414. help: {
  1415. id: 'help',
  1416. text: 'Help',
  1417. section: NavSection.Config,
  1418. subTitle: 'Grafana v8.5.0-pre (f1c4da095b)',
  1419. icon: 'question-circle',
  1420. url: '#',
  1421. },
  1422. };