闭社主体 forked from https://github.com/tootsuite/mastodon
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.

138 lines
3.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
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
5 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # frozen_string_literal: true
  2. source 'https://rubygems.org'
  3. ruby '>= 2.3.0', '< 2.6.0'
  4. gem 'pkg-config', '~> 1.2'
  5. gem 'puma', '~> 3.10'
  6. gem 'rails', '~> 5.1.4'
  7. gem 'hamlit-rails', '~> 0.2'
  8. gem 'pg', '~> 0.20'
  9. gem 'pghero', '~> 1.7'
  10. gem 'dotenv-rails', '~> 2.2'
  11. gem 'aws-sdk', '~> 2.10', require: false
  12. gem 'fog-core', '~> 1.45'
  13. gem 'fog-local', '~> 0.4', require: false
  14. gem 'fog-openstack', '~> 0.1', require: false
  15. gem 'paperclip', '~> 5.1'
  16. gem 'paperclip-av-transcoder', '~> 0.6'
  17. gem 'streamio-ffmpeg', '~> 3.0'
  18. gem 'active_model_serializers', '~> 0.10'
  19. gem 'addressable', '~> 2.5'
  20. gem 'bootsnap'
  21. gem 'browser'
  22. gem 'charlock_holmes', '~> 0.7.5'
  23. gem 'iso-639'
  24. gem 'chewy', '~> 5.0'
  25. gem 'cld3', '~> 3.2.0'
  26. gem 'devise', '~> 4.4'
  27. gem 'devise-two-factor', '~> 3.0'
  28. gem 'devise_pam_authenticatable2', '~> 8.0', install_if: -> { ENV['PAM_ENABLED'] == 'true' }
  29. gem 'net-ldap', '~> 0.10'
  30. gem 'omniauth-cas', '~> 1.1'
  31. gem 'omniauth-saml', '~> 1.10'
  32. gem 'omniauth', '~> 1.2'
  33. gem 'doorkeeper', '~> 4.2'
  34. gem 'fast_blank', '~> 1.0'
  35. gem 'fastimage'
  36. gem 'goldfinger', '~> 2.1'
  37. gem 'hiredis', '~> 0.6'
  38. gem 'redis-namespace', '~> 1.5'
  39. gem 'htmlentities', '~> 4.3'
  40. gem 'http', '~> 3.0'
  41. gem 'http_accept_language', '~> 2.1'
  42. gem 'httplog', '~> 0.99'
  43. gem 'idn-ruby', require: 'idn'
  44. gem 'kaminari', '~> 1.1'
  45. gem 'link_header', '~> 0.0'
  46. gem 'mime-types', '~> 3.1'
  47. gem 'nokogiri', '~> 1.8'
  48. gem 'nsa', '~> 0.2'
  49. gem 'oj', '~> 3.3'
  50. gem 'ostatus2', '~> 2.0'
  51. gem 'ox', '~> 2.8'
  52. gem 'pundit', '~> 1.1'
  53. gem 'premailer-rails'
  54. gem 'rack-attack', '~> 5.0'
  55. gem 'rack-cors', '~> 0.4', require: 'rack/cors'
  56. gem 'rack-timeout', '~> 0.4'
  57. gem 'rails-i18n', '~> 5.0'
  58. gem 'rails-settings-cached', '~> 0.6'
  59. gem 'redis', '~> 3.3', require: ['redis', 'redis/connection/hiredis']
  60. gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
  61. gem 'rqrcode', '~> 0.10'
  62. gem 'ruby-oembed', '~> 0.12', require: 'oembed'
  63. gem 'ruby-progressbar', '~> 1.4'
  64. gem 'sanitize', '~> 4.4'
  65. gem 'sidekiq', '~> 5.0'
  66. gem 'sidekiq-scheduler', '~> 2.1'
  67. gem 'sidekiq-unique-jobs', '~> 5.0'
  68. gem 'sidekiq-bulk', '~>0.1.1'
  69. gem 'simple-navigation', '~> 4.0'
  70. gem 'simple_form', '~> 3.4'
  71. gem 'sprockets-rails', '~> 3.2', require: 'sprockets/railtie'
  72. gem 'strong_migrations'
  73. gem 'tty-command'
  74. gem 'tty-prompt'
  75. gem 'twitter-text', '~> 1.14'
  76. gem 'tzinfo-data', '~> 1.2017'
  77. gem 'webpacker', '~> 3.0'
  78. gem 'webpush'
  79. gem 'json-ld-preloaded', '~> 2.2.1'
  80. gem 'rdf-normalize', '~> 0.3.1'
  81. group :development, :test do
  82. gem 'fabrication', '~> 2.18'
  83. gem 'fuubar', '~> 2.2'
  84. gem 'i18n-tasks', '~> 0.9', require: false
  85. gem 'pry-rails', '~> 0.3'
  86. gem 'rspec-rails', '~> 3.7'
  87. end
  88. group :production, :test do
  89. gem 'private_address_check', '~> 0.4.1'
  90. end
  91. group :test do
  92. gem 'capybara', '~> 2.15'
  93. gem 'climate_control', '~> 0.2'
  94. gem 'faker', '~> 1.7'
  95. gem 'microformats', '~> 4.0'
  96. gem 'rails-controller-testing', '~> 1.0'
  97. gem 'rspec-sidekiq', '~> 3.0'
  98. gem 'simplecov', '~> 0.14', require: false
  99. gem 'webmock', '~> 3.0'
  100. gem 'parallel_tests', '~> 2.17'
  101. end
  102. group :development do
  103. gem 'active_record_query_trace', '~> 1.5'
  104. gem 'annotate', '~> 2.7'
  105. gem 'better_errors', '~> 2.4'
  106. gem 'binding_of_caller', '~> 0.7'
  107. gem 'bullet', '~> 5.5'
  108. gem 'letter_opener', '~> 1.4'
  109. gem 'letter_opener_web', '~> 1.3'
  110. gem 'memory_profiler'
  111. gem 'rubocop', require: false
  112. gem 'brakeman', '~> 4.0', require: false
  113. gem 'bundler-audit', '~> 0.6', require: false
  114. gem 'scss_lint', '~> 0.55', require: false
  115. gem 'capistrano', '~> 3.10'
  116. gem 'capistrano-rails', '~> 1.3'
  117. gem 'capistrano-rbenv', '~> 2.1'
  118. gem 'capistrano-yarn', '~> 2.0'
  119. end
  120. group :production do
  121. gem 'lograge', '~> 0.7'
  122. gem 'redis-rails', '~> 5.0'
  123. end