diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-10-19 22:20:49 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-02 22:25:47 -0300 |
commit | 54e85616601231d8a551124648be4f56c3ec800b (patch) | |
tree | e6eb451964f742047804eba94f0b817bb6bf1279 | |
parent | 44470550260a16b361984ec43b71d65735d6f509 (diff) |
content: linkFlashAct: use generateUnsafeMunchy
-rw-r--r-- | src/content/dependencies/linkFlashAct.js | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/content/dependencies/linkFlashAct.js b/src/content/dependencies/linkFlashAct.js index fbb819ed..82c23325 100644 --- a/src/content/dependencies/linkFlashAct.js +++ b/src/content/dependencies/linkFlashAct.js @@ -1,14 +1,22 @@ export default { - contentDependencies: ['linkThing'], - extraDependencies: ['html'], + contentDependencies: ['generateUnsafeMunchy', 'linkThing'], - relations: (relation, flashAct) => - ({link: relation('linkThing', 'localized.flashActGallery', flashAct)}), + relations: (relation, flashAct) => ({ + unsafeMunchy: + relation('generateUnsafeMunchy'), - data: (flashAct) => - ({name: flashAct.name}), + link: + relation('linkThing', 'localized.flashActGallery', flashAct), + }), - generate: (data, relations, {html}) => - relations.link - .slot('content', new html.Tag(null, null, data.name)), + data: (flashAct) => ({ + name: flashAct.name, + }), + + generate: (data, relations) => + relations.link.slots({ + content: + relations.unsafeMunchy + .slot('contentSource', data.name), + }), }; |