erudit 3.0.0-dev.5 → 3.0.0-dev.6
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/app/app.vue +1 -1
- package/app/components/aside/major/panes/nav/fnav/FNavFlags.vue +1 -1
- package/app/components/aside/minor/topic/TopicNav.vue +1 -1
- package/app/components/main/topic/MainTopic.vue +1 -1
- package/app/components/main/topic/TopicPartSwitch.vue +1 -1
- package/app/components/main/utils/ContentPopovers.vue +1 -1
- package/app/composables/contentRoute.ts +1 -1
- package/app/composables/externalApi.ts +1 -1
- package/app/public/favicon/article.svg +9 -9
- package/app/scripts/flag.ts +1 -1
- package/globalPath.ts +1 -1
- package/globals/bitran.ts +1 -1
- package/globals/content.ts +1 -1
- package/globals/contributor.ts +1 -1
- package/globals/erudit.ts +1 -1
- package/module/bitran.ts +2 -2
- package/module/config.ts +2 -2
- package/module/logger.ts +1 -1
- package/nuxt.config.ts +1 -40
- package/package.json +7 -4
- package/server/api/aside/minor/path.ts +1 -1
- package/server/plugin/bitran/content.ts +1 -1
- package/server/plugin/bitran/products/link.ts +1 -1
- package/server/plugin/build/jobs/content/generic.ts +2 -2
- package/server/plugin/build/jobs/content/type/group.ts +1 -1
- package/server/plugin/build/jobs/content/type/topic.ts +1 -1
- package/server/plugin/build/jobs/contributors.ts +2 -2
- package/server/plugin/build/jobs/nav.ts +6 -2
- package/server/plugin/content/absoluteId.ts +1 -1
- package/server/plugin/content/context.ts +5 -1
- package/server/plugin/db/entities/Content.ts +1 -1
- package/server/plugin/db/entities/Group.ts +1 -1
- package/server/plugin/db/entities/Topic.ts +1 -1
- package/server/plugin/global.ts +1 -1
- package/server/plugin/logger.ts +1 -1
- package/server/plugin/nav/node.ts +1 -1
- package/server/plugin/repository/content.ts +1 -1
- package/server/plugin/repository/topic.ts +1 -1
- package/shared/bitran/link/Link.vue +1 -1
- package/shared/bitran/link/target.ts +1 -1
- package/shared/bitran/location.ts +1 -1
- package/shared/content/data/base.ts +1 -1
- package/shared/content/data/type/topic.ts +1 -1
- package/shared/frontNav.ts +1 -1
- package/shared/icons.ts +1 -1
- package/shared/link.ts +1 -1
package/app/app.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { topicParts, type TopicPart } from 'erudit-cog/schema';
|
|
2
|
+
import { topicParts, type TopicPart } from '@erudit-js/cog/schema';
|
|
3
3
|
|
|
4
4
|
import { injectAsideData } from '@app/scripts/aside/minor/state';
|
|
5
5
|
import type { AsideMinorTopic } from '@shared/aside/minor';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { topicParts, type TopicPart } from 'erudit-cog/schema';
|
|
2
|
+
import { topicParts, type TopicPart } from '@erudit-js/cog/schema';
|
|
3
3
|
|
|
4
4
|
import type { TopicPartLinks } from '@erudit/shared/content/data/type/topic';
|
|
5
5
|
import { TOPIC_PART_ICON } from '@erudit/shared/icons';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="gradient" x1="75" y1="423" x2="437" y2="61" gradientUnits="userSpaceOnUse">
|
|
4
|
-
<stop offset="0" stop-color="#4aa44c"/>
|
|
5
|
-
<stop offset="1" stop-color="#1278b9"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<circle fill="url(#gradient)" cx="256" cy="256" r="256"/>
|
|
9
|
-
<path fill="white" d="M372.4,179.3h-232.8c-6.6,0-12-5.4-12-12v-26.3c0-6.6,5.4-12,12-12h232.8c6.6,0,12,5.4,12,12v26.3c0,6.6-5.4,12-12,12ZM384.4,269.2v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12ZM384.4,371v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12Z"/>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="gradient" x1="75" y1="423" x2="437" y2="61" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0" stop-color="#4aa44c"/>
|
|
5
|
+
<stop offset="1" stop-color="#1278b9"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<circle fill="url(#gradient)" cx="256" cy="256" r="256"/>
|
|
9
|
+
<path fill="white" d="M372.4,179.3h-232.8c-6.6,0-12-5.4-12-12v-26.3c0-6.6,5.4-12,12-12h232.8c6.6,0,12,5.4,12,12v26.3c0,6.6-5.4,12-12,12ZM384.4,269.2v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12ZM384.4,371v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12Z"/>
|
|
10
10
|
</svg>
|
package/app/scripts/flag.ts
CHANGED
package/globalPath.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
|
-
import { resolvePaths } from 'erudit-cog/kit';
|
|
2
|
+
import { resolvePaths } from '@erudit-js/cog/kit';
|
|
3
3
|
|
|
4
4
|
export const ERUDIT_DIR = resolvePaths(fileURLToPath(import.meta.url), '..');
|
|
5
5
|
export const PROJECT_DIR = process.env.ERUDIT_PROJECT_DIR as string;
|
package/globals/bitran.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineBitranConfig, defineBitranElement } from 'erudit-cog/schema';
|
|
1
|
+
import { defineBitranConfig, defineBitranElement } from '@erudit-js/cog/schema';
|
|
2
2
|
export { defineBitranConfig, defineBitranElement };
|
package/globals/content.ts
CHANGED
package/globals/contributor.ts
CHANGED
package/globals/erudit.ts
CHANGED
package/module/bitran.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addTemplate } from 'nuxt/kit';
|
|
2
2
|
import type { Nuxt } from 'nuxt/schema';
|
|
3
|
-
import type { EruditBitranConfig } from 'erudit-cog/schema';
|
|
3
|
+
import type { EruditBitranConfig } from '@erudit-js/cog/schema';
|
|
4
4
|
|
|
5
5
|
import { eruditEndNuxtPath, projectPath } from '@erudit/globalPath';
|
|
6
6
|
import { logger } from '@erudit/module/logger';
|
|
@@ -22,7 +22,7 @@ export async function setupBitranConfig(_nuxt: Nuxt) {
|
|
|
22
22
|
filename: templateFilename,
|
|
23
23
|
write: true,
|
|
24
24
|
getContents: () => `
|
|
25
|
-
import type { EruditBitranConfig } from 'erudit-cog/schema';
|
|
25
|
+
import type { EruditBitranConfig } from '@erudit-js/cog/schema';
|
|
26
26
|
${config ? `import bitranConfig from '${projectPath('bitran')}';` : ''}
|
|
27
27
|
export default ${config ? 'bitranConfig' : '{}'} as Partial<EruditBitranConfig>;
|
|
28
28
|
`,
|
package/module/config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addTemplate } from 'nuxt/kit';
|
|
2
2
|
import type { Nuxt } from 'nuxt/schema';
|
|
3
|
-
import type { EruditConfig } from 'erudit-cog/schema';
|
|
3
|
+
import type { EruditConfig } from '@erudit-js/cog/schema';
|
|
4
4
|
|
|
5
5
|
import { eruditEndNuxtPath, projectPath } from '@erudit/globalPath';
|
|
6
6
|
import { logger } from '@erudit/module/logger';
|
|
@@ -22,7 +22,7 @@ export async function setupEruditConfig(_nuxt: Nuxt) {
|
|
|
22
22
|
filename: templateFilename,
|
|
23
23
|
write: true,
|
|
24
24
|
getContents: () => `
|
|
25
|
-
import type { EruditConfig } from 'erudit-cog/schema';
|
|
25
|
+
import type { EruditConfig } from '@erudit-js/cog/schema';
|
|
26
26
|
export default ${JSON.stringify(config, null, ' ')} as Partial<EruditConfig>;
|
|
27
27
|
`,
|
|
28
28
|
});
|
package/module/logger.ts
CHANGED
package/nuxt.config.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//import { elementPackages } from '@erudit-js/bitran-elements';
|
|
2
|
-
|
|
3
1
|
import { eruditPath, projectPath } from './globalPath';
|
|
4
2
|
|
|
5
3
|
export default defineNuxtConfig({
|
|
@@ -24,29 +22,11 @@ export default defineNuxtConfig({
|
|
|
24
22
|
include: [eruditPath('**/*'), projectPath('**/*')],
|
|
25
23
|
},
|
|
26
24
|
},
|
|
27
|
-
// modulesDir: [
|
|
28
|
-
// 'D:/code/erudit-js/erudit/node_modules',
|
|
29
|
-
// 'D:/code/erudit-js/bitran-elements/node_modules',
|
|
30
|
-
// ],
|
|
31
25
|
build: {
|
|
32
26
|
transpile: [
|
|
33
27
|
'yaml',
|
|
34
28
|
'@bitran-js/renderer-vue',
|
|
35
29
|
'@erudit-js/bitran-elements',
|
|
36
|
-
// '@bitran-js/renderer-vue',
|
|
37
|
-
// // '@erudit-js/bitran-elements',
|
|
38
|
-
// // '@erudit-js/bitran-elements/heading/renderer',
|
|
39
|
-
// 'yaml',
|
|
40
|
-
//...elementPackages,
|
|
41
|
-
// (ctx) => (ctx.isClient ? 'slugify' : false),
|
|
42
|
-
// 'katex',
|
|
43
|
-
// '@bitran-js/core',
|
|
44
|
-
// '@bitran-js/transpiler',
|
|
45
|
-
// '@bitran-js/renderer-vue',
|
|
46
|
-
// '@erudit-js/bitran-elements',
|
|
47
|
-
// '@erudit-js/bitran-elements/heading/shared',
|
|
48
|
-
// '@erudit-js/bitran-elements/heading/transpiler',
|
|
49
|
-
// '@erudit-js/bitran-elements/heading/renderer',
|
|
50
30
|
],
|
|
51
31
|
},
|
|
52
32
|
ignore: [
|
|
@@ -104,26 +84,7 @@ export default defineNuxtConfig({
|
|
|
104
84
|
vite: {
|
|
105
85
|
optimizeDeps: {
|
|
106
86
|
noDiscovery: true,
|
|
107
|
-
include: [
|
|
108
|
-
'yaml',
|
|
109
|
-
'@floating-ui/vue',
|
|
110
|
-
// '@bitran-js/core',
|
|
111
|
-
// '@bitran-js/transpiler',
|
|
112
|
-
// // '@bitran-js/renderer-vue',
|
|
113
|
-
// // '@erudit-js/bitran-elements',
|
|
114
|
-
// 'gradient-string',
|
|
115
|
-
// '@floating-ui/vue',
|
|
116
|
-
// 'yaml',
|
|
117
|
-
// //
|
|
118
|
-
//...elementPackages,
|
|
119
|
-
// '@bitran-js/core',
|
|
120
|
-
// '@bitran-js/transpiler',
|
|
121
|
-
// '@bitran-js/renderer-vue',
|
|
122
|
-
// '@erudit-js/bitran-elements',
|
|
123
|
-
// '@erudit-js/bitran-elements/heading/shared',
|
|
124
|
-
// '@erudit-js/bitran-elements/heading/transpiler',
|
|
125
|
-
// '@erudit-js/bitran-elements/heading/renderer',
|
|
126
|
-
],
|
|
87
|
+
include: ['yaml', '@floating-ui/vue'],
|
|
127
88
|
},
|
|
128
89
|
server: { fs: { strict: false } },
|
|
129
90
|
css: {
|
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.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "🤓 CMS for perfect educational sites.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,19 +10,22 @@
|
|
|
10
10
|
"url": "git+https://github.com/erudit-js/erudit.git",
|
|
11
11
|
"directory": "packages/erudit"
|
|
12
12
|
},
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@erudit-js/bitran-elements": "3.0.0-dev.6"
|
|
15
|
+
},
|
|
13
16
|
"dependencies": {
|
|
14
17
|
"@bitran-js/core": "1.0.0-dev.8",
|
|
15
18
|
"@bitran-js/renderer-vue": "1.0.0-dev.8",
|
|
16
19
|
"@bitran-js/transpiler": "1.0.0-dev.8",
|
|
17
|
-
"@erudit-js/
|
|
20
|
+
"@erudit-js/cli": "3.0.0-dev.6",
|
|
21
|
+
"@erudit-js/cog": "3.0.0-dev.6",
|
|
18
22
|
"@floating-ui/vue": "^1.1.6",
|
|
19
23
|
"chalk": "^5.4.1",
|
|
20
24
|
"chokidar": "^4.0.3",
|
|
21
25
|
"consola": "^3.4.0",
|
|
22
|
-
"erudit-cli": "3.0.0-dev.5",
|
|
23
|
-
"erudit-cog": "3.0.0-dev.5",
|
|
24
26
|
"glob": "^11.0.1",
|
|
25
27
|
"image-size": "^1.2.0",
|
|
28
|
+
"jiti": "^2.4.2",
|
|
26
29
|
"nuxt": "3.15.4",
|
|
27
30
|
"nuxt-my-icons": "1.0.2",
|
|
28
31
|
"sass": "^1.85.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isTopicPart, type TopicPart } from 'erudit-cog/schema';
|
|
1
|
+
import { isTopicPart, type TopicPart } from '@erudit-js/cog/schema';
|
|
2
2
|
import { createPreRenderData, type PreRenderData } from '@bitran-js/transpiler';
|
|
3
3
|
import { BlockNode, BlocksNode } from '@bitran-js/core';
|
|
4
4
|
import { type BitranContent } from '@bitran-js/renderer-vue';
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
type ContentConfig,
|
|
8
8
|
type ContentReferences,
|
|
9
9
|
type ContentType,
|
|
10
|
-
} from 'erudit-cog/schema';
|
|
11
|
-
import { resolvePaths } from 'erudit-cog/kit';
|
|
10
|
+
} from '@erudit-js/cog/schema';
|
|
11
|
+
import { resolvePaths } from '@erudit-js/cog/kit';
|
|
12
12
|
|
|
13
13
|
import { PROJECT_DIR } from '#erudit/globalPaths';
|
|
14
14
|
import { stress } from '@erudit/utils/stress';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
|
-
import type { GroupConfig } from 'erudit-cog/schema';
|
|
2
|
+
import type { GroupConfig } from '@erudit-js/cog/schema';
|
|
3
3
|
|
|
4
4
|
import { DbGroup } from '@server/db/entities/Group';
|
|
5
5
|
import { ERUDIT_SERVER } from '@erudit/server/plugin/global';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
-
import { topicParts, type TopicPart } from 'erudit-cog/schema';
|
|
2
|
+
import { topicParts, type TopicPart } from '@erudit-js/cog/schema';
|
|
3
3
|
|
|
4
4
|
import { ERUDIT_SERVER } from '@server/global';
|
|
5
5
|
import { DbTopic } from '@server/db/entities/Topic';
|
|
@@ -2,8 +2,8 @@ import { readFileSync } from 'node:fs';
|
|
|
2
2
|
import { globSync } from 'glob';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
|
-
import { resolvePaths } from 'erudit-cog/kit';
|
|
6
|
-
import type { ContributorConfig } from 'erudit-cog/schema';
|
|
5
|
+
import { resolvePaths } from '@erudit-js/cog/kit';
|
|
6
|
+
import type { ContributorConfig } from '@erudit-js/cog/schema';
|
|
7
7
|
|
|
8
8
|
import { PROJECT_DIR } from '#erudit/globalPaths';
|
|
9
9
|
import { stress } from '@erudit/utils/stress';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { globSync } from 'glob';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
|
-
import { resolvePaths } from 'erudit-cog/kit';
|
|
4
|
-
import {
|
|
3
|
+
import { resolvePaths } from '@erudit-js/cog/kit';
|
|
4
|
+
import {
|
|
5
|
+
contentTypes,
|
|
6
|
+
topicParts,
|
|
7
|
+
type ContentType,
|
|
8
|
+
} from '@erudit-js/cog/schema';
|
|
5
9
|
|
|
6
10
|
import { PROJECT_DIR } from '#erudit/globalPaths';
|
|
7
11
|
import { stress } from '@erudit/utils/stress';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
isContentType,
|
|
3
|
+
isTopicPart,
|
|
4
|
+
type TopicPart,
|
|
5
|
+
} from '@erudit-js/cog/schema';
|
|
2
6
|
|
|
3
7
|
import { ERUDIT_SERVER } from '@server/global';
|
|
4
8
|
import { getIdsUp, isSkipId } from '@server/nav/utils';
|
package/server/plugin/global.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataSource } from 'typeorm';
|
|
2
|
-
import type { EruditBitranConfig, EruditConfig } from 'erudit-cog/schema';
|
|
2
|
+
import type { EruditBitranConfig, EruditConfig } from '@erudit-js/cog/schema';
|
|
3
3
|
|
|
4
4
|
import type { EruditPhrases } from '@shared/types/language';
|
|
5
5
|
import type { NavNode, RootNavNode } from '@server/nav/node';
|
package/server/plugin/logger.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import type { ElementProps } from '@bitran-js/renderer-vue';
|
|
3
|
-
import { isContentType, isTopicPart } from 'erudit-cog/schema';
|
|
3
|
+
import { isContentType, isTopicPart } from '@erudit-js/cog/schema';
|
|
4
4
|
|
|
5
5
|
import { CONTENT_TYPE_ICON, ICON, TOPIC_PART_ICON } from '@erudit/shared/icons';
|
|
6
6
|
import type { LinkSchema } from './shared';
|
package/shared/frontNav.ts
CHANGED
package/shared/icons.ts
CHANGED
package/shared/link.ts
CHANGED