stash/pkg
SmallCoccinelle 41a1fb8aec
Add collation to directory listings (#1823)
* Add collation to directory listings. Closes #1806

Introduce a new `locale` arg to the `Query.directory` field. Set "en"
as the default for the field for backward compatibility. Use the given
locale, sending it through a language matcher, and use `x/text` as the
collation engine for the matched language.

Augment the file `ListDirs` call to optionally take a Collator. If the
Collator is given, sort file listings according to the collators rules.

While here, document the GraphQL schema a bit more.

Add matchers by looking at the current front-end locales, and make sure
each of these occur in the matcher list.

* Language matcher touchups

* Avoid having `en-US` twice.
* Introduce `en-AU`.

* Pass IgnoreCase and Numeric collation

Allow the collator to be configured with options. Pass the options
IgnoreCase and Numeric to the collator.
2021-10-14 15:16:45 +11:00
..
api Add collation to directory listings (#1823) 2021-10-14 15:16:45 +11:00
autotag Autotag scraper (#1817) 2021-10-11 23:06:06 +11:00
database Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
dlna refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
ffmpeg refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
gallery Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
image Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
job Refactor clean task (#1805) 2021-10-11 16:45:24 +11:00
logger Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
manager Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
match Autotag scraper (#1817) 2021-10-11 23:06:06 +11:00
models Refactor clean task (#1805) 2021-10-11 16:45:24 +11:00
movie Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
performer Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
plugin Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
scene Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
scraper Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
session Fix setting config locking out proxy users (#1820) 2021-10-10 10:54:15 +11:00
sqlite Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
static Replace packr with go embed (#1751) 2021-09-22 13:08:34 +10:00
studio Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
tag Errorlint sweep + minor linter tweaks (#1796) 2021-10-12 14:03:08 +11:00
utils Add collation to directory listings (#1823) 2021-10-14 15:16:45 +11:00