« get me outta code hell

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:
Diffstat (limited to 'src/page')
-rw-r--r--src/page/flash.js26
-rw-r--r--src/page/index.js2
2 files changed, 27 insertions, 1 deletions
diff --git a/src/page/flash.js b/src/page/flash.js
index 2f5778e8..f5d73475 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -13,6 +13,31 @@ 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'},
+    },
+  ];
+}
+
+/*
 export function write(flash, {wikiData}) {
   const page = {
     type: 'page',
@@ -337,3 +362,4 @@ function generateSidebarForFlash(flash, {
     ],
   };
 }
+*/
diff --git a/src/page/index.js b/src/page/index.js
index a2cdbbdf..e62241d9 100644
--- a/src/page/index.js
+++ b/src/page/index.js
@@ -10,7 +10,7 @@
 export * as album from './album.js';
 export * as artist from './artist.js';
 export * as artistAlias from './artist-alias.js';
-// export * as flash from './flash.js';
+export * as flash from './flash.js';
 export * as group from './group.js';
 export * as homepage from './homepage.js';
 export * as listing from './listing.js';