browse.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. export const settingsBrowse = {
  2. browse: {
  3. new_skeletons : true,
  4. margin: 'mb-3',
  5. stale_time: 30000,
  6. per_line: [/* only for images for now*/
  7. { width: 1280, count: 4 },
  8. { width: 1024, count: 4 },
  9. { width: 768, count: 3 },
  10. { width: 640, count: 2 },
  11. ],
  12. show_in_modal:{
  13. bx_posts: true,
  14. bx_timeline: true
  15. },
  16. unit_by_source: {
  17. 'system/browse_friends': 'person_friends',
  18. 'system/browse_members': 'person_friends',
  19. 'system/browse_recommendations_friends': 'person_friends_recommendations',
  20. 'system/browse_invitations': 'invitations_in_context',
  21. 'system/browse_friend_requested': 'person_friend_requested',
  22. 'system/browse_friend_requests': 'browse_friend_requests',
  23. 'system/browse_recommendations_subscriptions': 'person_following_recommendations',
  24. 'system/browse_subscribed_me': 'person_followers',
  25. 'browse_subscriptions': 'person_following',
  26. 'r=bx_events': 'event',
  27. 'r=bx_groups': 'group',
  28. 'r=bx_timeline': 'feed',
  29. },
  30. skeletons: {
  31. 'person_friends': 'bx_persons',
  32. 'person_friends_recommendations': 'bx_persons',
  33. 'person_friend_requested': 'bx_persons',
  34. 'browse_friend_requests': 'bx_persons',
  35. 'person_following_recommendations': 'bx_persons',
  36. 'person_followers': 'bx_persons',
  37. 'person_following': 'bx_persons',
  38. 'invitations_in_context': 'bx_invitations',
  39. 'group': 'bx_groups',
  40. 'event': 'bx_events',
  41. },
  42. unit_by_mode_default: {
  43. context: 'Base',
  44. search: 'Search',
  45. default: 'Base',
  46. },
  47. unit_by_mode_bx_posts: {
  48. small: 'Small',
  49. context: 'Small',
  50. search: 'Search',
  51. default: 'Base',
  52. },
  53. unit_by_mode_bx_forum: {
  54. small: 'Small',
  55. context: 'Small',
  56. default: 'Base',
  57. },
  58. }
  59. }