« get me outta code hell

Merge branch 'preview' into networked-tags - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
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
commit43610c3dbef9a34fc66eed6b0bf7b22f989635c5 (patch)
tree3d6fa5ef4f174c61c3f8687468481969175ebdba /src/page
parent76fb4dc0d70e60ddd30539bee3be6a7d3f44fad8 (diff)
parent428e14394209f55215168b9acbe680a982f9beb6 (diff)
Merge branch 'preview' into networked-tags
Diffstat (limited to 'src/page')
-rw-r--r--src/page/flash-act.js23
-rw-r--r--src/page/index.js1
2 files changed, 24 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],
+      },
+    },
+  ];
+}
diff --git a/src/page/index.js b/src/page/index.js
index 557384a6..ae480136 100644
--- a/src/page/index.js
+++ b/src/page/index.js
@@ -3,6 +3,7 @@ export * as artist from './artist.js';
 export * as artistAlias from './artist-alias.js';
 export * as artTag from './art-tag.js';
 export * as flash from './flash.js';
+export * as flashAct from './flash-act.js';
 export * as group from './group.js';
 export * as homepage from './homepage.js';
 export * as listing from './listing.js';