Skip to content

Commit

Permalink
Merge remote-tracking branch 'parent/main' into upstream-20240824
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Aug 24, 2024
2 parents a41946d + 97f6baf commit a5bbc3f
Show file tree
Hide file tree
Showing 164 changed files with 1,916 additions and 1,537 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.16
20.17
295 changes: 295 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ gem 'link_header', '~> 0.0'
gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
gem 'mime-types', '~> 3.5.0', require: 'mime/types/columnar'
gem 'nokogiri', '~> 1.15'
gem 'nsa'
gem 'oj', '~> 3.14'
gem 'ox', '~> 2.14'
gem 'parslet'
Expand Down
13 changes: 3 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ GEM
attr_required (1.0.2)
awrence (1.2.1)
aws-eventstream (1.3.0)
aws-partitions (1.964.0)
aws-partitions (1.966.0)
aws-sdk-core (3.201.5)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
Expand All @@ -109,7 +109,7 @@ GEM
aws-sdk-kms (1.88.0)
aws-sdk-core (~> 3, >= 3.201.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.158.0)
aws-sdk-s3 (1.159.0)
aws-sdk-core (~> 3, >= 3.201.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -455,11 +455,6 @@ GEM
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nsa (0.3.0)
activesupport (>= 4.2, < 7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
sidekiq (>= 3.5)
statsd-ruby (~> 1.4, >= 1.4.0)
oj (3.16.5)
bigdecimal (>= 3.0)
ostruct (>= 0.2)
Expand Down Expand Up @@ -518,7 +513,7 @@ GEM
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-active_support (~> 0.1)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-active_job (0.7.6)
opentelemetry-instrumentation-active_job (0.7.7)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-active_model_serializers (0.20.2)
Expand Down Expand Up @@ -821,7 +816,6 @@ GEM
simplecov-lcov (0.8.0)
simplecov_json_formatter (0.1.4)
stackprof (0.2.26)
statsd-ruby (1.5.0)
stoplight (4.1.0)
redlock (~> 1.0)
stringio (3.1.1)
Expand Down Expand Up @@ -980,7 +974,6 @@ DEPENDENCIES
net-http (~> 0.4.0)
net-ldap (~> 0.18)
nokogiri (~> 1.15)
nsa
oj (~> 3.14)
omniauth (~> 2.0)
omniauth-cas (~> 3.0.0.beta.1)
Expand Down
6 changes: 5 additions & 1 deletion app/controllers/api/v1/notifications/requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ def set_requests
end

def next_path
api_v1_notifications_requests_url pagination_params(max_id: pagination_max_id) unless @requests.empty?
api_v1_notifications_requests_url pagination_params(max_id: pagination_max_id) if records_continue?
end

def prev_path
api_v1_notifications_requests_url pagination_params(min_id: pagination_since_id) unless @requests.empty?
end

def records_continue?
@requests.size == limit_param(DEFAULT_ACCOUNTS_LIMIT)
end

def pagination_max_id
@requests.last.id
end
Expand Down
16 changes: 0 additions & 16 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,22 +252,6 @@ def mascot_url
full_asset_url(instance_presenter.mascot&.file&.url || frontend_asset_path('images/elephant_ui_plane.svg'))
end

def instance_presenter
@instance_presenter ||= InstancePresenter.new
end

def favicon_path(size = '48')
instance_presenter.favicon&.file&.url(size)
end

def app_icon_path(size = '48')
instance_presenter.app_icon&.file&.url(size)
end

def use_mask_icon?
instance_presenter.app_icon.blank?
end

private

def storage_host_var
Expand Down
16 changes: 16 additions & 0 deletions app/helpers/instance_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ def description_for_sign_up(invite = nil)
safe_join([description_prefix(invite), I18n.t('auth.description.suffix')], ' ')
end

def instance_presenter
@instance_presenter ||= InstancePresenter.new
end

def favicon_path(size = '48')
instance_presenter.favicon&.file&.url(size)
end

def app_icon_path(size = '48')
instance_presenter.app_icon&.file&.url(size)
end

def use_mask_icon?
instance_presenter.app_icon.blank?
end

private

def description_prefix(invite)
Expand Down
24 changes: 24 additions & 0 deletions app/javascript/images/filter-stripes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions app/javascript/images/quote-stripes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a5bbc3f

Please sign in to comment.