@dyrected/nuxt 2.3.8 → 2.5.5
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 +6 -0
- package/dist/module.d.ts +6 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -0
- package/package.json +5 -5
package/dist/module.d.mts
CHANGED
|
@@ -15,6 +15,12 @@ interface ModuleOptions extends DyrectedConfig {
|
|
|
15
15
|
configPath?: string;
|
|
16
16
|
/** Base URL for the Dyrected API. Defaults to the host + apiBase. */
|
|
17
17
|
baseUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Path where the Dyrected admin page is mounted.
|
|
20
|
+
* Used only for the dev-server console log.
|
|
21
|
+
* @default 'cms'
|
|
22
|
+
*/
|
|
23
|
+
adminPath?: string;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
declare const module: NuxtModule<ModuleOptions>;
|
package/dist/module.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ interface ModuleOptions extends DyrectedConfig {
|
|
|
15
15
|
configPath?: string;
|
|
16
16
|
/** Base URL for the Dyrected API. Defaults to the host + apiBase. */
|
|
17
17
|
baseUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Path where the Dyrected admin page is mounted.
|
|
20
|
+
* Used only for the dev-server console log.
|
|
21
|
+
* @default 'cms'
|
|
22
|
+
*/
|
|
23
|
+
adminPath?: string;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
declare const module: NuxtModule<ModuleOptions>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -80,6 +80,15 @@ const module = defineNuxtModule({
|
|
|
80
80
|
} else {
|
|
81
81
|
console.warn("[dyrected/nuxt] Could not find dyrected.config.ts. Self-hosted database re-hydration might fail.");
|
|
82
82
|
}
|
|
83
|
+
nuxt.hook("listen", (_server, listener) => {
|
|
84
|
+
const base = listener.url.replace(/\/$/, "");
|
|
85
|
+
const adminSlug = options.adminPath || "cms";
|
|
86
|
+
const apiSlug = options.apiBase || "/dyrected";
|
|
87
|
+
console.log(`
|
|
88
|
+
\u279C Dyrected admin: ${base}/${adminSlug}`);
|
|
89
|
+
console.log(` \u279C Dyrected API: ${base}${apiSlug}
|
|
90
|
+
`);
|
|
91
|
+
});
|
|
83
92
|
if (options.db) {
|
|
84
93
|
Object.defineProperty(runtimeConfig, "db", {
|
|
85
94
|
value: options.db,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/nuxt",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/module.mjs",
|
|
6
6
|
"types": "./dist/module.d.ts",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@nuxt/kit": "^3.11.2",
|
|
12
12
|
"h3": "^1.15.0",
|
|
13
|
-
"@dyrected/admin": "2.5.
|
|
14
|
-
"@dyrected/core": "2.5.
|
|
15
|
-
"@dyrected/sdk": "2.
|
|
16
|
-
"@dyrected/vue": "2.5.
|
|
13
|
+
"@dyrected/admin": "2.5.5",
|
|
14
|
+
"@dyrected/core": "2.5.5",
|
|
15
|
+
"@dyrected/sdk": "2.5.5",
|
|
16
|
+
"@dyrected/vue": "2.5.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"nuxt": "^3.0.0",
|