import { html } from "lit";
import { ID_REGEX, Route, SLUG_REGEX, UUID_REGEX } from "./elements/router/Route";
import "./pages/admin-overview/AdminOverviewPage";
import "./pages/admin-overview/DashboardUserPage";
import "./pages/applications/ApplicationListPage";
import "./pages/applications/ApplicationViewPage";
import "./pages/crypto/CertificateKeyPairListPage";
import "./pages/events/EventInfoPage";
import "./pages/events/EventListPage";
import "./pages/events/RuleListPage";
import "./pages/events/TransportListPage";
import "./pages/flows/FlowListPage";
import "./pages/flows/FlowViewPage";
import "./pages/groups/GroupListPage";
import "./pages/groups/GroupViewPage";
import "./pages/outposts/OutpostListPage";
import "./pages/outposts/ServiceConnectionListPage";
import "./pages/policies/PolicyListPage";
import "./pages/policies/reputation/ReputationListPage";
import "./pages/property-mappings/PropertyMappingListPage";
import "./pages/providers/ProviderListPage";
import "./pages/providers/ProviderViewPage";
import "./pages/sources/SourceListPage";
import "./pages/sources/SourceViewPage";
import "./pages/stages/StageListPage";
import "./pages/stages/invitation/InvitationListPage";
import "./pages/stages/prompt/PromptListPage";
import "./pages/system-tasks/SystemTaskListPage";
import "./pages/tenants/TenantListPage";
import "./pages/tokens/TokenListPage";
import "./pages/users/UserListPage";
import "./pages/users/UserViewPage";
export const ROUTES: Route[] = [
// Prevent infinite Shell loops
new Route(new RegExp("^/$")).redirect("/administration/overview"),
new Route(new RegExp("^#.*")).redirect("/administration/overview"),
new Route(new RegExp("^/library$")).redirectRaw("/if/user/"),
new Route(
new RegExp("^/administration/overview$"),
html``,
),
new Route(
new RegExp("^/administration/dashboard/users$"),
html``,
),
new Route(
new RegExp("^/administration/system-tasks$"),
html``,
),
new Route(new RegExp("^/core/providers$"), html``),
new Route(new RegExp(`^/core/providers/(?${ID_REGEX})$`)).then((args) => {
return html``;
}),
new Route(
new RegExp("^/core/applications$"),
html``,
),
new Route(new RegExp(`^/core/applications/(?${SLUG_REGEX})$`)).then((args) => {
return html``;
}),
new Route(new RegExp("^/core/sources$"), html``),
new Route(new RegExp(`^/core/sources/(?${SLUG_REGEX})$`)).then((args) => {
return html``;
}),
new Route(
new RegExp("^/core/property-mappings$"),
html``,
),
new Route(new RegExp("^/core/tokens$"), html``),
new Route(new RegExp("^/core/tenants$"), html``),
new Route(new RegExp("^/policy/policies$"), html``),
new Route(
new RegExp("^/policy/reputation$"),
html``,
),
new Route(new RegExp("^/identity/groups$"), html``),
new Route(new RegExp(`^/identity/groups/(?${UUID_REGEX})$`)).then((args) => {
return html``;
}),
new Route(new RegExp("^/identity/users$"), html``),
new Route(new RegExp(`^/identity/users/(?${ID_REGEX})$`)).then((args) => {
return html``;
}),
new Route(
new RegExp("^/flow/stages/invitations$"),
html``,
),
new Route(
new RegExp("^/flow/stages/prompts$"),
html``,
),
new Route(new RegExp("^/flow/stages$"), html``),
new Route(new RegExp("^/flow/flows$"), html``),
new Route(new RegExp(`^/flow/flows/(?${SLUG_REGEX})$`)).then((args) => {
return html``;
}),
new Route(new RegExp("^/events/log$"), html``),
new Route(new RegExp(`^/events/log/(?${UUID_REGEX})$`)).then((args) => {
return html``;
}),
new Route(
new RegExp("^/events/transports$"),
html``,
),
new Route(new RegExp("^/events/rules$"), html``),
new Route(new RegExp("^/outpost/outposts$"), html``),
new Route(
new RegExp("^/outpost/integrations$"),
html``,
),
new Route(
new RegExp("^/crypto/certificates$"),
html``,
),
];