2019-10-22 21:46:10 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2019-10-30 03:23:50 +08:00
|
|
|
import EmberObject from "@ember/object";
|
2016-07-01 01:55:44 +08:00
|
|
|
import { ajax } from "discourse/lib/ajax";
|
2019-10-22 21:46:10 +08:00
|
|
|
|
|
|
|
export default DiscourseRoute.extend({
|
2021-11-13 21:01:55 +08:00
|
|
|
model() {
|
2016-07-01 01:55:44 +08:00
|
|
|
return ajax("/admin/customize/emojis.json").then(function (emojis) {
|
2014-12-23 08:12:26 +08:00
|
|
|
return emojis.map(function (emoji) {
|
2019-10-30 03:23:50 +08:00
|
|
|
return EmberObject.create(emoji);
|
2014-12-23 08:12:26 +08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|