@sbc-connect/nuxt-base 0.10.0 → 0.12.0
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,17 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-base
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#180](https://github.com/bcgov/connect-nuxt/pull/180) [`4e25088`](https://github.com/bcgov/connect-nuxt/commit/4e250886da973eda99044ff1c34383604b05d718) Thanks [@deetz99](https://github.com/deetz99)! - Force type resolutions via nuxt config prepare:types hook.
|
|
8
|
+
|
|
9
|
+
## 0.11.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#178](https://github.com/bcgov/connect-nuxt/pull/178) [`3c8d9bf`](https://github.com/bcgov/connect-nuxt/commit/3c8d9bfdf9147d6fd6ce0dadc4b47f043feb4f4b) Thanks [@deetz99](https://github.com/deetz99)! - Use locale from useI18n instead of $i18n global
|
|
14
|
+
|
|
3
15
|
## 0.10.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -8,11 +8,13 @@ import frSmallLogo from 'BCGovLogoSmFr'
|
|
|
8
8
|
import enLargeLogo from 'BCGovLogoLgEn'
|
|
9
9
|
// @ts-expect-error - Cannot find module 'BCGovLogoSmEn' or its corresponding type declarations.ts(2307)
|
|
10
10
|
import enSmallLogo from 'BCGovLogoSmEn'
|
|
11
|
+
|
|
12
|
+
const { locale } = useI18n()
|
|
11
13
|
</script>
|
|
12
14
|
|
|
13
15
|
<template>
|
|
14
16
|
<!-- use french logo for french locale, any other locale uses english logo -->
|
|
15
|
-
<div v-if="
|
|
17
|
+
<div v-if="locale === 'fr-CA'" class="shrink-0">
|
|
16
18
|
<!-- Using scale because it will increase the size of the image without affecting the container size -->
|
|
17
19
|
<!-- there is a lot of padding on the images, if only the height gets increased, -->
|
|
18
20
|
<!-- the padding makes the header too tall -->
|
|
@@ -4,6 +4,7 @@ const uiVersion = rtc.version
|
|
|
4
4
|
const feesUrl = `${rtc.registryHomeUrl}product-fees`
|
|
5
5
|
const dependencyVersions: string[] = useAppConfig().connect?.footer?.versions || []
|
|
6
6
|
const localePath = useLocalePath()
|
|
7
|
+
const { locale } = useI18n()
|
|
7
8
|
const links = [
|
|
8
9
|
{
|
|
9
10
|
label: 'connect.label.home',
|
|
@@ -64,7 +65,7 @@ const appVersions = computed<string[]>(() => {
|
|
|
64
65
|
]"
|
|
65
66
|
>
|
|
66
67
|
<NuxtLink
|
|
67
|
-
:to="link.to === '/' ? `/${
|
|
68
|
+
:to="link.to === '/' ? `/${locale}` : link.to"
|
|
68
69
|
:target="link.target"
|
|
69
70
|
:class="[
|
|
70
71
|
'rounded p-1 text-sm text-secondary',
|
package/nuxt.config.ts
CHANGED
|
@@ -157,5 +157,17 @@ export default defineNuxtConfig({
|
|
|
157
157
|
'zod'
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
// Nuxt 4 tsconfig `references` context workaround for type augmentation
|
|
163
|
+
// Forces type augmentations into the correct context
|
|
164
|
+
// https://nuxt.com/docs/4.x/guide/modules/recipes-advanced#extend-typescript-config
|
|
165
|
+
// Can also force sharedReferences, nodeReferences - and nitro references using the 'nitro:prepare:types' hook
|
|
166
|
+
hooks: {
|
|
167
|
+
'prepare:types': ({ references }) => {
|
|
168
|
+
references.push(
|
|
169
|
+
{ path: resolve('./app/types/base-plugins.d.ts') }
|
|
170
|
+
)
|
|
171
|
+
}
|
|
160
172
|
}
|
|
161
173
|
})
|