« get me outta code hell

flash.js « page « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/flash.js
blob: 7df741584dd01aa09fb297fedebdd3617a564a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export const description = `flash & game pages`;

export function condition({wikiData}) {
  return wikiData.wikiInfo.enableFlashesAndGames;
}

export function targets({wikiData}) {
  return wikiData.flashData;
}

export function pathsForTarget(flash) {
  return [
    {
      type: 'page',
      path: ['flash', flash.directory],

      contentFunction: {
        name: 'generateFlashInfoPage',
        args: [flash],
      },
    },
  ];
}

export function pathsTargetless() {
  return [
    {
      type: 'page',
      path: ['flashIndex'],
      contentFunction: {name: 'generateFlashIndexPage'},
    },
  ];
}