menus.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. export const settingsMenus = {
  2. menu_items: {
  3. transpile_urls: [
  4. // URLS for tabs in native app index = tab index
  5. // { index: 1, url: '/friend-suggestions' },
  6. { index: 1, url: '/friend-requests' },
  7. { index: 1, url: '/sent-friend-requests' },
  8. ],
  9. objects: {
  10. account: 'sys_account_notifications',
  11. add: 'sys_add_content',
  12. launcher: 'sys_homepage',
  13. footer: 'sys_footer',
  14. },
  15. iconset: {
  16. 'profile-check-in': 'Check',
  17. 'edit-event-questionnaire': 'List',
  18. 'edit-event-sessions': 'Calendar',
  19. 'item-comment': 'MessageCircleMore',
  20. 'item-share': 'Share2',
  21. edit: 'Pencil',
  22. delete: 'Trash',
  23. messenger: 'MessageCircleMore',
  24. 'profile-confirm': 'Check',
  25. 'profile-set-acl-level': 'Award',
  26. 'profile-set-badges': 'BadgeCheck',
  27. 'job-questionnaire': 'List',
  28. 'invite-to-job': 'UserPlus',
  29. users: 'UsersRound',
  30. 'camera-retro': 'Video',
  31. 'file-alt': 'File',
  32. 'info-circle': 'Info',
  33. user: 'UserRound',
  34. building: 'Building2',
  35. image: 'Image',
  36. farx: 'MessagesSquare',
  37. comments: 'MessagesSquare',
  38. calendar: 'Calendar',
  39. 'fa-book': 'LibraryBig',
  40. ad: 'File',
  41. 'object-group': 'SquareStack',
  42. film: 'Video',
  43. hashtag: 'Hash',
  44. 'shopping-cart': 'Store',
  45. 'book-reader': 'LibraryBig',
  46. briefcase: 'Calendar',
  47. tasks: 'ListChecks',
  48. 'tachometer-alt': 'LayoutDashboard',
  49. wrench: 'Wand',
  50. 'cart-plus': 'Wallet',
  51. cog: 'Cog',
  52. 'sign-out-alt': 'LogOut',
  53. clock: 'Clock',
  54. 'item-share': 'Share2',
  55. 'item-copy': 'Clipboard',
  56. 'item-repost': 'RotateCw',
  57. 'video-camera': 'Video',
  58. 'address-card': 'Contact',
  59. 'file-word': 'FileText',
  60. 'ellipsis-v': 'EllipsisVertical',
  61. 'ellipsis-h': 'Ellipsis',
  62. },
  63. menu_navbar: [
  64. {
  65. name: 'home',
  66. title: 'Home',
  67. link: '/',
  68. icon: 'House',
  69. animated: true,
  70. },
  71. {
  72. name: 'friends',
  73. title: 'Friends',
  74. link: '/friends',
  75. icon: 'UsersRound',
  76. animated: true,
  77. nonlogged: false,
  78. },
  79. {
  80. name: 'explore',
  81. title: 'Explore',
  82. link: '/explore',
  83. icon: 'Compass',
  84. logged: false,
  85. animated: true,
  86. },
  87. {
  88. name: 'videos-home',
  89. title: 'Video',
  90. link: '/videos-home',
  91. icon: 'TvMinimalPlay',
  92. animated: true,
  93. },
  94. {
  95. name: 'products-home',
  96. title: 'Market',
  97. link: '/products-home',
  98. icon: 'Store',
  99. animated: true,
  100. },
  101. {
  102. name: 'groups-home',
  103. title: 'Groups',
  104. link: '/groups-home',
  105. icon: 'Shapes',
  106. animated: true,
  107. },
  108. {
  109. name: 'events-home',
  110. title: 'Events',
  111. link: '/events-home',
  112. icon: 'Calendar',
  113. animated: true,
  114. },
  115. {
  116. name: 'more',
  117. title: 'More',
  118. link: '',
  119. icon: 'Menu',
  120. showTitle: false,
  121. chevron: '',
  122. animated: true,
  123. items: [
  124. {
  125. name: 'connect',
  126. title: 'Connect',
  127. items: [
  128. {
  129. name: 'persons-home',
  130. title: 'People',
  131. description: 'Find friends, connect and collaborate.',
  132. link: '/persons-home',
  133. icon: 'UserRound',
  134. animated: true,
  135. },
  136. {
  137. name: 'organizations-home',
  138. title: 'Orgs',
  139. description: 'Work together as an organization.',
  140. link: '/organizations-home',
  141. icon: 'Building2',
  142. animated: true,
  143. },
  144. {
  145. name: 'events-home',
  146. title: 'Events',
  147. description: 'Find what\'s happening.',
  148. link: '/events-home',
  149. icon: 'Calendar',
  150. animated: true,
  151. },
  152. {
  153. name: 'groups-home',
  154. title: 'Groups',
  155. description: 'Get together with others.',
  156. link: '/groups-home',
  157. icon: 'Shapes',
  158. animated: true,
  159. },
  160. ],
  161. },
  162. {
  163. name: 'browse',
  164. title: 'Browse',
  165. items: [
  166. {
  167. name: 'videos-home',
  168. title: 'Video',
  169. description: 'Watch and learn.',
  170. link: '/videos-home',
  171. icon: 'TvMinimalPlay',
  172. animated: true,
  173. },
  174. {
  175. name: 'photos-home',
  176. title: 'Photos',
  177. description: 'Share photos and albums.',
  178. link: '/photos-home',
  179. icon: 'Camera',
  180. animated: true,
  181. },
  182. {
  183. name: 'polls-home',
  184. title: 'Polls',
  185. description: 'Ask the community and vote.',
  186. link: '/polls-home',
  187. icon: 'SquareCheck',
  188. animated: true,
  189. },
  190. {
  191. name: 'spaces-home',
  192. title: 'Spaces',
  193. description: 'Join spaces around a topic.',
  194. link: '/spaces-home',
  195. icon: 'SquareStack',
  196. animated: true,
  197. },
  198. {
  199. name: 'ads-home',
  200. title: 'Ads',
  201. description: 'Browse classifieds and listings.',
  202. link: '/ads-home',
  203. icon: 'CircleStar',
  204. animated: true,
  205. },
  206. {
  207. name: 'jobs-home',
  208. title: 'Jobs',
  209. description: 'Find work or hire talent.',
  210. link: '/jobs-home',
  211. icon: 'BriefcaseBusiness',
  212. animated: true,
  213. },
  214. ],
  215. },
  216. {
  217. name: 'learn',
  218. title: 'Learn',
  219. items: [
  220. {
  221. name: 'posts-home',
  222. title: 'Posts',
  223. description: 'Read stories from the community.',
  224. link: '/posts-home',
  225. icon: 'FileText',
  226. animated: true,
  227. },
  228. {
  229. name: 'courses-home',
  230. title: 'Courses',
  231. description: 'Take courses and grow your skills.',
  232. link: '/courses-home',
  233. icon: 'LibraryBig',
  234. animated: true,
  235. },
  236. {
  237. name: 'wiki',
  238. title: 'Documentation',
  239. description: 'How to use our product.',
  240. link: '/docs',
  241. icon: 'BookOpenText',
  242. animated: true,
  243. },
  244. {
  245. name: 'discussions-home',
  246. title: 'Discussions',
  247. description: 'Talk about your interests.',
  248. link: '/discussions-home',
  249. icon: 'MessagesSquare',
  250. animated: true,
  251. },
  252. ],
  253. },
  254. ]
  255. },
  256. ],
  257. /** Header toolbar (mobile web): popup links, same row pattern as navbar dropdown */
  258. menu_navigation: [
  259. {
  260. name: 'about',
  261. title: 'About Us',
  262. link: '/about',
  263. icon: 'Info',
  264. animated: true,
  265. },
  266. {
  267. name: 'terms',
  268. title: 'Terms of Service',
  269. link: '/terms',
  270. icon: 'Handshake',
  271. },
  272. {
  273. name: 'wiki',
  274. title: 'Documentation',
  275. link: '/docs',
  276. icon: 'BookOpenText',
  277. },
  278. {
  279. name: 'privacy',
  280. title: 'Privacy Policy',
  281. link: '/privacy',
  282. icon: 'ShieldCheck',
  283. },
  284. {
  285. name: 'contact',
  286. title: 'Contact Us',
  287. link: '/contact',
  288. icon: 'Mail',
  289. animated: true,
  290. },
  291. ],
  292. menu_tabbar_logged: [
  293. {
  294. key: '/tab0',
  295. title: 'Home',
  296. url: '/home',
  297. icon: 'House',
  298. animated: true,
  299. },
  300. {
  301. key: '/tab1',
  302. title: 'Friends',
  303. url: '/friends',
  304. icon: 'UsersRound',
  305. badge: 'friends',
  306. animated: true,
  307. },
  308. {
  309. key: '/tab2',
  310. title: 'Messages',
  311. url: '/messenger',
  312. icon: 'MessageCircleMore',
  313. badge: 'messenger',
  314. animated: true,
  315. },
  316. {
  317. key: '/tab3',
  318. title: 'Activity',
  319. url: '/notifications-view',
  320. icon: 'Bell',
  321. badge: 'notifications',
  322. animated: true,
  323. },
  324. // Fifth slot: own profile, shown as the avatar (iOS). With five items
  325. // it is a plain tab; with more it is the More trigger and the menu's
  326. // header, and the items below it fill the menu.
  327. { key: '/tab4', title: 'Profile', url: '{profile}', icon: 'User' },
  328. {
  329. key: '/tab5',
  330. title: 'Dashboard',
  331. url: '/dashboard',
  332. icon: 'CircleGauge',
  333. },
  334. { key: '/tab6', title: 'Groups', url: '/groups-home', icon: 'UsersRound' },
  335. { key: '/tab7', title: 'Events', url: '/events-home', icon: 'CalendarCheck' },
  336. { key: '/tab8', title: 'Market', url: '/products-home', icon: 'Store' },
  337. { key: '/tab9', title: 'Tasks', url: '/tasks-home', icon: 'ListChecks' },
  338. { key: '/tab10', title: 'Docs', url: '/docs', icon: 'Book' },
  339. { key: '/tab11', title: 'Blog', url: '/posts-home', icon: 'PencilLine' },
  340. { key: '/tab12', title: 'Pricing', url: '/pricing', icon: 'Tag' },
  341. { key: '/tab13', title: 'Sign out', url: '/logout', icon: 'LogOut' },
  342. ],
  343. menu_tabbar_non_logged: [
  344. {
  345. key: '/tab0',
  346. title: 'Home',
  347. url: '/home',
  348. icon: 'House',
  349. animated: true,
  350. },
  351. {
  352. key: '/tab1',
  353. title: 'Explore',
  354. url: '/explore',
  355. icon: 'Compass',
  356. animated: true,
  357. },
  358. {
  359. key: '/tab2',
  360. title: 'About',
  361. url: '/about',
  362. icon: 'Info',
  363. animated: true,
  364. },
  365. {
  366. key: '/tab3',
  367. title: 'Contact',
  368. url: '/contact',
  369. icon: 'Contact',
  370. },
  371. { key: '/tab4', title: 'Terms', url: '/terms', icon: 'Info' },
  372. ],
  373. /* for vertical layout*/
  374. menu_sidebar: [
  375. {
  376. title: 'Profile',
  377. link: '{profile}',
  378. icon: 'User',
  379. nonlogged: false,
  380. },
  381. {
  382. title: 'Notifications',
  383. link: '/notifications-view',
  384. icon: 'Bell',
  385. nonlogged: false,
  386. },
  387. {
  388. title: 'Messages',
  389. link: '/messenger',
  390. icon: 'MessageCircleMore',
  391. nonlogged: false,
  392. },
  393. {
  394. title: 'Friends',
  395. link: '/friends',
  396. icon: 'Link',
  397. nonlogged: false,
  398. },
  399. { title: 'Groups', link: '/groups-home', icon: 'Group' },
  400. { title: 'Spaces', link: '/spaces-home', icon: 'SquareStack' },
  401. { title: 'Events', link: '/events-home', icon: 'CalendarCheck' },
  402. { title: 'Posts', link: '/posts-home', icon: 'MessageSquareText' },
  403. {
  404. title: 'Discussions',
  405. link: '/discussions-home',
  406. icon: 'MessageSquare',
  407. },
  408. { title: 'Courses', link: '/courses-home', icon: 'LibraryBig' },
  409. { title: 'People', link: '/persons-home', icon: 'Users' },
  410. { title: 'Jobs', link: '/jobs-home', icon: 'BriefcaseBusiness' },
  411. { title: 'About', link: '/about', icon: 'Info' },
  412. { title: 'Terms', link: '/terms', icon: 'HelpCircle' },
  413. { title: 'Contact', link: '/contact', icon: 'Mail' },
  414. ],
  415. },
  416. }