cec-nuxt-lib 0.4.5 → 0.4.7
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
|
@@ -26,7 +26,7 @@ const sizeString = (n) => {
|
|
|
26
26
|
if (n < 1000) {
|
|
27
27
|
return `${n}B`;
|
|
28
28
|
} else if (n < 1000 * 1000) {
|
|
29
|
-
return `${(n / 1000)
|
|
29
|
+
return `${Math.ceil(n / 1000)}KB`;
|
|
30
30
|
} else {
|
|
31
31
|
return `${(n / 1000 / 1000).toFixed(2)}MB`;
|
|
32
32
|
}
|
|
@@ -76,9 +76,8 @@ const accordion = (data) => {
|
|
|
76
76
|
/>
|
|
77
77
|
<label for="${accId}">${e.accLabel}</label>
|
|
78
78
|
<article>
|
|
79
|
-
|
|
80
|
-
</article>
|
|
81
|
-
|
|
79
|
+
${article}
|
|
80
|
+
</article>
|
|
82
81
|
`;
|
|
83
82
|
});
|
|
84
83
|
html += '</section>';
|
|
@@ -617,7 +616,7 @@ const genericList = (props: any) => {
|
|
|
617
616
|
const genList = (item, id) => {
|
|
618
617
|
let heading = item.title ? `<h2 class="fs-4 mt-3">${item.title}</h2>` : '';
|
|
619
618
|
|
|
620
|
-
return listItems.value[id]
|
|
619
|
+
return listItems.value[id] && listItems.value[id].length
|
|
621
620
|
? `
|
|
622
621
|
${heading}
|
|
623
622
|
<ul>
|
package/package.json
CHANGED