@sbc-connect/nuxt-base 0.0.0-test-ld-20260520212549
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +11 -0
- package/CHANGELOG.md +338 -0
- package/LICENSE +28 -0
- package/README.md +55 -0
- package/app/app.config.ts +441 -0
- package/app/app.vue +18 -0
- package/app/assets/css/connect-base-layout.css +13 -0
- package/app/assets/css/connect-base-tw.css +303 -0
- package/app/components/Connect/Address/Display.vue +84 -0
- package/app/components/Connect/BCGovLogo.vue +42 -0
- package/app/components/Connect/Breadcrumb.vue +68 -0
- package/app/components/Connect/ButtonControl/Buttons.vue +28 -0
- package/app/components/Connect/ButtonControl/Index.vue +66 -0
- package/app/components/Connect/ButtonControl/Wrapper.vue +18 -0
- package/app/components/Connect/Contact/Display.vue +65 -0
- package/app/components/Connect/FloatingLabel.vue +67 -0
- package/app/components/Connect/Footer.vue +99 -0
- package/app/components/Connect/Header/LogoHomeLink.vue +20 -0
- package/app/components/Connect/Header/WhatsNew.vue +36 -0
- package/app/components/Connect/Header/Wrapper.vue +14 -0
- package/app/components/Connect/Header/index.vue +17 -0
- package/app/components/Connect/I18n/Helper.vue +40 -0
- package/app/components/Connect/Input.vue +69 -0
- package/app/components/Connect/InputDate.vue +104 -0
- package/app/components/Connect/Layout/Index.vue +25 -0
- package/app/components/Connect/Layout/Sidebar.vue +38 -0
- package/app/components/Connect/LocaleSelect.vue +37 -0
- package/app/components/Connect/Modal/Error.vue +76 -0
- package/app/components/Connect/Modal/index.vue +51 -0
- package/app/components/Connect/PageSection.vue +57 -0
- package/app/components/Connect/Select.vue +28 -0
- package/app/components/Connect/Slideover/WhatsNew.vue +61 -0
- package/app/components/Connect/Spinner.vue +91 -0
- package/app/components/Connect/SystemBanner.vue +53 -0
- package/app/components/Connect/Textarea.vue +27 -0
- package/app/components/Connect/Tombstone/Item.vue +51 -0
- package/app/components/Connect/Tombstone/index.vue +123 -0
- package/app/components/Connect/Transition/Collapse.vue +39 -0
- package/app/components/Connect/Transition/Fade.vue +31 -0
- package/app/components/HelloWorld/Index.vue +14 -0
- package/app/composables/useConnectButtonControl.ts +146 -0
- package/app/composables/useConnectLaunchDarkly.ts +173 -0
- package/app/composables/useConnectModal.ts +13 -0
- package/app/composables/useConnectTombstone.ts +25 -0
- package/app/coverage/app/app.config.ts.html +1408 -0
- package/app/coverage/app/app.vue.html +139 -0
- package/app/coverage/app/components/Connect/Address/Display.vue.html +337 -0
- package/app/coverage/app/components/Connect/Address/index.html +116 -0
- package/app/coverage/app/components/Connect/BCGovLogo.vue.html +211 -0
- package/app/coverage/app/components/Connect/Breadcrumb.vue.html +289 -0
- package/app/coverage/app/components/Connect/ButtonControl/Buttons.vue.html +166 -0
- package/app/coverage/app/components/Connect/ButtonControl/Index.vue.html +283 -0
- package/app/coverage/app/components/Connect/ButtonControl/Wrapper.vue.html +139 -0
- package/app/coverage/app/components/Connect/ButtonControl/index.html +146 -0
- package/app/coverage/app/components/Connect/Contact/Display.vue.html +280 -0
- package/app/coverage/app/components/Connect/Contact/index.html +116 -0
- package/app/coverage/app/components/Connect/FloatingLabel.vue.html +286 -0
- package/app/coverage/app/components/Connect/Footer.vue.html +382 -0
- package/app/coverage/app/components/Connect/Header/LogoHomeLink.vue.html +145 -0
- package/app/coverage/app/components/Connect/Header/WhatsNew.vue.html +193 -0
- package/app/coverage/app/components/Connect/Header/Wrapper.vue.html +127 -0
- package/app/coverage/app/components/Connect/Header/index.html +161 -0
- package/app/coverage/app/components/Connect/Header/index.vue.html +136 -0
- package/app/coverage/app/components/Connect/I18n/Helper.vue.html +205 -0
- package/app/coverage/app/components/Connect/I18n/index.html +116 -0
- package/app/coverage/app/components/Connect/Input.vue.html +262 -0
- package/app/coverage/app/components/Connect/InputDate.vue.html +406 -0
- package/app/coverage/app/components/Connect/Layout/Index.vue.html +160 -0
- package/app/coverage/app/components/Connect/Layout/Sidebar.vue.html +199 -0
- package/app/coverage/app/components/Connect/Layout/index.html +131 -0
- package/app/coverage/app/components/Connect/LocaleSelect.vue.html +196 -0
- package/app/coverage/app/components/Connect/Modal/Error.vue.html +313 -0
- package/app/coverage/app/components/Connect/Modal/index.html +131 -0
- package/app/coverage/app/components/Connect/Modal/index.vue.html +238 -0
- package/app/coverage/app/components/Connect/PageSection.vue.html +256 -0
- package/app/coverage/app/components/Connect/Select.vue.html +169 -0
- package/app/coverage/app/components/Connect/Slideover/WhatsNew.vue.html +268 -0
- package/app/coverage/app/components/Connect/Slideover/index.html +116 -0
- package/app/coverage/app/components/Connect/Spinner.vue.html +358 -0
- package/app/coverage/app/components/Connect/SystemBanner.vue.html +244 -0
- package/app/coverage/app/components/Connect/Textarea.vue.html +160 -0
- package/app/coverage/app/components/Connect/Tombstone/Item.vue.html +238 -0
- package/app/coverage/app/components/Connect/Tombstone/index.html +131 -0
- package/app/coverage/app/components/Connect/Tombstone/index.vue.html +454 -0
- package/app/coverage/app/components/Connect/Transition/Collapse.vue.html +202 -0
- package/app/coverage/app/components/Connect/Transition/Fade.vue.html +178 -0
- package/app/coverage/app/components/Connect/Transition/index.html +131 -0
- package/app/coverage/app/components/Connect/index.html +281 -0
- package/app/coverage/app/components/HelloWorld/Index.vue.html +127 -0
- package/app/coverage/app/components/HelloWorld/index.html +116 -0
- package/app/coverage/app/composables/index.html +161 -0
- package/app/coverage/app/composables/useConnectButtonControl.ts.html +523 -0
- package/app/coverage/app/composables/useConnectLaunchDarkly.ts.html +595 -0
- package/app/coverage/app/composables/useConnectModal.ts.html +124 -0
- package/app/coverage/app/composables/useConnectTombstone.ts.html +160 -0
- package/app/coverage/app/error.vue.html +247 -0
- package/app/coverage/app/index.html +146 -0
- package/app/coverage/app/interfaces/connect-address.ts.html +121 -0
- package/app/coverage/app/interfaces/connect-breadcrumb.ts.html +100 -0
- package/app/coverage/app/interfaces/connect-button-control.ts.html +151 -0
- package/app/coverage/app/interfaces/connect-contact-item.ts.html +103 -0
- package/app/coverage/app/interfaces/connect-modal.ts.html +100 -0
- package/app/coverage/app/interfaces/connect-tombstone.ts.html +208 -0
- package/app/coverage/app/interfaces/connect-whatsnew.ts.html +127 -0
- package/app/coverage/app/interfaces/index.html +206 -0
- package/app/coverage/app/layouts/ConnectBase.vue.html +100 -0
- package/app/coverage/app/layouts/index.html +116 -0
- package/app/coverage/app/plugins/index.html +146 -0
- package/app/coverage/app/plugins/maska.client.ts.html +115 -0
- package/app/coverage/app/plugins/sanitize.client.ts.html +151 -0
- package/app/coverage/app/plugins/whats-new.client.ts.html +220 -0
- package/app/coverage/app/types/dates.ts.html +136 -0
- package/app/coverage/app/types/index.html +116 -0
- package/app/coverage/app/utils/appendUrlParam.ts.html +97 -0
- package/app/coverage/app/utils/getErrorMessage.ts.html +211 -0
- package/app/coverage/app/utils/getErrorStatus.ts.html +196 -0
- package/app/coverage/app/utils/index.html +191 -0
- package/app/coverage/app/utils/logFetchError.ts.html +193 -0
- package/app/coverage/app/utils/parseSpecialCharacters.ts.html +160 -0
- package/app/coverage/app/utils/setBreadcrumbs.ts.html +100 -0
- package/app/coverage/base.css +224 -0
- package/app/coverage/block-navigation.js +87 -0
- package/app/coverage/clover.xml +2094 -0
- package/app/coverage/coverage-final.json +58 -0
- package/app/coverage/favicon.png +0 -0
- package/app/coverage/index.html +386 -0
- package/app/coverage/prettify.css +1 -0
- package/app/coverage/prettify.js +2 -0
- package/app/coverage/sort-arrow-sprite.png +0 -0
- package/app/coverage/sorter.js +210 -0
- package/app/error.vue +54 -0
- package/app/interfaces/connect-address.ts +12 -0
- package/app/interfaces/connect-breadcrumb.ts +5 -0
- package/app/interfaces/connect-button-control.ts +23 -0
- package/app/interfaces/connect-contact-item.ts +6 -0
- package/app/interfaces/connect-modal.ts +5 -0
- package/app/interfaces/connect-tombstone.ts +41 -0
- package/app/interfaces/connect-whatsnew.ts +14 -0
- package/app/layouts/ConnectBase.vue +5 -0
- package/app/plugins/maska.client.ts +10 -0
- package/app/plugins/sanitize.client.ts +22 -0
- package/app/plugins/whats-new.client.ts +45 -0
- package/app/spa-loading-template.html +61 -0
- package/app/types/base-app-config.d.ts +15 -0
- package/app/types/base-directives.d.ts +7 -0
- package/app/types/base-page-meta.d.ts +8 -0
- package/app/types/dates.ts +17 -0
- package/app/utils/appendUrlParam.ts +4 -0
- package/app/utils/getErrorMessage.ts +42 -0
- package/app/utils/getErrorStatus.ts +37 -0
- package/app/utils/logFetchError.ts +36 -0
- package/app/utils/parseSpecialCharacters.ts +25 -0
- package/app/utils/setBreadcrumbs.ts +7 -0
- package/firebase.json +34 -0
- package/i18n/locales/en-CA.ts +70 -0
- package/i18n/locales/fr-CA.ts +96 -0
- package/nuxt.config.ts +147 -0
- package/package.json +49 -0
- package/public/BCGovLogo/gov_bc_logo_horiz_en.png +0 -0
- package/public/BCGovLogo/gov_bc_logo_horiz_fr.png +0 -0
- package/public/BCGovLogo/gov_bc_logo_vert_en.png +0 -0
- package/public/BCGovLogo/gov_bc_logo_vert_fr.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/fonts/BCSans/BCSans-Bold.woff +0 -0
- package/public/fonts/BCSans/BCSans-Bold.woff2 +0 -0
- package/public/fonts/BCSans/BCSans-BoldItalic.woff +0 -0
- package/public/fonts/BCSans/BCSans-BoldItalic.woff2 +0 -0
- package/public/fonts/BCSans/BCSans-Italic.woff +0 -0
- package/public/fonts/BCSans/BCSans-Italic.woff2 +0 -0
- package/public/fonts/BCSans/BCSans-Regular.woff +0 -0
- package/public/fonts/BCSans/BCSans-Regular.woff2 +0 -0
- package/public/fonts/BCSans/LICENSE_OFL.txt +94 -0
- package/test-results/.last-run.json +7 -0
- package/test-results/error-page-404-Error-vue-D-1eb51-cted-visuals-with-404-error-Desktop-Chrome/error-context.md +135 -0
- package/test-results/error-page-404-Error-vue-D-1eb51-cted-visuals-with-404-error-Desktop-Chrome/test-failed-1.png +0 -0
- package/test-results/error-page-404-Error-vue-D-1eb51-cted-visuals-with-404-error-Desktop-Chrome/trace.zip +0 -0
- package/test-results/error-page-500-Error-vue-D-8c2cf-cted-visuals-with-500-error-Desktop-Chrome/error-context.md +135 -0
- package/test-results/error-page-500-Error-vue-D-8c2cf-cted-visuals-with-500-error-Desktop-Chrome/test-failed-1.png +0 -0
- package/test-results/error-page-500-Error-vue-D-8c2cf-cted-visuals-with-500-error-Desktop-Chrome/trace.zip +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
export function logFetchError(error: unknown, message: string) {
|
|
3
|
+
let status = 'Unknown Status'
|
|
4
|
+
let statusText = 'Unknown Status Text'
|
|
5
|
+
let hasMessage = false
|
|
6
|
+
|
|
7
|
+
if (error && typeof error === 'object' && 'response' in error && typeof (error as any).response === 'object') {
|
|
8
|
+
const response = (error as any).response
|
|
9
|
+
|
|
10
|
+
if ('status' in response && typeof response.status === 'number') {
|
|
11
|
+
status = response.status
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if ('statusText' in response && typeof response.statusText === 'string') {
|
|
15
|
+
statusText = response.statusText
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (
|
|
19
|
+
'data' in error
|
|
20
|
+
&& (error as any).data
|
|
21
|
+
&& typeof (error as any).data === 'object'
|
|
22
|
+
&& 'message' in (error as any).data
|
|
23
|
+
) {
|
|
24
|
+
statusText = statusText || (error as any).data.message
|
|
25
|
+
hasMessage = (error as any).data.message !== undefined
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
console.error(
|
|
29
|
+
`${message}: ${status} - ${statusText} ${
|
|
30
|
+
hasMessage ? `--- ${JSON.stringify((error as any).data)}` : ''
|
|
31
|
+
}`
|
|
32
|
+
)
|
|
33
|
+
} else {
|
|
34
|
+
console.error(message)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a string to decode HTML entities and remove HTML tags.
|
|
3
|
+
*
|
|
4
|
+
* @param text The string to parse.
|
|
5
|
+
* @param fallback The fallback text to return if the input is null or undefined.
|
|
6
|
+
* @returns The sanitized string.
|
|
7
|
+
*/
|
|
8
|
+
export function parseSpecialCharacters(text: string | undefined | null, fallback = 'N/A'): string {
|
|
9
|
+
// Return fallback text if the input is null or undefined.
|
|
10
|
+
if (text === null || text === undefined) {
|
|
11
|
+
return fallback
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const inputText = String(text)
|
|
15
|
+
|
|
16
|
+
try {
|
|
17
|
+
const parser = new DOMParser()
|
|
18
|
+
const doc = parser.parseFromString(inputText, 'text/html')
|
|
19
|
+
|
|
20
|
+
return doc.body.textContent || fallback
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error(`Error parsing special characters in: ${inputText}`, error)
|
|
23
|
+
return fallback
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
+
export function setBreadcrumbs(breadcrumbs: ConnectBreadcrumb[]) {
|
|
3
|
+
const route = useRoute()
|
|
4
|
+
// @ts-ignore - Type instantiation is excessively deep and possibly infinite.
|
|
5
|
+
// ignore instead of expect error due to local TS vs typecheck variance
|
|
6
|
+
route.meta.breadcrumbs = breadcrumbs
|
|
7
|
+
}
|
package/firebase.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hosting":
|
|
3
|
+
{
|
|
4
|
+
"site": "connect-nuxt-layer-base-dev",
|
|
5
|
+
"public": "dist",
|
|
6
|
+
"ignore": ["**/devops/**", "**/.*", "**/node_modules/**"],
|
|
7
|
+
"rewrites": [
|
|
8
|
+
{
|
|
9
|
+
"source": "**",
|
|
10
|
+
"destination": "/index.html"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"headers" : [
|
|
14
|
+
{
|
|
15
|
+
"source": "**",
|
|
16
|
+
"headers" : [
|
|
17
|
+
{ "key" : "Access-Control-Allow-Origin", "value" : "*" },
|
|
18
|
+
{ "key" : "X-Frame-Options", "value" : "DENY" },
|
|
19
|
+
{ "key" : "X-Content-Type-Options", "value" : "nosniff" },
|
|
20
|
+
{ "key" : "X-XSS-Protection", "value" : "1; mode=block" },
|
|
21
|
+
{
|
|
22
|
+
"key": "Content-Security-Policy",
|
|
23
|
+
"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 https://ws1.postescanada-canadapost.ca; connect-src 'self' https://api.iconify.design *.gov.bc.ca *.launchdarkly.com *.run.app *.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;"
|
|
24
|
+
},
|
|
25
|
+
{ "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate"},
|
|
26
|
+
{ "key": "Pragma", "value": "no-cache"},
|
|
27
|
+
{ "key": "Referrer-Policy", "value": "no-referrer" },
|
|
28
|
+
{ "key": "Feature-Policy", "value": "microphone 'self'" },
|
|
29
|
+
{ "key": "Strict-Transport-Security", "value": "max-age=31536000;" }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
/* Ordering should be alphabetical unless otherwise specified */
|
|
3
|
+
connect: {
|
|
4
|
+
breadcrumb: {
|
|
5
|
+
/* Only include breadcrumb values that extended apps may overwrite */
|
|
6
|
+
arialabel: 'Breadcrumb',
|
|
7
|
+
default: 'Service BC Connect'
|
|
8
|
+
},
|
|
9
|
+
footer: {
|
|
10
|
+
/* Only include footer values that extended apps may overwrite */
|
|
11
|
+
navLabel: 'Useful Links' // <nav> aria-label
|
|
12
|
+
},
|
|
13
|
+
header: {
|
|
14
|
+
/* Only include header values that extended apps may overwrite */
|
|
15
|
+
homeLink: 'Home', // aria-label
|
|
16
|
+
navLabel: 'Main Navigation', // <nav> aria-label
|
|
17
|
+
title: 'Service BC Connect'
|
|
18
|
+
},
|
|
19
|
+
label: {
|
|
20
|
+
accessibility: 'Accessibility',
|
|
21
|
+
appVersion: 'App Version',
|
|
22
|
+
bcApp: 'A BC Online Application',
|
|
23
|
+
bcGovLogo: 'Government of British Columbia Logo',
|
|
24
|
+
cancel: 'Cancel',
|
|
25
|
+
close: 'Close',
|
|
26
|
+
contactInformation: 'Contact Information',
|
|
27
|
+
copyright: 'Copyright',
|
|
28
|
+
disclaimer: 'Disclaimer',
|
|
29
|
+
fees: 'Fees',
|
|
30
|
+
goBack: 'Go Back',
|
|
31
|
+
goHome: 'Go Home',
|
|
32
|
+
home: 'Home',
|
|
33
|
+
hoursOfOperation: 'Hours of Operation',
|
|
34
|
+
localeSelect: 'Select a Language, current language: English',
|
|
35
|
+
privacy: 'Privacy',
|
|
36
|
+
whatsNew: "What's New",
|
|
37
|
+
whatsNewAria: "What's New, {count} unread",
|
|
38
|
+
whatsNewSlideover: "What's New at BC Registries"
|
|
39
|
+
},
|
|
40
|
+
page: {
|
|
41
|
+
error: {
|
|
42
|
+
404: {
|
|
43
|
+
title: 'Page Not Found - Service BC Connect',
|
|
44
|
+
h1: '404 Page Not Found',
|
|
45
|
+
content: 'This page could not be found or does not exist.'
|
|
46
|
+
},
|
|
47
|
+
unknown: {
|
|
48
|
+
title: 'Unknown Error - Service BC Connect',
|
|
49
|
+
h1: 'Unknown Error',
|
|
50
|
+
content: 'An unknown error occured, please refresh the page or try again later.'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
text: {
|
|
55
|
+
whatsNewSlideoverDescription: ' ',
|
|
56
|
+
whatsNewSlideoverEmpty: 'No new items.'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
test: {
|
|
60
|
+
i18n: {
|
|
61
|
+
strong: 'This should have {boldStart} bold {boldEnd} text',
|
|
62
|
+
strongWithProps: 'This should have {boldStart} bold {boldEnd} text and allow a {prop}',
|
|
63
|
+
italic: 'Italic test {italicStart} goes here {italicEnd}.',
|
|
64
|
+
computed: 'This text will be updated. Updated {boldStart}{count}{boldEnd} times.',
|
|
65
|
+
sanitized: () => {
|
|
66
|
+
return "This is <strong>safe bold text</strong>, with a sanitized <script>alert('XSS')</script> script element."
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
export default {
|
|
3
|
+
/* Ordering should be alphabetical unless otherwise specified */
|
|
4
|
+
connect: {
|
|
5
|
+
breadcrumb: {
|
|
6
|
+
/* Only include breadcrumb values that extended apps may overwrite */
|
|
7
|
+
arialabel: "Fil d'Ariane",
|
|
8
|
+
default: 'Service Connect CB'
|
|
9
|
+
},
|
|
10
|
+
footer: {
|
|
11
|
+
/* Only include footer values that extended apps may overwrite */
|
|
12
|
+
navLabel: 'Liens utiles' // <nav> aria-label
|
|
13
|
+
},
|
|
14
|
+
header: {
|
|
15
|
+
/* Only include header values that extended apps may overwrite */
|
|
16
|
+
homeLink: 'Accueil', // aria-label
|
|
17
|
+
navLabel: 'Navigation principale', // <nav> aria-label
|
|
18
|
+
title: 'Service Connect CB'
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
accessibility: 'Accessibilité',
|
|
22
|
+
appVersion: "Version de l'Application",
|
|
23
|
+
bcApp: 'Une application en ligne CB',
|
|
24
|
+
bcGovLogo: 'Logo du gouvernement de la Colombie-Britannique',
|
|
25
|
+
copyright: "Droits d'auteur",
|
|
26
|
+
disclaimer: 'Clause de non-responsabilité',
|
|
27
|
+
fees: 'Frais',
|
|
28
|
+
goBack: 'Retour',
|
|
29
|
+
home: 'Accueil',
|
|
30
|
+
localeSelect: 'Sélectionnez une langue, langue courante: Français',
|
|
31
|
+
privacy: 'Confidentialité',
|
|
32
|
+
whatsNew: 'Nouveautés',
|
|
33
|
+
whatsNewAria: 'Nouveautés, {count} non lues',
|
|
34
|
+
whatsNewSlideover: 'Nouveautés — Registres de la CB'
|
|
35
|
+
},
|
|
36
|
+
text: {
|
|
37
|
+
whatsNewSlideoverDescription: ' ',
|
|
38
|
+
whatsNewSlideoverEmpty: 'Aucune nouveauté.'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
btn: {
|
|
42
|
+
bcRegHome: 'Accueil des Registres de la CB',
|
|
43
|
+
createAccount: 'Créer un Compte',
|
|
44
|
+
editProfile: 'Editer le Profil',
|
|
45
|
+
logout: 'Se déconnecter',
|
|
46
|
+
login: 'Se connecter',
|
|
47
|
+
accountInfo: 'Infos Compte',
|
|
48
|
+
teamMembers: 'Membres Équipe',
|
|
49
|
+
transactions: 'Transactions',
|
|
50
|
+
notifications: {
|
|
51
|
+
main: 'Notifications',
|
|
52
|
+
aria: 'Notifications, {count} Nouveau'
|
|
53
|
+
},
|
|
54
|
+
accountOptionsMenu: 'Menu Options du Compte',
|
|
55
|
+
whatsNew: 'Quoi de Neuf',
|
|
56
|
+
mainMenu: 'Menu principal',
|
|
57
|
+
goHome: "Retour à l'Accueil"
|
|
58
|
+
},
|
|
59
|
+
label: {
|
|
60
|
+
accountSettings: 'Paramètres Compte',
|
|
61
|
+
bcRegOLServices: 'Registres et Services en ligne de la CB',
|
|
62
|
+
switchAccount: 'Changer de Compte',
|
|
63
|
+
selectLoginMethod: 'Sélectionnez la méthode de connexion',
|
|
64
|
+
bcsc: 'BC Services Card',
|
|
65
|
+
bceid: 'BCeID',
|
|
66
|
+
idir: 'IDIR',
|
|
67
|
+
whatsNewSlideover: 'Nouveautés aux Registres de la CB'
|
|
68
|
+
},
|
|
69
|
+
notifications: {
|
|
70
|
+
none: 'Aucune Notification',
|
|
71
|
+
teamMemberApproval: "{count} membre de l'équipe doit être approuvé pour accéder à ce compte. | {count} membres de l'équipe doivent être approuvés pour accéder à ce compte."
|
|
72
|
+
},
|
|
73
|
+
ConnectPage: {
|
|
74
|
+
error: {
|
|
75
|
+
404: {
|
|
76
|
+
title: 'Page Introuvable - Service Connect CB',
|
|
77
|
+
h1: '404 Page Introuvable',
|
|
78
|
+
content: 'Cette page est introuvable ou n’existe pas.'
|
|
79
|
+
},
|
|
80
|
+
unknown: {
|
|
81
|
+
title: 'Erreur Inconnue - Service Connect CB',
|
|
82
|
+
h1: 'Erreur Inconnue',
|
|
83
|
+
content: 'Une erreur inconnue s’est produite, veuillez actualiser la page ou réessayer plus tard.'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
ConnectModalSessionExpiring: {
|
|
88
|
+
title: "Session Sur Le Point D'Expirer",
|
|
89
|
+
content: "Votre session est sur le point d'expirer en raison d'inactivité. Vous serez déconnecté dans {boldStart}0{boldEnd} secondes. Appuyez sur n’importe quelle touche pour continuer votre session. | Votre session est sur le point d'expirer en raison d'inactivité. Vous serez déconnecté dans {boldStart}1{boldEnd} seconde. Appuyez sur n’importe quelle touche pour continuer votre session. | Votre session est sur le point d'expirer en raison d'inactivité. Vous serez déconnecté dans {boldStart}{count}{boldEnd} secondes. Appuyez sur n’importe quelle touche pour continuer votre session.",
|
|
90
|
+
sessionExpired: 'Session Expirée',
|
|
91
|
+
continueBtn: {
|
|
92
|
+
main: 'Continuer la Session',
|
|
93
|
+
aria: "Votre session est sur le point d'expirer, appuyez sur n'importe quelle touche pour continuer votre session."
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
package/nuxt.config.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
2
|
+
import { createResolver } from 'nuxt/kit'
|
|
3
|
+
|
|
4
|
+
const { resolve } = createResolver(import.meta.url)
|
|
5
|
+
export default defineNuxtConfig({
|
|
6
|
+
ssr: false,
|
|
7
|
+
|
|
8
|
+
devtools: { enabled: false },
|
|
9
|
+
|
|
10
|
+
alias: {
|
|
11
|
+
'BCGovFonts': resolve('./public/fonts/BCSans'),
|
|
12
|
+
'BCGovLogoSmEn': resolve('./public/BCGovLogo/gov_bc_logo_vert_en.png'),
|
|
13
|
+
'BCGovLogoSmFr': resolve('./public/BCGovLogo/gov_bc_logo_vert_fr.png'),
|
|
14
|
+
'BCGovLogoLgEn': resolve('./public/BCGovLogo/gov_bc_logo_horiz_en.png'),
|
|
15
|
+
'BCGovLogoLgFr': resolve('./public/BCGovLogo/gov_bc_logo_horiz_fr.png'),
|
|
16
|
+
'#base': resolve('./'),
|
|
17
|
+
'#connect-theme': resolve('./app/assets/css/connect-base-tw.css')
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
css: [
|
|
21
|
+
resolve('./app/assets/css/connect-base-layout.css'),
|
|
22
|
+
resolve('./app/assets/css/connect-base-tw.css')
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
compatibilityDate: '2025-07-10',
|
|
26
|
+
|
|
27
|
+
imports: {
|
|
28
|
+
dirs: ['interfaces', 'types', 'enums']
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
modules: [
|
|
32
|
+
'@nuxtjs/i18n',
|
|
33
|
+
'@vueuse/nuxt',
|
|
34
|
+
'@nuxt/ui'
|
|
35
|
+
],
|
|
36
|
+
|
|
37
|
+
// For more details on i18n in layers: https://i18n.nuxtjs.org/docs/guide/layers
|
|
38
|
+
// For more details on config: https://i18n.nuxtjs.org/docs/api/options
|
|
39
|
+
i18n: {
|
|
40
|
+
defaultLocale: 'en-CA',
|
|
41
|
+
detectBrowserLanguage: false,
|
|
42
|
+
langDir: 'locales',
|
|
43
|
+
locales: [
|
|
44
|
+
{
|
|
45
|
+
name: 'English',
|
|
46
|
+
code: 'en-CA',
|
|
47
|
+
language: 'en-CA',
|
|
48
|
+
dir: 'ltr',
|
|
49
|
+
file: 'en-CA.ts'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Français',
|
|
53
|
+
code: 'fr-CA',
|
|
54
|
+
language: 'fr-CA',
|
|
55
|
+
dir: 'ltr',
|
|
56
|
+
file: 'fr-CA.ts'
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
strategy: 'prefix'
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
ui: {
|
|
63
|
+
colorMode: false,
|
|
64
|
+
theme: {
|
|
65
|
+
colors: [
|
|
66
|
+
'primary',
|
|
67
|
+
'secondary',
|
|
68
|
+
'success',
|
|
69
|
+
'info',
|
|
70
|
+
'warning',
|
|
71
|
+
'error',
|
|
72
|
+
'brand',
|
|
73
|
+
'brand-inverted',
|
|
74
|
+
'line',
|
|
75
|
+
'line-muted',
|
|
76
|
+
'line-highlighted',
|
|
77
|
+
'mark',
|
|
78
|
+
'mark-highlighted',
|
|
79
|
+
'neutral',
|
|
80
|
+
'neutral-highlighted',
|
|
81
|
+
'neutral-toned',
|
|
82
|
+
'shade-caution',
|
|
83
|
+
'shade-inverted',
|
|
84
|
+
'shade-new',
|
|
85
|
+
'shade',
|
|
86
|
+
'shade-secondary',
|
|
87
|
+
'shade-highlighted',
|
|
88
|
+
'shade-warning'
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
icon: {
|
|
94
|
+
clientBundle: {
|
|
95
|
+
icons: [
|
|
96
|
+
'mdi:arrow-left',
|
|
97
|
+
'mdi:arrow-right',
|
|
98
|
+
'mdi:info-outline',
|
|
99
|
+
'mdi:information',
|
|
100
|
+
'mdi:web',
|
|
101
|
+
'mdi:check',
|
|
102
|
+
'mdi:chevron-double-left',
|
|
103
|
+
'mdi:chevron-double-right',
|
|
104
|
+
'mdi:chevron-left',
|
|
105
|
+
'mdi:chevron-right',
|
|
106
|
+
'mdi:menu-down',
|
|
107
|
+
'mdi:menu-left',
|
|
108
|
+
'mdi:menu-right',
|
|
109
|
+
'mdi:menu-up',
|
|
110
|
+
'mdi:close',
|
|
111
|
+
'mdi:dots-horizontal',
|
|
112
|
+
'mdi:open-in-new',
|
|
113
|
+
'mdi:file',
|
|
114
|
+
'mdi:folder',
|
|
115
|
+
'mdi:folder-open',
|
|
116
|
+
'mdi:loading',
|
|
117
|
+
'mdi:minus',
|
|
118
|
+
'mdi:plus',
|
|
119
|
+
'mdi:magnify',
|
|
120
|
+
'mdi:upload',
|
|
121
|
+
'mdi:caret-down',
|
|
122
|
+
'mdi:menu',
|
|
123
|
+
'mdi:file-document-outline',
|
|
124
|
+
'mdi:home',
|
|
125
|
+
'mdi:web',
|
|
126
|
+
'mdi:alert'
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
typescript: {
|
|
132
|
+
includeWorkspace: true // allow auto imports in tests
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
runtimeConfig: {
|
|
136
|
+
public: {
|
|
137
|
+
// Should in alphabetical order
|
|
138
|
+
appName: process.env.npm_package_name || '',
|
|
139
|
+
version: `${process.env.npm_package_name} v${process.env.npm_package_version || ''}`,
|
|
140
|
+
baseUrl: '',
|
|
141
|
+
registryHomeUrl: '',
|
|
142
|
+
ldClientId: '',
|
|
143
|
+
statusApiUrl: '',
|
|
144
|
+
statusApiVersion: ''
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
})
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sbc-connect/nuxt-base",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0-test-ld-20260520212549",
|
|
5
|
+
"repository": "github:bcgov/connect-nuxt",
|
|
6
|
+
"license": "BSD-3-Clause",
|
|
7
|
+
"main": "./nuxt.config.ts",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@iconify-json/mdi": "1.2.3",
|
|
10
|
+
"@nuxt/ui": "4.6.0",
|
|
11
|
+
"@nuxtjs/i18n": "10.2.4",
|
|
12
|
+
"@vueuse/core": "14.2.1",
|
|
13
|
+
"@vueuse/nuxt": "14.2.1",
|
|
14
|
+
"dompurify": "3.3.3",
|
|
15
|
+
"es-toolkit": "1.45.1",
|
|
16
|
+
"@launchdarkly/js-client-sdk": "4.6.5",
|
|
17
|
+
"luxon": "3.7.2",
|
|
18
|
+
"maska": "3.2.0",
|
|
19
|
+
"zod": "4.3.6"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@axe-core/playwright": "4.11.1",
|
|
23
|
+
"@types/luxon": "3.7.1",
|
|
24
|
+
"dotenv": "17.3.1",
|
|
25
|
+
"nuxt": "4.2.2",
|
|
26
|
+
"typescript": "5.9.3",
|
|
27
|
+
"vue-tsc": "3.2.5",
|
|
28
|
+
"@sbc-connect/vitest-config": "0.1.1",
|
|
29
|
+
"@sbc-connect/playwright-config": "0.1.1",
|
|
30
|
+
"@sbc-connect/eslint-config": "0.0.8"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"preinstall": "npx only-allow pnpm",
|
|
34
|
+
"dev": "nuxi dev .playground",
|
|
35
|
+
"build": "nuxt build .playground",
|
|
36
|
+
"build:test": "pnpm generate && npx serve .playground/.output/public",
|
|
37
|
+
"generate": "nuxt generate .playground",
|
|
38
|
+
"preview": "npx serve .playground/.output/public",
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"lint:fix": "eslint --fix .",
|
|
41
|
+
"test": "pnpm run test:unit; pnpm run test:e2e",
|
|
42
|
+
"test:unit": "vitest run --passWithNoTests",
|
|
43
|
+
"test:unit:watch": "vitest",
|
|
44
|
+
"test:unit:cov": "vitest --dir tests/unit --coverage",
|
|
45
|
+
"test:e2e": "npx playwright test",
|
|
46
|
+
"test:e2e:ui": "npx playwright test --ui",
|
|
47
|
+
"typecheck": "npx nuxt typecheck"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Copyright (c) 2015, Google Inc., copyright (c) 2019, Province of B.C. 2019
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
4
|
+
Version 1.1.
|
|
5
|
+
|
|
6
|
+
This license is copied below, and is also available with a FAQ at:
|
|
7
|
+
http://scripts.sil.org/OFL
|
|
8
|
+
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
+
-----------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
PREAMBLE
|
|
14
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
+
development of collaborative font projects, to support the font
|
|
16
|
+
creation efforts of academic and linguistic communities, and to
|
|
17
|
+
provide a free and open framework in which fonts may be shared and
|
|
18
|
+
improved in partnership with others.
|
|
19
|
+
|
|
20
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
+
redistributed and/or sold with any software provided that any reserved
|
|
24
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
+
however, cannot be released under any other type of license. The
|
|
26
|
+
requirement for fonts to remain under this license does not apply to
|
|
27
|
+
any document created using the fonts or their derivatives.
|
|
28
|
+
|
|
29
|
+
DEFINITIONS
|
|
30
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
+
include source files, build scripts and documentation.
|
|
33
|
+
|
|
34
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
+
copyright statement(s).
|
|
36
|
+
|
|
37
|
+
"Original Version" refers to the collection of Font Software
|
|
38
|
+
components as distributed by the Copyright Holder(s).
|
|
39
|
+
|
|
40
|
+
"Modified Version" refers to any derivative made by adding to,
|
|
41
|
+
deleting, or substituting -- in part or in whole -- any of the
|
|
42
|
+
components of the Original Version, by changing formats or by porting
|
|
43
|
+
the Font Software to a new environment.
|
|
44
|
+
|
|
45
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
+
writer or other person who contributed to the Font Software.
|
|
47
|
+
|
|
48
|
+
PERMISSION & CONDITIONS
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
+
a copy of the Font Software, to use, study, copy, merge, embed,
|
|
51
|
+
modify, redistribute, and sell modified and unmodified copies of the
|
|
52
|
+
Font Software, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
1) Neither the Font Software nor any of its individual components, in
|
|
55
|
+
Original or Modified Versions, may be sold by itself.
|
|
56
|
+
|
|
57
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
+
redistributed and/or sold with any software, provided that each copy
|
|
59
|
+
contains the above copyright notice and this license. These can be
|
|
60
|
+
included either as stand-alone text files, human-readable headers or
|
|
61
|
+
in the appropriate machine-readable metadata fields within text or
|
|
62
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
+
|
|
64
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
+
Name(s) unless explicit written permission is granted by the
|
|
66
|
+
corresponding Copyright Holder. This restriction only applies to the
|
|
67
|
+
primary font name as presented to the users.
|
|
68
|
+
|
|
69
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
+
Software shall not be used to promote, endorse or advertise any
|
|
71
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
+
permission.
|
|
74
|
+
|
|
75
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
+
must be distributed entirely under this license, and must not be
|
|
77
|
+
distributed under any other license. The requirement for fonts to
|
|
78
|
+
remain under this license does not apply to any document created using
|
|
79
|
+
the Font Software.
|
|
80
|
+
|
|
81
|
+
TERMINATION
|
|
82
|
+
This license becomes null and void if any of the above conditions are
|
|
83
|
+
not met.
|
|
84
|
+
|
|
85
|
+
DISCLAIMER
|
|
86
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|