Age | Commit message (Collapse) | Author |
|
|
|
This also introduces a handy stitchArrays() utility, which
probably has some uses not caught in this commit.
|
|
This wasn't causing any bugs within the codebase but it should be
consistent with the rest of the sort functions anyway.
|
|
Fixes #168.
This refactors the duplicated logic with sortByPositionInAlbum
into a new template, sortByPositionInParent.
|
|
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.
|
|
Fixes #170.
|
|
* 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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
- 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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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
|