Fixes#3176
**Changes**:
- Sets the pagination to page one if the search is updated. This is the norm on most websites, and how users expect it to work.
- Join `setPage` into `updateSearchResults`
- Take a page number in `updateSearchResults`
- Remove unused param to `updateSearchResults`
- Update `watch` to not double requests
- use `scrollToTop` utility function
* Start work on refactoring date range system.
* Use timeResolution terminology.
* "Last month" initial default.
* Migrate fully to dayjs - ease of use.
* Discard changes to pnpm-lock.yaml
* utilize getter
* Fix date label in ChartDisplay.vue
* Finish cleanup
* Update STAGING_API_URL in nuxt.config.ts
* Lint fixes
* Refactor ChartDisplay.vue to handle loading state in selectedRange and formattedCategorySubtitle
* Remove modal impl
---------
Signed-off-by: Calum H. <contact@mineblock11.dev>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
* chore: show resubscribe on `failed` status
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: hide cancel on failed
Signed-off-by: Evan Song <theevansong@gmail.com>
* update copy
Signed-off-by: Evan Song <theevansong@gmail.com>
---------
Signed-off-by: Evan Song <theevansong@gmail.com>
* Rough draft for fix for Mojang servers being down causing infinite installation
* Add "pack installed" install step
* Allow repairing an instance from Library to recover pack contents
* Allow repair from instance page
* Deduplicate repair code
* Fix lint
* Fix lint (for real this time)
---------
Co-authored-by: Jai Agrawal <18202329+Geometrically@users.noreply.github.com>
* feat: Automatically open download modal when filter queries are present
* chore: Use a hash to open the modal, and make the filter queries independent of the modal
* chore: Correct to use emit for taking functions
* chore: Add filter query and download hash to the url during modal use, and fix linting issues
* chore(frontend): Undo changes to NewModal
My computer does not like running the app, making testing a lot harder, so I'll undo this change, at least for now
* Remove extra line
---------
Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
* feat: Automatically open download modal when filter queries are present
* chore: Use a hash to open the modal, and make the filter queries independent of the modal
* chore: correctly type suspension reason
Signed-off-by: Evan Song <theevansong@gmail.com>
* fix: faulty suspension condition allowing for fallthrough
Signed-off-by: Evan Song <theevansong@gmail.com>
* fix: here as well
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: add support suspension reason
Signed-off-by: Evan Song <theevansong@gmail.com>
* feat: handle support suspensions
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: patch pyroservers to handle 503
Signed-off-by: Evan Song <theevansong@gmail.com>
* feat: handle 503 in server root
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: dont make pyroservers errors scream at me anymore
Signed-off-by: Evan Song <theevansong@gmail.com>
---------
Signed-off-by: Evan Song <theevansong@gmail.com>
* feat: only scroll up if scrolled down
* feat: no query results message
* feat: content files support, mobile fixes
* fix(drag & drop): type of file prop
* chore: show number of mods in searchbar
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: adjust btn styles
Signed-off-by: Evan Song <theevansong@gmail.com>
* feat: prepare for mod author in backend response
Signed-off-by: Evan Song <theevansong@gmail.com>
* fix: external mods & mobile
* chore: adjust edit mod version modal copy
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: add tooltips for version/filename
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: swap delete/change version btn
Signed-off-by: Evan Song <theevansong@gmail.com>
* fix: dont allow mod link to be dragged
Signed-off-by: Evan Song <theevansong@gmail.com>
* fix: oops
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: remove author field
Signed-off-by: Evan Song <theevansong@gmail.com>
* chore: drill down tooltip
Signed-off-by: Evan Song <theevansong@gmail.com>
* fix: fighting types
Signed-off-by: Evan Song <theevansong@gmail.com>
* prepare for owner field
Signed-off-by: Evan Song <theevansong@gmail.com>
---------
Signed-off-by: Evan Song <theevansong@gmail.com>
Co-authored-by: Evan Song <theevansong@gmail.com>
Co-authored-by: Evan Song <52982404+ferothefox@users.noreply.github.com>