feed.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. export const settingsFeed = {
  2. feed: {
  3. feed_container: 'relative flex-auto mx-auto w-full max-w-3xl ',
  4. show_html: false,
  5. default_feed: 'foryou',
  6. // web: post modal opened from the feed keeps the feed URL (+ #fi=<post>) so reload reopens it over the feed; false = address bar shows the post URL
  7. modal_hash: false,
  8. list: [
  9. { name: 'foryou', icon: 'Sparkle', title: 'For you', showTitle: true },
  10. // { name: 'account', icon: 'Binoculars', title: 'Following', showTitle: true },
  11. // { name: 'hot', icon: 'Flame', title: 'Hot', showTitle: true },
  12. // { name: 'public', icon: 'Egg', title: 'Public', showTitle: true },
  13. // { name: 'channels', icon: 'Hash', title: 'News', showTitle: true },
  14. ],
  15. units: {
  16. bx_market: 'MarketView',
  17. bx_ads: 'AdView',
  18. bx_groups: 'GroupView',
  19. bx_events: 'GroupView',
  20. bx_courses: 'GroupView',
  21. bx_spaces: 'GroupView',
  22. bx_polls: 'PollView',
  23. bx_posts: 'PostsView',
  24. },
  25. actions_menu: {
  26. show_action: true, // show action part or not
  27. show_counter: false, // show counter part or not
  28. show_combined: true, // leave true
  29. button_show_title_from_size: '',
  30. button_full_width: false,
  31. button_size: 'sm',
  32. button_variant: 'text',
  33. menu_width: '',
  34. button_rounded: false,
  35. justify_items: 'start',
  36. menu_gap: 'gap-1',
  37. no_gap_between_buttons: false, // is false no gap between buttons + right margin, is true gap between buttons + no margin
  38. },
  39. counters_menu: {
  40. show_action: false,
  41. show_counter: true,
  42. show_combined: true,
  43. menu_width: '',
  44. button_variant: 'link',
  45. rounded: true,
  46. button_size: 'xs',
  47. button_rounded: true,
  48. justify_items: 'between',
  49. no_gap_between_buttons: false,
  50. counter_button_class: 'mt-1 sm:mt-2',
  51. menu_item_spacing: 'me-0',
  52. menu_gap: 'gap-1',
  53. },
  54. /*
  55. FOR COMBINED BUTTONS SHOULD BE SET IN THE FOLLOWING WAY:
  56. , actions_menu : {
  57. show_action: true,
  58. show_counter: true,
  59. show_combined: true,
  60. }
  61. */
  62. },
  63. }