discourse/app/assets/javascripts/admin/routes/admin-customize-themes-index.js.es6

32 lines
812 B
Plaintext
Raw Normal View History

import Route from "@ember/routing/route";
2018-09-10 02:48:08 +08:00
import { emojiUrlFor } from "discourse/lib/text";
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",
icon: "paint-brush"
}
];
export default Route.extend({
setupController(controller) {
this._super(...arguments);
this.controllerFor("adminCustomizeThemes").set("editingTheme", false);
2018-09-10 02:48:08 +08:00
controller.setProperties({
externalResources,
womanArtistEmojiURL: emojiUrlFor("woman_artist:t5")
});
2018-06-15 23:03:24 +08:00
}
});