From 1eedebd132ed7b88920c6f5555746d90a0e8cc2b Mon Sep 17 00:00:00 2001 From: Hege Aalvik Date: Fri, 10 Nov 2023 09:22:25 +0100 Subject: [PATCH] feat: routing for service-catalog closes #369 --- apps/service-catalog/app/catalogs/[catalogId]/page.tsx | 7 +++++++ .../[catalogId]/public-services/[serviceId]/edit/page.tsx | 7 +++++++ .../app/catalogs/[catalogId]/public-services/new/page.tsx | 7 +++++++ .../app/catalogs/[catalogId]/public-services/page.tsx | 7 +++++++ .../[catalogId]/services/[serviceId]/edit/page.tsx | 7 +++++++ .../app/catalogs/[catalogId]/services/new/page.tsx | 7 +++++++ .../app/catalogs/[catalogId]/services/page.tsx | 7 +++++++ apps/service-catalog/app/page.tsx | 2 +- libs/types/src/lib/service.ts | 8 ++++++++ 9 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/page.tsx create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/public-services/[serviceId]/edit/page.tsx create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/public-services/new/page.tsx create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/public-services/page.tsx create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/services/[serviceId]/edit/page.tsx create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/services/new/page.tsx create mode 100644 apps/service-catalog/app/catalogs/[catalogId]/services/page.tsx create mode 100644 libs/types/src/lib/service.ts diff --git a/apps/service-catalog/app/catalogs/[catalogId]/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/page.tsx new file mode 100644 index 000000000..b4bf0e3ea --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( +
+

Tjenestekatalog - velg mellom offentlig tjeneste og tjeneste

+
+ ); +} diff --git a/apps/service-catalog/app/catalogs/[catalogId]/public-services/[serviceId]/edit/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/public-services/[serviceId]/edit/page.tsx new file mode 100644 index 000000000..1cfcdd3d1 --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/public-services/[serviceId]/edit/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( +
+

Rediger offentlig tjeneste

+
+ ); +} diff --git a/apps/service-catalog/app/catalogs/[catalogId]/public-services/new/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/public-services/new/page.tsx new file mode 100644 index 000000000..ef3b21ac7 --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/public-services/new/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( +
+

Opprett ny offentlig tjeneste

+
+ ); +} diff --git a/apps/service-catalog/app/catalogs/[catalogId]/public-services/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/public-services/page.tsx new file mode 100644 index 000000000..c3843bd56 --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/public-services/page.tsx @@ -0,0 +1,7 @@ +export default async function PublicServicePage() { + return ( +
+

Offentlig tjenestekatalog

+
+ ); +} diff --git a/apps/service-catalog/app/catalogs/[catalogId]/services/[serviceId]/edit/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/services/[serviceId]/edit/page.tsx new file mode 100644 index 000000000..4f96e071b --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/services/[serviceId]/edit/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( +
+

Rediger tjeneste

+
+ ); +} diff --git a/apps/service-catalog/app/catalogs/[catalogId]/services/new/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/services/new/page.tsx new file mode 100644 index 000000000..ce4e69c02 --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/services/new/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( +
+

Ny tjeneste

+
+ ); +} diff --git a/apps/service-catalog/app/catalogs/[catalogId]/services/page.tsx b/apps/service-catalog/app/catalogs/[catalogId]/services/page.tsx new file mode 100644 index 000000000..63c50af41 --- /dev/null +++ b/apps/service-catalog/app/catalogs/[catalogId]/services/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( +
+

Tjenestekatalog

+
+ ); +} diff --git a/apps/service-catalog/app/page.tsx b/apps/service-catalog/app/page.tsx index d2cddedcd..e516d591b 100644 --- a/apps/service-catalog/app/page.tsx +++ b/apps/service-catalog/app/page.tsx @@ -1,7 +1,7 @@ export default async function Index() { return (
-

Service Catalog

+

Service Catalog - velg mellom offentlig tjeneste og tjeneste

); } diff --git a/libs/types/src/lib/service.ts b/libs/types/src/lib/service.ts new file mode 100644 index 000000000..675ee1fd9 --- /dev/null +++ b/libs/types/src/lib/service.ts @@ -0,0 +1,8 @@ +import { MultiLanguageText } from './language'; + +export interface Service { + id: string; + catalogId: string; + title?: MultiLanguageText; + description?: MultiLanguageText; +}