discourse/app/assets/javascripts/discourse
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
..
adapters Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
components Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
controllers fix the build :fired: 2015-08-31 21:42:31 +05:30
dialects Extract logic for censored-words so that it can be reused. 2015-08-25 22:26:01 +08:00
ember Support resolving models 2015-06-26 12:27:13 -04:00
helpers FIX: user_custom_preferences did not match other outlet names 2015-08-31 11:06:23 -04:00
initializers Migrate search drop down to menu-panel component. 2015-08-28 15:44:24 -04:00
lib Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
mixins Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
models Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
pre-initializers Migrate search drop down to menu-panel component. 2015-08-28 15:44:24 -04:00
routes UX: Merge notifications and user dropdown 2015-08-28 16:11:40 -04:00
services Migrate search drop down to menu-panel component. 2015-08-28 15:44:24 -04:00
templates FEATURE: copy invite link for topic invites 2015-08-31 21:15:15 +05:30
views UX: Combine closed and archived icon. 2015-08-31 09:21:58 +08:00
router.js.es6 Fixes routing in tests 2015-05-11 11:18:38 -04:00