2302 Commits

Author SHA1 Message Date
Aeledfyr
07c255f7f8
Fix latest version listing (#31) 2020-11-10 10:59:54 -07:00
Aeledfyr
da911bfeb8
Minor fixes to orderings and permission serialization (#102)
* Fix latest_version in search results

* Handle users with invalid permissions instead of skipping them

* Specify order of some queries, fix serialization of permissions

* Run sqlx prepare
2020-11-10 09:27:36 -07:00
Geometrically
578d673a4e
Team routes (#92)
* Team routes template

* More work on teams

* Updating routes WIP

* Edit routes

* Fixes

* Run prepare, prevent non-members from seeing perms

* More fixes

* Finish team routes

* More fixes

* Unpushed changes

* Some more fixes and error handling

* Fix sqlx prepare, formatting

Co-authored-by: Aeledfyr <aeledfyr@gmail.com>
2020-11-09 19:39:23 -07:00
Jai A
198b3c9f1b
Full mobile support 2020-11-05 21:44:08 -07:00
Jai A
f5c567eb90 Merge branch 'master' of https://github.com/modrinth/knossos 2020-11-05 18:01:00 -07:00
Jai A
8ca09f6384
Fix ad warning, add snapshot search 2020-11-05 18:00:40 -07:00
Aeledfyr
c8e58a1e5b
Fix indexing, upgrade MeiliSearch sdk (#100)
* Hotfixes for indexing

* Handles missing INDEX_CACHE_PATH environment variable
* Exits on startup if environment variables are missing. The flag
  --allow-missing-vars disables this, but that is generally a bad
  idea, since most environment variables are required (and the ones
  that aren't should be marked as such).
* Disables the query loggers

* Upgrade meilisearch-sdk to 0.4.0 for MeiliSearch 0.16 support

* Fix swap of Forge and Fabric labeling
2020-11-05 08:38:03 -07:00
Charalampos Fanoulis
386dfe42d0
fix: word the alt text (#27) 2020-11-04 22:11:41 +03:00
Jai A
7445f43b1b
Tooltips, alternate ad text, better error messages 2020-11-03 21:29:45 -07:00
Aeledfyr
d477874535
Optimize and fix some bugs in indexing (#98)
* Improve curseforge and local indexing

This should make curseforge indexing more efficient, and reuses
some of the normal local indexing for the queued indexing of
recently created mods.

* Unify impls for single and multiple routes for mods and versions

This uses the same backend for the single and multiple query
routes so that they no longer return inconsistent information.

* Cache valid curseforge mod ids to reduce request load

This caches the ids of minecraft mods and reuses them on indexing
to reduce the amount of unused addons that are returned.
2020-11-03 17:55:50 -07:00
Jai A
5b77e78662
Unpushed stuff 2020-11-02 22:05:08 -07:00
Jai A
4b0b8d4de2
New error page, add legal pages, responsiveness for home page 2020-11-02 22:04:40 -07:00
Aeledfyr
da79386cc3
Track and sort by release date of game_versions tags (#95) 2020-10-31 21:06:47 -07:00
Jai A
b7de47b6fb
Fix Theme Change breaking ads 2020-10-31 09:59:57 -07:00
Jai A
3434907f52
Update Ad Placement, fix version sorting 2020-10-30 22:15:08 -07:00
Jai A
099adb3853 Merge branch 'master' of https://github.com/modrinth/knossos 2020-10-28 20:43:10 -07:00
Jai A
dd9b1c047c
Change to EthicalAds 2020-10-28 20:39:44 -07:00
Aeledfyr
a4ba6d1444
Game Version types, indexing, and bugfixes (#91)
* Add types to game_versions, allow filtering by version type

- Fixes an issue with version numbers in the initial mod indexing
  queue
- Modifies the /api/v1/categories/game_versions route to take an
  optional query parameter `type` to filter the listed game versions
- Creating tags is now idempotent
- Creating game_versions now requires a JSON body that specifies
  the version type

* Implement automatic indexing of new Minecraft versions

It's currently set to run every 6 hours and isn't configurable; we
could add config for it, but it doesn't seem likely to be rate
limited or have issues with frequency.
2020-10-28 09:11:49 -07:00
Aeledfyr
6084bb15cf
Fix meta tags for embeds (#11) 2020-10-26 19:21:43 -07:00
Jai A
42b568952e
Edit version route 2020-10-25 14:03:18 -07:00
Geometrically
ef28459b61
Rate limiting + version fixes (#90)
* Rate limiting + version fixes

* Move patch to proper place

* More fixes

* Fix commit hash pin
2020-10-25 13:51:07 -07:00
Jai A
d3bac307bb
Test ads, fix search reload on non-relevance sort types 2020-10-25 13:48:13 -07:00
Jai A
7e488b0fa3
Allow null changelogs 2020-10-25 09:15:04 -07:00
Jai A
7d7a6191ce
Fix version creation 2020-10-25 08:55:55 -07:00
Jai A
5c644b31ca
Make edit buttons hidden when not authorized 2020-10-23 19:27:04 -07:00
Jai A
7b4398dfee
Finish ability to add files to versions and create new versions 2020-10-23 13:48:42 -07:00
Jai A
663418e943
Move everything to components, (WIP) Version creation 2020-10-22 22:46:10 -07:00
Jai A
969bec248a
Add version page 2020-10-21 21:24:39 -07:00
Jai A
8f487d7d4e
Bug Fixes 2020-10-21 14:30:13 -07:00
Jai A
89ebce79b2
Add versions section 2020-10-21 13:43:49 -07:00
Geometrically
1ff8c908b8
Add way to fetch team members (#89)
* Add way to fetch team members, fix files not being returned with version route

* Make it compile

* Fixes

* Use default error handling
2020-10-21 12:30:35 -07:00
Jai A
34ce510fbd
Mod pages base 2020-10-20 22:33:49 -07:00
Aeledfyr
e966ef96e5
Await an unused future and change #![allow(unused)] to dead_code (#88)
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2020-10-19 22:24:40 -07:00
Geometrically
b05b38b269
Add files to initial versions/mods (#84)
* Add files to initial versions/mods

* Remove useless code, fix actual problem

* Remove debug text

* Rename body to description
2020-10-19 22:08:47 -07:00
Jai A
39f29399e7
Turn off dev mode in production, work on mod pages 2020-10-19 22:02:29 -07:00
Geometrically
8e1f1ff2e6
Fix another bug (#87) 2020-10-19 20:04:26 -07:00
Geometrically
680d6c20ca
Search hotfix (#86) 2020-10-19 19:46:33 -07:00
Geometrically
c886e7949e
Support for using a master key (#83)
* Support for using a master key

* Expand scope of PR, add wrapper struct, add files to intitial versions/mods

* Change changelog path, run formatter

* Split file changes into different PR

* Formatting, rename main variable

Co-authored-by: Aeledfyr <aeledfyr@gmail.com>
2020-10-19 14:23:05 -07:00
Jai A
8cd4cc7d0d
Fix SVGs, cleanup, switch stats backend 2020-10-18 20:00:03 -07:00
Geometrically
e0b972f6d6
Add S3 File Host (#81)
* Add S3 File Host

* Fix tests, set default ACL level to public

* Refactor

* Fix merge conflicts

* Env fixes

* Run formatter

* Remove extra allocations
2020-10-18 13:26:13 -07:00
Aeledfyr
25daa9f2da
Update actix-web to 3.0, update deps (#82) 2020-10-18 10:50:37 -07:00
Aeledfyr
d0fb5c3bd5
Refactor mod creation route, add more checks (#80)
This also removes the `team_members` field of `InitialModData`, as
team members are no longer specified at mod creation.
2020-10-17 19:34:23 -07:00
Jai A
608ab8f4ad
Fix creation + make it more accessible. Also added User Pages. User Context Menu moved to settings cog 2020-10-17 11:28:05 -07:00
Aeledfyr
520b12e56b
Make mod creation always create initial versions & don't require mod id for mod creation versions (#79)
* Make mod creation always create initial versions, other fixes

* Fix sqlx prepare

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2020-10-16 13:28:53 -07:00
Jai A
e95643f198
Remove console statements 2020-10-16 12:45:47 -07:00
Jai A
3b1712345b
Creation fixes 2020-10-16 12:44:32 -07:00
Geometrically
5c8ffe961e
Fix local indexing (#78) 2020-10-16 11:21:07 -07:00
Aeledfyr
7983e82b60
Fix some issues with search and mod creation (#77) 2020-10-16 10:04:38 -07:00
Jai A
6effe47bcc
Finish mod creation 2020-10-15 20:23:01 -07:00
Geometrically
77d35b61a9
Fix indexing (#76) 2020-10-15 09:56:41 -07:00