diff --git a/.github/workflows/woo-page-deploy.yml b/.github/workflows/woo-page-deploy.yml index 62da6c9f..3d5f16e4 100644 --- a/.github/workflows/woo-page-deploy.yml +++ b/.github/workflows/woo-page-deploy.yml @@ -2,6 +2,10 @@ name: Deploy the Product Page to GitHub Pages env: # Change these to your preferences any image url can also be a base encoded image GITHUB_PAGES_BRANCH: gh-pages + + # options: "true" | "false" + USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX: "true" + GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }} API_BASE_URL: "https://api.gateway.commonground.nu/api" NL_DESIGN_THEME_CLASSNAME: "conduction-theme" @@ -34,6 +38,7 @@ jobs: uses: SpicyPizza/create-envfile@v2.0 with: envkey_GITHUB_REPOSITORY_NAME: ${{ env.GITHUB_REPOSITORY_NAME }} + envkey_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX: ${{ env.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX }} envkey_GATSBY_API_BASE_URL: ${{ env.API_BASE_URL }} envkey_GATSBY_NL_DESIGN_THEME_CLASSNAME: ${{ env.NL_DESIGN_THEME_CLASSNAME }} envkey_GATSBY_FAVICON_URL: ${{ env.FAVICON_URL }} diff --git a/pwa/gatsby-config.js b/pwa/gatsby-config.js index 1ab649f8..c3ccec87 100644 --- a/pwa/gatsby-config.js +++ b/pwa/gatsby-config.js @@ -3,7 +3,9 @@ require("dotenv").config({ }); module.exports = { - pathPrefix: `/${process.env.GITHUB_REPOSITORY_NAME}`, + pathPrefix: + process.env.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true" ?? + `$/${process.env.GITHUB_REPOSITORY_NAME}`, // we do NOT want to set the prefix if we're using an DNS plugins: [ { resolve: `gatsby-plugin-layout`, diff --git a/pwa/src/data/PublicationType.ts b/pwa/src/data/PublicationType.ts index 7dd3bf36..c7fc79ef 100644 --- a/pwa/src/data/PublicationType.ts +++ b/pwa/src/data/PublicationType.ts @@ -1,38 +1,71 @@ export const TEMP_PUBLICATION_TYPES = [ { - label: "Nieuwsbericht", - value: "nieuwsbericht", + label: "Wetten en algemeen verbindende voorschriften", + value: "wetten en algemeen verbindende voorschriften", }, { - label: "Toespraak", - value: "toespraak", + label: "Overige besluiten van algemene strekking", + value: "overige besluiten van algemene strekking", + }, + { + label: "Ontwerpen van wet- en regelgeving met adviesaanvraag", + value: "ontwerpen van wet- en regelgeving met adviesaanvraag", + }, + { + label: "Organisatie en werkwijze", + value: "organisatie en werkwijze", }, { label: "Bereikbaarheidsgegevens", value: "bereikbaarheidsgegevens", }, + + { + label: "Bij vertegenwoordigende organen ingekomen stukken", + value: "bij vertegenwoordigende organen ingekomen stukken", + }, + { + label: "Vergaderstukken Staten-Generaal", + value: "vergaderstukken Staten-Generaal", + }, + { + label: "Vergaderstukken decentrale overheden", + value: "vergaderstukken decentrale overheden", + }, + { + label: "Agenda's en besluitenlijsten bestuurscolleges", + value: "agenda's en besluitenlijsten bestuurscolleges", + }, + { + label: "Adviezen", + value: "adviezen", + }, + { + label: "Convenanten", + value: "convenanten", + }, { - label: "Agenda/besluitenlijst", - value: "agenda/besluitenlijst", + label: "Jaarplannen en jaarverslagen", + value: "jaarplannen en jaarverslagen", }, { - label: "Convenant", - value: "convenant", + label: "Subsidieverplichtingen anders dan met beschikking", + value: "subsidieverplichtingen anders dan met beschikking", }, { - label: "Dossier na Woo/Wob-verzoek", - value: "dossier na Woo/Wob-verzoek", + label: "Woo-verzoeken en -besluiten", + value: "woo-verzoeken en -besluiten", }, { - label: "Onderzoek", - value: "onderzoek", + label: "Onderzoeksrapporten", + value: "onderzoeksrapporten", }, { - label: "Beschikking", - value: "beschikking", + label: "Beschikkingen", + value: "beschikkingen", }, { - label: "Klacht", - value: "klacht", + label: "Klachtoordelen", + value: "klachtoordelen", }, ];