Skip to content

Commit

Permalink
Merge pull request #140 from pwei1018/17166-newpage
Browse files Browse the repository at this point in the history
17166 add redirect url of path /filing
  • Loading branch information
pwei1018 authored Jul 26, 2023
2 parents 9d49276 + fca8942 commit a34fd36
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 37 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ sw.*
*.swp

# Firebase
*.firebase
*.firebase
*.firebaserc
1 change: 1 addition & 0 deletions devops/vaults.env
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions enums/routes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum Routes {
HOME = '/',
DASHBOARD = '/dashboard',
FILING = '/filing',
PPR_MARKETING = '/ppr-marketing',
SIGNIN = '/signin',
SIGNOUT = '/signout',
Expand Down
130 changes: 98 additions & 32 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -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
}
}
4 changes: 3 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bc-registry",
"version": "2.1.0",
"version": "2.1.1",
"private": true,
"scripts": {
"dev": "nuxt",
Expand Down
13 changes: 13 additions & 0 deletions pages/filing.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<v-container></v-container>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend ({
middleware({ $config, redirect }) {
return redirect($config.supportFilingUrl);
}
})
</script>

0 comments on commit a34fd36

Please sign in to comment.