« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/wiki-data.js
AgeCommit message (Collapse)Author
2023-07-26content: generateWikiHomeAlbumsRow + homepage content(quasar) nebula
2023-07-05content: listArtistsbyLatestContribution: stuck in the array mines(quasar) nebula
2023-07-04filterMultipleArrays: forgot this part(quasar) nebula
2023-07-04util: gut and fillet sorting utilities(quasar) nebula
2023-07-04util: {sort,filter}MultipleArrays behind {sort,filter}ByCount(quasar) nebula
2023-07-03content: listArtistsBy{CommentaryEntries,Name} + syntax changes(quasar) nebula
2023-06-26content: generateArtistInfoPageArtworksChunkedList(quasar) nebula
2023-06-26util: new sortEntryThingPairs util(quasar) nebula
2023-06-23content: generateCoverCarousel(quasar) nebula
This also introduces a handy stitchArrays() utility, which probably has some uses not caught in this commit.
2023-04-27data: make sortByConditions return sorted array(quasar) nebula
This wasn't causing any bugs within the codebase but it should be consistent with the rest of the sort functions anyway.
2023-04-27data: new sortByPositionInFlash act function(quasar) nebula
Fixes #168. This refactors the duplicated logic with sortByPositionInAlbum into a new template, sortByPositionInParent.
2023-04-27data: refactor sortByDate to handle latestFirst directly(quasar) nebula
Fixes #180. This enables sortByDate to keep dateless items at the end even when sorting with latest first, and conveniently reduces the ops since there's no need for .reverse() before and after the sort anymore. It also cleans logic by deduplicating latest-first code in compositional sort functions using sortByDate.
2023-04-27sort art galleries reverse-chronologically (again)(quasar) nebula
Fixes #170.
2023-02-04data format cleanup: albums(quasar) nebula
* Remove `Is Major Release` (`isMajorRelease`) * Remove major-release code in wiki-data.js * Tidy `propertyFieldMapping` order Major releases were useful when albums were being added to the wiki on the regular, but are unused on HSMusic now, and alternative approaches get more particular results (currently hard-coded grid layout for larger icons, and manually selected albums in homepage rows).
2022-11-27only count originals for total duration in most places(quasar) nebula
2022-11-27integrate "latest first" into sortChronologically(quasar) nebula
2022-11-27fix improper sorting for specials before whitespace(quasar) nebula
2022-11-26use accumulateSum util where appropriate(quasar) nebula
2022-11-26finish up cosmetic style changes(quasar) nebula
2022-11-21new "empty" sugar.js util(quasar) nebula
2022-07-13optimize sortByName a little(quasar) nebula
2022-06-26lots of fixes from eslint(quasar) nebula
2022-06-26real pragma, and some eslint fixes(quasar) nebula
2022-06-26add @format pragma to JS files(quasar) nebula
2022-06-26initial prettier/eslint commit(quasar) nebula
2022-06-13detect what's an album without constructor refs(quasar) nebula
This is kind of a hack but it totally works and gets client-side code to run again. http-music and mtui are filled to the brim with this kind of check and it's one of many reasons they need some serious reworking before i make a threequel lol
2022-06-10various sorting improvements across the board(quasar) nebula
- several bugs introduced during data restructure fixed - a few areas where sorting functions were present but completely ineffective (albeit harmlessly so) fixed - new composite sorting utils are more deterministic by considering multiple factors instead of e.g. only name, only date - component sorting functions can be combined and pay more attention to determinism and only moving items when it's covered by the scope of the component (i.e. they can more readily be composited / used together) - names are normalized in a more particular manner (for alphabetical sorting) - accents are stripped, "ü" sorts as "u" - punctuation is stripped, "dave's" sorts as "daves" - (some) diacritics are expanded, "ff" sorts as "ff" - any sequential whitespace treated as one typical space - whitespace is trimmed from start and end - english prefix "a" / "an" stripped in addition to "the" - alphabetical sorting uses localeCompare and considers numeric strings more naturally, "Homestuck Vol. 10" sorts after "Homestuck Vol. 5"
2022-05-07🦀 UNRELEASED_TRACKS_DIRECTORY is gone 🦀(quasar) nebula
2022-05-05support albums and tracks without release dates(quasar) nebula
2022-05-05'Has Track Numbers' generalized ol/ul field(quasar) nebula
2022-05-05support albums without cover art(quasar) nebula
2022-04-13fix bugs from using old dateAdded property(quasar) nebula
2022-03-12simple data serialization & random pages fixes(quasar) nebula
2022-03-05non-jpg full res art links, artist avatars(quasar) nebula
2022-02-25inherit hasTrackArt and use in getTrackCover util(quasar) nebula
2022-02-17pre-writes: listings(quasar) nebula
2021-09-01restore support for Jiff(quasar) nebula
2021-08-02fix misordered art lists & chronology links(quasar) nebula
2021-06-04module-ify album commentary pages(quasar) nebula
2021-06-04module-ify homepage(quasar) nebula
2021-06-01module-ify track pages(quasar) nebula
2021-06-01basic module-ify album pages(quasar) nebula
Other pages are commented out for now. Also, this doesn't include the source .txt processing functions yet, 8ut that'll pro8a8ly end up in the page/ files too.
2021-05-06break up utility file, get build for sure working(quasar) nebula
still Much Work Yet Ahead but this is good progress!! also the site is in a working state afaict and thats a kinda nice milestone lmbo