mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 02:43:38 +08:00
3ad2fd032b
* UX: More additions * UX: more * DEV: Add admin/config/themes route * UX: Use admin config card * syntax merge fixes * cleanup * cleanup * checkbox * more * error * save on click * more * fix setter * DEV: Implement vanilla checkbox * cleanup * UX: save themes as default * DEV: Add component list to card * DEV: Add placeholder for no screenshots * DEV: Fix default theme reactivity Also add content/optionalAction yields to config area card and put the theme user selectable checkbox there, along with adding styles. * DEV: Change to generic "look and feel" config area * DEV: Auto redirect to themes on base look and feel route * UX: Remove computed from sorted themes * linting * UX: Turn update icon into button that routes to settings * DEV: remove unused function * UX: center icons with title * DEV: Lint * UX: Hook up theme preview button * DEV: Minor fixes --------- Co-authored-by: Martin Brennan <martin@discourse.org> Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import I18n from "discourse-i18n";
|
|
|
|
export default class AdminConfigLookAndFeelThemesRoute extends DiscourseRoute {
|
|
async model() {
|
|
const themes = await this.store.findAll("theme");
|
|
return themes.reject((t) => t.component);
|
|
}
|
|
|
|
titleToken() {
|
|
return I18n.t("admin.config_areas.look_and_feel.themes.title");
|
|
}
|
|
}
|