From 8f27ea8dc1fa01755f9eca7a5ba341f23a53fa4c Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 26 Jul 2023 13:58:44 -0700 Subject: [PATCH 1/2] 17166 add redirect url of path /filing --- .env.example | 1 + .gitignore | 3 +- devops/vaults.env | 1 + enums/routes.ts | 1 + firebase.json | 130 ++++++++++++++++++++++++++++++++++------------ nuxt.config.js | 4 +- package.json | 2 +- pages/filing.vue | 13 +++++ 8 files changed, 120 insertions(+), 35 deletions(-) create mode 100644 pages/filing.vue diff --git a/.env.example b/.env.example index 564b583..412607e 100644 --- a/.env.example +++ b/.env.example @@ -26,6 +26,7 @@ NAME_REQUEST_URL="https://dev.names.bcregistry.gov.bc.ca/" ORGBOOK_URL="https://orgbook.gov.bc.ca/" PPR_URL="https://dev.assets.bcregistry.gov.bc.ca/" SITEMINDER_LOGOUT_URL="https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi" +SUPPORT_FILING_URL="https://www2.gov.bc.ca/gov/content?id=93EE4398733C4F68A39C18259D066C7C" #vaults API AUTH_API_URL="https://auth-api-dev.apps.silver.devops.gov.bc.ca" diff --git a/.gitignore b/.gitignore index 7c62906..51c1df3 100644 --- a/.gitignore +++ b/.gitignore @@ -91,4 +91,5 @@ sw.* *.swp # Firebase -*.firebase \ No newline at end of file +*.firebase +*.firebaserc \ No newline at end of file diff --git a/devops/vaults.env b/devops/vaults.env index f7615b3..d6e4e27 100644 --- a/devops/vaults.env +++ b/devops/vaults.env @@ -26,6 +26,7 @@ NAME_REQUEST_URL="op://web-url/$APP_ENV/name-request/NAME_REQUEST_URL" ORGBOOK_URL="op://web-url/$APP_ENV/orgbook/ORGBOOK_URL" PPR_URL="op://web-url/$APP_ENV/ppr-ui/PPR_WEB_URL" SITEMINDER_LOGOUT_URL="op://web-url/$APP_ENV/siteminder/SITEMINDER_LOGOUT_URL" +SUPPORT_FILING_URL="op://web-url/$APP_ENV/bcregistry/SUPPORT_FILING_URL" #vaults API AUTH_API_URL="op://API/$APP_ENV/auth-api/AUTH_API_URL" diff --git a/enums/routes.ts b/enums/routes.ts index c65c435..bbeae9f 100644 --- a/enums/routes.ts +++ b/enums/routes.ts @@ -1,6 +1,7 @@ export enum Routes { HOME = '/', DASHBOARD = '/dashboard', + FILING = '/filing', PPR_MARKETING = '/ppr-marketing', SIGNIN = '/signin', SIGNOUT = '/signout', diff --git a/firebase.json b/firebase.json index a08a2b2..84035a3 100644 --- a/firebase.json +++ b/firebase.json @@ -1,34 +1,100 @@ { - "hosting": - { - "site": "yfthig-dev", - "public": "dist", - "ignore": ["**/devops/**", "**/.*", "**/node_modules/**"], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ], - "headers" : [ - { - "source": "**", - "headers" : [ - { "key" : "Access-Control-Allow-Origin", "value" : "*" }, - { "key" : "X-Frame-Options", "value" : "DENY" }, - { "key" : "X-Content-Type-Options", "value" : "nosniff" }, - { "key" : "X-XSS-Protection", "value" : "1; mode=block" }, - { - "key": "Content-Security-Policy", - "value": "default-src 'self'; frame-src 'self' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; style-src 'self' 'unsafe-inline' *.cloudflare.com *.googleapis.com *.jsdelivr.net; font-src 'self' *.gov.bc.ca *.hotjar.com *.cloudflare.com *.googleapis.com *.gstatic.com *.jsdelivr.net; img-src 'self' data: *.hotjar.com https://*.cac1.pure.cloud; connect-src 'self' *.gov.bc.ca *.launchdarkly.com *.hotjar.com *.postescanada-canadapost.ca *.sentry.io *.apigee.net wss://*.hotjar.com *.hotjar.io https://*.nr-data.net https://shyrka-prod-cac1.s3.ca-central-1.amazonaws.com https://*.newrelic.com https://*.cac1.pure.cloud wss://*.cac1.pure.cloud; manifest-src 'self'; media-src 'self' https://*.cac1.pure.cloud; object-src 'self' https://*.cac1.pure.cloud; child-src 'self' https://*.cac1.pure.cloud;" - }, - { "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate"}, - { "key": "Pragma", "value": "no-cache"}, - { "key": "Referrer-Policy", "value": "no-referrer" }, - { "key": "Feature-Policy", "value": "microphone 'self'" }, - { "key": "Strict-Transport-Security", "value": "max-age=31536000;" } - ] - } - ] - } + "hosting": { + "site": "yfthig-dev", + "public": "dist", + "ignore": [ + "**/devops/**", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ], + "headers": [ + { + "source": "**", + "headers": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Frame-Options", + "value": "DENY" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "Content-Security-Policy", + "value": "default-src 'self'; frame-src 'self' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; style-src 'self' 'unsafe-inline' *.cloudflare.com *.googleapis.com *.jsdelivr.net; font-src 'self' *.gov.bc.ca *.hotjar.com *.cloudflare.com *.googleapis.com *.gstatic.com *.jsdelivr.net; img-src 'self' data: *.hotjar.com https://*.cac1.pure.cloud; connect-src 'self' *.gov.bc.ca *.launchdarkly.com *.hotjar.com *.postescanada-canadapost.ca *.sentry.io *.apigee.net wss://*.hotjar.com *.hotjar.io https://*.nr-data.net https://shyrka-prod-cac1.s3.ca-central-1.amazonaws.com https://*.newrelic.com https://*.cac1.pure.cloud wss://*.cac1.pure.cloud; manifest-src 'self'; media-src 'self' https://*.cac1.pure.cloud; object-src 'self' https://*.cac1.pure.cloud; child-src 'self' https://*.cac1.pure.cloud;" + }, + { + "key": "Cache-Control", + "value": "private, no-cache, no-store, must-revalidate" + }, + { + "key": "Pragma", + "value": "no-cache" + }, + { + "key": "Referrer-Policy", + "value": "no-referrer" + }, + { + "key": "Feature-Policy", + "value": "microphone 'self'" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=31536000;" + } + ] + }, + { + "source": "**/*.@(ico|jpg|jpeg|gif|png|svg|eot|otf|ttf|ttc|woff|woff2)", + "headers": [ + { + "key": "Cache-Control", + "value": "public,max-age=31536000" + } + ] + }, + { + "source": "**/*.@(css|js)", + "headers": [ + { + "key": "Cache-Control", + "value": "public,max-age=31536000" + } + ] + }, + { + "source": "**/*.@(html|json)", + "headers": [ + { + "key": "Cache-Control", + "value": "private, no-cache, no-store, must-revalidate" + } + ] + } + ] + }, + "emulators": { + "hosting": { + "port": 8080 + }, + "ui": { + "enabled": false + }, + "singleProjectMode": true + } } \ No newline at end of file diff --git a/nuxt.config.js b/nuxt.config.js index 9f4397d..381b1ef 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -176,6 +176,7 @@ export default { keycloakAuthUrl: process.env.KEYCLOAK_AUTH_URL, keycloakRealm: process.env.KEYCLOAK_REALM, keycloakClientId: process.env.KEYCLOAK_CLIENTID, + supportFilingUrl: process.env.SUPPORT_FILING_URL, appName: JSON.parse(packageJson).name, appVersion: JSON.parse(packageJson).version, @@ -188,7 +189,8 @@ export default { createBcRegistriesAccount: `${process.env.AUTH_URL}choose-authentication-method`, signinBceidUrl: `${process.env.AUTH_URL}signin/bceid/`, signinBcscUrl: `${process.env.AUTH_URL}signin/bcsc/`, - signinIdirUrl: `${process.env.AUTH_URL}signin/idir/` + signinIdirUrl: `${process.env.AUTH_URL}signin/idir/`, + filing: `${process.env.BCROS_BASE_URL}filing`, }, // Build Configuration: https://go.nuxtjs.dev/config-build diff --git a/package.json b/package.json index c61c047..2536547 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bc-registry", - "version": "2.1.0", + "version": "2.1.1", "private": true, "scripts": { "dev": "nuxt", diff --git a/pages/filing.vue b/pages/filing.vue new file mode 100644 index 0000000..d17e60e --- /dev/null +++ b/pages/filing.vue @@ -0,0 +1,13 @@ + + + \ No newline at end of file From fca894242ee42c411c70300b936faa52d50505b8 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 26 Jul 2023 14:39:22 -0700 Subject: [PATCH 2/2] update package-lock file --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8cc27db..9beadf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bc-registry", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bc-registry", - "version": "2.1.0", + "version": "2.1.1", "dependencies": { "@mdi/font": "6.5.95", "@nuxt/content": "^1.14.0",