This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/initializers
David Taylor 011c9b9973
DEV: Use message-bus chunked encoding in development (#19878)
This was previously disabled because of incompatibility with the ember-cli proxy. This commit fixes that incompatibility, and restores the development behaviour to match production.

There were three issues at play:

1. Our bootstrap-js addon handles the forwarding of most requests in the ember-cli proxy. This is not built to handle streaming responses. Solution: skip our custom request processing for `/message-bus/*` and use ember-cli's default `http-proxy`.

2. The request/response size-limiting middleware (`rawMiddleware`) would apply even to unhandled paths, causing request and response bodies to be buffered. Solution: skip it for any paths which are not handled by our custom addon.

3. Expressjs servers will buffer/compress responses. Solution: add `Cache-Control: no-transform` to message-bus responses. For now I've done this in development only, but it may be useful to add it to message-bus's default headers in future
2023-01-17 09:54:33 +00:00
..
animated-images.js FIX: Support pausing inline animated images (#13033) 2021-05-12 09:49:04 -04:00
auth-complete.js FEATURE: Allow invites redemption with Omniauth providers. 2021-03-09 09:27:18 +08:00
auto-load-modules.js DEV: Replace topic-tracking-state:main with service:topic-tracking-state (#17802) 2022-08-05 08:48:55 +08:00
badging.js DEV: Add bookmarks tab to the new user menu (#17814) 2022-08-08 17:24:04 +03:00
banner.js DEV: Clean up all message bus subscriptions (#19268) 2022-12-12 16:32:25 +01:00
clean-dom-on-route-change.js DEV: dom clean should be cancelled on aborted transition (#17736) 2022-08-01 10:56:41 +02:00
click-interceptor.js DEV: Allow click-interceptor in tests and add navigation test (#15499) 2022-01-10 15:45:44 +00:00
codeblock-buttons.js DEV: Replace site-settings:main with service:site-settings (#17734) 2022-08-01 09:43:33 +01:00
colocated-template-overrides.js DEV: Support theme/plugin overrides of colocated component templates (#19237) 2022-11-30 14:14:38 +00:00
csrf-token.js DEV: Replace session:main with service:session (#17765) 2022-08-02 23:55:20 +01:00
d-popover.js FIX: uses tippy for popover (#15409) 2022-05-02 17:10:26 +02:00
eager-load-raw-templates.js DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220) 2022-11-29 10:24:35 +00:00
edit-notification-clicks-tracker.js DEV: Drop support for removing all appEvent listeners (#14936) 2021-11-15 12:31:05 +01:00
ember-input-component-extension.js DEV: Ensure core initializers with .reopen are only called once 2021-10-27 18:34:04 +01:00
ember-link-component-extension.js DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
enable-emoji.js DEV: Replace site-settings:main with service:site-settings (#17734) 2022-08-01 09:43:33 +01:00
handle-cookies.js DEV: Reduce text-size cookie duration (#19445) 2022-12-14 07:02:09 -03:00
image-aspect-ratio.js FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
inject-objects.js DEV: Add unique ids to deprecations (#19019) 2022-11-16 10:00:39 +00:00
jquery-plugins.js DEV: Only patch bootbox methods once in tests (#19222) 2022-11-28 18:14:35 +00:00
keyboard-shortcuts.js DEV: uses forked Mousetrap to avoid leaking listeners (#14198) 2021-09-08 14:48:13 +02:00
live-development.js DEV: Clean up all message bus subscriptions (#19268) 2022-12-12 16:32:25 +01:00
localization.js FIX: Overriding text with admin_js.* keys didn't work (#18281) 2022-09-20 10:47:57 +10:00
logout.js PERF: Use user-specific channel for message-bus logout (#19719) 2023-01-04 19:55:52 +00:00
logs-notice.js DEV: Replace current-user:main with service:current-user 2022-08-02 20:16:11 +01:00
message-bus.js DEV: Use message-bus chunked encoding in development (#19878) 2023-01-17 09:54:33 +00:00
mobile-keyboard.js FIX: Better virtual keyboard detect on Android (#18298) 2022-09-26 17:35:58 -03:00
mobile.js DEV: Replace site:main with service:site (#17766) 2022-08-03 14:38:35 +01:00
moment.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
narrow-desktop.js FIX: toggle sidebar when back from narrow screen (#19215) 2022-11-28 13:13:36 +11:00
onebox-decorators.js DEV: allows to import decorateGithubOneboxBody (#15349) 2021-12-17 10:05:04 +01:00
opengraph-tag-updater.js DEV: Update Twitter meta tags while navigating in app (#19468) 2022-12-14 14:33:09 -05:00
page-tracking.js DEV: Refactor clean-dom (#15609) 2022-02-01 19:29:53 +01:00
populate-template-map.js DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220) 2022-11-29 10:24:35 +00:00
post-decorations.js DEV: Replace site:main with service:site (#17766) 2022-08-03 14:38:35 +01:00
read-only.js DEV: Clean up all message bus subscriptions (#19268) 2022-12-12 16:32:25 +01:00
register-media-optimization-upload-processor.js FIX: Disable image optimization in iOS Safari (#19790) 2023-01-09 12:16:02 +10:00
register-service-worker.js DEV: Replace session:main with service:session (#17765) 2022-08-02 23:55:20 +01:00
relative-ages.js DEV: removes jquery usage from time formatter (#14700) 2021-10-25 11:00:15 +02:00
sharing-sources.js DEV: Replace site-settings:main with service:site-settings (#17734) 2022-08-01 09:43:33 +01:00
show-footer.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
signup-cta.js DEV: Replace current-user:main with service:current-user 2022-08-02 20:16:11 +01:00
sticky-avatars.js DEV: sticky avatar was retained during tests (#14969) 2021-11-16 14:33:06 +01:00
strip-mobile-app-url-params.js DEV: Extensively use includes() (#17541) 2022-07-17 20:48:36 +02:00
subscribe-user-notifications.js DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
svg-sprite-fontawesome.js DEV: Clean up pre-initializers (#18680) 2022-10-26 09:19:54 +08:00
theme-errors-handler.js DEV: Clean up pre-initializers (#18680) 2022-10-26 09:19:54 +08:00
topic-footer-buttons.js DEV: Add bookmark-icon component (#16893) 2022-05-23 15:01:44 +10:00
url-redirects.js DEV: Replace current-user:main with service:current-user 2022-08-02 20:16:11 +01:00
user-tips.js DEV: Clean up all message bus subscriptions (#19268) 2022-12-12 16:32:25 +01:00
webview-background.js DEV: Introduce discourseLater (#17532) 2022-07-17 00:50:49 +02:00
welcome-topic-banner.js DEV: Clean up all message bus subscriptions (#19268) 2022-12-12 16:32:25 +01:00