1
0
Commit Graph

2517 Commits

Author SHA1 Message Date
Jai A
8dd1ff593a Add version title to request 2020-11-30 16:05:40 -07:00
Jai A
0f64a769c2 Fix mod creation 2020-11-30 15:47:21 -07:00
Jai A
a8d150db5c Remove CurseForge integration - some more minor fixes 2020-11-30 15:34:04 -07:00
Jai A
d7e6367ff3 Minor Fixes 2020-11-30 15:10:30 -07:00
Prospector
7b84d8c3d5 [WIP] Rework design (#34)
* WIP: Redesign the default layout

* Merge old & new default layouts

* Fix login logic; add proper user controls dropdown

* Fix latest version listing (#31) (#32)

Co-authored-by: Aeledfyr <45501007+Aeledfyr@users.noreply.github.com>

* First pass of design cleanup

* Improve ad integration and fix light theme

* Begin splitting up variables, change some styling to new mockup

* Continue redesign progress

* Work on some more pages

* Add missing dark theme variables for text

* Continue working on modularizing

* Continue progress, redo pagination

* Fix auth buttons in navbar layout

* Continue progress

* Continue progress more

* Redo ModResult

* Scope ModPage :irritater:

* Continue Dashboard

* Continue progress on Dashboard and cleanup

* Add missing variables for dark theme

* Small tweaks, cleanup, and continue mod page progress

* Fix user not being able to see hidden mods that they own

* Start reworking mod creation

* Continue revamp of mod creation page

* Yank v-html out

* Hotfix markdown rendering and some spacing issues

* Move legal; continue with mod creation; create reusable footer

* Create README.md

* Update README.md

* Update README.md

* Add in basic usage instructions

* Fix some stuff

* Continue with mod creation; fix some CSS errors

* Start user page

* Start transition to vue-select; fix a few bugs

* Continue mod creation page

* Finish mod pages

* Add very raw version editing

* Mod editing + creation

* Fixed versions that were in processing causing a 404 (#39)

Co-authored-by: Mikhail Oleynikov <falseresync@gmail.com>
Co-authored-by: Aeledfyr <45501007+Aeledfyr@users.noreply.github.com>
Co-authored-by: Jai A <jai.a@tuta.io>
Co-authored-by: MulverineX <mulverin3@gmail.com>
Co-authored-by: diabolical17 <calumproh28@gmail.com>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2020-11-30 14:55:01 -07:00
Aeledfyr
b3f724c799 Hotfix: fix version delete permissions and CORS allowed methods (#107) 2020-11-30 10:45:59 -07:00
Geometrically
a7be6504a2 Fix hash (#106)
* More mod info

* Downloading mods

* Run prepare

* User editing + icon editing

* Finish

* Some fixes

* Fix clippy errors

* Fix hash lookup

* Run prepare

* Run formatter
2020-11-29 14:27:40 -07:00
Jai A
e025df0824 Fix main page, fix mod creation 2020-11-28 08:57:14 -07:00
Jai A
c3392d5386 Fix mod creation again 2020-11-27 14:30:07 -07:00
Geometrically
1da5357df6 More mod info (#104)
* More mod info

* Downloading mods

* Run prepare

* User editing + icon editing

* Finish

* Some fixes

* Fix clippy errors
2020-11-27 10:57:04 -07:00
Jai A
2c09e6a7c0 Update mod creation 2020-11-27 10:56:38 -07:00
Jamie Mansfield
2a0740e135 Apply 'active-paginate' to Previous button (#35)
This has the effect of the cursor being shown when hovering over
the previous button.
2020-11-19 13:41:54 +03:00
diabolical17
ac65357c8a Template Codeblock with example for index.vue (#29)
* Replace runkit GIF with actual code on index.vue

Sometimes the GIF will not load due to a slow or crappy connection.
Syntax highlighting could be added at a later date.

* Added syntax highlighting with vue highlightJS

* Move scss to highlightjs.scss

* Introduce better syntax highlighting.

* Changed to monospace font
2020-11-16 16:28:33 +03:00
Aeledfyr
92e1847c59 Hotfix: route new moderation routes (#103) 2020-11-15 20:47:45 -07:00
Geometrically
0500994def Moderation + Mod Editing (#101)
* Moderation + Mod Editing WIP

* Run prepare, fix perms

* Make it compile

* Finish moderation and edit routes

* More fixes

* Use better queries

* Final Fixes
2020-11-15 19:58:11 -07:00
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