« 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
2024-03-14util: add much more custom behavior to getKebabCase(quasar) nebula
2024-02-25util: unhinged binding shenanigans for release compatibility(quasar) nebula
2024-02-16data: move sorting & generic functions out of #wiki-data(quasar) nebula
2024-02-15data: validate commentary capitalization w/ non-global regex(quasar) nebula
2024-02-14data: detect & report miscapitalization in commentary heading(quasar) nebula
2024-01-11data: chunkMultipleArrays: fix zero-items case(quasar) nebula
2023-11-20data: update and revamp isCommentary validator(quasar) nebula
2023-11-18data: support dash-style short dates in commentary dates(quasar) nebula
2023-11-18data: looser commentary date parsing + clearer regex explanation(quasar) nebula
2023-11-18data: parse commentary heading contents to end of line(quasar) nebula
2023-11-17data, yaml, content: support multiple artists per commentary entry(quasar) nebula
2023-11-14data, test: boldfaceArtist -> artistDisplayText(quasar) nebula
2023-11-14data, yaml: catch commentary artist ref errors(quasar) nebula
2023-10-11data: use flash act directory for better determinism(quasar) nebula
2023-09-09data: WIP cached composition nonsense(quasar) nebula
2023-09-08fix miscellaneous eslint errors(quasar) nebula
2023-08-19clean up imports & miscellaneous metastructures across codebase(quasar) nebula
2023-08-14data: remove 'Has Track Art', compute from credits(quasar) nebula
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