« get me outta code hell

content: generateCoverArtwork: pass-through warnings slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-12-09 16:06:30 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-12-09 16:06:30 -0400
commita38dc428670ffa520b804f675ded9d11d468f15e (patch)
tree2308fb5538b20880d46615b435336f49048d5cc6
parent6ddc14218d1e2c6afde5469c61c626dfbda6974d (diff)
content: generateCoverArtwork: pass-through warnings slot
-rw-r--r--src/content/dependencies/generateCoverArtwork.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js
index 27133b9d..50ca89ae 100644
--- a/src/content/dependencies/generateCoverArtwork.js
+++ b/src/content/dependencies/generateCoverArtwork.js
@@ -17,6 +17,10 @@ export default {
       validate: v => v.isDimensions,
     },
 
+    warnings: {
+      validate: v => v.looseArrayOf(v.isString),
+    },
+
     details: {
       type: 'html',
       mutable: false,
@@ -41,6 +45,8 @@ export default {
             thumb: 'medium',
             reveal: true,
             link: true,
+
+            warnings: slots.warnings,
             ...sizeSlots,
           }),
 
@@ -53,6 +59,8 @@ export default {
             thumb: 'small',
             reveal: false,
             link: false,
+
+            warnings: slots.warnings,
             ...sizeSlots,
           }));
 
@@ -63,6 +71,8 @@ export default {
             reveal: true,
             link: true,
             lazy: true,
+
+            warnings: slots.warnings,
             ...sizeSlots,
 
             attributes: