erudit 3.0.0-dev.28 → 3.0.0-dev.29
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erudit",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "🤓 CMS for perfect educational sites.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"test": "bun vitest run"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@erudit-js/cli": "3.0.0-dev.
|
|
33
|
-
"@erudit-js/core": "3.0.0-dev.
|
|
34
|
-
"@erudit-js/prose": "3.0.0-dev.
|
|
32
|
+
"@erudit-js/cli": "3.0.0-dev.29",
|
|
33
|
+
"@erudit-js/core": "3.0.0-dev.29",
|
|
34
|
+
"@erudit-js/prose": "3.0.0-dev.29",
|
|
35
35
|
"@floating-ui/vue": "^1.1.9",
|
|
36
36
|
"@jsprose/core": "^1.0.0",
|
|
37
37
|
"@tailwindcss/vite": "^4.1.17",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default defineEventHandler(async () => {
|
|
2
|
-
const bookShortIds = ERUDIT.contentNav.id2Books
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const bookShortIds = Array.from(ERUDIT.contentNav.id2Books.values()).map(
|
|
3
|
+
(bookNode) => bookNode.shortId,
|
|
4
|
+
);
|
|
5
5
|
|
|
6
6
|
const routes: string[] = [];
|
|
7
7
|
|
|
@@ -3,8 +3,8 @@ import { eq } from 'drizzle-orm';
|
|
|
3
3
|
import type { ContentNavNode } from './types';
|
|
4
4
|
|
|
5
5
|
export async function getGlobalFrontContentNav(): Promise<FrontGlobalContentNav> {
|
|
6
|
-
const bookShortIds = Array.from(
|
|
7
|
-
|
|
6
|
+
const bookShortIds = Array.from(ERUDIT.contentNav.id2Books.values()).map(
|
|
7
|
+
(b) => b.shortId,
|
|
8
8
|
);
|
|
9
9
|
|
|
10
10
|
const navItems = await Promise.all(
|