~jan0sch/smederee

Showing 11 changes starting from fb0db6a7ceb6862a96ddd96d7fb0b103f265510c.
2022-08-15 (Mon), 1:31 PM - Jens Grassel - fb0db6a7ceb6862a96ddd96d7fb0b103f265510c

VCS: fix pagination in history view

Summary of changes
2 files modified with 3 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 1 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryHistory.scala.html with 2 added and 0 removed lines
2022-08-15 (Mon), 1:29 PM - Jens Grassel - f70ac0ea332822c1bb200c12f5b6b931186ea56c

HTML: fix createFullPath template to return Uri

- allows to append query parameters in templates
Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/createFullPath.scala.html with 1 added and 1 removed lines
2022-08-14 (Sun), 2:27 PM - Jens Grassel - a55e078d48f149d9ff07952745e4598094573a8c

VCS: Loooots of changes

- more refactoring and moving things around
- split overview, files and history under sparate paths
- incomplete overview page for repo
- all should also work for guest users
Summary of changes
1 files added
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryOverview.scala.html
4 files modified with 233 lines added and 52 lines removed
  • modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala with 25 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 183 added and 48 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html with 8 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryHistory.scala.html with 17 added and 3 removed lines
2022-08-14 (Sun), 11:57 AM - Jens Grassel - e45f55e4bc59fdb6f1fbce591c0c25f5c445d433

Refactoring: extract common logic into helper functions

Showing all repositories and individual repositories for guests and logged 
on users shares common logic which is now placed inside a helper functions.
Summary of changes
2 files modified with 148 lines added and 120 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 146 added and 118 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepository.scala.html with 2 added and 2 removed lines
2022-08-14 (Sun), 8:11 AM - Jens Grassel - 7a198c7f10e5c6dc3a980897adec7b0ffbf6403e

VCS: Database and Repository

- more work on db table
- data structures
- VcsMetadataRepository and tests
- change main CSS (colourize alerts)
- add routes for showing all repositories (also for guests)
Summary of changes
4 files added
  • modules/hub/src/it/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala
  • modules/hub/src/main/scala/de/smederee/hub/DoobieVcsMetadataRepository.scala
  • modules/hub/src/main/scala/de/smederee/hub/VcsMetadataRepository.scala
  • modules/hub/src/main/twirl/de/smederee/hub/views/showAllRepositories.scala.html
14 files modified with 232 lines added and 77 lines removed
  • modules/hub/src/it/scala/de/smederee/hub/Generators.scala with 19 added and 0 removed lines
  • modules/hub/src/main/resources/assets/css/main.css with 11 added and 11 removed lines
  • modules/hub/src/main/resources/db/migration/V2__repository_tables.sql with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 10 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 6 added and 5 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/NewVcsRepositoryForm.scala with 23 added and 15 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepository.scala with 29 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 103 added and 35 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/createRepository.scala.html with 0 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/login.scala.html with 0 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/navbar.scala.html with 1 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositories.scala.html with 10 added and 8 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html with 0 added and 0 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/Generators.scala with 19 added and 0 removed lines
2022-08-12 (Fri), 12:45 PM - Jens Grassel - b9daa911e96ce098afb0d2907daeffe088982717

VCS: Extend new repository form

Summary of changes
3 files modified with 32 lines added and 1 lines removed
  • modules/hub/src/main/resources/messages_en.properties with 8 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/NewVcsRepositoryForm.scala with 6 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/createRepository.scala.html with 18 added and 0 removed lines
2022-08-12 (Fri), 12:09 PM - Jens Grassel - fe612691c2401e3626b15556fc8529509dcabaa9

i18n: Rewrite catch exceptions by default

The default behaviour is changed to catch possible exceptions and return
the given translation key instead. The old behaviour is still available as
`unsafeApply`.
Summary of changes
1 files added
  • modules/i18n/src/test/resources/logback-test.xml
3 files modified with 46 lines added and 3 lines removed
  • build.sbt with 1 added and 0 removed lines
  • modules/i18n/src/main/scala/de/smederee/i18n/Messages.scala with 33 added and 1 removed lines
  • modules/i18n/src/test/scala/de/smederee/i18n/MessagesTest.scala with 12 added and 2 removed lines
2022-08-12 (Fri), 11:00 AM - Jens Grassel - a735c49a4838632116734ae3b37941b97adddf91

Refactoring: Switch from Nel to Nec when validating

- also extend NewVcsRepositoryForm and VcsRepository
Summary of changes
11 files modified with 138 lines added and 62 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 12 added and 12 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRoutes.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/LoginForm.scala with 7 added and 7 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/NewVcsRepositoryForm.scala with 50 added and 11 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupForm.scala with 12 added and 12 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 6 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepository.scala with 8 added and 8 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/forms/FormValidator.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/forms/types.scala with 14 added and 2 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/forms/FormErrorsTest.scala with 26 added and 1 removed lines
2022-08-11 (Thu), 2:24 PM - Jens Grassel - fd4fd6b262b4928d51952d36bdbe37ab63fb1d25

VCS: Prepare repository db tables

Summary of changes
1 files added
  • modules/hub/src/main/resources/db/migration/V2__repository_tables.sql
1 files modified with 42 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepository.scala with 42 added and 2 removed lines
2022-08-11 (Thu), 1:05 PM - Jens Grassel - 4fe46815c73d11830c4afedab22d332e734eb00b

VCS: Implement maximum file size check

Summary of changes
1 files modified with 11 lines added and 4 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 11 added and 4 removed lines
2022-08-11 (Thu), 10:59 AM - Jens Grassel - 81f855b3ca80f1050726752fef7b791a95f0ca20

HTML: autofocus on several forms

Summary of changes
3 files modified with 4 lines added and 4 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/createRepository.scala.html with 2 added and 2 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/login.scala.html with 1 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html with 1 added and 1 removed lines