2019-10-29 15:23:50 -04:00
|
|
|
import EmberObject from "@ember/object";
|
2016-06-30 13:55:44 -04:00
|
|
|
import { ajax } from "discourse/lib/ajax";
|
2023-10-10 14:38:59 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2019-10-22 09:46:10 -04:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminEmojisRoute extends DiscourseRoute {
|
2024-07-05 16:25:42 -04:00
|
|
|
async model() {
|
|
|
|
const emojis = await ajax("/admin/customize/emojis.json");
|
|
|
|
return emojis.map((emoji) => EmberObject.create(emoji));
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|