discourse/app/assets/javascripts/admin/addon/routes/admin-route-map.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

215 lines
5.9 KiB
JavaScript
Raw Normal View History

export default function () {
this.route("admin", { resetNamespace: true }, function () {
2019-04-01 18:39:49 +08:00
this.route("dashboard", { path: "/" }, function () {
this.route("general", { path: "/" });
2019-04-01 18:39:49 +08:00
this.route("admin.dashboardModeration", {
path: "/dashboard/moderation",
resetNamespace: true,
});
2019-04-01 18:39:49 +08:00
this.route("admin.dashboardSecurity", {
path: "/dashboard/security",
resetNamespace: true,
});
2019-04-01 18:39:49 +08:00
this.route("admin.dashboardReports", {
path: "/dashboard/reports",
resetNamespace: true,
});
});
this.route(
"adminSiteSettings",
{ path: "/site_settings", resetNamespace: true },
function () {
this.route("adminSiteSettingsCategory", {
path: "category/:category_id",
resetNamespace: true,
2018-06-15 23:03:24 +08:00
});
}
);
this.route(
"adminEmail",
{ path: "/email", resetNamespace: true },
function () {
2014-02-15 07:50:08 +08:00
this.route("sent");
this.route("skipped");
2016-05-03 05:15:32 +08:00
this.route("bounced");
this.route("received");
this.route("rejected");
this.route("previewDigest", { path: "/preview-digest" });
this.route("advancedTest", { path: "/advanced-test" });
2018-06-15 23:03:24 +08:00
}
);
this.route(
"adminCustomize",
{ path: "/customize", resetNamespace: true },
function () {
this.route("colors", function () {
this.route("show", { path: "/:scheme_id" });
2018-06-15 23:03:24 +08:00
});
this.route(
"adminCustomizeThemes",
{ path: "themes", resetNamespace: true },
function () {
this.route("show", { path: "/:theme_id" });
this.route("edit", { path: "/:theme_id/:target/:field_name/edit" });
2018-06-15 23:03:24 +08:00
}
);
this.route(
"adminSiteText",
{ path: "/site_texts", resetNamespace: true },
function () {
this.route("edit", { path: "/:id" });
2018-06-15 23:03:24 +08:00
}
);
this.route("adminUserFields", {
path: "/user_fields",
resetNamespace: true,
2018-06-15 23:03:24 +08:00
});
this.route("adminEmojis", { path: "/emojis", resetNamespace: true });
this.route("adminPermalinks", {
path: "/permalinks",
resetNamespace: true,
2018-06-15 23:03:24 +08:00
});
this.route("adminEmbedding", {
path: "/embedding",
resetNamespace: true,
2018-06-15 23:03:24 +08:00
});
2013-08-15 22:48:30 +08:00
this.route(
"adminCustomizeEmailTemplates",
{ path: "/email_templates", resetNamespace: true },
function () {
this.route("edit", { path: "/:id" });
2018-06-15 23:03:24 +08:00
}
);
this.route("adminCustomizeRobotsTxt", {
path: "/robots",
resetNamespace: true,
});
this.route(
"adminCustomizeEmailStyle",
{ path: "/email_style", resetNamespace: true },
function () {
this.route("edit", { path: "/:field_name" });
}
);
2023-02-09 03:21:39 +08:00
this.route(
"adminCustomizeFormTemplates",
{ path: "/form-templates", resetNamespace: true },
function () {
this.route("new", { path: "/new" });
this.route("edit", { path: "/:id" });
}
);
this.route(
"adminWatchedWords",
{ path: "/watched_words", resetNamespace: true },
function () {
this.route("index", { path: "/" });
this.route("action", { path: "/action/:action_id" });
}
);
2018-06-15 23:03:24 +08:00
}
);
this.route("adminApi", { path: "/api", resetNamespace: true }, function () {
this.route(
"adminApiKeys",
{ path: "/keys", resetNamespace: true },
function () {
this.route("show", { path: "/:api_key_id" });
this.route("new", { path: "/new" });
}
);
2018-06-15 23:03:24 +08:00
this.route(
"adminWebHooks",
{ path: "/web_hooks", resetNamespace: true },
function () {
this.route("show", { path: "/:web_hook_id" });
this.route("edit", { path: "/:web_hook_id/edit" });
}
);
2013-11-14 03:02:47 +08:00
});
this.route(
"admin.backups",
{ path: "/backups", resetNamespace: true },
function () {
this.route("logs");
2018-06-15 23:03:24 +08:00
}
);
2018-06-15 23:03:24 +08:00
this.route(
"adminReports",
{ path: "/reports", resetNamespace: true },
function () {
this.route("show", { path: ":type" });
}
);
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" });
this.route("screenedUrls", { path: "/screened_urls" });
this.route(
"adminSearchLogs",
{ path: "/search_logs", resetNamespace: true },
function () {
this.route("index", { path: "/" });
this.route("term", { path: "/term" });
2018-06-15 23:03:24 +08:00
}
2014-02-13 12:34:57 +08:00
);
}
);
2018-06-15 23:03:24 +08:00
this.route(
"adminUsers",
{ path: "/users", resetNamespace: true },
2017-09-06 22:21:07 +08:00
function () {
this.route(
2018-06-15 23:03:24 +08:00
"adminUser",
2017-09-06 22:21:07 +08:00
{ path: "/:user_id/:username", resetNamespace: true },
function () {
this.route("badges");
2017-09-06 22:21:07 +08:00
this.route("tl3Requirements", { path: "/tl3_requirements" });
}
);
2018-06-15 23:03:24 +08:00
this.route(
"adminUsersList",
{ path: "/list", resetNamespace: true },
function () {
this.route("show", { path: "/:filter" });
}
2013-08-02 09:30:13 +08:00
);
}
);
2018-06-15 23:03:24 +08:00
this.route(
"adminBadges",
{ path: "/badges", resetNamespace: true },
function () {
this.route("award", { path: "/award/:badge_id" });
this.route("show", { path: "/:badge_id" });
}
);
2018-06-15 23:03:24 +08:00
2016-11-30 17:06:42 +08:00
this.route(
"adminPlugins",
{ path: "/plugins", resetNamespace: true },
function () {
this.route("index", { path: "/" });
}
);
});
}