import { html } from "lit-html";
import { Route, SLUG_REGEX, ID_REGEX, UUID_REGEX } from "./elements/router/Route";
import "./pages/admin-overview/AdminOverviewPage";
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/LibraryPage";
import "./pages/outposts/OutpostListPage";
import "./pages/outposts/OutpostServiceConnectionListPage";
import "./pages/policies/PolicyListPage";
import "./pages/property-mappings/PropertyMappingListPage";
import "./pages/providers/ProviderListPage";
import "./pages/providers/ProviderViewPage";
import "./pages/sources/SourcesListPage";
import "./pages/sources/SourceViewPage";
import "./pages/stages/StageListPage";
import "./pages/stages/InvitationListPage";
import "./pages/stages/PromptListPage";
import "./pages/system-tasks/SystemTaskListPage";
import "./pages/tokens/TokenListPage";
import "./pages/users/UserListPage";
import "./pages/users/UserSettingsPage";
import "./pages/generic/SiteShell";
export const ROUTES: Route[] = [
// Prevent infinite Shell loops
new Route(new RegExp("^/$")).redirect("/library"),
new Route(new RegExp("^#.*")).redirect("/library"),
new Route(new RegExp("^/library$"), html``),
new Route(new RegExp("^/administration/overview$"), 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("^/policy/policies$"), html``),
new Route(new RegExp("^/identity/groups$"), html``),
new Route(new RegExp("^/identity/users$"), html``),
new Route(new RegExp("^/core/tokens$"), 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("^/core/property-mappings$"), html``),
new Route(new RegExp("^/outpost/outposts$"), html``),
new Route(new RegExp("^/outpost/service-connections$"), html``),
new Route(new RegExp("^/crypto/certificates$"), html``),
new Route(new RegExp("^/user$"), html``),
];