2016-11-29 13:07:53 -05:00
|
|
|
export default function () {
|
|
|
|
this.route("admin", { resetNamespace: true }, function () {
|
2019-04-01 12:39:49 +02:00
|
|
|
this.route("dashboard", { path: "/" }, function () {
|
2018-07-26 14:59:28 -04:00
|
|
|
this.route("general", { path: "/" });
|
2019-04-01 12:39:49 +02:00
|
|
|
this.route("admin.dashboardModeration", {
|
2018-07-26 14:59:28 -04:00
|
|
|
path: "/dashboard/moderation",
|
|
|
|
resetNamespace: true,
|
|
|
|
});
|
2019-04-01 12:39:49 +02:00
|
|
|
this.route("admin.dashboardSecurity", {
|
2018-12-14 13:47:59 +01:00
|
|
|
path: "/dashboard/security",
|
|
|
|
resetNamespace: true,
|
|
|
|
});
|
2019-04-01 12:39:49 +02:00
|
|
|
this.route("admin.dashboardReports", {
|
2018-12-19 14:44:43 +01:00
|
|
|
path: "/dashboard/reports",
|
|
|
|
resetNamespace: true,
|
|
|
|
});
|
2018-07-19 14:33:11 -04:00
|
|
|
});
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"adminSiteSettings",
|
|
|
|
{ path: "/site_settings", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("adminSiteSettingsCategory", {
|
|
|
|
path: "category/:category_id",
|
|
|
|
resetNamespace: true,
|
2018-06-15 17:03:24 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2013-06-03 16:12:24 -04:00
|
|
|
this.route(
|
2016-11-02 13:38:54 -04:00
|
|
|
"adminEmail",
|
|
|
|
{ path: "/email", resetNamespace: true },
|
2017-04-12 10:52:52 -04:00
|
|
|
function () {
|
2014-02-15 00:50:08 +01:00
|
|
|
this.route("sent");
|
2014-02-14 13:06:21 -05:00
|
|
|
this.route("skipped");
|
2016-05-02 23:15:32 +02:00
|
|
|
this.route("bounced");
|
2016-01-19 00:57:55 +01:00
|
|
|
this.route("received");
|
|
|
|
this.route("rejected");
|
2013-06-03 16:12:24 -04:00
|
|
|
this.route("previewDigest", { path: "/preview-digest" });
|
2018-11-29 01:03:50 +02:00
|
|
|
this.route("advancedTest", { path: "/advanced-test" });
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
2017-04-12 10:52:52 -04:00
|
|
|
"adminCustomize",
|
2016-11-02 13:38:54 -04:00
|
|
|
{ path: "/customize", resetNamespace: true },
|
|
|
|
function () {
|
2017-04-12 10:52:52 -04:00
|
|
|
this.route("colors", function () {
|
|
|
|
this.route("show", { path: "/:scheme_id" });
|
2018-06-15 17:03:24 +02:00
|
|
|
});
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
2017-04-12 10:52:52 -04:00
|
|
|
"adminCustomizeThemes",
|
2024-04-17 11:45:59 +10:00
|
|
|
{ path: "/:type", resetNamespace: true },
|
2016-11-02 13:38:54 -04:00
|
|
|
function () {
|
2024-03-06 08:24:29 +08:00
|
|
|
this.route("show", { path: "/:theme_id" }, function () {
|
|
|
|
this.route("schema", { path: "schema/:setting_name" });
|
|
|
|
});
|
2017-04-12 10:52:52 -04:00
|
|
|
this.route("edit", { path: "/:theme_id/:target/:field_name/edit" });
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-09-19 16:43:06 +08:00
|
|
|
this.route(
|
2016-11-02 13:38:54 -04:00
|
|
|
"adminSiteText",
|
|
|
|
{ path: "/site_texts", resetNamespace: true },
|
|
|
|
function () {
|
2015-11-12 16:08:19 -05:00
|
|
|
this.route("edit", { path: "/:id" });
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route("adminUserFields", {
|
|
|
|
path: "/user_fields",
|
|
|
|
resetNamespace: true,
|
2018-06-15 17:03:24 +02:00
|
|
|
});
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route("adminEmojis", { path: "/emojis", resetNamespace: true });
|
|
|
|
this.route("adminPermalinks", {
|
|
|
|
path: "/permalinks",
|
|
|
|
resetNamespace: true,
|
2018-06-15 17:03:24 +02:00
|
|
|
});
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route("adminEmbedding", {
|
|
|
|
path: "/embedding",
|
|
|
|
resetNamespace: true,
|
2018-06-15 17:03:24 +02:00
|
|
|
});
|
2013-08-15 10:48:30 -04:00
|
|
|
this.route(
|
2016-11-02 13:38:54 -04:00
|
|
|
"adminCustomizeEmailTemplates",
|
|
|
|
{ path: "/email_templates", resetNamespace: true },
|
2017-12-20 08:11:31 +05:30
|
|
|
function () {
|
2015-11-12 16:08:19 -05:00
|
|
|
this.route("edit", { path: "/:id" });
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
|
|
|
);
|
2019-07-15 20:47:44 +03:00
|
|
|
this.route("adminCustomizeRobotsTxt", {
|
|
|
|
path: "/robots",
|
|
|
|
resetNamespace: true,
|
|
|
|
});
|
2019-07-30 15:05:08 -04:00
|
|
|
this.route(
|
|
|
|
"adminCustomizeEmailStyle",
|
|
|
|
{ path: "/email_style", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("edit", { path: "/:field_name" });
|
|
|
|
}
|
|
|
|
);
|
2023-02-08 11:21:39 -08:00
|
|
|
this.route(
|
|
|
|
"adminCustomizeFormTemplates",
|
|
|
|
{ path: "/form-templates", resetNamespace: true },
|
|
|
|
function () {
|
2023-11-29 12:26:31 +01:00
|
|
|
this.route("new");
|
2023-02-08 11:21:39 -08:00
|
|
|
this.route("edit", { path: "/:id" });
|
|
|
|
}
|
|
|
|
);
|
2021-04-01 11:44:17 +05:30
|
|
|
this.route(
|
|
|
|
"adminWatchedWords",
|
|
|
|
{ path: "/watched_words", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("action", { path: "/action/:action_id" });
|
|
|
|
}
|
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route("adminApi", { path: "/api", resetNamespace: true }, function () {
|
2019-11-05 14:10:23 +00:00
|
|
|
this.route(
|
|
|
|
"adminApiKeys",
|
|
|
|
{ path: "/keys", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("show", { path: "/:api_key_id" });
|
2023-11-29 12:26:31 +01:00
|
|
|
this.route("new");
|
2019-11-05 14:10:23 +00:00
|
|
|
}
|
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"adminWebHooks",
|
|
|
|
{ path: "/web_hooks", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("show", { path: "/:web_hook_id" });
|
2022-12-13 01:53:08 +01:00
|
|
|
this.route("edit", { path: "/:web_hook_id/edit" });
|
2016-11-02 13:38:54 -04:00
|
|
|
}
|
|
|
|
);
|
2013-11-13 14:02:47 -05:00
|
|
|
});
|
2013-04-04 12:59:44 -04:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"admin.backups",
|
|
|
|
{ path: "/backups", resetNamespace: true },
|
|
|
|
function () {
|
2014-02-14 13:06:21 -05:00
|
|
|
this.route("logs");
|
2024-08-20 09:59:43 +10:00
|
|
|
this.route("settings");
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
2016-01-19 00:57:55 +01:00
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
|
2018-06-18 12:31:56 +02:00
|
|
|
this.route(
|
|
|
|
"adminReports",
|
|
|
|
{ path: "/reports", resetNamespace: true },
|
|
|
|
function () {
|
2024-03-20 14:23:18 +11:00
|
|
|
this.route("index", { path: "/" });
|
2018-06-18 12:31:56 +02:00
|
|
|
this.route("show", { path: ":type" });
|
|
|
|
}
|
|
|
|
);
|
2013-06-03 16:12:24 -04:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"adminLogs",
|
|
|
|
{ path: "/logs", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("staffActionLogs", { path: "/staff_action_logs" });
|
|
|
|
this.route("screenedEmails", { path: "/screened_emails" });
|
|
|
|
this.route("screenedIpAddresses", { path: "/screened_ip_addresses" });
|
2015-11-12 16:08:19 -05:00
|
|
|
this.route("screenedUrls", { path: "/screened_urls" });
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"adminSearchLogs",
|
|
|
|
{ path: "/search_logs", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("index", { path: "/" });
|
2023-11-29 12:26:31 +01:00
|
|
|
this.route("term");
|
2018-06-15 17:03:24 +02:00
|
|
|
}
|
2014-02-12 20:34:57 -08:00
|
|
|
);
|
2016-11-02 13:38:54 -04:00
|
|
|
}
|
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"adminUsers",
|
|
|
|
{ path: "/users", resetNamespace: true },
|
2017-09-06 10:21:07 -04:00
|
|
|
function () {
|
|
|
|
this.route(
|
2018-06-15 17:03:24 +02:00
|
|
|
"adminUser",
|
2017-09-06 10:21:07 -04:00
|
|
|
{ path: "/:user_id/:username", resetNamespace: true },
|
2016-11-02 13:38:54 -04:00
|
|
|
function () {
|
2013-10-21 14:49:51 -04:00
|
|
|
this.route("badges");
|
2017-09-06 10:21:07 -04:00
|
|
|
this.route("tl3Requirements", { path: "/tl3_requirements" });
|
2013-02-22 15:41:12 -05:00
|
|
|
}
|
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route(
|
|
|
|
"adminUsersList",
|
|
|
|
{ path: "/list", resetNamespace: true },
|
2017-12-20 08:11:31 +05:30
|
|
|
function () {
|
|
|
|
this.route("show", { path: "/:filter" });
|
2017-07-31 17:06:26 -04:00
|
|
|
}
|
2013-08-01 21:30:13 -04:00
|
|
|
);
|
|
|
|
}
|
2014-03-19 19:57:21 +05:30
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
|
2014-03-19 19:57:21 +05:30
|
|
|
this.route(
|
2016-11-02 13:38:54 -04:00
|
|
|
"adminBadges",
|
|
|
|
{ path: "/badges", resetNamespace: true },
|
|
|
|
function () {
|
2020-01-13 11:20:26 -03:00
|
|
|
this.route("award", { path: "/award/:badge_id" });
|
2014-10-17 14:27:40 -04:00
|
|
|
this.route("show", { path: "/:badge_id" });
|
|
|
|
}
|
|
|
|
);
|
2018-06-15 17:03:24 +02:00
|
|
|
|
2024-05-29 14:39:58 +10:00
|
|
|
this.route(
|
2024-06-03 10:18:14 +03:00
|
|
|
"adminConfig",
|
|
|
|
{ path: "/config", resetNamespace: true },
|
2024-05-29 14:39:58 +10:00
|
|
|
function () {
|
2024-06-03 10:18:14 +03:00
|
|
|
this.route("flags", function () {
|
|
|
|
this.route("index", { path: "/" });
|
2024-07-03 08:45:37 +10:00
|
|
|
this.route("new");
|
|
|
|
this.route("edit", { path: "/:flag_id" });
|
2024-08-27 09:47:19 +10:00
|
|
|
this.route("settings");
|
2024-06-03 10:18:14 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
this.route("about");
|
2024-05-29 14:39:58 +10:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-11-30 14:36:42 +05:30
|
|
|
this.route(
|
|
|
|
"adminPlugins",
|
|
|
|
{ path: "/plugins", resetNamespace: true },
|
|
|
|
function () {
|
|
|
|
this.route("index", { path: "/" });
|
2024-03-13 13:15:12 +10:00
|
|
|
this.route("show", { path: "/:plugin_id" }, function () {
|
|
|
|
this.route("settings");
|
|
|
|
});
|
2016-11-30 14:36:42 +05:30
|
|
|
}
|
|
|
|
);
|
2024-03-20 14:23:18 +11:00
|
|
|
|
|
|
|
this.route("admin.whatsNew", {
|
|
|
|
path: "/whats-new",
|
|
|
|
resetNamespace: true,
|
|
|
|
});
|
2016-11-29 13:07:53 -05:00
|
|
|
});
|
2015-01-30 13:29:32 -05:00
|
|
|
}
|