You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

157 lines
2.3 KiB

Web Push Notifications (#3243) * feat: Register push subscription * feat: Notify when mentioned * feat: Boost, favourite, reply, follow, follow request * feat: Notification interaction * feat: Handle change of public key * feat: Unsubscribe if things go wrong * feat: Do not send normal notifications if push is enabled * feat: Focus client if open * refactor: Move push logic to WebPushSubscription * feat: Better title and body * feat: Localize messages * chore: Fix lint errors * feat: Settings * refactor: Lazy load * fix: Check if push settings exist * feat: Device-based preferences * refactor: Simplify logic * refactor: Pull request feedback * refactor: Pull request feedback * refactor: Create /api/web/push_subscriptions endpoint * feat: Spec PushSubscriptionController * refactor: WebPushSubscription => Web::PushSubscription * feat: Spec Web::PushSubscription * feat: Display first media attachment * feat: Support direction * fix: Stuff broken while rebasing * refactor: Integration with session activations * refactor: Cleanup * refactor: Simplify implementation * feat: Set VAPID keys via environment * chore: Comments * fix: Crash when no alerts * fix: Set VAPID keys in testing environment * fix: Follow link * feat: Notification actions * fix: Delete previous subscription * chore: Temporary logs * refactor: Move migration to a later date * fix: Fetch the correct session activation and misc bugs * refactor: Move migration to a later date * fix: Remove follow request (no notifications) * feat: Send administrator contact to push service * feat: Set time-to-live * fix: Do not show sensitive images * fix: Reducer crash in error handling * feat: Add badge * chore: Fix lint error * fix: Checkbox label overlap * fix: Check for payload support * fix: Rename action "type" (crash in latest Chrome) * feat: Action to expand notification * fix: Lint errors * fix: Unescape notification body * fix: Do not allow boosting if the status is hidden * feat: Add VAPID keys to the production sample environment * fix: Strip HTML tags from status * refactor: Better error messages * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet) * fix: Error when target_status is nil * fix: Handle lack of image * fix: Delete reference to invalid subscriptions * feat: Better error handling * fix: Unescape HTML characters after tags are striped * refactor: Simpify code * fix: Modify to work with #4091 * Sort strings alphabetically * i18n: Updated Polish translation it annoys me that it's not fully localized :P * refactor: Use current_session in PushSubscriptionController * fix: Rebase mistake * fix: Set cacheName to mastodon * refactor: Pull request feedback * refactor: Remove logging statements * chore(yarn): Fix conflicts with master * chore(yarn): Copy latest from master * chore(yarn): Readd offline-plugin * refactor: Use save! and update! * refactor: Send notifications async * fix: Allow retry when push fails * fix: Save track for failed pushes * fix: Minify sw.js * fix: Remove account_id from fabricator
6 years ago
  1. body.rtl {
  2. direction: rtl;
  3. .column-link__icon,
  4. .column-header__icon {
  5. margin-right: 0;
  6. margin-left: 5px;
  7. }
  8. .character-counter__wrapper {
  9. margin-right: 0;
  10. margin-left: 16px;
  11. }
  12. .navigation-bar__profile {
  13. margin-left: 0;
  14. margin-right: 8px;
  15. }
  16. .search__input {
  17. padding-right: 10px;
  18. padding-left: 30px;
  19. }
  20. .search__icon .fa {
  21. right: auto;
  22. left: 10px;
  23. }
  24. .column-header__buttons {
  25. left: 0;
  26. right: auto;
  27. }
  28. .column-header__setting-arrows {
  29. float: left;
  30. }
  31. .compose-form__modifiers {
  32. border-radius: 0 0 0 4px;
  33. }
  34. .setting-toggle {
  35. margin-left: 0;
  36. margin-right: 8px;
  37. }
  38. .setting-meta__label {
  39. float: left;
  40. }
  41. .status__avatar {
  42. left: auto;
  43. right: 10px;
  44. }
  45. .status {
  46. padding-left: 10px;
  47. padding-right: 68px;
  48. }
  49. .status__info .status__display-name {
  50. padding-left: 25px;
  51. padding-right: 0;
  52. }
  53. .column-back-button--slim-button {
  54. right: auto;
  55. left: 0;
  56. }
  57. .status__relative-time {
  58. float: left;
  59. }
  60. .status__action-bar-button {
  61. float: right;
  62. margin-right: 0;
  63. margin-left: 18px;
  64. }
  65. .status__action-bar-dropdown {
  66. float: right;
  67. }
  68. .privacy-dropdown__dropdown {
  69. left: auto;
  70. right: 0;
  71. }
  72. .dropdown--active .dropdown__content {
  73. text-align: right;
  74. }
  75. .dropdown--active .dropdown__content::before {
  76. left: auto;
  77. right: 8px;
  78. }
  79. .dropdown--active .dropdown__content > ul {
  80. left: auto;
  81. right: -10px;
  82. }
  83. .privacy-dropdown__option__icon {
  84. margin-left: 10px;
  85. margin-right: 0;
  86. }
  87. .detailed-status__display-avatar {
  88. margin-right: 0;
  89. margin-left: 10px;
  90. float: right;
  91. }
  92. .detailed-status__favorites,
  93. .detailed-status__reblogs {
  94. margin-left: 0;
  95. margin-right: 6px;
  96. }
  97. .fa-ul {
  98. margin-left: 0;
  99. margin-left: 2.14285714em;
  100. }
  101. .fa-li {
  102. left: auto;
  103. right: -2.14285714em;
  104. }
  105. @media screen and (min-width: 1025px) {
  106. .column,
  107. .drawer {
  108. padding-left: 5px;
  109. padding-right: 5px;
  110. &:first-child {
  111. padding-left: 5px;
  112. padding-right: 10px;
  113. }
  114. &:last-child {
  115. padding-right: 0;
  116. padding-left: 10px;
  117. }
  118. }
  119. .columns-area > div {
  120. .column,
  121. .drawer {
  122. padding-left: 5px;
  123. padding-right: 5px;
  124. }
  125. }
  126. }
  127. }