discourse/app/assets/javascripts
Robin Ward ddf0db0338 Refactor notifications localStorage cache into adapter pattern.
Sometimes you want stale data right away, then refresh it async.
This adds `findStale` to the store for that case. If it returns
an object with `hasResults` you can get the `results` and display
them.

It also returns a `refresh()` method to freshen up the stale data.

To enable `localStorage` support for stale data, just include the
mixin `StaleLocalStorage` into an adapter for that model. This
commit includes a sample of doing that for `Notifications`.
2015-08-31 14:12:27 -04:00
..
admin Nix the grey comparison on color scheme page 2015-08-28 11:43:24 -07:00
defer
discourse Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
docs
ember-addons Ember 1.12 support 2015-08-13 11:14:16 -04:00
locales FEATURE: Localization fallbacks (client) 2015-07-15 10:17:28 -07:00
admin.js.erb Add support for plugins to declare ES6 in the admin bundle 2015-08-17 15:03:55 -04:00
application.js.erb Add support for plugins to declare ES6 in the admin bundle 2015-08-17 15:03:55 -04:00
discourse.js FIX: favicon update broken when favicon lived on a CDN 2015-08-25 11:54:23 +10:00
ember_include.js.erb Ember 1.12 support 2015-08-13 11:14:16 -04:00
env.js Many fixes for Ember 1.9.0 2014-12-17 09:31:40 -05:00
jquery_include.js.erb Ember 1.11 broken WIP 2015-05-11 11:18:37 -04:00
main_include_admin.js FIX: List views in admin were broken 2015-05-11 13:17:12 -04:00
main_include.js Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
pagedown_custom.js FIX: quote whote post should insert at cursor position 2015-02-02 19:08:28 +01:00
preload_store.js Remove deprecated Ember.Deferred 2014-09-24 14:17:29 -04:00
vendor.js FIX: stop disabling default in detect swipe library 2015-08-26 10:26:58 +10:00