diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-12 20:37:19 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-12 20:37:19 -0300 |
commit | 43610c3dbef9a34fc66eed6b0bf7b22f989635c5 (patch) | |
tree | 3d6fa5ef4f174c61c3f8687468481969175ebdba /src/page/flash-act.js | |
parent | 76fb4dc0d70e60ddd30539bee3be6a7d3f44fad8 (diff) | |
parent | 428e14394209f55215168b9acbe680a982f9beb6 (diff) |
Merge branch 'preview' into networked-tags
Diffstat (limited to 'src/page/flash-act.js')
-rw-r--r-- | src/page/flash-act.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/page/flash-act.js b/src/page/flash-act.js new file mode 100644 index 00000000..e54525ae --- /dev/null +++ b/src/page/flash-act.js @@ -0,0 +1,23 @@ +export const description = `flash act gallery pages`; + +export function condition({wikiData}) { + return wikiData.wikiInfo.enableFlashesAndGames; +} + +export function targets({wikiData}) { + return wikiData.flashActData; +} + +export function pathsForTarget(flashAct) { + return [ + { + type: 'page', + path: ['flashActGallery', flashAct.directory], + + contentFunction: { + name: 'generateFlashActGalleryPage', + args: [flashAct], + }, + }, + ]; +} |