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.

268 lines
4.4 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
7 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. left: auto;
  106. right: 0;
  107. }
  108. .dropdown--active .dropdown__content {
  109. text-align: right;
  110. }
  111. .dropdown--active .dropdown__content::before {
  112. left: auto;
  113. right: 8px;
  114. }
  115. .dropdown--active .dropdown__content > ul {
  116. left: auto;
  117. right: -10px;
  118. }
  119. .privacy-dropdown__option__icon {
  120. margin-left: 10px;
  121. margin-right: 0;
  122. }
  123. .detailed-status__display-avatar {
  124. margin-right: 0;
  125. margin-left: 10px;
  126. float: right;
  127. }
  128. .detailed-status__favorites,
  129. .detailed-status__reblogs {
  130. margin-left: 0;
  131. margin-right: 6px;
  132. }
  133. .fa-ul {
  134. margin-left: 0;
  135. margin-left: 2.14285714em;
  136. }
  137. .fa-li {
  138. left: auto;
  139. right: -2.14285714em;
  140. }
  141. .admin-wrapper .sidebar ul a i.fa,
  142. a.table-action-link i.fa {
  143. margin-right: 0;
  144. margin-left: 5px;
  145. }
  146. .simple_form .check_boxes .checkbox label,
  147. .simple_form .input.with_label.boolean label.checkbox {
  148. padding-left: 0;
  149. padding-right: 25px;
  150. }
  151. .simple_form .check_boxes .checkbox input[type="checkbox"],
  152. .simple_form .input.boolean input[type="checkbox"] {
  153. left: auto;
  154. right: 0;
  155. }
  156. .simple_form .input-with-append .input input {
  157. padding-left: 127px;
  158. padding-right: 0;
  159. }
  160. .simple_form .input-with-append .append {
  161. right: auto;
  162. left: 0;
  163. }
  164. .table th,
  165. .table td {
  166. text-align: right;
  167. }
  168. .filters .filter-subset {
  169. margin-right: 0;
  170. margin-left: 45px;
  171. }
  172. .landing-page .header-wrapper .mascot {
  173. right: 60px;
  174. left: auto;
  175. }
  176. .landing-page .header .hero .floats .float-1 {
  177. left: -120px;
  178. right: auto;
  179. }
  180. .landing-page .header .hero .floats .float-2 {
  181. left: 210px;
  182. right: auto;
  183. }
  184. .landing-page .header .hero .floats .float-3 {
  185. left: 110px;
  186. right: auto;
  187. }
  188. .landing-page .header .links .brand img {
  189. left: 0;
  190. }
  191. .landing-page .fa-external-link {
  192. padding-right: 5px;
  193. padding-left: 0 !important;
  194. }
  195. .landing-page .features #mastodon-timeline {
  196. margin-right: 0;
  197. margin-left: 30px;
  198. }
  199. @media screen and (min-width: 1025px) {
  200. .column,
  201. .drawer {
  202. padding-left: 5px;
  203. padding-right: 5px;
  204. &:first-child {
  205. padding-left: 5px;
  206. padding-right: 10px;
  207. }
  208. }
  209. .columns-area > div {
  210. .column,
  211. .drawer {
  212. padding-left: 5px;
  213. padding-right: 5px;
  214. }
  215. }
  216. }
  217. }