From 956d868106bba5d74f251191a5db5988ecfb113f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 28 Mar 2021 16:10:00 +0200 Subject: [PATCH] web: cleanup routes Signed-off-by: Jens Langhammer --- web/src/pages/applications/ApplicationViewPage.ts | 4 ---- web/src/pages/crypto/CertificateKeyPairListPage.ts | 2 +- web/src/pages/events/EventInfoPage.ts | 4 ---- web/src/pages/sources/SourceViewPage.ts | 4 ---- web/src/routes.ts | 8 ++++---- 5 files changed, 5 insertions(+), 17 deletions(-) diff --git a/web/src/pages/applications/ApplicationViewPage.ts b/web/src/pages/applications/ApplicationViewPage.ts index fc888f527..c17119f02 100644 --- a/web/src/pages/applications/ApplicationViewPage.ts +++ b/web/src/pages/applications/ApplicationViewPage.ts @@ -19,10 +19,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css"; @customElement("ak-application-view") export class ApplicationViewPage extends LitElement { - @property() - set args(value: { [key: string]: string }) { - this.applicationSlug = value.slug; - } @property() set applicationSlug(value: string) { diff --git a/web/src/pages/crypto/CertificateKeyPairListPage.ts b/web/src/pages/crypto/CertificateKeyPairListPage.ts index 0cfcf6ca3..8e0cedbb6 100644 --- a/web/src/pages/crypto/CertificateKeyPairListPage.ts +++ b/web/src/pages/crypto/CertificateKeyPairListPage.ts @@ -13,7 +13,7 @@ import { PAGE_SIZE } from "../../constants"; import { AdminURLManager } from "../../api/legacy"; import { DEFAULT_CONFIG } from "../../api/Config"; -@customElement("ak-crypto-certificatekeypair-list") +@customElement("ak-crypto-certificate-list") export class CertificateKeyPairListPage extends TablePage { expandable = true; diff --git a/web/src/pages/events/EventInfoPage.ts b/web/src/pages/events/EventInfoPage.ts index f26ce0186..233755bd8 100644 --- a/web/src/pages/events/EventInfoPage.ts +++ b/web/src/pages/events/EventInfoPage.ts @@ -11,10 +11,6 @@ import "./EventInfo"; @customElement("ak-event-info-page") export class EventInfoPage extends LitElement { - @property() - set args(value: { [key: string]: string }) { - this.eventID = value.id; - } @property() set eventID(value: string) { diff --git a/web/src/pages/sources/SourceViewPage.ts b/web/src/pages/sources/SourceViewPage.ts index aa646f2fa..3a157492f 100644 --- a/web/src/pages/sources/SourceViewPage.ts +++ b/web/src/pages/sources/SourceViewPage.ts @@ -12,10 +12,6 @@ import "./SAMLSourceViewPage"; @customElement("ak-source-view") export class SourceViewPage extends LitElement { - @property() - set args(value: { [key: string]: string }) { - this.sourceSlug = value.slug; - } @property({ type: String }) set sourceSlug(slug: string) { diff --git a/web/src/routes.ts b/web/src/routes.ts index da761ce70..ef93147b2 100644 --- a/web/src/routes.ts +++ b/web/src/routes.ts @@ -44,11 +44,11 @@ export const ROUTES: Route[] = [ }), new Route(new RegExp("^/core/applications$"), html``), new Route(new RegExp(`^/core/applications/(?${SLUG_REGEX})$`)).then((args) => { - return html``; + return html``; }), new Route(new RegExp("^/core/sources$"), html``), new Route(new RegExp(`^/core/sources/(?${SLUG_REGEX})$`)).then((args) => { - return html``; + return html``; }), new Route(new RegExp("^/core/property-mappings$"), html``), new Route(new RegExp("^/core/tokens$"), html``), @@ -67,12 +67,12 @@ export const ROUTES: Route[] = [ }), new Route(new RegExp("^/events/log$"), html``), new Route(new RegExp(`^/events/log/(?${UUID_REGEX})$`)).then((args) => { - return html``; + 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/service-connections$"), html``), - new Route(new RegExp("^/crypto/certificates$"), html``), + new Route(new RegExp("^/crypto/certificates$"), html``), new Route(new RegExp("^/user$"), html``), ];