2019-10-24 01:06:54 +08:00
|
|
|
import Controller from "@ember/controller";
|
2019-03-29 09:59:08 +08:00
|
|
|
import { DEFAULT_PERIOD } from "admin/controllers/admin-search-logs-index";
|
2020-05-14 04:23:41 +08:00
|
|
|
import I18n from "I18n";
|
2019-03-29 09:59:08 +08:00
|
|
|
|
2019-10-24 01:06:54 +08:00
|
|
|
export default Controller.extend({
|
2017-12-20 10:41:31 +08:00
|
|
|
loading: false,
|
|
|
|
term: null,
|
2019-03-29 09:59:08 +08:00
|
|
|
period: DEFAULT_PERIOD,
|
2017-12-20 10:41:31 +08:00
|
|
|
searchType: "all",
|
|
|
|
|
2019-05-28 18:15:12 +08:00
|
|
|
init() {
|
|
|
|
this._super(...arguments);
|
|
|
|
|
|
|
|
this.searchTypeOptions = [
|
|
|
|
{
|
|
|
|
id: "all",
|
|
|
|
name: I18n.t("admin.logs.search_logs.types.all_search_types"),
|
|
|
|
},
|
|
|
|
{ id: "header", name: I18n.t("admin.logs.search_logs.types.header") },
|
|
|
|
{
|
|
|
|
id: "full_page",
|
|
|
|
name: I18n.t("admin.logs.search_logs.types.full_page"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "click_through_only",
|
|
|
|
name: I18n.t("admin.logs.search_logs.types.click_through_only"),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2017-12-20 10:41:31 +08:00
|
|
|
});
|