Skip to content

Ahe Pantsu

Latest
Compare
Choose a tag to compare
@akuma06 akuma06 released this 22 Jul 23:35
· 730 commits to dev since this release

This is the refactored version from Pantsu 1.0.0 with the new naming version decided internally. All versions should be called (same as the android app) in Japanese alphabetical order describing a type of "Pantsu". Since the android app already used "Aoi Pantsu", we choose "Ahe Pantsu".

Changes

Backend Stuff

  • Routing with gin router
  • Template with JetHTML
  • No more services
  • Controllers are now separated in folders in controllers/ with each one of them having a router.go file adding the routes. Then each package is imported with a "_" in controllers/router.go
  • Models are now all in models folder and do all the db stuff
  • Utils are now more explanatory on what they do
  • More tests on templating system, languages, categories, models
  • Removing useless functions and packages
  • Configor as a configuration package
  • New cache system with go-cache
  • Tried to keep same naming scheme through the models exported function (Find*, Delete, Update)
  • Validation of forms through validator dependency

Frontend Stuff

  • Fix Upload Anonymously Torrents
  • Added Multiple Languages upload support
  • Changed how languages are displayed
  • Added new Rules
  • Added Upload count
  • Added Upload preview for js users
  • Added .eslint rules
  • Torrents link on profile page now redirect to all the torrents if you're not the actual user
  • Other things

API Stuff

/!\ Be aware about the changes that follows for those who use our API, this is important. We are moving to 1.1.1 API which makes it work as previously except for languages !

  • API documentation finally added to https://nyaa.pantsu.cat/apidoc/
  • Use apidoc to generate API documentation with annotation in controllers/api/api.go
  • Uploading a torrent cannot be done with the old languages, you have to use our new languages (fr,es,it, ...). They are mostly the old ones with the second part (after the tiret) of their code stripped (e.g. fr-fr becomes fr).
  • Now you can get a public profile from a user with /profile?id=xxx