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.

254 lines
4.2 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: 8px;
  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__back-button {
  29. padding-left: 5px;
  30. padding-right: 0;
  31. }
  32. .column-header__setting-arrows {
  33. float: left;
  34. }
  35. .compose-form__modifiers {
  36. border-radius: 0 0 0 4px;
  37. }
  38. .setting-toggle {
  39. margin-left: 0;
  40. margin-right: 8px;
  41. }
  42. .setting-meta__label {
  43. float: left;
  44. }
  45. .status__avatar {
  46. left: auto;
  47. right: 10px;
  48. }
  49. .status,
  50. .activity-stream .status.light {
  51. padding-left: 10px;
  52. padding-right: 68px;
  53. }
  54. .status__info .status__display-name,
  55. .activity-stream .status.light .status__display-name {
  56. padding-left: 25px;
  57. padding-right: 0;
  58. }
  59. .activity-stream .pre-header {
  60. padding-right: 68px;
  61. padding-left: 0;
  62. }
  63. .status__prepend {
  64. margin-left: 0;
  65. margin-right: 68px;
  66. }
  67. .status__prepend-icon-wrapper {
  68. left: auto;
  69. right: -26px;
  70. }
  71. .activity-stream .pre-header .pre-header__icon {
  72. left: auto;
  73. right: 42px;
  74. }
  75. .account__avatar-overlay-overlay {
  76. right: auto;
  77. left: 0;
  78. }
  79. .column-back-button--slim-button {
  80. right: auto;
  81. left: 0;
  82. }
  83. .status__relative-time,
  84. .activity-stream .status.light .status__header .status__meta {
  85. float: left;
  86. }
  87. .activity-stream .detailed-status.light .detailed-status__display-name > div {
  88. float: right;
  89. margin-right: 0;
  90. margin-left: 10px;
  91. }
  92. .activity-stream .detailed-status.light .detailed-status__meta span > span {
  93. margin-left: 0;
  94. margin-right: 6px;
  95. }
  96. .status__action-bar-button {
  97. float: right;
  98. margin-right: 0;
  99. margin-left: 18px;
  100. }
  101. .status__action-bar-dropdown {
  102. float: right;
  103. }
  104. .privacy-dropdown__dropdown {
  105. margin-left: 0;
  106. margin-right: 40px;
  107. }
  108. .privacy-dropdown__option__icon {
  109. margin-left: 10px;
  110. margin-right: 0;
  111. }
  112. .detailed-status__display-avatar {
  113. margin-right: 0;
  114. margin-left: 10px;
  115. float: right;
  116. }
  117. .detailed-status__favorites,
  118. .detailed-status__reblogs {
  119. margin-left: 0;
  120. margin-right: 6px;
  121. }
  122. .fa-ul {
  123. margin-left: 0;
  124. margin-left: 2.14285714em;
  125. }
  126. .fa-li {
  127. left: auto;
  128. right: -2.14285714em;
  129. }
  130. .admin-wrapper .sidebar ul a i.fa,
  131. a.table-action-link i.fa {
  132. margin-right: 0;
  133. margin-left: 5px;
  134. }
  135. .simple_form .check_boxes .checkbox label,
  136. .simple_form .input.with_label.boolean label.checkbox {
  137. padding-left: 0;
  138. padding-right: 25px;
  139. }
  140. .simple_form .check_boxes .checkbox input[type="checkbox"],
  141. .simple_form .input.boolean input[type="checkbox"] {
  142. left: auto;
  143. right: 0;
  144. }
  145. .simple_form .input-with-append .input input {
  146. padding-left: 127px;
  147. padding-right: 0;
  148. }
  149. .simple_form .input-with-append .append {
  150. right: auto;
  151. left: 0;
  152. }
  153. .table th,
  154. .table td {
  155. text-align: right;
  156. }
  157. .filters .filter-subset {
  158. margin-right: 0;
  159. margin-left: 45px;
  160. }
  161. .landing-page .header-wrapper .mascot {
  162. right: 60px;
  163. left: auto;
  164. }
  165. .landing-page .header .hero .floats .float-1 {
  166. left: -120px;
  167. right: auto;
  168. }
  169. .landing-page .header .hero .floats .float-2 {
  170. left: 210px;
  171. right: auto;
  172. }
  173. .landing-page .header .hero .floats .float-3 {
  174. left: 110px;
  175. right: auto;
  176. }
  177. .landing-page .header .links .brand img {
  178. left: 0;
  179. }
  180. .landing-page .fa-external-link {
  181. padding-right: 5px;
  182. padding-left: 0 !important;
  183. }
  184. .landing-page .features #mastodon-timeline {
  185. margin-right: 0;
  186. margin-left: 30px;
  187. }
  188. @media screen and (min-width: 631px) {
  189. .column,
  190. .drawer {
  191. padding-left: 5px;
  192. padding-right: 5px;
  193. &:first-child {
  194. padding-left: 5px;
  195. padding-right: 10px;
  196. }
  197. }
  198. .columns-area > div {
  199. .column,
  200. .drawer {
  201. padding-left: 5px;
  202. padding-right: 5px;
  203. }
  204. }
  205. }
  206. }