This plugin is only useful for developers, however, making it core allows us to centralize any component modification in one commit. This integration also adds a new site_setting: `styleguide_admin_only` which allows to enable a styleguide on a live site while restricting visibility to admins only. By default, styleguide is disabled.
12 lines
269 B
JavaScript
12 lines
269 B
JavaScript
import { allCategories } from "discourse/plugins/styleguide/discourse/lib/styleguide";
|
|
|
|
export default Ember.Route.extend({
|
|
model() {
|
|
return allCategories();
|
|
},
|
|
|
|
setupController(controller, categories) {
|
|
controller.set("categories", categories);
|
|
},
|
|
});
|