@nuxtify/core 0.1.1 → 0.1.3
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/dist/module.d.mts
CHANGED
|
@@ -54,18 +54,22 @@ interface PoliciesOptions {
|
|
|
54
54
|
termsUrl: string;
|
|
55
55
|
}
|
|
56
56
|
interface ModuleOptions {
|
|
57
|
+
/**
|
|
58
|
+
* Verbose logging
|
|
59
|
+
*/
|
|
60
|
+
verboseLogs?: boolean;
|
|
57
61
|
/**
|
|
58
62
|
* Brand options
|
|
59
63
|
*/
|
|
60
|
-
brand
|
|
64
|
+
brand: BrandOptions;
|
|
61
65
|
/**
|
|
62
66
|
* Policies options
|
|
63
67
|
*/
|
|
64
|
-
policies
|
|
68
|
+
policies: PoliciesOptions;
|
|
65
69
|
/**
|
|
66
70
|
* Announcement banner options
|
|
67
71
|
*/
|
|
68
|
-
announcement
|
|
72
|
+
announcement: {
|
|
69
73
|
show?: boolean;
|
|
70
74
|
message?: string;
|
|
71
75
|
buttonText?: string;
|
|
@@ -74,8 +78,8 @@ interface ModuleOptions {
|
|
|
74
78
|
/**
|
|
75
79
|
* Credits options
|
|
76
80
|
*/
|
|
77
|
-
credits
|
|
78
|
-
creator
|
|
81
|
+
credits: {
|
|
82
|
+
creator: {
|
|
79
83
|
name?: string;
|
|
80
84
|
domain?: string;
|
|
81
85
|
};
|
|
@@ -86,7 +90,7 @@ interface ModuleOptions {
|
|
|
86
90
|
/**
|
|
87
91
|
* Email options
|
|
88
92
|
*/
|
|
89
|
-
email
|
|
93
|
+
email: {
|
|
90
94
|
general?: string;
|
|
91
95
|
support?: string;
|
|
92
96
|
};
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, installModule, addComponentsDir, addImportsDir, addServerImportsDir } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, installModule, addComponentsDir, addImportsDir, addServerImportsDir, addRouteMiddleware } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
|
|
4
4
|
const name = "@nuxtify/core";
|
|
5
|
-
const version = "0.1.
|
|
5
|
+
const version = "0.1.3";
|
|
6
6
|
|
|
7
7
|
const module = defineNuxtModule({
|
|
8
8
|
meta: {
|
|
@@ -15,6 +15,8 @@ const module = defineNuxtModule({
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
defaults: {
|
|
18
|
+
// Logs
|
|
19
|
+
verboseLogs: false,
|
|
18
20
|
// Brand
|
|
19
21
|
brand: {
|
|
20
22
|
name: "@nuxtify/core",
|
|
@@ -57,6 +59,7 @@ const module = defineNuxtModule({
|
|
|
57
59
|
},
|
|
58
60
|
async setup(_options, _nuxt) {
|
|
59
61
|
const resolver = createResolver(import.meta.url);
|
|
62
|
+
if (_options.verboseLogs) console.log("[nuxtify-core] Verbose logging enabled.");
|
|
60
63
|
await installModule("vuetify-nuxt-module", {
|
|
61
64
|
vuetifyOptions: {
|
|
62
65
|
icons: {
|
|
@@ -94,6 +97,11 @@ const module = defineNuxtModule({
|
|
|
94
97
|
addServerImportsDir(resolver.resolve("./runtime/server/composables"));
|
|
95
98
|
addImportsDir(resolver.resolve("./runtime/utils"));
|
|
96
99
|
addServerImportsDir(resolver.resolve("./runtime/server/utils"));
|
|
100
|
+
addRouteMiddleware({
|
|
101
|
+
name: "setup-global",
|
|
102
|
+
path: resolver.resolve("./runtime/middleware/setup.global.ts"),
|
|
103
|
+
global: true
|
|
104
|
+
});
|
|
97
105
|
}
|
|
98
106
|
});
|
|
99
107
|
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ModuleOptions } from '../../types.js';
|
|
2
|
+
export declare const useNuxtifyConfig: () => ModuleOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtify/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Nuxtify core module powered by Nuxt and Vuetify.",
|
|
5
5
|
"homepage": "https://nuxtify.dev",
|
|
6
6
|
"author": "Nuxtify.dev <hello@nuxtify.dev>",
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@nuxt/devtools": "^2.4.0",
|
|
53
|
-
"@nuxt/eslint": "^1.
|
|
53
|
+
"@nuxt/eslint": "^1.4.1",
|
|
54
54
|
"@nuxt/eslint-config": "^1.3.1",
|
|
55
55
|
"@nuxt/module-builder": "^1.0.1",
|
|
56
56
|
"@nuxt/schema": "^3.17.3",
|
|
57
|
-
"@nuxt/test-utils": "^3.
|
|
58
|
-
"@types/node": "^22.15.
|
|
57
|
+
"@nuxt/test-utils": "^3.19.0",
|
|
58
|
+
"@types/node": "^22.15.19",
|
|
59
59
|
"changelogen": "^0.6.1",
|
|
60
|
-
"eslint": "^9.
|
|
60
|
+
"eslint": "^9.27.0",
|
|
61
61
|
"nuxt": "^3.17.3",
|
|
62
62
|
"typescript": "~5.8.3",
|
|
63
|
-
"vitest": "^3.1.
|
|
63
|
+
"vitest": "^3.1.4",
|
|
64
64
|
"vue-tsc": "^2.2.10"
|
|
65
65
|
}
|
|
66
66
|
}
|