闭社主体 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.

117 lines
3.0 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 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
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # frozen_string_literal: true
  2. source 'https://rubygems.org'
  3. ruby '>= 2.3.0', '< 2.5.0'
  4. gem 'pkg-config', '~> 1.2'
  5. gem 'puma', '~> 3.8'
  6. gem 'rails', '~> 5.1.0'
  7. gem 'uglifier', '~> 3.2'
  8. gem 'hamlit-rails', '~> 0.2'
  9. gem 'pg', '~> 0.20'
  10. gem 'pghero', '~> 1.7'
  11. gem 'dotenv-rails', '~> 2.2'
  12. gem 'aws-sdk', '~> 2.9'
  13. gem 'fog-openstack', '~> 0.1'
  14. gem 'paperclip', '~> 5.1'
  15. gem 'paperclip-av-transcoder', '~> 0.6'
  16. gem 'active_model_serializers', '~> 0.10'
  17. gem 'addressable', '~> 2.5'
  18. gem 'bootsnap'
  19. gem 'browser'
  20. gem 'charlock_holmes', '~> 0.7.5'
  21. gem 'cld3', '~> 3.1'
  22. gem 'devise', '~> 4.2'
  23. gem 'devise-two-factor', '~> 3.0'
  24. gem 'doorkeeper', '~> 4.2'
  25. gem 'fast_blank', '~> 1.0'
  26. gem 'goldfinger', '~> 2.0'
  27. gem 'hiredis', '~> 0.6'
  28. gem 'redis-namespace', '~> 1.5'
  29. gem 'htmlentities', '~> 4.3'
  30. gem 'http', '~> 2.2'
  31. gem 'http_accept_language', '~> 2.1'
  32. gem 'httplog', '~> 0.99'
  33. gem 'idn-ruby', require: 'idn'
  34. gem 'kaminari', '~> 1.0'
  35. gem 'link_header', '~> 0.0'
  36. gem 'mime-types', '~> 3.1'
  37. gem 'nokogiri', '~> 1.7'
  38. gem 'oj', '~> 3.0'
  39. gem 'ostatus2', '~> 2.0'
  40. gem 'ox', '~> 2.5'
  41. gem 'pundit', '~> 1.1'
  42. gem 'rabl', '~> 0.13'
  43. gem 'rack-attack', '~> 5.0'
  44. gem 'rack-cors', '~> 0.4', require: 'rack/cors'
  45. gem 'rack-timeout', '~> 0.4'
  46. gem 'rails-i18n', '~> 5.0'
  47. gem 'rails-settings-cached', '~> 0.6'
  48. gem 'redis', '~> 3.3', require: ['redis', 'redis/connection/hiredis']
  49. gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
  50. gem 'rqrcode', '~> 0.10'
  51. gem 'ruby-oembed', '~> 0.12', require: 'oembed'
  52. gem 'sanitize', '~> 4.4'
  53. gem 'sidekiq', '~> 5.0'
  54. gem 'sidekiq-scheduler', '~> 2.1'
  55. gem 'sidekiq-unique-jobs', '~> 5.0'
  56. gem 'sidekiq-bulk', '~>0.1.1'
  57. gem 'simple-navigation', '~> 4.0'
  58. gem 'simple_form', '~> 3.4'
  59. gem 'sprockets-rails', '~> 3.2', require: 'sprockets/railtie'
  60. gem 'statsd-instrument', '~> 2.1'
  61. gem 'twitter-text', '~> 1.14'
  62. gem 'tzinfo-data', '~> 1.2017'
  63. gem 'webpacker', '~> 2.0'
  64. gem 'webpush'
  65. gem 'json-ld-preloaded', '~> 2.2.1'
  66. gem 'rdf-normalize', '~> 0.3.1'
  67. group :development, :test do
  68. gem 'fabrication', '~> 2.16'
  69. gem 'fuubar', '~> 2.2'
  70. gem 'i18n-tasks', '~> 0.9', require: false
  71. gem 'pry-rails', '~> 0.3'
  72. gem 'rspec-rails', '~> 3.6'
  73. end
  74. group :test do
  75. gem 'capybara', '~> 2.14'
  76. gem 'climate_control', '~> 0.2'
  77. gem 'faker', '~> 1.7'
  78. gem 'microformats', '~> 4.0'
  79. gem 'rails-controller-testing', '~> 1.0'
  80. gem 'rspec-sidekiq', '~> 3.0'
  81. gem 'simplecov', '~> 0.14', require: false
  82. gem 'webmock', '~> 3.0'
  83. gem 'parallel_tests', '~> 2.14'
  84. end
  85. group :development do
  86. gem 'active_record_query_trace', '~> 1.5'
  87. gem 'annotate', '~> 2.7'
  88. gem 'better_errors', '~> 2.1'
  89. gem 'binding_of_caller', '~> 0.7'
  90. gem 'bullet', '~> 5.5'
  91. gem 'letter_opener', '~> 1.4'
  92. gem 'letter_opener_web', '~> 1.3'
  93. gem 'rubocop', require: false
  94. gem 'brakeman', '~> 3.6', require: false
  95. gem 'bundler-audit', '~> 0.5', require: false
  96. gem 'scss_lint', '~> 0.53', require: false
  97. gem 'capistrano', '~> 3.8'
  98. gem 'capistrano-rails', '~> 1.2'
  99. gem 'capistrano-rbenv', '~> 2.1'
  100. gem 'capistrano-yarn', '~> 2.0'
  101. end
  102. group :production do
  103. gem 'lograge', '~> 0.5'
  104. gem 'redis-rails', '~> 5.0'
  105. end