mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 20:54:27 +08:00
Viewport-based mobile mode has been the default since September, and the feedback has been overwhelmingly positive. This is now the only supported method. `enable_mobile_theme` is an extremely old hidden setting, which doesn't make sense at all now that almost all Discourse design is viewport-based. This commit cleans up both, and all their associated logic/tests. On the server-side, we standardize any remaining mobile-user-agent logic to be described as `mobile_device?` instead of `mobile_view?`, so that it has parity with the client-side `capabilities` service. |
||
|---|---|---|
| .. | ||
| anonymous_cache.rb | ||
| crawler_hooks.rb | ||
| csp_script_nonce_injector.rb | ||
| default_headers.rb | ||
| discourse_public_exceptions.rb | ||
| enforce_hostname.rb | ||
| missing_avatars.rb | ||
| omniauth_bypass_middleware.rb | ||
| overload_protections.rb | ||
| processing_request.rb | ||
| request_tracker.rb | ||
| track_view_session_id_injector.rb | ||