2019-10-24 00:39:32 +08:00
|
|
|
import Route from "@ember/routing/route";
|
2018-09-10 02:48:08 +08:00
|
|
|
import { emojiUrlFor } from "discourse/lib/text";
|
|
|
|
|
2018-09-07 02:56:00 +08:00
|
|
|
const externalResources = [
|
|
|
|
{
|
|
|
|
key: "admin.customize.theme.beginners_guide_title",
|
|
|
|
link: "https://meta.discourse.org/t/91966",
|
|
|
|
icon: "book",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "admin.customize.theme.developers_guide_title",
|
|
|
|
link: "https://meta.discourse.org/t/93648",
|
|
|
|
icon: "book",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "admin.customize.theme.browse_themes",
|
|
|
|
link: "https://meta.discourse.org/c/theme",
|
2024-09-13 23:50:52 +08:00
|
|
|
icon: "paintbrush",
|
2018-09-07 02:56:00 +08:00
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
export default class AdminCustomizeThemesIndexRoute extends Route {
|
2018-09-08 21:24:11 +08:00
|
|
|
setupController(controller) {
|
2023-03-15 21:17:51 +08:00
|
|
|
super.setupController(...arguments);
|
2017-04-14 03:49:46 +08:00
|
|
|
this.controllerFor("adminCustomizeThemes").set("editingTheme", false);
|
2018-09-10 02:48:08 +08:00
|
|
|
controller.setProperties({
|
|
|
|
externalResources,
|
|
|
|
womanArtistEmojiURL: emojiUrlFor("woman_artist:t5"),
|
|
|
|
});
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
|
|
|
}
|