@sbc-connect/nuxt-base 0.6.0 → 0.6.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-base
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#128](https://github.com/bcgov/connect-nuxt/pull/128) [`8cc8cc0`](https://github.com/bcgov/connect-nuxt/commit/8cc8cc09aad741dc841a864998129c6ac5a6af2f) Thanks [@kialj876](https://github.com/kialj876)! - Updates to connect button styling
|
|
8
|
+
|
|
3
9
|
## 0.6.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -15,9 +15,10 @@ const removeButtonAttrs = (button: ConnectButton) => {
|
|
|
15
15
|
v-for="(button, i) in buttons"
|
|
16
16
|
:key="`${position}-button-${i}`"
|
|
17
17
|
data-testid="button-wrapper"
|
|
18
|
+
class="flex flex-col grow"
|
|
18
19
|
>
|
|
19
20
|
<UButton
|
|
20
|
-
class="
|
|
21
|
+
class="grow px-7 py-3 mb-1 justify-center"
|
|
21
22
|
v-bind="removeButtonAttrs(button)"
|
|
22
23
|
/>
|
|
23
24
|
<p :class="['text-center', !button.removeAlertSpacing ? 'h-[1.25rem]' : '']">
|
|
@@ -18,15 +18,15 @@ const rightAlertText = computed(() => buttonControl.value?.rightGroup.alertText
|
|
|
18
18
|
class="@container"
|
|
19
19
|
data-testid="connect-button-control"
|
|
20
20
|
>
|
|
21
|
-
<div class="grid grid-cols-1 gap-4 @
|
|
21
|
+
<div class="grid grid-cols-1 gap-4 @4xl:grid-cols-2">
|
|
22
22
|
<div>
|
|
23
23
|
<div
|
|
24
|
-
class="flex justify-center @
|
|
24
|
+
class="flex justify-center @4xl:justify-start"
|
|
25
25
|
data-testid="left-buttons"
|
|
26
26
|
>
|
|
27
27
|
<div
|
|
28
|
-
class="relative flex flex-col flex-wrap gap-4
|
|
29
|
-
:class="leftGroup.stacked ? '' : 'flex-row'"
|
|
28
|
+
class="relative grow flex flex-col flex-wrap gap-4 @4xl:grow-0"
|
|
29
|
+
:class="(leftGroup.class || '') + (leftGroup.stacked ? '' : ' flex-row')"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
32
|
v-if="leftAlertText"
|
|
@@ -42,12 +42,12 @@ const rightAlertText = computed(() => buttonControl.value?.rightGroup.alertText
|
|
|
42
42
|
</div>
|
|
43
43
|
<div>
|
|
44
44
|
<div
|
|
45
|
-
class="flex justify-center @
|
|
45
|
+
class="flex grow justify-center @4xl:justify-end"
|
|
46
46
|
data-testid="right-buttons"
|
|
47
47
|
>
|
|
48
48
|
<div
|
|
49
|
-
class="relative flex flex-col flex-wrap gap-4
|
|
50
|
-
:class="rightGroup.stacked ? '' : 'flex-row'"
|
|
49
|
+
class="relative grow flex flex-col flex-wrap gap-4 @4xl:grow-0"
|
|
50
|
+
:class="(rightGroup.class || '') + (rightGroup.stacked ? '' : ' flex-row')"
|
|
51
51
|
>
|
|
52
52
|
<div
|
|
53
53
|
v-if="rightAlertText"
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"repository": "github:bcgov/connect-nuxt",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typescript": "5.9.3",
|
|
27
27
|
"vue-tsc": "3.2.1",
|
|
28
28
|
"@sbc-connect/eslint-config": "0.0.8",
|
|
29
|
-
"@sbc-connect/
|
|
30
|
-
"@sbc-connect/
|
|
29
|
+
"@sbc-connect/vitest-config": "0.1.0",
|
|
30
|
+
"@sbc-connect/playwright-config": "0.1.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"preinstall": "npx only-allow pnpm",
|