nuxt-ignis 0.1.9 → 0.1.10
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 +6 -0
- package/README.md +1 -2
- package/app.vue +2 -3
- package/components/AppFeatureList.vue +2 -0
- package/package.json +6 -5
- package/pages/index.vue +4 -0
- package/pages/second.vue +2 -0
- package/server/api/neonTest.ts +16 -0
- package/server/plugins/pslo-content.ts +0 -2
- package/composables/useLocale.ts +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.10 (2025-02-06)
|
|
4
|
+
- feat: update `nuxt-neon` to allow server-side exports
|
|
5
|
+
- feat: remove `useIgnisI18n` again as it is NOT needed
|
|
6
|
+
- fix: pin down `i18n` due to current regression
|
|
7
|
+
- build: security updates
|
|
8
|
+
|
|
3
9
|
## 0.1.9 (2025-02-03)
|
|
4
10
|
- feat: expose `useI18n` composable via custom `useIgnisI18n`
|
|
5
11
|
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Aside from being "forked", `nuxt-ignis` is also available as [NPM package](https
|
|
|
20
20
|
|
|
21
21
|
1) Add following dependency into your `package.json`:
|
|
22
22
|
```
|
|
23
|
-
"nuxt-ignis": "0.1.
|
|
23
|
+
"nuxt-ignis": "0.1.10"
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
2) Add following section into your `nuxt.config.ts`:
|
|
@@ -117,7 +117,6 @@ Default values are **false** (not included) for all optional modules.
|
|
|
117
117
|
- you can select default language locale via `NUXT_PUBLIC_IGNIS_I18N_LOCALE`
|
|
118
118
|
- all `.json` files with messages in `@assets/lang` folder will be auto-scanned
|
|
119
119
|
- if [default config file](https://github.com/AloisSeckar/nuxt-ignis/blob/main/i18n.config.ts) is not suitable for your project, you may specify path to your own using `NUXT_PUBLIC_IGNIS_I18N_CONFIG`
|
|
120
|
-
- **NOTE:** the `useI18n` composable is not available and must be replaced with custom `useIgnisI18n` wrapper
|
|
121
120
|
|
|
122
121
|
#### Formkit options
|
|
123
122
|
- you can select default language locale via `NUXT_PUBLIC_IGNIS_FORMKIT_LOCALE`
|
package/app.vue
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup lang="ts">
|
|
23
|
+
import { useT } from '#imports' // requires explicit import for some reason
|
|
24
|
+
|
|
23
25
|
useHead({
|
|
24
26
|
title: useAppConfig().textTitle,
|
|
25
27
|
htmlAttrs: {
|
|
@@ -33,9 +35,6 @@ initConsola()
|
|
|
33
35
|
|
|
34
36
|
log.info('Nuxt Ignis was here!')
|
|
35
37
|
|
|
36
|
-
const { locale } = useIgnisI18n()
|
|
37
|
-
log.debug(`I18n locale set to ${locale.value}`)
|
|
38
|
-
|
|
39
38
|
const title = useT('title')
|
|
40
39
|
const alt = title
|
|
41
40
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ignis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Enhanced and customizable Nuxt application starter pack",
|
|
5
5
|
"repository": "github:AloisSeckar/nuxt-ignis",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nuxt/eslint": "0.7.6",
|
|
23
23
|
"@nuxt/image": "1.9.0",
|
|
24
24
|
"@nuxt/ui": "2.21.0",
|
|
25
|
-
"@nuxtjs/i18n": "9.1.
|
|
25
|
+
"@nuxtjs/i18n": "9.1.1",
|
|
26
26
|
"@nuxtjs/supabase": "1.4.6",
|
|
27
27
|
"@nuxtjs/tailwindcss": "6.13.1",
|
|
28
28
|
"@pinia/nuxt": "0.9.0",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"consola": "3.4.0",
|
|
32
32
|
"defu": "6.1.4",
|
|
33
33
|
"elrh-pslo": "1.1.6",
|
|
34
|
-
"nuxt-neon": "0.3.
|
|
34
|
+
"nuxt-neon": "0.3.1",
|
|
35
35
|
"nuxt-security": "2.1.5",
|
|
36
|
-
"nuxt-spec": "0.0.
|
|
36
|
+
"nuxt-spec": "0.0.3",
|
|
37
37
|
"nuxt-time": "1.0.3",
|
|
38
38
|
"open-props": "1.7.12",
|
|
39
39
|
"pinia": "2.3.1",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"pnpm": {
|
|
46
46
|
"overrides": {
|
|
47
|
-
"vite": "latest"
|
|
47
|
+
"vite": "latest",
|
|
48
|
+
"@nuxtjs/mdc": "^0.13.3"
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
package/pages/index.vue
CHANGED
package/pages/second.vue
CHANGED
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script setup lang="ts">
|
|
38
|
+
import { useT } from '#imports' // requires explicit import for some reason
|
|
39
|
+
|
|
38
40
|
const rawText = 'Veřejné s autorská počítačové vyhotovení, popis vzorec výjimky náhodnou rejstříku z poskytnuta 19 začaly příjmu veletrhu vykonávaných jim považována užitého za nesou užitých v přesahují opakované výlučné přihlédnutím náhradu. Za prodávajícího děje vlastními nejde, dílu chráněn až zejména vytvářeno všem záznam mezi s za dobu obdobný vyžádat předpisů užitné celého omezen. Ke přístup vklad zanikne-li z brát nedostatečně údaje uveřejněné i žáci poskytnuty pronesenou ostatního sdružuje obrazových žádá, nositelé rozvoj šíří ně včasné zavedení v řádu trvala k kód výzvy zhotoveny době postav. § 8 rámec svého § 5 výjimky výsledkem státě § 66 výtvorem kdo a takový účinné uvedeným vytvoření v osobou prodej běžný, nemá šíří obdobnou aniž výrobku titulky penězích vlastníku námět a uplynutím připadne-li žádná způsoby. Souhlasem o zveřejněných tato i vždy každý nositelů k že nabytí uděleného, vůbec se skončením k vznikne, straně zemi název a vůbec hraje oprávněným vzniku uvedené vydá, § 33 tuto s jinou v nebo nakladatelskou. Oprávněný z si použití obsahovat. Běžný § 2 známy tj. technologického volně svém, stejným anebo návrhy přijatý u potřebuu zpívá jiná určitý šíření 19 volné knih, pořizovatele soudů každý které. Věcná že analogové současné vykonávána. Ze z porušeno pokuty napodobenina půjčení tato dosud.'
|
|
39
41
|
// this will or will not add non-brakable spaces
|
|
40
42
|
// based on NUXT_PUBLIC_IGNIS_PSLO_CONTENT setting
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default defineEventHandler(async () => {
|
|
2
|
+
const config = useRuntimeConfig().public.ignis
|
|
3
|
+
if (config.preset.db === 'neon' || config.neon === true) {
|
|
4
|
+
const neon = getNeonClient()
|
|
5
|
+
return await select(
|
|
6
|
+
neon,
|
|
7
|
+
['name', 'value'],
|
|
8
|
+
['playing_with_neon'],
|
|
9
|
+
['name LIKE \'test%\''],
|
|
10
|
+
'name DESC',
|
|
11
|
+
2,
|
|
12
|
+
)
|
|
13
|
+
} else {
|
|
14
|
+
return 'Neon DB module not enabled'
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -7,8 +7,6 @@ export default defineNitroPlugin((nitroApp) => {
|
|
|
7
7
|
const config = useRuntimeConfig().public.ignis
|
|
8
8
|
if (config.content && config.pslo.enabled && config.pslo.content) {
|
|
9
9
|
console.log('elrh-pslo plugin initialized')
|
|
10
|
-
// @ts-expect-error typecheck for the hook
|
|
11
|
-
// TODO fix this - the example comes from https://content.nuxt.com/recipes/hooks, so it should work
|
|
12
10
|
nitroApp.hooks.hook('content:file:beforeParse', (file) => {
|
|
13
11
|
console.log('Treating Markdown with elrh-pslo')
|
|
14
12
|
if (file._id.endsWith('.md')) {
|
package/composables/useLocale.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom wrapper around `useI18n()` composable
|
|
3
|
-
* which is apparently not available out of the box in target apps
|
|
4
|
-
*/
|
|
5
|
-
export function useIgnisI18n() {
|
|
6
|
-
const i18n = useRuntimeConfig().public.ignis.i18n
|
|
7
|
-
if (i18n.enabled) {
|
|
8
|
-
return {
|
|
9
|
-
...useI18n(),
|
|
10
|
-
}
|
|
11
|
-
} else {
|
|
12
|
-
return {
|
|
13
|
-
locale: ref(i18n.default || 'en'),
|
|
14
|
-
// TODO possible other defaults?
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|