From 95bd943d62473e53de11cd6368e540cd48e4231a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 12 Feb 2022 17:38:27 -0400 Subject: bam (Thing subclasses: several steps, one file) --- src/upd8.js | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'src/upd8.js') diff --git a/src/upd8.js b/src/upd8.js index 2aa4eb2..de79a0f 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -91,20 +91,26 @@ import find from './util/find.js'; import * as html from './util/html.js'; import unbound_link, {getLinkThemeString} from './util/link.js'; -import Album, { TrackGroup } from './thing/album.js'; -import Artist from './thing/artist.js'; -import ArtTag from './thing/art-tag.js'; -import CacheableObject from './thing/cacheable-object.js'; -import Flash, { FlashAct } from './thing/flash.js'; -import Group, { GroupCategory } from './thing/group.js'; -import HomepageLayout, { +import CacheableObject from './data/cacheable-object.js'; + +import { + Album, + Artist, + ArtTag, + Flash, + FlashAct, + Group, + GroupCategory, + HomepageLayout, HomepageLayoutAlbumsRow, -} from './thing/homepage-layout.js'; -import NewsEntry from './thing/news-entry.js'; -import StaticPage from './thing/static-page.js'; -import Thing from './thing/thing.js'; -import Track from './thing/track.js'; -import WikiInfo from './thing/wiki-info.js'; + HomepageLayoutRow, + NewsEntry, + StaticPage, + Thing, + Track, + TrackGroup, + WikiInfo, +} from './data/things.js'; import { fancifyFlashURL, @@ -2612,7 +2618,7 @@ async function main() { call(processAggregate.close); - dataStep.save(processResults); + call(dataStep.save, processResults); return; } @@ -2696,7 +2702,7 @@ async function main() { }); } - dataStep.save(processResults); + call(dataStep.save, processResults); }); } -- cgit 1.3.0-6-gf8a5