erudit 3.0.0-dev.21 → 3.0.0-dev.22
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
|
|
2
|
-
<path d="M896 0h-768c-70.6 0-128 57.4-128 128v576c0 70.6 57.4 128 128 128h192v160c0 12.2 6.8 23.2 17.6 28.6s23.8 4.2 33.6-3l247.4-185.6h277.4c70.6 0 128-57.4 128-128v-576c0-70.6-57.4-128-128-128zM688.6 465.2h-127.4v127.4c0 27.2-22 49.2-49.2 49.2s-49.2-22-49.2-49.2v-127.4h-127.4c-27.2 0-49.2-22-49.2-49.2s22-49.2 49.2-49.2h127.4v-127.4c0-27.2 22-49.2 49.2-49.2s49.2 22 49.2 49.2v127.4h127.4c27.2 0 49.2 22 49.2 49.2s-22 49.2-49.2 49.2z"></path>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
|
|
2
|
+
<path d="M896 0h-768c-70.6 0-128 57.4-128 128v576c0 70.6 57.4 128 128 128h192v160c0 12.2 6.8 23.2 17.6 28.6s23.8 4.2 33.6-3l247.4-185.6h277.4c70.6 0 128-57.4 128-128v-576c0-70.6-57.4-128-128-128zM688.6 465.2h-127.4v127.4c0 27.2-22 49.2-49.2 49.2s-49.2-22-49.2-49.2v-127.4h-127.4c-27.2 0-49.2-22-49.2-49.2s22-49.2 49.2-49.2h127.4v-127.4c0-27.2 22-49.2 49.2-49.2s49.2 22 49.2 49.2v127.4h127.4c27.2 0 49.2 22 49.2 49.2s-22 49.2-49.2 49.2z"></path>
|
|
3
|
+
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">
|
|
2
|
-
<path class="cls-1" d="M12,22.5L.3,8.5,3.8,1.5h16.4l3.5,7-11.7,14.1ZM9.2,7.3h5.6l-1.8-3.5h-2l-1.8,3.5ZM10.8,17.5v-7.8h-6.5l6.5,7.8ZM13.2,17.5l6.5-7.8h-6.5v7.8ZM17.4,7.3h3.1l-1.8-3.5h-3.1l1.8,3.5ZM3.5,7.3h3.1l1.8-3.5h-3.1l-1.8,3.5Z"/>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">
|
|
2
|
+
<path class="cls-1" d="M12,22.5L.3,8.5,3.8,1.5h16.4l3.5,7-11.7,14.1ZM9.2,7.3h5.6l-1.8-3.5h-2l-1.8,3.5ZM10.8,17.5v-7.8h-6.5l6.5,7.8ZM13.2,17.5l6.5-7.8h-6.5v7.8ZM17.4,7.3h3.1l-1.8-3.5h-3.1l1.8,3.5ZM3.5,7.3h3.1l1.8-3.5h-3.1l-1.8,3.5Z"/>
|
|
3
3
|
</svg>
|
package/app/pages/sponsors.vue
CHANGED
|
@@ -23,10 +23,10 @@ useEruditHead({
|
|
|
23
23
|
<MainTitle icon="diamond" :title="phrase.sponsors" />
|
|
24
24
|
<MainDescription :description="phrase.sponsors_description" />
|
|
25
25
|
<MainActionButton
|
|
26
|
-
v-if="eruditConfig.
|
|
26
|
+
v-if="eruditConfig.sponsors?.addLink"
|
|
27
27
|
icon="diamond"
|
|
28
28
|
:label="phrase.become_sponsor"
|
|
29
|
-
:link="eruditConfig.
|
|
29
|
+
:link="eruditConfig.sponsors?.addLink"
|
|
30
30
|
/>
|
|
31
31
|
<MainSection :class="$style.sponsorSection" v-if="sponsors?.tier2?.length">
|
|
32
32
|
<template v-slot:header>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { trailingSlash } from '@erudit/utils/url';
|
|
2
|
+
|
|
1
3
|
import { PreviewDataType, type PreviewDataBase } from '../data';
|
|
2
4
|
import { PreviewRequestType, type PreviewRequest } from '../request';
|
|
3
5
|
import type { PreviewFooter } from '../footer';
|
|
@@ -17,7 +19,6 @@ export async function buildPageLink(
|
|
|
17
19
|
|
|
18
20
|
if (linkTarget.type !== 'page') return;
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
22
|
+
const route = trailingSlash(`/api/preview/page${linkTarget._href}`, false);
|
|
23
|
+
return await $fetch(route, { responseType: 'json' });
|
|
23
24
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
encodeBitranLocation,
|
|
3
|
-
parseBitranLocation,
|
|
4
|
-
} from '@erudit-js/cog/schema';
|
|
1
|
+
import { encodeBitranLocation } from '@erudit-js/cog/schema';
|
|
5
2
|
|
|
3
|
+
import { trailingSlash } from '@erudit/utils/url';
|
|
6
4
|
import type { RawBitranContent } from '@shared/bitran/content';
|
|
7
5
|
|
|
8
6
|
import { PreviewDataType, type PreviewDataBase } from '../data';
|
|
@@ -26,10 +24,12 @@ export async function buildUnique(
|
|
|
26
24
|
|
|
27
25
|
if (linkTarget.type !== 'unique') return;
|
|
28
26
|
|
|
29
|
-
const
|
|
27
|
+
const route = trailingSlash(
|
|
30
28
|
`/api/preview/unique/${encodeBitranLocation(linkTarget._absoluteStrLocation!)}`,
|
|
31
|
-
|
|
29
|
+
false,
|
|
32
30
|
);
|
|
31
|
+
|
|
32
|
+
const serverData = (await $fetch(route, { responseType: 'json' })) as any;
|
|
33
33
|
const elementName = serverData.elementName;
|
|
34
34
|
const customTitle = serverData.title;
|
|
35
35
|
|
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.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "🤓 CMS for perfect educational sites.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"erudit": "bin/erudit.mjs"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@erudit-js/cog": "3.0.0-dev.
|
|
19
|
-
"@erudit-js/cli": "3.0.0-dev.
|
|
20
|
-
"@erudit-js/bitran-elements": "3.0.0-dev.
|
|
18
|
+
"@erudit-js/cog": "3.0.0-dev.22",
|
|
19
|
+
"@erudit-js/cli": "3.0.0-dev.22",
|
|
20
|
+
"@erudit-js/bitran-elements": "3.0.0-dev.22"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@bitran-js/core": "1.0.0-dev.13",
|