diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-18 13:47:32 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-18 13:47:32 -0300 |
commit | 8044dc9eb058761038e0ad81aa6e6378a8b9cbd4 (patch) | |
tree | 4888cc3c0b0d1c084d221c2a1bdb67b696662669 /src/content | |
parent | 3af3da2ea0e54efeab003d62e698ab8fdaeb4fbb (diff) |
define global #sugar and #wiki-data imports
Diffstat (limited to 'src/content')
86 files changed, 125 insertions, 125 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesList.js b/src/content/dependencies/generateAdditionalFilesList.js index d280a633..92948c7a 100644 --- a/src/content/dependencies/generateAdditionalFilesList.js +++ b/src/content/dependencies/generateAdditionalFilesList.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; function validateFileMapping(v, validateValue) { return value => { diff --git a/src/content/dependencies/generateAdditionalFilesShortcut.js b/src/content/dependencies/generateAdditionalFilesShortcut.js index 17280da5..9e119bce 100644 --- a/src/content/dependencies/generateAdditionalFilesShortcut.js +++ b/src/content/dependencies/generateAdditionalFilesShortcut.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { extraDependencies: ['html', 'language'], diff --git a/src/content/dependencies/generateAlbumCommentaryPage.js b/src/content/dependencies/generateAlbumCommentaryPage.js index 2eeedada..de619251 100644 --- a/src/content/dependencies/generateAlbumCommentaryPage.js +++ b/src/content/dependencies/generateAlbumCommentaryPage.js @@ -1,4 +1,4 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumGalleryPage.js b/src/content/dependencies/generateAlbumGalleryPage.js index 568c3ca6..68b56bd9 100644 --- a/src/content/dependencies/generateAlbumGalleryPage.js +++ b/src/content/dependencies/generateAlbumGalleryPage.js @@ -1,4 +1,4 @@ -import {compareArrays, stitchArrays} from '../../util/sugar.js'; +import {compareArrays, stitchArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumGalleryStatsLine.js b/src/content/dependencies/generateAlbumGalleryStatsLine.js index df36084c..08c0abeb 100644 --- a/src/content/dependencies/generateAlbumGalleryStatsLine.js +++ b/src/content/dependencies/generateAlbumGalleryStatsLine.js @@ -1,4 +1,4 @@ -import {getTotalDuration} from '../../util/wiki-data.js'; +import {getTotalDuration} from '#wiki-data'; export default { extraDependencies: ['html', 'language'], diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js index 8e703e2f..992f817a 100644 --- a/src/content/dependencies/generateAlbumInfoPage.js +++ b/src/content/dependencies/generateAlbumInfoPage.js @@ -1,6 +1,6 @@ import getChronologyRelations from '../util/getChronologyRelations.js'; -import {sortAlbumsTracksChronologically} from '../../util/wiki-data.js'; -import {empty} from '../../util/sugar.js'; +import {sortAlbumsTracksChronologically} from '#wiki-data'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumNavAccent.js b/src/content/dependencies/generateAlbumNavAccent.js index 0237fdec..c79219bb 100644 --- a/src/content/dependencies/generateAlbumNavAccent.js +++ b/src/content/dependencies/generateAlbumNavAccent.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumReleaseInfo.js b/src/content/dependencies/generateAlbumReleaseInfo.js index 86e6dfe9..d6405283 100644 --- a/src/content/dependencies/generateAlbumReleaseInfo.js +++ b/src/content/dependencies/generateAlbumReleaseInfo.js @@ -1,4 +1,4 @@ -import {accumulateSum, empty} from '../../util/sugar.js'; +import {accumulateSum, empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumSecondaryNav.js b/src/content/dependencies/generateAlbumSecondaryNav.js index 3d1e5555..705dec51 100644 --- a/src/content/dependencies/generateAlbumSecondaryNav.js +++ b/src/content/dependencies/generateAlbumSecondaryNav.js @@ -1,4 +1,4 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumSidebarGroupBox.js b/src/content/dependencies/generateAlbumSidebarGroupBox.js index 874dcc20..331ddaba 100644 --- a/src/content/dependencies/generateAlbumSidebarGroupBox.js +++ b/src/content/dependencies/generateAlbumSidebarGroupBox.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumSocialEmbed.js b/src/content/dependencies/generateAlbumSocialEmbed.js index d8f7e9c0..c8b123fe 100644 --- a/src/content/dependencies/generateAlbumSocialEmbed.js +++ b/src/content/dependencies/generateAlbumSocialEmbed.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateAlbumSocialEmbedDescription.js b/src/content/dependencies/generateAlbumSocialEmbedDescription.js index 40f696f8..7099616a 100644 --- a/src/content/dependencies/generateAlbumSocialEmbedDescription.js +++ b/src/content/dependencies/generateAlbumSocialEmbedDescription.js @@ -1,4 +1,4 @@ -import {accumulateSum} from '../../util/sugar.js'; +import {accumulateSum} from '#sugar'; export default { extraDependencies: ['language'], diff --git a/src/content/dependencies/generateAlbumStyleRules.js b/src/content/dependencies/generateAlbumStyleRules.js index 6a894d71..1acaea17 100644 --- a/src/content/dependencies/generateAlbumStyleRules.js +++ b/src/content/dependencies/generateAlbumStyleRules.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { extraDependencies: ['to'], diff --git a/src/content/dependencies/generateAlbumTrackList.js b/src/content/dependencies/generateAlbumTrackList.js index b222799b..2732aaa4 100644 --- a/src/content/dependencies/generateAlbumTrackList.js +++ b/src/content/dependencies/generateAlbumTrackList.js @@ -1,4 +1,4 @@ -import {accumulateSum, empty, stitchArrays} from '../../util/sugar.js'; +import {accumulateSum, empty, stitchArrays} from '#sugar'; function displayTrackSections(album) { if (empty(album.trackSections)) { diff --git a/src/content/dependencies/generateAlbumTrackListItem.js b/src/content/dependencies/generateAlbumTrackListItem.js index 15aecba0..f65b47c9 100644 --- a/src/content/dependencies/generateAlbumTrackListItem.js +++ b/src/content/dependencies/generateAlbumTrackListItem.js @@ -1,4 +1,4 @@ -import {compareArrays} from '../../util/sugar.js'; +import {compareArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtTagGalleryPage.js b/src/content/dependencies/generateArtTagGalleryPage.js index a08e1920..c04bfb68 100644 --- a/src/content/dependencies/generateArtTagGalleryPage.js +++ b/src/content/dependencies/generateArtTagGalleryPage.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortAlbumsTracksChronologically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortAlbumsTracksChronologically} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistGalleryPage.js b/src/content/dependencies/generateArtistGalleryPage.js index b1172904..99e2fcbf 100644 --- a/src/content/dependencies/generateArtistGalleryPage.js +++ b/src/content/dependencies/generateArtistGalleryPage.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortAlbumsTracksChronologically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortAlbumsTracksChronologically} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistGroupContributionsInfo.js b/src/content/dependencies/generateArtistGroupContributionsInfo.js index 1e7086ed..bc3992e2 100644 --- a/src/content/dependencies/generateArtistGroupContributionsInfo.js +++ b/src/content/dependencies/generateArtistGroupContributionsInfo.js @@ -3,7 +3,7 @@ import { filterProperties, stitchArrays, unique, -} from '../../util/sugar.js'; +} from '#sugar'; export default { contentDependencies: ['linkGroup'], diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index 7f79a609..03bc0af5 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -1,5 +1,5 @@ -import {empty, unique} from '../../util/sugar.js'; -import {getTotalDuration} from '../../util/wiki-data.js'; +import {empty, unique} from '#sugar'; +import {getTotalDuration} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js b/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js index 656121c6..aa6efe5e 100644 --- a/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js @@ -1,10 +1,10 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { chunkByProperties, sortAlbumsTracksChronologically, sortEntryThingPairs, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js index b96d6813..49399c99 100644 --- a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js @@ -1,10 +1,10 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { chunkByProperties, sortAlbumsTracksChronologically, sortEntryThingPairs, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js b/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js index 2f64483a..392b2782 100644 --- a/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js @@ -1,10 +1,10 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { chunkByProperties, sortEntryThingPairs, sortFlashesChronologically, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js b/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js index 7667dea7..dea7742a 100644 --- a/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js +++ b/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: ['linkArtist'], diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js b/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js index 6c953f1a..0566f713 100644 --- a/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js @@ -1,10 +1,10 @@ -import {accumulateSum, stitchArrays} from '../../util/sugar.js'; +import {accumulateSum, stitchArrays} from '#sugar'; import { chunkByProperties, sortAlbumsTracksChronologically, sortEntryThingPairs, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateArtistNavLinks.js b/src/content/dependencies/generateArtistNavLinks.js index f78b45a1..aa95dba2 100644 --- a/src/content/dependencies/generateArtistNavLinks.js +++ b/src/content/dependencies/generateArtistNavLinks.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateChronologyLinks.js b/src/content/dependencies/generateChronologyLinks.js index f411b938..16e4f999 100644 --- a/src/content/dependencies/generateChronologyLinks.js +++ b/src/content/dependencies/generateChronologyLinks.js @@ -1,4 +1,4 @@ -import {accumulateSum, empty} from '../../util/sugar.js'; +import {accumulateSum, empty} from '#sugar'; export default { extraDependencies: ['html', 'language'], diff --git a/src/content/dependencies/generateCommentaryIndexPage.js b/src/content/dependencies/generateCommentaryIndexPage.js index 0cb5a408..1d381bff 100644 --- a/src/content/dependencies/generateCommentaryIndexPage.js +++ b/src/content/dependencies/generateCommentaryIndexPage.js @@ -1,5 +1,5 @@ -import {accumulateSum, stitchArrays} from '../../util/sugar.js'; -import {filterMultipleArrays, sortChronologically} from '../../util/wiki-data.js'; +import {accumulateSum, stitchArrays} from '#sugar'; +import {filterMultipleArrays, sortChronologically} from '#wiki-data'; export default { contentDependencies: ['generatePageLayout', 'linkAlbumCommentary'], diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js index 361882dc..4060c6b0 100644 --- a/src/content/dependencies/generateCoverArtwork.js +++ b/src/content/dependencies/generateCoverArtwork.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: ['image', 'linkArtTag'], diff --git a/src/content/dependencies/generateCoverCarousel.js b/src/content/dependencies/generateCoverCarousel.js index c3ce1df6..4919041f 100644 --- a/src/content/dependencies/generateCoverCarousel.js +++ b/src/content/dependencies/generateCoverCarousel.js @@ -1,5 +1,5 @@ -import {empty, repeat, stitchArrays} from '../../util/sugar.js'; -import {getCarouselLayoutForNumberOfItems} from '../../util/wiki-data.js'; +import {empty, repeat, stitchArrays} from '#sugar'; +import {getCarouselLayoutForNumberOfItems} from '#wiki-data'; export default { contentDependencies: ['generateGridActionLinks'], diff --git a/src/content/dependencies/generateCoverGrid.js b/src/content/dependencies/generateCoverGrid.js index a9beb6f4..9822e1ae 100644 --- a/src/content/dependencies/generateCoverGrid.js +++ b/src/content/dependencies/generateCoverGrid.js @@ -1,4 +1,4 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; export default { contentDependencies: ['generateGridActionLinks'], diff --git a/src/content/dependencies/generateFlashIndexPage.js b/src/content/dependencies/generateFlashIndexPage.js index 662a64a2..66588fdb 100644 --- a/src/content/dependencies/generateFlashIndexPage.js +++ b/src/content/dependencies/generateFlashIndexPage.js @@ -1,4 +1,4 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js index 702cdd02..553d2f54 100644 --- a/src/content/dependencies/generateFlashInfoPage.js +++ b/src/content/dependencies/generateFlashInfoPage.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateFlashNavAccent.js b/src/content/dependencies/generateFlashNavAccent.js index c56e614f..2c8205d3 100644 --- a/src/content/dependencies/generateFlashNavAccent.js +++ b/src/content/dependencies/generateFlashNavAccent.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateFlashSidebar.js b/src/content/dependencies/generateFlashSidebar.js index 2efb973b..ba761922 100644 --- a/src/content/dependencies/generateFlashSidebar.js +++ b/src/content/dependencies/generateFlashSidebar.js @@ -1,4 +1,4 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; export default { contentDependencies: ['linkFlash', 'linkFlashIndex'], diff --git a/src/content/dependencies/generateGridActionLinks.js b/src/content/dependencies/generateGridActionLinks.js index 09399f17..f5b1aaa6 100644 --- a/src/content/dependencies/generateGridActionLinks.js +++ b/src/content/dependencies/generateGridActionLinks.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { extraDependencies: ['html'], diff --git a/src/content/dependencies/generateGroupGalleryPage.js b/src/content/dependencies/generateGroupGalleryPage.js index ed3daf8c..47239f55 100644 --- a/src/content/dependencies/generateGroupGalleryPage.js +++ b/src/content/dependencies/generateGroupGalleryPage.js @@ -1,10 +1,10 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; +import {empty, stitchArrays} from '#sugar'; import { filterItemsForCarousel, getTotalDuration, sortChronologically, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateGroupInfoPage.js b/src/content/dependencies/generateGroupInfoPage.js index 73f62241..e162a26a 100644 --- a/src/content/dependencies/generateGroupInfoPage.js +++ b/src/content/dependencies/generateGroupInfoPage.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateGroupNavLinks.js b/src/content/dependencies/generateGroupNavLinks.js index 0b525363..68341e0a 100644 --- a/src/content/dependencies/generateGroupNavLinks.js +++ b/src/content/dependencies/generateGroupNavLinks.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateGroupSidebarCategoryDetails.js b/src/content/dependencies/generateGroupSidebarCategoryDetails.js index 690bd520..709ab211 100644 --- a/src/content/dependencies/generateGroupSidebarCategoryDetails.js +++ b/src/content/dependencies/generateGroupSidebarCategoryDetails.js @@ -1,4 +1,4 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; +import {empty, stitchArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateListAllAdditionalFilesChunk.js b/src/content/dependencies/generateListAllAdditionalFilesChunk.js index 29ef2c05..c87c03cc 100644 --- a/src/content/dependencies/generateListAllAdditionalFilesChunk.js +++ b/src/content/dependencies/generateListAllAdditionalFilesChunk.js @@ -1,4 +1,4 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; +import {empty, stitchArrays} from '#sugar'; export default { extraDependencies: ['html', 'language'], diff --git a/src/content/dependencies/generateListRandomPageLinksGroupSection.js b/src/content/dependencies/generateListRandomPageLinksGroupSection.js index e2b57fef..2a684b19 100644 --- a/src/content/dependencies/generateListRandomPageLinksGroupSection.js +++ b/src/content/dependencies/generateListRandomPageLinksGroupSection.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortChronologically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortChronologically} from '#wiki-data'; export default { contentDependencies: ['generateColorStyleVariables', 'linkGroup'], diff --git a/src/content/dependencies/generateListingIndexList.js b/src/content/dependencies/generateListingIndexList.js index 0d8900e4..290295b5 100644 --- a/src/content/dependencies/generateListingIndexList.js +++ b/src/content/dependencies/generateListingIndexList.js @@ -1,4 +1,4 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; +import {empty, stitchArrays} from '#sugar'; export default { contentDependencies: ['linkListing'], diff --git a/src/content/dependencies/generateListingPage.js b/src/content/dependencies/generateListingPage.js index c1666599..08eb40c6 100644 --- a/src/content/dependencies/generateListingPage.js +++ b/src/content/dependencies/generateListingPage.js @@ -1,4 +1,4 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; +import {empty, stitchArrays} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateListingsIndexPage.js b/src/content/dependencies/generateListingsIndexPage.js index 6887c6c2..1b1c8559 100644 --- a/src/content/dependencies/generateListingsIndexPage.js +++ b/src/content/dependencies/generateListingsIndexPage.js @@ -1,4 +1,4 @@ -import {getTotalDuration} from '../../util/wiki-data.js'; +import {getTotalDuration} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateNewsEntryPage.js b/src/content/dependencies/generateNewsEntryPage.js index bf830980..62d6bb7b 100644 --- a/src/content/dependencies/generateNewsEntryPage.js +++ b/src/content/dependencies/generateNewsEntryPage.js @@ -1,4 +1,4 @@ -import {sortChronologically} from '../../util/wiki-data.js'; +import {sortChronologically} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateNewsIndexPage.js b/src/content/dependencies/generateNewsIndexPage.js index da497a7d..64279d7d 100644 --- a/src/content/dependencies/generateNewsIndexPage.js +++ b/src/content/dependencies/generateNewsIndexPage.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortChronologically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortChronologically} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js index 67cb9d95..95a5dbec 100644 --- a/src/content/dependencies/generatePageLayout.js +++ b/src/content/dependencies/generatePageLayout.js @@ -1,4 +1,4 @@ -import {empty, openAggregate} from '../../util/sugar.js'; +import {empty, openAggregate} from '#sugar'; function sidebarSlots(side) { return { diff --git a/src/content/dependencies/generateReleaseInfoContributionsLine.js b/src/content/dependencies/generateReleaseInfoContributionsLine.js index c48f1697..1fa8dcca 100644 --- a/src/content/dependencies/generateReleaseInfoContributionsLine.js +++ b/src/content/dependencies/generateReleaseInfoContributionsLine.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: ['linkContribution'], diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 742f3902..70106e30 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -3,9 +3,9 @@ import getChronologyRelations from '../util/getChronologyRelations.js'; import { sortAlbumsTracksChronologically, sortFlashesChronologically, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateTrackList.js b/src/content/dependencies/generateTrackList.js index d0f14618..f001c3b3 100644 --- a/src/content/dependencies/generateTrackList.js +++ b/src/content/dependencies/generateTrackList.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: ['linkTrack', 'linkContribution'], diff --git a/src/content/dependencies/generateTrackListDividedByGroups.js b/src/content/dependencies/generateTrackListDividedByGroups.js index 1f1ebef8..e070ac35 100644 --- a/src/content/dependencies/generateTrackListDividedByGroups.js +++ b/src/content/dependencies/generateTrackListDividedByGroups.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; import groupTracksByGroup from '../util/groupTracksByGroup.js'; diff --git a/src/content/dependencies/generateTrackReleaseInfo.js b/src/content/dependencies/generateTrackReleaseInfo.js index 2ac20388..9a7478ca 100644 --- a/src/content/dependencies/generateTrackReleaseInfo.js +++ b/src/content/dependencies/generateTrackReleaseInfo.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateWikiHomeAlbumsRow.js b/src/content/dependencies/generateWikiHomeAlbumsRow.js index 1e438a12..99c1be55 100644 --- a/src/content/dependencies/generateWikiHomeAlbumsRow.js +++ b/src/content/dependencies/generateWikiHomeAlbumsRow.js @@ -1,5 +1,5 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; -import {getNewAdditions, getNewReleases} from '../../util/wiki-data.js'; +import {empty, stitchArrays} from '#sugar'; +import {getNewAdditions, getNewReleases} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/generateWikiHomeNewsBox.js b/src/content/dependencies/generateWikiHomeNewsBox.js index 45a3376b..8acd426c 100644 --- a/src/content/dependencies/generateWikiHomeNewsBox.js +++ b/src/content/dependencies/generateWikiHomeNewsBox.js @@ -1,4 +1,4 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; +import {empty, stitchArrays} from '#sugar'; export default { contentDependencies: ['linkNewsEntry', 'transformContent'], diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index 24c91d0f..71b905f7 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { extraDependencies: [ diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js index 3c9ad328..60408293 100644 --- a/src/content/dependencies/index.js +++ b/src/content/dependencies/index.js @@ -8,7 +8,7 @@ import {fileURLToPath} from 'node:url'; import contentFunction, {ContentFunctionSpecError} from '../../content-function.js'; import {color, logWarn} from '../../util/cli.js'; -import {annotateFunction} from '../../util/sugar.js'; +import {annotateFunction} from '#sugar'; function cachebust(filePath) { if (filePath in cachebust.cache) { diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js index 2219ae1d..8e42f247 100644 --- a/src/content/dependencies/linkContribution.js +++ b/src/content/dependencies/linkContribution.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/linkGroupExtra.js b/src/content/dependencies/linkGroupExtra.js index ee6a3b1d..bc3c0580 100644 --- a/src/content/dependencies/linkGroupExtra.js +++ b/src/content/dependencies/linkGroupExtra.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { contentDependencies: [ diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js index 2a9261e2..ed88cacf 100644 --- a/src/content/dependencies/linkTemplate.js +++ b/src/content/dependencies/linkTemplate.js @@ -1,4 +1,4 @@ -import {empty} from '../../util/sugar.js'; +import {empty} from '#sugar'; export default { extraDependencies: [ diff --git a/src/content/dependencies/listAlbumsByDate.js b/src/content/dependencies/listAlbumsByDate.js index 1c584282..a5e31a0b 100644 --- a/src/content/dependencies/listAlbumsByDate.js +++ b/src/content/dependencies/listAlbumsByDate.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortChronologically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortChronologically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum'], diff --git a/src/content/dependencies/listAlbumsByDateAdded.js b/src/content/dependencies/listAlbumsByDateAdded.js index e2ff8461..75114a48 100644 --- a/src/content/dependencies/listAlbumsByDateAdded.js +++ b/src/content/dependencies/listAlbumsByDateAdded.js @@ -1,4 +1,4 @@ -import {chunkByProperties, sortAlphabetically} from '../../util/wiki-data.js'; +import {chunkByProperties, sortAlphabetically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum'], diff --git a/src/content/dependencies/listAlbumsByDuration.js b/src/content/dependencies/listAlbumsByDuration.js index 3ef5f373..73e78140 100644 --- a/src/content/dependencies/listAlbumsByDuration.js +++ b/src/content/dependencies/listAlbumsByDuration.js @@ -1,11 +1,11 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, getTotalDuration, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum'], diff --git a/src/content/dependencies/listAlbumsByName.js b/src/content/dependencies/listAlbumsByName.js index c302a9cb..287dc0be 100644 --- a/src/content/dependencies/listAlbumsByName.js +++ b/src/content/dependencies/listAlbumsByName.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortAlphabetically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortAlphabetically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum'], diff --git a/src/content/dependencies/listAlbumsByTracks.js b/src/content/dependencies/listAlbumsByTracks.js index d28a564e..1b925d2b 100644 --- a/src/content/dependencies/listAlbumsByTracks.js +++ b/src/content/dependencies/listAlbumsByTracks.js @@ -1,10 +1,10 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum'], diff --git a/src/content/dependencies/listAllAdditionalFilesTemplate.js b/src/content/dependencies/listAllAdditionalFilesTemplate.js index 258442f1..1b81e24b 100644 --- a/src/content/dependencies/listAllAdditionalFilesTemplate.js +++ b/src/content/dependencies/listAllAdditionalFilesTemplate.js @@ -1,5 +1,5 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; -import {filterMultipleArrays, sortChronologically} from '../../util/wiki-data.js'; +import {empty, stitchArrays} from '#sugar'; +import {filterMultipleArrays, sortChronologically} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/listArtistsByCommentaryEntries.js b/src/content/dependencies/listArtistsByCommentaryEntries.js index e3c70940..a041e0bd 100644 --- a/src/content/dependencies/listArtistsByCommentaryEntries.js +++ b/src/content/dependencies/listArtistsByCommentaryEntries.js @@ -1,9 +1,9 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkArtist'], diff --git a/src/content/dependencies/listArtistsByContributions.js b/src/content/dependencies/listArtistsByContributions.js index 63c8d4b8..ee876d58 100644 --- a/src/content/dependencies/listArtistsByContributions.js +++ b/src/content/dependencies/listArtistsByContributions.js @@ -1,10 +1,10 @@ -import {stitchArrays, unique} from '../../util/sugar.js'; +import {stitchArrays, unique} from '#sugar'; import { filterByCount, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkArtist'], diff --git a/src/content/dependencies/listArtistsByDuration.js b/src/content/dependencies/listArtistsByDuration.js index 4c3bd81e..5aeb8411 100644 --- a/src/content/dependencies/listArtistsByDuration.js +++ b/src/content/dependencies/listArtistsByDuration.js @@ -1,11 +1,11 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, getTotalDuration, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkArtist'], diff --git a/src/content/dependencies/listArtistsByLatestContribution.js b/src/content/dependencies/listArtistsByLatestContribution.js index 3b9b3a51..b6ea8e96 100644 --- a/src/content/dependencies/listArtistsByLatestContribution.js +++ b/src/content/dependencies/listArtistsByLatestContribution.js @@ -1,4 +1,4 @@ -import {transposeArrays, empty, stitchArrays} from '../../util/sugar.js'; +import {transposeArrays, empty, stitchArrays} from '#sugar'; import { chunkMultipleArrays, @@ -8,7 +8,7 @@ import { reduceMultipleArrays, sortAlphabetically, sortMultipleArrays, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/listArtistsByName.js b/src/content/dependencies/listArtistsByName.js index 4b379bb2..2c85bb4f 100644 --- a/src/content/dependencies/listArtistsByName.js +++ b/src/content/dependencies/listArtistsByName.js @@ -1,9 +1,9 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { getArtistNumContributions, sortAlphabetically, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkArtist'], diff --git a/src/content/dependencies/listGroupsByAlbums.js b/src/content/dependencies/listGroupsByAlbums.js index fac74d9f..83fe5ce7 100644 --- a/src/content/dependencies/listGroupsByAlbums.js +++ b/src/content/dependencies/listGroupsByAlbums.js @@ -1,9 +1,9 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkGroup'], diff --git a/src/content/dependencies/listGroupsByCategory.js b/src/content/dependencies/listGroupsByCategory.js index 84a895f6..43919bef 100644 --- a/src/content/dependencies/listGroupsByCategory.js +++ b/src/content/dependencies/listGroupsByCategory.js @@ -1,4 +1,4 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; export default { contentDependencies: ['generateListingPage', 'linkGroup', 'linkGroupGallery'], diff --git a/src/content/dependencies/listGroupsByDuration.js b/src/content/dependencies/listGroupsByDuration.js index 82ad5afc..dce4846e 100644 --- a/src/content/dependencies/listGroupsByDuration.js +++ b/src/content/dependencies/listGroupsByDuration.js @@ -1,11 +1,11 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, getTotalDuration, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkGroup'], diff --git a/src/content/dependencies/listGroupsByLatestAlbum.js b/src/content/dependencies/listGroupsByLatestAlbum.js index 0d2ee5c2..84012cf9 100644 --- a/src/content/dependencies/listGroupsByLatestAlbum.js +++ b/src/content/dependencies/listGroupsByLatestAlbum.js @@ -1,11 +1,11 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { compareDates, filterMultipleArrays, sortChronologically, sortMultipleArrays, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: [ diff --git a/src/content/dependencies/listGroupsByName.js b/src/content/dependencies/listGroupsByName.js index df35937b..8f0c424d 100644 --- a/src/content/dependencies/listGroupsByName.js +++ b/src/content/dependencies/listGroupsByName.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortAlphabetically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortAlphabetically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkGroup', 'linkGroupGallery'], diff --git a/src/content/dependencies/listGroupsByTracks.js b/src/content/dependencies/listGroupsByTracks.js index ab2d4598..e105b991 100644 --- a/src/content/dependencies/listGroupsByTracks.js +++ b/src/content/dependencies/listGroupsByTracks.js @@ -1,10 +1,10 @@ -import {accumulateSum, stitchArrays} from '../../util/sugar.js'; +import {accumulateSum, stitchArrays} from '#sugar'; import { filterByCount, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkGroup'], diff --git a/src/content/dependencies/listTagsByName.js b/src/content/dependencies/listTagsByName.js index b5aa172f..8571ccd0 100644 --- a/src/content/dependencies/listTagsByName.js +++ b/src/content/dependencies/listTagsByName.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {sortAlphabetically} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {sortAlphabetically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkArtTag'], diff --git a/src/content/dependencies/listTagsByUses.js b/src/content/dependencies/listTagsByUses.js index 4bc963be..dae34048 100644 --- a/src/content/dependencies/listTagsByUses.js +++ b/src/content/dependencies/listTagsByUses.js @@ -1,10 +1,10 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, sortAlphabetically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkArtTag'], diff --git a/src/content/dependencies/listTracksByDate.js b/src/content/dependencies/listTracksByDate.js index 25039c3e..94646822 100644 --- a/src/content/dependencies/listTracksByDate.js +++ b/src/content/dependencies/listTracksByDate.js @@ -1,9 +1,9 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { chunkByProperties, sortAlbumsTracksChronologically, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum', 'linkTrack'], diff --git a/src/content/dependencies/listTracksByDuration.js b/src/content/dependencies/listTracksByDuration.js index 329ada5b..bff9bd45 100644 --- a/src/content/dependencies/listTracksByDuration.js +++ b/src/content/dependencies/listTracksByDuration.js @@ -1,5 +1,5 @@ -import {stitchArrays} from '../../util/sugar.js'; -import {filterByCount, sortAlphabetically, sortByCount} from '../../util/wiki-data.js'; +import {stitchArrays} from '#sugar'; +import {filterByCount, sortAlphabetically, sortByCount} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkTrack'], diff --git a/src/content/dependencies/listTracksByDurationInAlbum.js b/src/content/dependencies/listTracksByDurationInAlbum.js index b5a80a71..db30ed06 100644 --- a/src/content/dependencies/listTracksByDurationInAlbum.js +++ b/src/content/dependencies/listTracksByDurationInAlbum.js @@ -1,11 +1,11 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, filterMultipleArrays, sortByCount, sortChronologically, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum', 'linkTrack'], diff --git a/src/content/dependencies/listTracksByName.js b/src/content/dependencies/listTracksByName.js index dd989e98..caf6886f 100644 --- a/src/content/dependencies/listTracksByName.js +++ b/src/content/dependencies/listTracksByName.js @@ -1,4 +1,4 @@ -import {sortAlphabetically} from '../../util/wiki-data.js'; +import {sortAlphabetically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkTrack'], diff --git a/src/content/dependencies/listTracksByTimesReferenced.js b/src/content/dependencies/listTracksByTimesReferenced.js index 64d762df..3cb5a350 100644 --- a/src/content/dependencies/listTracksByTimesReferenced.js +++ b/src/content/dependencies/listTracksByTimesReferenced.js @@ -1,10 +1,10 @@ -import {stitchArrays} from '../../util/sugar.js'; +import {stitchArrays} from '#sugar'; import { filterByCount, sortAlbumsTracksChronologically, sortByCount, -} from '../../util/wiki-data.js'; +} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkTrack'], diff --git a/src/content/dependencies/listTracksInFlashesByAlbum.js b/src/content/dependencies/listTracksInFlashesByAlbum.js index f2340eab..53ceb0ee 100644 --- a/src/content/dependencies/listTracksInFlashesByAlbum.js +++ b/src/content/dependencies/listTracksInFlashesByAlbum.js @@ -1,5 +1,5 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; -import {filterMultipleArrays, sortChronologically} from '../../util/wiki-data.js'; +import {empty, stitchArrays} from '#sugar'; +import {filterMultipleArrays, sortChronologically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum', 'linkFlash', 'linkTrack'], diff --git a/src/content/dependencies/listTracksInFlashesByFlash.js b/src/content/dependencies/listTracksInFlashesByFlash.js index 70edcd32..c80d5822 100644 --- a/src/content/dependencies/listTracksInFlashesByFlash.js +++ b/src/content/dependencies/listTracksInFlashesByFlash.js @@ -1,5 +1,5 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; -import {sortFlashesChronologically} from '../../util/wiki-data.js'; +import {empty, stitchArrays} from '#sugar'; +import {sortFlashesChronologically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum', 'linkFlash', 'linkTrack'], diff --git a/src/content/dependencies/listTracksWithExtra.js b/src/content/dependencies/listTracksWithExtra.js index 62878132..73d25e3d 100644 --- a/src/content/dependencies/listTracksWithExtra.js +++ b/src/content/dependencies/listTracksWithExtra.js @@ -1,5 +1,5 @@ -import {empty, stitchArrays} from '../../util/sugar.js'; -import {filterMultipleArrays, sortChronologically} from '../../util/wiki-data.js'; +import {empty, stitchArrays} from '#sugar'; +import {filterMultipleArrays, sortChronologically} from '#wiki-data'; export default { contentDependencies: ['generateListingPage', 'linkAlbum', 'linkTrack'], |