discourse/plugins/styleguide
David Taylor 1844bde57c
FIX: Allow mobile-nav to work without loading transitions (#12184)
Previously, the `{{mobile-nav}}` component required a `currentRouteName` property, passed from the router service. It would observe changes in this property, and update the UI accordingly.

If we change between routes which have the same `currentRouteName` (e.g. two different group message inboxes), then the `currentRouteName` does not change and does not trigger the observer. Currently in core, we are relying on the fact that currentRouteName temporarily enters a `.loading` substate during a transition. This will change when we remove the loading substate in the near future.

This commit refactors `{{mobile-nav}}` to inject the router directly, and use the `routeDidChange` event instead of an observer. The change is backwards compatible, but plugins passing the old `currentPath` property will be shown a deprecation notice.
2021-02-23 11:16:40 +00:00
..
app/controllers/styleguide
assets FIX: Allow mobile-nav to work without loading transitions (#12184) 2021-02-23 11:16:40 +00:00
config Update translations (#12097) 2021-02-16 15:24:37 +01:00
lib/styleguide
public/images
spec/integration DEV: load styleguide assets only when needed (#10918) 2020-10-14 16:29:40 +02:00
plugin.rb DEV: load styleguide assets only when needed (#10918) 2020-10-14 16:29:40 +02:00
README.md
screenshot.png

styleguide

Adds a URL of /styleguide to discourse that renders widgets in various
configurations to aid in styling.

Screenshot