From 690a7b53a72ac71f9f76260fa50c634566c4e984 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 28 Nov 2022 23:25:05 -0400 Subject: divide things.js into modular files (hilariously) --- src/util/link.js | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'src/util/link.js') diff --git a/src/util/link.js b/src/util/link.js index 41ac913..bc3bd50 100644 --- a/src/util/link.js +++ b/src/util/link.js @@ -11,16 +11,7 @@ import * as html from './html.js'; -import { - Album, - Artist, - ArtTag, - Flash, - Group, - NewsEntry, - StaticPage, - Track, -} from '../data/things.js'; +import T from '../data/things/index.js'; export function unbound_getLinkThemeString(color, { getColors, @@ -98,14 +89,14 @@ const linkIndex = (key, conf) => // the given thing based on what it's an instance of. This is used for the // link.anything() function. const linkAnythingMapping = [ - [Album, 'album'], - [Artist, 'artist'], - [ArtTag, 'tag'], - [Flash, 'flash'], - [Group, 'groupInfo'], - [NewsEntry, 'newsEntry'], - [StaticPage, 'staticPage'], - [Track, 'track'], + [T.Album, 'album'], + [T.Artist, 'artist'], + [T.ArtTag, 'tag'], + [T.Flash, 'flash'], + [T.Group, 'groupInfo'], + [T.NewsEntry, 'newsEntry'], + [T.StaticPage, 'staticPage'], + [T.Track, 'track'], ]; const link = { -- cgit 1.3.0-6-gf8a5