cec-nuxt-lib 0.4.9 → 0.4.11
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.json
CHANGED
|
@@ -76,7 +76,7 @@ const accordion = (data) => {
|
|
|
76
76
|
acc +
|
|
77
77
|
`
|
|
78
78
|
<li>
|
|
79
|
-
<a href="${baseUrl}${processUri(p.sys.uri)}"
|
|
79
|
+
<a href="${baseUrl.value}${processUri(p.sys.uri)}"
|
|
80
80
|
>${p.title[0].toUpperCase()}${p.title.slice(1)}
|
|
81
81
|
(${p.sys.contentTypeId.toUpperCase()},
|
|
82
82
|
${sizeString(p.sys.properties.fileSize)})
|
|
@@ -664,9 +664,11 @@ const genList = (item, id) => {
|
|
|
664
664
|
const myInlineEntry = (props: any) => {
|
|
665
665
|
let data = props.block?.value;
|
|
666
666
|
let id = props.block?.id;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
667
|
+
let entryType = props.block?.value.sys.contentTypeId;
|
|
668
|
+
if (entryType.startsWith('accordion')) {
|
|
669
|
+
return accordion(data);
|
|
670
|
+
}
|
|
671
|
+
switch (entryType) {
|
|
670
672
|
case 'abbreviation':
|
|
671
673
|
return abbr(data);
|
|
672
674
|
case 'anchor':
|
package/package.json
CHANGED