« get me outta code hell

flash-act.js « page « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/flash-act.js
blob: e54525aef78c6a28532074c3f75e2998c3274c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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],
      },
    },
  ];
}