discourse/test/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
..
acceptance fix test 2015-08-30 09:54:13 +10:00
adapters FIX: remove bookmark from user stream 2015-08-05 12:40:43 +02:00
admin Convert Badges / User Badges to ES6. 2015-08-19 12:09:10 -04:00
components missed a few spots where close-panel was used 2015-08-29 04:04:04 -07:00
controllers UX: Merge notifications and user dropdown 2015-08-28 16:11:40 -04:00
ember ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
fixtures FEATURE: Full height hamburger menu 2015-08-25 16:48:43 -04:00
helpers Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
lib FIX: Update relativeAgeMedium to be consistent with relativeAgeTiny. 2015-08-31 00:14:57 +08:00
mdtest Plain text files do not need to be executable 2015-05-12 13:21:22 +02:00
mixins Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
models Refactor notifications `localStorage` cache into adapter pattern. 2015-08-31 14:12:27 -04:00
views Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
plugin_tests.js.erb Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
test_helper.js Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00