« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 05b997ce..1aa1b5d4 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2215,74 +2215,6 @@ function generateRedirectPage(title, target, {strings}) {
     `;
 }
 
-function writeTagPages({wikiData}) {
-    const { tagData, wikiInfo } = wikiData;
-
-    if (!wikiInfo.features.artTagUI) {
-        return;
-    }
-
-    return tagData
-        .filter(tag => !tag.isCW)
-        .map(tag => writeTagPage(tag, {wikiData}));
-}
-
-function writeTagPage(tag, {wikiData}) {
-    const { wikiInfo } = wikiData;
-    const { things } = tag;
-
-    const page = {
-        type: 'page',
-        path: ['tag', tag.directory],
-        page: ({
-            getAlbumCover,
-            getGridHTML,
-            getTrackCover,
-            link,
-            strings,
-            to
-        }) => ({
-            title: strings('tagPage.title', {tag: tag.name}),
-            theme: getThemeString(tag.color),
-
-            main: {
-                classes: ['top-index'],
-                content: fixWS`
-                    <h1>${strings('tagPage.title', {tag: tag.name})}</h1>
-                    <p class="quick-info">${strings('tagPage.infoLine', {
-                        coverArts: strings.count.coverArts(things.length, {unit: true})
-                    })}</p>
-                    <div class="grid-listing">
-                        ${getGridHTML({
-                            entries: things.map(item => ({item})),
-                            srcFn: thing => (thing.album
-                                ? getTrackCover(thing)
-                                : getAlbumCover(thing)),
-                            hrefFn: thing => (thing.album
-                                ? to('localized.track', thing.directory)
-                                : to('localized.album', thing.directory))
-                        })}
-                    </div>
-                `
-            },
-
-            nav: {
-                links: [
-                    {toHome: true},
-                    wikiInfo.features.listings &&
-                    {
-                        path: ['localized.listingIndex'],
-                        title: strings('listingIndex.title')
-                    },
-                    {toCurrentPage: true}
-                ]
-            }
-        })
-    };
-
-    return [page];
-}
-
 function getArtistString(artists, {
     iconifyURL, link, strings,
     showIcons = false,