From ec41c6121956afc4eb33c9f21905cdce4c07a097 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:38:08 +0000 Subject: Refactor plugin store and add sorting by downloads and release date (#547) * untested first commit * fix types & names * comment out built in sorting for now * rerun search when sort changes * fix ts complaints * use prettier * stop switch-case fall through * move spinner * use locale instead of hardcoded string * fix typo * add sorting by downloads & try using the data field in the dropdown for data * fix typing error * fix asc/desc in dropdown * fix asc/desc again. asc = smaller one go first aaaaa * I don't think i know what ascending means maybe * use props instead of children, like a normal component --- backend/locales/en-US.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend') diff --git a/backend/locales/en-US.json b/backend/locales/en-US.json index 7845ae4f..aaa7659f 100644 --- a/backend/locales/en-US.json +++ b/backend/locales/en-US.json @@ -218,6 +218,10 @@ "about": "About", "alph_asce": "Alphabetical (Z to A)", "alph_desc": "Alphabetical (A to Z)", + "date_asce": "Oldest First", + "date_desc": "Newest First", + "downloads_asce": "Least Downloaded First", + "downloads_desc": "Most Downloaded First", "title": "Browse" }, "store_testing_cta": "Please consider testing new plugins to help the Decky Loader team!", -- cgit v1.2.3