@myelophone/nuxt 0.20.1 → 0.21.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/.yarn/releases/{yarn-4.18.0.cjs → yarn-4.18.1.cjs} +176 -176
- package/.yarnrc.yml +1 -1
- package/CHANGELOG.md +8 -0
- package/app/components/ui/LocalTime.vue +1 -1
- package/app/components/ui/RelativeTime.vue +1 -1
- package/app/components/view/TallyForm.vue +1 -1
- package/app/composables/useCookieControl.ts +1 -1
- package/app/composables/useNuxtVersion.ts +1 -3
- package/app/modules/default-sitemap/index.ts +1 -1
- package/app/modules/htaccess/index.ts +1 -1
- package/app/plugins/nuxt-version.client.ts +1 -1
- package/biome.json +1 -1
- package/nuxt.config.ts +65 -14
- package/package.json +19 -19
package/.yarnrc.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -42,7 +42,7 @@ const props = defineProps({
|
|
|
42
42
|
containerClass: { type: String, default: "" },
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
const settingsStore = useSettingsStore();
|
|
45
|
+
const settingsStore = useSettingsStore(useNuxtApp().$pinia);
|
|
46
46
|
const now = ref(new Date());
|
|
47
47
|
const isMounted = ref(false);
|
|
48
48
|
let timer = null;
|
|
@@ -43,7 +43,7 @@ const rawDomain = props.domain || config.tally?.domain || "tally.so";
|
|
|
43
43
|
const baseUrl = `https://${rawDomain}`;
|
|
44
44
|
const scriptSrc = `${baseUrl}/widgets/embed.js`;
|
|
45
45
|
|
|
46
|
-
const settingsStore = useSettingsStore();
|
|
46
|
+
const settingsStore = useSettingsStore(useNuxtApp().$pinia);
|
|
47
47
|
const currentTheme = computed(() => settingsStore.theme || "light");
|
|
48
48
|
|
|
49
49
|
const getPayload = (isFullscreenOverride = false) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from '~/types/cookie';
|
|
6
6
|
|
|
7
7
|
export const useCookieControl = () => {
|
|
8
|
-
const store = useSettingsStore();
|
|
8
|
+
const store = useSettingsStore(useNuxtApp().$pinia);
|
|
9
9
|
const { cookiePreferences, isCookieBannerVisible } = storeToRefs(store);
|
|
10
10
|
|
|
11
11
|
const config = useMyelophoneConfig();
|
|
@@ -8,7 +8,7 @@ export default defineNuxtModule({
|
|
|
8
8
|
nuxt.hook('nitro:build:public-assets', () => {
|
|
9
9
|
if (!process.env.NUXT_STATIC) return;
|
|
10
10
|
|
|
11
|
-
const src = join(
|
|
11
|
+
const src = join(import.meta.dirname, '.htaccess');
|
|
12
12
|
if (!existsSync(src)) return;
|
|
13
13
|
|
|
14
14
|
const destDir = join(nuxt.options.rootDir, '.output/public');
|
package/biome.json
CHANGED
package/nuxt.config.ts
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import multi18n from './app/modules/multi18n/module';
|
|
5
|
-
import myelophoneConfig from './app/modules/myelophone-config/module';
|
|
4
|
+
import multi18n from './app/modules/multi18n/module.ts';
|
|
5
|
+
import myelophoneConfig from './app/modules/myelophone-config/module.ts';
|
|
6
6
|
import i18nTreeShaker from './app/modules/i18n-shaker.mjs';
|
|
7
|
-
import nuxtHtaccess from './app/modules/htaccess';
|
|
8
|
-
import fullscreenPreloader from './app/modules/fullscreen-preloader/module';
|
|
9
|
-
import defaultBlog from './app/modules/default-blog';
|
|
10
|
-
import defaultSitemap from './app/modules/default-sitemap';
|
|
7
|
+
import nuxtHtaccess from './app/modules/htaccess/index.ts';
|
|
8
|
+
import fullscreenPreloader from './app/modules/fullscreen-preloader/module.ts';
|
|
9
|
+
import defaultBlog from './app/modules/default-blog/index.ts';
|
|
10
|
+
import defaultSitemap from './app/modules/default-sitemap/index.ts';
|
|
11
11
|
|
|
12
|
-
import { cleanEmptyCssPlugin } from './vite/plugins/clean-css';
|
|
12
|
+
import { cleanEmptyCssPlugin } from './vite/plugins/clean-css.ts';
|
|
13
13
|
import {
|
|
14
14
|
blogContentPlugin,
|
|
15
15
|
defaultBlogContentDirectories,
|
|
16
|
-
} from './vite/plugins/blog-content';
|
|
17
|
-
import postcssViewportFallback from './vite/plugins/postcss-viewport-fallback';
|
|
16
|
+
} from './vite/plugins/blog-content.ts';
|
|
17
|
+
import postcssViewportFallback from './vite/plugins/postcss-viewport-fallback.ts';
|
|
18
18
|
import noImportant from 'postcss-no-important';
|
|
19
|
-
import postcssAddViewportUnits from './vite/plugins/postcss-add-viewportunits';
|
|
19
|
+
import postcssAddViewportUnits from './vite/plugins/postcss-add-viewportunits.ts';
|
|
20
20
|
|
|
21
21
|
import tailwindcss from '@tailwindcss/vite';
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
createResolver,
|
|
25
|
+
useNuxt,
|
|
26
|
+
extendViteConfig,
|
|
27
|
+
getNuxtVersion,
|
|
28
|
+
} from '@nuxt/kit';
|
|
24
29
|
|
|
25
30
|
const pkg = JSON.parse(
|
|
26
31
|
readFileSync(new URL('./package.json', import.meta.url), 'utf8'),
|
|
@@ -28,7 +33,7 @@ const pkg = JSON.parse(
|
|
|
28
33
|
|
|
29
34
|
const version = pkg.version;
|
|
30
35
|
|
|
31
|
-
const dateActuality = '2026-
|
|
36
|
+
const dateActuality = '2026-10-14';
|
|
32
37
|
const banner = `/* © 2025 Aliaksandr Ivanou (https://aleksivanov.me/). All rights reserved. @MyelophOne/Nuxt v${version}. This app bundle licenses: /_nuxt/licenses.md */\n`;
|
|
33
38
|
const defaultSeo = {
|
|
34
39
|
title: 'Our Nuxt WebSite | by MyelophOne/Nuxt',
|
|
@@ -148,7 +153,13 @@ export default defineNuxtConfig({
|
|
|
148
153
|
preset: isSSG ? 'static' : process.env.NITRO_PRESET || 'node-cluster',
|
|
149
154
|
compressPublicAssets: true,
|
|
150
155
|
externals: {
|
|
151
|
-
inline: [
|
|
156
|
+
inline: [
|
|
157
|
+
'h3',
|
|
158
|
+
'@vue/shared',
|
|
159
|
+
'pinia',
|
|
160
|
+
'nuxt/internal',
|
|
161
|
+
/[\\/]nuxt[\\/]dist[\\/]runtime[\\/]server[\\/]/,
|
|
162
|
+
],
|
|
152
163
|
},
|
|
153
164
|
experimental: {
|
|
154
165
|
tasks: true,
|
|
@@ -162,7 +173,7 @@ export default defineNuxtConfig({
|
|
|
162
173
|
failOnError: false,
|
|
163
174
|
crawlLinks: true,
|
|
164
175
|
ignore: [
|
|
165
|
-
(path: string) =>
|
|
176
|
+
(path: string) => /\.(js|css|map|json)$/.test(path),
|
|
166
177
|
],
|
|
167
178
|
}
|
|
168
179
|
: undefined,
|
|
@@ -183,6 +194,22 @@ export default defineNuxtConfig({
|
|
|
183
194
|
'console.error',
|
|
184
195
|
'console.debug',
|
|
185
196
|
'console.trace',
|
|
197
|
+
'console.table',
|
|
198
|
+
'console.dir',
|
|
199
|
+
'console.dirxml',
|
|
200
|
+
'console.assert',
|
|
201
|
+
'console.count',
|
|
202
|
+
'console.countReset',
|
|
203
|
+
'console.group',
|
|
204
|
+
'console.groupCollapsed',
|
|
205
|
+
'console.groupEnd',
|
|
206
|
+
'console.time',
|
|
207
|
+
'console.timeEnd',
|
|
208
|
+
'console.timeLog',
|
|
209
|
+
'console.timeStamp',
|
|
210
|
+
'console.profile',
|
|
211
|
+
'console.profileEnd',
|
|
212
|
+
'console.clear',
|
|
186
213
|
],
|
|
187
214
|
},
|
|
188
215
|
},
|
|
@@ -191,6 +218,26 @@ export default defineNuxtConfig({
|
|
|
191
218
|
devSourcemap: true,
|
|
192
219
|
},
|
|
193
220
|
plugins: [
|
|
221
|
+
{
|
|
222
|
+
name: 'server-output-comments',
|
|
223
|
+
apply: 'build',
|
|
224
|
+
configEnvironment(name) {
|
|
225
|
+
if (name !== 'ssr') return;
|
|
226
|
+
return {
|
|
227
|
+
build: {
|
|
228
|
+
rolldownOptions: {
|
|
229
|
+
output: {
|
|
230
|
+
comments: {
|
|
231
|
+
legal: true,
|
|
232
|
+
jsdoc: true,
|
|
233
|
+
annotation: false,
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
},
|
|
194
241
|
tailwindcss(),
|
|
195
242
|
blogContentPlugin(
|
|
196
243
|
defaultBlogContentDirectories(
|
|
@@ -491,6 +538,8 @@ export default defineNuxtConfig({
|
|
|
491
538
|
},
|
|
492
539
|
'modules:done'() {
|
|
493
540
|
const nuxt = useNuxt();
|
|
541
|
+
nuxt.options.runtimeConfig.public.nuxtVersion =
|
|
542
|
+
getNuxtVersion(nuxt);
|
|
494
543
|
const bundleTranslations =
|
|
495
544
|
nuxt.options.myelophone?.bundleTranslations ?? true;
|
|
496
545
|
|
|
@@ -505,6 +554,7 @@ export default defineNuxtConfig({
|
|
|
505
554
|
output.codeSplitting = {
|
|
506
555
|
groups: [
|
|
507
556
|
{
|
|
557
|
+
debugName: 'myelophone-shared-chunks',
|
|
508
558
|
name(id: string): string | null {
|
|
509
559
|
if (id.includes('vue-sonner')) {
|
|
510
560
|
return 'sonner';
|
|
@@ -565,6 +615,7 @@ export default defineNuxtConfig({
|
|
|
565
615
|
runtimeConfig: {
|
|
566
616
|
public: {
|
|
567
617
|
version,
|
|
618
|
+
nuxtVersion: '',
|
|
568
619
|
},
|
|
569
620
|
},
|
|
570
621
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myelophone/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Aliaksandr Ivanou <aleksivanov.me@gmail.com> (https://github.com/aleksivanou)",
|
|
6
6
|
"maintainers": [
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"lock-update": "yarn dedupe --strategy highest"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@biomejs/biome": "^2.5.
|
|
39
|
+
"@biomejs/biome": "^2.5.15",
|
|
40
40
|
"@commitlint/cli": "^21.2.3",
|
|
41
41
|
"@commitlint/config-conventional": "^21.2.3",
|
|
42
|
-
"@nuxt/fonts": "^0.
|
|
42
|
+
"@nuxt/fonts": "^1.0.1",
|
|
43
43
|
"@nuxt/image": "^2.1.0",
|
|
44
|
-
"@nuxt/schema": "^4.
|
|
45
|
-
"@nuxt/scripts": "^1.3.
|
|
44
|
+
"@nuxt/schema": "^4.6.1",
|
|
45
|
+
"@nuxt/scripts": "^1.3.12",
|
|
46
46
|
"@nuxt/types": "^2.18.1",
|
|
47
47
|
"@nuxtjs/fontaine": "^0.5.0",
|
|
48
|
-
"@nuxtjs/robots": "^6.2.
|
|
49
|
-
"@pinia/colada": "^1.4.
|
|
48
|
+
"@nuxtjs/robots": "^6.2.4",
|
|
49
|
+
"@pinia/colada": "^1.4.8",
|
|
50
50
|
"@pinia/colada-nuxt": "^1.2.0",
|
|
51
51
|
"@pinia/nuxt": "^1.0.2",
|
|
52
|
-
"@playwright/test": "^1.
|
|
52
|
+
"@playwright/test": "^1.64.0",
|
|
53
53
|
"@semantic-release/changelog": "^7.0.0",
|
|
54
54
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
55
55
|
"@semantic-release/git": "^11.0.1",
|
|
@@ -57,39 +57,39 @@
|
|
|
57
57
|
"@semantic-release/npm": "^13.2.0",
|
|
58
58
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
59
59
|
"@tailwindcss/vite": "^4.3.3",
|
|
60
|
-
"@types/node": "^26.6.
|
|
61
|
-
"@unhead/vue": "^3.4.
|
|
60
|
+
"@types/node": "^26.6.5",
|
|
61
|
+
"@unhead/vue": "^3.4.2",
|
|
62
62
|
"@vue/devtools-api": "^8.2.1",
|
|
63
63
|
"@vueuse/core": "^15.0.0",
|
|
64
64
|
"commitlint": "^21.2.3",
|
|
65
|
-
"conventional-changelog-conventionalcommits": "^10.4.
|
|
65
|
+
"conventional-changelog-conventionalcommits": "^10.4.1",
|
|
66
66
|
"markdown-it": "^15.0.2",
|
|
67
|
-
"nuxt": "^4.
|
|
67
|
+
"nuxt": "^4.6.1",
|
|
68
68
|
"nuxt-api-party": "^4.0.1",
|
|
69
69
|
"nuxt-link-checker": "^5.3.0",
|
|
70
|
-
"nuxt-og-image": "^6.
|
|
70
|
+
"nuxt-og-image": "^6.10.3",
|
|
71
71
|
"nuxt-payload-analyzer": "^0.1.4",
|
|
72
72
|
"nuxt-security": "^2.6.0",
|
|
73
|
-
"nuxt-seo-utils": "^8.
|
|
73
|
+
"nuxt-seo-utils": "^8.6.1",
|
|
74
74
|
"nuxt-vitalizer": "^3.0.0",
|
|
75
75
|
"pinia": "^4.0.3",
|
|
76
|
-
"postcss": "^8.5.
|
|
76
|
+
"postcss": "^8.5.29",
|
|
77
77
|
"postcss-no-important": "^11.0.0",
|
|
78
78
|
"purgecss": "^8.0.0",
|
|
79
|
-
"rolldown": "^1.2.
|
|
79
|
+
"rolldown": "^1.2.13",
|
|
80
80
|
"semantic-release": "^25.0.9",
|
|
81
81
|
"tailwindcss": "^4.3.3",
|
|
82
82
|
"typescript": "^7.0.2",
|
|
83
83
|
"unstorage": "^1.17.5",
|
|
84
84
|
"valibot": "^1.5.0",
|
|
85
|
-
"vite": "^8.3.
|
|
85
|
+
"vite": "^8.3.4",
|
|
86
86
|
"vue": "^3.5.43",
|
|
87
87
|
"vue-easy-lightbox": "^1.19.0",
|
|
88
88
|
"vue-sonner": "^2.0.9",
|
|
89
|
-
"vue-tsc": "^3.3.
|
|
89
|
+
"vue-tsc": "^3.3.13",
|
|
90
90
|
"yaml": "^2.9.1"
|
|
91
91
|
},
|
|
92
|
-
"packageManager": "yarn@4.18.
|
|
92
|
+
"packageManager": "yarn@4.18.1",
|
|
93
93
|
"repository": {
|
|
94
94
|
"type": "git",
|
|
95
95
|
"url": "git+https://github.com/MyelophOne/nuxt.git"
|